/* Damilare Oduyomi portfolio. Plain CSS, no build step.
   Dark: charcoal 60 / slate 30 / mint 10. Light: sky 60 / ocean 30 / coral 10.
   Mint and coral are fills only (dark ink text on them). Accent text uses mint on dark, ocean on light. */

/* ---------- Tokens ---------- */
:root {
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fast: 160ms;
  --mid: 220ms;
  --slow: 520ms;

  --font: "Instrument Sans", system-ui, sans-serif;
  --display: "Instrument Serif", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --r-sm: 6px;
  --r: 10px;
  --r-card: 16px;
  --r-panel: 20px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #141619;          /* charcoal, 60 */
  --bg-deep: #0f1113;
  --surface: #1a1d21;
  --raised: #22272d;
  --band: #252c35;        /* slate, 30 */
  --band-2: #2e3742;
  --band-fg: #eef1f4;
  --band-fg-2: #b4bfcc;
  --band-line: rgba(238, 241, 244, 0.12);
  --fg: #eef1f4;
  --fg-2: #aeb8c5;
  --muted: #8c97a6;
  --line: rgba(238, 241, 244, 0.08);
  --line-strong: rgba(238, 241, 244, 0.16);
  --accent: #5ef0b8;      /* mint, 10 */
  --accent-hover: #7ff5c8;
  --on-accent: #0a1f17;
  --accent-text: #5ef0b8;
  --mark: #eef1f4;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
  --float: 0 16px 40px rgba(0, 0, 0, 0.35);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #eaf3fa;          /* sky, 60 */
  --bg-deep: #dceaf5;
  --surface: #ffffff;
  --raised: #f3f8fc;
  --band: #0e4d72;        /* ocean, 30 */
  --band-2: #155d88;
  --band-fg: #ffffff;
  --band-fg-2: #cfe2ef;
  --band-line: rgba(255, 255, 255, 0.18);
  --fg: #0b2235;
  --fg-2: #3a5266;
  --muted: #566b7d;
  --line: rgba(11, 34, 53, 0.1);
  --line-strong: rgba(11, 34, 53, 0.18);
  --accent: #ff6b5a;      /* coral, 10 */
  --accent-hover: #ff8070;
  --on-accent: #0b2235;
  --accent-text: #0e4d72;
  --mark: #0e4d72;
  --shadow: 0 1px 2px rgba(11, 34, 53, 0.06);
  --float: 0 16px 40px rgba(14, 77, 114, 0.14);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
svg { width: 18px; height: 18px; flex: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

.skip { position: absolute; left: 16px; top: -48px; z-index: 100; padding: 8px 12px; border-radius: var(--r-sm); background: var(--accent); color: var(--on-accent); text-decoration: none; }
.skip:focus { top: 16px; }

.label { font: 500 13px/1 var(--mono); color: var(--accent-text); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.label::before { content: ""; width: 24px; height: 1.5px; background: currentColor; }
.title { font: 400 clamp(32px, 4.4vw, 52px)/1.08 var(--display); letter-spacing: -0.01em; color: var(--fg); max-width: 20ch; }
.prose { color: var(--fg-2); max-width: 62ch; }
.prose p + p { margin-top: 16px; }
.meta { font: 400 13px/1.5 var(--mono); color: var(--muted); }
.meta span { color: var(--accent-text); margin-right: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 16px; border-radius: var(--r);
  font: 500 15px/1 var(--font); text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease), color var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 16px; height: 16px; transition: transform var(--mid) var(--ease); }
.btn-sm { min-height: 36px; font-size: 14px; }
.btn-lg { min-height: 48px; padding: 0 20px; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset; }
.btn-secondary { background: var(--surface); border-color: var(--line-strong); color: var(--fg); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--accent-hover); }
  .btn-secondary:hover { border-color: var(--accent-text); }
  .btn:hover svg { transform: translate(2px, -2px); }
  .hero-cta .btn-secondary:hover svg { transform: translateY(2px); }
}

