/* =============================================================================
   Rithick Ramannan: portfolio
   Bold grotesk type, full-width bands alternating charcoal and light, one coral
   accent and a pale-yellow call to action. The 3D travel layer (star field,
   route, content arriving from depth) sits underneath and shows through the
   dark bands.
   ========================================================================== */

:root {
  --ink: #1a1a1a;          /* dark bands, page background */
  --black: #0d0d0d;        /* header, contact band, footer */
  --grey: #e9e9e9;         /* light bands */
  --white: #ffffff;
  --coral: #ff5e4f;        /* the one accent */
  --coral-deep: #e6483a;   /* coral text on light backgrounds */
  --butter: #f4f7c4;       /* primary call to action */
  --text: #0d0d0d;
  --text-2: #4d4d4d;
  --text-3: #6f6f6f;
  --on-dark: #ffffff;
  --on-dark-2: #c4c4c4;
  --on-dark-3: #8c8c8c;
  --line: #d6d6d6;
  --line-dark: #333333;
  --live: #34d399;
  --radius: 20px;
  --font: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ink); color: var(--on-dark); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0; }
button { font: inherit; color: inherit; }
.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: clamp(20px, 5vw, 80px); }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 8px 14px; border-radius: 8px; background: var(--butter); color: var(--text); }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 6px; }

/* ---- Buttons: pills ------------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border: 1.5px solid transparent; border-radius: 999px; font-weight: 600; font-size: 1rem; line-height: 1; white-space: nowrap; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.btn span[aria-hidden] { transition: transform .2s ease; }
.btn:hover span[aria-hidden] { transform: translateX(3px); }
.btn-primary { background: var(--butter); color: var(--text); }
.btn-primary:hover { background: #fff; }
.btn-ghost, .btn-outline { border-color: currentColor; background: transparent; }
.btn-ghost:hover, .btn-outline:hover { background: rgba(255,255,255,.1); }
.btn-dark { background: var(--black); color: var(--on-dark); }
.btn-dark:hover { background: var(--coral-deep); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: .92rem; }
@media (prefers-reduced-motion: reduce) { .btn, .btn span[aria-hidden] { transition: none; } }

/* ---- Header ---------------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--black); border-bottom: 1px solid #222; }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em; color: var(--on-dark); }
.brand::before { content: ""; width: 14px; height: 14px; border-radius: 4px; background: var(--coral); }
.site-header nav { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 36px); font-weight: 500; font-size: .98rem; color: var(--on-dark); }
.site-header nav a:not(.btn) { padding-block: 6px; border-bottom: 2px solid transparent; transition: border-color .2s ease; }
.site-header nav a:not(.btn):hover, .site-header nav a[aria-current] { border-color: var(--coral); }

/* ---- Bands ----------------------------------------------------------------------- */
.band { position: relative; padding-block: clamp(72px, 9vw, 128px); }
.band-dark { background: transparent; color: var(--on-dark); }          /* stars show through */
.band-black { background: var(--black); color: var(--on-dark); }
.band-grey { background: var(--grey); color: var(--text); }
.band-white { background: var(--white); color: var(--text); }
.band-title { font-size: clamp(2.1rem, 3.6vw, 3.25rem); line-height: 1.08; letter-spacing: -.035em; max-width: 20ch; }
.accent { color: var(--coral); }
.band-white .accent, .band-grey .accent { color: var(--coral-deep); }
.kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; font-weight: 600; font-size: .95rem; color: var(--text-2); }
.kicker span { display: inline-grid; place-items: center; min-width: 34px; height: 24px; padding: 0 8px; border-radius: 999px; background: var(--coral); color: var(--text); font-size: .78rem; }
.band-dark .kicker, .band-black .kicker, .kicker-light { color: var(--on-dark-2); }
.body-lead { font-size: clamp(1.05rem, 1.3vw, 1.2rem); line-height: 1.6; color: var(--text-2); max-width: 60ch; }
.band-dark .body-lead { color: var(--on-dark-2); }
.note { color: var(--text-2); font-size: 1rem; max-width: 56ch; }
.meta { color: var(--text-3); font-size: .86rem; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.section-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: end; margin-bottom: 36px; }

