/* amrothabet.com v2. Design brief: .artifacts/Site/DESIGN.md
   Art direction: Unreal's collision debug view. Ink and bone, the plugin's hull colours, the orange ball. */

@font-face { font-family: "Archivo"; src: url("/assets/fonts/archivo-var.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/assets/fonts/geist-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/geist-mono-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #0a0b0d; --ink-2: #0f1114; --ink-3: #15171b; --ink-4: #1d2025;
  --bone: #f2efe9; --bone-2: #cfccc5; --mute: #8d8c87; --dim: #5c5c59;
  --line: rgba(242, 239, 233, .1); --line-2: rgba(242, 239, 233, .2);
  --paper: #ece9e2; --paper-2: #e2dfd7; --paper-ink: #0c0d0f; --paper-mute: #615f5a; --paper-line: rgba(12, 13, 15, .13);
  --mint: #7ee0c3; --pink: #e29ad0; --orange: #ff8a3d; --sky: #8cbcff; --sun: #ffd166;
  --f-display: "Archivo", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --f-text: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1680px;
  --nav-h: 72px;
  --r: 14px; --r-lg: 28px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--ink); color: var(--bone);
  font: 400 17px/1.55 var(--f-text); font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, canvas, svg { display: block; max-width: 100%; }
img, video { height: auto; }   /* a width set in CSS must not leave the height attribute in force */
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--orange); color: var(--ink); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 300; background: var(--bone); color: var(--ink); padding: 10px 16px; border-radius: 999px; font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.label { font: 500 12px/1.2 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.label b { color: var(--bone); font-weight: 500; }
.dot { display: inline-block; width: .55em; height: .55em; border-radius: 50%; background: var(--orange); margin-right: .6em; vertical-align: .08em; }
.display {
  font-family: var(--f-display); font-weight: 800; font-stretch: 125%; text-transform: uppercase;
  letter-spacing: -.025em; line-height: .94; font-size: clamp(40px, 7.4vw, 132px);
}
.display em { font-style: normal; color: var(--mint); }
/* on a phone the longest word of a heading ("PRODUCTION.") has to fit the column */
@media (max-width: 540px) { .display { font-size: clamp(28px, 10.2vw, 40px); } }
.lede { font-size: clamp(18px, 1.55vw, 24px); line-height: 1.4; color: var(--bone-2); max-width: 44ch; text-wrap: pretty; }
.lede a, .link { color: var(--bone); background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .4s var(--ease); }
.lede a:hover, .link:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: .7em; height: 54px; padding: 0 26px;
  border-radius: 999px; background: var(--bone); color: var(--ink); font-weight: 550; font-size: 16px; letter-spacing: -.005em;
  overflow: hidden; isolation: isolate; white-space: nowrap; transition: color .35s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; background: var(--orange); border-radius: inherit; transform: translateY(101%); transition: transform .5s var(--ease-out); z-index: -1; }
.btn:hover::before { transform: none; }
.btn .arr { width: 1em; height: 1em; transition: transform .45s var(--ease-out); }
.btn:hover .arr { transform: translate(3px, -3px); }
.btn-ghost { background: transparent; color: var(--bone); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost::before { background: var(--bone); }
.btn-ghost:hover { color: var(--ink); }
.btn-sm { height: 42px; padding: 0 18px; font-size: 14px; }
.btn[aria-disabled="true"] { background: transparent; color: var(--mute); box-shadow: inset 0 0 0 1px var(--line-2); cursor: default; }
.btn[aria-disabled="true"]::before { display: none; }
.on-paper .btn { background: var(--paper-ink); color: var(--paper); }
.on-paper .btn-ghost { background: transparent; color: var(--paper-ink); box-shadow: inset 0 0 0 1px var(--paper-line); }
.on-paper .btn-ghost::before { background: var(--paper-ink); }
.on-paper .btn-ghost:hover { color: var(--paper); }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h); pointer-events: none; color: #fff; mix-blend-mode: difference; }
.nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
/* the header leaves while you read down the page and returns as soon as you scroll up */
.nav { transition: transform .55s var(--ease-out); }
.nav-away .nav:not(.nav-docs) { transform: translateY(-110%); }
.nav a, .nav button { pointer-events: auto; }
.brand { display: inline-flex; align-items: center; gap: 12px; font: 800 15px/1 var(--f-display); font-stretch: 125%; letter-spacing: .01em; text-transform: uppercase; }
.brand svg { width: 26px; height: 26px; }
.nav-links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 40px); font-size: 15px; font-weight: 500; }
.nav-links a { position: relative; padding: 8px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: 100% 50%; transition: transform .45s var(--ease-out); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: 0 50%; }
.nav-meta { display: flex; align-items: center; gap: 18px; }
.clock { font: 500 12px/1 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.menu-btn { display: none; align-items: center; gap: 10px; height: 40px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); font-size: 14px; font-weight: 550; }
.menu { position: fixed; inset: 0; z-index: 99; background: var(--ink); display: grid; align-content: end; padding: calc(var(--nav-h) + 24px) var(--gutter) 36px; clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .7s var(--ease-io), visibility 0s .7s; }
.menu.open { clip-path: inset(0); visibility: visible; transition: clip-path .7s var(--ease-io); }
.menu a.big { display: block; font: 800 clamp(40px, 12vw, 84px)/1 var(--f-display); font-stretch: 125%; text-transform: uppercase; letter-spacing: -.02em; padding: 8px 0; border-bottom: 1px solid var(--line); }
.menu .menu-foot { display: flex; justify-content: space-between; gap: 16px; margin-top: 28px; }
@media (max-width: 860px) {
  .nav-links, .clock { display: none; }
  .menu-btn { display: inline-flex; }
}

