:root {
  --paper: #f4f2ed;
  --paper-2: #ebe8e1;
  --card: #fbfaf7;
  --ink: #161513;
  --body: #4f4b45;
  --muted: #8a857c;
  --line: #dcd8cf;
  --accent: #7d1d2a;
  --accent-soft: #f1e3e3;
  --ink-hover: #2c2a26;
  --line-strong: #c4bfb4;
  --tint: rgba(251, 250, 247, 0.55);
  --sheet: rgba(251, 250, 247, 0.96);
  --hover: rgba(22, 21, 19, 0.06);
  --edge: rgba(22, 21, 19, 0.08);
  --logo-bg: #fff;
  --shine: rgba(255, 255, 255, 0.85);
  --max: 1180px;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --paper: #141311; --paper-2: #1d1b18; --card: #1a1916; --ink: #f0ece4; --body: #bdb7ad; --muted: #857f75;
  --line: #2e2b27; --accent: #d98a92; --accent-soft: #3a1f23; --ink-hover: #dcd7ce; --line-strong: #4a4640;
  --tint: rgba(28, 26, 23, 0.6); --sheet: rgba(26, 25, 22, 0.97); --hover: rgba(240, 236, 228, 0.07);
  --edge: rgba(240, 236, 228, 0.1); --logo-bg: #fff; --shine: rgba(255, 255, 255, 0.12);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #141311; --paper-2: #1d1b18; --card: #1a1916; --ink: #f0ece4; --body: #bdb7ad; --muted: #857f75;
    --line: #2e2b27; --accent: #d98a92; --accent-soft: #3a1f23; --ink-hover: #dcd7ce; --line-strong: #4a4640;
    --tint: rgba(28, 26, 23, 0.6); --sheet: rgba(26, 25, 22, 0.97); --hover: rgba(240, 236, 228, 0.07);
    --edge: rgba(240, 236, 228, 0.1); --logo-bg: #fff; --shine: rgba(255, 255, 255, 0.12);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; color: var(--body); }
h1, h2, h3 { margin: 0; font-weight: 400; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--max) + 48px); margin: 0 auto; padding: 0 24px; }
@media (max-width: 560px) { .wrap { padding: 0 16px; } }

