/* ==========================================================================
   ARSALAN SHAHID — Personal Dossier
   Aesthetic: Editorial / Dossier / Warm Espresso
   Type:      Fraunces (display) · Instrument Sans (body) · IBM Plex Mono
   ========================================================================== */

/* --- Tokens --- */
:root {
  /* Color — warm espresso dossier */
  --ink:          #0F0D0A;
  --ink-2:        #15120E;
  --ink-3:        #1E1A14;
  --ink-4:        #2A241C;
  --paper:        #EDE6D3;
  --paper-dim:    #BDB4A0;
  --paper-faint:  #7F7866;
  --paper-ghost:  #4A463C;
  --line:         #2B2520;
  --line-2:       #3A3228;
  --accent:       #D97528;
  --accent-hot:   #EE8A3A;
  --accent-dim:   #8A4615;

  /* Type */
  --ff-display:   "Fraunces", "Times New Roman", serif;
  --ff-body:      "Instrument Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --ff-mono:      "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Motion */
  --ease:         cubic-bezier(.2, .7, .2, 1);
  --ease-out:     cubic-bezier(.16, 1, .3, 1);

  /* Space */
  --gutter:       clamp(20px, 4vw, 48px);
  --max:          1440px;
  --max-read:     820px;

  /* Radius */
  --r-sm:         2px;
  --r-md:         4px;
}

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

html {
  background: var(--ink);
  color: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  font-feature-settings: "ss01", "cv11";
  letter-spacing: -0.005em;
  background:
    radial-gradient(1200px 800px at 80% -10%, rgba(217, 117, 40, 0.08), transparent 60%),
    radial-gradient(900px 600px at 0% 40%, rgba(217, 117, 40, 0.035), transparent 60%),
    var(--ink);
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
}

/* --- Grain overlay --- */
.grain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 200;
  opacity: 0.055;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.vignette {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 199;
  background:
    radial-gradient(120% 80% at 50% 50%, transparent 50%, rgba(0,0,0,0.45) 100%);
}

/* --- Type — eyebrows & meta --- */
.eyebrow {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-faint);
}

.mono {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--paper-dim);
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background .4s var(--ease), backdrop-filter .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(15, 13, 10, 0.72);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.wordmark {
  font-family: var(--ff-display);
  font-variation-settings: "opsz" 72, "wght" 480, "SOFT" 40;
  font-size: 19px;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--paper);
  display: inline-flex;
  align-items: baseline;
  padding: 4px 0;
  transition: color .25s var(--ease);
}
.wordmark:hover { color: var(--paper); }
.wordmark:hover .wm-dot { transform: translateY(-1px); }
.wm-dot {
  color: var(--accent);
  font-style: italic;
  font-variation-settings: "opsz" 144, "wght" 500, "SOFT" 100;
  margin-left: -1px;
  transition: transform .3s var(--ease);
  display: inline-block;
}

.primary-nav {
  justify-self: center;
  display: flex;
  gap: 28px;
}
.primary-nav a {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-dim);
  position: relative;
  padding: 4px 0;
  transition: color .25s var(--ease);
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 50%; right: 50%; bottom: 0;
  height: 1px;
  background: var(--accent);
  transition: left .35s var(--ease), right .35s var(--ease);
}
.primary-nav a:hover { color: var(--paper); }
.primary-nav a:hover::after { left: 0; right: 0; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-dim);
}
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #5DB75D;
  box-shadow: 0 0 12px rgba(93, 183, 93, 0.6);
  animation: pulse 2.4s var(--ease) infinite;
}
.status .sep { margin: 0 6px; color: var(--paper-ghost); }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.85); }
}

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

.hero {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 56px 0 60px;
  display: flex;
  align-items: stretch;
  position: relative;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 3.6vh, 44px);
  width: 100%;
}
.hero-inner > .hero-name { margin: clamp(8px, 2vh, 24px) 0; }

.hero-topmeta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-faint);
  flex-wrap: wrap;
}
.hero-topmeta .meta-k { color: var(--accent); }
.hero-topmeta .meta-sep { color: var(--paper-ghost); }

/* Category strip — sits between name and lede */
.hero-categories {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-family: var(--ff-display);
  font-style: italic;
  font-variation-settings: "opsz" 72, "wght" 400, "SOFT" 60;
  font-size: clamp(0.95rem, 1.6vw, 1.2rem);
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--paper);
  padding-top: 10px;
  border-top: 1px solid var(--line);
  margin-top: -6px;
}
.hero-categories .hc-dot {
  color: var(--accent);
  font-style: normal;
  opacity: 0.75;
  font-size: 0.75em;
  vertical-align: 0.15em;
}