/* ---------- preloader ---------- */
.loader { position: fixed; inset: 0; z-index: 200; background: var(--ink); display: grid; grid-template-rows: 1fr auto; padding: var(--gutter); animation: loader-out .01s 3.2s forwards; }
.loader-count { align-self: end; font: 800 clamp(96px, 26vw, 420px)/.8 var(--f-display); font-stretch: 125%; letter-spacing: -.04em; color: var(--bone); font-variant-numeric: tabular-nums; }
.loader-row { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding-top: 18px; border-top: 1px solid var(--line); margin-top: 18px; }
.loader.done { animation: none; clip-path: inset(0 0 100% 0); transition: clip-path .9s var(--ease-io); pointer-events: none; }
@keyframes loader-out { to { visibility: hidden; opacity: 0; } }
html:not(.js) .loader, html.seen .loader { display: none; }
html.menu-open, html.menu-open body { overflow: hidden; }

/* ---------- hero ---------- */
.hero { position: relative; height: 100svh; min-height: 620px; overflow: clip; background:
  radial-gradient(120% 90% at 50% 0%, #15181d 0%, var(--ink) 62%); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 88px 88px; background-position: 50% 0; mask-image: radial-gradient(90% 80% at 50% 40%, #000 30%, transparent 100%); }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .8s var(--ease); touch-action: pan-y; }
.hero.live .hero-canvas { opacity: 1; }
/* the next section's rounded top overlaps the hero by --r-lg, so the bottom padding clears it */
.hero-ui { position: absolute; inset: 0; display: grid; grid-template-rows: auto 1fr auto; padding-top: calc(var(--nav-h) + 8px); padding-bottom: calc(var(--r-lg) + clamp(18px, 3vh, 36px)); pointer-events: none; }
.hero-ui > * { pointer-events: auto; }
.hero-top { display: flex; justify-content: space-between; gap: 16px; }
.hero-id { line-height: 1.75; }
.hero-id .dot { margin-left: calc(-.55em - .6em); }
.hero-id { padding-left: 1.15em; }
.hero-name {
  align-self: start; margin-top: clamp(8px, 2.5vh, 36px); pointer-events: none;
  font-family: var(--f-display); font-weight: 900; font-stretch: 125%; text-transform: uppercase; letter-spacing: 0;
  /* The two rows are staggered: THABET from the left margin, AMRO from the right, 9 cap heights across in all.
  The front faces of the 3D letters sit a little in front of the page plane and so draw slightly larger than this text:
     the inset keeps them on the page margins. */
  --inset: min(.9vw, 14px); padding-inline: var(--inset);
  font-size: min(calc((min(100vw, var(--max)) - 2 * var(--gutter) - 2 * var(--inset)) / 6.2), 27svh); line-height: .84; color: var(--bone);
  font-kerning: none; font-feature-settings: "kern" 0, "liga" 0; white-space: nowrap; user-select: none;
}
.hero-name .row { display: block; }
.hero-name .row:first-child { text-align: right; }
.hero-name .ch { display: inline-block; }
.hero-name .base { display: inline-block; width: 0; height: 0; vertical-align: baseline; }
.hero.live .hero-name { color: transparent; }
.hero.reg .hero-name { color: rgba(255, 0, 90, .6); }
/* opacity only: these elements are physics colliders, measured where they sit */
.js:not(.ready) .hero [data-in] { opacity: 0; }
.js.ready .hero [data-in] { transition: opacity 1.1s var(--ease-out) var(--d, 0s); }
.hero-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 28px; }
.hero-copy .lede { max-width: 40ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hud { width: 348px; max-width: 100%; padding: 14px; border-radius: var(--r); background: rgba(15, 17, 20, .72); box-shadow: inset 0 0 0 1px var(--line-2); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.hud-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 10px; background: rgba(242, 239, 233, .06); }
.seg button { height: 36px; border-radius: 7px; font-size: 13.5px; font-weight: 550; color: var(--mute); transition: background .25s, color .25s; }
.seg button[aria-pressed="true"] { background: var(--bone); color: var(--ink); }
.hud-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; }
.switch { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 500; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch i { width: 34px; height: 20px; border-radius: 999px; background: rgba(242, 239, 233, .16); position: relative; transition: background .25s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--bone); transition: transform .3s var(--ease-out); }
.switch input:checked + i { background: var(--mint); }
.switch input:checked + i::after { transform: translateX(14px); background: var(--ink); }
.switch input:focus-visible + i { outline: 2px solid var(--orange); outline-offset: 3px; }
.hud-btn { height: 32px; padding: 0 12px; border-radius: 8px; font-size: 13px; font-weight: 550; box-shadow: inset 0 0 0 1px var(--line-2); transition: background .25s, color .25s; }
.hud-btn:hover { background: var(--bone); color: var(--ink); }
.hud-status { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font: 500 11.5px/1.3 var(--f-mono); letter-spacing: .03em; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-status b { color: var(--mint); font-weight: 500; }
html:not(.js) .hud, .hero.static .hud { display: none; }
.hero.wire [data-collide] { outline: 1px dashed var(--mint); outline-offset: 0; }
.scroll-cue { position: absolute; left: 50%; bottom: calc(var(--r-lg) + 22px); transform: translateX(-50%); display: inline-flex; flex-direction: column; align-items: center; gap: 10px; }
.scroll-cue i { width: 1px; height: 28px; background: linear-gradient(var(--bone), transparent); animation: cue 1.8s var(--ease-io) infinite; transform-origin: 50% 0; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
/* short, wide windows (a 13-inch laptop with a toolbar): smaller name, one-line label, tighter copy */
@media (max-height: 780px) and (min-width: 861px) {
  .hero-name { font-size: min(calc((min(100vw, var(--max)) - 2 * var(--gutter) - 2 * var(--inset)) / 6.2), 21svh); margin-top: 6px; }
  .hero-id .more { display: none; }
  .hero-copy .lede { font-size: 18px; }
  .hero-cta { margin-top: 16px; }
  .hero-cta .btn { height: 48px; }
  .hud { padding: 12px; }
  .hud-status { margin-top: 10px; padding-top: 8px; }
  .scroll-cue { display: none; }
}
@media (max-width: 860px) {
  .hero-foot { grid-template-columns: 1fr; gap: 16px; }
  /* on a tall narrow screen the name sits just above the copy, and the space above it is where the balls fall from */
  .hero-name { align-self: end; margin: 0 0 clamp(18px, 3.2svh, 34px); }
  .hud { width: 100%; padding: 10px; }
  .hud-head, .hud-status { display: none; }
  .hud-row { margin-top: 8px; }
  .hero-cta { margin-top: 16px; }
  .hero-cta .btn { height: 48px; padding: 0 20px; font-size: 15px; }
  .scroll-cue { display: none; }
}

/* ---------- sections ---------- */
.sec { position: relative; padding-block: clamp(80px, 12vw, 200px); }
.sec-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px 24px; align-items: end; margin-bottom: clamp(36px, 6vw, 96px); }
.sec-head .label { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.sec-head .display { grid-column: 1 / span 9; }
.sec-head .lede { grid-column: 10 / -1; justify-self: end; }
@media (max-width: 1000px) { .sec-head .display, .sec-head .lede { grid-column: 1 / -1; justify-self: start; } }
.paper { background: var(--paper); color: var(--paper-ink); border-radius: var(--r-lg) var(--r-lg) 0 0; margin-top: calc(-1 * var(--r-lg)); z-index: 2; }
.paper + .sec:not(.paper) { border-radius: var(--r-lg) var(--r-lg) 0 0; margin-top: calc(-1 * var(--r-lg)); background: var(--ink); z-index: 3; }
.paper .label { color: var(--paper-mute); }
.paper .label b { color: var(--paper-ink); }
.paper .sec-head .label { border-color: var(--paper-line); }
.paper .lede { color: var(--paper-mute); }
.paper .display em { color: inherit; -webkit-text-stroke: 0; }

/* statement */
.statement { font: 500 clamp(28px, 4.1vw, 72px)/1.08 var(--f-text); letter-spacing: -.03em; max-width: 21ch; text-wrap: balance; }
.statement .w { opacity: .18; transition: opacity .35s linear; }
.statement .w.on { opacity: 1; }
html:not(.js) .statement .w { opacity: 1; }
.statement-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 24px; }
.statement-grid .statement { grid-column: 1 / span 8; max-width: none; align-self: center; }
.portrait { grid-column: 9 / -1; position: relative; }
.portrait img { width: 100%; height: auto; border-radius: var(--r); filter: grayscale(1) contrast(1.06); transition: filter .8s var(--ease); }
.portrait:hover img { filter: none; }
.portrait figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; }
.paper .cross::before, .paper .cross::after, .paper .cross > .cx::before, .paper .cross > .cx::after { color: var(--paper-mute); }
.stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--paper-line); margin-top: clamp(24px, 4vw, 64px); }
.stat { padding: 22px 20px 0 0; border-right: 1px solid var(--paper-line); padding-left: 20px; }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat .n { font: 800 clamp(40px, 5.6vw, 96px)/.9 var(--f-display); font-stretch: 125%; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat .n sup { font-size: .42em; vertical-align: top; position: relative; top: .1em; margin-left: .06em; }
.stat .k { margin-top: 12px; font-size: 14.5px; line-height: 1.35; color: var(--paper-mute); max-width: 24ch; }
@media (max-width: 1000px) {
  .statement-grid .statement, .portrait { grid-column: 1 / -1; }
  .portrait { max-width: 420px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(n + 3) { margin-top: 24px; border-top: 1px solid var(--paper-line); }
  .stat:nth-child(3) { padding-left: 0; }
}

/* figure frame with corner crosshairs */
.fig { position: relative; border-radius: var(--r); background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.fig > video, .fig > img, .fig > picture img { width: 100%; height: auto; border-radius: inherit; }
.fig-cap { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; }
.cross { position: relative; }
.cross::before, .cross::after, .cross > .cx::before, .cross > .cx::after { content: "+"; position: absolute; font: 400 16px/1 var(--f-mono); color: var(--mute); }
.cross::before { left: -22px; top: -22px; } .cross::after { right: -22px; top: -22px; }
.cross > .cx::before { left: -22px; bottom: -22px; } .cross > .cx::after { right: -22px; bottom: -22px; }
@media (max-width: 700px) { .cross::before, .cross::after, .cross > .cx::before, .cross > .cx::after { display: none; } }

/* work feature */
.work-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 24px; align-items: start; }
.work-media { grid-column: 1 / span 8; }
.work-info { grid-column: 9 / -1; position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 22px; }
.work-info h3 { font: 800 clamp(30px, 3.2vw, 52px)/.95 var(--f-display); font-stretch: 125%; text-transform: uppercase; letter-spacing: -.02em; }
.work-info p { color: var(--bone-2); text-wrap: pretty; }
.facts { border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts dt { font: 500 12px/1.5 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--mute); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font: 500 12px/1 var(--f-mono); letter-spacing: .03em; padding: 7px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--bone-2); }
.paper .tag { box-shadow: inset 0 0 0 1px var(--paper-line); color: var(--paper-mute); }
@media (max-width: 1000px) { .work-media, .work-info { grid-column: 1 / -1; position: static; } }

/* experience index */
.index { border-top: 1px solid var(--paper-line); }
.index details { border-bottom: 1px solid var(--paper-line); }
.index summary { display: grid; grid-template-columns: 1.7fr 5.2fr 2.6fr 1.7fr 40px; gap: 16px; align-items: baseline; padding: 26px 0; cursor: pointer; list-style: none; transition: padding .45s var(--ease-out); }
.index summary::-webkit-details-marker { display: none; }
.index summary:hover { padding-inline: 14px; }
.index .yr { font: 500 13px/1.3 var(--f-mono); letter-spacing: .04em; color: var(--paper-mute); text-transform: uppercase; }
.index .role { font: 700 clamp(20px, 2.3vw, 36px)/1.05 var(--f-display); font-stretch: 112%; letter-spacing: -.015em; }
.index .org { font-size: 17px; font-weight: 500; }
.index .loc { font-size: 15px; color: var(--paper-mute); }
.index .pm { justify-self: end; width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--paper-line); position: relative; align-self: center; transition: background .3s, transform .5s var(--ease-out); }
.index .pm::before, .index .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform .4s var(--ease-out); }
.index .pm::after { transform: translate(-50%, -50%) rotate(90deg); }
.index details[open] .pm { background: var(--paper-ink); color: var(--paper); transform: rotate(180deg); }
.index details[open] .pm::after { transform: translate(-50%, -50%) rotate(0deg); }
.index .body { display: grid; grid-template-columns: 1.7fr 7.8fr 1.7fr 40px; gap: 16px; padding: 0 0 34px; }
.index .body > div { grid-column: 2; }
.index .body h4 { font-size: 17px; font-weight: 650; margin-bottom: 12px; }
.index .body li { position: relative; padding-left: 20px; margin-top: 8px; font-size: 16px; line-height: 1.5; color: #2c2c2a; max-width: 70ch; }
.index .body li::before { content: ""; position: absolute; left: 0; top: .66em; width: 8px; height: 1.5px; background: var(--paper-mute); }
.index .body .tags { margin-top: 18px; }
@media (max-width: 900px) {
  .index summary { grid-template-columns: 1fr 40px; gap: 6px 12px; padding: 20px 0; }
  .index summary:hover { padding-inline: 0; }
  .index .yr, .index .role, .index .org, .index .loc { grid-column: 1; }
  .index .pm { grid-column: 2; grid-row: 1 / span 4; }
  .index .body { grid-template-columns: 1fr; }
  .index .body > div { grid-column: 1; }
}

@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .index details::details-content { block-size: 0; overflow: clip; transition: block-size .7s var(--ease-out), content-visibility .7s allow-discrete; }
  .index details[open]::details-content { block-size: auto; }
}

