@font-face {
  font-family: "Inter";
  src: url("/static/fonts/inter.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/static/fonts/ibm-plex-sans.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  /* Brand v1 (Oct 2026): deep navy, teal spot. Token names kept from the first site. */
  --stone: #f3f5f9;       /* light tint of Cloud #E9EDF3 */
  --white: #ffffff;
  --ink: #13294b;         /* Deep navy */
  --cobalt: #176e6e;      /* teal for text and links (darker than #1F8A8A so it passes contrast) */
  --cobalt-deep: #0f5555;
  --cobalt-block: #0f4c5c;/* deep teal feature blocks */
  --hay: #3fc1b5;         /* Light teal: accents on dark backgrounds */
  --spot: #1f8a8a;        /* Teal: the logo spot, rules, underlines */
  --slate: #4a5568;       /* Graphite */
  --line: #d5dce5;
  --green: #17693f;
  --display: "Inter", "Helvetica Neue", Arial, sans-serif;
  --body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.65;
}
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6vw + 0.75rem, 5.5rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 2.5vw + 1rem, 2.75rem); }
h3 { font-size: 1.375rem; line-height: 1.2; }
p { margin: 0 0 1em; max-width: 68ch; }
a { color: var(--cobalt); text-underline-offset: 0.18em; }
a:hover { color: var(--cobalt-deep); }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 2px; }
img, svg { max-width: 100%; }

.wrap { width: min(100% - 2.5rem, 1160px); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: var(--white); padding: 0.75rem 1rem; z-index: 100; }
.skip:focus { top: 1rem; color: var(--white); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--stone); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em; color: var(--ink); text-decoration: none; min-height: 44px; }
.logo-img { height: 30px; width: auto; display: block; }
.about-logo { display: block; width: min(100%, 20rem); height: auto; }
.logo:hover { color: var(--ink); }
.nav-desktop { display: none; gap: 2rem; }
.nav-desktop a, .mobile-menu nav a { font-family: var(--display); font-weight: 600; color: var(--ink); text-decoration: none; }
.nav-desktop a { padding: 0.75rem 0; border-bottom: 3px solid transparent; }
.nav-desktop a:hover, .nav-desktop a[aria-current] { border-bottom-color: var(--spot); }
.menu-button, .menu-close { display: inline-grid; place-items: center; width: 48px; height: 48px; background: none; border: 0; color: var(--ink); cursor: pointer; }
@media (min-width: 760px) {
  .nav-desktop { display: flex; }
  .menu-button { display: none; }
}