/* ---- Hero ------------------------------------------------------------------------ */
.hero { padding-block: clamp(48px, 7vw, 96px) clamp(64px, 8vw, 112px); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.label { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-weight: 600; font-size: .95rem; color: var(--on-dark-2); }
.label-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 5px rgba(52,211,153,.15); }
.label-availability { padding-left: 12px; border-left: 1px solid var(--line-dark); }
.hero h1 { margin: 26px 0 30px; font-size: clamp(2.9rem, 5.6vw, 5.6rem); line-height: .98; letter-spacing: -.045em; max-width: 11ch; }
.hero-accent { color: var(--coral); }
.lead { max-width: 34ch; font-size: clamp(1.1rem, 1.45vw, 1.3rem); font-weight: 600; line-height: 1.35; letter-spacing: -.01em; color: var(--on-dark); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-proof { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line-dark); font-size: .92rem; color: var(--on-dark-2); }
.hero-proof span { display: inline-flex; align-items: center; gap: 8px; color: var(--on-dark-3); }
.hero-proof span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--live); }
.hero-proof a { border-bottom: 1px solid var(--line-dark); transition: color .2s ease, border-color .2s ease; }
.hero-proof a:hover { color: var(--coral); border-color: var(--coral); }

/* Hero stage: the coral swoosh behind a rounded card where live sites take
   turns, flipping in 3D; the card tilts with the pointer (main.js). */
