/* =========================================================================
   ALI AMMAR JRADEH · "THE PAPER"
   Warm light editorial profile · paper + slate ink + calm deep teal
   Fraunces (display) · Inter (body / UI). Single calm light theme.
   ========================================================================= */

/* ---------- TOKENS ---------- */
:root {
  --bg:          #F6F3EC;   /* warm paper */
  --bg-alt:      #EFEBE1;   /* slightly deeper warm band */
  --surface:     #FCFAF5;   /* card */
  --surface-2:   #FFFFFF;
  --ink:         #24282E;   /* primary text */
  --text-2:      #4C525C;   /* secondary */
  --text-3:      #656C77;   /* muted (AA at small sizes) */
  --accent:      #1F6F63;   /* calm deep teal */
  --accent-strong:#185A50;  /* hover / pressed */
  --accent-soft: #E4EEE9;   /* tint surface */
  --on-accent:   #FFFFFF;
  --border:      #E3DDD0;   /* warm hairline */
  --border-soft: #ECE7DC;

  --accent-rgb:  31, 111, 99;
  --ink-rgb:     36, 40, 46;
  --bg-rgb:      246, 243, 236;

  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease:     cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io:  cubic-bezier(0.65, 0, 0.35, 1);
  --t-micro:  .2s;
  --t-base:   .66s;

  --maxw: 1180px;
  --gutter: clamp(1.15rem, 4.5vw, 5rem);
  --nav-h: 68px;

  --shadow-sm: 0 1px 2px rgba(var(--ink-rgb), 0.05), 0 1px 1px rgba(var(--ink-rgb), 0.03);
  --shadow-md: 0 2px 6px rgba(var(--ink-rgb), 0.05), 0 18px 40px -22px rgba(var(--ink-rgb), 0.22);

  color-scheme: light;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--f-body);
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  line-height: 1.7;
  color: var(--text-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
.hero__headline, .section__title, .quote__text, .contact__title,
.pillar__title, .tl__company, .case__title, .quad__title, .ledger__degree,
.honor__title, .wordmark__name, .dropcap, .tl__deck {
  font-family: var(--f-display);
  font-optical-sizing: auto;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
::selection { background: rgba(var(--accent-rgb), 0.18); color: var(--ink); }

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

/* ---------- SHARED ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.mono {
  font-family: var(--f-body); font-weight: 500;
  font-size: 0.72rem; letter-spacing: 0.13em; text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.kicker {
  font-family: var(--f-body); font-weight: 600;
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent);
}
.kicker__sep { color: var(--text-3); margin-inline: 0.4em; font-weight: 400; }

.rule { display: block; height: 1px; width: 100%; border: 0;
  background: linear-gradient(90deg, var(--accent) 0%, var(--border) 55%, transparent 100%); }

.icon { width: 1.05em; height: 1.05em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon--xs { width: 0.85em; height: 0.85em; }

.skip-link {
  position: fixed; top: 0; left: 50%; transform: translate(-50%, -120%); z-index: 1000;
  background: var(--accent); color: var(--on-accent); padding: 0.6rem 1.2rem;
  font-weight: 600; font-size: 0.8rem; border-radius: 0 0 8px 8px;
  transition: transform var(--t-micro) var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-weight: 600; font-size: 0.82rem; letter-spacing: 0.02em;
  padding: 0.9rem 1.5rem; border-radius: 100px; min-height: 48px; line-height: 1;
  transition: background var(--t-micro) var(--ease), color var(--t-micro) var(--ease),
              border-color var(--t-micro) var(--ease), transform var(--t-micro) var(--ease),
              box-shadow var(--t-micro) var(--ease);
}
.btn .icon { transition: transform var(--t-micro) var(--ease); }
.btn--solid { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-sm); }
.btn--solid:hover { background: var(--accent-strong); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--solid:hover .icon { transform: translateX(3px); }
.btn--ghost { color: var(--ink); border: 1px solid var(--border); background: var(--surface); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn--ghost:hover .icon { transform: translateY(2px); }
.btn--pill { color: var(--accent); border: 1px solid var(--border); background: var(--surface); padding: 0.7rem 1.15rem; min-height: 44px; font-size: 0.78rem; }
.btn--pill:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-1px); }

/* ---------- SCROLL PROGRESS ---------- */
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 900; background: transparent; }
.scroll-progress__bar { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent), var(--accent-strong)); }