.mobile-menu { position: fixed; inset: 0; z-index: 50; background: var(--ink); color: var(--white); padding: 0 1.25rem 2rem; overflow-y: auto; }
.mobile-menu[hidden] { display: none; }
.mobile-menu-top { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.mobile-menu .logo, .mobile-menu .menu-close { color: var(--white); }
.mobile-menu nav { display: grid; margin-top: 1.5rem; }
.mobile-menu nav a { color: var(--white); font-size: 2rem; font-weight: 700; padding: 0.6rem 0; border-bottom: 1px solid rgb(255 255 255 / 0.25); }
.mobile-menu nav a[aria-current] { color: var(--hay); }
body.menu-open { overflow: hidden; }

/* Sections */
.section { padding-block: clamp(3rem, 5.5vw, 5rem); }
.section-white { background: var(--white); }
.section-ink { background: var(--ink); color: var(--white); }
.section-cobalt { background: var(--cobalt-block); color: var(--white); }
.section-hay { background: var(--hay); }
.section-head { margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.section-head p { margin-top: 1rem; color: var(--slate); }
.section-ink .section-head p, .section-cobalt p { color: rgb(255 255 255 / 0.85); }
.lede { font-size: clamp(1.2rem, 1vw + 1rem, 1.5rem); line-height: 1.5; max-width: 62ch; }

/* Hero */
.hero { padding-block: clamp(3rem, 9vw, 7.5rem) clamp(3rem, 7vw, 5.5rem); animation: fadeIn 0.7s ease both; }
.hero h1 { max-width: 14ch; }
.hero .lede { margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.page-hero { padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(2rem, 5vw, 3.5rem); animation: fadeIn 0.7s ease both; }
.page-hero h1 { font-size: clamp(2.25rem, 4.5vw + 0.75rem, 4.25rem); max-width: 18ch; }
.page-hero .lede { margin-top: 1.5rem; }
.rule { display: block; width: 5.5rem; height: 0.6rem; background: var(--spot); margin-bottom: 1.75rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; margin-top: 2rem; }

.button { display: inline-flex; align-items: center; min-height: 52px; padding: 0.7rem 1.5rem; font-family: var(--display); font-weight: 700; font-size: 1.0625rem; text-decoration: none; border-radius: 6px; border: 2px solid var(--cobalt); background: var(--cobalt); color: var(--white); transition: all 0.2s; }
.button:hover { transform: scale(1.02); box-shadow: 0 14px 30px -12px rgb(36 71 214 / 0.55); color: var(--white); }
.button:active { transform: scale(0.98); }
.button-quiet { background: transparent; color: var(--cobalt); }
.button-quiet:hover { color: var(--cobalt-deep); box-shadow: none; }
.section-ink .button, .section-cobalt .button { background: var(--hay); border-color: var(--hay); color: var(--ink); }
.section-ink .button:hover, .section-cobalt .button:hover { color: var(--ink); box-shadow: 0 14px 30px -12px rgb(0 0 0 / 0.5); }

/* Metrics */
.metrics { display: flex; flex-wrap: wrap; }
.metric { flex: 1 1 10rem; padding: 0.5rem 1.5rem 0.5rem 0; }
.metric + .metric { border-left: 1px solid rgb(255 255 255 / 0.25); padding-left: 1.5rem; }
.metric b { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1; letter-spacing: -0.03em; color: var(--hay); }
.metric span { display: block; margin-top: 0.4rem; font-size: 1rem; }
@media (max-width: 560px) {
  .metric { flex-basis: 100%; padding: 1rem 0; }
  .metric + .metric { border-left: 0; border-top: 1px solid rgb(255 255 255 / 0.25); padding-left: 0; }
}


/* Ledger */
.ledger { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.ledger-row a { display: grid; gap: 0.35rem 1.5rem; padding: 1.25rem 0.5rem; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: background-color 0.2s, padding-left 0.2s; }
.ledger-row a:hover { background: var(--white); padding-left: 1rem; }
.ledger-name { font-family: var(--display); font-weight: 700; font-size: 1.3rem; line-height: 1.2; letter-spacing: -0.015em; }
.ledger-row a:hover .ledger-name { color: var(--cobalt); }
.ledger-what { color: var(--slate); font-size: 1rem; line-height: 1.5; }
.ledger-for { font-size: 1rem; }
.ledger .chip { justify-self: start; }
@media (min-width: 900px) {
  .ledger-row a { grid-template-columns: 1.2fr 1.6fr 1fr 9.5rem; align-items: baseline; }
  .ledger .chip { justify-self: end; }
}

.chip { display: inline-flex; align-items: center; gap: 0.45rem; font-family: var(--display); font-weight: 600; font-size: 0.875rem; line-height: 1; padding: 0.4rem 0.7rem; border-radius: 999px; white-space: nowrap; border: 1px solid var(--line); background: var(--white); color: var(--slate); }
.chip::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor; }
.chip-live { color: var(--green); border-color: #b9d8c6; }
.chip-dev { color: var(--cobalt); border-color: #c3cdf3; }
.chip-proto { color: var(--slate); }

/* Cards */
.card-hover { transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.card-hover:hover { transform: translateY(-2px); box-shadow: 0 8px 30px -12px rgb(36 71 214 / 0.25); border-color: rgb(36 71 214 / 0.35); }
.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16.5rem), 1fr)); }
.cards-wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.card { background: var(--stone); border: 1px solid var(--line); border-radius: 10px; padding: 1.75rem; }
.section:not(.section-white) .card { background: var(--white); }
.card .icon { width: 44px; height: 44px; color: var(--cobalt); margin-bottom: 1.1rem; }
.card h3 { margin-bottom: 0.6rem; }
.card p { font-size: 1.0625rem; margin: 0; }
.card p + p { margin-top: 0.75em; }

/* Projects (work page) */
.projects { display: grid; gap: 1.25rem; }
.project { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: clamp(1.5rem, 3.5vw, 2.5rem); display: grid; gap: 1.25rem 3rem; }
.project-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; }
.project-head h2 { font-size: clamp(1.5rem, 1.6vw + 1rem, 2.125rem); }
.project-shot { margin: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--stone); }
.project-shot img { display: block; width: 100%; height: auto; }
.project-shot-wide img { aspect-ratio: 16 / 9; object-fit: cover; object-position: top; }
.project-shot-phone { display: grid; place-items: center; padding: 1.5rem 1rem 0; }
.project-shot-phone img { width: min(100%, 17.5rem); height: 26rem; object-fit: cover; object-position: top; border-radius: 1.25rem 1.25rem 0 0; border: 1px solid var(--line); border-bottom: 0; box-shadow: 0 18px 40px -18px rgb(21 32 43 / 0.45); }
.project-body p:last-child { margin-bottom: 0; }
.project-link a { font-family: var(--display); font-weight: 700; display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; }
.project-facts { margin: 0; display: grid; gap: 0.9rem; align-content: start; font-size: 1rem; line-height: 1.45; }
.project-facts dt { font-family: var(--display); font-weight: 600; color: var(--slate); font-size: 0.9375rem; }
.project-facts dd { margin: 0.1rem 0 0; }
@media (min-width: 860px) {
  .project { grid-template-columns: 1.7fr 1fr; }
  .project-head, .project-shot { grid-column: 1 / -1; }
  .project-facts { border-left: 1px solid var(--line); padding-left: 2rem; }
}

