/* Allen Roldan portfolio. Design: DESIGN.md section 0 "New direction" (crimson, off-white / near-black).
   Plain CSS, no build step. Sections carry .tone-light or .tone-dark; each tone sets its own colour tokens. */

/* ---------- 1. Tokens ---------- */
:root, .tone-light {
  --bg: #EDEDEB; --surface: #F7F7F5; --surface-2: #E3E3E0;
  --ink: #111111; --ink-2: #45454B; --ink-3: #5E5E65;
  --line: #D6D6D2; --line-strong: #BDBDB8;
  --accent: #A3101C; --accent-soft: #F3DADC; --on-accent: #FFFFFF; --ok: #1F7A4D;
  --focus: #1D4ED8;
}
.tone-dark {
  --bg: #111113; --surface: #1A1A1D; --surface-2: #222226;
  --ink: #F2F2F0; --ink-2: #B9B9B5; --ink-3: #96969A;
  --line: #2C2C31; --line-strong: #3D3D43;
  --accent: #EC4F5B; --accent-soft: #3A1418; --on-accent: #111111; --ok: #5BC68E;
  --focus: #8AB4FF;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]), :root:not([data-theme="light"]) .tone-light {
    --bg: #19191C; --surface: #212125; --surface-2: #2A2A2F;
    --ink: #F2F2F0; --ink-2: #BDBDB8; --ink-3: #9A9A9E;
    --line: #2F2F34; --line-strong: #424248;
    --accent: #EC4F5B; --accent-soft: #3A1418; --on-accent: #111111; --ok: #5BC68E; --focus: #8AB4FF;
  }
  :root:not([data-theme="light"]) .tone-dark { --bg: #0A0A0B; --surface: #141416; --surface-2: #1C1C1F; }
  :root:not([data-theme="light"]) { color-scheme: dark; }
}
:root[data-theme="dark"], :root[data-theme="dark"] .tone-light {
  --bg: #19191C; --surface: #212125; --surface-2: #2A2A2F;
  --ink: #F2F2F0; --ink-2: #BDBDB8; --ink-3: #9A9A9E;
  --line: #2F2F34; --line-strong: #424248;
  --accent: #EC4F5B; --accent-soft: #3A1418; --on-accent: #111111; --ok: #5BC68E; --focus: #8AB4FF;
}
:root[data-theme="dark"] { color-scheme: dark; }
:root[data-theme="dark"] .tone-dark { --bg: #0A0A0B; --surface: #141416; --surface-2: #1C1C1F; }
:root {
  --display: "Anton", Impact, "Haettenschweiler", "Arial Narrow Bold", sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Yellowtail", "Brush Script MT", "Segoe Script", cursive;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: 40px;
  --header-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
.tone-light, .tone-dark { background: var(--bg); color: var(--ink); }

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
main:focus { outline: none; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent); color: var(--on-accent); }

.wrap { max-width: calc(1160px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--accent); color: var(--on-accent); padding: 12px 16px; border-radius: 8px;
  font: 600 15px var(--sans); text-decoration: none;
}
.skip:focus { top: 12px; }

.label { font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.accent { color: var(--accent); }
.todo { color: var(--accent); }
.body-link { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.body-link:hover { text-decoration-thickness: 2px; }

h1, h2, h3, h4 { margin: 0; font-weight: 400; }
h2 {
  font: 800 clamp(2.125rem, 1.3rem + 3.3vw, 4.25rem)/1.02 var(--sans);
  letter-spacing: -.045em; margin-top: 36px; max-width: 18ch;
}
h2 .l2 { display: block; color: var(--accent); }
h3 { font: 700 clamp(1.75rem, 1.4rem + 1.3vw, 2.5rem)/1.05 var(--sans); letter-spacing: -.035em; }
.h4 { font: 700 clamp(1.0625rem, 1rem + .2vw, 1.1875rem)/1.3 var(--sans); letter-spacing: -.01em; }
.sub { color: var(--ink-2); margin-top: 16px; max-width: 60ch; font-size: 17px; }

/* ---------- 3. Buttons, tags, chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: opacity .15s, background-color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-pri { background: var(--accent); color: var(--on-accent); }
.btn-pri:hover { opacity: .9; }
.btn-sec { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-sec:hover { border-color: var(--ink); }
.tlink { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; font: 600 15px var(--sans); color: var(--ink); text-decoration: none; }
.tlink .arr { display: inline-block; transition: transform .15s; color: var(--accent); }
.tlink:hover .arr { transform: translateX(3px); }
.tlink:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 4px 12px; border: 1px solid var(--line-strong); border-radius: 999px; font: 500 13px/1.3 var(--sans); color: var(--ink); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.tag { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 4px 10px; border: 1px solid var(--line-strong); border-radius: 999px; font: 500 11px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); text-decoration: none; }
.tag .dot { width: 6px; height: 6px; }
a.tag { color: var(--accent); transition: border-color .15s; }
a.tag:hover { border-color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: 400 13px/1 var(--mono); padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); }
.plat { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 999px; font: 500 12px var(--sans); color: var(--ink); }
.plat svg { width: 12px; height: 12px; }

/* ---------- 4. Header ---------- */
.hd { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid transparent; transition: border-color .15s; }
.hd.scrolled { border-bottom-color: var(--line); }
.hd-in { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.brand { font: 400 28px/1 var(--display); letter-spacing: .01em; text-decoration: none; padding: 10px 0; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font: 500 14px var(--sans); color: var(--ink-2); text-decoration: none; transition: color .15s; }
.nav-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.hd-tools { display: flex; align-items: center; gap: 8px; }
.avail { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); text-decoration: none; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 999px; }
.avail:hover { border-color: var(--ink); }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border: 0; padding: 0; background: transparent; color: var(--ink); border-radius: 8px; cursor: pointer; transition: background-color .15s; }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-btn .i-sun { display: none; }
.is-dark .theme-btn .i-sun { display: block; }
.is-dark .theme-btn .i-moon { display: none; }
.menu-btn { display: none; height: 44px; min-width: 44px; padding: 0 6px; border: 0; background: transparent; font: 600 14px var(--sans); color: var(--ink); cursor: pointer; border-radius: 8px; }
.sheet { position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0; z-index: 19; border-top: 1px solid var(--line); overflow-y: auto; padding: 8px var(--gutter) 32px; }
.sheet[hidden] { display: none; }
.sheet a.sheet-link { display: flex; align-items: center; height: 56px; font: 700 24px var(--sans); letter-spacing: -.02em; text-decoration: none; border-bottom: 1px solid var(--line); }
.sheet .btn { margin-top: 24px; width: 100%; }
body.menu-open { overflow: hidden; }

/* ---------- 5. Sections ---------- */
.section { padding: 128px 0; }
.sechead { display: flex; gap: 16px; align-items: baseline; }
.sechead .n { font: 500 12px var(--mono); color: var(--accent); }
.grid12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.reveal-on .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal-on .reveal.in { opacity: 1; transform: none; }

/* ---------- 6. Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-stage { position: relative; height: clamp(600px, calc(100svh - var(--header-h)), 900px); }
.giant {
  position: absolute; left: 0; right: 0; top: 4%; margin: 0; text-align: center; white-space: nowrap;
  font: 400 27vw/.86 var(--display); color: var(--accent); letter-spacing: -.005em;
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 92%); mask-image: linear-gradient(to bottom, #000 40%, transparent 92%);
  user-select: none; pointer-events: none; will-change: transform;
}
.giant-in { display: inline-block; margin: 0 -2vw; }
.cutout { position: absolute; left: 50%; bottom: 0; height: 90%; transform: translateX(-50%); width: auto; will-change: transform; }
.cutout img { height: 100%; width: auto; max-width: none; object-fit: contain; object-position: bottom; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(to bottom, transparent, var(--bg)); pointer-events: none; }
.hero-ui { position: relative; height: 100%; z-index: 2; }
.hero-intro { position: absolute; left: var(--gutter); bottom: 22%; max-width: 360px; }
.hero-intro h1 { display: block; }
.script { display: block; font: 400 clamp(2.25rem, 1.6rem + 2vw, 3.5rem)/1 var(--script); color: var(--accent); transform: rotate(-4deg); transform-origin: left bottom; margin-bottom: 6px; }
.name { display: block; font: 800 clamp(2.5rem, 1.8rem + 2.4vw, 4rem)/1 var(--sans); letter-spacing: -.045em; color: var(--ink); }
.pitch { margin-top: 16px; color: var(--ink-2); font-size: 16px; line-height: 1.55; max-width: 32ch; }
.hero-loc { position: absolute; left: var(--gutter); bottom: 48px; z-index: 3; }
.hero-card { position: absolute; right: var(--gutter); bottom: 48px; z-index: 3; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; font: 600 15px/1.35 var(--sans); letter-spacing: -.01em; }

/* ---------- 7. Meet ---------- */
.meet { padding-top: 96px; }
.meet-grid { align-items: center; margin-top: 8px; }
.meet-txt { grid-column: 1 / 7; }
.meet-vid { grid-column: 7 / 13; }
.meet .pill { margin-top: 28px; }
.lead { font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); line-height: 1.6; color: var(--ink-2); max-width: 54ch; margin-top: 20px; }
.lead strong { color: var(--ink); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 32px; }
.vid { position: relative; border-radius: 14px; overflow: hidden; background: var(--surface-2); aspect-ratio: 16 / 9; }
.vid video { width: 100%; height: 100%; object-fit: cover; }
.vid-btn { position: absolute; right: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(17,17,17,.72); color: #fff; display: grid; place-items: center; cursor: pointer; }
.vid-btn svg { width: 14px; height: 14px; }
.vid-btn .i-pause { display: none; }
.vid-btn.playing .i-pause { display: block; }
.vid-btn.playing .i-play { display: none; }
.vid-cap { margin-top: 12px; }

/* ---------- 8. Impact (big numbers) ---------- */
.bignums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 64px 40px; margin-top: 72px; }
.bignums li { min-width: 0; }
.big { display: block; font: 400 clamp(4.5rem, 2.4rem + 6.4vw, 8.5rem)/.92 var(--display); color: var(--accent); letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bignums b { display: block; font: 800 clamp(1.25rem, 1.1rem + .6vw, 1.625rem)/1.15 var(--sans); letter-spacing: -.03em; margin-top: 14px; }
.bignums p { color: var(--ink-2); font-size: 15px; line-height: 1.5; margin-top: 8px; max-width: 30ch; }
.bignums .label { display: block; margin-top: 10px; }

/* ---------- 9. Process ---------- */
.steps { margin-top: 64px; max-width: 880px; margin-left: auto; margin-right: auto; }
.step { display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr); gap: 32px; align-items: start; padding: 20px 0; }
.sn { font: 400 clamp(5rem, 3rem + 6vw, 8.5rem)/.9 var(--display); color: var(--accent); letter-spacing: -.01em; text-align: right; }
.step h3 { margin-top: 10px; }
.step p { color: var(--ink-2); margin-top: 10px; max-width: 46ch; }
.steps-on .step { opacity: .16; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.steps-on .step.in { opacity: 1; transform: none; }

/* ---------- 10. Case studies ---------- */
.work .case { align-items: start; margin-top: 112px; }
.work .case:first-of-type { margin-top: 72px; }
.case-info { grid-column: 1 / 6; }
.case-shot { grid-column: 6 / 13; }
.case.flip .case-info { grid-column: 8 / 13; grid-row: 1; }
.case.flip .case-shot { grid-column: 1 / 8; grid-row: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.idx { display: block; width: 100%; font: 400 clamp(4rem, 3rem + 3vw, 6rem)/.9 var(--display); color: var(--accent); margin-bottom: 8px; }
.case h3 { margin-top: 18px; }
.case .one { font-size: 18px; line-height: 1.5; color: var(--ink-2); margin-top: 10px; }
.pbr { margin: 28px 0 0; }
.pbr > div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.pbr dt { padding-top: 3px; }
.pbr dd { margin: 0; font-size: 15px; line-height: 1.6; }
.row { margin-top: 20px; }
.row > .label { display: block; margin-bottom: 10px; }
.case-shot .win { transition: transform .3s var(--ease), border-color .3s; }
@media (hover: hover) { .case-shot:hover .win { transform: translateY(-6px); border-color: var(--line-strong); } }

/* ---------- 11. Mock windows ---------- */
.win { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow: hidden; box-shadow: 0 1px 0 var(--line); }
.win .tb { height: 36px; display: flex; align-items: center; gap: 6px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.win .tb i { width: 8px; height: 8px; border: 1px solid var(--line-strong); border-radius: 50%; }
.win .tb span { margin-left: 10px; font: 400 12px var(--mono); color: var(--ink-3); }
.mock-cap { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.mock-phone { display: none; }
.av {
  width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line);
  display: grid; place-items: center; font: 500 10px var(--mono); color: var(--ink-2); flex: none;
}
.mtag {
  display: inline-block; padding: 2px 7px; border: 1px solid var(--line); border-radius: 999px;
  font: 500 10px/1.4 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap;
}
.mtag.warn { border-color: var(--accent); color: var(--accent); }

/* chat */
.chat { display: grid; grid-template-columns: 200px minmax(0, 1fr); height: 460px; font-size: 13px; line-height: 1.45; }
.rail { background: var(--surface-2); border-right: 1px solid var(--line); padding: 16px 10px; overflow: hidden; }
.rail .ws { font: 600 14px var(--sans); padding: 0 8px 10px; }
.rail .grp { font: 500 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 12px 8px 4px; }
.rail .it { padding: 3px 8px; border-radius: 6px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.rail .it.on { background: var(--accent-soft); color: var(--ink); font-weight: 500; }
.pr { width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--ink-3); flex: none; }
.pr.on { background: var(--ok); border-color: var(--ok); }
.pane { display: flex; flex-direction: column; min-width: 0; }
.ph { height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; border-bottom: 1px solid var(--line); flex: none; }
.ph b { font-weight: 600; }
.ph span.cnt { color: var(--ink-3); font-size: 12px; }
.ph .back { display: none; margin-right: 8px; color: var(--ink-3); }
.msgs { flex: 1; padding: 8px 18px; overflow: hidden; }
.m { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding: 9px 0; }
.m .who { font-weight: 600; }
.m .who small { font-weight: 400; color: var(--ink-3); margin-left: 6px; font-size: 11px; }
.m p { margin-top: 2px; }
.men { background: var(--accent-soft); color: var(--accent); padding: 0 3px; border-radius: 3px; font-weight: 500; }
.meta { display: flex; gap: 8px; margin-top: 6px; align-items: center; }
.rx { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border: 1px solid var(--line); border-radius: 999px; font-size: 11px; color: var(--ink-2); }
.rx svg { width: 10px; height: 10px; }
.thr { font-size: 12px; color: var(--accent); font-weight: 500; }
.sched { font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; padding: 4px 0 0 38px; }
.comp { margin: 0 18px 16px; height: 40px; border: 1px solid var(--line-strong); border-radius: 8px; display: flex; align-items: center; padding: 0 12px; color: var(--ink-3); flex: none; }
.reveal-on .m.new { opacity: 0; transform: translateY(6px); }
.reveal-on .in .m.new { animation: msg-in .4s var(--ease) .6s both; }
@keyframes msg-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* system (table) */
.sys { font-size: 12.5px; line-height: 1.4; }
.sys-tabs { display: flex; gap: 2px; padding: 8px 12px 0; border-bottom: 1px solid var(--line); overflow: hidden; }
.sys-tabs span { padding: 8px 10px; color: var(--ink-2); border-bottom: 2px solid transparent; white-space: nowrap; }
.sys-tabs span.on { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent); background: var(--accent-soft); border-radius: 6px 6px 0 0; }
.sys-filter { display: flex; gap: 8px; padding: 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.fld { height: 30px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); display: flex; align-items: center; gap: 6px; padding: 0 10px; color: var(--ink-3); white-space: nowrap; }
.fld b { color: var(--ink); font-weight: 500; }
.fld.grow { flex: 1; min-width: 0; }
.fld svg { width: 12px; height: 12px; flex: none; }
.tbl { width: 100%; border-collapse: collapse; table-layout: fixed; }
.tbl th { text-align: left; font: 500 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); padding: 10px 12px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .mono { font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); }
.tbl .r { text-align: right; font-variant-numeric: tabular-nums; }

/* bilisops */
.bo { display: grid; grid-template-columns: 132px minmax(0, 1fr); font-size: 12.5px; line-height: 1.4; }
.bo-nav { background: var(--surface-2); border-right: 1px solid var(--line); padding: 14px 8px; }
.bo-nav .ws { font: 600 13px var(--sans); padding: 0 8px 12px; }
.bo-nav span { display: block; padding: 6px 8px; border-radius: 6px; color: var(--ink-2); }
.bo-nav span.on { background: var(--accent-soft); color: var(--ink); font-weight: 500; }
.bo-main { padding: 14px; min-width: 0; }
.bo-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 8px; }
.bo-stats div { padding: 10px 12px; min-width: 0; }
.bo-stats div + div { border-left: 1px solid var(--line); }
.bo-stats span { display: block; font: 500 9.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bo-stats b { display: block; font: 400 22px/1.1 var(--serif); font-variant-numeric: tabular-nums; margin-top: 6px; white-space: nowrap; }
.bo-main .tbl { margin-top: 12px; border: 1px solid var(--line); border-radius: 8px; border-collapse: separate; border-spacing: 0; }
.bo-main .tbl th, .bo-main .tbl td { padding: 9px 10px; }

/* phone mocks */
.pm-list { padding: 8px 12px 12px; font-size: 13px; line-height: 1.4; }
.pm-card { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-top: 8px; }
.pm-card .t { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.pm-card .t b { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-card .s { color: var(--ink-3); font-size: 12px; margin-top: 4px; font-family: var(--mono); }
.pda { padding: 14px; font-size: 13px; line-height: 1.4; }
.pda .wave { font-weight: 600; }
.pda .bar { height: 6px; border-radius: 3px; background: var(--surface-2); margin-top: 8px; overflow: hidden; border: 1px solid var(--line); }
.pda .bar i { display: block; height: 100%; width: 43%; background: var(--ink-2); }
.pda .scan { margin-top: 12px; height: 40px; border: 1px solid var(--line-strong); border-radius: 8px; display: flex; align-items: center; gap: 8px; padding: 0 12px; color: var(--ink-3); }
.pda .scan svg { width: 16px; height: 16px; }
.pda ul { margin-top: 10px; }
.pda li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.pda li:last-child { border-bottom: 0; }
.pda .ck { width: 18px; height: 18px; border: 1px solid var(--line-strong); border-radius: 4px; display: grid; place-items: center; flex: none; }
.pda .ck svg { width: 12px; height: 12px; }
.pda li.done .ck { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.pda li.done .sku { color: var(--ink-3); text-decoration: line-through; }
.pda .sku { font-family: var(--mono); font-size: 12px; flex: 1; min-width: 0; }
.pda .q { color: var(--ink-3); font-family: var(--mono); font-size: 12px; }


/* PostOps mock */
.po { padding: 16px; font-size: 12px; line-height: 1.4; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.day { border: 1px solid var(--line); border-radius: 6px; padding: 8px 4px; text-align: center; color: var(--ink-3); }
.day b { display: block; font: 500 15px var(--sans); color: var(--ink); margin-top: 2px; }
.day.today { border-color: var(--ink); }
.day.today span::after { content: " · today"; }
.post { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; margin-top: 12px; border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
.post .img { width: 56px; height: 56px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--line); }
.post .st { font: 500 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.post .ln { height: 7px; border-radius: 4px; background: var(--surface-2); margin-top: 8px; }
.post .ln.s { width: 60%; }
.mets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 12px; border-top: 1px solid var(--line); }
.mets div { padding: 10px 0 0; min-width: 0; }
.mets div + div { padding-left: 12px; border-left: 1px solid var(--line); }
.mets b { display: block; font: 400 22px/1 var(--serif); font-variant-numeric: tabular-nums; margin-top: 4px; }
.mets span { font: 500 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- 12. More projects ---------- */
.projects-sec { padding-top: 0; }
.projects { margin-top: 48px; }
.pcard {
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 28px;
  display: flex; flex-direction: column; transition: border-color .25s, transform .25s var(--ease);
}
@media (hover: hover) { .pcard:hover { border-color: var(--accent); transform: translateY(-6px); } }
.pcard .ic { width: 26px; height: 26px; color: var(--accent); }
.pcard .h4 { margin-top: 16px; }
.pcard p { font-size: 14px; line-height: 1.55; color: var(--ink-2); margin-top: 8px; }
.pcard .tags { margin-top: auto; padding-top: 20px; }
.pcard.feature { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; padding: 32px; }
.pcard.feature .pf-t { grid-column: 1 / 6; display: flex; flex-direction: column; }
.pcard.feature .pf-m { grid-column: 6 / 13; }
.pcard.feature .h4 { font-size: clamp(1.75rem, 1.4rem + 1.3vw, 2.5rem); letter-spacing: -.035em; line-height: 1.05; }
.pcard.feature p { font-size: 16px; }
.pcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.quiet { padding: 28px; display: flex; align-items: flex-end; color: var(--ink-2); font: 800 24px/1.15 var(--sans); letter-spacing: -.03em; }

/* ---------- 13. Platforms ---------- */
.plats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 56px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.plats li { padding: 28px 20px; }
.plats li:first-child { padding-left: 0; }
.plats li + li { border-left: 1px solid var(--line); }
.plats .ic { width: 28px; height: 28px; color: var(--accent); }
.plats h3.p-name { font: 800 22px/1.2 var(--sans); letter-spacing: -.03em; margin-top: 16px; }
.plats p { font-size: 14px; line-height: 1.5; color: var(--ink-2); margin-top: 6px; }
.plats .label { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; }

/* ---------- 14. Skills ---------- */
.skills { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 56px; }
.skills h3 { font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); padding-bottom: 10px; border-bottom: 1px solid var(--line-strong); }
.skills li { padding: 7px 0; min-height: 32px; border-bottom: 1px solid var(--line); line-height: 1.45; }

/* ---------- 15. Experience ---------- */
.exp-intro { font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem); line-height: 1.55; color: var(--ink-2); max-width: 60ch; margin-top: 24px; }
.exp-cv { margin-top: 16px; color: var(--ink-2); font-size: 15px; }
.roles { margin-top: 48px; border-bottom: 1px solid var(--line); }
.role { padding: 32px 0; border-top: 1px solid var(--line); }
.role .when { grid-column: 1 / 4; font: 400 13px/1.5 var(--mono); color: var(--ink-3); padding-top: 3px; }
.role .who { grid-column: 4 / 8; }
.role .who p { font-size: 14px; line-height: 1.5; color: var(--ink-2); margin-top: 4px; }
.role .who .tag { margin-top: 10px; }
.role .what { grid-column: 8 / 13; }

/* ---------- 16. Contact ---------- */
.contact-l { grid-column: 1 / 7; }
.contact-l p { color: var(--ink-2); font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem); line-height: 1.55; margin-top: 20px; max-width: 46ch; }
.crows { grid-column: 7 / 13; margin-top: 40px; border-bottom: 1px solid var(--line); }
.crow { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: 16px; min-height: 64px; padding: 10px 0; border-top: 1px solid var(--line); }
.crow .v { min-width: 0; overflow-wrap: anywhere; }
.crow a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; text-decoration-thickness: 1px; }
.crow a:hover { text-decoration-color: var(--accent); }
.copy { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; font: 500 13px var(--sans); color: var(--ink); cursor: pointer; position: relative; transition: border-color .15s; }
.copy::before { content: ""; position: absolute; inset: -6px -2px; }
.copy:hover { border-color: var(--ink); }
.copy svg { width: 12px; height: 12px; display: none; }
.copy.done svg { display: block; }

/* ---------- 17. Footer ---------- */
.ft { padding: 0 0 40px; }
.ft-in { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 24px; font-size: 14px; color: var(--ink-3); }

/* ---------- 18. Responsive ---------- */
@media (max-width: 1023px) {
  :root { --gutter: 24px; }
  .nav-links { gap: 18px; }
  .nav { gap: 18px; }
  .meet-txt, .meet-vid { grid-column: 1 / -1; }
  .meet-vid { margin-top: 24px; }
  .bignums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-info, .case-shot, .case.flip .case-info, .case.flip .case-shot { grid-column: 1 / -1; grid-row: auto; }
  .case { gap: 0; }
  .case-info { display: contents; }
  .case-head { grid-column: 1 / -1; order: 1; }
  .case-shot { order: 2; margin-top: 28px; }
  .case-body { grid-column: 1 / -1; order: 3; }
  .pcard.feature .pf-t, .pcard.feature .pf-m { grid-column: 1 / -1; }
  .pcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plats { grid-template-columns: 1fr; }
  .plats li, .plats li:first-child { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 4px 16px; align-items: start; padding: 20px 0; border-left: 0; }
  .plats li + li { border-left: 0; border-top: 1px solid var(--line); }
  .plats .ic { grid-row: 1 / 3; }
  .plats h3.p-name { margin-top: 0; grid-column: 2; }
  .plats p { margin-top: 0; grid-column: 2; }
  .plats .label { grid-column: 3; grid-row: 1; margin-top: 3px; }
  .skills { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
  .role .when, .role .who, .role .what { grid-column: 1 / -1; }
  .role { gap: 8px; padding: 28px 0; }
  .contact-l, .crows { grid-column: 1 / -1; }
  .hero-card { display: none; }
}
/* tablet (768–1023): stack the hero like phones so the name never sits on the portrait (QA B1) */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-stage { height: auto; }
  .giant { position: relative; top: 0; padding-top: 16px; font-size: 27vw; line-height: .86; }
  .cutout { position: relative; left: auto; bottom: auto; transform: none; height: auto; width: 100%; margin-top: -22vw; display: flex; justify-content: center; }
  .cutout img { height: min(80vw, 720px); }
  .hero::after { display: none; }
  .cutout::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 72px; background: linear-gradient(to bottom, transparent, var(--bg)); }
  .hero-ui { height: auto; padding-bottom: 48px; margin-top: -40px; }
  .hero-intro, .hero-loc { position: static; max-width: 560px; }
  .hero-loc { margin-top: 24px; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
}

@media (max-width: 767px) {
  :root { --gutter: 20px; }
  .hd-avail { display: none; }
  .hd-tools { gap: 4px; }
  .icon-btn { width: 44px; height: 44px; }
  .section { padding: 80px 0; }
  .meet { padding-top: 56px; }
  /* hero: word + cut-out on top, text below */
  .hero-stage { height: auto; }
  .giant { position: relative; top: 0; padding-top: 16px; font-size: 28vw; line-height: .86; }
  .cutout { position: relative; left: auto; bottom: auto; transform: none; height: auto; width: 100%; margin-top: -24vw; display: flex; justify-content: center; }
  .cutout img { height: min(118vw, 560px); }
  .hero::after { display: none; }
  .cutout::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 64px; background: linear-gradient(to bottom, transparent, var(--bg)); }
  .hero-ui { height: auto; padding-bottom: 40px; margin-top: -48px; }
  .hero-intro, .hero-loc { position: static; max-width: none; }
  .hero-loc { margin-top: 20px; }
  .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .actions .btn { padding: 0 12px; }
  .actions .tlink { grid-column: 1 / 3; justify-content: center; min-height: 44px; }
  .bignums { grid-template-columns: minmax(0, 1fr); gap: 48px; margin-top: 48px; }
  .steps { margin-top: 40px; }
  .step { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 16px 0; }
  .sn { font-size: 64px; text-align: left; }
  .step h3 { margin-top: 4px; font-size: 26px; }
  .work .case { margin-top: 72px; }
  .work .case:first-of-type { margin-top: 48px; }
  .case-shot { margin-top: 24px; }
  .case .one { font-size: 17px; }
  .pbr > div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .mock-desk { display: none; }
  .mock-phone { display: block; }
  .ph .back { display: inline; }
  .chat { grid-template-columns: minmax(0, 1fr); height: 440px; }
  .rail { display: none; }
  .pcard.feature { padding: 20px; gap: 24px; }
  .pcard { padding: 24px; }
  .pcards { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 16px; }
  .quiet { padding: 16px 0 0; }
  .week { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .day:nth-child(n+6) { display: none; }
  .day.today span::after { content: ""; }
  .mets b { font-size: 18px; }
  .skills { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .role { padding: 24px 0; }
  .crow { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 12px 0; }
  .crow .label { grid-column: 1 / -1; }
  .crow .v { grid-column: 1; }
  .crow .copy { grid-column: 2; grid-row: 2; height: 44px; padding: 0 16px; }
  .ft-in { flex-direction: column; }
}
@media (max-width: 380px) {
  .actions { grid-template-columns: minmax(0, 1fr); }
  .actions .tlink { grid-column: 1; }
  .plats li, .plats li:first-child { grid-template-columns: 28px minmax(0, 1fr); }
  .plats .label { grid-column: 2; grid-row: auto; margin-top: 6px; }
}

/* ---------- 19. Motion and print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-on .reveal, .reveal-on .m.new, .steps-on .step { opacity: 1 !important; transform: none !important; }
  .giant, .cutout img { transform: none !important; }
}
@media print {
  .hd, .sheet, .skip, .theme-btn, .vid-btn, .copy { display: none !important; }
  .section { padding: 32px 0; }
}

/* contact: anti-impersonation note */
.safety { margin-top: 32px; max-width: 520px; padding: 20px 22px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px; background: var(--surface); }
.safety h3 { display: flex; align-items: center; gap: 10px; font: 700 17px/1.3 var(--sans); letter-spacing: -.01em; color: var(--ink); margin: 0; }
.safety h3 .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.safety p { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
[hidden] { display: none !important; }

/* header: Download CV link */
.nav-links a.nav-cv { color: var(--accent); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.nav-links a.nav-cv::before { content: ""; width: 12px; height: 12px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M6 10l6 6 6-6M4 21h16'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M6 10l6 6 6-6M4 21h16'/%3E%3C/svg%3E") center / contain no-repeat; }