/* ---------- MASTHEAD ---------- */
.masthead {
  position: fixed; inset: 0 0 auto 0; z-index: 700; height: var(--nav-h);
  display: flex; align-items: center; border-bottom: 1px solid transparent;
  transition: background .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.masthead.is-scrolled {
  background: rgba(var(--bg-rgb), 0.82);
  backdrop-filter: blur(12px) saturate(1.2); -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid var(--border); box-shadow: 0 1px 0 rgba(var(--ink-rgb), 0.02);
}
.masthead__inner { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); display: flex; align-items: center; gap: 1.4rem; }
.wordmark { display: flex; flex-direction: column; line-height: 1; margin-right: auto; min-width: 0; }
.wordmark__name { font-size: 1.3rem; font-weight: 600; color: var(--ink); letter-spacing: 0; }
.wordmark__role { font-weight: 500; font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3); margin-top: 0.28rem; }

.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav__link { position: relative; font-weight: 500; font-size: 0.86rem; color: var(--text-2); padding: 0.4rem 0; transition: color var(--t-micro) var(--ease); }
.nav__link::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform var(--t-micro) var(--ease); }
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after, .nav__link.is-current::after { transform: scaleX(1); }
.nav__link.is-current { color: var(--accent); }

.menu-toggle { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 5px; align-items: flex-end; }
.menu-toggle span { display: block; height: 2px; width: 24px; background: var(--ink); border-radius: 2px; transition: transform var(--t-micro) var(--ease), opacity var(--t-micro) var(--ease), width var(--t-micro) var(--ease); }
.menu-toggle span:nth-child(2) { width: 18px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); width: 24px; }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); width: 24px; }

