/* ============================================================
   hellouchit.com — design-system stylesheet
   Tokens, type, atmosphere, shell, hero. One file. No frameworks.
   ============================================================ */

:root {
  --bg:           #0c0d10;
  --bg-2:         #0f1116;
  --surface:      #13151a;
  --surface-2:    #181b22;
  --ink:          #ecedf0;
  --muted:        #9097a3;
  --faint:        #5a6170;
  --line:         rgba(255,255,255,.07);
  --line-strong:  rgba(255,255,255,.13);
  --accent:       #d99757;
  --accent-deep:  #b97a3d;
  --accent-soft:  rgba(217,151,87,.10);
  --signal:       #43d39e;
  --r:            12px;
  --maxw:         1180px;
  --ease:         cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  font-feature-settings: "ss01","cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img,svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }

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

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: -9999px; top: auto;
}
.skip-link:focus {
  left: 16px; top: 16px; z-index: 9999;
  background: var(--accent); color: #11140d;
  padding: 10px 14px; border-radius: 8px; font-weight: 500;
}

/* ---------- Atmosphere ---------- */
.bg-fx { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.bg-fx::before {
  content: ""; position: absolute;
  top: -28vh; left: 50%; transform: translateX(-50%);
  width: 120vw; height: 90vh;
  background: radial-gradient(50% 50% at 50% 50%, rgba(217,151,87,.11), transparent 70%);
}
.bg-fx::after {
  content: ""; position: absolute;
  bottom: -22vh; right: -12vw;
  width: 60vw; height: 60vh;
  background: radial-gradient(50% 50% at 50% 50%, rgba(70,130,255,.05), transparent 70%);
}
.grid-fx {
  position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: .55;
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 80%);
          mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 80%);
}
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: .035; 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='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 4.5vw, 40px); width: 100%; }
section { position: relative; }
.section-pad { padding: clamp(80px, 11vw, 144px) 0; }

.mono {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-feature-settings: "ss01";
}

.eyebrow {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px;
  background: var(--accent); opacity: .8;
}

/* ---------- Nav ---------- */
header.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding-top: max(env(safe-area-inset-top, 0px), 8px);
  border-bottom: 1px solid transparent;
  transition: background .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s;
}
header.nav.scrolled {
  background: rgba(12,13,16,.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.monogram {
  width: 42px; height: 42px;
  border: 1px solid var(--accent); border-radius: 10px;
  display: grid; place-items: center;
  font-family: "Fraunces", serif; font-weight: 600;
  color: var(--accent); font-size: 22px; line-height: 1; letter-spacing: -.02em;
  transition: background .4s var(--ease), box-shadow .4s var(--ease);
}
.brand:hover .monogram {
  background: var(--accent-soft);
  box-shadow: 0 0 24px -6px var(--accent-soft);
}
.brand .blab { display: block; }
.brand .blab b {
  font-weight: 500; font-size: 15px; display: block; line-height: 1.15;
  letter-spacing: -.005em;
}
.brand .blab span {
  display: block; font-size: 11px; color: var(--muted);
  letter-spacing: .04em;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}
nav.links { display: flex; align-items: center; gap: 30px; }
nav.links a {
  font-size: 14px; color: var(--muted); position: relative;
  transition: color .25s;
}
nav.links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1px; background: var(--accent);
  transition: width .3s var(--ease);
}
nav.links a:hover { color: var(--ink); }
nav.links a:hover::after { width: 100%; }
.nav-cta {
  border: 1px solid var(--line-strong); padding: 9px 16px; border-radius: 8px;
  color: var(--ink) !important;
  transition: border-color .25s, background .25s;
}
.nav-cta:hover { border-color: var(--accent); background: var(--accent-soft); }
.nav-cta::after { display: none !important; }
.menu-btn {
  display: none; font-size: 22px; color: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  padding: calc(clamp(120px, 14vw, 176px) + env(safe-area-inset-top, 0px)) 0 clamp(64px, 8vw, 96px);
  position: relative;
}
.hero > .wrap { position: relative; z-index: 1; }
.hero-top {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px;
  align-items: center; margin-top: 28px;
}

.status {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12.5px; letter-spacing: .08em;
  color: var(--muted);
  border: 1px solid var(--line); border-radius: 100px;
  padding: 7px 14px; background: rgba(255,255,255,.02);
  line-height: 1.3;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--signal); position: relative; flex-shrink: 0;
}
.dot::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  background: var(--signal); opacity: .4;
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { transform: scale(.6); opacity: .5; }
  100% { transform: scale(2.4); opacity: 0; }
}