/* Name — the set piece (tightened scale) */
.hero-name {
  font-family: var(--ff-display);
  font-variation-settings: "SOFT" 30, "opsz" 144, "wght" 460;
  font-weight: 460;
  font-size: clamp(3.8rem, 10.5vw, 9.5rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin: 0;
  color: var(--paper);
  position: relative;
}

.hn-line {
  display: block;
  overflow: hidden;
}
.hn-2 {
  padding-left: clamp(0px, 5vw, 72px);
}
.hn-word {
  display: inline-block;
  position: relative;
  transform: translateY(0);
}
.hn-dot {
  color: var(--accent);
  font-style: italic;
  font-variation-settings: "SOFT" 100, "opsz" 144, "wght" 500;
  margin-left: -0.05em;
}

/* Hero body — full-width lede block now */
.hero-body {
  display: block;
}

.hero-body-main {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 72ch;
}

.hero-lede {
  font-family: var(--ff-display);
  font-variation-settings: "opsz" 72, "wght" 360, "SOFT" 30;
  font-weight: 360;
  font-size: clamp(1.2rem, 1.9vw, 1.65rem);
  line-height: 1.38;
  letter-spacing: -0.012em;
  color: var(--paper);
  margin: 0;
}
.hero-lede .lede-mark {
  color: var(--accent);
  font-family: var(--ff-mono);
  font-size: 0.82em;
  vertical-align: 0.12em;
  letter-spacing: 0;
  font-style: normal;
}

.hero-sublede {
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: -0.003em;
  color: var(--paper-dim);
  margin: 0;
  max-width: 56ch;
  padding-left: 14px;
  border-left: 1px solid var(--line-2);
}

/* Practice pills — bold tactile buttons showing abilities */
.hero-pills {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pill-label {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-faint);
}
.pill-label .pill-sep {
  color: var(--paper-ghost);
  margin: 0 4px;
}
.pills {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background:
    linear-gradient(180deg, rgba(237, 230, 211, 0.02), rgba(237, 230, 211, 0)),
    var(--ink-2);
  font-family: var(--ff-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1;
  color: var(--paper);
  transition: border-color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease), color .3s var(--ease);
  cursor: default;
  user-select: none;
  white-space: nowrap;
}
.pill:hover {
  border-color: var(--accent);
  background:
    linear-gradient(180deg, rgba(217, 117, 40, 0.18), rgba(217, 117, 40, 0.06)),
    var(--ink-2);
  transform: translateY(-1px);
}
.pill-num {
  font-family: var(--ff-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--accent);
  padding: 3px 7px;
  border: 1px solid var(--accent-dim);
  border-radius: 999px;
  background: rgba(217, 117, 40, 0.08);
}
.pill-text {
  font-weight: 600;
}

/* Hero CTAs — primary + ghost, above the fold */
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
}
.cta {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 22px 16px;
  border-radius: 999px;
  transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease), color .3s var(--ease);
  position: relative;
  line-height: 1.1;
}
.cta-eyebrow {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.75;
}
.cta-label {
  font-family: var(--ff-display);
  font-variation-settings: "opsz" 72, "wght" 460, "SOFT" 30;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
}
.cta-arrow {
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  font-family: var(--ff-display);
  font-size: 18px;
  transition: transform .4s var(--ease-out);
}