.label { font: 500 12px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.serif { font-family: var(--serif); }
em { font-family: var(--serif); font-style: italic; }

/* ---------- header: liquid glass bar ---------- */
/* Layers: a blurred + SVG-distorted backdrop, a light tint, an inner shine, then the content on top. */
.top { position: sticky; top: 0; z-index: 30; padding: 12px 24px 0; }
@media (max-width: 560px) { .top { padding: 10px 12px 0; } }
.bar { position: relative; max-width: var(--max); margin: 0 auto; height: 60px; display: flex; align-items: center; justify-content: flex-start; gap: 10px; padding: 0 10px 0 12px; border-radius: 18px; box-shadow: 0 8px 28px rgba(40, 30, 20, 0.08), 0 0 0 1px var(--edge); }
.glass { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; z-index: 0; pointer-events: none; }
.glass-fx { position: absolute; inset: 0; -webkit-backdrop-filter: blur(5px) saturate(1.35); backdrop-filter: blur(5px) saturate(1.35); filter: url(#lg-distort); }
.glass-tint { position: absolute; inset: 0; background: var(--tint); }
.glass-shine { position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 1.5px 1.5px 1px var(--shine), inset -1px -1px 1px rgba(255, 255, 255, 0.5); }
.bar > .brand, .bar > .menu-btn, .bar > .theme-btn { position: relative; z-index: 1; }
.bar > .brand { margin-right: auto; }
.theme-btn { width: 36px; height: 36px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.theme-btn:hover { background: var(--hover); }
.theme-btn svg { width: 17px; height: 17px; }
.theme-btn .i-moon { display: none; }
:root[data-theme="dark"] .theme-btn .i-moon { display: block; }
:root[data-theme="dark"] .theme-btn .i-sun { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-btn .i-moon { display: block; } :root:not([data-theme="light"]) .theme-btn .i-sun { display: none; } }
@media (min-width: 761px) { .theme-btn { order: 3; margin-left: 4px; } }
.bar > .links { z-index: 2; }
@media (min-width: 761px) { .bar > .links { position: relative; } }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.brand img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.links { display: flex; align-items: center; gap: 2px; }
.links a { text-decoration: none; font-size: 14.5px; color: var(--body); padding: 8px 12px; border-radius: 11px; transition: background .2s, color .2s, padding .3s; }
.links a:hover, .links a[aria-current="page"] { color: var(--ink); background: var(--hover); }
.links .cta { background: var(--ink); color: var(--paper); margin-left: 6px; padding: 9px 16px; }
.links .cta:hover { background: var(--ink-hover); color: var(--paper); }
.menu-btn { display: none; width: 36px; height: 36px; flex-shrink: 0; align-items: center; justify-content: center; border: 0; background: var(--ink); color: var(--paper); border-radius: 50%; cursor: pointer; }
.burger { position: relative; width: 16px; height: 10px; }
.burger i { position: absolute; left: 0; right: 0; height: 1.8px; border-radius: 2px; background: currentColor; transition: transform .25s ease, top .25s ease; }
.burger i:first-child { top: 0; }
.burger i:last-child { top: 8px; }
.menu-btn[aria-expanded="true"] .burger i:first-child { top: 4px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .burger i:last-child { top: 4px; transform: rotate(-45deg); }
@media (max-width: 760px) {
  .menu-btn { display: inline-flex; }
  .links { display: none; position: absolute; top: calc(100% + 10px); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; background: var(--sheet); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 20px 50px rgba(40, 30, 20, 0.16); padding: 10px; animation: sheetIn .22s ease; }
  @keyframes sheetIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
  .links.open { display: flex; }
  .links a { padding: 14px 16px; font-family: var(--serif); font-size: 26px; line-height: 1.1; color: var(--ink); border-radius: 12px; }
  .links a[aria-current="page"] { background: var(--hover); }
  .links .cta { margin: 8px 0 0; text-align: center; font-family: var(--sans); font-size: 16px; padding: 14px; }
}

/* heading words fade in from a blur, one after another */
.reveal .w { display: inline-block; animation: wordIn .9s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i) * 65ms + 120ms); }
@keyframes wordIn { from { opacity: 0; filter: blur(12px); transform: translateY(12px); } to { opacity: 1; filter: blur(0); transform: none; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--ink); font: 500 15px var(--sans); text-decoration: none; cursor: pointer; background: transparent; color: var(--ink); white-space: nowrap; }
.btn:hover { background: var(--paper-2); }
.btn.solid { background: var(--ink); color: var(--paper); }
.btn.solid:hover { background: var(--ink-hover); }
.btn svg { width: 16px; height: 16px; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 40px 0 24px; align-items: center; }
@media (min-width: 960px) { .hero { grid-template-columns: 1.02fr 1fr; gap: 24px; padding: 64px 0 40px; min-height: min(760px, calc(100vh - 68px)); } }
.hero h1 { font-family: var(--serif); font-size: clamp(44px, 8.4vw, 84px); line-height: 0.98; letter-spacing: -0.02em; margin-top: 18px; }
.hero h1 em { color: var(--accent); }
.hero .lede { margin-top: 24px; font-size: clamp(16.5px, 1.6vw, 18.5px); max-width: 48ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.avail { display: inline-flex; align-items: center; gap: 10px; }
.avail i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

.stage { position: relative; height: clamp(400px, 92vw, 460px); }
@media (min-width: 960px) { .stage { height: 620px; } }
.stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; touch-action: pan-y; cursor: grab; outline: none; }
.stage canvas.dragging { cursor: grabbing; }
.stage .fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.stage .fallback img { max-height: 100%; width: auto; border-radius: 18px; }
.stage.ready .fallback { display: none; }
.stage-caption { position: absolute; left: 0; right: 0; bottom: 6px; display: flex; justify-content: center; pointer-events: none; }
.stage-caption span { pointer-events: auto; display: inline-flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 7px 8px 7px 16px; font-size: 14px; color: var(--ink); text-decoration: none; }
.stage-caption b { font-weight: 600; }
.stage-caption small { color: var(--muted); font-size: 13px; }
.stage-caption a { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--paper); }
.stage-caption a svg { width: 14px; height: 14px; }
.stage-hint { position: absolute; top: 4px; right: 0; }
@media (max-width: 959px) { .stage-hint { left: 0; right: auto; } }

/* ---------- section heads ---------- */
.sec { padding: 72px 0; border-top: 1px solid var(--line); }
@media (max-width: 560px) { .sec { padding: 56px 0; } }
.sec-head { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 40px; }
@media (min-width: 860px) { .sec-head { grid-template-columns: 220px 1fr; gap: 32px; } }
.sec-head h2 { font-family: var(--serif); font-size: clamp(36px, 5.6vw, 58px); line-height: 1; letter-spacing: -0.015em; }
.sec-head p { margin-top: 12px; max-width: 52ch; }

/* ---------- work rows ---------- */
.rows { display: grid; gap: 20px; }
.row { display: grid; grid-template-columns: 1fr; gap: 22px; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 14px; transition: border-color .2s; }
.row:hover { border-color: var(--line-strong); }
@media (min-width: 860px) { .row { grid-template-columns: 1fr 1.25fr; gap: 36px; padding: 18px 18px 18px 30px; align-items: center; } }
.row .txt { padding: 6px 6px 8px; }
@media (min-width: 860px) { .row .txt { padding: 12px 0; } }
.row .num { display: flex; gap: 14px; }
.row h3 { font-family: var(--serif); font-size: clamp(32px, 4.2vw, 44px); line-height: 1.02; margin-top: 14px; }
.row p { margin-top: 12px; max-width: 42ch; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.tags span { font: 400 12.5px var(--mono); color: var(--body); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.row .open { display: inline-flex; align-items: center; gap: 6px; margin-top: 22px; font-weight: 500; font-size: 15px; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.row .open svg { width: 14px; height: 14px; transition: transform .2s; }
.row:hover .open svg { transform: translateX(3px); }
.tilt-wrap { perspective: 1100px; }
.tilt { border-radius: 16px; overflow: hidden; background: var(--paper-2); transform-style: preserve-3d; transition: transform .35s ease; will-change: transform; }
.tilt img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.all { display: flex; justify-content: center; margin-top: 36px; }

/* ---------- about: small photo beside the heading, text under ---------- */
.about { display: grid; grid-template-columns: 104px minmax(0, 1fr); grid-template-areas: "photo head" "body body"; gap: 22px 18px; align-items: center; }
@media (min-width: 860px) { .about { grid-template-columns: 280px minmax(0, 1fr); grid-template-areas: "photo head" "photo body"; gap: 18px 56px; align-items: start; } }
.portrait { grid-area: photo; margin: 0; border-radius: 18px; overflow: hidden; background: var(--paper-2); }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 22%; }
@media (max-width: 859px) { .portrait { border-radius: 16px; } .portrait img { aspect-ratio: 1 / 1; object-position: center 12%; } }
.about-head { grid-area: head; }
@media (min-width: 860px) { .about-head { align-self: end; } }
.about-head h2 { font-family: var(--serif); font-size: clamp(34px, 5.4vw, 56px); line-height: 1; letter-spacing: -0.015em; margin-top: 10px; }
.about-sub { margin-top: 10px; font-size: 14.5px; color: var(--muted); }
.about-body { grid-area: body; min-width: 0; }
.about-body .prose p { font-size: 17.5px; line-height: 1.65; }
.about-body .prose p + p { margin-top: 16px; }
.about-body .prose a { color: var(--accent); text-underline-offset: 3px; }
.facts { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--line); }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts li span:first-child { color: var(--muted); }
.facts li span:last-child { text-align: right; }

/* ---------- experience ---------- */
.xp { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.xp li { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 20px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .xp li { grid-template-columns: 180px 1fr auto; gap: 24px; align-items: baseline; } }
.xp .role { font-size: 17px; color: var(--ink); }
.xp .org { color: var(--body); }
.xp a.org { color: var(--accent); text-underline-offset: 3px; }
.xp .kind { font-size: 14px; color: var(--muted); }

/* ---------- services ---------- */
.services { display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 860px) { .services { grid-template-columns: repeat(3, 1fr); } }
.services div { padding: 26px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 860px) { .services div { padding: 28px 28px 28px 0; border-bottom: 0; } .services div + div { border-left: 1px solid var(--line); padding-left: 28px; } }
.services h3 { font-family: var(--serif); font-size: 30px; line-height: 1.05; margin-top: 12px; }
.services p { margin-top: 10px; }
.stack { margin-top: 32px; font: 400 13.5px/2 var(--mono); color: var(--muted); }

/* ---------- contact ---------- */
.contact { text-align: left; }
.contact h2 { font-family: var(--serif); font-size: clamp(48px, 9vw, 104px); line-height: 0.95; letter-spacing: -0.02em; }
.contact h2 em { color: var(--accent); }
.contact .mail { display: inline-block; margin-top: 28px; font-size: clamp(20px, 3.4vw, 32px); color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--accent); overflow-wrap: anywhere; }
.contact .mail:hover { color: var(--accent); }
.contact p { margin-top: 18px; max-width: 52ch; }
.contact .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 14px; color: var(--muted); }
footer a { color: var(--body); text-decoration: none; margin-left: 16px; }
footer a:first-child { margin-left: 0; }
footer a:hover { color: var(--ink); }

/* ---------- projects index ---------- */
.page-head { padding: 56px 0 40px; }
.page-head h1 { font-family: var(--serif); font-size: clamp(52px, 10vw, 110px); line-height: 0.95; letter-spacing: -0.02em; }
.page-head p { margin-top: 18px; font-size: 18px; max-width: 54ch; }
.small-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.small-list li { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .small-list li { grid-template-columns: 260px 1fr; gap: 24px; } }
.small-list b { font-weight: 500; }

/* ---------- case study ---------- */
.crumb { display: inline-flex; align-items: center; gap: 6px; margin-top: 32px; text-decoration: none; font-size: 14px; color: var(--muted); }
.crumb:hover { color: var(--ink); }
.crumb svg { width: 15px; height: 15px; }
.case-head { padding: 22px 0 36px; }
.case-head h1 { font-family: var(--serif); font-size: clamp(52px, 10vw, 112px); line-height: 0.95; letter-spacing: -0.02em; }
.case-head .lede { margin-top: 18px; font-size: clamp(17px, 2vw, 21px); max-width: 44ch; color: var(--body); }
.meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); margin-top: 36px; }
@media (min-width: 860px) { .meta { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.meta div { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.meta dd { margin: 6px 0 0; font-size: 15.5px; overflow-wrap: anywhere; }
.meta dd a { color: var(--accent); text-underline-offset: 3px; }
.meta dt { margin: 0; }
.cover { border-radius: 24px; overflow: hidden; background: var(--paper-2); }
.cover img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.split { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 48px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 860px) { .split { grid-template-columns: 220px minmax(0, 1fr); gap: 32px; } .split > .label { position: sticky; top: 92px; align-self: start; } }
.split .body { max-width: 66ch; }
.split .body p { font-size: 17.5px; line-height: 1.65; }
.split .body p + p { margin-top: 16px; }
.points { list-style: none; margin: 0; padding: 0; counter-reset: pt; }
.points li { counter-increment: pt; display: grid; grid-template-columns: 38px 1fr; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--body); font-size: 16.5px; }
.points li:first-child { padding-top: 0; }
.points li::before { content: counter(pt, decimal-leading-zero); font: 400 13px/1.9 var(--mono); color: var(--accent); }
.points li:last-child { border-bottom: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { font: 400 13.5px var(--mono); padding: 5px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink); }

.shots { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 0 18px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.shots figure { margin: 0; flex: 0 0 auto; width: min(62vw, 250px); scroll-snap-align: start; }
@media (min-width: 860px) { .shots figure { width: 250px; } }
.shots img { width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line); background: var(--card); }
.shots figcaption { margin-top: 10px; font-size: 13.5px; color: var(--muted); }

.next { display: grid; grid-template-columns: 1fr; gap: 20px; margin: 56px 0 24px; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 14px; }
@media (min-width: 760px) { .next { grid-template-columns: 1fr 1fr; align-items: center; padding: 18px 18px 18px 30px; } }
.next:hover { border-color: var(--line-strong); }
.next h2 { font-family: var(--serif); font-size: clamp(36px, 5vw, 52px); line-height: 1; margin-top: 12px; }
.next .txt { padding: 6px; }
.next img { border-radius: 16px; aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tilt, .row .open svg { transition: none; }
}

/* ---------- logos ---------- */
.ptitle { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.ptitle h3 { margin-top: 0; }
.plogo { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex-shrink: 0; box-shadow: 0 0 0 1px var(--edge); background: var(--logo-bg); }
.case-brand { display: flex; align-items: center; gap: 14px; }
.case-brand img { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; box-shadow: 0 0 0 1px var(--edge); background: var(--logo-bg); }
.xp-main { display: flex; align-items: center; gap: 12px; }
.xlogo { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; flex-shrink: 0; box-shadow: 0 0 0 1px var(--edge); background: var(--logo-bg); }

/* ---------- skills ---------- */
.skills { display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .skills { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; } }
@media (min-width: 1100px) { .skills { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.skill-group { padding: 22px 0; border-bottom: 1px solid var(--line); }
.skill-group ul { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.skill-group li { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px 5px 9px; }
.skill-group li img { width: 15px; height: 15px; opacity: 0.85; }
.skill-group li i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: 0.7; margin: 0 3px; }

/* ---------- wide frames in the screens row ---------- */
.shots figure.wide { width: min(86vw, 480px); }
@media (min-width: 860px) { .shots figure.wide { width: 480px; } }

@media (prefers-reduced-motion: reduce) { .reveal .w { animation: none; } }

/* ---------- iPhone frame (sizes scale with the phone's own width) ---------- */
.iphone { container-type: inline-size; position: relative; width: 100%; }
.iphone .frame { position: relative; padding: 2.8cqw; border-radius: 15.5cqw; background: #1c1c1e; box-shadow: inset 0 0 0 0.6cqw #5a5a5e, 0 0 0 1px #a1a1a6, 0 14px 34px rgba(40, 30, 20, 0.18); }
.iphone .screen { position: relative; border-radius: 12.6cqw; overflow: hidden; background: var(--sb, #111); }
.iphone .sb { position: relative; height: 12cqw; display: flex; align-items: center; justify-content: space-between; padding: 0 7.5cqw 0 9cqw; color: var(--fg, #fff); font: 600 4.3cqw/1 -apple-system, "SF Pro Text", "Geist", sans-serif; letter-spacing: -0.01em; }
.iphone .sb .ind { display: inline-flex; }
.iphone .sb svg { width: 19cqw; height: auto; display: block; }
.iphone .island { position: absolute; left: 50%; top: 3cqw; transform: translateX(-50%); width: 31cqw; height: 9cqw; border-radius: 6cqw; background: #000; }
.iphone .island.solo { z-index: 2; top: 2.6cqw; }
.iphone img { display: block; width: 100%; height: auto; }
.shots.phones figure { width: min(58vw, 240px); }
@media (min-width: 860px) { .shots.phones figure { width: 240px; } }
.shots.phones figure .iphone img { border: 0; border-radius: 0; }

/* ---------- social links ---------- */
.socials { margin-top: 30px; }
.social-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.social-row a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); text-decoration: none; font-size: 14.5px; }
.social-row a:hover { border-color: var(--line-strong); }

.iphone.video .screen { aspect-ratio: 9 / 19.5; display: flex; flex-direction: column; }
.iphone.video .sb { position: absolute; top: 0; left: 0; right: 0; z-index: 2; }
.iphone .vid { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; background-size: cover; background-position: center; overflow: hidden; }
.iphone .vid::before { content: ""; position: absolute; inset: -30px; background: inherit; filter: blur(22px) brightness(0.5); }
.iphone .vid img { position: relative; width: 100%; height: auto; }
.xnote { display: block; margin-top: 3px; font-size: 14px; color: var(--muted); }