/* ---------- MOBILE MENU ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 690;
  background: rgba(var(--bg-rgb), 0.98); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s var(--ease);
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu__nav { display: flex; flex-direction: column; gap: 0.2rem; padding: var(--gutter); width: 100%; max-width: 460px; }
.mobile-menu__link {
  display: flex; align-items: baseline; gap: 1rem;
  font-family: var(--f-display); font-size: clamp(1.5rem, 7vw, 2.1rem); font-weight: 500;
  color: var(--ink); padding: 0.55rem 0; border-bottom: 1px solid var(--border);
  opacity: 0; transform: translateY(12px);
}
.mobile-menu.is-open .mobile-menu__link { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.mobile-menu__link:hover { color: var(--accent); }
.mobile-menu__link .mono-index { font-family: var(--f-body); font-weight: 600; font-size: 0.8rem; color: var(--accent); letter-spacing: 0.06em; }
.mobile-menu__link--cv { color: var(--accent); }

/* ---------- RIGHT-RAIL CONTENTS ---------- */
.contents { position: fixed; right: clamp(1rem, 2.5vw, 2.2rem); top: 50%; transform: translateY(-50%); z-index: 600; display: none; }
.contents__list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.1rem; }
.contents__list a { display: flex; align-items: center; gap: 0.7rem; padding: 0.42rem 0; font-weight: 500; font-size: 0.7rem; letter-spacing: 0.08em; color: var(--text-3); transition: color var(--t-micro) var(--ease); }
.contents__num { position: relative; font-variant-numeric: tabular-nums; }
.contents__num::before { content: ""; position: absolute; right: calc(100% + 0.55rem); top: 50%; transform: translateY(-50%); width: 14px; height: 2px; background: var(--border); transition: width var(--t-micro) var(--ease), background var(--t-micro) var(--ease); }
.contents__label { max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0; transition: max-width .4s var(--ease), opacity .3s var(--ease); text-transform: uppercase; letter-spacing: 0.1em; }
.contents__list a:hover .contents__label, .contents__list a.is-current .contents__label { max-width: 96px; opacity: 1; }
.contents__list a:hover, .contents__list a.is-current { color: var(--accent); }
.contents__list a.is-current .contents__num::before { width: 26px; background: var(--accent); }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; overflow: hidden; padding-block: calc(var(--nav-h) + 2.5rem) 4rem; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(var(--bg-rgb), 0.65) 0%, rgba(var(--bg-rgb), 0.1) 30%, rgba(var(--bg-rgb), 0.2) 70%, var(--bg) 100%),
    linear-gradient(90deg, var(--bg) 0%, rgba(var(--bg-rgb), 0.55) 42%, transparent 72%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.hero__kicker { display: block; }
.rule--hero { max-width: 230px; margin: 1.1rem 0 1.9rem; }
.hero__headline { font-weight: 400; font-size: clamp(2rem, 1rem + 4.6vw, 5.1rem); line-height: 1.07; letter-spacing: -0.015em; color: var(--ink); max-width: 13em; text-wrap: balance; overflow-wrap: break-word; }
.hero__headline em { font-style: italic; font-weight: 500; color: var(--accent); }
.hero__standfirst { margin-top: 1.8rem; max-width: 52ch; font-size: clamp(1rem, 0.97rem + 0.3vw, 1.2rem); color: var(--text-2); line-height: 1.65; }
.hero__cta { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero__wordmark-ghost { position: absolute; right: -1.5vw; bottom: -6vh; z-index: 1; pointer-events: none; font-family: var(--f-display); font-weight: 500; font-size: 40vh; line-height: 1; color: var(--accent); opacity: 0.05; letter-spacing: -0.04em; }

/* ---------- IMPACT ---------- */
.impact { padding-block: clamp(3rem, 6vw, 5.5rem); background: var(--bg-alt); border-block: 1px solid var(--border); }
.impact__kicker { text-align: center; display: block; margin-bottom: 2.4rem; color: var(--text-3); }
.impact__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); }
.stat { background: var(--surface); padding: 1.9rem 1.5rem; text-align: center; }
.stat__num { display: block; font-family: var(--f-display); font-weight: 500; font-size: clamp(2.2rem, 1.4rem + 3vw, 3.4rem); color: var(--accent); line-height: 1; letter-spacing: -0.01em; }
.stat__num .counter, .counter__suffix { font-variant-numeric: tabular-nums; }
.counter__suffix { color: var(--accent); }
.stat__label { display: block; margin-top: 0.85rem; font-weight: 500; font-size: 0.74rem; letter-spacing: 0.04em; color: var(--text-3); line-height: 1.5; }

.impact__chips { margin-top: 2rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem; }
.chip { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.6rem 1.05rem; border: 1px solid var(--border); border-radius: 100px; background: var(--surface); font-size: 0.84rem; color: var(--text-2); }
.chip__mark { font-weight: 600; color: var(--accent); }

/* ---------- SECTION SHELL ---------- */
.section { padding-block: clamp(4rem, 9vw, 8rem); position: relative; }
.section--alt { background: var(--bg-alt); }
.section__head { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 0.5rem 1.3rem; margin-bottom: clamp(2.2rem, 5vw, 3.6rem); }
.section__num { font-weight: 600; font-size: 0.9rem; color: var(--accent); letter-spacing: 0.05em; font-variant-numeric: tabular-nums; }
.section__title { font-weight: 500; font-size: clamp(2rem, 1.3rem + 3.4vw, 3.2rem); line-height: 1.05; letter-spacing: -0.015em; color: var(--ink); }
.section__head .rule { grid-column: 1 / -1; margin-top: 0.7rem; }
.section__intro { max-width: 60ch; color: var(--text-2); margin-top: -1.6rem; margin-bottom: 2.8rem; font-size: 1.05rem; }