.icon-btn {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r);
  background: transparent; border: 1px solid var(--line-strong); color: var(--fg-2); cursor: pointer;
  transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.icon-btn:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { color: var(--fg); border-color: var(--accent-text); } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color var(--mid) var(--ease), border-color var(--mid) var(--ease), transform var(--slow) var(--ease);
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav-inner { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 16px; color: var(--fg); }
.brand-mark { width: 30px; height: 21px; color: var(--mark); transition: transform var(--slow) var(--ease); }
@media (hover: hover) and (pointer: fine) { .brand:hover .brand-mark { transform: rotate(-8deg); } }
.nav-links { display: none; gap: 4px; }
.nav-links a {
  position: relative; display: block; padding: 8px 12px; border-radius: var(--r-sm);
  font-size: 15px; color: var(--fg-2); text-decoration: none;
  transition: color var(--fast) var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1.5px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform var(--mid) var(--ease);
}
.nav-links a:hover, .nav-links a.is-current { color: var(--fg); }
.nav-links a.is-current::after, .nav-links a:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-cta { display: none; }
.theme-toggle .sun, .theme-toggle .moon { width: 18px; height: 18px; grid-area: 1 / 1; transition: transform var(--slow) var(--ease), opacity var(--mid) var(--ease); }
[data-theme="dark"] .theme-toggle .moon, [data-theme="light"] .theme-toggle .sun { opacity: 0; transform: rotate(-90deg) scale(0.6); }

.nav-mobile {
  display: grid; grid-template-rows: 0fr; background: var(--bg);
  transition: grid-template-rows var(--mid) var(--ease);
}
.nav-mobile > ul { overflow: hidden; padding: 0 24px; }
.nav-mobile.is-open { grid-template-rows: 1fr; border-bottom: 1px solid var(--line); }
.nav-mobile.is-open > ul { padding-bottom: 16px; }
.nav-mobile a { display: block; padding: 12px 0; font-size: 18px; text-decoration: none; color: var(--fg); border-top: 1px solid var(--line); }
@media (min-width: 860px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle, .nav-mobile { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding: 112px 0 64px; position: relative; overflow: clip; }
.hero::before {
  /* faint dot grid, the "canvas" the work is drawn on */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(var(--line-strong) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
}
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) {
  .hero { padding: 144px 0 80px; }
  .hero-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.8fr); gap: 64px; }
}
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 400 13px/1.4 var(--mono); color: var(--fg-2); margin-bottom: 24px; }
.dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }

.hero-headline {
  font: 400 clamp(40px, 6.4vw, 80px)/1.02 var(--display);
  letter-spacing: -0.02em; color: var(--fg); max-width: 15ch;
}
.rotator { display: grid; margin-top: 4px; color: var(--accent-text); }
.rotator-word {
  grid-area: 1 / 1;
  opacity: 0; transform: translateY(0.4em); filter: blur(6px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease), filter 600ms var(--ease);
}
.rotator-word .u {
  /* the signature: an underline that draws in under the active phrase, line by line */
  background: linear-gradient(var(--accent), var(--accent)) 0 96% / 0% 0.07em no-repeat;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-size 800ms var(--ease) 250ms;
}
.rotator-word.is-active .u { background-size: 100% 0.07em; }
.rotator-word.is-active { opacity: 1; transform: none; filter: none; }
.rotator-word.is-out { opacity: 0; transform: translateY(-0.4em); filter: blur(6px); }

.hero-sub { margin-top: 24px; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; color: var(--fg-2); max-width: 36rem; }
.hero-cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

