/* ==========================================================
   SIGNAL — mostafasaid.io
   ========================================================== */
:root {
  --ink: #0b0c0f;
  --ink-2: #111318;
  --ink-3: #171a20;
  --paper: #efe9dd;
  --paper-2: #d9d2c4;
  --muted: #a39d90;
  --line: rgba(239, 233, 221, .12);
  --line-2: rgba(239, 233, 221, .22);
  --amber: #ffa63d;
  --amber-hot: #ffd08a;
  --copper: #c8743a;

  --serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --gut: clamp(16px, 4vw, 48px);
  --lane: clamp(28px, 7vw, 104px);
  --spine-x: clamp(-2px, 2.6vw, 36px);
  --maxw: 1320px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 400 17px/1.6 var(--sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, dl, dd, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
strong { font-weight: 600; color: var(--paper); }
em { font-style: italic; }
::selection { background: var(--amber); color: var(--ink); }

.mono { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 400; }

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

.skip {
  position: fixed; left: 12px; top: 12px; z-index: 100; transform: translateY(-250%);
  background: var(--amber); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 600;
  transition: transform .2s;
}
.skip:focus { transform: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }
.lane { padding-left: calc(var(--gut) + var(--lane)); }

/* ---------- fixed layers ---------- */
.spine { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 2; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, .foot { position: relative; z-index: 3; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .4s var(--ease), border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(11, 12, 15, .72);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav__in { display: flex; align-items: center; gap: 24px; height: 68px; }
.mark { display: inline-flex; align-items: center; gap: 12px; color: var(--paper); flex: none; }
.mark svg { width: 34px; height: 34px; }
.mark__t { font-family: var(--serif); font-size: 21px; letter-spacing: .005em; white-space: nowrap; }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a {
  position: relative; display: inline-flex; align-items: baseline; gap: 6px;
  padding: 8px 10px; font-size: 13.5px; color: var(--muted); border-radius: 6px;
  transition: color .25s;
}
.nav__links a i { font: 400 10px/1 var(--mono); font-style: normal; color: var(--muted); opacity: .7; }
.nav__links a:hover, .nav__links a.is-on { color: var(--paper); }
.nav__links a.is-on i { color: var(--amber); opacity: 1; }
.nav__links a::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 1px;
  background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.nav__links a.is-on::after { transform: scaleX(1); }
.nav__now { display: none; }
.nav__prog { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; overflow: hidden; }
.nav__prog span {
  display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, transparent, var(--amber) 60%, var(--amber-hot));
}

/* ---------- mobile menu ---------- */
.nav__menu {
  display: none; position: relative; flex: none; width: 40px; height: 40px; margin-left: 2px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--paper); cursor: pointer;
  box-shadow: 0 0 0 1px var(--line-2) inset; transition: box-shadow .3s, background .3s;
}
.nav__menu:hover { background: rgba(239, 233, 221, .06); }
.nav__menu-l { position: absolute; left: 12px; right: 12px; height: 1px; background: currentColor; transition: transform .45s var(--ease), background .3s; }
.nav__menu-l:first-child { top: 16px; } .nav__menu-l:last-child { top: 23px; right: 16px; background: var(--amber); }
.nav__menu[aria-expanded="true"] { box-shadow: 0 0 0 1px rgba(255, 166, 61, .55) inset; }
.nav__menu[aria-expanded="true"] .nav__menu-l:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__menu[aria-expanded="true"] .nav__menu-l:last-child { right: 12px; transform: translateY(-3.5px) rotate(-45deg); }
.menu-open .nav { background: var(--ink); border-bottom-color: var(--line); -webkit-backdrop-filter: none; backdrop-filter: none; }
.mnav {
  position: fixed; left: 0; right: 0; top: 0; height: 100vh; height: 100dvh; z-index: -1; overflow-y: auto; overscroll-behavior: contain;
  background: radial-gradient(90% 60% at 100% 0%, rgba(255, 166, 61, .10), transparent 60%), var(--ink);
  opacity: 0; transition: opacity .4s var(--ease);
}
.mnav.is-open { opacity: 1; }
.mnav[hidden] { display: none; }
.mnav__in { display: flex; flex-direction: column; min-height: 100%; padding-top: 84px; padding-bottom: 28px; padding-left: calc(var(--gut) + var(--lane)); }
.mnav__list { counter-reset: none; border-top: 1px solid var(--line-2); }
.mnav__list li { border-bottom: 1px solid var(--line); transform: translateY(14px); opacity: 0; transition: transform .6s var(--ease), opacity .6s var(--ease); }
.mnav.is-open .mnav__list li { transform: none; opacity: 1; }
.mnav.is-open .mnav__list li:nth-child(2) { transition-delay: .03s; } .mnav.is-open .mnav__list li:nth-child(3) { transition-delay: .06s; }
.mnav.is-open .mnav__list li:nth-child(4) { transition-delay: .09s; } .mnav.is-open .mnav__list li:nth-child(5) { transition-delay: .12s; }
.mnav.is-open .mnav__list li:nth-child(6) { transition-delay: .15s; } .mnav.is-open .mnav__list li:nth-child(7) { transition-delay: .18s; }
.mnav__list a { display: flex; align-items: baseline; gap: 16px; padding: 12px 0; font-family: var(--serif); font-size: clamp(32px, 9vw, 46px); line-height: 1.05; letter-spacing: -.01em; color: var(--paper); transition: color .25s; }
.mnav__list a i { font-style: normal; font-size: 11px; color: var(--amber); min-width: 2ch; }
.mnav__list a:hover, .mnav__list a.is-on { color: var(--amber-hot); }
.mnav__list a.is-on { font-style: italic; }
.mnav__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: auto; padding-top: 32px; color: var(--paper-2); font-size: 11px; text-transform: none; }
.mnav__foot a { padding: 6px 0; }
.mnav__foot a:hover { color: var(--amber-hot); }
.menu-open, .menu-open body { overflow: hidden; }

/* ---------- buttons ---------- */
.btn {
  --h: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 22px; border-radius: 999px;
  background: var(--amber); color: #1a0f02; font-weight: 600; font-size: 15px; letter-spacing: .005em;
  box-shadow: 0 0 0 1px rgba(255, 208, 138, .35) inset, 0 10px 40px -10px rgba(255, 166, 61, .55);
  transition: transform .3s var(--ease), box-shadow .3s, background .3s;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:hover { transform: translateY(-2px); background: var(--amber-hot); box-shadow: 0 0 0 1px rgba(255, 208, 138, .5) inset, 0 16px 50px -10px rgba(255, 166, 61, .75); }
.btn--sm { --h: 38px; padding: 0 16px; font-size: 13.5px; margin-left: 8px; }
.btn--ghost { background: transparent; color: var(--paper); box-shadow: 0 0 0 1px var(--line-2) inset; }
.btn--ghost:hover { background: rgba(239, 233, 221, .06); box-shadow: 0 0 0 1px rgba(239, 233, 221, .4) inset; }
.btn--icon { width: var(--h); padding: 0; background: transparent; color: var(--paper); box-shadow: 0 0 0 1px var(--line-2) inset; }
.btn--icon svg { width: 18px; height: 18px; }
.btn--icon:hover { background: rgba(239, 233, 221, .06); }

/* ==========================================================
   HERO
   ========================================================== */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; overflow: hidden; isolation: isolate; }
.hero__fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero__veil {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(70% 60% at 22% 42%, rgba(11, 12, 15, .82), rgba(11, 12, 15, 0) 70%),
    linear-gradient(180deg, rgba(11, 12, 15, .5), rgba(11, 12, 15, 0) 22%, rgba(11, 12, 15, 0) 70%, rgba(11, 12, 15, .9));
}
.hero__in {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  padding-top: 96px; padding-bottom: clamp(24px, 4vh, 44px);
  padding-left: calc(var(--gut) + var(--lane));
}
.hero__meta { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); }
.hero__coords { color: var(--paper-2); }
.hero__body { margin: auto 0; padding: clamp(20px, 4vh, 56px) 0 clamp(24px, 4vh, 48px); max-width: 1060px; }
.hero__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px 48px; }
.hero__eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; color: var(--paper-2); margin-bottom: clamp(14px, 2.4vh, 26px); }
.live { display: inline-flex; align-items: center; gap: 8px; color: var(--amber); padding: 5px 10px 5px 8px; border: 1px solid rgba(255, 166, 61, .35); border-radius: 999px; background: rgba(255, 166, 61, .06); }
.live__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 0 rgba(255, 166, 61, .6); animation: ping 2.2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255, 166, 61, .55); } 70% { box-shadow: 0 0 0 9px rgba(255, 166, 61, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 166, 61, 0); } }