.hero h1 {
  font-family: "Fraunces", "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(48px, 7.6vw, 108px);
  line-height: .96; letter-spacing: -.02em;
  margin: 28px 0 0;
  max-width: 14ch;
}
.hero h1 em {
  font-style: italic; color: var(--accent); font-weight: 500;
}
.hero-role {
  margin-top: 28px;
  font-size: clamp(17px, 1.7vw, 20px);
  color: var(--ink); font-weight: 300; max-width: 52ch; line-height: 1.55;
}
.hero-role b { color: var(--accent); font-weight: 500; }

.hero-meta {
  margin-top: 32px;
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 10px 18px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12.5px; color: var(--muted); letter-spacing: .02em;
}
.hero-meta li { list-style: none; display: inline-flex; align-items: center; gap: 18px; }
.hero-meta li + li::before {
  content: ""; width: 1px; height: 14px; background: var(--line-strong);
}

.cta-row { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14.5px; font-weight: 500;
  padding: 13px 22px; border-radius: 9px;
  transition: transform .25s var(--ease), box-shadow .3s, background .3s, border-color .3s;
}
.btn svg { width: 16px; height: 16px; stroke-width: 1.6; fill: none; }
.btn-primary {
  background: var(--accent); color: #14110b; border: 1px solid var(--accent);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -12px var(--accent-deep);
}
.btn-primary svg { stroke: #14110b; }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--accent); background: var(--accent-soft);
  transform: translateY(-2px);
}
.btn-ghost svg { stroke: var(--ink); }

/* ---------- Hero portrait — transparent cutout, ambient copper backlight ---------- */
.portrait {
  position: relative; justify-self: center;
  width: 100%; max-width: 720px;
  padding: 18px; /* room for corner brackets */
}
/* Subtle copper corner brackets — Aditi-grade polish without a box */
.portrait > .corner {
  position: absolute; width: 22px; height: 22px; z-index: 2;
  border-color: var(--accent); pointer-events: none; opacity: .85;
}
.portrait > .corner.tl { top: 0; left: 0;     border-top: 1.5px solid; border-left: 1.5px solid; }
.portrait > .corner.tr { top: 0; right: 0;    border-top: 1.5px solid; border-right: 1.5px solid; }
.portrait > .corner.bl { bottom: 0; left: 0;  border-bottom: 1.5px solid; border-left: 1.5px solid; }
.portrait > .corner.br { bottom: 0; right: 0; border-bottom: 1.5px solid; border-right: 1.5px solid; }
.portrait::after {
  content: ""; position: absolute; inset: -6% -4% 6% -4%;
  z-index: -1; border-radius: 50%;
  background: radial-gradient(58% 58% at 50% 42%, rgba(217,151,87,.34), transparent 72%);
  filter: blur(46px);
}
/* Frameless: image is a transparent PNG cutout — no box, no mask, no crop.
   Just the subject floating on the page bg with a copper backlight behind. */
.portrait-frame {
  position: relative;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible;
  transition: transform .6s var(--ease), filter .6s var(--ease);
}
.portrait:hover .portrait-frame { transform: translateY(-3px) scale(1.01); filter: saturate(1.05); }
.portrait-frame img,
.portrait-frame picture {
  display: block; width: 100%; height: auto;
  background: transparent;
  filter: saturate(1.04) contrast(1.05) drop-shadow(0 30px 50px rgba(0,0,0,.55));
}
/* monogram fallback if image fails */
.portrait.fallback .portrait-frame img { display: none; }
.portrait-fallback {
  display: none; aspect-ratio: 4 / 5;
  background: radial-gradient(120% 90% at 50% 20%, var(--surface-2), transparent 75%);
  place-items: center;
  font-family: "Fraunces", serif; font-weight: 500;
  font-size: 130px; color: var(--accent); letter-spacing: -.02em;
}
.portrait.fallback .portrait-fallback { display: grid; }

/* index ticker bottom of hero */
.hero-foot {
  margin-top: clamp(56px, 8vw, 96px);
  display: flex; align-items: center; justify-content: space-between;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px; color: var(--faint); letter-spacing: .12em;
}
.hero-foot .ix { color: var(--accent); }

/* ============================================================
   STATS WALL — hairline grid of monumental numbers
   ============================================================ */