.hero-stage { --scene-x: 0deg; --scene-y: 0deg; --light-x: 50%; --light-y: 30%; position: relative; aspect-ratio: 1.12; perspective: 1500px; }
.hero-swoosh { position: absolute; inset: -14% -18% -10% -22%; width: 140%; height: auto; max-width: none; pointer-events: none; opacity: .95; }
.stage-card { position: absolute; border-radius: var(--radius); }
.stage-card-main { inset: 10% 2% 12% 6%; overflow: hidden; background: #111; box-shadow: 0 40px 90px rgba(0,0,0,.5); transform: rotateX(var(--scene-x)) rotateY(var(--scene-y)); transform-style: preserve-3d; transition: transform .2s ease-out; }
.window-bar { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; height: 40px; padding: 0 16px; background: #141414; font: 500 .8rem/1 ui-monospace, Consolas, monospace; color: var(--on-dark-2); }
.window-dots { width: 46px; height: 10px; background: radial-gradient(circle, #ff5f57 4px, transparent 5px) 0 0/16px 10px repeat-x; }
.window-live { display: inline-flex; align-items: center; gap: 6px; color: var(--live); }
.window-live i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.hero-shots { position: absolute; inset: 40px 0 0; perspective: 1400px; }
.hero-shots img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transform: rotateY(-18deg) translateZ(-120px); transform-origin: 0 50%; transition: opacity .9s ease, transform 1.1s cubic-bezier(.2,.7,.2,1); }
.hero-shots img.is-active { opacity: 1; transform: none; }
.stage-card-code { left: 0; bottom: 2%; z-index: 3; display: grid; gap: 8px; min-width: 230px; padding: 16px 18px; background: var(--black); border: 1px solid #2a2a2a; box-shadow: 0 24px 50px rgba(0,0,0,.45); font: 500 .8rem/1.3 ui-monospace, Consolas, monospace; color: var(--on-dark-2); }
.stage-card-code span { margin-right: 10px; color: var(--on-dark-3); }
.stage-card-code b { float: right; margin-left: 16px; color: var(--live); font-weight: 600; }
.stage-owner { position: absolute; right: 0; bottom: 2%; z-index: 4; display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; background: var(--butter); color: var(--text); box-shadow: 0 16px 40px rgba(0,0,0,.35); }
.stage-owner img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: top; }
.stage-owner strong { display: block; font-size: .9rem; line-height: 1.2; }
.stage-owner small { color: var(--text-2); font-size: .78rem; }
@media (prefers-reduced-motion: reduce) { .stage-card-main, .hero-shots img { transition: none; } }

/* ---- At a glance: statement + bento tiles ----------------------------------------------- */
.glance-inner { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.25fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.glance-copy { display: grid; gap: 26px; justify-items: start; }
.bento { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(190px, auto); gap: 16px; }
.stat { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 24px; border-radius: var(--radius); overflow: hidden; }
.stat strong { position: relative; display: block; font-size: clamp(3rem, 5vw, 4.6rem); font-weight: 600; line-height: .95; letter-spacing: -.05em; }
.stat span { position: relative; max-width: 18ch; font-size: 1.1rem; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
.bento .stat:nth-child(1) { grid-column: 1; grid-row: 1; color: #fff; background: linear-gradient(180deg, rgba(13,13,13,.72), rgba(13,13,13,.92)), url("../img/live/ezewag-in.webp") center top/cover; }
.bento .stat:nth-child(2) { grid-column: 2; grid-row: 1 / span 2; background: var(--coral); color: var(--text); }
.bento .stat:nth-child(3) { grid-column: 1; grid-row: 2; background: var(--butter); color: var(--text); }
.bento .stat:nth-child(4) { grid-column: 1 / -1; grid-row: 3; background: var(--black); color: #fff; }
.bento .stat:nth-child(4)::before { content: ""; position: absolute; inset: -60% -10% -60% 40%; background: url("../img/swoosh-coral.webp") center/contain no-repeat; opacity: .9; }

/* ---- Work: chips + white cards on grey ---------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 18px; border: 1.5px solid var(--text); border-radius: 999px; background: transparent; font-weight: 600; font-size: .92rem; color: var(--text); cursor: pointer; transition: background .2s ease, color .2s ease; }
.chip span { color: var(--text-3); font-variant-numeric: tabular-nums; }
.chip:hover { background: #fff; }
.chip[aria-pressed="true"] { background: var(--text); color: #fff; }
.chip[aria-pressed="true"] span { color: #bdbdbd; }
.work-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; perspective: 1400px; }
.work-row { position: relative; display: grid; grid-template-areas: "thumb" "main"; grid-template-rows: auto 1fr; height: 100%; padding: 14px 14px 26px; border-radius: var(--radius); background: #fff; color: var(--text); transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease; transform-origin: 50% 100%; }
.work-row:hover { transform: translateY(-6px) rotateX(3deg); box-shadow: 0 30px 50px -30px rgba(0,0,0,.35); }
.work-no { position: absolute; top: 26px; left: 26px; z-index: 2; padding: 4px 10px; border-radius: 999px; background: var(--black); color: #fff; font-weight: 600; font-size: .78rem; font-variant-numeric: tabular-nums; }
.work-thumb { grid-area: thumb; display: block; aspect-ratio: 16 / 9.5; border-radius: 12px; overflow: hidden; background: var(--grey); }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s ease; }
.work-row:hover .work-thumb img { transform: scale(1.04); }
.work-main { grid-area: main; display: grid; align-content: start; gap: 8px; padding: 20px 60px 0 12px; }
.work-meta { color: var(--text-3); font-size: .88rem; font-weight: 500; }
.work-meta strong { color: var(--coral-deep); font-weight: 600; }
.work-title { font-size: 1.45rem; font-weight: 600; line-height: 1.15; letter-spacing: -.02em; }
.work-summary { color: var(--text-2); font-size: .98rem; }
.work-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.badge { padding: 4px 12px; border-radius: 999px; background: var(--grey); color: var(--text-2); font-size: .8rem; font-weight: 600; }
.badge-live { background: #dcfce7; color: #166534; }
.work-row .arrow { position: absolute; right: 26px; bottom: 26px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--grey); color: var(--text); transition: background .2s ease, color .2s ease; }
.work-row:hover .arrow { background: var(--coral); color: var(--text); }
@media (prefers-reduced-motion: reduce) { .work-row, .work-row:hover, .work-thumb img { transform: none; transition: none; } }

/* ---- Definition lists: experience, AI points, toolbox ------------------------------------------ */
.points, .toolbox { display: grid; margin: 0; border-top: 1px solid var(--line); }
.points > div, .toolbox > div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.points dt, .toolbox dt { font-weight: 600; font-size: 1.02rem; }
.points dd, .toolbox dd { margin: 0; color: var(--text-2); }
.experience dd strong { display: block; font-size: 1.35rem; line-height: 1.2; letter-spacing: -.02em; color: var(--text); }
.exp-co { display: block; margin: 4px 0 10px; color: var(--coral-deep); font-weight: 600; font-size: .95rem; }
.points-dark { border-color: var(--line-dark); margin-top: 48px; }
.points-dark > div { border-color: var(--line-dark); }
.points-dark dd { color: var(--on-dark-2); }

/* ---- How I work: paragraphs + a grid of what I own ----------------------------------------------- */
.about-copy { display: grid; gap: 18px; }
.about-copy .body-lead:first-child { color: var(--on-dark); font-size: clamp(1.2rem, 1.6vw, 1.4rem); font-weight: 600; line-height: 1.4; letter-spacing: -.01em; }
.owns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 64px 0 0; counter-reset: own; }
.owns > div { padding: 26px; border-radius: var(--radius); background: rgba(13,13,13,.75); border: 1px solid var(--line-dark); counter-increment: own; }
.owns dt { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 1.2rem; font-weight: 600; }
.owns dt::before { content: counter(own, decimal-leading-zero); color: var(--coral); font-size: .9rem; }
.owns dd { margin: 0; color: var(--on-dark-2); }

/* ---- What I do: three cards on grey ------------------------------------------------------------ */
.capabilities { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 44px; }
.capability { display: grid; align-content: start; gap: 14px; padding: 32px; border-radius: var(--radius); background: #fff; color: var(--text); }
.capability:nth-child(2) { background: var(--black); color: #fff; }
.capability:nth-child(2) p:not(.meta) { color: var(--on-dark-2); }
.capability h3 { font-size: 1.6rem; letter-spacing: -.025em; line-height: 1.1; }
.capability p:not(.meta) { color: var(--text-2); }
.capability .meta { padding-top: 14px; border-top: 1px solid var(--line); color: var(--coral-deep); font-weight: 600; }
.capability:nth-child(2) .meta { border-color: var(--line-dark); color: var(--coral); }

/* ---- Private AI ------------------------------------------------------------------------------------------ */
.ai-shell { margin-top: 56px; border-radius: var(--radius); background: var(--black); border: 1px solid var(--line-dark); overflow: hidden; transform: perspective(1400px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); transition: transform .2s ease-out; }
.ai-shell-bar { display: flex; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line-dark); font: 500 .8rem/1 ui-monospace, Consolas, monospace; color: var(--on-dark-3); }
.ai-diagram { display: grid; justify-items: center; padding: 44px 24px; }
.ai-core { display: inline-flex; align-items: center; gap: 12px; padding: 14px 26px; border-radius: 999px; background: var(--coral); color: var(--text); font-weight: 600; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--text); animation: breathe 2.6s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .35; } }
.ai-users { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; width: 100%; margin-top: 40px; }
.ai-users::before { content: ""; position: absolute; left: 16.6%; right: 16.6%; top: -22px; height: 22px; border: 1px solid var(--line-dark); border-bottom: 0; }
.ai-user { display: grid; gap: 6px; padding: 20px; border-radius: 14px; background: var(--ink); text-align: center; }
.ai-user strong { font-weight: 600; }
.ai-user span { color: var(--on-dark-3); font-size: .9rem; }
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } .ai-shell { transition: none; } }

/* ---- Delivery ------------------------------------------------------------------------------------------------ */
.process { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.process li { display: grid; align-content: start; gap: 12px; padding: 24px; border-radius: var(--radius); background: var(--grey); }
.step-no { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--black); color: #fff; font-weight: 600; font-size: .85rem; }
.process h3 { font-size: 1.2rem; letter-spacing: -.02em; }
.process p:not(.meta) { color: var(--text-2); font-size: .95rem; }
.deploy-stage { position: relative; margin-top: 40px; }
.process-shot { margin: 0; }
.process-shot img { width: 100%; height: auto; border-radius: var(--radius); }
.process-shot figcaption { margin-top: 10px; color: var(--text-3); font-size: .88rem; }
.shot-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.deploy-terminal { position: absolute; right: 24px; bottom: 56px; display: grid; gap: 6px; padding: 16px 20px; border-radius: 14px; background: var(--black); color: var(--on-dark-2); font: 500 .82rem/1.3 ui-monospace, Consolas, monospace; box-shadow: 0 20px 40px rgba(0,0,0,.35); }
.deploy-terminal b { color: var(--live); font-weight: 600; }
.deploy-terminal small { color: var(--on-dark-3); }

/* ---- Contact: large dark card with the swoosh ------------------------------------------------------------------- */
.contact { padding-block: clamp(56px, 7vw, 96px); }
.cta-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); padding: clamp(32px, 5vw, 72px); border-radius: 28px; background: var(--ink); overflow: hidden; }
.cta-swoosh { position: absolute; left: -12%; top: -30%; width: 70%; max-width: none; height: auto; opacity: .9; pointer-events: none; }
.cta-head, .cta-body { position: relative; }
.contact-lead { font-size: clamp(2.4rem, 4.6vw, 4.2rem); font-weight: 600; line-height: 1; letter-spacing: -.045em; }
.contact-copy { color: var(--on-dark-2); font-size: 1.1rem; margin-bottom: 28px; }
.contact-list { border-top: 1px solid var(--line-dark); }
.contact-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) 24px; gap: 16px; align-items: center; padding: 18px 4px; border-bottom: 1px solid var(--line-dark); transition: color .2s ease; }
.contact-row:hover { color: var(--coral); }
.contact-row span:first-child { color: var(--on-dark-3); font-size: .92rem; }
.contact-row strong { font-weight: 600; font-size: 1.08rem; overflow-wrap: anywhere; }
.contact-row .arrow { color: var(--coral); }