.hero__name {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(76px, min(15.5vw, 20vh), 236px); line-height: .84; letter-spacing: -.035em;
  margin-left: -.04em;
}
.hero__line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero__word { display: inline-block; }
.hero__word--it { font-style: italic; padding-left: .6em; background: linear-gradient(100deg, var(--paper) 30%, var(--amber-hot) 70%, var(--amber)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .08em; }
.hero__word--it em { font-style: italic; color: var(--amber); -webkit-text-fill-color: var(--amber); }
.js .hero__word { transform: translateY(105%); transition: transform 1.4s var(--ease); }
.js .hero__line:nth-child(2) .hero__word { transition-delay: .12s; }
.is-ready .hero__word { transform: none; }

.hero__role { display: flex; align-items: baseline; gap: 14px; margin-top: clamp(14px, 2.2vh, 24px); max-width: 1060px; }
.hero__role-k { flex: none; color: var(--ink); background: var(--amber); padding: 3px 8px; border-radius: 3px; font-size: 10px; font-weight: 500; transform: translateY(-.35em); }
.hero__role-t { font-family: var(--serif); font-size: clamp(22px, 2.3vw, 34px); line-height: 1.12; letter-spacing: -.005em; color: var(--paper); }
.hero__role-t em { color: var(--amber-hot); }
.hero__role-o { color: var(--paper-2); }
.dim { display: flex; align-items: center; gap: 12px; max-width: 1060px; margin: clamp(16px, 2.6vh, 28px) 0 clamp(16px, 2.6vh, 26px); color: var(--amber); }
.dim__tick { width: 1px; height: 14px; background: currentColor; flex: none; }
.dim__rule { flex: 1; height: 1px; background: currentColor; opacity: .55; position: relative; }
.dim__rule:first-of-type::before, .dim__rule:last-of-type::after { content: ""; position: absolute; top: -3px; border: 3.5px solid transparent; }
.dim__rule:first-of-type::before { left: 0; border-right-color: currentColor; border-left-width: 0; border-right-width: 7px; }
.dim__rule:last-of-type::after { right: 0; border-left-color: currentColor; border-right-width: 0; border-left-width: 7px; }
.dim__label { white-space: nowrap; color: var(--amber-hot); }

.hero__lede { font-size: clamp(18px, 1.7vw, 23px); line-height: 1.5; color: var(--paper-2); max-width: 40ch; font-weight: 300; }
.hero__lede strong { font-weight: 500; color: var(--paper); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

.tags { position: absolute; inset: 0; pointer-events: none; }
.tags li {
  position: absolute; left: calc(var(--x) * 100%); top: calc(var(--y) * 100% + 40px);
  display: inline-flex; align-items: center; gap: 8px; color: var(--paper-2); font-size: 10.5px;
  padding: 4px 8px; border: 1px solid var(--line); background: rgba(11, 12, 15, .55); border-radius: 3px;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.tags li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.js .tags li { opacity: 0; transform: translateY(8px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.is-ready .tags li { opacity: 1; transform: none; }
.is-ready .tags li:nth-child(2) { transition-delay: .5s; } .is-ready .tags li:nth-child(3) { transition-delay: .65s; }
.is-ready .tags li:nth-child(4) { transition-delay: .8s; } .is-ready .tags li:nth-child(5) { transition-delay: .95s; }
.is-ready .tags li:nth-child(6) { transition-delay: 1.1s; } .is-ready .tags li:nth-child(1) { transition-delay: .35s; }

.ticker {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(11, 12, 15, .55), rgba(11, 12, 15, .85));
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.ticker > div { padding: 18px 20px 4px 0; position: relative; }
.ticker > div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.ticker dt { color: var(--muted); font-size: 10.5px; }
.ticker dd { font-family: var(--serif); font-size: clamp(34px, 3.4vw, 50px); line-height: 1; margin: 8px 0 6px; letter-spacing: -.02em; }
.ticker dd b { font-weight: 400; }
.ticker dd small { font-size: .5em; color: var(--amber); margin-left: 3px; letter-spacing: 0; }
.ticker p { font-size: 13.5px; color: var(--muted); line-height: 1.4; }

/* ==========================================================
   SECTIONS
   ========================================================== */
.sec { position: relative; padding: clamp(96px, 14vh, 160px) 0 clamp(40px, 6vh, 72px); }
.sec__head { display: flex; align-items: baseline; gap: 18px; margin-bottom: clamp(40px, 7vh, 80px); }
.sec__no { color: var(--amber); font-size: 12px; }
.sec__title { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 6vw, 84px); line-height: 1; letter-spacing: -.02em; white-space: nowrap; }
.sec__title--small { font-size: clamp(22px, 2.4vw, 30px); font-style: italic; color: var(--paper-2); }
.sec__rule { flex: 1; height: 1px; background: var(--line-2); align-self: center; min-width: 24px; position: relative; }
.sec__rule::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border: 1px solid var(--line-2); border-radius: 50%; background: var(--ink); }
.sec__spec { color: var(--muted); white-space: nowrap; }

/* ---------- reveal ---------- */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- profile ---------- */
.statement p {
  font-family: var(--serif); font-size: clamp(32px, 4.4vw, 66px); line-height: 1.08; letter-spacing: -.015em;
  max-width: 21ch;
}
.statement em { color: var(--amber-hot); }
.profile { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: end; }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); margin-top: clamp(56px, 9vh, 104px); }
.pillar { border-top: 1px solid var(--line-2); padding-top: 18px; }
.pillar__k { color: var(--amber); font-size: 10.5px; }
.pillar h3 { font-family: var(--serif); font-weight: 400; font-size: 27px; line-height: 1.1; margin: 14px 0 12px; }
.pillar p { color: var(--muted); font-size: 15px; line-height: 1.6; }

.sheet { border: 1px solid var(--line-2); border-radius: 4px; background: linear-gradient(180deg, rgba(23, 26, 32, .8), rgba(17, 19, 24, .8)); position: relative; }
.sheet::before, .sheet::after { content: ""; position: absolute; width: 10px; height: 10px; border-color: var(--amber); border-style: solid; }
.sheet::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.sheet::after { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }
.sheet__h { display: flex; justify-content: space-between; padding: 12px 18px; color: var(--amber); border-bottom: 1px solid var(--line-2); font-size: 10.5px; }
.sheet > div:not(.sheet__h) { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 13px 18px; border-bottom: 1px dashed var(--line); }
.sheet > div:last-child { border-bottom: 0; }
.sheet dt { color: var(--muted); font-size: 10.5px; padding-top: 4px; }
.sheet dd { font-size: 15px; line-height: 1.45; }

/* ---------- figures ---------- */
.figs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.fig { grid-column: span 2; padding: clamp(28px, 4vh, 44px) clamp(16px, 2vw, 32px) clamp(28px, 4vh, 40px) 0; border-bottom: 1px solid var(--line); position: relative; }
.fig:not(.fig--xl) + .fig:not(.fig--xl) { border-left: 1px solid var(--line); padding-left: clamp(16px, 2vw, 32px); }
.fig:nth-child(5) { border-left: 0 !important; padding-left: 0 !important; }
.fig--xl { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: clamp(24px, 5vw, 80px); align-items: end; padding-right: 0; }
.fig--xl .fig__n { grid-row: 1 / span 3; align-self: end; font-size: clamp(150px, 26vw, 400px); line-height: .8; }
.fig--xl .fig__l { font-size: clamp(30px, 3.4vw, 50px); max-width: 16ch; }
.span { align-self: end; margin-bottom: 6px; }
.span__bar { display: flex; gap: 4px; height: 6px; }
.span__a, .span__b { display: block; height: 100%; border-radius: 1px; transform-origin: left; }
.span__a { flex: 14.2; background: repeating-linear-gradient(90deg, rgba(239,233,221,.38) 0 2px, transparent 2px 6px); }
.span__b { flex: 15.1; background: linear-gradient(90deg, var(--copper), var(--amber) 70%, var(--amber-hot)); box-shadow: 0 0 18px rgba(255,166,61,.45); }
.js .span__a, .js .span__b { transform: scaleX(0); transition: transform 1.6s var(--ease) .3s; }
.js .span__b { transition-delay: 1s; }
.in .span__a, .in .span__b { transform: none; }
.span__lbl { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; color: var(--muted); font-size: 10.5px; }
.span__lbl span:last-child { text-align: right; }
.span__lbl b { font-weight: 500; color: var(--paper); }
.span__lbl span:last-child b { color: var(--amber); }
.fig__n { font-family: var(--serif); font-size: clamp(72px, 8.6vw, 136px); line-height: .9; letter-spacing: -.045em; display: flex; align-items: baseline; font-variant-numeric: tabular-nums lining-nums; }
.fig__n b { font-weight: 400; background: linear-gradient(180deg, var(--paper) 40%, var(--paper-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fig__u { font-family: var(--mono); font-size: clamp(14px, 1.2vw, 18px); letter-spacing: .04em; color: var(--amber); margin-left: .5em; text-transform: uppercase; align-self: flex-start; padding-top: .8em; }
.fig--xl .fig__u { font-size: clamp(16px, 1.6vw, 24px); padding-top: 1.2em; }
.fig__l { font-family: var(--serif); font-weight: 400; font-size: clamp(21px, 1.8vw, 26px); line-height: 1.18; margin-top: 18px; max-width: 22ch; }
.fig__s { color: var(--muted); margin-top: 14px; font-size: 10.5px; }
.fig__dim { display: flex; align-items: center; gap: 10px; color: var(--amber); margin-bottom: 8px; }
.fig__dim i { width: 1px; height: 12px; background: currentColor; }
.fig__dim span { flex: 1; color: var(--amber-hot); white-space: nowrap; overflow: hidden; }

/* ---------- experience ---------- */
.org { display: flex; align-items: center; gap: 20px; margin: 0 0 24px; padding: 20px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line); }
.roles + .org { margin-top: clamp(48px, 8vh, 88px); }
.org__mark { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; border: 1px solid rgba(255, 166, 61, .45); color: var(--amber); font-size: 11px; letter-spacing: .12em; background: radial-gradient(circle, rgba(255, 166, 61, .12), transparent 70%); }
.org__name { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3vw, 40px); line-height: 1.05; }
.org__meta { color: var(--muted); margin-top: 6px; }
.role { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: clamp(16px, 4vw, 56px); padding: clamp(28px, 4vh, 40px) 0; border-bottom: 1px solid var(--line); }
.role:last-child { border-bottom: 0; }
.role__when { color: var(--paper-2); padding-top: 10px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.role__badge { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); background: var(--amber); padding: 3px 8px; border-radius: 3px; font-size: 10px; font-weight: 500; }
.role__t { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.1vw, 44px); line-height: 1.06; letter-spacing: -.01em; margin-bottom: 20px; }
.role__t em { color: var(--amber-hot); }
.role__pts { display: grid; gap: 10px; max-width: 74ch; }
.role__pts li { position: relative; padding-left: 26px; color: var(--paper-2); font-size: 16px; line-height: 1.6; }
.role__pts li::before { content: ""; position: absolute; left: 0; top: .78em; width: 14px; height: 1px; background: var(--amber); opacity: .8; }
.role__pts strong { color: var(--paper); font-weight: 500; box-shadow: inset 0 -.45em 0 rgba(255, 166, 61, .14); }

/* ---------- work ---------- */
.works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.work { background: var(--ink); padding: clamp(24px, 3vw, 36px); position: relative; transition: background .5s var(--ease); min-height: 220px; display: flex; flex-direction: column; }
.work:hover { background: var(--ink-2); }
.work::after { content: ""; position: absolute; left: 0; top: 0; height: 1px; width: 100%; background: linear-gradient(90deg, var(--amber), transparent); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); }
.work:hover::after { transform: scaleX(1); }
.work__k { color: var(--amber); font-size: 10.5px; }
.work__t { font-family: var(--serif); font-weight: 400; font-size: clamp(25px, 2.2vw, 32px); line-height: 1.08; margin: auto 0 12px; padding-top: 40px; }
.work p { color: var(--muted); font-size: 15px; line-height: 1.55; }
.work:last-child { grid-column: 1 / -1; min-height: 0; }
.work:last-child .work__t { padding-top: 24px; }
.work--feat { grid-column: span 2; grid-row: span 2; min-height: 480px; background: radial-gradient(120% 90% at 100% 0%, rgba(255, 166, 61, .12), transparent 60%), var(--ink); }
.work--feat .work__t { font-size: clamp(36px, 4vw, 60px); max-width: 14ch; }
.work--feat p { font-size: 17px; max-width: 46ch; color: var(--paper-2); }
.work__fx { position: absolute; left: 0; right: 0; top: 16%; height: 24%; color: var(--amber); opacity: .9; pointer-events: none; }
.work__fx svg { width: 100%; height: 100%; overflow: visible; }
.twin path { stroke-dasharray: 6 8; animation: flow 6s linear infinite; }
.twin path:first-child { stroke-dasharray: none; filter: drop-shadow(0 0 6px rgba(255, 166, 61, .6)); }
.twin__nodes circle { fill: var(--ink); stroke: var(--amber-hot); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.twin path { vector-effect: non-scaling-stroke; }
@keyframes flow { to { stroke-dashoffset: -140; } }

/* ---------- capabilities ---------- */
.caps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 5vw, 64px) clamp(32px, 5vw, 80px); }
.cap__h { display: flex; align-items: baseline; gap: 14px; font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 2.6vw, 38px); padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--line-2); }
.cap__h .mono { color: var(--amber); font-size: 10.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 14px; padding: 7px 13px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--paper-2); transition: border-color .3s, color .3s, background .3s; }
.chips li:hover { border-color: rgba(255, 166, 61, .6); color: var(--paper); background: rgba(255, 166, 61, .06); }
.certs { margin-top: clamp(56px, 9vh, 96px); display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: clamp(16px, 4vw, 56px); padding-top: 24px; border-top: 1px solid var(--line); }
.certs__h { color: var(--muted); padding-top: 4px; }
.certs ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 40px; }
.certs li { font-size: 15px; color: var(--paper-2); padding-left: 18px; position: relative; line-height: 1.5; }
.certs li::before { content: "◆"; position: absolute; left: 0; top: .1em; font-size: 8px; color: var(--amber); line-height: 2; }
.certs li:first-child { grid-column: 1 / -1; color: var(--paper); }