.stats {
  margin-top: clamp(56px, 8vw, 96px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(6, 1fr);
}
.stat {
  padding: clamp(28px, 3.4vw, 40px) clamp(16px, 2vw, 24px);
  border-right: 1px solid var(--line);
  position: relative; min-height: 168px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: background .4s var(--ease);
}
.stat:last-child { border-right: 0; }
.stat:hover { background: rgba(255,255,255,.018); }
.stat .num {
  font-family: "Fraunces", serif;
  font-weight: 500;
  font-size: clamp(40px, 4.6vw, 64px);
  line-height: 1; letter-spacing: -.02em;
  color: var(--ink);
}
.stat .num .u {
  color: var(--accent); font-size: .48em;
  vertical-align: super; margin-left: 3px;
  font-style: italic; font-weight: 400;
}
.stat .num em {
  font-style: italic; color: var(--accent); font-weight: 500;
  font-size: .52em; display: block; margin-top: 2px;
  letter-spacing: 0;
}
.stat .lbl {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: .14em;
  color: var(--muted); text-transform: uppercase;
  line-height: 1.4;
}

/* ============================================================
   EMPLOYERS — quiet logo strip
   ============================================================ */
.emp {
  padding: clamp(40px, 5vw, 64px) 0;
  border-bottom: 1px solid var(--line);
}
.emp-label {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 22px;
}
.emp-row {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: clamp(28px, 5vw, 56px);
}
.emp-row img {
  height: 32px; width: auto; max-width: 140px;
  object-fit: contain;
  opacity: .55; filter: grayscale(1) brightness(1.6) contrast(1.05);
  transition: opacity .35s var(--ease), filter .35s var(--ease), transform .35s var(--ease);
}
.emp-row img:hover {
  opacity: 1; filter: grayscale(0) brightness(1.05);
  transform: translateY(-1px);
}
.emp-foot {
  margin-top: 18px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11.5px; letter-spacing: .04em; color: var(--faint);
}

/* ============================================================
   SECTORS — quiet trust strip
   ============================================================ */
.sectors {
  padding: clamp(56px, 7vw, 88px) 0;
  border-bottom: 1px solid var(--line);
}
.sectors-label {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 28px;
}
.sectors-list {
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: clamp(20px, 3vw, 44px);
  font-family: "Fraunces", serif; font-weight: 500;
  font-size: clamp(22px, 2.6vw, 32px); line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--ink);
}
.sectors-list .sep {
  color: var(--accent); font-style: italic; opacity: .55;
  margin: 0 -8px;
}
.sectors-list .accent { color: var(--accent); font-style: italic; font-weight: 500; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.tmnls-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.6vw, 32px);
}
.tmnl {
  display: flex; flex-direction: column; gap: 20px;
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background:
    linear-gradient(180deg, rgba(255,255,255,.018), transparent 60%),
    var(--surface);
  position: relative;
  transition: border-color .35s, transform .35s var(--ease);
}
.tmnl:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.tmnl::before {
  content: "\201C";
  position: absolute; top: 12px; right: 22px;
  font-family: "Fraunces", serif; font-style: italic;
  font-size: 72px; line-height: 1;
  color: var(--accent); opacity: .25;
}
.tmnl blockquote {
  font-family: "Fraunces", serif;
  font-style: italic; font-weight: 400;
  font-size: clamp(16.5px, 1.4vw, 18.5px);
  line-height: 1.55; color: var(--ink);
  flex: 1;
}
.tmnl .who {
  display: flex; flex-direction: column; gap: 2px;
  padding-top: 18px; border-top: 1px solid var(--line);
}
.tmnl .who b {
  font-family: "IBM Plex Sans", sans-serif; font-weight: 500;
  font-size: 14px; color: var(--ink); letter-spacing: -.005em;
}
.tmnl .who span {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11.5px; letter-spacing: .06em; color: var(--muted);
}

/* ============================================================
   REVEAL — subtle scroll fade-up
   ============================================================ */
html.js .reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
html.js .reveal.in { opacity: 1; transform: none; }
.hero .reveal { transition-duration: .9s; }
[data-d="1"] { transition-delay: .06s; }
[data-d="2"] { transition-delay: .14s; }
[data-d="3"] { transition-delay: .22s; }
[data-d="4"] { transition-delay: .30s; }
[data-d="5"] { transition-delay: .38s; }
[data-d="6"] { transition-delay: .46s; }

/* ============================================================
   SECTIONS — shared
   ============================================================ */