/* ---------- SUMMARY ---------- */
.summary__grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.summary__body p { margin-bottom: 1.3rem; max-width: 64ch; color: var(--text-2); }
.summary__lead { font-size: 1.12rem; color: var(--ink); }
.dropcap { float: left; font-family: var(--f-display); font-weight: 500; font-size: 3.6rem; line-height: 0.8; padding: 0.16rem 0.55rem 0 0; color: var(--accent); }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 2.4rem; }
.pillar { padding: 1.5rem 1.3rem; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-sm); transition: border-color var(--t-micro) var(--ease), transform var(--t-micro) var(--ease), box-shadow var(--t-micro) var(--ease); }
.pillar:hover { border-color: rgba(var(--accent-rgb), 0.45); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.pillar__icon { display: inline-flex; color: var(--accent); margin-bottom: 0.9rem; }
.pillar__icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pillar__title { font-size: 1.2rem; font-weight: 500; color: var(--ink); margin-bottom: 0.45rem; }
.pillar__text { font-size: 0.92rem; color: var(--text-3); line-height: 1.55; }

.summary__aside { position: sticky; top: calc(var(--nav-h) + 1.5rem); }
.portrait { position: relative; margin-bottom: 1.8rem; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--surface); max-width: 360px; box-shadow: var(--shadow-md); }
.portrait img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; filter: grayscale(0.55) contrast(1.02); transition: filter .6s var(--ease), transform .6s var(--ease); }
.portrait::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(160deg, rgba(var(--accent-rgb), 0.34), rgba(var(--accent-rgb), 0.04) 50%, rgba(var(--ink-rgb), 0.18)); mix-blend-mode: multiply; transition: opacity .6s var(--ease); }
.portrait::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(to top, rgba(var(--ink-rgb), 0.72) 2%, transparent 30%); }
.portrait:hover img { filter: none; transform: scale(1.025); }
.portrait:hover::before { opacity: 0; }
.portrait__cap { position: absolute; left: 1rem; bottom: 0.85rem; z-index: 2; color: #fff; font-size: 0.64rem; letter-spacing: 0.16em; display: flex; align-items: center; gap: 0.55rem; }
.portrait__cap span { color: var(--accent-soft); }
.portrait__cap span::before { content: "/ "; color: rgba(255,255,255,0.6); }

.quote-rotator { position: relative; border-left: 2px solid var(--accent); padding: 0.3rem 0 0.3rem 1.5rem; min-height: 150px; }
.quote { position: absolute; inset: 0 0 0 1.5rem; opacity: 0; transform: translateY(8px); transition: opacity .55s var(--ease), transform .55s var(--ease); pointer-events: none; }
.quote.is-active { position: relative; opacity: 1; transform: none; pointer-events: auto; }
.quote__text { font-weight: 500; font-size: clamp(1.45rem, 1.1rem + 1.6vw, 2rem); line-height: 1.18; color: var(--ink); }
.quote__text em { font-style: italic; color: var(--accent); }
.quote__cite { display: block; margin-top: 1rem; font-weight: 500; font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-3); font-style: normal; }
.quote-rotator__dots { position: absolute; left: 1.5rem; bottom: -1.5rem; display: flex; gap: 0.45rem; }
.quote-rotator__dots button { width: 30px; height: 28px; display: inline-flex; align-items: center; justify-content: center; }
.quote-rotator__dots button::after { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--border); transition: background var(--t-micro) var(--ease), width var(--t-micro) var(--ease); }
.quote-rotator__dots button[aria-current="true"]::after { background: var(--accent); width: 100%; }

/* ---------- TIMELINE ---------- */
.timeline { position: relative; padding-left: 2.4rem; }
.timeline__spine { position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--border); border-radius: 2px; }
.timeline__progress { position: absolute; left: 0; top: 0; width: 100%; height: 0%; background: linear-gradient(180deg, var(--accent), var(--accent-strong)); border-radius: 2px; }

.tl { position: relative; padding-block: 0.4rem 1.4rem; }
.tl__dot { position: absolute; left: calc(-2.4rem + 1px); top: 1.55rem; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--border); transition: border-color var(--t-base) var(--ease), background var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease); }
.tl.is-active .tl__dot { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.14); }