/* Steps timeline */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; counter-reset: step; }
.steps li { position: relative; padding-left: 4.25rem; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; background: var(--cobalt); color: var(--white); font-family: var(--display); font-weight: 800; font-size: 1.25rem; z-index: 1; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: calc(1.5rem - 1px); top: 3rem; bottom: -2rem; width: 2px; background: var(--line); }
.steps h3 { margin-bottom: 0.4rem; padding-top: 0.6rem; }
.steps p { margin: 0; font-size: 1.0625rem; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
  .steps li { padding-left: 0; padding-top: 4.25rem; }
  .steps li:not(:last-child)::after { left: 3rem; right: -2rem; top: calc(1.5rem - 1px); bottom: auto; width: auto; height: 2px; }
  .steps h3 { padding-top: 0; }
}

/* FAQ accordion */
.faq { border-top: 2px solid var(--ink); max-width: 52rem; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item h3 { font-size: inherit; }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 64px; padding: 1rem 0.25rem; background: none; border: 0; text-align: left; color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 1.25rem; line-height: 1.25; cursor: pointer; }
.faq-q svg { flex: none; color: var(--cobalt); transition: transform 0.25s ease; }
.faq-q[aria-expanded="true"] svg { transform: rotate(180deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s ease; }
.faq-item:has(.faq-q[aria-expanded="true"]) .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; visibility: hidden; transition: visibility 0.3s; }
.faq-item:has(.faq-q[aria-expanded="true"]) .faq-a > div { visibility: visible; }
.faq-a p { padding: 0 0.25rem 1.25rem; margin: 0; }

/* People */
.people { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.person { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: clamp(1.5rem, 3vw, 2.25rem); }
.person .initials { width: 4rem; height: 4rem; border-radius: 50%; display: grid; place-items: center; background: var(--cobalt); color: var(--white); font-family: var(--display); font-weight: 800; font-size: 1.4rem; margin-bottom: 1.25rem; }
.person:nth-child(2) .initials { background: var(--hay); color: var(--ink); }
.person h2, .person h3 { font-size: 1.75rem; }
.person .role { font-family: var(--display); font-weight: 600; color: var(--slate); margin: 0.35rem 0 1rem; }
.person p:last-child { margin-bottom: 0; }

.split { display: grid; gap: clamp(1.5rem, 4vw, 4rem); }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1.3fr; } }

.prose h2 { font-size: clamp(1.4rem, 1.2vw + 1rem, 1.875rem); margin: 2.25rem 0 0.75rem; }
.prose ul { padding-left: 1.2rem; max-width: 68ch; }
.prose li { margin-bottom: 0.4rem; }

.contact-mail { font-family: var(--display); font-weight: 800; font-size: clamp(1.75rem, 5.5vw, 3.75rem); letter-spacing: -0.03em; line-height: 1.1; overflow-wrap: anywhere; color: var(--white); text-decoration-color: var(--hay); text-decoration-thickness: 0.12em; }
.contact-mail:hover { color: var(--hay); }