.cta-primary {
  background: var(--accent);
  color: var(--ink);
  padding-right: 54px;
  border: 1px solid var(--accent);
  box-shadow:
    0 8px 30px -12px rgba(217, 117, 40, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.cta-primary .cta-eyebrow { color: rgba(15, 13, 10, 0.7); }
.cta-primary:hover {
  background: var(--accent-hot);
  transform: translateY(-2px);
  box-shadow:
    0 14px 40px -10px rgba(217, 117, 40, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.cta-primary:hover .cta-arrow { transform: translate(4px, -50%); }

.cta-ghost {
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--line-2);
  padding-right: 22px;
}
.cta-ghost:has(.cta-arrow) { padding-right: 48px; }
.cta-ghost:hover {
  border-color: var(--paper-faint);
  background: var(--ink-2);
  transform: translateY(-1px);
}
.cta-ghost:hover .cta-arrow { transform: translate(4px, -50%); }

.hero-foot {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  flex-wrap: wrap;
}
.hero-foot-left,
.hero-foot-mid {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-scroll {
  display: inline-flex;
  flex-direction: column;
  align-items: end;
  gap: 4px;
  color: var(--paper);
  transition: color .2s var(--ease);
}
.hero-scroll:hover { color: var(--accent); }
.hero-scroll-arrow {
  font-size: 22px;
  line-height: 1;
  animation: bob 2.4s var(--ease) infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

/* ==========================================================================
   PORTFOLIO TICKER BAND — between hero and dossier
   ========================================================================== */

.ticker-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(217, 117, 40, 0.03), rgba(217, 117, 40, 0.01));
  overflow: hidden;
}

.ticker-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: clamp(20px, 3vw, 36px);
  padding: 18px 0;
  min-height: 62px;
}

.ticker-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
}
.ticker-label-arrow {
  font-size: 14px;
  letter-spacing: 0;
}

.ticker-items {
  display: flex;
  align-items: baseline;
  gap: clamp(14px, 2vw, 22px);
  font-family: var(--ff-display);
  font-variation-settings: "opsz" 72, "wght" 450, "SOFT" 40;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--paper);
  overflow: hidden;
  flex-wrap: wrap;
}

.ticker-items .ti {
  transition: color .3s var(--ease), font-style .3s var(--ease);
  cursor: default;
}
.ticker-items .ti:hover {
  color: var(--accent);
  font-style: italic;
  font-variation-settings: "opsz" 72, "wght" 450, "SOFT" 100;
}
.ticker-items .ti-dot {
  font-size: 4px;
  color: var(--paper-ghost);
  align-self: center;
  line-height: 1;
}

/* ==========================================================================
   SECTION SCAFFOLDING
   ========================================================================== */

section { position: relative; }

.section-head {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  margin-bottom: clamp(40px, 6vw, 80px);
}
.section-idx {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.section-rule {
  flex: 0 0 40px;
  height: 1px;
  background: var(--line-2);
}
.section-label {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--paper-dim);
}

.section-title {
  font-family: var(--ff-display);
  font-variation-settings: "opsz" 144, "wght" 420, "SOFT" 40;
  font-weight: 420;
  font-size: clamp(2rem, 4.8vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--paper);
  max-width: 20ch;
  margin: 0;
}
.section-title em {
  font-style: italic;
  color: var(--accent);
  font-variation-settings: "opsz" 144, "wght" 420, "SOFT" 100;
}

.section-sub {
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 60ch;
  color: var(--paper-dim);
}

/* ==========================================================================
   DOSSIER / NUMBERS
   ========================================================================== */

.dossier {
  padding: clamp(60px, 10vh, 140px) 0;
}

