/* ==========================================================================
   M.E.E.T. Mind Exploring Every Tradition
   Editorial design system: ivory paper, oxblood accent, navy for depth,
   powder blue held in reserve. Instrument Serif for voice, Instrument Sans
   for everything that has to work.
   ========================================================================== */

:root {
  /* Paper */
  --ivory: #f6f0e5;
  --paper: #fbf8f2;
  --cream: #ede3d1;
  --sand: #e3d6bf;

  /* Ink */
  --ink: #18213a;
  --ink-soft: #2c3550;
  --muted: #545a69;
  --hint: #676c79;

  /* Accents */
  --oxblood: #7a1420;
  --oxblood-deep: #5d0f18;
  --navy: #13284a;
  --navy-deep: #0d1d37;
  --powder: #c9d8e4;
  --powder-ink: #a9bfd1;

  /* Lines */
  --line: #ddd2bf;          /* decorative hairline */
  --line-strong: #857d6c;   /* interactive borders, 3:1 on paper */
  --line-on-navy: rgba(201, 216, 228, .28);

  /* Type */
  --display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Space */
  --gutter: clamp(20px, 4.2vw, 72px);
  --col-gap: clamp(16px, 2vw, 32px);
  --section: clamp(96px, 13vw, 200px);
  --max: 1480px;

  /* Motion */
  --ease-out: cubic-bezier(.16, .84, .3, 1);
  --ease-soft: cubic-bezier(.45, 0, .2, 1);
  --t-fast: 220ms;
  --t-med: 520ms;
  --t-slow: 1100ms;

  --header-h: 72px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  animation: page-in 400ms var(--ease-out) both;
}

@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }

/* The one environment layer: warm paper grain behind everything */
body::before {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: -1;
  pointer-events: none;
  opacity: .32;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .45  0 0 0 0 .36  0 0 0 0 .25  0 0 0 .22 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain-drift 90s linear infinite;
  animation-delay: -12s;
}

@keyframes grain-drift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-180px, -180px, 0); }
}

[hidden] { display: none !important; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--oxblood); color: var(--paper); }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--oxblood);
  outline-offset: 3px;
  border-radius: 1px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--navy);
  color: var(--paper);
  text-decoration: none;
  font-size: 15px;
  border-radius: 999px;
  transition: top var(--t-fast) var(--ease-out);
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

main:focus { outline: none; }

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
}

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */

.kicker {
  display: inline-flex;
  align-items: baseline;
  gap: .9em;
  margin: 0 0 28px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--oxblood);
}
.kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  transform: translateY(-.32em);
}
.kicker.plain::before { display: none; }

.display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -.012em;
  line-height: .98;
  color: var(--ink);
}
.display em, .accent-word {
  font-style: italic;
  color: var(--oxblood);
}

.h2 {
  font-family: var(--display);
  font-size: clamp(2.5rem, 4.6vw, 4.6rem);
  line-height: 1;
  letter-spacing: -.01em;
}
.h2 em { font-style: italic; color: var(--oxblood); }

.h3 {
  font-family: var(--display);
  font-size: clamp(2rem, 3.1vw, 3.1rem);
  line-height: 1.04;
}

.lede {
  font-size: clamp(1.08rem, 1.25vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 40ch;
}

.body-copy { color: var(--muted); max-width: 52ch; }
.body-copy p:last-child { margin-bottom: 0; }

.statement {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.9rem, 3.6vw, 3.5rem);
  line-height: 1.12;
  color: var(--ink);
  max-width: 24ch;
  margin: 0;
}

/* Plate captions: the journal's index for every photograph */
.plate {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--hint);
}
.plate b {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 17px;
  color: var(--oxblood);
  min-width: 1.6em;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  --btn-bg: var(--oxblood);
  --btn-fg: var(--paper);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 56px;
  padding: 0 9px 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: background-color var(--t-med) var(--ease-out), color var(--t-med) var(--ease-out);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--oxblood-deep);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--t-med) var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); }