/* ---------- education ---------- */
.edu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.deg { border-top: 1px solid var(--line-2); padding-top: 20px; }
.deg__y { color: var(--amber); }
.deg__t { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 2.6vw, 38px); line-height: 1.08; margin: 16px 0 10px; }
.deg__t em { color: var(--amber-hot); }
.deg__s { color: var(--muted); font-size: 15px; }
.ar { font-family: var(--sans); font-style: normal; font-size: .8em; color: var(--amber-hot); margin-right: .2em; display: inline-block; }

/* ---------- contact ---------- */
.contact { padding-bottom: clamp(64px, 10vh, 120px); }
.contact__h { font-family: var(--serif); font-weight: 400; font-size: clamp(64px, 12vw, 190px); line-height: .9; letter-spacing: -.035em; }
.contact__h em { color: var(--amber); background: linear-gradient(100deg, var(--amber-hot), var(--amber) 60%, var(--copper)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding-right: .06em; }
.contact__p { font-size: clamp(17px, 1.5vw, 21px); color: var(--paper-2); max-width: 46ch; margin-top: 24px; font-weight: 300; }
.contact__links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(40px, 7vh, 72px); border-top: 1px solid var(--line-2); }
.clink { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 26px 24px 26px 0; border-bottom: 1px solid var(--line-2); position: relative; transition: background .4s var(--ease); }
.clink + .clink { padding-left: 24px; border-left: 1px solid var(--line); }
.clink__k { grid-column: 1 / -1; color: var(--muted); }
.clink__v { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 32px); line-height: 1.1; overflow-wrap: anywhere; }
.clink__a { align-self: end; color: var(--amber); font-size: 22px; transition: transform .4s var(--ease); }
.clink:hover .clink__v { color: var(--amber-hot); }
.clink:hover .clink__a { transform: translate(3px, -3px); }