.numbers {
  margin-top: clamp(48px, 7vw, 96px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.n-cell {
  padding: clamp(32px, 4vw, 56px) clamp(20px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
}
.n-cell + .n-cell {
  border-left: 1px solid var(--line);
}

.n-value {
  font-family: var(--ff-display);
  font-variation-settings: "opsz" 144, "wght" 380;
  font-weight: 380;
  font-size: clamp(3.5rem, 7vw, 6.4rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--paper);
  display: inline-flex;
  align-items: baseline;
}
.n-value sup {
  font-family: var(--ff-mono);
  font-size: 0.22em;
  font-weight: 400;
  color: var(--accent);
  margin-left: 6px;
  letter-spacing: 0.08em;
  vertical-align: top;
  position: relative;
  top: 0.6em;
}
.n-num { display: inline-block; }

.n-rule {
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.n-label {
  font-family: var(--ff-mono);
  font-size: 11.5px;
  line-height: 1.55;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper-dim);
}

/* ==========================================================================
   PRACTICE / CAPABILITIES
   ========================================================================== */

.practice {
  padding: clamp(60px, 10vh, 140px) 0;
}

.practice-lede {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
  margin-bottom: clamp(56px, 8vw, 120px);
}
.practice-lede .section-title {
  max-width: none;
}
.practice-lede .section-sub {
  padding-top: 14px;
}

.practice-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.pg-cell {
  padding: 36px 28px 42px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: background .35s var(--ease);
}
.pg-cell:hover {
  background:
    linear-gradient(180deg, rgba(217, 117, 40, 0.07), transparent 60%),
    var(--ink-2);
}
.pg-cell::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width .45s var(--ease);
}
.pg-cell:hover::before { width: 100%; }

.pg-idx {
  font-family: var(--ff-display);
  font-style: italic;
  font-variation-settings: "opsz" 144, "wght" 420, "SOFT" 80;
  font-size: 1rem;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.pg-title {
  font-family: var(--ff-display);
  font-variation-settings: "opsz" 72, "wght" 480;
  font-weight: 480;
  font-size: 1.4rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--paper);
  margin: 0;
}

.pg-body {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--paper-dim);
  margin: 0;
}

/* ==========================================================================
   APPROACH / ESSAY
   ========================================================================== */

.approach {
  padding: clamp(60px, 10vh, 160px) 0;
  background:
    linear-gradient(180deg, transparent 0%, var(--ink-2) 20%, var(--ink-2) 80%, transparent 100%);
}

.approach-grid {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: clamp(40px, 7vw, 120px);
  align-items: start;
}

.approach-portrait {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.portrait-frame {
  position: relative;
  aspect-ratio: 3/4;
  border: 1px solid var(--line-2);
  background:
    radial-gradient(60% 40% at 50% 30%, rgba(217, 117, 40, 0.08), transparent 70%),
    linear-gradient(160deg, var(--ink-3) 0%, var(--ink) 100%);
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px rgba(237, 230, 211, 0.05),
    0 40px 80px -30px rgba(0, 0, 0, 0.6);
}
.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(237, 230, 211, 0.08);
  pointer-events: none;
}

.portrait-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  /* Warm the whites, lift blacks slightly, desaturate for dossier feel */
  filter: contrast(1.06) saturate(0.82) sepia(0.1) brightness(0.97);
  transition: filter .8s var(--ease), transform 1.4s var(--ease-out);
}
.portrait-frame:hover .portrait-image {
  filter: contrast(1.1) saturate(1) sepia(0.05) brightness(1);
  transform: scale(1.02);
}

/* Warm grading wash — blends the clinical white backdrop into the palette */
.portrait-grade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(15, 13, 10, 0.12) 0%,
      rgba(15, 13, 10, 0) 25%,
      rgba(15, 13, 10, 0) 60%,
      rgba(15, 13, 10, 0.55) 100%),
    radial-gradient(80% 60% at 50% 30%,
      rgba(217, 117, 40, 0.06) 0%,
      rgba(15, 13, 10, 0) 65%),
    linear-gradient(180deg,
      rgba(217, 117, 40, 0.04),
      rgba(217, 117, 40, 0.0) 40%);
  mix-blend-mode: multiply;
}
.portrait-frame::before {
  /* Subtle warm tint wash that sits above the image */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(42, 28, 14, 0) 0%,
      rgba(42, 28, 14, 0) 60%,
      rgba(15, 13, 10, 0.35) 100%);
  z-index: 1;
}

/* HUD marks — give the plate a dossier-register feel */
.portrait-hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.hud-mark {
  position: absolute;
  font-family: var(--ff-mono);
  color: var(--paper);
  opacity: 0.55;
  font-size: 14px;
  line-height: 1;
  mix-blend-mode: difference;
}
.hud-tl { top: 18px;    left: 18px;  }
.hud-tr { top: 18px;    right: 18px; }
.hud-bl { bottom: 18px; left: 18px;  }
.hud-br { bottom: 18px; right: 18px; }
.hud-caption {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--paper);
  opacity: 0.75;
  white-space: nowrap;
}

.portrait-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.approach-copy {
  max-width: var(--max-read);
}

.approach-title {
  font-family: var(--ff-display);
  font-variation-settings: "opsz" 144, "wght" 420, "SOFT" 50;
  font-weight: 420;
  font-size: clamp(2.4rem, 5.2vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--paper);
  margin: 0 0 clamp(32px, 4vw, 56px);
  max-width: 14ch;
}
.approach-title em {
  font-style: italic;
  color: var(--accent);
  font-variation-settings: "opsz" 144, "wght" 420, "SOFT" 100;
}

.approach-p {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--paper);
  margin: 0 0 1.2em;
  max-width: 58ch;
}
.approach-p em {
  font-style: italic;
  color: var(--paper);
}

.approach-lead {
  font-size: 1.18rem;
  line-height: 1.65;
}

.dropcap {
  font-family: var(--ff-display);
  font-variation-settings: "opsz" 144, "wght" 500, "SOFT" 30;
  float: left;
  font-size: 5.2em;
  line-height: 0.82;
  padding: 0.06em 0.1em 0 0;
  margin-right: 0.05em;
  color: var(--accent);
  font-weight: 500;
}