/* Footer */
.site-footer { background: var(--ink); color: rgb(255 255 255 / 0.85); padding-block: 3.5rem 2rem; font-size: 1rem; border-top: 1px solid rgb(255 255 255 / 0.2); }
.footer-inner { display: grid; gap: 2rem; }
.footer-name { font-family: var(--display); font-weight: 800; font-size: 1.5rem; color: var(--white); margin-bottom: 0.4rem; }
.site-footer nav { display: grid; gap: 0.1rem; align-content: start; }
.site-footer a { color: var(--white); display: inline-flex; align-items: center; min-height: 44px; }
.site-footer a:hover { color: var(--hay); }
.footer-small { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgb(255 255 255 / 0.2); font-size: 0.9375rem; max-width: none; }
@media (min-width: 760px) { .footer-inner { grid-template-columns: 2fr 1fr 1.2fr; } .footer-mail { text-align: right; } }

/* Motion */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes revealUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal { animation: revealUp 0.6s ease both; animation-timeline: view(); animation-range: entry 0% entry 30%; }
  }
}
@supports not (animation-timeline: view()) {
  .reveal { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ---------- Home (Oct 2026 redesign) ---------- */
.eyebrow { font-family: var(--display); font-weight: 700; font-size: 0.875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cobalt); margin: 0 0 0.9rem; display: flex; align-items: center; gap: 0.6rem; }
.eyebrow::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--spot); }
.kicker { font-family: var(--display); font-weight: 600; font-size: 0.9375rem; color: var(--cobalt); margin: 0 0 0.6rem; }
.section-ink .button-quiet { background: transparent; border-color: rgb(255 255 255 / 0.4); color: var(--white); }
.section-ink .button-quiet:hover { border-color: var(--hay); color: var(--hay); box-shadow: none; }

/* Hero */
.hero-stage { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(3rem, 7vw, 6rem) clamp(3.5rem, 8vw, 6.5rem); }
.hero-stage::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: radial-gradient(rgb(63 193 181 / 0.28) 1.2px, transparent 1.7px); background-size: 26px 26px; -webkit-mask-image: radial-gradient(ellipse 75% 70% at 72% 45%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 75% 70% at 72% 45%, #000 20%, transparent 75%); }
.hero-stage::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(36rem circle at var(--mx, 72%) var(--my, 40%), rgb(31 138 138 / 0.38), transparent 62%); }
.hero-glow { position: absolute; z-index: -1; width: 46rem; height: 46rem; left: -18rem; bottom: -30rem; border-radius: 50%; background: radial-gradient(circle, rgb(63 193 181 / 0.22), transparent 65%); animation: drift 18s ease-in-out infinite alternate; pointer-events: none; }
@keyframes drift { to { transform: translate(14rem, -6rem) scale(1.15); } }
.hero-grid { display: grid; gap: clamp(3rem, 6vw, 4rem); align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1fr 1.08fr; } }
.hero-stage h1 { color: var(--white); font-size: clamp(2.6rem, 3.6vw + 0.8rem, 4.4rem); max-width: 12ch; }
.hero-stage h1 .accent { color: var(--hay); }
.hero-stage .lede { margin-top: clamp(1.5rem, 3vw, 2rem); color: rgb(255 255 255 / 0.82); }
.rule-in { background: var(--hay); transform-origin: left; animation: ruleIn 0.8s cubic-bezier(.2,.7,.2,1) both; }
@keyframes ruleIn { from { transform: scaleX(0); } }
.w { display: inline-block; animation: wordUp 0.9s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i) * 60ms + 120ms); }
@keyframes wordUp { from { opacity: 0; transform: translateY(0.45em); filter: blur(8px); } }
.hero-in { animation: riseIn 0.9s cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--d, 0ms); }
@keyframes riseIn { from { opacity: 0; transform: translateY(18px); } }