/* The arrow sits in its own soft circle inside the pill */
.btn .arrow {
  display: inline-block;
  flex: none;
  width: 40px;
  height: 40px;
  padding: 15px 10px;
  border-radius: 50%;
  background: rgba(246, 240, 229, .16);
  transition: transform var(--t-med) var(--ease-out), background-color var(--t-med) var(--ease-out);
}
.btn:hover .arrow, .btn:focus-visible .arrow { background: rgba(246, 240, 229, .26); }
.btn:hover .arrow, .btn:focus-visible .arrow { transform: translateX(5px); }
.btn:focus-visible { outline-color: var(--oxblood); outline-offset: 4px; }

.btn-small {
  min-height: 42px;
  white-space: nowrap;
  padding: 0 20px;
  font-size: 14px;
  gap: 12px;
}

.on-navy .btn { box-shadow: inset 0 0 0 1px rgba(246, 240, 229, .35); }
.on-navy .btn:focus-visible { outline-color: var(--paper); }

.btn[disabled], .btn[aria-disabled="true"] { cursor: progress; opacity: .82; }

.reassure {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--hint);
}

.text-link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
  text-decoration-color: var(--line-strong);
  transition: text-decoration-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
}
.text-link:hover { color: var(--oxblood); text-decoration-color: var(--oxblood); }

@media (pointer: coarse) {
  .btn-small { min-height: 44px; }
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 240, 229, .9);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-med) var(--ease-out);
}
.site-header.scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  min-height: 44px;
}
.brand-mark { width: 45px; height: 30px; flex: none; }
.brand-word {
  font-family: var(--display);
  font-size: 24px;
  letter-spacing: .06em;
  line-height: 1;
}

.nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); }
.nav-links { display: flex; gap: clamp(20px, 2.6vw, 36px); list-style: none; }
.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
  text-decoration: none;
  color: var(--ink-soft);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 10px;
  height: 1px;
  background: var(--oxblood);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--t-med) var(--ease-out);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
}
.nav-back:hover { color: var(--oxblood); }
.nav-back svg { width: 18px; height: 10px; transform: scaleX(-1); }

@media (max-width: 760px) {
  :root { --header-h: 62px; }
  .nav-links { display: none; }
  .brand-word { font-size: 21px; }
  .brand-mark { width: 39px; height: 26px; }
}

/* --------------------------------------------------------------------------
   Image frames and reveals
   -------------------------------------------------------------------------- */

.frame {
  position: relative;
  overflow: hidden;
  background: var(--cream);
  margin: 0;
}
.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Reveal: the image settles from a slight scale as its frame fades in */
.js .reveal-img .frame { opacity: 0; transition: opacity var(--t-slow) var(--ease-out); }
.js .reveal-img .frame img { transform: scale(1.08); transition: transform 1800ms var(--ease-out); }
.js .reveal-img.in .frame { opacity: 1; }
.js .reveal-img.in .frame img { transform: scale(1); }

.js .reveal > * {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out);
}
.js .reveal.in > * { opacity: 1; transform: none; }
.js .reveal.in > *:nth-child(2) { transition-delay: 90ms; }
.js .reveal.in > *:nth-child(3) { transition-delay: 180ms; }
.js .reveal.in > *:nth-child(4) { transition-delay: 270ms; }
.js .reveal.in > *:nth-child(5) { transition-delay: 360ms; }
.js .reveal.in > *:nth-child(6) { transition-delay: 450ms; }
/* Retire the stagger once the entrance has played, so hovers never lag */
.js .reveal.in.settled > *,
.js .reveal.in.settled > *:nth-child(n) { transition-delay: 0ms; }

