/* alexkoho.com: dark, flat, one family. Tokens first, everything else references them. */
:root {
  --bg: #111111;
  --surface: #1c1c1c;
  --deep: #0a0a0a;
  --void: #000000;
  --ink: #f2f2f2;
  --muted: #b4b4b4;
  --accent: #a08672;
  --accent-ink: #111111;

  --step-small: 0.9375rem;
  --step-body: 1.125rem;
  --step-lead: 1.625rem;
  --step-mid: clamp(2rem, 4.4vw, 4rem);
  --step-close: clamp(3.5rem, 10.5vw, 11rem);
  --step-big: clamp(4.5rem, 19.4vw, 21rem);

  --margin: clamp(20px, 1.7vw, 24px);
  --gap-section: clamp(104px, 13vw, 200px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Cabinet Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--step-body);
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.03em; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 10px 16px; z-index: 50; }
.skip:focus { left: 8px; }
.wrap { padding-inline: var(--margin); }

/* One button shape for the whole page: flat, square, one fill. */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 800; font-size: 1.0625rem; letter-spacing: -0.01em;
  border: 0; border-radius: 0; cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease);
}
.btn:hover { background: var(--ink); transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }

/* Entrance: content is visible unless script marks the page as ready. */
.js [data-reveal] { opacity: 0; transform: translateY(26px); }
.js [data-reveal].in {
  opacity: 1; transform: none;
  transition: opacity 0.8s var(--ease) var(--d, 0ms), transform 0.8s var(--ease) var(--d, 0ms);
}

/* Hero ------------------------------------------------------------- */
.hero { position: relative; min-height: 100svh; overflow: hidden; background: var(--bg); }
.hero-photo {
  position: absolute; left: var(--margin); top: var(--margin); bottom: var(--margin);
  width: calc(47vw - var(--margin)); overflow: hidden; background: var(--void);
}
.hero-photo img {
  width: 100%; height: 118%; object-fit: cover; object-position: 50% 12%;
  filter: contrast(1.05);
  will-change: transform;
}
.hero-photo::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 38%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0)); /* neutral scrim under the name, taste-skill-ignore */
  pointer-events: none;
}
.hero-nav {
  position: absolute; top: var(--margin); right: var(--margin); z-index: 4;
  display: flex; align-items: center; gap: 28px; font-size: 1rem; font-weight: 500;
}
.hero-nav a:not(.btn) { padding: 6px 0; transition: color 0.2s; }
.hero-nav a:not(.btn):hover { color: var(--accent); }
.hero-nav .btn { min-height: 44px; padding: 0 22px; }
.hero-lead {
  position: absolute; z-index: 3;
  left: calc(47vw + 44px); right: var(--margin); top: 30%;
  display: grid; gap: 32px; justify-items: start;
}
.hero-lead p { font-size: var(--step-lead); line-height: 1.3; max-width: 30ch; font-weight: 500; }
.monument {
  position: absolute; z-index: 3; left: var(--margin); bottom: 6px; margin: 0;
  font-size: var(--step-big);
  line-height: 0.78; font-weight: 800; letter-spacing: -0.05em;
  white-space: nowrap; text-transform: none;
  transform-origin: left bottom; will-change: transform;
  padding-bottom: 0.07em;
}

/* Hats (intro + the live readout) ------------------------------------ */
.hats { padding-top: var(--gap-section); }
.hats .wrap { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 32px; align-items: end; padding-bottom: 56px; }
.hats h2 { grid-column: 1 / 8; font-size: var(--step-mid); line-height: 0.98; letter-spacing: -0.045em; max-width: 16ch; }
.captions { grid-column: 9 / 13; display: grid; gap: 14px; }
.captions p { font-size: var(--step-body); line-height: 1.4; max-width: 34ch; }
.strip { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface); }
.hat { background: var(--surface); border: 0; padding: 0; cursor: pointer; text-align: left; display: block; }
.hat .pic { display: block; overflow: hidden; background: var(--deep); }
.hat img { width: 100%; aspect-ratio: 1; object-fit: cover; filter: brightness(0.62) saturate(0); transition: filter 0.5s var(--ease), transform 0.9s var(--ease); }
.hat:hover img { filter: brightness(0.85); transform: scale(1.03); }
.hat[aria-pressed="true"] img { filter: none; }
.hat .name { display: block; padding: 18px var(--margin) 20px; font-size: var(--step-lead); font-weight: 800; letter-spacing: -0.03em; color: var(--muted); transition: background-color 0.3s, color 0.3s; }
.hat[aria-pressed="true"] .name { background: var(--ink); color: var(--bg); }
.readout { padding-block: 72px 0; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 40px; align-items: start; }
.readout [data-for] { display: contents; }
.js .readout [data-for][hidden] { display: none; }
.readout h3 { grid-column: 1 / 7; font-size: var(--step-mid); line-height: 0.98; letter-spacing: -0.04em; max-width: 12ch; }
.readout dl { grid-column: 7 / 13; margin: 0; display: grid; grid-template-columns: minmax(150px, 0.34fr) 1fr; row-gap: 22px; column-gap: 24px; }
.readout dt { color: var(--muted); font-size: var(--step-body); }
.readout dd { margin: 0; font-size: var(--step-body); }
.readout .cost { grid-column: 1 / 13; font-size: var(--step-small); color: var(--muted); max-width: 64ch; }