.section-head {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: end; gap: 24px;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.section-head h2 {
  font-family: "Fraunces", serif;
  font-weight: 500;
  font-size: clamp(30px, 4.4vw, 48px);
  line-height: 1.04; letter-spacing: -.015em;
  margin-top: 16px; max-width: 22ch;
}
.section-head h2 em { font-style: italic; color: var(--accent); font-weight: 500; }
.section-index {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  color: var(--faint); font-size: 13px; letter-spacing: .12em;
  white-space: nowrap;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: linear-gradient(180deg, transparent, rgba(255,255,255,.012)); }
.about-grid {
  display: grid; grid-template-columns: .9fr 1.1fr;
  gap: clamp(40px, 7vw, 96px); align-items: start;
}
.about-quote {
  font-family: "Fraunces", serif;
  font-style: italic; font-weight: 400;
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.35; color: var(--ink);
  border-left: 1px solid var(--accent);
  padding: 4px 0 4px 24px;
  max-width: 26ch;
}
.about-quote span { color: var(--accent); font-style: normal; }
.about-body p {
  color: var(--muted);
  font-size: clamp(15.5px, 1.25vw, 17.5px);
  line-height: 1.75;
}
.about-body p + p { margin-top: 1.2em; }
.about-body b { color: var(--ink); font-weight: 500; }
.about-body a { color: var(--ink); border-bottom: 1px solid var(--accent); padding-bottom: 1px; transition: background .25s; }
.about-body a:hover { background: var(--accent-soft); }

/* ============================================================
   EXPERTISE — 6-cell hairline grid
   ============================================================ */
.expertise-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.exp-cell {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(28px, 3.4vw, 44px);
  position: relative;
  transition: background .35s var(--ease);
}
.exp-cell:hover { background: rgba(255,255,255,.015); }
.exp-ix {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11.5px; letter-spacing: .22em;
  color: var(--accent);
}
.exp-cell h3 {
  font-family: "Fraunces", serif;
  font-weight: 500;
  font-size: clamp(22px, 1.9vw, 26px);
  line-height: 1.15; letter-spacing: -.01em;
  margin: 14px 0 12px;
  color: var(--ink);
}
.exp-cell p {
  font-size: 14.5px; line-height: 1.65; color: var(--muted);
  max-width: 32ch;
}
.exp-cell .exp-tags {
  margin-top: 18px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11.5px; color: var(--faint); letter-spacing: .04em;
}

/* ============================================================
   WORK — case studies as editorial list
   ============================================================ */
.work-list { border-top: 1px solid var(--line); }
.work-row {
  display: grid;
  grid-template-columns: 60px 130px 1fr auto;
  gap: clamp(16px, 3vw, 36px);
  align-items: baseline;
  padding: clamp(26px, 3vw, 36px) 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  color: var(--ink);
  transition: padding-left .35s var(--ease), color .35s;
}
.work-row::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: var(--accent); opacity: 0;
  transition: opacity .35s var(--ease);
}
.work-row:hover { padding-left: 18px; }
.work-row:hover::before { opacity: 1; }
.work-ix {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  color: var(--faint); font-size: 13px; letter-spacing: .12em;
}
.work-sector {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent);
}
.work-body h3 {
  font-family: "Fraunces", serif; font-weight: 500;
  font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2;
  letter-spacing: -.01em; margin-bottom: 8px;
}
.work-body p {
  color: var(--muted); font-size: 15px; line-height: 1.6;
  max-width: 56ch;
}
.work-cta {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12.5px; letter-spacing: .12em;
  color: var(--muted); white-space: nowrap;
  transition: color .25s, transform .25s var(--ease);
}
.work-row:hover .work-cta { color: var(--accent); transform: translateX(4px); }

/* ============================================================
   BOOKS — quiet shelf
   ============================================================ */