/* --------------------------------------------------------------------------
   HERO
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding-top: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(24px, 3vw, 48px);
}

.hero-grid { align-items: center; }

.hero-copy {
  grid-column: 1 / span 6;
  align-self: center;
  padding-bottom: clamp(24px, 4vw, 64px);
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: clamp(3.1rem, 6.7vw, 7.1rem);
  margin: 0 0 clamp(28px, 3vw, 44px);
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.hero-title .line > span { display: inline-block; }
.hero-title .line.last > span { font-style: italic; color: var(--oxblood); padding-right: .08em; }

.js .hero-title .line > span {
  transform: translate3d(0, 105%, 0);
  animation: line-rise 1200ms var(--ease-out) forwards;
}
.js .hero-title .line:nth-child(1) > span { animation-delay: 120ms; }
.js .hero-title .line:nth-child(2) > span { animation-delay: 260ms; }
.js .hero-title .line:nth-child(3) > span { animation-delay: 420ms; }
@keyframes line-rise { to { transform: translate3d(0, 0, 0); } }

.hero-lede { margin-bottom: clamp(32px, 3vw, 44px); }

.js .hero-after > * {
  opacity: 0;
  animation: fade-up 1000ms var(--ease-out) forwards;
}
.js .hero-after > *:nth-child(1) { animation-delay: 620ms; }
.js .hero-after > *:nth-child(2) { animation-delay: 740ms; }
.js .hero-after > *:nth-child(3) { animation-delay: 860ms; }
.js .hero-after > *:nth-child(4) { animation-delay: 980ms; }
@keyframes fade-up {
  from { opacity: 0; transform: translate3d(0, 16px, 0); }
  to   { opacity: 1; transform: none; }
}

.hero-figure {
  grid-column: 7 / -1;
  margin-right: calc(var(--gutter) * -1);
  position: relative;
}
.hero-figure .frame {
  aspect-ratio: 4 / 3;
  width: 100%;
}
/* Landscape crop taken from the lower part: the pinch, the fingertips and the rim */
.hero-figure .frame img { object-position: 50% 58%; }
.hero-figure .plate { padding-right: var(--gutter); }

.js .hero-figure .frame {
  clip-path: inset(0 0 0 100%);
  animation: unveil 1500ms var(--ease-soft) 180ms forwards;
}
.js .hero-figure .frame img {
  transform: scale(1.12);
  animation: settle 2400ms var(--ease-out) 180ms forwards;
}
@keyframes unveil { to { clip-path: inset(0 0 0 0); } }
@keyframes settle { to { transform: scale(1); } }


@media (max-width: 960px) {
  .hero { padding-top: 0; }
  .hero-grid { row-gap: 36px; }
  .hero-figure {
    grid-column: 1 / -1;
    grid-row: 1;
    margin-inline: calc(var(--gutter) * -1);
  }
  .hero-figure .frame { aspect-ratio: 3 / 2; }
  .hero-figure .frame img { object-position: 50% 56%; }
  .hero-figure .plate { padding-inline: var(--gutter); }
  .hero-copy { grid-column: 1 / -1; padding-bottom: 0; }
  .hero-title { font-size: clamp(2.9rem, 11.4vw, 5.4rem); }
}



/* --------------------------------------------------------------------------
   B: The idea
   -------------------------------------------------------------------------- */

.idea { padding-block: var(--section) 0; position: relative; }

.idea-grid { align-items: start; }

.idea-figure {
  grid-column: 1 / span 7;
  margin-left: calc(var(--gutter) * -1);
}
.idea-figure .frame { aspect-ratio: 3 / 2; }
.idea-figure .frame img { object-position: 40% 50%; }
.idea-figure .plate { padding-left: var(--gutter); }

.idea-copy {
  grid-column: 9 / span 4;
  padding-top: clamp(24px, 6vw, 120px);
}
.idea-copy .h2 { margin-bottom: 36px; }
.idea-copy .intro {
  font-family: var(--display);
  font-size: clamp(1.4rem, 1.7vw, 1.7rem);
  line-height: 1.28;
  color: var(--ink);
  margin-bottom: 24px;
  max-width: 26ch;
}