.tl__head { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 0.6rem 1.2rem; width: 100%; text-align: left; padding: 1rem 0; border-top: 1px solid var(--border); }
.tl:first-of-type .tl__head { border-top: none; }
.tl__meta { display: flex; flex-direction: column; gap: 0.28rem; }
.tl__company { font-size: clamp(1.3rem, 1rem + 1.3vw, 1.9rem); font-weight: 500; color: var(--ink); line-height: 1.05; transition: color var(--t-micro) var(--ease); }
.tl__head:hover .tl__company { color: var(--accent); }
.tl__descriptor { font-size: 0.88rem; color: var(--text-3); }
.tl__period { color: var(--text-3); font-size: 0.72rem; white-space: nowrap; }
.tl__chevron { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--t-micro) var(--ease); }
.tl__head[aria-expanded="true"] .tl__chevron { transform: rotate(180deg); }

.tl__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.tl__panel.is-open { grid-template-rows: 1fr; }
.tl__panel-inner { overflow: hidden; min-height: 0; }
.tl__deck { font-style: italic; font-size: 1.12rem; color: var(--text-2); padding-top: 0.9rem; }
.tl__roles { list-style: none; padding: 1rem 0 0.3rem; display: flex; flex-direction: column; gap: 0.4rem; }
.tl__roles li { display: flex; justify-content: space-between; gap: 1rem; color: var(--ink); font-size: 0.72rem; }
.tl__roles li span:last-child { color: var(--accent); white-space: nowrap; font-weight: 600; }
.tl__points { list-style: none; padding: 0.8rem 0 0; display: flex; flex-direction: column; gap: 0.7rem; }
.tl__points li { position: relative; padding-left: 1.4rem; color: var(--text-2); max-width: 72ch; line-height: 1.6; }
.tl__points li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 7px; height: 7px; border: 1.5px solid var(--accent); transform: rotate(45deg); }
.tl__tags { color: var(--text-3); padding-top: 1.1rem; font-size: 0.72rem; line-height: 1.7; letter-spacing: 0.02em; }

/* ---------- CASES ---------- */
.cases { display: flex; flex-direction: column; gap: 1.2rem; }
.case { border: 1px solid var(--border); border-radius: 16px; background: var(--surface); overflow: hidden; box-shadow: var(--shadow-sm); transition: border-color var(--t-micro) var(--ease), transform var(--t-micro) var(--ease), box-shadow var(--t-micro) var(--ease); }
.case:hover { border-color: rgba(var(--accent-rgb), 0.4); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.case__head { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1.5rem; padding: clamp(1.3rem, 3vw, 2rem); }
.case__context { display: block; margin-bottom: 0.7rem; }
.case__title { font-weight: 500; font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem); color: var(--ink); line-height: 1.1; letter-spacing: -0.01em; }
.case__summary { margin-top: 0.6rem; color: var(--text-3); max-width: 52ch; }
.case__toggle { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 0.8rem; color: var(--accent); white-space: nowrap; padding: 0.6rem 0; min-height: 44px; }
.case__toggle .icon { transition: transform var(--t-micro) var(--ease); }
.case__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.case__toggle .case__toggle-close { display: none; }
.case__toggle[aria-expanded="true"] .case__toggle-open { display: none; }
.case__toggle[aria-expanded="true"] .case__toggle-close { display: inline; }

.case__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.case__body.is-open { grid-template-rows: 1fr; }
.case__body-inner { overflow: hidden; min-height: 0; }
.case__smr { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; padding: 1.6rem clamp(1.3rem, 3vw, 2rem) 0.5rem; border-top: 1px solid var(--border); }
.smr__k { display: block; color: var(--accent); margin-bottom: 0.6rem; font-size: 0.68rem; }
.smr p { color: var(--text-2); font-size: 0.95rem; line-height: 1.6; }

