:root {
  --navy: #0a1220;
  --navy-2: #0f1a2e;
  --bone: #eeeae1;
  --mist: #a9b0bd;
  --slate: #4c5361;
  --ink: #0a0a09;
  --amber: #f0a13a;
  --line: rgba(238, 234, 225, .16);
  --serif: "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --sans: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --gutter: clamp(16px, 3vw, 40px);
  --nav-h: 64px;
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--navy);
  color: var(--bone);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* Fine grain, quieter than Rough Cut's */
body::after {
  content: "";
  position: fixed;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background-image: var(--noise);
  opacity: .05;
  pointer-events: none;
  z-index: 100;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--bone); color: var(--ink); padding: 8px 12px; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.mono { font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.dim { color: var(--mist); }
.serif { font-family: var(--serif); }
.wrap { max-width: 1320px; margin: 0 auto; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 24px;
  padding: 0 var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s;
}
.nav.scrolled, .nav.open {
  background: rgba(10, 18, 32, .86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-color: var(--line);
}
.brand { font: 500 28px/1 var(--serif); letter-spacing: .02em; }
.nav-links { display: flex; gap: 30px; margin-left: auto; font-size: 17px; }
.nav-links a { opacity: .8; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; }
.nav-toggle {
  display: none; margin-left: auto;
  background: none; color: var(--bone);
  border: 1px solid var(--line); border-radius: 2px;
  padding: 9px 12px;
  font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  cursor: pointer;
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto;
    flex-direction: column; gap: 0;
    margin: 0; padding: 8px var(--gutter) 28px;
    background: var(--navy);
    border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav-links a { font: 400 34px/1.2 var(--serif); padding: 10px 0; border-bottom: 1px solid var(--line); opacity: 1; }
  .nav.open .nav-links { opacity: 1; visibility: visible; transform: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: clamp(560px, 100svh, 1100px);
  display: flex; align-items: flex-end;
  padding: calc(var(--nav-h) + 40px) var(--gutter) clamp(48px, 8vh, 96px);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
/* Parallax layers. main.js sets --sy (scroll) and --mx/--my (pointer, -1..1); --k is how far
   back a layer sits, --px how far it leans toward the pointer. Oversized so leaning never shows an edge. */
.hero-bg .layer {
  position: absolute; top: -24px; left: -24px;
  width: calc(100% + 48px); height: calc(100% + 48px); max-width: none;
  transform: translate3d(0, calc(var(--sy, 0px) * var(--k, 0)), 0);
  translate: calc(var(--mx, 0) * var(--px, 0px) * -1) calc(var(--my, 0) * var(--px, 0px) * -.5);
  transition: translate 1.4s cubic-bezier(.2,.7,.2,1);
  will-change: transform;
}
.hero-bg .sun { animation: sun-breathe 9s ease-in-out infinite alternate; }
@keyframes sun-breathe { to { opacity: .6; } }
/* Where the browser supports scroll-driven animations, the sinking runs on the page's own scroll
   timeline, so it stays in step with the finger on phones. main.js then only handles the pointer
   lean; without support it falls back to setting --sy from scroll events. 1200px is past the
   tallest hero, so a layer always sinks --k times the distance scrolled. */
@supports (animation-timeline: scroll()) {
  .hero-bg .layer {
    transform: none;
    animation: hero-sink linear both;
    animation-timeline: scroll(root block);
    animation-range: 0px 1200px;
  }
  .hero-bg .sun {
    animation: hero-sink linear both, sun-breathe 9s ease-in-out infinite alternate;
    animation-timeline: scroll(root block), auto;
    animation-range: 0px 1200px, normal;
  }
}
@keyframes hero-sink { to { transform: translate3d(0, calc(var(--k, 0) * 1200px), 0); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(10,18,32,.5), rgba(10,18,32,0) 30%, rgba(10,18,32,0) 55%, rgba(10,18,32,.85));
}
.hero-inner { width: 100%; }
.hero-role { color: var(--mist); }
.hero-role a { color: var(--bone); background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; }
.hero-role a:hover { color: var(--amber); }
.hero-name {
  /* Cormorant's descenders hang well below a tight line box; the em-based bottom margin keeps the "y" clear of the subline at every size */
  margin: .12em 0 .34em -.04em;
  font: 400 clamp(3.6rem, 11vw, 10.5rem)/.86 var(--serif);
  letter-spacing: -.015em;
}
.hero-sub { max-width: 42ch; font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.45; color: var(--mist); text-wrap: balance; }

/* ---------- Sections ---------- */
.section { padding: clamp(88px, 11vw, 160px) var(--gutter); }
.light { background: var(--bone); color: var(--ink); --line: rgba(10, 10, 9, .16); }
.light .dim { color: var(--slate); }
.label {
  padding-bottom: 16px; margin-bottom: clamp(32px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--mist);
}
.light .label { color: var(--slate); }
.h2 { font: 400 clamp(2.6rem, 5.4vw, 5rem)/1 var(--serif); letter-spacing: -.01em; }

/* About */
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 104px); align-items: start; }
.about-portrait img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.lede { font: 400 clamp(1.85rem, 3.1vw, 2.9rem)/1.14 var(--serif); letter-spacing: -.005em; margin-bottom: clamp(28px, 4vw, 48px); }
.lede a { background: linear-gradient(currentColor, currentColor) 0 92% / 100% 1px no-repeat; }
.lede a:hover { color: #9a5a12; }
.about-copy p:not(.lede) { max-width: 58ch; color: #3d3d39; margin-bottom: 16px; }

/* Path */
.path { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: clamp(48px, 6vw, 88px); }
.path li { position: relative; border-top: 1px solid var(--line); padding-top: 22px; }
.path li::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--mist); }
.path .now { border-top-color: var(--amber); }
.path .now::before { background: var(--amber); }
.idx { display: flex; gap: 12px; margin-bottom: clamp(32px, 4vw, 64px); font: 500 12px/1 var(--mono); letter-spacing: .08em; color: var(--mist); }
.idx em { font-style: normal; text-transform: uppercase; color: var(--amber); }
.role { color: var(--mist); }
.path h3 { margin: 10px 0 12px; font: 400 clamp(1.7rem, 2.3vw, 2.2rem)/1.05 var(--serif); }
.path li > p:last-child { color: var(--mist); font-size: 16px; max-width: 30ch; }
.edu {
  display: grid; grid-template-columns: 1fr 1.5fr 1.5fr; gap: 24px; align-items: baseline;
  margin-top: clamp(56px, 7vw, 104px); padding-top: 20px; border-top: 1px solid var(--line);
}
.edu p:not(:first-child) { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.edu .serif { font-size: clamp(1.4rem, 2vw, 1.8rem); line-height: 1.1; }

/* Service */
.light .idx { color: var(--slate); }
.service-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 104px); align-items: start; }
.service-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.service-photo figcaption { margin-top: 14px; }
.service-copy .h2 { margin-bottom: clamp(24px, 3vw, 40px); }
.service-copy p { max-width: 58ch; color: #3d3d39; margin-bottom: 16px; }
.pull { margin-top: clamp(32px, 4vw, 56px); padding-left: 24px; border-left: 2px solid #b4691a; }
.pull p { margin: 0; max-width: 22ch; font: italic 400 clamp(1.9rem, 3.2vw, 3rem)/1.1 var(--serif); color: var(--ink); }
.pull cite { display: block; margin-top: 16px; font-style: normal; }
.pull cite a { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }
.pull cite a:hover { color: #9a5a12; }
.lessons-title {
  margin-top: clamp(72px, 9vw, 136px); padding-top: 20px; border-top: 1px solid var(--line);
  font: 400 clamp(2rem, 3.4vw, 3rem)/1.05 var(--serif);
}
.lessons { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; margin-top: clamp(32px, 4vw, 56px); }
.lessons li { border-top: 1px solid var(--ink); padding-top: 18px; }
.lessons .idx { margin-bottom: clamp(20px, 3vw, 40px); }
.lessons h4 { margin-bottom: 10px; font: 500 clamp(1.35rem, 1.8vw, 1.6rem)/1.1 var(--serif); }
.lessons p { font-size: 15.5px; line-height: 1.55; color: var(--slate); }

/* Press */
.press-list { border-bottom: 1px solid var(--line); }
.press-item {
  display: grid; grid-template-columns: 150px 210px 1fr auto; align-items: baseline; gap: 24px;
  padding: 28px 0; border-top: 1px solid var(--line);
  transition: color .2s;
}
.press-list li:first-child .press-item { border-top: 0; padding-top: 0; }
.press-title { font: 400 clamp(1.5rem, 2.4vw, 2.2rem)/1.1 var(--serif); }
.press-arrow { font-size: 22px; transition: transform .2s; }
.press-item:hover { color: var(--amber); }
.press-item:hover .press-arrow { transform: translate(3px, -3px); }

/* Rough Cut feature, in Rough Cut's own voice */
.rc {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(104px, 14vw, 200px) var(--gutter);
  background:
    radial-gradient(70% 55% at 50% 100%, rgba(240,161,58,.42), rgba(138,69,25,.22) 45%, transparent 75%),
    var(--ink);
  font-family: var(--sans);
  text-align: center;
}
.rc-inner { display: flex; flex-direction: column; align-items: center; }
.rc-mark { width: clamp(64px, 7vw, 96px); height: clamp(64px, 7vw, 96px); color: var(--bone); }
.rc-meta { margin: 28px 0 22px; color: #b4b0a6; }
.rc-title {
  max-width: 21ch;
  font-weight: 500; font-size: clamp(2.2rem, 5.2vw, 5.25rem); line-height: .92; letter-spacing: -.03em;
  text-transform: uppercase; text-wrap: balance;
}
.arrow-link {
  display: inline-flex; gap: 10px; margin-top: clamp(32px, 4vw, 48px); padding: 15px 20px;
  border: 1px solid rgba(239,236,228,.35);
  font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  transition: background-color .2s, color .2s;
}
.arrow-link:hover { background: var(--bone); color: var(--ink); }

/* Footer */
.footer { background: var(--navy-2); padding: clamp(64px, 8vw, 112px) var(--gutter) 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.3fr; gap: 32px; align-items: start; }
.footer-name { font: 400 clamp(2.4rem, 4.6vw, 4.25rem)/.95 var(--serif); }
.footer-links { margin-top: 14px; display: grid; gap: 6px; font-size: 18px; }
.footer-links a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s; overflow-wrap: anywhere; }
.footer-links a:hover { background-size: 100% 1px; }
.footer-row {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: clamp(56px, 7vw, 96px); padding-top: 18px; border-top: 1px solid var(--line);
  color: var(--mist);
}

/* Reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .lessons { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
}
@media (max-width: 1000px) {
  .path { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .press-item { grid-template-columns: 130px 1fr auto; }
  .press-item > .mono:nth-child(2) { grid-column: 2; grid-row: 1; }
  .press-title { grid-column: 1 / 3; }
  .edu { grid-template-columns: 1fr 1fr; }
  .edu > p:first-child { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-name { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .about-grid, .path, .edu, .footer-grid, .service-grid, .lessons { grid-template-columns: 1fr; }
  .about-portrait, .service-photo { max-width: 420px; }
  .lessons .idx { margin-bottom: 14px; }
  .idx { margin-bottom: 24px; }
  .edu { gap: 16px; }
}