/* marquee */
.marquee { overflow: clip; padding-block: clamp(20px, 3vw, 44px); border-block: 1px solid var(--line); white-space: nowrap; }
.marquee-track { display: inline-flex; gap: 0; animation: marquee 38s linear infinite; will-change: transform; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font: 800 clamp(44px, 8.4vw, 150px)/1 var(--f-display); font-stretch: 125%; text-transform: uppercase; letter-spacing: -.02em; padding-right: .5em; }
.marquee span.o { color: transparent; -webkit-text-stroke: 1.5px var(--bone); }
.marquee span i { display: inline-block; width: .42em; height: .42em; border-radius: 50%; background: var(--orange); margin-right: .5em; vertical-align: .16em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* skills + education */
.cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.col { padding: 26px 24px 8px 0; border-right: 1px solid var(--line); padding-left: 24px; }
.col:first-child { padding-left: 0; } .col:last-child { border-right: 0; }
.col h3 { font: 500 12px/1.2 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); margin-bottom: 22px; }
.col li { font: 600 clamp(19px, 1.7vw, 27px)/1.22 var(--f-display); font-stretch: 108%; letter-spacing: -.01em; padding: 3px 0; }
@media (max-width: 1000px) { .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .col:nth-child(2) { border-right: 0; } .col:nth-child(n + 3) { border-top: 1px solid var(--line); } .col:nth-child(3) { padding-left: 0; } }
@media (max-width: 560px) { .cols { grid-template-columns: 1fr; } .col { border-right: 0; padding-left: 0; border-top: 1px solid var(--line); } .col:first-child { border-top: 0; } }
.duo { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 24px; margin-top: clamp(64px, 9vw, 140px); }
.duo > div:first-child { grid-column: 1 / span 6; } .duo > div:last-child { grid-column: 8 / -1; }
.duo h3 { font: 500 12px/1.2 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.rowlist li { display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.rowlist .t { font: 700 clamp(19px, 1.6vw, 25px)/1.15 var(--f-display); font-stretch: 110%; letter-spacing: -.01em; }
.rowlist .y { font: 500 12.5px/1.4 var(--f-mono); letter-spacing: .04em; color: var(--mute); white-space: nowrap; }
.rowlist .d { grid-column: 1 / -1; color: var(--bone-2); font-size: 15.5px; max-width: 60ch; }
@media (max-width: 1000px) { .duo > div:first-child, .duo > div:last-child { grid-column: 1 / -1; } }

/* product strip card */
.pcard { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: clamp(20px, 2.4vw, 34px); border-radius: var(--r-lg); background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); transition: background .4s, transform .6s var(--ease-out); }
.pcard:hover { background: var(--ink-3); }
.pcard img { width: 72px; height: 72px; border-radius: 16px; }
.pcard h3 { font: 800 clamp(22px, 2.4vw, 38px)/1 var(--f-display); font-stretch: 125%; text-transform: uppercase; letter-spacing: -.02em; }
.pcard p { color: var(--bone-2); margin-top: 8px; max-width: 60ch; }
.pcard .go { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-2); transition: background .35s, color .35s, transform .5s var(--ease-out); }
.pcard:hover .go { background: var(--orange); color: var(--ink); transform: rotate(-45deg); box-shadow: none; }
@media (max-width: 640px) { .pcard { grid-template-columns: auto 1fr; } .pcard .go { display: none; } .pcard img { width: 52px; height: 52px; border-radius: 12px; } }