/* Paths (services) ---------------------------------------------------- */
.paths { padding-block: var(--gap-section); }
.paths h2 { font-size: var(--step-lead); margin-bottom: 96px; letter-spacing: -0.02em; }
.cols { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 56px; align-items: start; }
.group { grid-column: span 3; }
.group:nth-of-type(1) { grid-column: 1 / 4; }
.group:nth-of-type(2) { grid-column: 4 / 7; }
.group:nth-of-type(3) { grid-column: 7 / 10; }
.group h3 { font-size: var(--step-body); font-weight: 800; letter-spacing: -0.01em; margin-bottom: 20px; }
.group ul { list-style: none; margin: 0; padding: 0; font-size: var(--step-body); line-height: 1.3; }
.group li { padding: 4px 0; color: var(--muted); transition: color 0.2s; cursor: default; }
.group li:hover, .group li:focus-visible { color: var(--ink); }
.group .sum { display: none; margin-top: 20px; color: var(--muted); }
.desc { grid-column: 10 / 13; grid-row: 1; font-size: var(--step-body); color: var(--ink); min-height: 4.5em; transition: opacity 0.25s; }
.never { margin-top: 120px; max-width: 46rem; font-size: var(--step-lead); line-height: 1.3; font-weight: 500; }
.never span { color: var(--muted); }