.idea-quote {
  grid-column: 3 / span 9;
  margin: clamp(88px, 11vw, 168px) 0 0;
  position: relative;
  padding-left: clamp(28px, 4vw, 64px);
}
.idea-quote::before {
  content: "";
  position: absolute;
  left: 0; top: .45em; bottom: .3em;
  width: 1px;
  background: var(--oxblood);
}

/* Three principles as a typographic index, not cards */
.principles {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--col-gap);
  margin-top: clamp(88px, 10vw, 150px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
  list-style: none;
}
.principle { padding-right: 8%; }
.principle .num {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--hint);
  margin-bottom: 18px;
}
.principle h3 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 3.4vw, 3.4rem);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: .01em;
}
.principle p { color: var(--muted); max-width: 34ch; margin: 0; font-size: 16px; }
.principle .soon {
  display: inline-block;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--navy);
}

@media (max-width: 960px) {
  .idea-figure { grid-column: 1 / -1; margin-right: 12vw; }
  .idea-copy { grid-column: 1 / -1; padding-top: 48px; }
  .idea-quote { grid-column: 1 / -1; padding-left: 24px; }
  .principles { grid-template-columns: 1fr; gap: 0; border-top: 0; padding-top: 0; }
  .principle { padding: 28px 0; border-top: 1px solid var(--line); }
}

/* --------------------------------------------------------------------------
   C: What artists can discover
   -------------------------------------------------------------------------- */

.discover { padding-top: var(--section); }

.discover-head { align-items: end; margin-bottom: clamp(72px, 9vw, 136px); }
.discover-head .h2 { grid-column: 1 / span 7; }
.discover-head .h2 .kicker { display: flex; }
.discover-head .side {
  grid-column: 8 / span 5;
  color: var(--muted);
  max-width: 46ch;
  margin: 0;
}
.discover-head .side p:last-child { margin-bottom: 0; }

.chapter-num {
  display: block;
  font-family: var(--display);
  font-size: clamp(4rem, 7vw, 7rem);
  line-height: .8;
  color: var(--oxblood);
  margin-bottom: 28px;
  font-style: italic;
}
.chapter-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 20px;
}
.chapter .h3 { margin-bottom: 24px; }

/* 01: text holds the left margin, the gallery fills the right */
.chapter-one { align-items: start; }
.chapter-one .chapter-copy {
  grid-column: 1 / span 4;
  position: sticky;
  top: calc(var(--header-h) + 48px);
  padding-top: clamp(0px, 4vw, 64px);
}
.chapter-one .gallery {
  grid-column: 6 / -1;
  margin-right: calc(var(--gutter) * -1);
}
.chapter-one .gallery .frame { aspect-ratio: 3 / 2; }
.chapter-one .gallery .plate { padding-right: var(--gutter); justify-content: flex-end; }
.chapter-one .mural {
  grid-column: 6 / span 3;
  margin-top: clamp(-200px, -11vw, -80px);
  position: relative;
  z-index: 2;
}
.chapter-one .mural .frame {
  aspect-ratio: 4 / 5;
  box-shadow: 0 0 0 clamp(8px, 1vw, 14px) var(--ivory);
}
.chapter-one .mural .frame img { object-position: 60% 40%; }
.chapter-one .aside-note {
  grid-column: 9 / span 4;
  align-self: center;
  margin: 0;
  padding-left: clamp(8px, 2vw, 40px);
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.3rem, 1.6vw, 1.6rem);
  line-height: 1.25;
  color: var(--ink-soft);
  max-width: 18ch;
}