.books-shelf {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: end;
}
.book {
  text-align: left;
}
.book-cover {
  aspect-ratio: 2 / 3;
  background: var(--surface-2);
  border-radius: 4px;
  position: relative; overflow: hidden;
  isolation: isolate;
  box-shadow:
    0 30px 50px -22px rgba(0,0,0,.7),
    0 8px 18px -10px rgba(0,0,0,.6),
    inset 0 0 0 1px var(--line);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.book-cover img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  transition: transform .8s var(--ease), filter .45s;
  filter: saturate(.95) contrast(1.04);
}
.book-cover::after { /* subtle spine highlight + page-edge */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.32) 0%, transparent 6%, transparent 96%, rgba(255,255,255,.05) 100%),
    linear-gradient(180deg, rgba(255,255,255,.06), transparent 18%);
  pointer-events: none; z-index: 2;
}
.book:hover .book-cover {
  transform: translateY(-8px) rotate(-.4deg);
  box-shadow:
    0 50px 80px -24px rgba(0,0,0,.9),
    0 10px 22px -10px rgba(217,151,87,.18),
    inset 0 0 0 1px rgba(217,151,87,.35);
}
.book:hover .book-cover img { transform: scale(1.03); filter: saturate(1.05) contrast(1.06); }
.book-meta {
  margin-top: 14px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11.5px; color: var(--faint); letter-spacing: .04em;
  line-height: 1.5;
}
.book-meta b { color: var(--muted); font-weight: 500; display: block; }

/* ============================================================
   SPEAKING — select list
   ============================================================ */
.talk-list { border-top: 1px solid var(--line); }
.talk-row {
  display: grid;
  grid-template-columns: 80px 1fr 200px;
  gap: 24px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.talk-year {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  color: var(--accent); font-size: 13px; letter-spacing: .08em;
}
.talk-title {
  color: var(--ink); font-size: 16px; font-weight: 500;
}
.talk-title small {
  display: block; color: var(--muted); font-weight: 400; font-size: 14px;
  margin-top: 4px;
}
.talk-place {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  color: var(--faint); font-size: 12.5px; letter-spacing: .06em;
  text-align: right;
}
.talk-more {
  margin-top: clamp(30px, 4vw, 48px);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12.5px; letter-spacing: .12em; color: var(--muted);
}
.talk-more a {
  color: var(--accent); border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}

/* ============================================================
   WRITING — 3 teaser cards
   ============================================================ */
.writing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.6vw, 32px);
}
.essay {
  display: flex; flex-direction: column; gap: 14px;
  padding: clamp(26px, 2.8vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(255,255,255,.012), transparent);
  transition: border-color .35s var(--ease), transform .35s var(--ease), background .35s;
  color: var(--ink); min-height: 260px;
  position: relative; overflow: hidden;
}
.essay::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.essay:hover {
  border-color: var(--line-strong); transform: translateY(-3px);
  background: linear-gradient(180deg, rgba(255,255,255,.025), transparent);
}
.essay:hover::after { transform: scaleX(1); }
.essay-meta {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11.5px; letter-spacing: .14em; color: var(--faint);
  text-transform: uppercase;
}
.essay-meta b { color: var(--accent); font-weight: 500; }
.essay h3 {
  font-family: "Fraunces", serif; font-weight: 500;
  font-size: clamp(22px, 1.9vw, 26px); line-height: 1.2;
  letter-spacing: -.01em;
}
.essay p { color: var(--muted); font-size: 14.5px; line-height: 1.65; flex: 1; }
.essay-cta {
  margin-top: 4px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px; letter-spacing: .12em; color: var(--accent);
}

.writing-all {
  margin-top: clamp(32px, 4vw, 48px);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px; letter-spacing: .1em; color: var(--muted);
}
.writing-all a {
  color: var(--ink); border-bottom: 1px solid var(--accent); padding-bottom: 1px;
}

/* ============================================================
   CONTACT — redesigned 2026-05-30. Centered editorial layout,
   two prominent CTAs, thin secondary row. Same restraint as the
   rest of the site; clear hierarchy (primary → ghost → muted meta).
   ============================================================ */
.contact .wrap { text-align: center; }
.ct-head { max-width: 64ch; margin: 0 auto; }
.ct-head .eyebrow { justify-content: center; }
.ct-head h2 {
  font-family: "Fraunces", serif; font-weight: 500;
  font-size: clamp(38px, 5.4vw, 64px); line-height: 1.04;
  letter-spacing: -.02em; margin-top: 16px;
  margin-left: auto; margin-right: auto;
  max-width: 20ch;
}
.ct-head h2 em { font-style: italic; color: var(--accent); font-weight: 500; }
.ct-head .ct-dek {
  margin: 22px auto 0;
  color: var(--ink); font-size: clamp(16px, 1.4vw, 19px); line-height: 1.6;
  font-weight: 300; max-width: 56ch;
}

