/* ==========================================================================
   Ray Ali — portfolio
   Dark indigo + coral. Glass header, right-hand dock, aurora background.
   ========================================================================== */

/* Theme tokens. Dark is the default; [data-theme="light"] below overrides them.
   site.js sets data-theme before first paint from the saved choice or the OS. */
:root {
  color-scheme: dark;
  --bg: #0e0c1d;
  --ink: #f7f5ff;
  --soft-ink: #ddd8ec;
  --muted: #bab5cc;
  --dim: #948ead;
  --placeholder: #9d97ae;
  --accent: #ff655e;
  --accent-hover: #ff847d;
  --accent-ink: #ff655e;          /* accent used as text */
  --on-accent: #1b1020;
  --violet: #9b7bff;
  --line: #ffffff14;
  --line-2: #ffffff26;
  --line-3: #ffffff45;
  --ring: #ffffff1c;
  --ring-faint: #ffffff0d;
  --outline-num: #ffffff40;
  --glass: #ffffff08;
  --glass-2: #ffffff10;
  --glass-3: #ffffff14;
  --grad: linear-gradient(100deg, #ff655e 0%, #ff8b72 40%, #c98bff 100%);
  --card: linear-gradient(160deg, #201b37, #151329);
  --header-bg: #0e0c1dcc;
  --dock-bg: #1f1b33d9;
  --dock-ink: #d7d3e6;
  --tooltip-bg: #2a2542;
  --tooltip-ink: #f7f5ff;
  --chip-bg: #1c1832b8;
  --pill-bg: #17132bee;
  --cover-bg: radial-gradient(circle at 30% 15%, #2d2150, #0f0d20 72%);
  --cover-bg-alt: radial-gradient(circle at 70% 15%, #3a1f2e, #120d1c 72%);
  --window-bar: #15132a;
  --window-bar-line: #ffffff10;
  --input-bg: #0e0c1d99;
  --input-bg-focus: #0e0c1dcc;
  --cta-bg: #171429;
  --shadow: #000c;
  --shadow-soft: #0006;
  --grid-line: #ffffff07;
  --portrait-glow: radial-gradient(ellipse at 50% 55%, #b0304a55, #6d3cc022 45%, transparent 70%);
  --particle-line: 190, 170, 255;
  --particle-line-alpha: .14;
  --particle-dot: rgba(230, 225, 255, .55);
  --particle-accent: rgba(255, 101, 94, .8);
  --radius: 16px;
  --shell: 1320px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --heading: 'Manrope', system-ui, sans-serif;
}

/* Light theme: warm off-white, deep indigo ink. Accent-as-text and the gradient
   are darkened so text keeps at least 4.5:1 (3:1 for large headings) on white. */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #faf8fd;
  --ink: #16132a;
  --soft-ink: #3b3552;
  --muted: #555070;
  --dim: #6a6484;
  --placeholder: #6f6987;
  --accent-ink: #c73a33;
  --line: #16132a14;
  --line-2: #16132a24;
  --line-3: #16132a40;
  --ring: #16132a1f;
  --ring-faint: #16132a12;
  --outline-num: #16132a33;
  --glass: #16132a06;
  --glass-2: #16132a0b;
  --glass-3: #16132a10;
  --grad: linear-gradient(100deg, #e5483f 0%, #e0527a 45%, #8b4fe0 100%);
  --card: linear-gradient(160deg, #ffffff, #f5f2fb);
  --header-bg: #faf8fdd9;
  --dock-bg: #ffffffe0;
  --dock-ink: #4a4462;
  --tooltip-bg: #1d1933;
  --tooltip-ink: #ffffff;
  --chip-bg: #ffffffd9;
  --pill-bg: #fffffff2;
  --cover-bg: radial-gradient(circle at 30% 15%, #f3edff, #e3dcf2 72%);
  --cover-bg-alt: radial-gradient(circle at 70% 15%, #ffede9, #ece2ee 72%);
  --window-bar: #f1eef8;
  --window-bar-line: #16132a14;
  --input-bg: #ffffff;
  --input-bg-focus: #ffffff;
  --cta-bg: #ffffff;
  --shadow: #2a1f5a33;
  --shadow-soft: #2a1f5a1f;
  --grid-line: #16132a09;
  --portrait-glow: radial-gradient(ellipse at 50% 60%, #ff655e40, #9b7bff26 45%, transparent 70%);
  --particle-line: 110, 80, 200;
  --particle-line-alpha: .18;
  --particle-dot: rgba(90, 70, 160, .45);
  --particle-accent: rgba(229, 72, 63, .75);
}

/* --- Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1rem/1.7 'DM Sans', system-ui, sans-serif;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--heading); text-wrap: balance; }
h1 { font-size: clamp(2.8rem, 6vw, 5rem); line-height: 1.05; letter-spacing: -.05em; font-weight: 800; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.12; letter-spacing: -.045em; font-weight: 750; }
h3 { letter-spacing: -.03em; font-weight: 700; }
em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.dot { color: var(--accent-ink); }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; top: -100px; left: 1rem; padding: .8rem 1.2rem; background: var(--accent); color: #1b1020; font-weight: 600; border-radius: 8px; z-index: 100; }
.skip:focus { top: 1rem; }

/* --- Background ---------------------------------------------------------- */
.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ambient span { position: absolute; border-radius: 50%; animation: drift 26s ease-in-out infinite alternate; }
.ambient span:nth-child(1) { width: 60vw; height: 60vw; top: -25vw; left: -15vw; background: radial-gradient(circle, #ff655e24, transparent 62%); }
.ambient span:nth-child(2) { width: 55vw; height: 55vw; top: 15vh; right: -22vw; background: radial-gradient(circle, #7c5cff24, transparent 62%); animation-delay: -9s; }
.ambient span:nth-child(3) { width: 50vw; height: 50vw; bottom: -30vw; left: 25vw; background: radial-gradient(circle, #c2417a1a, transparent 62%); animation-delay: -17s; }
.ambient::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 10%, transparent 75%);
}
@keyframes drift { to { transform: translate3d(6vw, 4vh, 0) scale(1.1); } }

/* --- Layout shell -------------------------------------------------------- */
.site-shell, .header-inner { max-width: var(--shell); margin: 0 auto; padding-inline: var(--gutter); }
@media (min-width: 761px) and (max-width: 1560px) {
  .site-shell, .header-inner { padding-right: calc(var(--gutter) + 64px); }
}

/* --- Header -------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid transparent; transition: background .3s, border-color .3s, backdrop-filter .3s; }
.site-header.is-scrolled { background: var(--header-bg); border-color: var(--line); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 1.5rem; transition: height .3s var(--ease); }
.is-scrolled .header-inner { height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .8rem; }
.brand-mark { width: 42px; height: 42px; flex: none; transition: transform .45s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font: 800 1.3rem/1.1 var(--heading); letter-spacing: -.045em; }
.brand-text small { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin-top: .3rem; }
.status { margin: 0 auto; display: inline-flex; align-items: center; gap: .6rem; padding: .4rem .95rem; border: 1px solid var(--line); border-radius: 999px; background: var(--glass); font-size: .8rem; color: var(--muted); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 #4ade8088; animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px #4ade8000; } 100% { box-shadow: 0 0 0 0 #4ade8000; } }
.header-actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.status + .header-actions { margin-left: 0; }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); color: var(--muted); transition: color .2s, border-color .2s, background .2s; }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { color: var(--ink); border-color: #ff655e80; background: #ff655e12; }
.theme-toggle { cursor: pointer; background: none; padding: 0; }
.theme-toggle .icon-moon, :root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }
html:not(.js) .theme-toggle { display: none; }

/* --- Dock navigation ----------------------------------------------------- */
.dock { position: fixed; right: 1.5rem; top: 50%; transform: translateY(-50%); z-index: 20; display: flex; flex-direction: column; gap: .5rem; padding: 1rem .55rem; border-radius: 3rem; background: var(--dock-bg); border: 1px solid var(--line); box-shadow: 0 16px 50px var(--shadow-soft); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.dock a { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--dock-ink); transition: color .2s, background .2s; }
.dock svg { width: 20px; height: 20px; }
.dock a:hover, .dock a[aria-current] { color: var(--accent-ink); }
.dock a[aria-current] { background: #ff655e17; }
.dock a span { position: absolute; right: 58px; padding: .35rem .7rem; border-radius: 6px; background: var(--tooltip-bg); color: var(--tooltip-ink); font-size: .8rem; white-space: nowrap; opacity: 0; pointer-events: none; transform: translateX(6px); transition: opacity .2s, transform .2s; }
.dock a:hover span, .dock a:focus-visible span { opacity: 1; transform: none; }
@media (min-width: 1561px) { .dock { right: calc((100vw - var(--shell)) / 2 - 80px); } }

/* --- Shared type & controls ---------------------------------------------- */
.eyebrow { display: inline-flex; align-items: center; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.25rem; font-size: .75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ''; width: 28px; height: 2px; border-radius: 2px; background: var(--grad); }
.lead { max-width: 56ch; margin-top: 1.6rem; font-size: 1.08rem; line-height: 1.8; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.25rem; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: .9rem; min-height: 50px; padding: .6rem .65rem .6rem 1.4rem; border: 1px solid transparent; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: .92rem; font-weight: 600; cursor: pointer; box-shadow: 0 12px 32px -12px #ff655eaa; transition: background .2s, box-shadow .2s; }
.button .arrow { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #1b10201a; font-size: 1rem; transition: transform .3s var(--ease); }
.button:hover { background: var(--accent-hover); box-shadow: 0 18px 36px -14px #ff655ecc; }
.button:hover .arrow, .text-link:hover .arrow, .project-card:hover .card-action .arrow, .next-project:hover .arrow { transform: rotate(45deg); }
.button.secondary { background: var(--glass); color: var(--ink); border-color: var(--line-2); box-shadow: none; }
.button.secondary .arrow { background: var(--glass-2); }
.button.secondary:hover { background: var(--glass-3); border-color: var(--line-3); }
.button-sm { min-height: 42px; padding: .35rem .4rem .35rem 1rem; font-size: .85rem; box-shadow: none; }
.button-sm .arrow { width: 28px; height: 28px; }
.text-link { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; font-size: .92rem; font-weight: 600; transition: color .2s; }
.text-link .arrow { color: var(--accent-ink); transition: transform .3s var(--ease); }
.text-link:hover { color: var(--accent-ink); }
.pill { display: inline-block; padding: .2rem .65rem; border: 1px solid var(--line-2); border-radius: 999px; font-size: .7rem; font-weight: 500; letter-spacing: .02em; text-transform: none; color: var(--muted); white-space: nowrap; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; margin: 1.25rem 0 0; padding: 0; }
.tags li { padding: .3rem .75rem; border: 1px solid var(--line); border-radius: 999px; background: var(--glass); font-size: .76rem; color: var(--soft-ink); }

/* --- Hero ---------------------------------------------------------------- */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 2rem; min-height: min(820px, calc(100svh - var(--header-h))); padding: 1.5rem 0 3.5rem; }
.particles { position: absolute; top: 0; left: 50%; width: 100vw; height: 100%; transform: translateX(-50%); z-index: 0; pointer-events: none; -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 45%, #000 25%, transparent 80%); mask-image: radial-gradient(ellipse 60% 70% at 50% 45%, #000 25%, transparent 80%); }
.hero-copy { position: relative; z-index: 2; }
.hero-title { font-size: clamp(2.9rem, 6.4vw, 5.7rem); line-height: 1.02; letter-spacing: -.058em; }
.hero-title .soft { font-weight: 400; color: var(--soft-ink); }
.rotator { display: inline-block; padding-bottom: .08em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; transition: opacity .35s var(--ease), transform .35s var(--ease), filter .35s; }
.rotator.is-out { opacity: 0; transform: translateY(.3em); filter: blur(6px); }
.hero .lead { max-width: 46ch; }
.focus-list { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 3rem 0 0; padding: 0; font-size: .85rem; color: var(--dim); }
.focus-list li { display: inline-flex; align-items: center; gap: 1.25rem; }
.focus-list li + li::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.motion-toggle { position: absolute; left: 0; bottom: .5rem; z-index: 3; padding: .4rem 0; border: 0; background: none; color: var(--dim); font-size: .75rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-3); }
.motion-toggle:hover { color: var(--ink); }
html:not(.js) .motion-toggle { display: none; }

/* Portrait */
.portrait { position: relative; z-index: 1; height: clamp(480px, 72vh, 700px); display: flex; align-items: flex-end; justify-content: center; isolation: isolate; }
.portrait::before { content: ''; position: absolute; inset: 12% 8% 0; z-index: -1; border-radius: 50%; background: var(--portrait-glow); filter: blur(10px); }
.portrait img { position: relative; height: 100%; width: auto; max-width: none; object-fit: contain;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent), linear-gradient(to bottom, transparent, #000 8%, #000 80%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent), linear-gradient(to bottom, transparent, #000 8%, #000 80%, transparent);
  mask-composite: intersect; }
/* Light mode swaps in a transparent cutout of the same portrait, so it sits
   directly on the page. Only the bottom fades. (No drop-shadow filter: combined
   with the mask it tinted the image's whole rectangle into a visible box.) */
.portrait .portrait-light, :root[data-theme="light"] .portrait .portrait-dark { display: none; }
:root[data-theme="light"] .portrait .portrait-light {
  display: block;
  -webkit-mask-image: linear-gradient(to bottom, #000 84%, transparent);
  mask-image: linear-gradient(to bottom, #000 84%, transparent); }
/* overflow: hidden because a rotating square's bounding box grows, which could
   push past the viewport on phones and allow sideways scrolling. */
.rings { position: absolute; inset: 0; z-index: -1; display: grid; place-items: center; overflow: hidden; }
.rings span { position: absolute; top: 14%; aspect-ratio: 1; border-radius: 50%; border: 1px dashed var(--ring); animation: spin 60s linear infinite; }
.rings span:nth-child(1) { width: 78%; }
.rings span:nth-child(2) { width: 100%; top: 4%; border-style: solid; border-color: var(--ring-faint); animation-direction: reverse; animation-duration: 90s; }
.rings span::after { content: ''; position: absolute; top: 50%; left: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent); }
.rings span:nth-child(2)::after { top: 12%; left: 82%; background: var(--violet); box-shadow: 0 0 14px var(--violet); }
@keyframes spin { to { transform: rotate(360deg); } }
.chip { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: .5rem; padding: .55rem .95rem; border: 1px solid var(--ring); border-radius: 999px; background: var(--chip-bg); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 12px 30px -10px var(--shadow); font-size: .82rem; font-weight: 600; animation: float 7s ease-in-out infinite; }
.chip svg { width: 17px; height: 17px; color: var(--accent); }
.chip-0 { top: 24%; left: 2%; }
.chip-1 { top: 44%; right: 0; animation-delay: -2.3s; }
.chip-2 { bottom: 22%; left: 6%; animation-delay: -4.6s; }
@keyframes float { 50% { transform: translateY(-10px); } }
/* "See my work" pill: a light travels around the border, the arrow pings,
   and on hover the arrow slides out and a fresh one slides in. Nothing moves
   the pill itself, so hovering can't jitter. */
@property --cta-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.work-cta { position: absolute; right: 2%; bottom: 9%; z-index: 3; display: inline-flex; align-items: center; gap: .9rem; padding: .4rem .4rem .4rem 1.15rem; border: 1px solid transparent; border-radius: 999px;
  background: linear-gradient(var(--pill-bg), var(--pill-bg)) padding-box, conic-gradient(from var(--cta-angle), var(--ring) 0 60%, #ff655e 78%, #c98bff 90%, var(--ring) 100%) border-box;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 16px 36px -14px var(--shadow), 0 0 30px -14px #ff655e88;
  animation: cta-border 4s linear infinite; transition: box-shadow .3s; }
.work-cta:hover { box-shadow: 0 16px 36px -14px var(--shadow), 0 0 42px -10px #ff655ebb; }
@keyframes cta-border { to { --cta-angle: 360deg; } }
.work-cta-label { display: flex; flex-direction: column; font: 700 .95rem/1.2 var(--heading); letter-spacing: -.01em; }
.work-cta-label small { font: 600 .62rem/1.3 'DM Sans', system-ui, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.work-cta-arrow { position: relative; width: 42px; height: 42px; flex: none; overflow: hidden; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 700; animation: cta-ping 2.6s ease-out infinite; transition: background .2s; }
.work-cta-arrow i { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; transition: transform .45s var(--ease); }
.work-cta-arrow i + i { transform: translateX(-130%); }
.work-cta:hover .work-cta-arrow { background: var(--accent-hover); }
.work-cta:hover .work-cta-arrow i:first-child { transform: translateX(130%); }
.work-cta:hover .work-cta-arrow i + i { transform: none; }
@keyframes cta-ping { 0% { box-shadow: 0 0 0 0 #ff655e80; } 70%, 100% { box-shadow: 0 0 0 12px #ff655e00; } }

/* Hero entrance */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .8s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .hero-copy > :nth-child(3) { animation-delay: .16s; }
  .hero-copy > :nth-child(4) { animation-delay: .24s; }
  .hero-copy > :nth-child(5) { animation-delay: .32s; }
  .portrait-hero { animation: fade-in 1.1s .15s var(--ease) both; }
  main { animation: fade-in .5s ease-out both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes fade-in { from { opacity: 0; } }

/* --- Sections ------------------------------------------------------------ */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2.75rem; flex-wrap: wrap; }
.section-heading .eyebrow { margin-bottom: .8rem; }

/* Project cards */
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
/* Hover feedback stays inside the card (border, glow, image zoom). Lifting the
   card itself moved it out from under the cursor and made it flicker. */
.project-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); transition: border-color .35s, box-shadow .35s; }
.project-card:hover { border-color: #ff655e66; box-shadow: 0 30px 60px -30px #ff655e55; }
.card-cover { position: relative; overflow: hidden; }
.card-copy { display: flex; flex-direction: column; flex: 1; padding: 1.75rem; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
.project-card h3 { margin: .8rem 0 .5rem; font-size: 1.35rem; line-height: 1.2; }
.card-summary { color: var(--muted); }
.card-action { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 1.5rem; font-size: .9rem; font-weight: 600; }
.card-action .arrow { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--on-accent); transition: transform .35s var(--ease); }
.featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.45fr 1fr; }
.featured .card-cover { display: flex; align-items: center; padding: clamp(1rem, 2.5vw, 2.25rem); background: var(--cover-bg); }
.featured .card-copy { justify-content: center; padding: clamp(1.75rem, 3vw, 2.75rem); }
.featured h3 { font-size: clamp(1.8rem, 2.8vw, 2.6rem); }
.featured .window img { aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 0; }
.featured.reverse { grid-template-columns: 1fr 1.45fr; }
.featured .card-cover > .art, .gallery-hero .art { display: block; width: 100%; height: auto; border: 1px solid var(--ring); border-radius: 10px; box-shadow: 0 30px 60px -25px var(--shadow); }
.featured .card-cover > .art { aspect-ratio: 16 / 10; object-fit: cover; transition: transform .6s var(--ease); }
.project-card:hover .card-cover > .art { transform: scale(1.03); }
.featured.reverse .card-cover { order: 2; background: var(--cover-bg-alt); }
.upcoming.wide { grid-column: 1 / -1; }
.featured .card-action { margin-top: 2rem; border-top: 1px solid var(--line); }
.upcoming { display: grid; grid-template-columns: 110px 1fr; }
.upcoming .card-cover { border-right: 1px solid var(--line); background: repeating-linear-gradient(135deg, var(--glass) 0 10px, transparent 10px 20px); }
.placeholder-cover { height: 100%; display: grid; place-items: center; }
.placeholder-cover span { font: 800 3.4rem/1 var(--heading); color: transparent; -webkit-text-stroke: 1px var(--outline-num); }
.upcoming .card-action { color: var(--muted); }
.upcoming .card-action .arrow { background: var(--glass-2); color: var(--ink); }

/* Browser-style frame for screenshots */
.window { width: 100%; overflow: hidden; border: 1px solid var(--ring); border-radius: 10px; background: #0b0a16; box-shadow: 0 30px 60px -25px var(--shadow); }
.window-bar { display: flex; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--window-bar-line); background: var(--window-bar); }
.window-bar i { width: 9px; height: 9px; border-radius: 50%; background: #ff655e99; }
.window-bar i:nth-child(2) { background: #ffbd4a88; }
.window-bar i:nth-child(3) { background: #4ade8077; }
.window img { display: block; width: 100%; height: auto; transition: transform .6s var(--ease); }
.project-card:hover .window img { transform: scale(1.03); }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.service-card { position: relative; display: flex; flex-direction: column; overflow: hidden; padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); transition: border-color .35s; }
.service-card::after { content: ''; position: absolute; right: -80px; bottom: -80px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, #ff655e26, transparent 70%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.service-card:hover { border-color: #ff655e55; }
.service-card:hover::after { opacity: 1; }
.service-top { display: flex; align-items: center; justify-content: space-between; }
.service-icon { width: 56px; height: 56px; display: grid; place-items: center; border: 1px solid #ff655e38; border-radius: 16px; background: linear-gradient(145deg, #ff655e22, #9b7bff18); color: var(--accent-ink); }
.service-icon svg { width: 26px; height: 26px; }
.service-num { font: 700 .85rem var(--heading); color: var(--dim); }
.service-card h2, .service-card h3 { margin-top: 1.75rem; font-size: 1.4rem; line-height: 1.25; letter-spacing: -.03em; }
.service-card p { margin: .9rem 0 1.75rem; color: var(--muted); }
.service-card .text-link { margin-top: auto; }

/* Home about */
.home-about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem 4rem; align-items: end; }
.home-about p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; margin-bottom: 1rem; }

/* Call to action */
.cta-band { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; margin: 1rem 0 5rem; padding: clamp(2rem, 5vw, 3.5rem); border: 1px solid var(--ring); border-radius: 24px; background: radial-gradient(ellipse at 100% 0%, #ff655e30, transparent 55%), radial-gradient(ellipse at 0% 100%, #9b7bff26, transparent 55%), var(--cta-bg); }
.cta-band h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.cta-band p:not(.eyebrow) { max-width: 48ch; margin-top: .8rem; color: var(--muted); }
.cta-band .actions { margin-top: 0; }
.page-main .cta-band, .project-page + .cta-band { margin-top: 4rem; }

/* --- Inner pages --------------------------------------------------------- */
.page-main { padding: clamp(2.5rem, 6vw, 4.5rem) 0 1rem; }
.page-intro { max-width: 900px; margin-bottom: 3.5rem; }
.collection-note { margin-top: 2rem; font-size: .85rem; color: var(--dim); }
.not-found { min-height: 60vh; padding-bottom: 5rem; }
.not-found .page-intro { margin-bottom: 0; }

/* About */
.about-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: center; min-height: min(760px, calc(100svh - var(--header-h))); padding: 1rem 0 4rem; }
.portrait-about { height: clamp(460px, 74vh, 680px); }
.about-copy h1 { font-size: clamp(2.7rem, 4.6vw, 4.2rem); }
.about-focus { display: grid; grid-template-columns: auto 1fr; column-gap: 3rem; row-gap: .15rem; margin: 2.25rem 0; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.about-focus dt { grid-row: 1 / span 3; color: var(--accent-ink); font-size: .9rem; font-weight: 600; }
.about-focus dd { grid-column: 2; margin: 0; }

/* Contact */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; padding: clamp(2.5rem, 6vw, 4.5rem) 0 5rem; }
.contact-layout h1 { font-size: clamp(2.8rem, 4.8vw, 4.5rem); }
.email-link { display: inline-flex; align-items: center; gap: .6rem; margin: 2rem 0 .5rem; font-size: 1.15rem; font-weight: 600; color: var(--accent-ink); overflow-wrap: anywhere; }
.email-link + .text-link { display: flex; width: fit-content; }
.contact-layout form { padding: clamp(1.4rem, 3vw, 2.25rem); border: 1px solid var(--line-2); border-radius: 20px; background: var(--card); box-shadow: 0 30px 80px -40px var(--shadow); }
.contact-layout form h2 { margin-bottom: 1.25rem; font-size: 1.5rem; }
.contact-layout label { display: block; margin: 1rem 0 .4rem; font-size: .85rem; color: var(--soft-ink); }
input, select, textarea { width: 100%; padding: .75rem .9rem; border: 1px solid var(--line-2); border-radius: 10px; background: var(--input-bg); color: var(--ink); font-size: 1rem; transition: border-color .2s, background .2s; }
input:hover, select:hover, textarea:hover { border-color: var(--line-3); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); background: var(--input-bg-focus); }
input::placeholder, textarea::placeholder { color: var(--placeholder); }
textarea { resize: vertical; }
.contact-layout .button { margin-top: 1.4rem; }
.form-note, #form-status { margin-top: 1rem; font-size: .82rem; color: var(--muted); }

/* Project page */
.project-page { padding: 1.5rem 0 1rem; }
.back-link { color: var(--muted); }
.project-intro { max-width: 900px; padding: 2rem 0 3rem; }
.project-intro h1 { font-size: clamp(3rem, 6.5vw, 5.5rem); }
.project-intro h2 { margin-top: 1rem; font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 500; letter-spacing: -.02em; color: var(--soft-ink); }
.gallery-hero { margin-bottom: 3.5rem; padding: clamp(.6rem, 2vw, 1.5rem); border: 1px solid var(--line); border-radius: 20px; background: var(--cover-bg); }
.gallery-hero .window a { display: block; }
.showcase-shot { margin: 0; }
.showcase-shot figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; margin-top: .9rem; font-size: .82rem; color: var(--muted); }
.showcase-shot figcaption span { display: inline-flex; align-items: center; gap: .45rem; color: var(--ink); }
.showcase-shot figcaption svg { width: 15px; height: 15px; color: var(--accent-ink); }
picture { display: contents; }
[data-lightbox] { cursor: zoom-in; }

/* --- Lightbox (created by site.js on project pages) ---------------------- */
/* Screenshots are dark UIs, so the viewer stays dark in both themes. */
html:has(.lightbox[open]) { overflow: hidden; }
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: clamp(4.5rem, 7vh, 5.5rem) clamp(1rem, 7vw, 6.5rem) clamp(1rem, 4vh, 2rem); border: 0; background: transparent; color: #f7f5ff; overflow: hidden; }
.lightbox[open] { display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; }
.lightbox::backdrop { background: #07061ceb; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.lightbox { --stage-h: calc(100dvh - 11rem); }
.lightbox-figure { display: flex; flex-direction: column; align-items: center; gap: 1rem; width: 100%; min-width: 0; max-height: 100%; margin: 0; }
/* The stage scrolls when zoomed; unzoomed, the image simply fits inside it. */
.lightbox-stage { max-width: 100%; max-height: var(--stage-h); overflow: auto; overscroll-behavior: contain; border: 1px solid #ffffff24; border-radius: 10px; background: #0b0a16; box-shadow: 0 40px 90px -30px #000; scrollbar-color: #ffffff40 transparent; }
.lightbox-img { display: block; max-width: 100%; max-height: var(--stage-h); width: auto; height: auto; cursor: zoom-in; transition: opacity .25s; }
.lightbox-img.is-loading { opacity: .35; }
.lightbox.is-zoomed .lightbox-img { max-width: none; max-height: none; cursor: zoom-out; }
.lightbox-zoom { padding: .3rem .8rem; border: 1px solid #ffffff2e; border-radius: 999px; background: #ffffff10; color: #f7f5ff; font: 600 .82rem 'DM Sans', system-ui, sans-serif; cursor: pointer; }
.lightbox-zoom:hover { background: #ffffff22; }
.lightbox-zoom:focus-visible, .lightbox-original:focus-visible { outline: 2px solid #ff847d; outline-offset: 3px; }
.lightbox-caption { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .4rem 1.25rem; font-size: .9rem; color: #d8d3e8; text-align: center; }
.lightbox-count { font-variant-numeric: tabular-nums; color: #9d97b8; }
.lightbox-original { color: #ff847d; font-weight: 600; }
.lightbox-original:hover { color: #ffa29c; }
.lightbox-btn { position: fixed; z-index: 1; width: 48px; height: 48px; display: grid; place-items: center; padding: 0; border: 1px solid #ffffff2e; border-radius: 50%; background: #ffffff14; color: #fff; font-size: 1.25rem; line-height: 1; cursor: pointer; transition: background .2s, border-color .2s; }
.lightbox-btn:hover { background: #ffffff26; border-color: #ffffff50; }
.lightbox-btn:focus-visible { outline: 2px solid #ff847d; outline-offset: 3px; }
.lightbox-btn[hidden] { display: none; }
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: clamp(.5rem, 2vw, 1.5rem); top: 50%; translate: 0 -50%; }
.lightbox-next { right: clamp(.5rem, 2vw, 1.5rem); top: 50%; translate: 0 -50%; }
@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] .lightbox-figure { animation: lightbox-in .3s var(--ease) both; }
  .lightbox[open]::backdrop { animation: fade-in .25s ease-out both; }
}
@keyframes lightbox-in { from { opacity: 0; transform: scale(.97); } }
@media (max-width: 760px) {
  .lightbox { padding: 4.25rem .75rem 5.5rem; }
  .lightbox { --stage-h: calc(100dvh - 13.5rem); }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 1rem; translate: none; }
  .lightbox-prev { left: 1rem; }
  .lightbox-next { right: 1rem; }
}
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; margin-bottom: 3.5rem; padding-bottom: 3.5rem; border-bottom: 1px solid var(--line); }
/* Five or six features read better as rows of three than as 4 + 2. */
.feature-grid:has(> :nth-child(5)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-grid > div { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--glass); }
.feature-grid h2 { font-size: 1.1rem; letter-spacing: -.02em; }
.feature-grid h2::before { content: ''; display: block; width: 24px; height: 2px; margin-bottom: 1rem; border-radius: 2px; background: var(--grad); }
.feature-grid p { margin-top: .6rem; font-size: .92rem; color: var(--muted); }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }
.gallery .showcase-shot a { display: block; overflow: hidden; border: 1px solid var(--line-2); border-radius: 12px; transition: border-color .25s; }
.gallery .showcase-shot a:hover { border-color: #ff655e88; }
.gallery .showcase-shot img { display: block; width: 100%; aspect-ratio: 1.6; object-fit: cover; object-position: top; transition: transform .6s var(--ease); }
.gallery .showcase-shot a:hover img { transform: scale(1.03); }
.gallery .showcase-shot:only-child { grid-column: 1 / -1; }
.gallery .showcase-shot:only-child img { aspect-ratio: auto; object-fit: contain; }
.coming-project { grid-column: 1 / -1; padding: 4rem; border: 1px dashed var(--line-2); border-radius: 20px; text-align: center; background: var(--glass); }
.coming-project span { font: 800 7rem/1 var(--heading); color: transparent; -webkit-text-stroke: 1px var(--outline-num); }
.coming-project p { margin-top: 1.25rem; color: var(--muted); }
.next-project { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin: 4rem 0 5rem; padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--glass); transition: border-color .25s; }
.next-project:hover { border-color: #ff655e66; }
.next-project > span { font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.next-project strong { display: inline-flex; align-items: center; gap: .75rem; font: 700 clamp(1.3rem, 2.5vw, 2rem)/1.2 var(--heading); letter-spacing: -.03em; }
.next-project .arrow { color: var(--accent-ink); transition: transform .35s var(--ease); }

/* --- Tech stack ---------------------------------------------------------- */
.tech-list { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; }
.tech { display: inline-flex; align-items: center; gap: .55rem; padding: .3rem .8rem .3rem .3rem; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); font-size: .86rem; font-weight: 500; color: var(--ink); transition: border-color .2s; }
.tech:hover { border-color: color-mix(in srgb, var(--c, var(--accent)) 65%, transparent); }
.tech-mark { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 8px; background: var(--c); color: var(--on); font: 800 .64rem/1 var(--heading); letter-spacing: -.02em; box-shadow: inset 0 0 0 1px #ffffff2e; }

/* Project page: layers drawn top (what you see) to bottom (how it ships), joined by a connector. */
.stack-section { margin-top: 4rem; padding-top: 3.5rem; border-top: 1px solid var(--line); }
.stack { list-style: none; display: grid; gap: 1rem; margin: 0; padding: 0; }
.stack-layer { position: relative; display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); align-items: center; gap: 1rem 2rem; padding: 1.35rem 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--glass); }
.stack-layer + .stack-layer::before { content: ''; position: absolute; left: calc(1.5rem + 17px); top: calc(-1rem - 1px); width: 2px; height: 1rem; background: var(--grad); opacity: .7; }
.stack-label { display: flex; align-items: flex-start; gap: 1rem; }
.stack-num { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border: 1px solid #ff655e55; border-radius: 50%; background: #ff655e14; color: var(--accent-ink); font: 700 .78rem var(--heading); }
.stack-label h3 { font-size: 1.08rem; line-height: 1.3; }
.stack-label p { margin-top: .25rem; font-size: .88rem; line-height: 1.55; color: var(--muted); }

/* About page */
.section-lead { max-width: 60ch; margin-top: .9rem; color: var(--muted); }
:root[data-theme="light"] .tech-mark { box-shadow: inset 0 0 0 1px #16132a24; }
/* Groups reuse the stack rows, without the numbered connector. */
.tech-groups .stack-layer::before { display: none; }
.tech-groups .stack-layer { grid-template-columns: minmax(200px, 260px) minmax(0, 1fr); }
.tech-count { margin-left: -.15rem; padding: .05rem .4rem; border-radius: 999px; background: #ff655e1f; color: var(--accent-ink); font: 700 .68rem var(--heading); }
.principles { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; margin: 0; padding: 0; }
.principle { padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.principle-num { font: 700 .82rem var(--heading); color: var(--accent-ink); }
.principle h3 { margin: .85rem 0 .55rem; font-size: 1.12rem; line-height: 1.3; }
.principle p { font-size: .94rem; color: var(--muted); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 1.75rem; border-left: 2px solid var(--line-2); }
.timeline-item { position: relative; padding-bottom: 2rem; }
.timeline-item::before { content: ''; position: absolute; left: calc(-1.75rem - 7px); top: .35rem; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--bg); }
.timeline-period { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }
.timeline-item h3 { margin: .35rem 0 .4rem; font-size: 1.2rem; }
.timeline-item h3 span { font-weight: 500; color: var(--muted); }
.timeline-item > p:last-child { max-width: 65ch; color: var(--muted); }
.certs { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; margin: 0; padding: 0; }
.cert > a, .cert > div { display: flex; flex-direction: column; height: 100%; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); transition: border-color .25s; }
.cert > a:hover { border-color: #ff655e66; }
.cert-issuer { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.cert h3 { margin: .5rem 0; font-size: 1.1rem; line-height: 1.3; }
.cert-year { font-size: .85rem; color: var(--muted); }
.cert-verify { display: inline-flex; align-items: center; gap: .4rem; margin-top: auto; padding-top: 1rem; font-size: .88rem; font-weight: 600; color: var(--accent-ink); }

/* --- Footer -------------------------------------------------------------- */
.site-footer { padding: 3rem 0 2rem; border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 2rem; align-items: start; }
.footer-brand p { margin-top: 1rem; font-size: .9rem; color: var(--dim); }
.footer-nav { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 36px; font-size: .9rem; color: var(--muted); transition: color .2s; }
.footer-nav a:hover { color: var(--ink); }
.footer-social { display: flex; gap: .5rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .8rem; color: var(--dim); }

/* --- Scroll reveal (only when JS is available) --------------------------- */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
html.js .reveal.is-visible { opacity: 1; transform: none; }

/* --- Paused / reduced motion -------------------------------------------- */
.motion-paused *, .motion-paused *::before, .motion-paused *::after { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js .reveal { opacity: 1; transform: none; }
  .motion-toggle { display: none; }
}

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 1100px) {
  .featured { grid-template-columns: 1.2fr 1fr; }
  .featured.reverse { grid-template-columns: 1fr 1.2fr; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stack-layer, .tech-groups .stack-layer { grid-template-columns: minmax(0, 1fr); }
  .service-card { padding: 1.6rem; }
  .upcoming { grid-template-columns: 80px 1fr; }
}
@media (max-width: 960px) {
  .status { display: none; }
  .status + .header-actions { margin-left: auto; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-bottom: 3rem; }
  .hero-copy { padding-top: 1.5rem; }
  .portrait-hero { height: clamp(460px, 110vw, 600px); max-width: 520px; width: 100%; justify-self: center; }
  .motion-toggle { position: static; justify-self: start; }
  .services-grid { grid-template-columns: 1fr; }
  .home-about { grid-template-columns: 1fr; }
  .about-layout { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .about-layout .portrait-about { order: 2; height: clamp(440px, 110vw, 600px); max-width: 520px; width: 100%; justify-self: center; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  :root { --header-h: 72px; }
  .site-shell { padding-bottom: 96px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-text strong { font-size: 1.15rem; }
  .project-grid { grid-template-columns: 1fr; }
  .featured { display: flex; }
  .featured.reverse .card-cover { order: 0; }
  .featured .card-cover { padding: 1rem; }
  .upcoming { grid-template-columns: 84px 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery .showcase-shot img { aspect-ratio: auto; object-fit: contain; }
  .feature-grid { gap: 1rem; }
  .principles { grid-template-columns: minmax(0, 1fr); }
  .stack-layer { padding: 1.2rem; }
  .stack-layer + .stack-layer::before { left: calc(1.2rem + 17px); }
  .chip { font-size: .75rem; padding: .45rem .8rem; }
  .work-cta { right: 0; bottom: 6%; gap: .7rem; padding-left: 1rem; }
  .work-cta-arrow { width: 38px; height: 38px; }
  .next-project { padding: 1.5rem; }
  .coming-project { padding: 3rem 1.5rem; }
  .coming-project span { font-size: 5rem; }
  .dock { top: auto; right: auto; left: 50%; bottom: max(.75rem, env(safe-area-inset-bottom)); transform: translateX(-50%); flex-direction: row; gap: .15rem; padding: .4rem; border-radius: 18px; }
  .dock a { width: 58px; height: 52px; display: flex; flex-direction: column; justify-content: center; gap: 3px; border-radius: 12px; }
  .dock a span { position: static; display: block; padding: 0; background: none; color: inherit; font-size: .66rem; opacity: 1; transform: none; }
  .dock svg { width: 19px; height: 19px; }
}
@media (max-width: 520px) {
  .header-actions .icon-btn:not(.theme-toggle) { display: none; }
  .brand-text small { display: none; }
  .focus-list { margin-top: 2rem; }
  .actions .button { flex: 1 1 auto; }
}