/* 02: a diptych of two materials meeting, the words beneath */
.chapter-two { margin-top: clamp(120px, 14vw, 220px); align-items: start; }
.chapter-two .head-fig { grid-column: 1 / span 5; }
.chapter-two .head-fig .frame { aspect-ratio: 3 / 4; }
.chapter-two .head-fig .frame img { object-position: 42% 50%; }
.chapter-two .basket-fig {
  grid-column: 7 / -1;
  margin-top: clamp(80px, 16vw, 260px);
  margin-right: calc(var(--gutter) * -1);
}
.chapter-two .basket-fig .frame { aspect-ratio: 16 / 10; }
.chapter-two .basket-fig .plate { padding-right: var(--gutter); }
.chapter-two .chapter-copy {
  grid-column: 7 / span 5;
  margin-top: clamp(48px, 5vw, 80px);
}
.meet-sign {
  display: inline-block;
  font-family: var(--display);
  font-style: italic;
  color: var(--oxblood);
  font-size: 1.1em;
  padding-left: .06em;
}

.honest {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--hint);
  max-width: 46ch;
}

@media (max-width: 960px) {
  .discover-head .h2, .discover-head .side { grid-column: 1 / -1; }
  .discover-head .side { margin-top: 28px; }

  .chapter-one .chapter-copy { grid-column: 1 / -1; position: static; padding-top: 0; margin-bottom: 40px; }
  .chapter-one .gallery { grid-column: 1 / -1; margin-inline: calc(var(--gutter) * -1); }
  .chapter-one .gallery .plate { padding-inline: var(--gutter); justify-content: flex-start; padding-right: 45%; }
  .chapter-one .mural { grid-column: 6 / -1; margin-top: -56px; }
  .chapter-one .aside-note { grid-column: 1 / span 5; grid-row: 4; align-self: center; margin: 32px 0 0; font-size: 1.2rem; }

  .chapter-two .head-fig { grid-column: 1 / span 9; }
  .chapter-two .basket-fig { grid-column: 4 / -1; margin-top: -48px; position: relative; z-index: 2; }
  .chapter-two .basket-fig .frame { box-shadow: 0 0 0 10px var(--ivory); }
  .chapter-two .chapter-copy { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .chapter-one .mural { grid-column: 5 / -1; }
  .chapter-one .aside-note { grid-column: 1 / span 4; font-size: 1.05rem; }
}

/* --------------------------------------------------------------------------
   Disciplines band
   -------------------------------------------------------------------------- */

.practices {
  margin-top: var(--section);
  padding-block: clamp(80px, 10vw, 150px);
  background: var(--paper);
  border-block: 1px solid var(--line);
  position: relative;
}
.practices-grid { align-items: end; }
.practices .kicker { grid-column: 1 / -1; }
.practice-list {
  grid-column: 1 / span 10;
  font-family: var(--display);
  font-size: clamp(2.1rem, 4.4vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -.005em;
  color: var(--ink);
  margin: 0;
  max-width: 30ch;
}
.practice-list span { transition: color var(--t-med) var(--ease-out); }
.practice-list .muted { color: #9a8f7c; }
.practice-list em { color: var(--oxblood); }
.practices-note {
  grid-column: 1 / span 7;
  margin: clamp(40px, 4vw, 60px) 0 0;
  color: var(--muted);
  max-width: 46ch;
}

/* --------------------------------------------------------------------------
   D: Closing
   -------------------------------------------------------------------------- */

.closing {
  position: relative;
  background: var(--navy);
  color: var(--paper);
  padding-block: clamp(100px, 12vw, 190px);
  overflow: hidden;
  isolation: isolate;
}
.closing::after {
  /* the one living element here: a slow tide of light across the navy */
  content: "";
  position: absolute;
  inset: -20% -10%;
  z-index: -1;
  background: radial-gradient(48% 60% at 70% 50%, rgba(201, 216, 228, .10), transparent 70%);
  animation: tide 16s var(--ease-soft) infinite alternate;
  animation-delay: -4s;
}
@keyframes tide {
  from { transform: translate3d(-4%, -2%, 0); opacity: .7; }
  to   { transform: translate3d(4%, 3%, 0);   opacity: 1; }
}

.closing-grid { align-items: center; }
.closing-copy { grid-column: 2 / span 9; position: relative; z-index: 2; }
.closing .kicker { color: var(--powder); }
.closing-title {
  font-family: var(--display);
  font-size: clamp(3.1rem, 7.6vw, 8rem);
  line-height: .96;
  letter-spacing: -.014em;
  margin-bottom: 44px;
  color: var(--paper);
}
.closing-title em { font-style: italic; color: var(--powder); }
.closing-copy .body-copy { color: rgba(246, 240, 229, .78); max-width: 44ch; margin-bottom: 44px; font-size: 17px; }
.closing-copy .reassure { color: rgba(246, 240, 229, .66); }

@media (max-width: 960px) {
  .closing-copy { grid-column: 1 / -1; }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--ivory);
  padding-block: clamp(64px, 7vw, 100px) 32px;
  font-size: 15px;
  color: var(--muted);
}
.footer-grid { row-gap: 40px; }
.footer-id { grid-column: 1 / span 5; }
.footer-id .brand { margin-bottom: 18px; }
.footer-id .expansion {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--ink);
  margin-bottom: 10px;
}
.footer-id p { max-width: 40ch; }
.footer-col { grid-column: span 3; }
.footer-col:first-of-type { grid-column: 7 / span 3; }
.footer-col h2 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 4px; }
.footer-col a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  text-decoration: none;
  color: var(--ink-soft);
}
.footer-col a:hover { color: var(--oxblood); }
.footer-col p { margin: 0; }
.unconfigured { color: var(--hint); font-style: italic; }