.portrait { margin: 0; position: relative; max-width: 420px; justify-self: center; width: 100%; }
.portrait-frame {
  position: relative; border-radius: var(--r-panel); overflow: hidden; aspect-ratio: 4 / 5;
  background: var(--band); border: 1px solid var(--line);
}
.portrait-frame::after {
  /* ocean / slate block peeking behind, the 30% support colour */
  content: ""; position: absolute; inset: auto 0 0 0; height: 38%;
  background: linear-gradient(to top, color-mix(in srgb, var(--band) 70%, transparent), transparent);
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.portrait::before {
  content: ""; position: absolute; z-index: -1; inset: 24px -16px -16px 24px;
  border-radius: var(--r-panel); background: var(--band);
}
.portrait-tag {
  position: absolute; left: -16px; bottom: 32px; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--float);
}
.portrait-tag svg { width: 36px; height: 25px; color: var(--accent-text); padding: 0; }
.portrait-tag span { display: grid; gap: 2px; }
.portrait-tag b { font-weight: 600; font-size: 14px; }
.portrait-tag small { font-size: 13px; color: var(--muted); }
@media (max-width: 480px) { .portrait-tag { left: 12px; } }

/* proof cards: the 30% support band */
.proof { margin-top: 64px; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .proof { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 80px; } }
.proof-card {
  position: relative; padding: 20px; border-radius: var(--r-card); background: var(--band); color: var(--band-fg);
  border: 1px solid var(--band-line); overflow: hidden;
}
.proof-card::before { content: ""; position: absolute; left: 20px; top: 0; width: 24px; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); }
.proof-card dt { font: 400 13px/1.4 var(--mono); color: var(--band-fg-2); }
.proof-card dd { margin-top: 12px; font: 400 clamp(36px, 4vw, 48px)/1 var(--display); font-variant-numeric: tabular-nums; }
.proof-card p { margin-top: 8px; font-size: 14px; line-height: 1.45; color: var(--band-fg-2); }
.proof-note { margin-top: 12px; font: 400 12px/1.4 var(--mono); color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 80px 0; border-top: 1px solid var(--line); }
@media (min-width: 960px) { .section { padding: 112px 0; } }
.section-head { margin-bottom: 48px; }

/* ---------- About tabs ---------- */
.tab-list {
  position: relative; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  border-bottom: 1px solid var(--line); margin-bottom: 40px;
}
.tab-list::-webkit-scrollbar { display: none; }
.tab-list [role="tab"] {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 16px; background: none; border: 0; cursor: pointer;
  font-size: 15px; font-weight: 500; color: var(--muted);
  transition: color var(--fast) var(--ease);
}
.tab-list [role="tab"][aria-selected="true"], .tab-list [role="tab"]:hover { color: var(--fg); }
.tab-ink, .seg-ink {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--accent);
  transition: transform 420ms var(--ease), width 420ms var(--ease);
}
.count-tag { font: 400 12px/1 var(--mono); padding: 3px 6px; border-radius: 4px; background: var(--raised); color: var(--fg-2); }
.tab-panel { animation: panel-in 420ms var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } }

.mission { display: grid; gap: 32px; }
@media (min-width: 900px) { .mission { grid-template-columns: 1fr 1fr; gap: 64px; } }
.mission-lead { font: 400 clamp(24px, 2.6vw, 32px)/1.3 var(--display); color: var(--fg); }

.skill-groups { display: grid; gap: 32px; }
@media (min-width: 760px) { .skill-groups { grid-template-columns: 1fr 1fr; gap: 48px; } }
.skill-groups h3 { font-size: 15px; font-weight: 500; color: var(--muted); margin-bottom: 12px; }
.skill-list { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.skill-list li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; padding-right: 12px; }