/* Device frames */
.browser { border-radius: 12px; overflow: hidden; background: var(--white); box-shadow: 0 50px 100px -30px rgb(3 10 25 / 0.7), 0 0 0 1px rgb(255 255 255 / 0.12); }
.browser-bar { display: flex; align-items: center; gap: 0.45rem; height: 2.5rem; padding: 0 0.9rem; background: #e9edf3; border-bottom: 1px solid #d5dce5; }
.browser-bar i { flex: none; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: #c6cfdb; }
.browser-url { margin-left: 0.6rem; flex: 0 1 18rem; min-width: 0; height: 1.65rem; border-radius: 6px; background: var(--white); color: var(--slate); font: 600 0.875rem/1.65rem var(--display); padding: 0 0.7rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; transition: opacity 0.3s; }
.screens { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--stone); }
.screens img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transform: scale(1.06); transition: opacity 0.9s ease, transform 5s cubic-bezier(.2,.7,.2,1); }
.screens img.is-on { opacity: 1; transform: scale(1); }
.phone { border-radius: 2rem; padding: 0.5rem; background: #0a1428; box-shadow: 0 40px 80px -25px rgb(3 10 25 / 0.75), 0 0 0 1px rgb(255 255 255 / 0.16), inset 0 0 0 1px rgb(255 255 255 / 0.08); }
.phone .screens { aspect-ratio: 9 / 19.5; border-radius: 1.5rem; background: #fff; }

/* Hero stage */
.stage { position: relative; perspective: 1800px; padding-bottom: 14%; animation: riseIn 1.1s 0.35s cubic-bezier(.2,.7,.2,1) both; }
.stage-inner { position: relative; transform-style: preserve-3d; transform: rotateY(var(--ry, -10deg)) rotateX(var(--rx, 6deg)); transition: transform 0.7s cubic-bezier(.2,.7,.2,1); }
.stage-phone { position: absolute; left: -4%; bottom: -20%; width: 28%; transform: translateZ(70px); animation: phoneIn 1.1s 0.65s cubic-bezier(.2,.7,.2,1) both; }
@keyframes phoneIn { from { opacity: 0; transform: translateZ(70px) translateY(60px); } }
@media (max-width: 999px) { .stage { max-width: 40rem; margin-inline: auto; width: 100%; } .stage-phone { left: auto; right: -2%; } }

/* Marquee */
.marquee { background: var(--white); border-bottom: 1px solid var(--line); padding-block: 1.75rem 2rem; overflow: hidden; }
.marquee-label { text-align: center; font-family: var(--display); font-weight: 700; font-size: 0.875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate); margin: 0 0 1rem; }
.marquee-window { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; align-items: center; gap: 3rem; margin: 0; padding: 0 3rem 0 0; list-style: none; }
.marquee li { display: flex; align-items: center; gap: 3rem; white-space: nowrap; font-family: var(--display); font-weight: 700; font-size: clamp(1.15rem, 1vw + 0.8rem, 1.5rem); letter-spacing: -0.015em; color: var(--ink); opacity: 0.8; }
.marquee li::after { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--spot); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Product showcases */
.showcase { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.showcase + .showcase { margin-top: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 900px) { .showcase { grid-template-columns: 1fr 1.15fr; } .showcase-rev { grid-template-columns: 1.3fr 1fr; } .showcase-rev .showcase-copy { order: 2; } }
.showcase h3 { font-size: clamp(2.25rem, 3.5vw + 1rem, 3.75rem); font-weight: 800; letter-spacing: -0.035em; margin-bottom: 1.1rem; }
.ticks { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.ticks li { position: relative; padding: 0.65rem 0 0.65rem 2rem; border-top: 1px solid var(--line); }
.ticks li:last-child { border-bottom: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 0.1rem; top: 1.05rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--spot) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 70% no-repeat; }
.showcase-media { position: relative; isolation: isolate; overflow: hidden; border-radius: 20px; padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3.5rem); background: linear-gradient(140deg, var(--ink) 0%, var(--cobalt-block) 100%); min-height: 22rem; display: grid; place-items: center; }
.showcase-media::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgb(63 193 181 / 0.25) 1.2px, transparent 1.7px); background-size: 24px 24px; -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 10%, transparent 70%); mask-image: radial-gradient(circle at 50% 50%, #000 10%, transparent 70%); }
.showcase-media::after { content: ""; position: absolute; z-index: -1; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgb(63 193 181 / 0.35), transparent 65%); }
.parallax { width: 100%; display: grid; place-items: center; transform: translateY(calc(var(--p, 0) * 1px)); }
.showcase-phone { width: min(62%, 17rem); transform: rotate(-4deg); }
.showcase-browser { width: 100%; transform: perspective(2000px) rotateY(-5deg) rotateX(2deg); }

