/* ============================================================
   Maurice Abdou, personal site
   Paper white, warm greys, deep gold. Black kept for the marks
   and the primary button, so the original identity survives.

   The dark black-and-gold version is preserved in styles-dark.css.
   ============================================================ */

/* ============================================================
   FONTS, served from this origin

   These were coming from fonts.googleapis.com, which meant a
   render-blocking stylesheet on a third-party host, a DNS lookup, a TLS
   handshake and only then the font files themselves, all before the page
   could show a single word in the right typeface.

   Three files, not eight: Google serves these as variable fonts, so the
   four Inter weights it hands back are byte-for-byte the same file, and so
   are the three Newsreader ones. 383KB of downloads collapsed to 128KB.

   The unicode-range is Google's own latin subset. Everything on this page
   lives inside it, accents included (Athenee, Secretaire), along with the
   middot, the curly apostrophe and the arrow in the footer.
   ============================================================ */

@font-face{
  font-family:"Inter";
  font-style:normal;
  font-weight:400 700;
  font-display:swap;
  src:url("../fonts/inter-var.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* Inter's italic, which the page actually uses (the note under the values,
   and any <em>). The old request loaded Newsreader's italic instead, which
   nothing on the page ever asked for, while the italic that IS used was
   being faked by the browser slanting the upright. */
@font-face{
  font-family:"Inter";
  font-style:italic;
  font-weight:400 700;
  font-display:swap;
  src:url("../fonts/inter-var-italic.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face{
  font-family:"Newsreader";
  font-style:normal;
  font-weight:400 600;
  font-display:swap;
  src:url("../fonts/newsreader-var.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root{
  /* paper, lightest to deepest */
  --paper:#FFFFFF;      /* page base            */
  --paper-2:#FBFAF7;    /* alternate band       */
  --paper-3:#F5F3EE;    /* cards                */
  --paper-4:#EDEAE2;    /* raised / hover       */
  --line:#E4E0D6;       /* hairlines            */
  --line-2:#D2CCBE;     /* stronger hairlines   */

  /* ink. Every one of these clears 4.5:1 on cards as well as paper */
  --ink:#14130F;        /* headings             */
  --ink-2:#38362F;      /* body                 */
  --ink-3:#63605A;      /* muted                */
  --ink-4:#6E6B62;      /* faint                */

  /* gold, deepened so it is legible on white rather than decorative */
  --gold:#8A6B10;       /* gold used as text    */
  --gold-2:#B8942B;     /* gold used as a line  */
  --gold-3:#D9BE68;     /* gold used as a wash  */
  --gold-4:#F0E4BE;     /* palest tint          */
  --gold-deep:#5E480B;

  --black:#14130F;      /* the marks and the primary button */

  --shell:1180px;
  --pad:clamp(20px,5vw,40px);

  --f-display:"Newsreader",Georgia,"Times New Roman",serif;
  --f-body:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;

  --ease:cubic-bezier(.22,.61,.36,1);

  /* One timing scale for the whole site. Hover feedback has to land while
     the pointer is still on the thing, so it is fast. The path and the
     reveals are narrative, so they are allowed to take their time. Before
     this there were six durations between .3s and .6s doing the same job,
     and every hover on the page felt a beat late. */
  --t-fast:150ms;     /* nav, chips, small links             */
  --t-mid:250ms;      /* buttons, cards, anything that lifts */
  --t-slow:450ms;     /* the portrait, the path nodes        */
  --t-reveal:520ms;   /* scroll reveals                      */

  --banner-h:76px;

  color-scheme:light;
}

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

html{
  scroll-behavior:smooth;
  scroll-padding-top:calc(var(--banner-h) + 24px);
  -webkit-text-size-adjust:100%;
}

/* The page floor. Sections above are transparent or semi-transparent
   so the golden path stays visible right through them. */
body{
  margin:0;
  background:var(--paper);
  color:var(--ink-2);
  font-family:var(--f-body);
  font-size:16px;
  font-weight:400;
  line-height:1.7;
  letter-spacing:0;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
h1,h2,h3{margin:0;font-family:var(--f-display);font-weight:500;line-height:1.14;color:var(--ink)}
p{margin:0 0 1.15em}
p:last-child{margin-bottom:0}
strong{color:var(--ink);font-weight:600}
em{font-style:italic;color:var(--gold)}

::selection{background:var(--gold-3);color:var(--ink)}

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

/* Off screen until tabbed to, so a keyboard user can jump the banner
   instead of walking the whole nav on every visit. */
.skip{
  position:absolute;
  left:12px;top:-60px;
  z-index:70;
  padding:11px 18px;
  background:var(--black);
  color:var(--paper);
  font-size:12px;font-weight:600;
  letter-spacing:.12em;text-transform:uppercase;
  transition:top var(--t-fast) var(--ease);
}
.skip:focus{top:12px}

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

/* Between tablet and wide desktop there is no natural gutter beside the
   1180px column, so the page gives up a little width to leave the golden
   path a lane of its own. Above ~1290px the margins provide it for free,
   and the two meet at roughly the same number, so there is no jump at the seam. */
@media (min-width:700px) and (max-width:1290px){
  :root{--pad:clamp(56px,7.5vw,92px)}
}

/* inline icons ------------------------------------------------ */
svg{width:18px;height:18px;flex:none}
svg:not(.ico-fill){
  fill:none;stroke:currentColor;stroke-width:1.6;
  stroke-linecap:round;stroke-linejoin:round;
}
svg.ico-fill{fill:currentColor;stroke:none}


/* ============================================================
   BANNER
   ============================================================ */

.banner{
  position:fixed;
  inset:0 0 auto 0;
  z-index:60;
  height:var(--banner-h);
  background:rgba(255,255,255,.86);
  backdrop-filter:blur(14px) saturate(140%);
  -webkit-backdrop-filter:blur(14px) saturate(140%);
  border-bottom:1px solid var(--line);
}

/* the gold "rays": an art-deco fan, barely there */
.banner__rays{
  position:absolute;inset:0;
  overflow:hidden;
  pointer-events:none;
  opacity:.5;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 32%,#000 68%,transparent);
          mask-image:linear-gradient(90deg,transparent,#000 32%,#000 68%,transparent);
}
.banner__rays::before{
  content:"";
  position:absolute;
  left:50%;top:-260%;
  width:130%;height:620%;
  transform:translateX(-50%);
  background:repeating-conic-gradient(
    from 0deg at 50% 50%,
    rgba(184,148,43,.11) 0deg 1.1deg,
    transparent 1.1deg 6deg
  );
}
/* soft warm bloom behind the monogram */
.banner::after{
  content:"";
  position:absolute;
  left:0;top:0;width:320px;height:100%;
  background:radial-gradient(120% 180% at 0% 50%,rgba(184,148,43,.10),transparent 70%);
  pointer-events:none;
}

.banner__inner{
  position:relative;
  z-index:2;
  height:100%;
  max-width:var(--shell);
  margin-inline:auto;
  padding-inline:var(--pad);
  display:flex;
  align-items:center;
  gap:clamp(16px,3vw,40px);
}

/* brand ------------------------------------------------------- */
.brand{display:flex;align-items:center;gap:13px;margin-right:auto}

/* The one place the old black-and-gold survives intact. */
.brand__monogram{
  display:grid;place-items:center;
  width:40px;height:40px;
  font-family:var(--f-display);
  font-size:16px;font-weight:600;letter-spacing:.04em;
  color:var(--gold-3);
  background:var(--black);
  transition:color var(--t-mid) var(--ease),transform var(--t-mid) var(--ease);
}
@media (hover:hover){
  .brand:hover .brand__monogram{color:var(--gold-4)}
}

.brand__text{display:flex;flex-direction:column;line-height:1.2}
.brand__name{
  font-family:var(--f-display);
  font-size:19px;font-weight:600;
  color:var(--ink);
  letter-spacing:-.005em;
}
.brand__role{
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.18em;
  color:var(--gold);
  font-weight:600;
}

/* nav --------------------------------------------------------- */
.nav{display:flex;gap:clamp(14px,2.2vw,30px)}
.nav a{
  position:relative;
  font-size:12.5px;
  font-weight:500;
  letter-spacing:.11em;
  text-transform:uppercase;
  color:var(--ink-3);
  padding:6px 0;
  transition:color var(--t-fast) var(--ease);
}
.nav a::after{
  content:"";
  position:absolute;left:0;right:0;bottom:0;
  height:1.5px;
  background:var(--gold-2);
  /* Wipes in from the left, the way the line is read, instead of growing
     out of its own middle. */
  transform:scaleX(0);transform-origin:left;
  transition:transform var(--t-mid) var(--ease);
}
.nav a.is-current{color:var(--ink)}
.nav a.is-current::after{transform:scaleX(1)}
@media (hover:hover){
  .nav a:hover{color:var(--ink)}
  .nav a:hover::after{transform:scaleX(1)}
}

/* progress bar ------------------------------------------------ */
.banner__progress{
  position:absolute;
  left:0;right:0;bottom:-1px;
  height:2px;
  background:rgba(184,148,43,.14);
}
/* scaleX, not width. This is set on every scroll frame, and width is a
   layout property: changing it forces the page to be laid out again each
   time. A transform is handled by the compositor, costs nothing, and needs
   no transition to smooth it over, so the bar is now frame-exact instead
   of permanently 100ms behind the scroll. */
.banner__progress i{
  display:block;height:100%;width:100%;
  transform:scaleX(0);
  transform-origin:left center;
  background:linear-gradient(90deg,var(--gold-3),var(--gold-2) 55%,var(--gold));
}

/* mobile toggle ----------------------------------------------- */
.nav-toggle{
  display:none;
  width:42px;height:42px;
  background:transparent;
  border:1px solid var(--line-2);
  cursor:pointer;
  padding:0;
  place-items:center;
  gap:5px;
  flex-direction:column;
}
.nav-toggle span{
  display:block;width:17px;height:1.5px;background:var(--ink);
  transition:transform var(--t-fast) var(--ease),opacity var(--t-fast) var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(6.5px) rotate(45deg)}
.nav-toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
.nav-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-6.5px) rotate(-45deg)}

.drawer{
  position:fixed;
  top:var(--banner-h);left:0;right:0;
  z-index:55;
  background:rgba(255,255,255,.98);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line-2);
  box-shadow:0 18px 40px -24px rgba(20,19,15,.35);
  padding:8px var(--pad) 20px;
  display:flex;flex-direction:column;
  /* The one control a phone user actually touches, and it used to snap.
     `hidden` still carries the real open/closed state for assistive
     technology; the class is only what makes it move. */
  transform:translateY(-10px);
  opacity:0;
  transition:opacity 200ms var(--ease),transform 200ms var(--ease);
}
.drawer.is-open{opacity:1;transform:none}
/* The page behind the open drawer should not scroll away under it. */
body.nav-open{overflow:hidden}
.drawer[hidden]{display:none}
.drawer a{
  padding:15px 2px;
  font-size:13px;font-weight:500;
  letter-spacing:.13em;text-transform:uppercase;
  color:var(--ink-2);
  border-bottom:1px solid var(--line);
}
.drawer a:last-child{border-bottom:0}
.drawer__cv{color:var(--gold) !important;font-weight:600}


/* ============================================================
   BUTTONS
   ============================================================ */

.btn{
  display:inline-flex;align-items:center;gap:9px;
  padding:11px 20px;
  font-family:var(--f-body);
  font-size:12px;font-weight:600;
  letter-spacing:.11em;text-transform:uppercase;
  border:1px solid transparent;
  cursor:pointer;
  white-space:nowrap;
  transition:transform var(--t-mid) var(--ease),box-shadow var(--t-mid) var(--ease),
             background var(--t-mid) var(--ease),color var(--t-mid) var(--ease),
             border-color var(--t-mid) var(--ease);
}
.btn svg{width:15px;height:15px}
.btn--lg{padding:15px 26px;font-size:12.5px}

/* A press has to answer at once or the control reads as dead, and on a
   phone this is the only feedback there is: hover does not exist on a
   touch screen, so every hover rule on this page used to amount to
   nothing on the device most people will open the site with. */
.btn:active{transform:translateY(0) scale(.985);transition-duration:60ms}

/* Solid black reads stronger on paper than a gold fill, and keeps the
   gold for the things that should actually catch the eye. */
.btn--gold{
  color:var(--paper);
  background:var(--black);
  box-shadow:0 2px 14px -6px rgba(20,19,15,.5);
}

.btn--ghost{
  color:var(--ink);
  border-color:var(--line-2);
  background:var(--paper);
}

/* Hover rules are gated on a real pointer. On a touch screen the browser
   fakes :hover on tap and then leaves it stuck there, so a card you
   tapped stayed lifted until you tapped something else. */
@media (hover:hover){
  .btn--gold:hover{
    transform:translateY(-2px);
    background:#231F14;
    box-shadow:0 10px 26px -12px rgba(20,19,15,.55);
  }
  .btn--ghost:hover{
    transform:translateY(-2px);
    border-color:var(--gold-2);
    color:var(--gold);
    background:rgba(184,148,43,.06);
  }
}

.banner__cv{padding:10px 17px}


/* ============================================================
   THE PATH
   ============================================================ */

/* As tall as the document and positioned in it, so the browser scrolls the
   path natively along with everything else.

   This used to be a fixed, viewport-sized box whose contents JavaScript slid
   by -scrollY on every frame. That cannot stay in step on a phone: scrolling
   is driven by the compositor thread while the transform is applied on the
   main thread, so the path lagged and juddered behind the text. Letting the
   page scroll it means there is nothing to keep in sync. */
.trail{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  z-index:0;
  pointer-events:none;
  overflow:hidden;
}
.trail svg{display:block;width:100%;height:100%;overflow:hidden}

.trail__track{
  stroke:var(--line-2);
  stroke-width:1.5;
  stroke-linecap:round;
  stroke-dasharray:1 9;
}
.trail__live{
  stroke:url(#goldLine);
  stroke-width:2.4;
  stroke-linecap:round;
}
/* The halo: two wider, softer strokes sitting under the live line.
   Cheaper and far safer than an SVG blur over a 7000px-tall path. */
.trail__halo{
  stroke:var(--gold-2);
  stroke-width:9;
  stroke-linecap:round;
  opacity:.045;
}
.trail__glow{
  stroke:var(--gold-2);
  stroke-width:4.5;
  stroke-linecap:round;
  opacity:.11;
}
.trail__head{
  fill:var(--gold-2);
  filter:drop-shadow(0 0 4px rgba(184,148,43,.45));
  opacity:0;
  transition:opacity var(--t-mid) var(--ease);
}
.trail__head.is-on{opacity:1}

/* No will-change anywhere on the path, and that is deliberate: this SVG is
   as tall as the document, so promoting it would ask the GPU for a layer
   seven to nine thousand pixels tall. The browser already rasterises only
   the part you can actually see. */

/* milestone circles ------------------------------------------- */
/* The circles catching light is the one moment this whole design is built
   around, and it used to be five properties crossfading together over the
   same .6s, which reads as a colour change rather than an event. It is
   staged now: the ring takes first with a small overshoot, the halo blooms
   behind it, and the number tints last. */
.tnode__halo{
  fill:rgba(184,148,43,.10);
  opacity:0;
  transform-box:fill-box;transform-origin:center;
  transition:opacity 420ms var(--ease) 120ms;
}
.tnode__ring{
  fill:var(--paper);
  stroke:var(--line-2);
  stroke-width:1.4;
  transform-box:fill-box;transform-origin:center;
  transition:stroke 180ms var(--ease),stroke-width 180ms var(--ease);
}
.tnode__core{
  fill:var(--line-2);
  transition:fill 180ms var(--ease);
}
.tnode__num{
  font-family:var(--f-body);
  font-size:12px;font-weight:600;
  letter-spacing:.06em;
  fill:var(--ink-4);
  text-anchor:middle;
  dominant-baseline:central;
  transition:fill 300ms var(--ease) 180ms;
}
.tnode__label{
  font-family:var(--f-body);
  font-size:9.5px;font-weight:600;
  letter-spacing:.18em;
  text-transform:uppercase;
  fill:var(--ink-4);
  dominant-baseline:central;
  transition:fill 300ms var(--ease) 180ms,opacity 300ms var(--ease) 180ms;
  opacity:.7;
}

.tnode.is-lit .tnode__halo{opacity:1}
.tnode.is-lit .tnode__ring{
  stroke:var(--gold-2);
  stroke-width:2;
  animation:nodePop 420ms var(--ease);
}
@keyframes nodePop{
  0%  {transform:scale(1)}
  42% {transform:scale(1.085)}
  100%{transform:scale(1)}
}
/* measure() tears down and rebuilds every circle, and it runs two or three
   times during load as the fonts swap in and the portrait decodes. Without
   this the pop fires again on each rebuild. */
#trailNodes.no-pop .tnode__ring{animation:none}
.tnode.is-lit .tnode__core{fill:var(--gold-2)}
.tnode.is-lit .tnode__num{fill:var(--gold)}
.tnode.is-lit .tnode__label{fill:var(--gold);opacity:1}


/* ============================================================
   SECTIONS
   ============================================================ */

main{position:relative;z-index:1}

.section{
  position:relative;
  padding-block:clamp(72px,8.5vw,122px);
  background:transparent;
}
/* Alternating band. Kept translucent rather than solid, so the path
   dims as it passes underneath instead of disappearing. */
.section--alt{background:rgba(140,120,70,.045)}

/* hairline separators, fading at the edges */
.section+.section::before{
  content:"";
  position:absolute;top:0;left:0;right:0;height:1px;
  background:linear-gradient(90deg,transparent,var(--line) 22%,var(--line) 78%,transparent);
}

.section__head{margin-bottom:clamp(42px,6vw,68px);max-width:760px}
.section__head--center{margin-inline:auto;text-align:center}
.section__head h2{
  font-size:clamp(31px,4.7vw,52px);
  letter-spacing:-.018em;
}
.section__sub{
  margin-top:22px;
  color:var(--ink-3);
  font-size:clamp(15px,1.6vw,17px);
  max-width:62ch;
}
.section__head--center .section__sub{margin-inline:auto}

.eyebrow{
  display:flex;align-items:center;gap:11px;
  margin:0 0 18px;
  font-size:10.5px;font-weight:600;
  letter-spacing:.24em;text-transform:uppercase;
  color:var(--gold);
}
.section__head--center .eyebrow{justify-content:center}
.eyebrow__num{
  /* Newsreader's figures are fine, but the sans keeps these small
     numerals crisp at 12px. */
  font-family:var(--f-body);
  font-size:12px;font-weight:700;
  letter-spacing:.08em;
  color:var(--gold);
  padding-right:11px;
  border-right:1px solid var(--line-2);
}


/* ============================================================
   HERO
   ============================================================ */

.hero{
  position:relative;
  padding-top:calc(var(--banner-h) + clamp(54px,9vw,104px));
  padding-bottom:clamp(36px,5vw,60px);   /* the scroll hint adds its own */
  background:
    radial-gradient(72% 52% at 80% 14%,rgba(184,148,43,.10),transparent 62%),
    radial-gradient(58% 44% at 6% 88%,rgba(140,120,70,.055),transparent 66%);
  overflow:hidden;
}

.hero__grid{
  display:grid;
  grid-template-columns:minmax(0,1.18fr) minmax(0,.82fr);
  gap:clamp(36px,6vw,76px);
  align-items:center;
}

.hero__name{
  display:flex;flex-direction:column;
  font-size:clamp(50px,9vw,108px);
  font-weight:500;
  line-height:.96;
  letter-spacing:-.035em;
  margin-bottom:22px;
}
.hero__name span{color:var(--gold)}

.hero__line{
  display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;
  margin:0 0 26px;
  font-size:12px;font-weight:600;
  letter-spacing:.2em;text-transform:uppercase;
  color:var(--ink);
}
/* The separators used to be flex items of their own, so a wrap could leave
   one stranded at the end of a line with nothing after it, which is what
   happened at phone width. Hanging each one off the front of the item it
   precedes means it can never be orphaned: it goes where its own words go. */
.hero__line span{white-space:nowrap}
.hero__line span+span::before{content:"· ";color:var(--gold-2)}

.hero__pitch{
  max-width:56ch;
  font-size:clamp(15.5px,1.75vw,17.5px);
  color:var(--ink-3);
  margin-bottom:36px;
}
.hero__pitch strong{color:var(--gold);font-weight:600}

.hero__actions{display:flex;flex-wrap:wrap;gap:13px}

/* portrait ---------------------------------------------------- */
.hero__portrait{margin:0;justify-self:center;max-width:400px;width:100%}

.portrait__frame{
  position:relative;
  padding:11px;
  border:1px solid var(--line-2);
  background:var(--paper);
}
/* offset rule behind the frame, for depth without a drop shadow. Kept pale
   on paper, where a strong gold line just reads as a misaligned box. */
.portrait__frame::before{
  content:"";
  position:absolute;
  inset:14px -14px -14px 14px;
  background:var(--gold-4);
  z-index:-1;
}
.portrait__frame img{
  width:100%;
  aspect-ratio:1;
  object-fit:cover;
  filter:grayscale(.15) contrast(1.02);
  transition:filter var(--t-slow) var(--ease);
}
@media (hover:hover){
  .portrait__frame:hover img{filter:grayscale(0) contrast(1.02)}
}

.hero__portrait figcaption{
  display:flex;align-items:center;justify-content:center;gap:9px;
  margin-top:26px;
  font-size:11px;font-weight:600;
  letter-spacing:.14em;text-transform:uppercase;
  color:var(--ink-3);
}
/* This used to pulse by growing a box-shadow, which repaints every frame,
   forever, including while it is scrolled far off screen. A scaled
   pseudo-element is handled by the compositor instead and costs nothing. */
.dot{
  position:relative;
  flex:none;
  width:7px;height:7px;border-radius:50%;
  background:var(--gold-2);
}
.dot::after{
  content:"";
  position:absolute;inset:0;
  border-radius:50%;
  background:var(--gold-2);
  animation:pulse 2.6s ease-out infinite;
}
@keyframes pulse{
  0%  {transform:scale(1);opacity:.55}
  70% {transform:scale(4.1);opacity:0}
  100%{transform:scale(4.1);opacity:0}
}

.scroll-hint{
  display:flex;align-items:center;gap:13px;
  max-width:var(--shell);
  margin:clamp(40px,6vw,72px) auto 0;
  padding-inline:var(--pad);
  font-size:10px;font-weight:600;
  letter-spacing:.26em;text-transform:uppercase;
  color:var(--ink-4);
}
.scroll-hint i{
  flex:1;max-width:130px;height:1px;
  background:linear-gradient(90deg,var(--gold-2),transparent);
}


/* ============================================================
   ABOUT
   ============================================================ */

.about__grid{
  display:grid;
  grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);
  gap:clamp(32px,5vw,64px);
  align-items:start;
}
.about__lead p{
  font-size:clamp(15.5px,1.7vw,17px);
  color:var(--ink-3);
}

.about__values{
  padding:30px;
  background:var(--paper-3);
  border:1px solid var(--line);
  border-top:2px solid var(--gold-2);
}
.about__values h3{
  font-size:21px;margin-bottom:20px;
}
/* Six bare nouns in six pill shapes was the only part of this page that
   asserted something without showing anything. Each one carries its own
   short proof now, and a row per value reads faster than a wrapped field
   of chips despite holding more. */
.values{
  list-style:none;margin:0 0 20px;padding:0;
}
.values li{
  padding:11px 0;
  border-bottom:1px solid var(--line);
}
.values li:last-child{border-bottom:0}
.values span{
  display:block;
  margin-bottom:3px;
  font-size:11px;font-weight:600;
  letter-spacing:.14em;text-transform:uppercase;
  color:var(--gold);
}
.values i{
  font-style:normal;
  font-size:13.5px;
  line-height:1.45;
  color:var(--ink-3);
}
.about__note{
  font-size:14px;
  color:var(--ink-4);
  font-style:italic;
}

.facts{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
  gap:1px;
  margin:clamp(38px,5vw,60px) 0 0;
  background:var(--line);
  border:1px solid var(--line);
}
.facts>div{
  background:var(--paper-3);
  padding:24px 26px;
}
.facts dt{
  font-size:10px;font-weight:600;
  letter-spacing:.18em;text-transform:uppercase;
  color:var(--gold);
  margin-bottom:9px;
}
.facts dd{
  margin:0;
  font-variant-numeric:lining-nums;
  font-family:var(--f-display);
  font-size:22px;
  color:var(--ink);
  line-height:1.3;
}
.facts dd i{color:var(--gold-2);font-style:normal;padding-inline:3px}


/* ============================================================
   VENTURES
   ============================================================ */

/* One card per row. Two of the three carry a strip of screenshots, which
   needs the full width to stay legible, and a half-width card beside a
   tall one just leaves a hole. */
.ventures{
  display:grid;
  grid-template-columns:1fr;
  gap:clamp(18px,2.4vw,26px);
}

.venture{
  position:relative;
  display:flex;
  gap:24px;
  padding:clamp(26px,3.2vw,38px);
  background:var(--paper);
  border:1px solid var(--line);
  overflow:hidden;
  transition:border-color var(--t-mid) var(--ease),box-shadow var(--t-mid) var(--ease),transform var(--t-mid) var(--ease);
}
.venture::before{
  content:"";
  position:absolute;left:0;top:0;bottom:0;width:2px;
  background:var(--gold-2);
  transform:scaleY(0);transform-origin:top;
  transition:transform var(--t-mid) var(--ease);
}
@media (hover:hover){
  .venture:hover{
    transform:translateY(-3px);
    border-color:var(--line-2);
    box-shadow:0 18px 40px -28px rgba(20,19,15,.45);
  }
  .venture:hover::before{transform:scaleY(1)}
}

/* The logo tiles stay black, because the marks were drawn for a dark ground,
   and they keep a thread of the original black-and-gold running through. */
/* Light tiles. Webify and Sawt both supply marks drawn for a light ground
   (Webify's brand sheet names an ink version for exactly this, and Sawt's
   wordmark is black type with green Arabic), so a dark tile would swallow
   one and put the other in a white box. */
.venture__mark{
  flex:none;
  width:72px;height:72px;
  display:grid;place-items:center;
  background:var(--paper);
  border:1px solid var(--line);
}
.venture__mark img{
  width:auto;height:auto;
  max-width:46px;max-height:40px;
  object-fit:contain;
}
.venture__mark--letter{
  font-family:var(--f-display);
  font-size:25px;font-weight:600;letter-spacing:.03em;
  color:var(--gold);
}

.venture__body{min-width:0}
.venture__meta{
  display:flex;align-items:center;flex-wrap:wrap;gap:10px;
  margin:0 0 10px;
  font-size:10.5px;font-weight:600;
  letter-spacing:.15em;text-transform:uppercase;
  color:var(--ink-4);
}
.tag{
  padding:4px 10px;
  border:1px solid var(--line-2);
  color:var(--ink-3);
  letter-spacing:.12em;
}
.tag--live{
  color:var(--gold);
  border-color:rgba(184,148,43,.45);
  background:rgba(184,148,43,.07);
}

.venture h3{
  font-size:clamp(25px,3vw,33px);
  margin-bottom:13px;
}
.venture--feature h3{font-size:clamp(29px,3.8vw,42px)}
/* Capped measure. On a full-width card this paragraph otherwise ran to
   about 130 characters a line, well past what is comfortable to read. */
.venture__desc{color:var(--ink-3);font-size:15.5px;max-width:68ch}

/* ---- the work strip ---------------------------------------------- */

.work__note{
  margin:26px 0 12px;
  font-size:10.5px;font-weight:600;
  letter-spacing:.16em;text-transform:uppercase;
  color:var(--ink-4);
}
.work{
  list-style:none;
  margin:0;padding:0;
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:clamp(10px,1.3vw,16px);
}
.work li{
  margin:0;min-width:0;
  transition:transform var(--t-mid) var(--ease),box-shadow var(--t-mid) var(--ease);
}
.work__shot{position:relative;display:block}
.work img{
  width:100%;height:auto;display:block;
  border:1px solid var(--line);
  background:var(--paper);
  transition:border-color var(--t-mid) var(--ease);
}
/* These are the top of a longer page, so most of them get cut mid-element
   at the bottom. The fade says "continues" instead of "ran out". */
.work__shot::after{
  content:"";
  position:absolute;
  left:1px;right:1px;bottom:1px;
  height:26%;
  background:linear-gradient(to bottom,rgba(255,255,255,0) 0%,var(--paper) 92%);
  pointer-events:none;
}

/* Each picture says whose site it is. Without this the strip is five
   anonymous thumbnails and a reader has no way to tell the real client
   work from the demos, which is the whole point of showing it. */
.work__who{
  display:block;
  margin-top:9px;
  font-size:10.5px;font-weight:600;
  letter-spacing:.1em;text-transform:uppercase;
  color:var(--ink-2);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.work__who--demo{color:var(--ink-4);font-weight:500}

.work__next{
  margin:14px 0 0;
  font-size:10.5px;font-weight:600;
  letter-spacing:.16em;text-transform:uppercase;
  color:var(--gold);
}
/* A single supplied product shot rather than a strip of crops. It is
   already a finished composition on a white ground, so it gets no frame,
   no border and no fade: just room to sit in. */
.shot{
  margin:26px 0 0;
  max-width:380px;
}
.shot img{width:100%;height:auto;display:block}

@media (hover:hover){
  .work li:hover{
    transform:translateY(-4px);
    box-shadow:0 18px 34px -24px rgba(20,19,15,.5);
  }
  .work li:hover img{border-color:var(--line-2)}
}

/* The earliest and smallest of the three, and the only one with no
   screenshots. A narrower card reads as deliberate hierarchy rather
   than a full-width card half full of nothing. */
.venture--minor{max-width:780px}

.venture__points{
  list-style:none;margin:20px 0 0;padding:0;
  /* Four bullets. Two fixed columns keep them 2×2 rather than the
     3-then-1 rag that auto-fit produced. */
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px 30px;
}
.venture__points li{
  position:relative;
  padding-left:20px;
  font-size:14px;
  color:var(--ink-2);
}
.venture__points li::before{
  content:"";
  position:absolute;left:0;top:.62em;
  width:7px;height:1.5px;
  background:var(--gold-2);
}

.link-out{
  display:inline-flex;align-items:center;gap:7px;
  margin-top:22px;
  font-size:11.5px;font-weight:600;
  letter-spacing:.13em;text-transform:uppercase;
  color:var(--gold);
  padding-bottom:3px;
  border-bottom:1px solid rgba(184,148,43,.45);
  /* gap is a layout property, so animating it laid the row out again on
     every frame. The arrow moves itself instead. */
  transition:color var(--t-fast) var(--ease),border-color var(--t-fast) var(--ease);
}
.link-out svg{
  width:13px;height:13px;
  transition:transform var(--t-fast) var(--ease);
}
@media (hover:hover){
  .link-out:hover{color:var(--gold-deep);border-color:var(--gold)}
  .link-out:hover svg{transform:translateX(4px)}
}
.link-out:active svg{transform:translateX(4px)}


/* ============================================================
   TIMELINE
   ============================================================ */

.timeline{
  list-style:none;
  margin:0;padding:0;
  position:relative;
}
.tl{
  position:relative;
  display:grid;
  grid-template-columns:168px minmax(0,1fr);
  gap:clamp(20px,3.5vw,48px);
  padding:clamp(24px,3vw,32px) 0 clamp(24px,3vw,32px) 34px;
  border-bottom:1px solid var(--line);
}
.tl:last-child{border-bottom:0}

/* the vertical rail */
.timeline::before{
  content:"";
  position:absolute;
  left:5px;top:12px;bottom:12px;
  width:1px;
  background:linear-gradient(180deg,var(--gold-2),var(--line-2) 65%,transparent);
}

.tl__marker{
  position:absolute;
  left:0;top:clamp(28px,3.2vw,38px);
  width:11px;height:11px;
  border-radius:50%;
  background:var(--paper);
  border:1.5px solid var(--gold-2);
  transition:background var(--t-mid) var(--ease),transform var(--t-mid) var(--ease);
}
@media (hover:hover){
  .tl:hover .tl__marker{background:var(--gold-2);transform:scale(1.15)}
}
.tl--edu .tl__marker{border-style:dashed}

.tl__when{
  margin:0;
  padding-top:3px;
  font-size:11px;font-weight:600;
  letter-spacing:.15em;text-transform:uppercase;
  color:var(--gold);
}
.tl__body h3{
  font-size:clamp(21px,2.4vw,26px);
  margin-bottom:11px;
  display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;
}
.tl__at{
  font-family:var(--f-body);
  font-size:11.5px;font-weight:600;
  letter-spacing:.13em;text-transform:uppercase;
  color:var(--ink-4);
}
.tl__body p{color:var(--ink-3);font-size:15.5px;max-width:66ch}


/* ============================================================
   STRENGTHS
   ============================================================ */

/* Three explicit tracks. With auto-fit the skills card spanned two of
   three, which pushed Languages onto a second row beside two empty
   tracks and left a hole the width of the page. */
.strengths{
  display:grid;
  grid-template-columns:minmax(0,1.3fr) minmax(0,1.15fr) minmax(0,1fr);
  gap:clamp(18px,2.4vw,26px);
  align-items:stretch;
}
.card{
  padding:clamp(28px,3.2vw,36px);
  background:var(--paper-3);
  border:1px solid var(--line);
  transition:border-color var(--t-mid) var(--ease);
}
@media (hover:hover){
  .card:hover{border-color:var(--line-2)}
}
.card h3{font-size:21px;margin-bottom:18px}
.card__h2{margin-top:32px !important}
.card p{color:var(--ink-3);font-size:15px}

.card--scout{
  background:var(--paper);
  border-top:2px solid var(--gold-2);
}
.card__eyebrow{
  font-size:10px;font-weight:600;
  letter-spacing:.22em;text-transform:uppercase;
  color:var(--gold) !important;
  margin-bottom:12px !important;
}
.card__role{
  font-size:11.5px !important;font-weight:600;
  letter-spacing:.14em;text-transform:uppercase;
  color:var(--gold) !important;
  margin-bottom:16px !important;
}

.chips{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:9px}
.chips li{
  font-size:12.5px;
  padding:8px 15px;
  color:var(--ink-2);
  background:var(--paper);
  border:1px solid var(--line);
  transition:border-color var(--t-fast) var(--ease),color var(--t-fast) var(--ease);
}
@media (hover:hover){
  .chips li:hover{border-color:var(--gold-2);color:var(--gold)}
}
.chips--strong li{
  font-weight:600;
  color:var(--ink);
  border-color:var(--line-2);
}
.chips--quiet li{font-size:12px;color:var(--ink-3);background:transparent}

.langs{list-style:none;margin:0;padding:0}
.langs li{
  display:flex;align-items:baseline;justify-content:space-between;gap:14px;
  padding:13px 0;
  border-bottom:1px solid var(--line);
}
.langs li:last-child{border-bottom:0}
.langs span{font-family:var(--f-display);font-size:20px;color:var(--ink)}
.langs i{
  font-style:normal;
  font-size:10.5px;font-weight:600;
  letter-spacing:.15em;text-transform:uppercase;
  color:var(--gold);
}


/* ============================================================
   CONTACT + FOOTER
   ============================================================ */

.section--contact{
  background:radial-gradient(68% 58% at 50% 0%,rgba(184,148,43,.10),transparent 62%);
}

/* Three plain actions, each saying only what it does. The address and the
   profile slug used to be printed on the cards; they made the row look
   like a data dump and told the reader nothing they needed before
   clicking. Sized and centred as a deliberate closing row rather than
   stretched across the full column. */
.contact__cards{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:clamp(12px,1.6vw,18px);
  max-width:780px;
  margin-inline:auto;
}
.ccard{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:11px;
  padding:21px 20px;
  background:var(--paper);
  border:1px solid var(--line-2);
  transition:transform var(--t-mid) var(--ease),border-color var(--t-mid) var(--ease),
             box-shadow var(--t-mid) var(--ease),background var(--t-mid) var(--ease),
             color var(--t-mid) var(--ease);
}
.ccard:active{transform:translateY(0) scale(.99);transition-duration:60ms}
.ccard svg{width:17px;height:17px;color:var(--gold);margin:0}
.ccard__v{
  font-family:var(--f-body);
  font-size:12.5px;font-weight:600;
  letter-spacing:.13em;text-transform:uppercase;
  color:var(--ink);
  white-space:nowrap;
}
@media (hover:hover){
  .ccard:hover{
    transform:translateY(-3px);
    border-color:var(--gold-2);
    box-shadow:0 16px 34px -26px rgba(20,19,15,.45);
  }
  .ccard:hover .ccard__v{color:var(--gold)}
}

.ccard--solid{background:var(--black);border-color:var(--black)}
.ccard--solid svg{color:var(--gold-3)}
.ccard--solid .ccard__v{color:var(--paper)}
@media (hover:hover){
  .ccard--solid:hover{background:#231F14;border-color:#231F14}
  .ccard--solid:hover .ccard__v{color:var(--paper)}
}

.foot{
  position:relative;z-index:1;
  background:var(--paper-2);
  border-top:1px solid var(--line);
  padding-block:34px;
}
.foot__inner{
  display:flex;align-items:center;flex-wrap:wrap;gap:16px;
  font-size:12.5px;
  color:var(--ink-4);
}
.foot__inner p{margin:0}
.foot__mono{
  display:grid;place-items:center;
  width:32px;height:32px;
  font-family:var(--f-display);
  font-size:12px;font-weight:600;letter-spacing:.04em;
  color:var(--gold-3);
  background:var(--black);
}
.foot__top{
  margin-left:auto;
  font-size:11px;font-weight:600;
  letter-spacing:.14em;text-transform:uppercase;
  color:var(--gold);
  transition:color var(--t-fast) var(--ease);
}
@media (hover:hover){
  .foot__top:hover{color:var(--gold-deep)}
}


/* ============================================================
   SCROLL REVEAL
   ============================================================ */

/* A keyframe animation, not a transition, and that is the whole point.

   This rule and .ccard, .venture and .card all have the same specificity,
   and this one comes later in the file, so its `transition` shorthand used
   to REPLACE theirs outright. The three contact buttons ended up with no
   transition on border, background or colour at all, so those snapped,
   while their hover lift silently inherited this 800ms and crawled. An
   animation touches the transition property not at all.

   It also moves the stagger onto animation-delay. The stagger used to be
   written to transition-delay and never cleared, so a card that revealed
   with a 210ms delay then sat waiting 210ms before answering a hover, for
   the rest of the visit.

   `backwards`, never `both`: a forwards fill would leave transform under
   the animation's control permanently, and every hover lift on the page
   would be ignored. */
[data-reveal]{opacity:0}
[data-reveal].is-in{
  opacity:1;
  animation:reveal var(--t-reveal) var(--ease) backwards;
}
@keyframes reveal{
  from{opacity:0;transform:translateY(20px)}
}

/* ---- the hero arrival --------------------------------------
   The first thing anyone sees, and it had no choreography at all.

   The name is deliberately left out of the fade. Largest Contentful Paint
   is measured when something paints, and an element at opacity 0 has not
   painted, so fading the h1 in would have pushed the headline score out by
   the length of the animation. It rises instead: a translated element is
   painted the whole way, so the measurement is untouched. */
.hero__copy .eyebrow{animation:heroIn   560ms var(--ease)  60ms backwards}
.hero__name          {animation:heroRise 560ms var(--ease)       backwards}
.hero__line          {animation:heroIn   560ms var(--ease) 140ms backwards}
.hero__pitch         {animation:heroIn   560ms var(--ease) 220ms backwards}
.hero__actions       {animation:heroIn   560ms var(--ease) 300ms backwards}
.hero__portrait      {animation:heroIn   700ms var(--ease) 240ms backwards}
.scroll-hint         {animation:heroIn   700ms var(--ease) 420ms backwards}

@keyframes heroIn{from{opacity:0;transform:translateY(16px)}}
@keyframes heroRise{from{transform:translateY(14px)}}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width:1140px){
  /* Wraps onto a second line and breaks the banner height below this. */
  .brand__role{display:none}
}

@media (max-width:1080px){
  .venture{flex-direction:column;gap:20px}
  .strengths{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media (max-width:900px){
  .hero__grid{grid-template-columns:1fr;gap:44px}
  /* Portrait below the copy, so the first thing on a phone screen is the
     name and the pitch rather than a photo on its own. */
  .hero__portrait{justify-self:start;max-width:270px}
  .portrait__frame::before{inset:13px -13px -13px 13px}
  .hero__portrait figcaption{justify-content:flex-start}
  .about__grid{grid-template-columns:1fr}
  .tl{grid-template-columns:1fr;gap:10px}
}

@media (max-width:760px){
  /* Three across leaves about 115px a button on a phone, and the labels
     do not wrap by design, so "Download CV" was being cut mid-word. */
  .contact__cards{grid-template-columns:1fr;max-width:420px}
}

@media (max-width:1000px){
  /* Five across stops being readable long before the page gets narrow:
     at 768px each one is 112px wide and the screenshots turn to mush.
     Five into two columns would leave an orphan on a third row, so a
     swipeable row it is, which keeps every one of them legible. */
  .work{
    display:flex;
    gap:12px;
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch;
    padding-bottom:6px;
    scrollbar-width:thin;
  }
  .work li{flex:none;width:146px;scroll-snap-align:start}
}

@media (max-width:820px){
  .nav,.banner__cv{display:none}
  .nav-toggle{display:flex}
  /* The most expensive thing on this page per frame on a phone. A fixed
     element with a backdrop blur makes the compositor re-blur everything
     behind it on every single scroll frame, which is exactly the kind of
     cost that shows up as scrolling that will not quite keep up. Solid
     white below this width; the blur stays on desktop, where it is free. */
  .banner{
    background:rgba(255,255,255,.96);
    backdrop-filter:none;
    -webkit-backdrop-filter:none;
  }
  .drawer{
    background:#fff;
    backdrop-filter:none;
    -webkit-backdrop-filter:none;
  }
  :root{--banner-h:66px}
  .brand__monogram{width:36px;height:36px;font-size:15px}
  .brand__name{font-size:18px}
  .strengths{grid-template-columns:1fr}
}

@media (max-width:620px){
  /* The scroll rail lives in the left gutter at this size; a second
     pulsing gold dot right beside it just reads as a glitch. */
  .hero__portrait .dot{display:none}
  .hero__portrait figcaption{gap:0}
  /* Tightened so the three roles stay on one line instead of
     orphaning "FOUNDER" after a dangling separator. */
  .hero__line{font-size:10.5px;letter-spacing:.1em;gap:3px 9px}
  /* Two columns leaves about 140px each here, which breaks four-word
     bullets over three lines. */
  .venture__points{grid-template-columns:1fr;gap:8px}
}

@media (max-width:560px){
  .brand__role{display:none}
  .hero__actions .btn{flex:1 1 100%;justify-content:center}
  .venture{padding:24px 20px}
  .ccard{padding:24px 22px}
  .foot__inner{justify-content:center;text-align:center}
  .foot__top{margin-left:0;width:100%}
}


/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
  }
  [data-reveal]{opacity:1;transform:none}
}


/* ============================================================
   PRINT
   ============================================================ */

@media print{
  /* Screenshots are illustration; on paper they cost a lot of ink and add
     nothing the text does not already say. */
  .banner,.drawer,.trail,.scroll-hint,.foot__top,
  .skip,.work,.work__note,.shot{display:none !important}
  body{background:#fff;color:#000}
  .section,.hero{background:#fff;padding-block:24px}
  h1,h2,h3{color:#000}
}