.timeline { position: relative; display: grid; gap: 0; }
.timeline li {
  position: relative; display: grid; gap: 4px; padding: 16px 0 16px 28px; border-bottom: 1px solid var(--line);
}
@media (min-width: 760px) { .timeline li { grid-template-columns: 200px 1fr; gap: 24px; } }
.timeline li::before {
  content: ""; position: absolute; left: 4px; top: 24px; width: 9px; height: 9px; border-radius: 50%;
  border: 1.5px solid var(--muted); background: var(--bg);
}
.timeline li.now::before { border-color: var(--accent); background: var(--accent); }
.timeline .when { font: 400 13px/1.6 var(--mono); color: var(--muted); }
.timeline b { font-weight: 500; display: block; }
.timeline div span { color: var(--fg-2); font-size: 15px; }
.edu { margin-top: 24px; color: var(--fg-2); font-size: 15px; }

.certs { display: grid; gap: 12px; }
@media (min-width: 760px) { .certs { grid-template-columns: 1fr 1fr; } }
.certs li { padding: 20px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 4px; }
.certs b { font-weight: 500; }
.certs span { font-size: 14px; color: var(--muted); }

/* ---------- Work: DukaPay case ---------- */
.case {
  padding: 24px; border-radius: var(--r-panel); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
@media (min-width: 960px) { .case { padding: 40px; } }
.case-head h3, .card h3, .brand-item h3 { font: 400 clamp(26px, 3vw, 36px)/1.15 var(--display); margin-top: 8px; color: var(--fg); }

.pdc { margin-top: 32px; display: grid; gap: 24px; }
@media (min-width: 960px) { .pdc { grid-template-columns: 1fr 1.2fr 1fr; gap: 32px; } }
.pdc h4, .pdc-sm dt { font: 500 12px/1 var(--mono); color: var(--muted); margin-bottom: 8px; }
.pdc p { color: var(--fg-2); font-size: 15px; }
.pdc .changed { padding: 20px; border-radius: var(--r-card); background: var(--band); color: var(--band-fg); }
.pdc .changed h4 { color: var(--band-fg-2); }
.pdc .changed p { color: var(--band-fg-2); }
.big { display: block; font: 400 48px/1 var(--display); color: var(--band-fg); margin-bottom: 8px; font-variant-numeric: tabular-nums; }

.stages { margin-top: 40px; }
.stage-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.seg { position: relative; display: inline-flex; padding: 4px; border-radius: 12px; background: var(--raised); border: 1px solid var(--line); }
.seg [role="tab"] {
  position: relative; z-index: 1; padding: 8px 16px; border: 0; border-radius: 8px; background: none; cursor: pointer;
  font-size: 14px; font-weight: 500; color: var(--muted); transition: color var(--fast) var(--ease);
}
.seg [role="tab"][aria-selected="true"] { color: var(--fg); }
.seg .seg-ink { top: 4px; bottom: 4px; height: auto; border-radius: 8px; background: var(--surface); box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.stage-hint { display: inline-flex; align-items: center; gap: 8px; font: 400 13px/1 var(--mono); color: var(--muted); }
.stage-hint svg { width: 16px; height: 16px; }

.compare {
  --pos: 50%;
  position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 1440 / 900;
  border: 1px solid var(--line-strong); background: var(--bg-deep); touch-action: pan-y;
  user-select: none; -webkit-user-select: none;
}
.compare-tall { aspect-ratio: 1440 / 1000; }
.compare-final, .compare-wire { position: absolute; inset: 0; }
.compare img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.compare-wire { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
[data-theme="dark"] .only-light, [data-theme="light"] .only-dark { display: none; }
.compare-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px;
  background: var(--accent); pointer-events: none;
}
.compare-handle span {
  position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  transition: transform var(--mid) var(--ease);
}
.compare.is-dragging .compare-handle span { transform: scale(1.1); }
.compare input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize;
}
.compare input[type="range"]:focus-visible ~ .compare-handle span, .compare:has(input:focus-visible) .compare-handle span { outline: 2px solid var(--fg); outline-offset: 3px; }
.compare-tag {
  position: absolute; top: 12px; padding: 4px 8px; border-radius: 6px; pointer-events: none;
  font: 500 12px/1.4 var(--mono); background: rgba(11, 18, 26, 0.72); color: #fff;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: opacity var(--mid) var(--ease);
}
.compare-tag.left { left: 12px; }
.compare-tag.right { right: 12px; }
.compare[data-near="left"] .compare-tag.left, .compare[data-near="right"] .compare-tag.right { opacity: 0; }
.app-pair { display: grid; gap: 16px; }
@media (min-width: 760px) { .app-pair { grid-template-columns: 1fr 1fr; } }
.app-pair .zoom { aspect-ratio: 16 / 9; }
.app-pair .zoom img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.stage-hint.is-off { visibility: hidden; }
.stage-note { margin-top: 12px; font-size: 14px; color: var(--muted); max-width: 72ch; }

.case-strip { margin-top: 32px; display: grid; gap: 16px; }
@media (min-width: 760px) { .case-strip { grid-template-columns: 1.6fr 1fr 1fr; } }
.shot { margin: 0; }
.zoom {
  display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: var(--bg-deep); cursor: zoom-in; transition: border-color var(--fast) var(--ease);
}
.zoom img { transition: transform var(--slow) var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .zoom:hover { border-color: var(--accent-text); }
  .zoom:hover img { transform: scale(1.015); }
}
.case-strip .zoom { aspect-ratio: 16 / 10; }
.case-strip .zoom img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.shot figcaption { margin-top: 8px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.stage-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.stage-dot.design { background: var(--accent-text); }
.stage-dot.built { background: var(--accent); }

.links { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.links a {
  display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; text-decoration: none; color: var(--accent-text);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: background-size var(--mid) var(--ease);
}
.links a svg { width: 14px; height: 14px; }
.links a:hover { background-size: 100% 1.5px; }

/* ---------- Work: cards ---------- */
.cards { margin-top: 24px; display: grid; gap: 24px; }
@media (min-width: 960px) { .cards { grid-template-columns: 1fr 1fr; } }
.card { padding: 24px; border-radius: var(--r-panel); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; }
@media (min-width: 960px) { .card { padding: 32px; } }
.card-media { margin-bottom: 24px; }
.card-media.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.card-media .zoom { aspect-ratio: 4 / 3; }
.card-media .zoom img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.pdc-sm { margin-top: 16px; display: grid; gap: 16px; }
.pdc-sm dd { color: var(--fg-2); font-size: 15px; }
.changed-line {
  margin-top: 20px; padding: 12px 16px; border-radius: var(--r); background: var(--band); color: var(--band-fg-2); font-size: 15px;
}
.changed-line b { color: var(--band-fg); font-weight: 600; }
.card .links { margin-top: auto; padding-top: 24px; }

.fixes { margin-top: 20px; border-top: 1px solid var(--line); }
.fixes li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--fg-2); }
.fixes b { color: var(--fg); font-weight: 500; }
.fixes a { font: 400 13px/1.6 var(--mono); color: var(--accent-text); text-decoration: none; white-space: nowrap; }
.fixes a:hover { text-decoration: underline; }

/* ---------- Brand ---------- */
.brand-grid { display: grid; gap: 32px 24px; }
@media (min-width: 760px) { .brand-grid { grid-template-columns: repeat(12, 1fr); } }
@media (min-width: 760px) {
  .brand-item.wide { grid-column: span 8; }
  .brand-item.tall { grid-column: span 4; grid-row: span 2; }
  .brand-item:not(.wide):not(.tall) { grid-column: span 4; }
}
.brand-item .zoom { margin-bottom: 16px; }
.brand-item.wide .zoom { aspect-ratio: 1200 / 524; }
.brand-item:not(.wide):not(.tall) .zoom { aspect-ratio: 4 / 3; }
.brand-item:not(.wide):not(.tall) .zoom img { width: 100%; height: 100%; object-fit: cover; }
.brand-item.tall .zoom { aspect-ratio: 3 / 4; }
.brand-item.tall .zoom img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.brand-item h3 { font-size: clamp(22px, 2.2vw, 26px); }
.brand-item > p:not(.meta):not(.changed-line) { margin-top: 8px; color: var(--fg-2); font-size: 15px; max-width: 60ch; }

/* ---------- Connect: the support band ---------- */
.connect { background: var(--band); color: var(--band-fg); border-top: 0; }
.connect .label { color: var(--band-fg-2); }
.connect-inner { text-align: left; }
.connect-title { font: 400 clamp(36px, 5.6vw, 72px)/1.04 var(--display); letter-spacing: -0.02em; max-width: 18ch; }
.connect .prose { color: var(--band-fg-2); margin-top: 20px; }
.connect-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.connect .btn-secondary { background: transparent; color: var(--band-fg); border-color: var(--band-line); }
@media (hover: hover) and (pointer: fine) { .connect .btn-secondary:hover { border-color: var(--band-fg); background: var(--band-2); } }
.mail-line { margin-top: 24px; font: 400 14px/1 var(--mono); color: var(--band-fg-2); }

.footer { background: var(--band); color: var(--band-fg-2); border-top: 1px solid var(--band-line); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; padding-bottom: 24px; font-size: 13px; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; }
.footer .brand-mark { color: var(--band-fg); width: 24px; height: 17px; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 40;
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--surface); color: var(--fg); border: 1px solid var(--line-strong); box-shadow: var(--float);
  opacity: 0; transform: translateY(16px) scale(0.9); pointer-events: none;
  transition: opacity var(--mid) var(--ease), transform var(--mid) var(--ease), background-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.to-top.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.to-top:active { transform: scale(0.94); }
.to-top > svg { grid-area: 1 / 1; }
.to-top-arrow { width: 18px; height: 18px; transition: transform var(--mid) var(--ease); }
.to-top-ring { width: 48px; height: 48px; transform: rotate(-90deg); }
.to-top-ring circle {
  fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--progress, 0) * 100);
}
@media (hover: hover) and (pointer: fine) {
  .to-top:hover { background: var(--accent); color: var(--on-accent); }
  .to-top:hover .to-top-arrow { transform: translateY(-2px); }
}
@media (max-width: 480px) { .to-top { right: 16px; bottom: 16px; } }
.footer-inner { padding-right: 88px; }
@media (max-width: 480px) { .footer-inner { padding-right: 24px; padding-bottom: 80px; } }