.pullquote {
  margin: clamp(40px, 5vw, 72px) 0 clamp(24px, 3vw, 40px);
  padding: 36px 0 0;
  border-top: 1px solid var(--line);
  max-width: 48ch;
}
.pullquote blockquote {
  margin: 0;
  font-family: var(--ff-display);
  font-variation-settings: "opsz" 72, "wght" 380, "SOFT" 60;
  font-style: italic;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--paper);
}
.pullquote figcaption {
  margin-top: 16px;
}

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

.ventures {
  padding: clamp(60px, 10vh, 140px) 0;
}

.ventures-title {
  max-width: 24ch;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.ventures-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.venture {
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.venture-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 3fr) minmax(0, 2fr) minmax(0, 2fr) 44px;
  align-items: center;
  gap: 24px;
  padding: 26px 8px;
  position: relative;
  transition: padding .35s var(--ease), background .35s var(--ease);
}
.venture-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(217, 117, 40, 0.08), transparent 70%);
  opacity: 0;
  transition: opacity .35s var(--ease);
  pointer-events: none;
}
.venture-row:hover { padding-left: 28px; padding-right: 28px; }
.venture-row:hover::before { opacity: 1; }

.v-idx {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.v-name {
  font-family: var(--ff-display);
  font-variation-settings: "opsz" 144, "wght" 450, "SOFT" 40;
  font-size: clamp(1.6rem, 3.2vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--paper);
  transition: color .25s var(--ease);
}
.venture-row:hover .v-name {
  color: var(--accent);
  font-style: italic;
  font-variation-settings: "opsz" 144, "wght" 450, "SOFT" 100;
}

.v-cat, .v-role {
  font-family: var(--ff-mono);
  font-size: 11.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--paper-dim);
}
.v-role { text-align: right; }

.v-arrow {
  justify-self: end;
  font-family: var(--ff-display);
  font-size: 22px;
  color: var(--paper-faint);
  transition: transform .35s var(--ease), color .25s var(--ease);
}
.venture-row:hover .v-arrow {
  transform: translate(4px, -4px);
  color: var(--accent);
}

.v-desc {
  max-height: 0;
  opacity: 0;
  margin: 0;
  padding: 0 8px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--paper-dim);
  max-width: 64ch;
  transition: max-height .45s var(--ease), opacity .3s var(--ease), padding .45s var(--ease);
  overflow: hidden;
}
.v-link {
  display: inline-block;
  margin-left: 6px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 2px 8px;
  border: 1px solid var(--accent-dim);
  border-radius: 999px;
  vertical-align: 2px;
}
.venture:hover .v-desc,
.venture:focus-within .v-desc {
  max-height: 120px;
  opacity: 1;
  padding: 0 8px 26px;
}

/* ==========================================================================
   CONTACT
   ========================================================================== */

.contact {
  padding: clamp(80px, 12vh, 180px) 0 clamp(60px, 8vh, 120px);
  position: relative;
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(217, 117, 40, 0.1), transparent 70%);
  pointer-events: none;
}

.contact-inner { position: relative; }

.contact-title {
  font-family: var(--ff-display);
  font-variation-settings: "opsz" 144, "wght" 400, "SOFT" 40;
  font-weight: 400;
  font-size: clamp(3rem, 8.5vw, 8rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
  color: var(--paper);
  margin: 0 0 clamp(24px, 4vw, 40px);
  max-width: 14ch;
  position: relative;
}
.contact-arrow {
  display: inline-block;
  color: var(--accent);
  font-style: italic;
  font-variation-settings: "opsz" 144, "wght" 400, "SOFT" 100;
  margin-left: 0.2em;
  transition: transform .6s var(--ease-out);
}
.contact:hover .contact-arrow {
  transform: translateX(10px);
}

.contact-lede {
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--paper-dim);
  max-width: 52ch;
  margin: 0 0 clamp(48px, 6vw, 80px);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.contact-card {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: background .3s var(--ease);
}
.contact-card:hover {
  background: var(--ink-2);
}
.cc-eyebrow {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-faint);
}
.cc-value {
  font-family: var(--ff-display);
  font-variation-settings: "opsz" 72, "wght" 440;
  font-size: 1.22rem;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--paper);
  word-break: break-all;
}
.cc-arrow {
  position: absolute;
  top: 22px; right: 20px;
  font-size: 16px;
  color: var(--paper-faint);
  transition: transform .4s var(--ease-out), color .25s var(--ease);
}
.contact-card:hover .cc-arrow {
  transform: translate(4px, -4px);
  color: var(--accent);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  position: relative;
  border-top: 1px solid var(--line);
  padding: 56px 0 0;
  overflow: hidden;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  padding-bottom: 40px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col-right { text-align: right; align-items: end; }

.footer-p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--paper-dim);
  max-width: 50ch;
  margin: 0;
}
.mono-p {
  font-family: var(--ff-mono);
  letter-spacing: 0.05em;
}