/* contact + footer */
.contact { padding-block: clamp(90px, 13vw, 220px) clamp(40px, 6vw, 90px); }
.contact .display { font-size: clamp(56px, 13.4vw, 260px); line-height: .84; }
.contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px 24px; margin-top: clamp(36px, 5vw, 80px); padding-top: 28px; border-top: 1px solid var(--line); }
.contact-grid > div { grid-column: span 4; }
.contact-grid h3 { font: 500 12px/1.2 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); margin-bottom: 14px; }
.contact-grid a.big { display: inline-flex; align-items: center; gap: .4em; font: 600 clamp(20px, 2vw, 30px)/1.2 var(--f-display); font-stretch: 108%; letter-spacing: -.01em; }
.contact-grid a.big .arr { width: .7em; height: .7em; transition: transform .45s var(--ease-out); }
.contact-grid a.big:hover .arr { transform: translate(4px, -4px); }
.contact-grid p { color: var(--bone-2); font-size: 15.5px; margin-top: 8px; max-width: 34ch; }
@media (max-width: 900px) { .contact-grid > div { grid-column: 1 / -1; } }
.foot { border-top: 1px solid var(--line); padding-block: 28px 0; overflow: clip; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 28px; font-size: 14px; color: var(--mute); }
.foot-row a:hover { color: var(--bone); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-legal { margin-top: 18px; font-size: 12.5px; line-height: 1.5; color: #807f7a; max-width: 96ch; }
.foot-legal a { color: var(--mute); text-decoration: underline; text-underline-offset: 2px; }
.foot-legal a:hover { color: var(--bone); }
.foot-word { margin-top: clamp(24px, 4vw, 60px); font: 900 9.92vw/.76 var(--f-display); font-stretch: 125%; letter-spacing: -.03em; text-transform: uppercase; white-space: nowrap; text-align: center; color: transparent; -webkit-text-stroke: 1px var(--line-2); user-select: none; margin-bottom: -.06em; }

/* ---------- motion helpers ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); }
.js [data-reveal].in { opacity: 1; transform: none; transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.js .lines .ln { display: block; overflow: clip; padding-bottom: .08em; margin-bottom: -.08em; }
.js .lines .ln > span { display: block; transform: translateY(105%); }
.js .lines.in .ln > span { transform: none; transition: transform 1.15s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
.cursor { position: fixed; left: 0; top: 0; z-index: 150; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--orange); pointer-events: none; opacity: 0; transition: opacity .3s, width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out), background .3s; display: grid; place-items: center; font: 600 11px/1 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }
.cursor.on { opacity: 1; }
.cursor.hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
.cursor.hide, .in-hero .cursor { opacity: 0; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .35s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .5s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(18px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js .lines .ln > span { opacity: 1; transform: none; }
  .statement .w { opacity: 1; }
  .loader { display: none; }
  .marquee-track { animation: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