/* Method (one verb at a time) ----------------------------------------- */
.method-h { background: var(--bg); padding: 0 var(--margin) 40px; }
.method-h h2 { font-size: var(--step-lead); letter-spacing: -0.02em; }
.panel { position: relative; height: 100svh; min-height: 560px; background: var(--p); overflow: hidden; }
.panel:nth-of-type(1) { --p: #161616; }
.panel:nth-of-type(2) { --p: #101010; }
.panel:nth-of-type(3) { --p: #080808; }
.panel:nth-of-type(4) { --p: #000000; }
.panel h3.verb { position: absolute; left: var(--margin); top: 50%; transform: translateY(-52%); margin: 0; font-size: var(--step-big); line-height: 0.95; font-weight: 800; letter-spacing: -0.05em; }
.panel p { position: absolute; right: var(--margin); bottom: 48px; width: min(38ch, 42vw); font-size: var(--step-lead); line-height: 1.3; font-weight: 500; }

/* The lab ---------------------------------------------------------- */
.lab { background: var(--bg); padding-block: var(--gap-section); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 56px; padding-inline: var(--margin); align-items: start; }
.lab h2 { grid-column: 2 / 8; font-size: var(--step-lead); letter-spacing: -0.02em; }
.figures { grid-column: 2 / 8; margin: 0; display: grid; grid-template-columns: 132px 1fr; column-gap: 24px; row-gap: 40px; align-items: baseline; }
.figures dt { text-align: right; font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.figures dd { margin: 0; max-width: 40ch; color: var(--muted); }
.lab aside { grid-column: 9 / 13; grid-row: 2; display: grid; gap: 28px; justify-items: start; align-self: start; }
.lab aside p { font-size: var(--step-lead); line-height: 1.3; font-weight: 500; }
.lab .asof { grid-column: 2 / 8; font-size: var(--step-small); color: var(--muted); }

/* Close ----------------------------------------------------------- */
.close { background: var(--void); min-height: 90svh; display: grid; grid-template-rows: 1fr auto; padding: 64px var(--margin) 40px; }
.close h2 { font-size: var(--step-close); line-height: 0.9; letter-spacing: -0.05em; max-width: 12ch; align-self: start; }
.close-row { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: end; }
.close-row p { grid-column: 1 / 6; font-size: var(--step-lead); line-height: 1.3; }
.close-row .btn { grid-column: 10 / 13; justify-self: end; min-height: 56px; }

/* Footer ---------------------------------------------------------- */
.foot { background: var(--surface); min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; padding: 40px var(--margin) 20px; }
.foot-cols { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 32px; font-size: var(--step-body); }
.foot-cols div { grid-column: span 3; display: grid; gap: 6px; align-content: start; }
.foot-cols strong { font-weight: 800; }
.foot-cols a, .foot-cols span { color: var(--muted); transition: color 0.2s; }
.foot-cols a:hover { color: var(--ink); }
.foot-mark { align-self: end; margin: 0; font-size: 25vw; line-height: 0.78; font-weight: 800; letter-spacing: -0.05em; white-space: nowrap; padding-bottom: 0.07em; margin-left: -0.02em; }
.legal { font-size: var(--step-small); color: var(--muted); max-width: 68ch; padding-top: 18px; line-height: 1.5; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }

/* Tablet --------------------------------------------------------- */
@media (max-width: 1000px) {
  .readout h3, .readout dl { grid-column: 1 / 13; }
  .readout dl { grid-template-columns: minmax(150px, 0.3fr) 1fr; }
  .panel { height: auto; min-height: 0; padding: 88px var(--margin) 72px; display: flex; flex-direction: column; gap: 28px; justify-content: center; }
  .panel h3.verb, .panel p { position: static; transform: none; }
  .panel p { width: auto; max-width: 34ch; }
}

/* Phone ------------------------------------------------------------ */
@media (max-width: 860px) {
  .hero { display: flex; flex-direction: column; min-height: 100svh; }
  .hero-photo { position: relative; inset: auto; left: auto; top: auto; bottom: auto; margin: 12px 12px 0; width: auto; height: 58svh; flex: none; }
  .hero-nav { top: 24px; right: 24px; gap: 16px; }
  .hero-nav a:not(.btn) { display: none; }
  .hero-nav .btn { min-height: 40px; padding: 0 18px; font-size: 0.9375rem; }
  .monument { position: relative; left: auto; bottom: auto; order: 2; margin: -9vw 0 0 12px; font-size: 21vw; padding-bottom: 0.1em; }
  .hero-lead { position: relative; left: auto; right: auto; top: auto; order: 3; padding: 4px 20px 40px; gap: 24px; }
  .hero-lead p { font-size: 1.125rem; max-width: 34ch; }
  .strip { grid-template-columns: 1fr; }
  .hat { display: flex; align-items: center; }
  .hat .pic { flex: 0 0 38%; aspect-ratio: 1 / 1; }
  .hat img { height: 100%; aspect-ratio: auto; }
  .hat .name { flex: 1; background: transparent; }
  .readout { padding-block: 48px 0; row-gap: 28px; }
  :root { --step-lead: 1.25rem; }
  .readout h3, .readout dl, .readout .cost { grid-column: 1 / 13; }
  .readout dl { grid-template-columns: 1fr; row-gap: 4px; }
  .readout dd { margin-bottom: 16px; }
  .paths h2 { margin-bottom: 48px; }
  .group:nth-of-type(n) { grid-column: 1 / 13; }
  .group .sum { display: block; }
  .desc { display: none; }
  .never { margin-top: 72px; font-size: 1.25rem; }
  .panel { padding: 72px var(--margin) 56px; }
  .panel h3.verb { font-size: 24vw; }
  .panel p { font-size: 1.125rem; }
  .lab { row-gap: 40px; }
  .lab h2, .figures, .lab aside, .lab .asof { grid-column: 1 / 13; grid-row: auto; }
  .figures { grid-template-columns: 88px 1fr; row-gap: 28px; }
  .figures dt { font-size: 1.5rem; }
  .close { min-height: 80svh; padding-top: 40px; }
  .close h2 { font-size: 15vw; }
  .close-row { row-gap: 28px; }
  .close-row p, .close-row .btn { grid-column: 1 / 13; justify-self: stretch; }
  .foot-cols div { grid-column: span 6; }
  .foot-mark { font-size: 23.6vw; }
  .foot > * { min-width: 0; }
}

@media (max-width: 640px) {
  .hats .wrap { row-gap: 20px; }
  .hats h2, .captions { grid-column: 1 / 13; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .hat img, .btn, .hero-photo img { transition: none; }
}