.footer-mark {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: clamp(14px, 3vw, 40px);
  padding: 24px 0 10px;
  font-family: var(--ff-display);
  font-variation-settings: "opsz" 144, "wght" 400, "SOFT" 30;
  font-size: clamp(3.5rem, 12vw, 14rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-2);
  text-stroke: 1px var(--line-2);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}
.footer-mark .fm-word-italic {
  font-style: italic;
  -webkit-text-stroke: 1px var(--accent-dim);
  font-variation-settings: "opsz" 144, "wght" 400, "SOFT" 100;
}

/* ==========================================================================
   REVEAL ANIMATIONS
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero intro stagger */
.hero-topmeta,
.hn-word,
.hero-categories,
.hero-lede,
.hero-sublede,
.hero-pills,
.hero-cta,
.hero-foot,
.ticker-inner {
  opacity: 0;
  transform: translateY(18px);
  animation: rise .9s var(--ease-out) forwards;
}
.hero-topmeta    { animation-delay: 0.08s; }
.hn-1 .hn-word   { animation-delay: 0.22s; }
.hn-2 .hn-word   { animation-delay: 0.38s; }
.hero-categories { animation-delay: 0.52s; }
.hero-lede       { animation-delay: 0.64s; }
.hero-sublede    { animation-delay: 0.74s; }
.hero-pills      { animation-delay: 0.84s; }
.hero-cta        { animation-delay: 0.94s; }
.hero-foot       { animation-delay: 1.04s; }
.ticker-inner    { animation-delay: 1.14s; }

/* Stagger each pill individually too */
.pills li {
  opacity: 0;
  transform: translateY(10px);
  animation: rise .7s var(--ease-out) forwards;
}
.pills li:nth-child(1) { animation-delay: 0.88s; }
.pills li:nth-child(2) { animation-delay: 0.94s; }
.pills li:nth-child(3) { animation-delay: 1.00s; }
.pills li:nth-child(4) { animation-delay: 1.06s; }
.pills li:nth-child(5) { animation-delay: 1.12s; }
.pills li:nth-child(6) { animation-delay: 1.18s; }
.pills li:nth-child(7) { animation-delay: 1.24s; }

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

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

/* ==========================================================================
   RESPONSIVE — tablet breakpoint
   ========================================================================== */

@media (max-width: 1080px) {
  .practice-grid          { grid-template-columns: repeat(2, 1fr); }
  .contact-grid           { grid-template-columns: repeat(2, 1fr); }
  .numbers                { grid-template-columns: repeat(2, 1fr); }
  .n-cell:nth-child(3)    { border-left: 0; border-top: 1px solid var(--line); }
  .n-cell:nth-child(4)    { border-top: 1px solid var(--line); }
  .practice-lede          { grid-template-columns: 1fr; gap: 20px; }
  .approach-grid          { grid-template-columns: 1fr; }
  .approach-portrait      { position: static; max-width: 400px; }
}

/* ==========================================================================
   RESPONSIVE — large mobile / small tablet
   ========================================================================== */