.case__trace { padding: 1.6rem clamp(1.3rem, 3vw, 2rem) 0; }
.trace { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.8rem; max-width: 460px; }
.trace__label { color: var(--text-3); font-size: 0.64rem; }
.trace__svg { width: 100%; height: 40px; }
.trace__path { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 320; stroke-dashoffset: 320; }
.case__body.is-open .trace__path { transition: stroke-dashoffset 1.4s var(--ease) .15s; stroke-dashoffset: 0; }
.trace__from { color: var(--text-3); font-size: 0.68rem; }
.trace__to { color: var(--accent); font-size: 0.74rem; font-weight: 600; }

.case__chips { display: flex; flex-wrap: wrap; gap: 0.6rem; padding: 1.5rem clamp(1.3rem, 3vw, 2rem) clamp(1.3rem, 3vw, 2rem); }
.metric-chip { display: inline-flex; align-items: center; padding: 0.5rem 0.9rem; border: 1px solid var(--border); border-radius: 8px; color: var(--text-2); font-size: 0.68rem; background: var(--accent-soft); }

/* ---------- CAPABILITY MATRIX ---------- */
.matrix { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.quad { padding: clamp(1.4rem, 3vw, 2.2rem); border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-sm); transition: opacity .3s var(--ease), border-color var(--t-micro) var(--ease), transform var(--t-micro) var(--ease), box-shadow var(--t-micro) var(--ease); }
.matrix:hover .quad:not(:hover) { opacity: 0.5; }
.quad:hover { border-color: rgba(var(--accent-rgb), 0.5); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.quad__top { display: flex; align-items: baseline; gap: 0.9rem; margin-bottom: 1.2rem; }
.quad__id { font-weight: 600; font-size: 0.82rem; color: var(--accent); border: 1px solid var(--border); border-radius: 6px; padding: 0.25rem 0.55rem; }
.quad__title { font-weight: 500; font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem); color: var(--ink); }
.bar { height: 4px; background: var(--border-soft); border-radius: 4px; overflow: hidden; margin-bottom: 1.3rem; }
.bar__fill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-strong)); border-radius: 4px; transition: width 1.1s var(--ease) .2s; }
.quad.is-visible .bar__fill { width: var(--pct); }
.quad__skills { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.quad__skills li { position: relative; padding-left: 1.1rem; color: var(--text-3); font-size: 0.72rem; letter-spacing: 0.02em; transition: color var(--t-micro) var(--ease); }
.quad__skills li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 5px; height: 5px; background: var(--accent); border-radius: 50%; opacity: 0.7; }
.quad:hover .quad__skills li { color: var(--text-2); }

/* ---------- LEDGER (EDUCATION) ---------- */
.ledger { list-style: none; padding: 0; }
.ledger__row { display: grid; grid-template-columns: 160px 1fr; gap: 1.5rem; padding: 1.7rem 0; border-top: 1px solid var(--border); transition: background var(--t-micro) var(--ease); }
.ledger__row:last-child { border-bottom: 1px solid var(--border); }
.ledger__row:hover { background: var(--accent-soft); }
.ledger__date { color: var(--accent); padding-top: 0.4rem; font-size: 0.74rem; }
.ledger__degree { font-weight: 500; font-size: clamp(1.2rem, 1rem + 0.9vw, 1.55rem); color: var(--ink); line-height: 1.15; }
.ledger__org { margin-top: 0.4rem; color: var(--text-2); font-size: 0.95rem; }
.ledger__loc { color: var(--text-3); }
.ledger__note { margin-top: 0.55rem; color: var(--text-3); font-size: 0.9rem; line-height: 1.55; max-width: 72ch; }
.ledger__note em { color: var(--text-2); font-style: italic; }