/* ---- Footer: big white card on black --------------------------------------------------------------------------------- */
.site-footer { background: var(--black); padding: 0 0 32px; }
.footer-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; padding: clamp(32px, 5vw, 64px); border-radius: 28px; background: #fff; color: var(--text); }
.footer-statement { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 600; line-height: 1; letter-spacing: -.05em; }
.footer-links { display: grid; grid-template-columns: repeat(2, auto); gap: 12px 48px; align-content: start; font-weight: 600; }
.footer-links a:hover { color: var(--coral-deep); }
.footer-base { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 24px; border-top: 2px solid var(--coral); color: var(--text-2); font-size: .9rem; }
.footer-brand { font-weight: 700; color: var(--coral-deep); }
.footer-base a:hover { color: var(--coral-deep); }

/* ---- Project quick view (dialog) ---------------------------------------------------------------------------------------- */
.project-dialog { width: min(860px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: 24px; background: #fff; color: var(--text); box-shadow: 0 40px 100px rgba(0,0,0,.5); }
.project-dialog::backdrop { background: rgba(13,13,13,.72); }
.dialog-body { position: relative; padding: clamp(24px, 5vw, 52px); }
.dialog-body > .label, .project-page .label { color: var(--coral-deep); }
.dialog-body h2, .project-page h1 { margin: 10px 48px 14px 0; font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.05; letter-spacing: -.035em; }
.dialog-lead { margin-bottom: 24px; color: var(--text-2); font-size: 1.1rem; }
.dialog-actions { margin-bottom: 8px; }
.dialog-actions .btn-primary { background: var(--black); color: #fff; }
.dialog-actions .btn-primary:hover { background: var(--coral-deep); }
.shots { display: flex; gap: 12px; margin-top: 20px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.shot { position: relative; flex: 0 0 auto; height: 260px; padding: 0; border: 0; border-radius: 12px; overflow: hidden; scroll-snap-align: start; background: var(--grey); cursor: zoom-in; }
.shot img { height: 100%; width: auto; object-fit: cover; object-position: top; }
.shot-phone { width: 130px; }
.shot-phone img { width: 100%; }
.shot-tag { position: absolute; left: 8px; bottom: 8px; padding: 3px 10px; border-radius: 999px; background: var(--black); color: #fff; font-size: .74rem; font-weight: 600; }
.shot-caption { margin-top: 8px; color: var(--text-3); font-size: .85rem; }
.dialog-facts { margin: 28px 0 0; border-top: 1px solid var(--line); }
.dialog-facts > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.dialog-facts dt { color: var(--text-3); font-weight: 600; font-size: .9rem; }
.dialog-facts dd { margin: 0; }
.dialog-facts ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.dialog-facts li::marker { color: var(--coral); }
.model { display: grid; gap: 8px; }
.model-row { font-size: .95rem; }
.model-row .arrow { color: var(--coral-deep); }
.dialog-close { position: absolute; top: 18px; right: 18px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--grey); color: var(--text); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.dialog-close:hover { background: var(--coral); }
.dialog-link { border-bottom: 1px solid var(--line); }
.dialog-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.dialog-nav button, .dialog-nav a { display: grid; gap: 4px; padding: 16px 18px; border: 0; border-radius: 14px; background: var(--grey); color: var(--text); text-align: left; font-weight: 600; font-size: .95rem; cursor: pointer; transition: background .2s ease, color .2s ease; }
.dialog-nav > :last-child { text-align: right; }
.dialog-nav span { color: var(--text-3); font-size: .8rem; font-weight: 500; }
.dialog-nav button:hover, .dialog-nav a:hover { background: var(--black); color: #fff; }

/* ---- Screenshot viewer ------------------------------------------------------------------------------------------------------ */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(13,13,13,.96); color: #fff; }
.lightbox[open] { display: grid; grid-template-columns: 72px minmax(0, 1fr) 72px; align-items: center; }
.lightbox::backdrop { background: transparent; }
.lb-figure { margin: 0; display: grid; justify-items: center; gap: 12px; max-height: 100vh; padding: 56px 0 24px; }
.lb-figure img { max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; border-radius: 10px; }
.lb-figure figcaption { font-size: .9rem; color: var(--on-dark-2); text-align: center; }
.lb-btn { width: 48px; height: 48px; justify-self: center; border: 0; border-radius: 50%; background: var(--butter); color: var(--text); font-size: 1.1rem; cursor: pointer; }
.lb-btn:hover { background: #fff; }
.lb-close { position: absolute; top: 14px; right: 14px; }

/* ---- Project pages (work/<id>/) ----------------------------------------------------------------------------------------------- */
body:has(.project-page) { background: var(--grey); }
.project-page { max-width: 900px; margin-block: 40px 80px; padding-block: clamp(28px, 4vw, 52px); border-radius: 28px; background: #fff; color: var(--text); }
.crumbs { margin-bottom: 24px; color: var(--text-3); font-size: .9rem; }
.crumbs a:hover { color: var(--coral-deep); }
.project-cta { display: grid; gap: 24px; margin-top: 56px; padding: clamp(24px, 4vw, 40px); border-radius: 20px; background: var(--ink); color: #fff; }
.project-cta .contact-lead { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }

/* ---- Travel layer: warp field, journey route, content arriving from depth --------------------------------------------------- */
/* Decorations (hero cards, arriving content) must never cause sideways scrolling. */
main { overflow-x: clip; }
.warp { position: fixed; inset: 0; z-index: -2; width: 100vw; height: 100vh; pointer-events: none; }

/* Route: a vertical line with one stop per section; the marker travels along it. */
.route { position: fixed; left: clamp(10px, 1.4vw, 24px); top: 50%; z-index: 40; display: grid; gap: 18px; translate: 0 -50%; padding: 8px 10px 8px 6px; border-radius: 14px; background: rgba(13,13,13,.55); }
.route-line { position: absolute; left: 11px; top: 16px; bottom: 16px; width: 1px; background: #444; }
.route-marker { --progress: 0; position: absolute; left: -4px; top: calc(var(--progress) * 100%); width: 9px; height: 9px; margin-top: -4px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px rgba(255,94,79,.2), 0 0 16px rgba(255,94,79,.8); }
.route a { position: relative; display: flex; align-items: center; gap: 12px; width: max-content; color: #9a9a9a; font-weight: 600; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; }
.route a i { width: 11px; height: 11px; border: 1.5px solid #666; border-radius: 50%; background: var(--black); transition: border-color .3s ease, background .3s ease, transform .3s ease; }
.route a span { opacity: 0; translate: -6px 0; transition: opacity .25s ease, translate .25s ease; }
.route:hover a span, .route a:focus-visible span, .route a[aria-current] span { opacity: 1; translate: 0 0; }
.route a:hover, .route a[aria-current] { color: #fff; }
.route a[aria-current] i { border-color: var(--coral); background: var(--coral); transform: scale(1.15); }

/* Narrower screens: the route becomes a thin progress bar under the header. */
.route-bar { display: none; height: 3px; background: #222; }
.route-bar span { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--coral); }
@media (max-width: 1440px) {
  .route { display: none; }
  .route-bar { display: block; }
}

/* Each band's content travels towards the visitor as it scrolls into view. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    main > .band > .wrap {
      animation: arrive linear both;
      animation-timeline: view();
      animation-range: entry 0px entry 70vh;
      transform-origin: 50% 0%;
    }
    @keyframes arrive {
      from { opacity: 0; transform: perspective(1200px) translateZ(-280px); filter: blur(3px); }
      to { opacity: 1; transform: none; filter: none; }
    }
  }
}
@media (prefers-reduced-motion: reduce) { .route-marker, .route a i, .route a span { transition: none; } }

/* ---- Responsive ------------------------------------------------------------------------------------------------------------------ */
@media (max-width: 1100px) {
  .hero-inner, .glance-inner, .split, .section-head, .cta-card { grid-template-columns: 1fr; }
  .hero h1 { max-width: 13ch; }
  .hero-stage { max-width: 640px; width: 100%; justify-self: center; }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .owns, .capabilities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-swoosh { width: 110%; top: -20%; }
}
@media (max-width: 760px) {
  .site-header nav a:not(.btn) { display: none; }
  .band { padding-block: 64px; }
  .work-list, .owns, .capabilities, .process { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: minmax(160px, auto); }
  .bento .stat:nth-child(n) { grid-column: auto; grid-row: auto; }
  .points > div, .toolbox > div, .dialog-facts > div { grid-template-columns: 1fr; gap: 6px; }
  .ai-users { grid-template-columns: 1fr; }
  .ai-users::before { display: none; }
  .footer-card { grid-template-columns: 1fr; }
  .contact-row { grid-template-columns: 80px minmax(0, 1fr) 18px; }
  .deploy-terminal { position: static; margin-top: 12px; }
  .stage-card-code { display: none; }
  .dialog-nav { grid-template-columns: 1fr; }
  .dialog-nav > :last-child { text-align: left; }
  .lightbox[open] { grid-template-columns: 0 minmax(0, 1fr) 0; }
  .lb-prev, .lb-next { position: absolute; bottom: 18px; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { left: calc(50% + 12px); }
  .lb-figure { padding: 56px 8px 84px; }
  .shot { height: 200px; }
  .shot-phone { width: 100px; }
}