@media (max-width: 820px) {
  :root                   { --gutter: 22px; }

  .site-header            { padding: 14px 0; }
  .primary-nav            { display: none; }
  .header-inner           { grid-template-columns: auto 1fr; }
  .wordmark               { font-size: 17px; }
  .status                 { font-size: 10px; letter-spacing: 0.12em; }

  /* Hero */
  .hero                   {
    padding: 44px 0 max(40px, env(safe-area-inset-bottom));
  }
  .hero-inner             { row-gap: clamp(22px, 4.5vh, 42px); }
  .hero-body              { grid-template-columns: 1fr; gap: 28px; }
  .hero-foot              { align-items: flex-start; gap: 18px 24px; }
  .hero-foot-mid          { display: none; }

  /* Ticker */
  .ticker-inner           { grid-template-columns: 1fr; gap: 8px; padding: 16px 0; }
  .ticker-items           { font-size: 1rem; gap: 14px; }

  /* Footer */
  .footer-inner           { grid-template-columns: 1fr; }
  .footer-col-right       { text-align: left; align-items: start; }

  /* Ventures — 2-row card layout */
  .venture-row            {
    grid-template-columns: 36px 1fr 32px;
    grid-template-rows: auto auto;
    row-gap: 4px;
    padding: 22px 4px;
  }
  .venture-row:hover      { padding-left: 12px; padding-right: 12px; }
  .venture-row .v-idx     { grid-row: 1 / 3; align-self: start; padding-top: 8px; }
  .venture-row .v-name    { grid-column: 2; grid-row: 1; }
  .venture-row .v-cat     { grid-column: 2; grid-row: 2; }
  .venture-row .v-role    { display: none; }
  .venture-row .v-arrow   { grid-column: 3; grid-row: 1 / 3; align-self: start; }
  .venture:hover .v-desc,
  .venture:focus-within .v-desc { padding-left: 0; padding-right: 0; max-height: 220px; }
}

/* ==========================================================================
   RESPONSIVE — phone
   ========================================================================== */

@media (max-width: 560px) {
  :root                   { --gutter: 20px; }
  body                    { font-size: 16px; line-height: 1.56; }

  /* Header — keep it minimal and breathable */
  .site-header            { padding: 12px 0; }
  .wordmark               { font-size: 15.5px; }
  .status-text .sep       { display: none; }
  .status-text            {
    display: inline-flex; flex-direction: column;
    align-items: flex-end; line-height: 1.1; gap: 2px;
  }

  /* ==========  HERO  — THE FIRST IMPRESSION  ========== */
  .hero                   {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 36px 0 32px;
  }
  .hero-topmeta           {
    gap: 10px; font-size: 10px; letter-spacing: 0.2em;
  }
  .hero-name              {
    font-size: clamp(3.6rem, 17vw, 6.5rem);
    line-height: 0.88;
    letter-spacing: -0.045em;
    font-variation-settings: "SOFT" 40, "opsz" 144, "wght" 470;
  }
  .hn-2                   { padding-left: 8%; }

  .hero-categories        {
    font-size: 0.98rem;
    gap: 8px 12px;
    padding-top: 10px;
  }
  .hero-body-main         { gap: 18px; }
  .hero-lede              {
    font-size: 1.12rem;
    line-height: 1.36;
  }
  .hero-sublede           {
    font-size: 0.96rem;
    line-height: 1.6;
    padding-left: 12px;
  }
  /* Pills on phone — slightly smaller, tighter */
  .hero-pills             { padding-top: 14px; gap: 12px; }
  .pills                  { gap: 8px; }
  .pill                   {
    padding: 9px 14px 10px;
    font-size: 13px;
    gap: 8px;
  }
  .pill-num               { font-size: 9px; padding: 2px 6px; }

  /* CTAs on phone — stack full-width for easy tapping */
  .hero-cta               { gap: 10px; }
  .cta                    {
    flex: 1 1 calc(50% - 5px);
    min-width: 160px;
    padding: 13px 18px 15px;
  }
  .cta-primary            { flex: 1 1 100%; padding-right: 54px; }
  .cta-label              { font-size: 1rem; }
  .hero-foot              {
    padding-top: 16px;
    flex-wrap: wrap;
    gap: 14px;
  }
  .hero-foot-left         { gap: 2px; }

  /* Ticker on phone — scroll horizontally for elegance */
  .ticker-items           {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
    font-size: 0.95rem;
  }
  .ticker-items::-webkit-scrollbar { display: none; }
  .ticker-items .ti       { white-space: nowrap; }

  /* ==========  SECTION HEADS  ========== */
  .section-head           { padding: 22px 0; margin-bottom: clamp(28px, 5vw, 52px); gap: 12px; }
  .section-rule           { flex-basis: 24px; }
  .section-idx, .section-label { font-size: 10.5px; }
  .section-title          { font-size: clamp(1.75rem, 8vw, 2.6rem); line-height: 1.05; letter-spacing: -0.032em; }

  /* ==========  NUMBERS  — 2x2 on phone for punch  ========== */
  .numbers                {
    grid-template-columns: repeat(2, 1fr);
    margin-top: clamp(32px, 6vw, 56px);
  }
  .n-cell                 {
    padding: 26px 16px;
    gap: 14px;
  }
  .n-cell:nth-child(2n+1) { border-left: 0; }
  .n-cell:nth-child(n+3)  { border-top: 1px solid var(--line); }
  .n-cell:nth-child(2)    { border-left: 1px solid var(--line); }
  .n-value                { font-size: clamp(3.2rem, 16vw, 5rem); }
  .n-value sup            { font-size: 0.2em; }
  .n-label                { font-size: 10.5px; letter-spacing: 0.1em; }

  /* ==========  PRACTICE  ========== */
  .practice-grid          {
    grid-template-columns: 1fr;
    border-left: 0;
  }
  .pg-cell                {
    border-right: 0;
    padding: 28px 0 30px;
  }
  .pg-title               { font-size: 1.22rem; }
  .pg-body                { font-size: 14px; line-height: 1.6; }

  /* ==========  APPROACH  ========== */
  .approach               { padding: 72px 0 80px; }
  .approach-portrait      {
    max-width: 300px;
    margin: 0 0 24px;
  }
  .portrait-frame         { aspect-ratio: 4/5; }
  .hud-mark               { font-size: 12px; }
  .hud-caption            { font-size: 9px; letter-spacing: 0.22em; bottom: 14px; }

  .approach-title         {
    font-size: clamp(2.2rem, 10vw, 3.2rem);
    line-height: 0.98;
    margin-bottom: 28px;
  }
  .approach-p             { font-size: 1.02rem; line-height: 1.68; }
  .approach-lead          { font-size: 1.1rem; }
  .dropcap                { font-size: 4.2em; padding-right: 0.08em; }
  .pullquote              { padding-top: 28px; }
  .pullquote blockquote   { font-size: 1.3rem; line-height: 1.32; }

  /* ==========  VENTURES  — auto-expand descriptions on phone  ========== */
  .ventures-title         { margin-bottom: 28px; }
  .v-name                 { font-size: clamp(1.45rem, 7.2vw, 2rem); letter-spacing: -0.025em; }
  .v-cat                  { font-size: 10.5px; letter-spacing: 0.14em; }
  .v-desc                 { font-size: 14px; margin-top: 4px; }

  /* ==========  CONTACT  ========== */
  .contact                { padding: 80px 0 60px; }
  .contact-title          {
    font-size: clamp(2.8rem, 14vw, 4.5rem);
    line-height: 0.9;
    letter-spacing: -0.04em;
  }
  .contact-lede           { font-size: 1rem; }
  .contact-grid           { grid-template-columns: 1fr; }
  .contact-card           {
    padding: 22px 20px;
    min-height: 88px;
  }
  .cc-value               { font-size: 1.15rem; }
  .cc-arrow               { top: 22px; right: 18px; }

  /* ==========  FOOTER  ========== */
  .site-footer            { padding: 44px 0 0; }
  .footer-mark            { font-size: clamp(5rem, 32vw, 12rem); padding: 16px 0 8px; gap: 20px; }
  .footer-p               { font-size: 12px; }
}