.footer-base {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--hint);
}
.footer-base p { margin: 0; max-width: 80ch; }

@media (max-width: 960px) {
  .footer-id { grid-column: 1 / -1; }
  .footer-col, .footer-col:first-of-type { grid-column: span 6; }
}

/* --------------------------------------------------------------------------
   Content pages (privacy, 404)
   -------------------------------------------------------------------------- */

.doc {
  padding-block: clamp(56px, 8vw, 120px);
}
.doc-inner { max-width: 720px; }
.doc h1 {
  font-family: var(--display);
  font-size: clamp(2.8rem, 5.4vw, 4.8rem);
  line-height: 1;
  margin-bottom: 28px;
}
.doc h2 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  line-height: 1.15;
  margin: 56px 0 14px;
}
.doc p, .doc li { color: var(--ink-soft); max-width: 66ch; }
.doc ul { padding-left: 20px; margin-bottom: 1em; }
.doc li { margin-bottom: 6px; }
.doc .meta { color: var(--hint); font-size: 14px; }
.doc a { color: var(--ink); text-underline-offset: .2em; }
.doc a:hover { color: var(--oxblood); }

/* --------------------------------------------------------------------------
   Motion preferences and hidden tabs
   -------------------------------------------------------------------------- */

body.paused *, body.paused *::before, body.paused *::after { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    transition-delay: 0ms !important;
  }
  .js .reveal > *,
  .js .reveal-img .frame,
  .js .hero-after > * { opacity: 1 !important; transform: none !important; }
  .js .reveal-img .frame img,
  .js .hero-figure .frame img { transform: none !important; }
  .js .hero-title .line > span { transform: none !important; }
  .js .hero-figure .frame { clip-path: none !important; }
  body::before { animation: none !important; }
}

/* --------------------------------------------------------------------------
   Phone refinements
   -------------------------------------------------------------------------- */

@media (max-width: 560px) {
  .hero-figure .frame { aspect-ratio: 4 / 3; }
  .hero-figure .frame img { object-position: 50% 52%; }
}

@media (max-width: 560px) {
  :root { --section: 88px; }
  .btn { padding: 0 8px 0 22px; gap: 12px; letter-spacing: 0; font-size: 14.5px; white-space: nowrap; }
  .hero-copy .btn, .closing-copy .btn { width: 100%; justify-content: space-between; }
  .btn-small { padding: 0 16px; font-size: 14px; }
}

@media (max-width: 350px) {
  .btn { white-space: normal; text-align: left; }
}