/* ---------- Lightbox ---------- */
.lightbox {
  width: min(1400px, 94vw); max-height: 92vh; padding: 0; border: 0; border-radius: 14px; background: transparent; overflow: visible;
}
.lightbox::backdrop { background: rgba(8, 12, 16, 0.82); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.lightbox[open] { animation: lb-in 320ms var(--ease); }
@keyframes lb-in { from { opacity: 0; transform: scale(0.97); } }
.lightbox img { max-height: 88vh; width: auto; margin: 0 auto; border-radius: 12px; }
.lightbox-close { position: absolute; top: -48px; right: 0; color: #fff; border-color: rgba(255,255,255,0.3); background: rgba(0,0,0,0.3); }

/* ---------- Motion: entrance and reveal ---------- */
.js .enter { opacity: 0; transform: translateY(12px); animation: enter var(--slow) var(--ease) forwards; animation-delay: var(--d, 0ms); }
@keyframes enter { to { opacity: 1; transform: none; } }
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 640ms var(--ease), transform 640ms var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* theme switch: circular reveal from the toggle (View Transitions) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { animation: theme-reveal 620ms var(--ease); }
@keyframes theme-reveal { from { clip-path: circle(0 at var(--vt-x, 90%) var(--vt-y, 32px)); } to { clip-path: circle(var(--vt-r, 150vmax) at var(--vt-x, 90%) var(--vt-y, 32px)); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .js .enter, .js .reveal { opacity: 1; transform: none; }
}