/* ---------- HONORS ---------- */
.honors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.honor { display: flex; gap: 1rem; padding: 1.5rem 1.4rem; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-sm); transition: border-color var(--t-micro) var(--ease), transform var(--t-micro) var(--ease), box-shadow var(--t-micro) var(--ease); }
.honor:hover { border-color: rgba(var(--accent-rgb), 0.45); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.honor__icon { flex: none; color: var(--accent); }
.honor__icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.honor__title { font-weight: 500; font-size: 1.18rem; color: var(--ink); line-height: 1.15; margin-bottom: 0.4rem; }
.honor__text { font-size: 0.88rem; color: var(--text-3); line-height: 1.55; }

/* ---------- CONTACT / FOOTER ---------- */
.contact { position: relative; overflow: hidden; background: var(--bg-alt); border-top: 1px solid var(--border); padding-block: clamp(4.5rem, 10vw, 9rem); }
.contact__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.85; }
.contact__inner { position: relative; z-index: 2; text-align: center; }
.contact .section__num { display: block; margin-bottom: 1rem; }
.contact__title { font-weight: 500; font-size: clamp(3rem, 1.6rem + 7vw, 6.5rem); line-height: 1; letter-spacing: -0.02em; color: var(--ink); }
.contact__title em { font-style: italic; color: var(--accent); }
.contact__deck { margin: 1.4rem auto 0; max-width: 46ch; color: var(--text-2); font-size: 1.1rem; }

.contact__grid { margin: 3rem auto 0; max-width: 760px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; text-align: left; box-shadow: var(--shadow-sm); }
.contact__item { display: flex; flex-direction: column; gap: 0.4rem; padding: 1.3rem 1.4rem; background: var(--surface); min-height: 44px; transition: background var(--t-micro) var(--ease); }
a.contact__item:hover { background: var(--accent-soft); }
.contact__k { color: var(--text-3); font-size: 0.66rem; }
.contact__v { color: var(--ink); font-size: 0.95rem; display: inline-flex; align-items: center; gap: 0.4rem; word-break: break-word; }
a.contact__item:hover .contact__v { color: var(--accent); }
.contact__item--cv .contact__v, .contact__item--cv .contact__k { color: var(--accent); }

.contact__actions { margin-top: 2.6rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.9rem; }
.colophon { margin-top: 3.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 2rem; color: var(--text-3); font-size: 0.68rem; letter-spacing: 0.06em; }

/* ---------- REVEAL ---------- */
[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease); transition-delay: var(--reveal-delay, 0ms); will-change: opacity, transform; }
[data-reveal].is-visible { opacity: 1; transform: none; }
.rule[data-reveal] { opacity: 1; transform: scaleX(0); transform-origin: left; transition: transform .85s var(--ease) var(--reveal-delay, 0ms); will-change: transform; }
.rule[data-reveal].is-visible { transform: scaleX(1); }

/* ---------- RESPONSIVE ---------- */
@media (min-width: 1500px) { .contents { display: block; } }

@media (max-width: 1024px) {
  .nav { display: none; }
  .menu-toggle { display: flex; }
  .summary__grid { grid-template-columns: 1fr; }
  .summary__aside { position: static; }
  .portrait { max-width: 320px; }
}
@media (max-width: 760px) {
  :root { --nav-h: 60px; }
  .btn--pill { display: none; }
  .impact__grid { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: 1fr; }
  .matrix { grid-template-columns: 1fr; }
  .matrix:hover .quad:not(:hover) { opacity: 1; }
  .honors { grid-template-columns: 1fr; }
  .case__head { grid-template-columns: 1fr; gap: 1rem; }
  .case__smr { grid-template-columns: 1fr; gap: 1.2rem; }
  .tl__head { grid-template-columns: 1fr auto; }
  .tl__period { grid-column: 1 / -1; grid-row: 2; }
  .tl__chevron { grid-column: 2; grid-row: 1; }
  .ledger__row { grid-template-columns: 1fr; gap: 0.45rem; }
  .ledger__date { padding-top: 0; }
  .contact__grid { grid-template-columns: 1fr; }
  .portrait { max-width: 100%; }
}
@media (max-width: 420px) {
  .impact__grid { grid-template-columns: 1fr; }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.2s !important; scroll-behavior: auto !important; }
  [data-reveal] { transform: none !important; }
  .rule[data-reveal] { transform: scaleX(1) !important; }
  .bar__fill { transition: none; }
  .trace__path { stroke-dashoffset: 0 !important; }
  .portrait:hover img { transform: none; }
}