.foot { border-top: 1px solid var(--line); }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 26px; padding-bottom: 32px; color: var(--muted); font-size: 10.5px; }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1180px) {
  .nav__links a { padding: 8px 7px; font-size: 13px; }
  .nav__links a i { display: none; }
}
@media (max-width: 1024px) {
  .hero__row { grid-template-columns: minmax(0, 1fr); }
  .nav__links { display: none; }
  .nav__menu { display: inline-block; }
  .nav__now { display: inline-flex; align-items: baseline; gap: 8px; margin-left: auto; font: 400 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--paper-2); }
  .nav__now i { font-style: normal; color: var(--amber); }
  .nav__now b { font-weight: 400; }
  .profile { grid-template-columns: minmax(0, 1fr); }
  .statement p { max-width: 24ch; }
  .tags li:nth-child(n+5) { display: none; }
  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work--feat { grid-row: auto; min-height: 400px; }
  .work:last-child { grid-column: auto; }
  .edu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact__links { grid-template-columns: minmax(0, 1fr); }
  .clink + .clink { padding-left: 0; border-left: 0; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .mark__t { font-size: 19px; }
  .nav__in { gap: 12px; height: 60px; }
  .nav__now { font-size: 10px; }
  .btn--sm { margin-left: 0; padding: 0 13px; --h: 36px; }
  .hero__in { padding-top: 78px; }
  .hero__meta { font-size: 10px; }
  .hero__meta > span:first-child { display: none; }
  .hero__name { font-size: clamp(64px, 29vw, 150px); line-height: .86; }
  .hero__row { grid-template-columns: minmax(0, 1fr); }
  .mark__t { display: none; }
  .hero__word--it { padding-left: .35em; }
  .hero__veil { background: radial-gradient(120% 70% at 20% 45%, rgba(11, 12, 15, .85), rgba(11, 12, 15, .15) 75%), linear-gradient(180deg, rgba(11, 12, 15, .55), rgba(11, 12, 15, 0) 25%, rgba(11, 12, 15, 0) 65%, rgba(11, 12, 15, .95)); }
  .tags { display: none; }
  .hero__meta { display: none; }
  .hero__in { padding-top: 76px; }
  .hero__body { padding: 8px 0 18px; }
  .hero__eyebrow { margin-bottom: 14px; gap: 8px 10px; }
  .hero__eyebrow .live { padding: 3px 9px 3px 7px; }
  .hero__name { font-size: clamp(60px, 24vw, 150px); }
  .hero__role { flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 28px; }
  .hero__role-k { display: inline-flex; align-items: center; gap: 10px; color: var(--amber); background: none; padding: 0; border-radius: 0; font-size: 10.5px; font-weight: 400; letter-spacing: .14em; transform: none; }
  .hero__role-k::before { content: ""; width: 22px; height: 1px; background: currentColor; }
  .hero__role-o { display: block; margin-top: 6px; font-size: .78em; letter-spacing: .02em; }
  .hero__role-sep { display: none; }
  .hero__role-t { font-size: 21px; }
  .dim { margin: 22px 0 18px; }
  .hero__lede { font-size: 16.5px; line-height: 1.5; }
  .hero__row { gap: 18px; }
  .hero__cta { gap: 10px; }
  .ticker > div { padding: 14px 8px 2px 0; }
  .ticker > div + div { padding-left: 12px; }
  .ticker dt { font-size: 9.5px; letter-spacing: .06em; }
  .ticker p { font-size: 11.5px; line-height: 1.35; }
  .btn { --h: 48px; padding: 0 18px; font-size: 14.5px; }
  .btn--icon { padding: 0; }
  .ticker dd { font-size: 30px; margin: 6px 0 4px; }
  .sec__head { flex-wrap: wrap; gap: 10px 14px; }
  .sec__spec { display: none; }
  .pillars { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .span__lbl { flex-direction: column; gap: 4px; }
  .span__lbl span:last-child { text-align: left; }
  .sheet > div:not(.sheet__h) { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 12px 16px; }
  .figs { grid-template-columns: minmax(0, 1fr); }
  .fig { grid-column: auto; padding-left: 0 !important; border-left: 0 !important; padding-right: 0; }
  .fig--xl { grid-template-columns: minmax(0, 1fr); }
  .fig--xl .fig__n { grid-row: auto; font-size: clamp(130px, 46vw, 220px); }
  .fig--xl .fig__dim { margin-top: 12px; }
  .role { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .role__when { flex-direction: row; align-items: center; padding-top: 0; }
  .role__pts li { font-size: 15.5px; padding-left: 20px; }
  .role__pts li::before { width: 10px; }
  .org__mark { width: 52px; height: 52px; font-size: 10px; }
  .works { grid-template-columns: minmax(0, 1fr); }
  .work--feat { grid-column: auto; min-height: 0; }
  .work { min-height: 0; }
  .work__t { padding-top: 28px; }
  .work--feat > * { order: 2; }
  .work--feat .work__k { order: 0; }
  .work--feat .work__fx { order: 1; position: relative; top: auto; left: auto; right: auto; height: 84px; margin: 26px -24px 0; }
  .work--feat .work__t { margin-top: 0; padding-top: 22px; }
  .caps { grid-template-columns: minmax(0, 1fr); }
  .certs { grid-template-columns: minmax(0, 1fr); }
  .certs ul { grid-template-columns: minmax(0, 1fr); }
  .edu { grid-template-columns: minmax(0, 1fr); }
  .foot__in { flex-direction: column; }
}
@media (max-width: 400px) {
  .nav__now { display: none; }
  .btn--sm { margin-left: auto; }
}
@media (max-width: 380px) {
  .mark__t { display: none; }
  .hero__cta .btn--ghost { display: none; }
  .hero__role-t { font-size: 19px; }
  .ticker dd { font-size: 26px; }
  .ticker p { font-size: 11px; }
}

/* ==========================================================
   REDUCED MOTION
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .rv, .js .hero__word, .js .tags li, .mnav__list li { opacity: 1 !important; transform: none !important; }
  .js .span__a, .js .span__b { transform: none; }
}

/* ==========================================================
   PRINT
   ========================================================== */
@media print {
  :root { --ink: #fff; --ink-2: #fff; --paper: #111; --paper-2: #222; --muted: #555; --line: #ddd; --line-2: #bbb; --amber: #a4520b; --amber-hot: #a4520b; }
  body { background: #fff; color: #111; font-size: 11pt; }
  .spine, .grain, .nav, .mnav, .hero__fx, .hero__veil, .tags, .hero__cta, .work__fx, .skip, .live { display: none !important; }
  .hero { min-height: 0; }
  .hero__in { padding: 0; }
  .hero__name { font-size: 54pt; }
  .hero__word--it { -webkit-text-fill-color: #a4520b; color: #a4520b; background: none; }
  .ticker { background: none; backdrop-filter: none; }
  .js .rv, .js .hero__word { opacity: 1 !important; transform: none !important; }
  .sec { padding: 24pt 0 0; break-inside: auto; }
  .role, .fig, .work, .deg, .cap { break-inside: avoid; }
  .fig--xl .fig__n { font-size: 90pt; }
  .fig__n b { -webkit-text-fill-color: #111; color: #111; background: none; }
  .contact__h { font-size: 48pt; }
  .contact__h em { -webkit-text-fill-color: #a4520b; }
  .work, .sheet { background: #fff !important; }
  a[href^="mailto"]::after, a[href^="http"]::after { content: " (" attr(href) ")"; font-family: var(--mono); font-size: 8pt; color: #555; }
  .lane, .hero__in { padding-left: 0 !important; }
}

/* hero engineering grid */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -3; pointer-events: none;
  background-image:
    linear-gradient(rgba(239,233,221,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(239,233,221,.045) 1px, transparent 1px);
  background-size: 88px 88px;
  -webkit-mask-image: radial-gradient(80% 70% at 70% 50%, #000 20%, transparent 80%);
  mask-image: radial-gradient(80% 70% at 70% 50%, #000 20%, transparent 80%);
}
