/* Layout: icon nav on the left, one narrow column of text and lists. */
:root {
  --bg: #fafafa;
  --surface: #f1f1f4;
  --raised: #ffffff;
  --fg: #18181c;
  --muted: #6c6c78;
  --line: #e3e3e8;
  --accent: #4b3bd6;
  --t-blue-bg: #e6eefc;  --t-blue: #2753b8;
  --t-violet-bg: #ece8ff; --t-violet: #4b3bd6;
  --t-amber-bg: #fbefdc; --t-amber: #8a5300;
  --t-green-bg: #e2f4ea; --t-green: #1d6b43;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}
:root[data-site-theme="dark"] {
  --bg: #111114; --surface: #1a1a1f; --raised: #232329; --fg: #ececf0; --muted: #8e8e9a; --line: #2c2c34; --accent: #a99bff;
  --t-blue-bg: #17233d; --t-blue: #8fb1f5;
  --t-violet-bg: #231e45; --t-violet: #b6aaff;
  --t-amber-bg: #33260f; --t-amber: #f0bf72;
  --t-green-bg: #13291e; --t-green: #7fd3a5;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 0.9375rem/1.65 var(--sans);
  padding-inline: 20px; padding-block: 96px 96px;
  -webkit-font-smoothing: antialiased;
}
main { max-width: 560px; margin-inline: auto; display: flex; flex-direction: column; gap: 56px; position: relative; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, p { margin: 0; }
section { display: flex; flex-direction: column; gap: 14px; }
h2 { font: 600 0.9375rem/1.4 var(--sans); }

/* Side nav: fixed icon column on desktop, floating dock on small screens */
.side { position: fixed; top: 0; left: 0; z-index: 10; padding: 96px 0 0 40px; }
.side ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.side li { position: relative; display: flex; align-items: center; }
.side .sep { height: 1px; width: 20px; margin: 6px 8px; background: var(--line); }
.nav-btn {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px;
  color: var(--muted); background: none; border: 0; cursor: pointer; text-decoration: none;
  transition: background .15s, color .15s, box-shadow .15s;
}
.nav-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.nav-btn:hover { color: var(--fg); background: var(--surface); }
.nav-btn[aria-current="page"] { color: var(--fg); background: var(--surface); }
.nav-label {
  position: absolute; left: calc(100% + 12px); white-space: nowrap; pointer-events: none;
  font-size: 0.8125rem; color: var(--muted); opacity: 0; transform: translateX(-8px); filter: blur(2px);
  transition: opacity .22s ease, transform .22s cubic-bezier(.2,.7,.3,1), filter .22s;
}
.side li:hover .nav-label, .nav-btn[aria-current="page"] + .nav-label, .nav-btn:focus-visible + .nav-label { opacity: 1; transform: none; filter: none; }
.nav-btn .aora-mark { width: 20px; height: 16px; stroke: none; transition: transform .2s cubic-bezier(.2,.7,.3,1); }
.aora-btn:hover .aora-mark, .aora-btn:focus-visible .aora-mark { transform: scale(1.12) rotate(-4deg); }
.theme-icon { display: none; }
.theme-icon.on { display: block; }

/* Name + pronunciation */
.hero { display: flex; flex-direction: column; gap: 16px; }
.name-line { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; padding-block: 4px 6px; }
.name-line h1 { font: 600 1.0625rem/1.4 var(--sans); }
.intro .name-line h1 { font-size: 1.6875rem; line-height: 1.25; letter-spacing: -.02em; }
.ipa { font: 400 0.875rem/1 var(--mono); color: var(--muted); }
.say {
  width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; border: 0;
  background: var(--surface); color: var(--muted); cursor: pointer; transition: color .15s, background .15s;
}
.say:hover { color: var(--fg); background: var(--line); }
.say svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.say .wave { transition: opacity .2s; }
.say.playing { color: var(--accent); }
.say.playing .w1 { animation: wave 0.9s ease-in-out infinite; }
.say.playing .w2 { animation: wave 0.9s ease-in-out .15s infinite; }
@keyframes wave { 50% { opacity: .2; } }

.hero p { color: var(--muted); }
.hero p strong { color: var(--fg); font-weight: 500; }
.links { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.chip {
  font: 500 0.75rem/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  border-radius: 8px; padding: 9px 12px; background: var(--surface); color: var(--fg);
  transition: background .15s;
}
a.chip:hover { background: var(--line); }

/* Rows: name · dotted leader · meta. Used for work and experience. */
.rows { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 12px; padding: 7px 0; text-decoration: none; }
.row .name { white-space: nowrap; }
.row .lead { flex: 1; min-width: 16px; border-bottom: 1px dashed var(--line); transform: translateY(2px); }
.row .meta { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
a.row:hover .name { color: var(--accent); }
a.row:hover .lead { border-color: var(--muted); }
.yr { font: 400 0.8125rem/1 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.role { color: var(--muted); font-size: 0.875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

.tag { font: 500 0.6875rem/1 var(--mono); padding: 5px 7px; border-radius: 6px; white-space: nowrap; }
.tag.design { background: var(--t-blue-bg); color: var(--t-blue); }
.tag.ai { background: var(--t-violet-bg); color: var(--t-violet); }
.tag.concept { background: var(--t-amber-bg); color: var(--t-amber); }
.tag.dev, .tag.build { background: var(--t-green-bg); color: var(--t-green); }
.tag.domain { background: var(--surface); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }

/* About */
main.wide { max-width: 860px; }
.intro { display: grid; grid-template-columns: minmax(0, 580px) 210px; justify-content: space-between; gap: 56px; align-items: start; }
.photo.print { border: 6px solid var(--raised); border-radius: 14px; transform: rotate(2.5deg); box-shadow: 0 0 0 1px var(--line), 0 14px 34px rgba(0,0,0,.12); margin-top: 6px; transition: transform .35s cubic-bezier(.2,.7,.3,1); }
.photo.print:hover { transform: rotate(0) scale(1.02); }
.photo {
  aspect-ratio: 3 / 4; max-width: 100%; border-radius: 14px; overflow: hidden; background: var(--surface);
  display: grid; place-items: center; box-shadow: 0 0 0 1px var(--line);
}
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo .initials { font: 600 2.5rem/1 var(--sans); letter-spacing: -.03em; color: var(--muted); }
.intro .text { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.intro .text p { color: var(--muted); }

.principles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.pr { display: flex; flex-direction: column; gap: 14px; }
.pr .num { font: 400 0.75rem/1 var(--mono); color: var(--muted); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.tile { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--t-violet-bg); color: var(--t-violet); }
.tile svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pr h3 { margin: 0 0 4px; font: 500 0.9375rem/1.4 var(--sans); color: var(--fg); }
.pr p { color: var(--muted); font-size: 0.875rem; line-height: 1.55; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips .chip { text-transform: none; letter-spacing: 0; font: 400 0.8125rem/1 var(--sans); display: inline-flex; align-items: center; gap: 7px; }
.chip.tool svg { width: 14px; height: 14px; flex: none; }
.chip.tool svg[viewBox="0 0 38 57"] { width: 10px; }
.aside { color: var(--muted); font-size: 0.875rem; }

.offscreen {
  border-top: 1px solid var(--line); padding-top: 40px;
  display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: center;
}
.os-text { display: flex; flex-direction: column; gap: 16px; }
.offscreen h2 { font: 600 1.25rem/1.3 var(--sans); letter-spacing: -.015em; }
.offscreen-line { max-width: 500px; font-size: 1.0625rem; line-height: 1.6; color: var(--fg); }
.into { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.into li {
  font: 500 0.7188rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  padding: 9px 14px; border-radius: 999px; background: var(--surface);
  cursor: default; outline: none; transition: color .15s, background .15s;
}
.into li:hover, .into li:focus-visible { color: var(--fg); background: var(--line); }
.into li:focus-visible { box-shadow: 0 0 0 2px var(--accent); }

/* Three photos, loosely stacked; a tag lifts its photo */
.os-photos { position: relative; height: 220px; }
.os-photos img {
  position: absolute; width: 168px; height: 128px; object-fit: cover; border-radius: 12px;
  border: 4px solid var(--raised); box-shadow: 0 0 0 1px var(--line), 0 10px 26px rgba(0,0,0,.12);
  transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s;
}
.os-photos .p1 { left: 0;    top: 46px; transform: rotate(-6deg); z-index: 1; }
.os-photos .p2 { left: 86px; top: 0;    transform: rotate(3deg);  z-index: 2; }
.os-photos .p3 { left: 168px; top: 64px; transform: rotate(-2deg); z-index: 3; }
.os-photos img:hover,
.offscreen:has(.into li:nth-child(1):is(:hover, :focus-visible)) .p1,
.offscreen:has(.into li:nth-child(2):is(:hover, :focus-visible)) .p2,
.offscreen:has(.into li:nth-child(3):is(:hover, :focus-visible)) .p3 {
  z-index: 4; transform: translateY(-10px) rotate(0) scale(1.06); box-shadow: 0 0 0 1px var(--line), 0 18px 36px rgba(0,0,0,.18);
}
@media (max-width: 760px) {
  .offscreen { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .os-photos { width: min(340px, 100%); height: auto; aspect-ratio: 340 / 220; }
  .os-photos img { width: 49%; height: auto; aspect-ratio: 168 / 128; }
  .os-photos .p1 { left: 0; top: 21%; }
  .os-photos .p2 { left: 25%; top: 0; }
  .os-photos .p3 { left: 49%; top: 29%; }
}
main.wide > section:last-child { padding-bottom: 96px; }

/* Case study */
main.cs { max-width: 640px; gap: 88px; }
.cs-head { display: flex; flex-direction: column; gap: 14px; }
.kicker { font: 500 0.7188rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cs-name { font: 600 1.0625rem/1.4 var(--sans); }
.statement { font: 600 1.875rem/1.18 var(--sans); letter-spacing: -.025em; color: var(--fg); text-wrap: balance; max-width: 22ch; }
.cs-intro { color: var(--muted); font-size: 1rem; max-width: 58ch; }
.meta-grid { margin: 10px 0 4px; display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 12px 36px; padding-block: 16px; border-block: 1px solid var(--line); }
.meta-grid dt { font: 500 0.6875rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.meta-grid dd { margin: 0; font-size: 0.875rem; }
.chip.demo { display: inline-block; text-transform: none; letter-spacing: 0; font: 500 0.8125rem/1 var(--sans); background: var(--fg); color: var(--bg); }
.chip.demo:hover { opacity: .88; background: var(--fg); }

h2.big { font: 600 1.375rem/1.25 var(--sans); letter-spacing: -.015em; margin-bottom: 6px; }
.cs-sec { gap: 16px; scroll-margin-top: 32px; }
.cs-sec > p, .step > p, .ba-why p, .decisions p { color: var(--muted); }
.cs-sec p a { color: var(--fg); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.lead-line { color: var(--fg) !important; font: 500 1.125rem/1.45 var(--sans); letter-spacing: -.01em; }
.standalone { color: var(--fg) !important; font: 600 1.625rem/1.2 var(--sans); letter-spacing: -.02em; padding-block: 28px 4px; }

.step { display: flex; flex-direction: column; gap: 12px; padding-top: 28px; }
.step + .step { margin-top: 28px; border-top: 1px solid var(--line); }
.step-k { font: 500 0.75rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted) !important; display: flex; gap: 10px; }
.step-k span { color: var(--accent); }
.step h3 { margin: 0 0 2px; font: 600 1.25rem/1.3 var(--sans); letter-spacing: -.015em; }
.stat-inline { color: var(--fg) !important; font-size: 0.875rem; }
.stat-inline b { font: 600 1.25rem/1 var(--sans); margin-right: 6px; font-variant-numeric: tabular-nums; }
.clip { margin: 10px 0 4px; border-radius: 12px; overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px var(--line); aspect-ratio: 16 / 10; max-width: 100%; }
.clip video.g-item:focus-visible { outline-offset: -3px; }
.clip video { display: block; width: 100%; height: 100%; object-fit: cover; }

.compare { display: grid; grid-template-columns: 1fr 1.7fr; gap: 12px; margin-top: 6px; }
.cmp { border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cmp-score { background: var(--surface); justify-content: center; align-items: flex-start; }
.cmp-score b { font: 600 1.75rem/1.1 var(--sans); letter-spacing: -.02em; color: var(--muted); text-decoration: line-through; text-decoration-thickness: 2px; }
.cmp-aora { box-shadow: inset 0 0 0 1px var(--line); background: var(--raised); }
.cmp-label { font: 500 0.6875rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.cmp-note { font-size: 0.8125rem; color: var(--muted); }
.cmp-k { font: 500 0.6875rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.cmp p { font-size: 0.875rem; line-height: 1.5; color: var(--fg); }
.cmp .tag { align-self: flex-start; margin-top: 6px; }
.tag.quiet { background: var(--surface); color: var(--muted); }
.caption { font-size: 0.8125rem !important; }
.boundary { color: var(--fg) !important; font: 500 1.125rem/1.4 var(--sans); padding: 14px 0 0 18px; border-left: 2px solid var(--accent); margin-top: 6px; }

.decisions { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 30px; }
.decisions li { display: grid; grid-template-columns: 40px 1fr; gap: 8px; }
.decisions .n { font: 500 0.8125rem/1.9 var(--mono); color: var(--accent); }
.decisions h3 { margin: 0 0 6px; font: 600 1.125rem/1.35 var(--sans); letter-spacing: -.01em; }
.decisions p + p { margin-top: 8px; }

/* Iteration: wide before/after with pinned notes */
.ba-wide { --w: min(1080px, calc(100vw - 260px)); width: var(--w); margin-inline: calc((var(--w) - 100%) / -2); display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 10px; }
.ba { margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ba-k { font: 500 0.6875rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.shot { position: relative; }
.shot img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); display: block; }
.pin { position: absolute; transform: translate(-50%, -50%); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 600 0.75rem/1 var(--mono); color: #fff; box-shadow: 0 0 0 3px rgba(0,0,0,.35); }
.pin.bad { background: #b9542a; } .pin.good { background: #1f7a52; }
.notes { margin: 0; padding: 0; list-style: none; counter-reset: n; display: flex; flex-direction: column; gap: 6px; }
.notes li { counter-increment: n; display: flex; gap: 10px; align-items: center; font-size: 0.875rem; color: var(--fg); }
.notes li::before { content: counter(n); flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font: 600 0.6875rem/1 var(--mono); color: #fff; }
.notes.bad li::before { background: #b9542a; } .notes.good li::before { background: #1f7a52; }

/* Flow diagram */
.flow { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px 18px; align-items: center; margin-top: 8px; padding: 20px; border-radius: 14px; background: var(--surface); }
.flow-col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.flow-k { font: 500 0.6875rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.flow-item { font-size: 0.8125rem; padding: 7px 10px; border-radius: 8px; background: var(--raised); box-shadow: inset 0 0 0 1px var(--line); color: var(--fg); }
.flow-item.hl { box-shadow: inset 0 0 0 1.5px var(--accent); }
.flow-mid { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--muted); }
.flow-mid::before, .flow-mid::after { content: "→"; font-size: 1rem; }
.flow-mid::after { content: "←"; }
.flow-node { font: 600 0.8125rem/1 var(--sans); color: var(--bg); background: var(--accent); padding: 9px 12px; border-radius: 999px; }
.flow-out { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 10px; background: var(--raised); box-shadow: inset 0 0 0 1.5px var(--accent); position: relative; margin-top: 12px; }
.flow-out::before { content: "↓"; position: absolute; top: -24px; left: 50%; transform: translateX(-50%); color: var(--muted); }
.flow-out p { font-size: 0.875rem; line-height: 1.55; color: var(--fg); }
.flow-out .tag { margin-left: 4px; }

.angles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 8px; padding: 12px; border-radius: 14px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.angles figure { margin: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.angles img { width: 100%; height: auto; border-radius: 8px; display: block; }
.angles figcaption { font: 500 0.6875rem/1 var(--mono); color: var(--muted); }
.angles.strip { grid-template-columns: repeat(4, 1fr); gap: 0; padding: 18px 10px 12px; background: #f2f2f5; }
.angles.strip figure { position: relative; align-items: center; }
.angles.strip img { border-radius: 0; clip-path: inset(4px); }
.angles.strip figcaption { color: #6c6c78; }
.punch { color: var(--fg) !important; font: 600 1.25rem/1.3 var(--sans); letter-spacing: -.015em; margin-top: 6px; }
.vtl { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; position: relative; }
.vtl::before { content: ""; position: absolute; left: 15px; top: 16px; bottom: 16px; width: 1px; background: var(--line); }
.vtl li { display: grid; grid-template-columns: 32px 1fr; gap: 16px; padding: 10px 0; position: relative; }
.vtl .tl-n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); font: 500 0.6875rem/1 var(--mono); color: var(--accent); position: relative; }
.vtl li:last-child .tl-n { background: var(--accent); color: var(--bg); box-shadow: none; }
.vtl .tl-h { color: var(--fg); font: 600 0.9375rem/1.4 var(--sans); padding-top: 5px; }
.vtl p { color: var(--muted); font-size: 0.9062rem; }
.tl-date { font: 500 0.6875rem/1 var(--mono); color: var(--muted); margin-left: 8px; letter-spacing: .04em; text-transform: uppercase; }
.ld { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.ld figure { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.ld img { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 0 0 1px var(--line); display: block; }
.ld figcaption { font: 500 0.6875rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.metrics { display: grid; grid-template-columns: auto 1fr; gap: 12px; margin-top: 6px; }
.m-group { background: var(--surface); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.m-group.quiet { background: none; box-shadow: inset 0 0 0 1px var(--line); }
.m-k { font: 500 0.6875rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.m-group p { color: var(--fg); font-size: 0.875rem; }
.m-group b { font: 600 1.625rem/1 var(--sans); letter-spacing: -.02em; margin-right: 4px; font-variant-numeric: tabular-nums; }
.m-group.quiet b { font-size: 1.125rem; }
.standalone a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 5px; }
.timeline { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; position: relative; }
.timeline li { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.timeline .tl-k { font: 500 0.75rem/1.5 var(--mono); color: var(--accent); }
.timeline p { color: var(--muted); font-size: 0.9062rem; }
.timeline strong { color: var(--fg); font-weight: 500; }
.theme-block { display: flex; flex-direction: column; gap: 8px; padding-top: 28px; border-top: 1px solid var(--line); margin-top: 20px; }
.theme-block h3 { margin: 0; font: 600 0.9375rem/1.4 var(--sans); }
.theme-block p { color: var(--muted); }
.tradeoffs { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; }
.to { display: flex; flex-direction: column; gap: 10px; padding: 20px 0; border-top: 1px solid var(--line); }
.to h3 { margin: 0; font: 600 1rem/1.4 var(--sans); letter-spacing: -.01em; }
.to dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.to dl div { background: var(--surface); border-radius: 10px; padding: 12px 14px; }
.to dt { font: 500 0.6875rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 7px; color: var(--muted); }
.to dl div:first-child dt { color: var(--t-green); }
.to dd { margin: 0; font-size: 0.875rem; line-height: 1.5; color: var(--fg); }
.to p { color: var(--muted); font-size: 0.9062rem; }
.more-td { border-top: 1px solid var(--line); padding-top: 16px; }
.more-td summary { cursor: pointer; list-style: none; font: 500 0.875rem/1.4 var(--sans); color: var(--muted); display: flex; gap: 8px; align-items: center; }
.more-td summary::-webkit-details-marker { display: none; }
.more-td summary:hover { color: var(--fg); }
.more-td[open] summary span { transform: rotate(45deg); }
.more-td summary span { transition: transform .2s; display: inline-block; }
.more-td ul { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.more-td li { color: var(--muted); font-size: 0.9062rem; }
.more-td strong { color: var(--fg); font-weight: 500; }
.stats { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stats li { background: var(--surface); border-radius: 12px; padding: 18px 16px; display: flex; flex-direction: column; gap: 6px; }
.stats b { font: 600 2rem/1 var(--sans); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stats span { color: var(--muted); font-size: 0.8125rem; }
.post-links { font-size: 0.875rem; }
.stack { font: 400 0.8125rem/1.6 var(--mono); color: var(--muted) !important; }
.thoughts { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; padding-top: 22px; border-top: 1px solid var(--line); }
.thoughts strong { color: var(--fg); font-weight: 500; }

/* Shared case study blocks */
.clip.free { aspect-ratio: auto; }
.clip.free video { height: auto; }
.phones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; padding: 16px; border-radius: 14px; background: var(--surface); }
.phones img { width: 100%; height: auto; display: block; }
.shots { display: flex; flex-direction: column; gap: 32px; margin: 12px 0 8px; }
.shots img { width: 100%; height: auto; display: block; }
.wide-img { margin: 10px 0 0; }
.wide-img img { width: 100%; height: auto; display: block; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 6px; }
.card { background: var(--surface); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.card h3 { margin: 0; font: 600 0.9375rem/1.4 var(--sans); }
.card p { color: var(--muted); font-size: 0.875rem; line-height: 1.55; }
.callout { border-left: 2px solid var(--accent); padding: 4px 0 4px 18px; display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
.callout p { color: var(--fg); font: 500 1.0625rem/1.45 var(--sans); }
.pts { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pts li { color: var(--muted); padding-left: 18px; position: relative; font-size: 0.9375rem; }
.pts li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.pts strong { color: var(--fg); font-weight: 500; }
.stats.four { grid-template-columns: repeat(4, 1fr); }
.stats.four b { font-size: 1.625rem; }
.step .step-k:only-child { display: none; }
.pager { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 28px; }
.pn { display: inline-flex; align-items: center; padding: 12px 16px; border-radius: 12px; background: var(--surface); text-decoration: none; transition: background .15s, transform .15s; }
.pn:hover { background: var(--line); }
.pn.next { margin-left: auto; }
.pn-name { font: 500 0.9375rem/1.3 var(--sans); color: var(--fg); }
.pn-arrow { color: var(--muted); transition: transform .15s; display: inline-block; }
.pn.previous:hover .pn-arrow { transform: translateX(-3px); }
.pn.next:hover .pn-arrow { transform: translateX(3px); }


/* Full-screen gallery */
.g-item { cursor: zoom-in; }
.g-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.gallery { position: fixed; inset: 0; z-index: 60; background: rgba(8, 8, 12, .97); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); display: grid; grid-template-rows: 1fr auto; padding: 64px 88px 20px; animation: g-in .18s ease both; }
@keyframes g-in { from { opacity: 0; } }
.g-stage { display: grid; place-items: center; min-height: 0; }
.g-stage img, .g-stage video { max-width: 100%; max-height: calc(100vh - 150px); width: auto; height: auto; object-fit: contain; border-radius: 10px; display: block; }
.g-btn { position: absolute; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255,255,255,.1); color: #fff; font: 500 1.125rem/1 var(--sans); cursor: pointer; transition: background .15s; }
.g-btn:hover { background: rgba(255,255,255,.2); }
.g-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.g-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.g-next { right: 24px; top: 50%; transform: translateY(-50%); }
.g-close { top: 16px; right: 20px; font-size: 0.9375rem; }
.g-foot { display: flex; justify-content: center; gap: 14px; align-items: baseline; color: rgba(255,255,255,.75); font-size: 0.8125rem; padding-top: 14px; text-align: center; }
.g-count { font: 500 0.75rem/1 var(--mono); color: rgba(255,255,255,.55); font-variant-numeric: tabular-nums; white-space: nowrap; }
.g-cap { max-width: 60ch; }
@media (max-width: 640px) {
  .gallery { padding: 60px 12px 16px; }
  .g-prev, .g-next { top: auto; bottom: 14px; transform: none; }
  .g-prev { left: 12px; } .g-next { right: 12px; }
  .g-foot { padding: 14px 56px 0; }
  .g-stage img, .g-stage video { max-height: calc(100vh - 170px); }
}

@media (max-width: 900px) {
  .ba-wide { grid-template-columns: 1fr; width: 100%; margin-inline: 0; }
}
@media (max-width: 1000px) {
  .progress { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); left: 16px; }
  .side { top: auto; bottom: 0; left: 50%; transform: translateX(-50%); padding: 0 0 calc(16px + env(safe-area-inset-bottom, 0px)); }
  .side ul {
    flex-direction: row; gap: 4px; padding: 6px; border-radius: 16px;
    background: color-mix(in srgb, var(--bg) 82%, transparent); border: 1px solid var(--line);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 8px 28px rgba(0,0,0,.12);
  }
  .side .sep { width: 1px; height: 24px; margin: 8px 4px; }
  .nav-label { display: none; }
  body { padding-block: 56px 120px; }
}
@media (max-width: 640px) {
  .statement { font-size: 1.5625rem; }
  .meta-grid { grid-template-columns: 1fr 1fr; }
  .compare { grid-template-columns: 1fr; }
  .to dl { grid-template-columns: 1fr; }
  .angles { grid-template-columns: 1fr 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  .angles.strip { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ld, .metrics { grid-template-columns: 1fr; }
  .pager { grid-template-columns: 1fr; }
  .phones { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: 1fr; }
  .stats.four { grid-template-columns: 1fr 1fr; }
  .pn.next { text-align: left; align-items: flex-start; }
  .flow { grid-template-columns: 1fr; }
  .flow-mid { flex-direction: row; }
  .flow-mid::before { content: "↓"; } .flow-mid::after { content: "↓"; }
  .stats { grid-template-columns: 1fr; }
  .intro { grid-template-columns: 1fr; gap: 28px; }
  .photo.print { grid-row: 1; width: 150px; }
  .photo { width: 160px; }
  .principles { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 480px) {
  body { padding-inline: 16px; }
  .role { display: none; }
}



/* Name as a selected layer */
.frame {
  position: relative; padding: 2px 8px; margin-left: -9px;
  outline: 1px solid var(--accent); outline-offset: 0;
}
.frame .h {
  position: absolute; width: 7px; height: 7px; background: var(--bg);
  border: 1px solid var(--accent); border-radius: 1px;
}
.frame .tl { top: -4px; left: -4px; } .frame .tr { top: -4px; right: -4px; }
.frame .bl { bottom: -4px; left: -4px; } .frame .br { bottom: -4px; right: -4px; }

/* Two collaborators working across the page (cursors are added by site.js) */
:root { --you: var(--accent); --claude: #d9774f; }
.peer {
  position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none;
  display: flex; align-items: flex-start;
  transition: transform 1.5s cubic-bezier(.45,.05,.25,1), opacity .4s;
}
.peer svg { width: 16px; height: 16px; stroke: var(--bg); stroke-width: 1.2; stroke-linejoin: round; }
.peer b { margin: 12px 0 0 -2px; font: 500 0.6875rem/1 var(--sans); color: #fff; padding: 4px 7px; border-radius: 4px 9px 9px 9px; white-space: nowrap; }
.peer.you svg { fill: var(--you); } .peer.you b { background: var(--you); }
.peer.claude svg { fill: var(--claude); } .peer.claude b { background: var(--claude); }
:root[data-site-theme="dark"] .peer.you b { color: #17142e; }
@media (max-width: 480px) { .peer { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto !important; }
  .rv { opacity: 1 !important; transform: none !important; }
}


/* ---------- Home: selected-layer name, Aora mention, contact line, work index ---------- */
.name-line { align-items: center; }
.sel { display: inline-flex; }
.hero .name-line h1, .intro .name-line h1 { font-size: 1.75rem; line-height: 1.25; letter-spacing: -.02em; }
.say.say { width: auto; height: 30px; padding: 0 11px 0 8px; display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; font: 400 0.7812rem/1 var(--sans); }
.say span { white-space: nowrap; }

.mention {
  display: inline-flex; align-items: center; gap: 6px; padding: 0 8px 0 6px; border-radius: 7px; vertical-align: baseline;
  background: var(--t-violet-bg); color: var(--fg); font-weight: 500; text-decoration: none; line-height: 1.6;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 20%, transparent); transition: box-shadow .15s;
}
.mention .aora-mark { width: 16px; height: 13px; flex: none; transition: transform .25s cubic-bezier(.2,.7,.3,1); }
.mention-go { font-size: .8em; color: var(--accent); transition: transform .2s; }
.mention:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.mention:hover .aora-mark { transform: rotate(-6deg) scale(1.1); }
.mention:hover .mention-go { transform: translate(2px, -2px); }

.contact { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; padding-top: 6px; }
.contact-k { font-size: 0.875rem; color: var(--muted); }
.mail {
  display: inline-flex; align-items: center; gap: 10px; padding: 5px 5px 5px 12px; border-radius: 10px;
  background: var(--surface); color: var(--fg); font-size: 0.875rem; text-decoration: none; transition: background .15s;
}
.mail:hover { background: var(--line); }
.mail-state {
  font: 500 0.6562rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 6px 7px; border-radius: 6px;
  background: var(--raised); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); transition: color .15s, background .15s;
}
.mail.copied .mail-state { color: var(--t-green); background: var(--t-green-bg); box-shadow: none; }
.socials { display: inline-flex; gap: 2px; }
.socials a { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: var(--muted); transition: color .15s, background .15s; }
.socials a:hover { color: var(--fg); background: var(--surface); }
.socials svg { width: 16px; height: 16px; }

.index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ix {
  display: grid; grid-template-columns: 30px minmax(0, 1fr) auto 64px; align-items: center; gap: 16px;
  padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--fg); text-decoration: none;
}
.index > li:last-child > .ix, .index > .ix:last-child { border-bottom: 0; }
.xp .ix { grid-template-columns: minmax(0, 1fr) auto; }
.ix-n { font: 400 0.75rem/1 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; transition: color .15s; }
.ix-name { font-weight: 500; min-width: 0; transition: transform .2s cubic-bezier(.2,.7,.3,1); }
.ix-d { display: block; font-weight: 400; font-size: 0.8438rem; color: var(--muted); margin-top: 1px; }
.ix-t { font-size: 0.8125rem; color: var(--muted); white-space: nowrap; }
.ix-y { font: 400 0.75rem/1 var(--mono); color: var(--muted); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
a.ix:hover .ix-n { color: var(--accent); }
a.ix:hover .ix-name { transform: translateX(4px); }
.ix-preview {
  position: fixed; left: 0; top: 0; z-index: 20; width: 260px; aspect-ratio: 16 / 10; object-fit: cover; pointer-events: none;
  border-radius: 10px; box-shadow: 0 0 0 1px var(--line), 0 16px 40px rgba(0,0,0,.18); opacity: 0; transition: opacity .18s;
}
.ix-preview.on { opacity: 1; }
@media (max-width: 640px) {
  .ix { grid-template-columns: 26px minmax(0, 1fr) auto; }
  .ix-t { display: none; }
}

/* About: tools as two quiet lines */
.stack { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.stack > div { display: grid; grid-template-columns: 72px 1fr; align-items: baseline; gap: 16px; }
.stack dt { font: 500 0.7188rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.stack dd { margin: 0; font: 400 0.9375rem/1.5 var(--sans); color: var(--fg); letter-spacing: 0; text-transform: none; }
.stack ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.stack li { display: inline-flex; align-items: center; gap: 7px; font-size: 0.9375rem; }
.stack li svg { width: 14px; height: 14px; flex: none; }
.stack li svg[viewBox="0 0 38 57"] { width: 10px; }

/* Hand-drawn smiley perched on the greeting; its eyes follow the pointer (site.js) */
.hi { display: inline-flex; align-items: center; gap: 10px; }
.smiley {
  flex: none; width: 30px; height: 30px; overflow: visible; pointer-events: none;
  fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  transform: rotate(10deg); transform-origin: 50% 55%; transition: transform .35s cubic-bezier(.3,1.6,.5,1);
}
.smiley path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: s-draw .6s cubic-bezier(.6,.1,.3,1) forwards; }
.smiley .s-face { animation-delay: .35s; animation-duration: .8s; }
.smiley .s-smile { animation-delay: 1.2s; animation-duration: .4s; }
.s-eye { fill: var(--accent); stroke: none; opacity: 0; animation: s-pop .25s ease 1.05s forwards; transform-box: fill-box; transform-origin: center; }
.s-eyes { transition: transform .12s linear; }
@keyframes s-draw { to { stroke-dashoffset: 0; } }
@keyframes s-pop { to { opacity: 1; } }
.hi:hover .smiley { transform: rotate(-8deg) scale(1.1); }
.hi:hover .s-wink { animation: s-pop .01s forwards, s-wink .5s ease; }
@keyframes s-wink { 0%, 100% { transform: none; } 40%, 60% { transform: scaleY(.15); } }
@media (prefers-reduced-motion: reduce) { .smiley path, .s-eye { animation: none !important; stroke-dashoffset: 0; opacity: 1; } }


/* ================= Micro-interactions ================= */
html { scroll-behavior: smooth; }
::selection { background: color-mix(in srgb, var(--accent) 22%, transparent); }
a, button { -webkit-tap-highlight-color: transparent; }

/* Press: everything clickable gives a little under the finger */
.chip, .pn, .say, .mail, .mention, .socials a, .nav-btn, .g-btn, .into li {
  transition-property: background, color, box-shadow, transform, opacity; transition-duration: .15s, .15s, .15s, .2s, .15s;
  transition-timing-function: ease, ease, ease, cubic-bezier(.16,1,.3,1), ease;
}
.chip:active, .pn:active, .say:active, .mail:active, .mention:active, .socials a:active, .nav-btn:active,
.g-btn:active, .into li:active { transform: scale(.96); }

/* Theme switch: a soft crossfade between the two themes */
::view-transition-old(root), ::view-transition-new(root) { mix-blend-mode: normal; animation-duration: .4s; animation-timing-function: cubic-bezier(.4,0,.2,1); }
::view-transition-old(root) { animation-name: theme-out; }
::view-transition-new(root) { animation-name: theme-in; }
@keyframes theme-out { to { opacity: 0; } }
@keyframes theme-in { from { opacity: 0; } }
.theme-icon.on { animation: icon-in .45s cubic-bezier(.16,1,.3,1); }
@keyframes icon-in { from { transform: rotate(-90deg) scale(.6); opacity: 0; } }

/* Content eases in on load and as you scroll to it */
.rv { opacity: 0; transform: translateY(12px); transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }

/* Gallery: images arrive with a small zoom, and slide in the direction you step */
.g-stage > * { animation: g-pop .35s cubic-bezier(.16,1,.3,1); }
.g-stage[data-dir="1"] > * { animation-name: g-next; }
.g-stage[data-dir="-1"] > * { animation-name: g-prev; }
@keyframes g-pop { from { opacity: 0; transform: scale(.96); } }
@keyframes g-next { from { opacity: 0; transform: translateX(28px); } }
@keyframes g-prev { from { opacity: 0; transform: translateX(-28px); } }

/* Copy email: a little pop when it lands */
.mail.copied .mail-state { animation: pop .35s cubic-bezier(.3,1.6,.5,1); }
@keyframes pop { 40% { transform: scale(1.15); } }

/* Pager: the arrow travels a bit further */
.pn.previous:hover .pn-arrow { transform: translateX(-5px); }
.pn.next:hover .pn-arrow { transform: translateX(5px); }
.pn-arrow { transition: transform .3s cubic-bezier(.16,1,.3,1); }
.g-prev:active, .g-next:active { transform: translateY(-50%) scale(.94); }
@media (max-width: 640px) { .g-prev:active, .g-next:active { transform: scale(.94); } }

/* Case-study progress pill (modelled on Tommy Smith's): a capsule that grows into a section list, following the site theme */
.progress {
  position: fixed; left: 24px; bottom: 24px; z-index: 12; width: 220px; overflow: hidden;
  border-radius: 12px; background: var(--raised); color: var(--fg);
  box-shadow: 0 0 0 1px var(--line), 0 8px 24px rgba(0,0,0,.08);
  transition: width .38s cubic-bezier(.32,.72,0,1), box-shadow .2s;
}
:root[data-site-theme="dark"] .progress { box-shadow: 0 0 0 1px var(--line), 0 8px 24px rgba(0,0,0,.4); }
.progress.open { width: 300px; }
.progress > button {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 16px;
  border: 0; background: none; color: inherit; cursor: pointer; font: 500 0.875rem/1.25rem var(--sans); text-align: left;
}
.progress .p-name { flex: 1; min-width: 0; height: 20px; overflow: hidden; }
#progress-name { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#progress-name.tick { animation: name-tick .4s cubic-bezier(.16,1,.3,1); }
@keyframes name-tick { from { transform: translateY(100%); opacity: 0; } }
.progress .p-chev {
  width: 20px; height: 20px; flex: none; fill: none; stroke: var(--fg); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .38s cubic-bezier(.32,.72,0,1);
  animation: chev-hint .9s cubic-bezier(.3,1.6,.5,1) 1.4s 2;
}
.progress.open .p-chev { transform: rotate(180deg); animation: none; }
@keyframes chev-hint { 40% { transform: translateY(-3px); } }
.progress .pct {
  flex: none; display: grid; place-items: center; height: 24px; min-width: 50px; padding: 0 8px; border-radius: 6px;
  background: var(--surface); color: var(--fg); font: 500 0.75rem/1 var(--mono); font-variant-numeric: tabular-nums;
}
.progress .p-body { height: 0; opacity: 0; overflow: hidden; transition: height .38s cubic-bezier(.32,.72,0,1), opacity .25s ease; }
.progress.open .p-body { opacity: 1; }
.progress ul { list-style: none; margin: 0; padding: 0 16px 12px; max-height: 200px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.progress li { opacity: 0; transform: translate(-5px, 10px); transition: opacity .3s ease, transform .4s cubic-bezier(.16,1,.3,1); }
.progress.open li { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 30ms + 80ms); }
.progress li a { display: block; padding: 9px 0; font-size: 0.875rem; color: var(--muted); text-decoration: none; transition: color .15s; }
.progress li a:hover, .progress li a[aria-current="true"] { color: var(--fg); }
.progress > button:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; border-radius: 10px; }
@media (max-width: 1000px) {
  .progress { left: 16px; bottom: calc(88px + env(safe-area-inset-bottom, 0px)); width: 210px; }
  .progress.open { width: min(300px, calc(100vw - 32px)); }
}

/* Accessibility: honour the system "increase contrast" setting */
@media (prefers-contrast: more) {
  :root { --muted: #45454f; --line: #9a9aa6; --surface: #e6e6ec; }
  :root[data-site-theme="dark"] { --muted: #c4c4ce; --line: #6a6a76; --surface: #26262c; }
  .tag.domain { box-shadow: inset 0 0 0 1px var(--muted); }
  .row .lead { border-bottom-style: solid; }
}
/* Skip link: hidden until focused with the keyboard */
.skip {
  position: fixed; left: 16px; top: 12px; z-index: 100; padding: 10px 14px; border-radius: 10px;
  background: var(--fg); color: var(--bg); font: 500 0.875rem/1 var(--sans); text-decoration: none;
  transform: translateY(-160%); transition: transform .2s;
}
.skip:focus { transform: none; }
main:focus { outline: none; }
/* Closed section drawer: its links are hidden from the keyboard and screen readers too */
.progress .p-body { visibility: hidden; transition: height .38s cubic-bezier(.32,.72,0,1), opacity .25s ease, visibility 0s linear .38s; }
.progress.open .p-body { visibility: visible; transition-delay: 0s; }
/* Video pause / play */
.clip { position: relative; }
.clip-toggle {
  position: absolute; right: 10px; bottom: 10px; width: 32px; height: 32px; border: 0; border-radius: 8px; cursor: pointer;
  display: grid; place-items: center; background: rgba(12,12,16,.62); color: #fff; opacity: .75;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: opacity .15s, transform .2s;
}
.clip:hover .clip-toggle, .clip-toggle:focus-visible { opacity: 1; }
.clip-toggle:active { transform: scale(.94); }
.clip-toggle svg { width: 14px; height: 14px; fill: currentColor; }
.clip-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.clip-open { right: 48px; }
.clip-open svg { fill: none; }

/* CV page: the CV as paper sheets, with a download */
main.cv-page { max-width: 760px; gap: 32px; }
.cv-head { display: flex; flex-direction: column; gap: 10px; }
.cv-head h1 { font: 600 1.75rem/1.2 var(--sans); letter-spacing: -.02em; }
.cv-head p { color: var(--muted); }
.cv-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding-top: 6px; }
.cv-dl {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px 10px 14px; border-radius: 10px;
  background: var(--fg); color: var(--bg); font: 500 0.875rem/1 var(--sans); text-decoration: none;
  transition: opacity .15s, transform .2s cubic-bezier(.16,1,.3,1);
}
.cv-dl:hover { opacity: .88; }
.cv-dl:active { transform: scale(.96); }
.cv-dl svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s cubic-bezier(.16,1,.3,1); }
.cv-dl:hover svg { transform: translateY(2px); }
.cv-open { font-size: 0.875rem; color: var(--muted); text-decoration: none; }
.cv-open:hover { color: var(--fg); }
.cv-sheets { gap: 20px; }
.sheet { position: relative; margin: 0; border-radius: 6px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 12px 32px rgba(0,0,0,.08); }
:root[data-site-theme="dark"] .sheet { box-shadow: 0 0 0 1px var(--line), 0 12px 32px rgba(0,0,0,.45); }
.sheet img { display: block; width: 100%; height: auto; }
.sheet .hot { position: absolute; border-radius: 3px; transition: background .15s, box-shadow .15s; }
.sheet .hot:hover { background: rgba(75,59,214,.10); box-shadow: 0 0 0 1px rgba(75,59,214,.45); }
.sheet .hot:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cv-note { font-size: 0.8125rem; color: var(--muted); }