/* Selected work */
.work-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); }
.work-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--stone); color: var(--ink); text-decoration: none; transition: transform 0.35s cubic-bezier(.2,.7,.2,1), box-shadow 0.35s, border-color 0.35s; }
.work-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgb(19 41 75 / 0.45); border-color: rgb(31 138 138 / 0.5); }
.work-shot { aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink); }
.work-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform 0.9s cubic-bezier(.2,.7,.2,1); }
.work-card:hover .work-shot img { transform: scale(1.05); }
.work-shot-phone { display: grid; place-items: end center; padding-top: 1.75rem; background: linear-gradient(160deg, #46552f, #2a3420); }
.work-shot-phone img { width: 46%; height: 100%; border-radius: 1.25rem 1.25rem 0 0; box-shadow: 0 20px 40px -15px rgb(0 0 0 / 0.6); }
.work-meta { padding: 1.5rem 1.75rem 1.75rem; }
.work-meta h3 { margin-bottom: 0.5rem; }
.work-meta p { margin: 0; font-size: 1.0625rem; color: var(--slate); }
.work-more { display: inline-block; margin-top: 1rem; font-family: var(--display); font-weight: 700; color: var(--cobalt); }
.work-more span { display: inline-block; transition: transform 0.3s; }
.work-card:hover .work-more span { transform: translateX(5px); }
.all-work { margin-top: clamp(2.5rem, 5vw, 4rem); }
.all-work h3 { font-size: clamp(1.5rem, 1.5vw + 1rem, 2rem); }

/* Small touches */
.card .icon { transition: transform 0.35s cubic-bezier(.2,.7,.2,1), color 0.35s; }
.card-hover:hover .icon { transform: translateY(-3px) rotate(-6deg); color: var(--spot); }
.cta-band { position: relative; overflow: hidden; isolation: isolate; }
.cta-band .hero-glow { left: auto; right: -20rem; bottom: -28rem; }

/* Scroll reveal: hidden only when JS is running and motion is allowed */
@media (prefers-reduced-motion: no-preference) {
  .reveal-on [data-in] { opacity: 0; transform: translateY(24px); transition: opacity 0.5s ease, transform 0.6s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
  .reveal-on [data-in].in { opacity: 1; transform: none; }
  .reveal-on .showcase-media[data-in] { transform: translateY(30px) scale(0.98); }
  .reveal-on .showcase-media[data-in].in { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .hero-glow { animation: none; }
}

/* Contact form */
.contact-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1.6fr 1fr; } }
.contact-form { display: grid; gap: 1.35rem; }
.field-row { display: grid; gap: 1.35rem; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.45rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-family: var(--display); font-weight: 600; font-size: 1rem; color: var(--ink); padding: 0; margin-bottom: 0.45rem; }
.optional { font-weight: 400; color: var(--slate); }
.field input, .field textarea { width: 100%; font: inherit; font-size: 1.0625rem; color: var(--ink); background: var(--stone); border: 1.5px solid var(--line); border-radius: 8px; padding: 0.8rem 0.95rem; transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s; }
.field textarea { resize: vertical; min-height: 9rem; line-height: 1.55; }
.field input:focus, .field textarea:focus { outline: none; background: var(--white); border-color: var(--spot); box-shadow: 0 0 0 4px rgb(31 138 138 / 0.15); }
.field [aria-invalid="true"] { border-color: #b42318; }
.choices { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.choice { position: relative; margin: 0 !important; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 0.55rem 1rem; border: 1.5px solid var(--line); border-radius: 999px; background: var(--stone); font-family: var(--display); font-weight: 600; font-size: 0.9375rem; color: var(--ink); transition: all 0.2s; }
.choice:hover span { border-color: var(--spot); }
.choice input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.choice input:focus-visible + span { box-shadow: 0 0 0 4px rgb(31 138 138 / 0.3); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: 0; font-size: 0.9375rem; color: var(--slate); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.form-actions .button { cursor: pointer; }
.form-actions .button:disabled { opacity: 0.6; cursor: progress; }
.form-status { margin: 0; font-family: var(--display); font-weight: 600; }
.form-status.is-error { color: #b42318; }
.contact-aside { display: grid; gap: 1.25rem; }
.aside-card { background: var(--stone); border: 1px solid var(--line); border-radius: 14px; padding: 1.75rem; }
.aside-card h2 { font-size: 1.375rem; margin-bottom: 0.75rem; }
.aside-card p { font-size: 1.0625rem; }
.aside-card p:last-child { margin-bottom: 0; }
.aside-mail { font-family: var(--display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.02em; }
.aside-card .ticks { margin-top: 0.5rem; }