/* ==========================================================================
   RESPONSIVE — touch-only refinements (no hover)
   ========================================================================== */

@media (hover: none) {
  /* Auto-expand venture descriptions on touch devices — hover won't fire */
  .venture .v-desc {
    max-height: 220px;
    opacity: 1;
    padding: 0 4px 22px;
  }
  .venture-row:hover { padding-left: 4px; padding-right: 4px; }
  .venture-row:hover::before { opacity: 0; }
  .venture-row:hover .v-name { color: var(--paper); font-style: normal; font-variation-settings: "opsz" 144, "wght" 450, "SOFT" 40; }
  .venture-row:active .v-name { color: var(--accent); }
  .venture-row:active::before { opacity: 1; }

  /* Remove hero parallax state on touch — set by JS but this ensures cleanup */
  .hero-name { transform: none !important; }
}

/* ==========================================================================
   RESPONSIVE — tiny phones
   ========================================================================== */

@media (max-width: 380px) {
  :root                   { --gutter: 18px; }
  .hero-name              { font-size: clamp(3rem, 18vw, 5rem); }
  .hero-topmeta           { font-size: 9px; }
  .numbers                { grid-template-columns: 1fr; }
  .n-cell                 { padding: 22px 14px; }
  .n-cell:nth-child(2)    { border-left: 0; border-top: 1px solid var(--line); }
  .n-cell:nth-child(n+3)  { border-top: 1px solid var(--line); }
  .contact-title          { font-size: clamp(2.2rem, 15vw, 3.6rem); }
}

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