/* Primary CTA — Book the call. */
.ct-cta {
  margin-top: clamp(36px, 4.5vw, 52px);
  display: flex; justify-content: center;
  text-align: center;
}
.ct-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 15px; font-weight: 500; letter-spacing: -.005em;
  color: var(--ink);
  text-decoration: none;
  transition: background .2s, border-color .2s, color .2s, transform .2s var(--ease);
  -webkit-tap-highlight-color: rgba(217,151,87,.18);
}
.ct-btn:hover { transform: translateY(-1px); }
.ct-btn-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #0c0d10;
}
.ct-btn-primary:hover { background: #e0a464; border-color: #e0a464; color: #0c0d10; }

/* Three small icons centered BELOW the CTA — email / LinkedIn / PDF. */
.ct-ico-row {
  margin-top: 22px;
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  width: 100%;
  text-align: center;
}
.ct-ico {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  text-decoration: none;
  transition: border-color .2s, color .2s, background .2s, transform .2s var(--ease);
  -webkit-tap-highlight-color: rgba(217,151,87,.18);
}
.ct-ico:hover, .ct-ico:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(217,151,87,.06);
  transform: translateY(-2px);
  outline: none;
}

@media (max-width: 480px) {
  .ct-btn { padding: 14px 22px; font-size: 15px; }
  .ct-ico { width: 42px; height: 42px; }
  .ct-ico-row { gap: 12px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
footer.foot {
  border-top: 1px solid var(--line);
  margin-top: clamp(80px, 10vw, 128px);
  padding: 36px 0 48px;
}
.foot-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px; color: var(--faint); letter-spacing: .08em;
}
.foot-inner a { color: var(--muted); }
.foot-inner a:hover { color: var(--accent); }
.foot-ix { color: var(--accent); }

/* ---------- Responsive ---------- */
/* ============================================================
   MOBILE / RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(3n) { border-right: 0; }
  .stat:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .stat .num { font-size: clamp(34px, 5vw, 48px); }
  .stat .num em { font-size: .56em; }
}

@media (max-width: 900px) {
  .nav-inner { height: 64px; }
  .menu-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 8px;
    border: 1px solid var(--line-strong); color: var(--ink);
  }
  /* Mobile nav: full-screen overlay, slides in from right.
     NOTE: do NOT use backdrop-filter on the panel itself — iOS Safari
     has a known render bug where backdrop-filter + transform breaks
     pointer-events on the panel's children (the menu opens, the blur
     shows, but taps don't reach the links). Solid background only. */
  nav.links {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(340px, 88vw);
    background: #0c0d10;
    border-left: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 88px 22px 32px;
    transform: translateX(100%);
    transition: transform .32s var(--ease);
    z-index: 1001;
    box-shadow: -30px 0 60px -20px rgba(0,0,0,.7);
    pointer-events: none;
    visibility: hidden;
    touch-action: manipulation;
  }
  nav.links.open { transform: translateX(0); pointer-events: auto; visibility: visible; }
  nav.links a {
    display: block;
    width: 100%;
    padding: 16px 4px;
    font-size: 18px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    text-decoration: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(217,151,87,.18);
  }
  nav.links a:active { background: rgba(217,151,87,.08); }
  nav.links a::after { display: none; }
  nav.links .nav-cta {
    margin-top: 18px; border: 1px solid var(--accent);
    background: var(--accent-soft); padding: 14px 18px;
    border-radius: 8px; border-bottom: 1px solid var(--accent);
    text-align: center;
  }
  /* Backdrop behind mobile nav. pointer-events: auto so a tap outside
     the panel closes the menu via the document click handler. */
  body.menu-open::before {
    content: ""; position: fixed; inset: 0; z-index: 1000;
    background: rgba(0,0,0,.55);
    animation: cmdk-fade .25s ease;
    pointer-events: auto;
  }
  body.menu-open { overflow: hidden; }
  /* Make sure the hamburger is always tappable above the backdrop */
  .menu-btn { z-index: 1002; position: relative; touch-action: manipulation; cursor: pointer; }
  .hero { padding-top: 120px; }
  .hero-top {
    grid-template-columns: 1fr; gap: 40px;
  }
  .portrait { justify-self: center; max-width: 520px; }
  .hero-top { grid-template-columns: 1fr; gap: 24px; }
  .hero h1 { max-width: 100%; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .expertise-grid { grid-template-columns: repeat(2, 1fr); }
  .work-row { grid-template-columns: 50px 1fr; gap: 6px 16px; }
  .work-row .work-sector { grid-column: 2; }
  .work-row .work-body { grid-column: 2; }
  .work-row .work-cta { grid-column: 2; margin-top: 8px; }
  .books-shelf { grid-template-columns: repeat(3, 1fr); }
  .talk-row { grid-template-columns: 60px 1fr; gap: 4px 16px; }
  .talk-place { grid-column: 2; text-align: left; }
}
@media (max-width: 900px) {
  .writing-grid { grid-template-columns: 1fr; }
  /* contact-card replaced by .ct-grid 2026-05-29 */
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(3n) { border-right: 0; }
  .stat:nth-child(n+1):nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .tmnls-grid { grid-template-columns: 1fr; }
  .sectors-list { font-size: 22px; gap: 14px; }
  .sectors-list .sep { display: none; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { min-height: 132px; padding: 22px 16px; }
  .stat:nth-child(n) { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-last-child(-n+2) { border-bottom: 0; }
  .stat .num { font-size: 36px; }
  .stat .num em { font-size: .5em; }
  .stat .lbl { font-size: 10.5px; }

  /* Hero foot ticker wraps on narrow */
  .hero-foot { flex-wrap: wrap; gap: 8px 14px; font-size: 10.5px; }

  /* Sections: tighten extreme min */
  .section-pad { padding: clamp(64px, 14vw, 100px) 0; }

  /* Sectors-list inline-wrap */
  .sectors-list { font-size: 20px; gap: 10px 14px; }

  /* Talks: place + meta on its own line, no right-align */
  .talk-row { padding: 18px 0; }
  .talk-year { font-size: 12px; }
  .talk-title { font-size: 15px; }
  .talk-title small { font-size: 13px; }

  /* Work rows: more breathing room */
  .work-row { padding: 22px 0; }
  .work-body h3 { font-size: 20px; }
  .work-body p { font-size: 14.5px; }

  /* Voice cards a touch tighter */
  .tmnl { padding: 24px; }
  .tmnl blockquote { font-size: 16px; }

  /* Contact (new .ct- pattern handled in its own MQ at 720px) */
  .ct-head h2 { font-size: 32px; }

  /* Footer wrap */
  .foot-inner { flex-direction: column; align-items: flex-start; gap: 10px; font-size: 11.5px; }

  /* Brand: shorten tagline */
  .brand .blab span { display: none; }
  .brand .blab b { font-size: 14px; }
  .monogram { width: 38px; height: 38px; font-size: 19px; }

  /* Tool quiz: nav row reflows */
  .q-nav { flex-wrap: wrap; gap: 8px 14px; font-size: 11px; }
  .q-nav > span:nth-child(2) { order: 3; flex-basis: 100%; color: var(--faint); }
  .q-opt { padding: 14px 16px; }
  .q-opt .body { font-size: 14.5px; }
  .q-card { padding: 24px 20px; }
  .q-text { font-size: 22px; margin-bottom: 22px; }

  /* Result panel */
  .result-card { padding: 28px 22px; }
  .result-score { font-size: 56px; }
  .result-level { font-size: 20px; margin-bottom: 22px; }
  .result-body { font-size: 15px; }
  .result-actions { flex-direction: column; }
  .result-actions .btn { width: 100%; justify-content: center; }
  .cap-row { grid-template-columns: 1fr 80px 28px; gap: 10px; font-size: 13px; }

  /* Buttons touch target */
  .btn { padding: 14px 20px; min-height: 48px; }

  /* Tool hero meta */
  .tool-meta { font-size: 11px; gap: 12px 16px; }
}

/* Tiny screens — last-resort tightening */
@media (max-width: 380px) {
  .hero h1 { font-size: 44px; }
  .stat .num { font-size: 32px; }
  .stat .num em { font-size: .46em; }
  .sectors-list { font-size: 18px; }
  .section-head h2 { font-size: 26px; }
  .about-quote { font-size: 21px; }
  .tool-hero h1 { font-size: 36px; }
}

/* Universal: prevent horizontal overflow + word-break long URLs */
body { overflow-x: hidden; max-width: 100vw; }
.brand b, .cval, .essay-cta, .talk-title small { word-break: break-word; overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}
@media (max-width: 480px) {
  .books-shelf { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .expertise-grid { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: 1fr; }
  .section-index { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .dot::after { animation: none; }
}

/* ============================================================
   Mobile safety layer — site-wide guardrails. Loaded on every page.
   ============================================================ */

/* No horizontal scroll. Period. */
html, body { max-width: 100vw; overflow-x: clip; }

/* Long URLs, code, and monospace content must wrap, not overflow */
a, code, kbd, samp, .essay-meta, .meta, .crumb, .e-meta, .d-hero .meta {
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Code blocks can scroll horizontally inside their container, not the page */
pre {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Tables (e.g. comparison tables in essays) scroll inside a container */
table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Content images/iframes never overflow. SVGs deliberately excluded:
   they're usually inline icons whose size is set by the parent. */
img, video, iframe { max-width: 100%; height: auto; }

/* Touch targets: minimum 44×44 for all interactive elements on small screens */
@media (max-width: 640px) {
  button, .essay-cta, .nav-cta, .secbadge, .cmdk-item,
  .d-opt, .reset, .nc, .dx-card, .s-card, .nc { min-height: 44px; }

  /* Hero h1 must fit without forcing scroll */
  h1 { word-break: break-word; hyphens: auto; }

  /* Pros/cons grid in decision leaves: stack */
  .d-leaf .pros-cons { grid-template-columns: 1fr !important; gap: 14px; }

  /* Compound diagnostic + sector card grids: single column when very narrow */
  .dx-grid, .s-cards, .writing-grid, .next-cards { grid-template-columns: 1fr !important; }

  /* Tighten heavy section padding so above-fold content shows */
  .d-hero, .s-hero, .r-hero, .m-hero { padding-top: clamp(96px, 18vw, 140px); }

  /* Decision-tree question card: ease the radius/padding */
  .d-q { padding: 22px 18px; border-radius: 10px; }
  .d-opt { padding: 16px 16px; border-radius: 8px; }
  .d-opt .ohead { flex-direction: column; gap: 4px; align-items: flex-start; }
  .d-opt .ohead h3 { font-size: 17px; }
  .d-opt .otag { font-size: 10px; }

  /* Path breadcrumb: easier to scan, smaller chips */
  .d-path .wrap { font-size: 10.5px; }
  .d-path .step { padding: 3px 8px; }
  .d-path .reset { margin-left: 0; margin-top: 6px; width: 100%; text-align: center; }

  /* Maturity benchmark + nav-ctx blocks: trim padding */
  .m-bench, .m-nav-ctx { padding: 14px 16px; }
  .m-nav-ctx { font-size: 10.5px; }

  /* Reading-list rows already collapse via their own MQ; reinforce */
  .r-item { grid-template-columns: 1fr; gap: 6px; }
  .r-item .kind { padding-top: 0; }

  /* Essay foot rows wrap cleanly */
  .e-foot .wrap > .row, .e-foot .wrap { font-size: 13px; }

  /* Footer brand row */
  .foot-inner { flex-direction: column; gap: 10px; text-align: center; align-items: center; }

  /* Cmd-K trigger smaller on mobile (no clutter) */
  .cmdk-trigger { right: 12px; bottom: 12px; padding: 8px 12px; font-size: 12px; }

  /* Tier nav-ctx labels wrap, not crush */
  .m-nav-ctx b { display: inline-block; margin-right: 4px; }
}

/* Very narrow phones (iPhone SE, older Androids) */
@media (max-width: 380px) {
  .d-hero h1, .s-hero h1, .r-hero h1, .m-hero h1, .e-body h1 { font-size: 30px !important; line-height: 1.08; }
  .d-q h2, .d-leaf h2 { font-size: 22px !important; }
  .nav-inner { padding-left: 14px; padding-right: 14px; }
  .brand .blab { display: none; } /* keep only monogram */
  .crumb, .d-hero .crumb { font-size: 10.5px; }
}

/* ============================================================
   "Also on this site" — single restrained discoverability row.
   Sits just above the Contact section. No boxes; just labels.
   ============================================================ */
.also-strip {
  padding: clamp(40px, 5vw, 60px) 0 clamp(16px, 2vw, 24px);
  border-top: 1px solid var(--line);
}
.also-strip .lab {
  display: block;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.also-strip .also-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 4px;
  align-items: center;
}
.also-strip .also-links a {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 14px;
  border-bottom: 1px dotted transparent;
  transition: color .2s, border-color .2s;
}
.also-strip .also-links a:hover,
.also-strip .also-links a:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
  outline: none;
}
.also-strip .also-links a + a {
  border-left: 1px solid var(--line);
}
@media (max-width: 480px) {
  .also-strip .also-links a { font-size: 12.5px; padding: 5px 10px; }
  .also-strip .also-links a + a { border-left: none; }
}
