/* Capital Web Co — shared styles */
/* Self-hosted fonts (variable, Latin) */
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('fonts/bricolage.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('fonts/manrope.woff2') format('woff2'); }

:root {
  --ink: #0A1019;
  --ink-2: #0E1622;
  --surface: #131D2C;
  --surface-2: #1A2638;
  --line: rgba(237, 232, 223, 0.1);
  --line-strong: rgba(237, 232, 223, 0.2);
  --text: #EDE8DF;
  --muted: #9AA6B8;
  --gold: #D8B877;
  --gold-hi: #F0D9A8;
  --gold-lo: #B98F4B;
  --teal: #7FD1BF;
  --radius: 14px;
  --radius-lg: 22px;
  --wrap: 1160px;
  --gutter: clamp(20px, 5vw, 48px);
  --display: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: 1.4rem; line-height: 1.2; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 10px 16px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 10vw, 128px); }
.section--tint { background: var(--ink-2); border-block: 1px solid var(--line); }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 58ch; line-height: 1.6; }
.muted { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; font-weight: 700; font-size: 1rem; font-family: var(--body);
  border: 1px solid transparent; cursor: pointer; transition: transform .18s ease, background .18s ease, border-color .18s ease;
  line-height: 1;
}
.btn--gold { background: linear-gradient(135deg, var(--gold-hi), var(--gold)); color: #1a1408; }
.btn--gold:hover { transform: translateY(-2px); background: linear-gradient(135deg, #fbe8bd, var(--gold-hi)); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--gold); transform: translateY(-2px); }
.btn--sm { padding: 11px 20px; font-size: .95rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 16, 25, 0.72);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(10, 16, 25, 0.88); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 700; font-size: 1.28rem; letter-spacing: -0.02em; }
.brand img { width: 46px; height: 46px; }
.brand span { color: var(--muted); font-weight: 400; }
.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__links a:not(.btn) { padding: 10px 14px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: .98rem; transition: color .18s ease, background .18s ease; }
.nav__links a:not(.btn):hover { color: var(--text); }
.nav__links a[aria-current="page"] { color: var(--text); background: var(--surface); }
.nav__links .btn { margin-left: 10px; }
.nav__toggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line-strong); background: transparent; color: var(--text); cursor: pointer; align-items: center; justify-content: center; }
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s ease, opacity .2s ease; }
.nav__toggle span::before, .nav__toggle span::after { content: ""; position: absolute; left: 0; }
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: absolute; left: 0; right: 0; top: 76px; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px var(--gutter) 28px; background: var(--ink); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a:not(.btn) { padding: 14px 16px; font-size: 1.1rem; }
  .nav__links .btn { margin: 10px 0 0; }
}

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(48px, 8vw, 104px) clamp(64px, 9vw, 120px); }
.hero::before {
  content: ""; position: absolute; width: 780px; height: 780px; right: -220px; top: -260px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(216, 184, 119, 0.2), rgba(216, 184, 119, 0) 70%);
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 0.4em; }
.hero .lede { margin-bottom: 2em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__note { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: .95rem; font-weight: 600; }
.hero__note li { display: inline-flex; align-items: center; gap: 8px; }
.hero__note li::before { content: ""; width: 7px; height: 7px; background: var(--teal); border-radius: 50%; }

/* Browser mock (the one memorable moment) */
.mock { position: relative; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--surface); box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(216,184,119,.04); overflow: hidden; }
.mock__bar { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.mock__dots { display: flex; gap: 7px; }
.mock__dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(237,232,223,.18); display: block; }
.mock__url { flex: 1; text-align: center; font-size: .82rem; color: var(--muted); background: var(--ink); border-radius: 999px; padding: 6px 12px; font-weight: 600; }
.mock__body { padding: 26px; display: grid; gap: 18px; min-height: 330px; }
.mock__nav { display: flex; align-items: center; justify-content: space-between; }
.mock__logo { width: 70px; height: 12px; border-radius: 6px; background: var(--gold); }
.mock__links { display: flex; gap: 10px; }
.mock__links i { width: 34px; height: 8px; border-radius: 4px; background: rgba(237,232,223,.18); display: block; }
.mock__hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; align-items: center; }
.mock__lines { display: grid; gap: 10px; }
.mock__lines .l1 { height: 18px; width: 92%; border-radius: 6px; background: var(--text); }
.mock__lines .l2 { height: 18px; width: 64%; border-radius: 6px; background: var(--text); }
.mock__lines .l3 { height: 8px; width: 80%; border-radius: 4px; background: rgba(237,232,223,.22); margin-top: 6px; }
.mock__lines .l4 { height: 8px; width: 58%; border-radius: 4px; background: rgba(237,232,223,.22); }
.mock__btn { margin-top: 8px; height: 30px; width: 108px; border-radius: 999px; background: linear-gradient(135deg, var(--gold-hi), var(--gold)); }
.mock__img { aspect-ratio: 1 / 1.05; border-radius: 14px; background: linear-gradient(160deg, #24344d, #172233 55%, #2b3a2f); position: relative; overflow: hidden; }
.mock__img::after { content: ""; position: absolute; width: 70%; height: 70%; right: -15%; bottom: -20%; border-radius: 50%; background: radial-gradient(closest-side, rgba(216,184,119,.5), rgba(216,184,119,0)); }
.mock__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mock__row i { height: 56px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); display: block; }
.mock__cursor { position: absolute; width: 22px; height: 22px; right: 26%; top: 56%; }
.mock__badge { position: absolute; right: 18px; bottom: 18px; background: var(--ink); border: 1px solid var(--line-strong); color: var(--teal); font-size: .78rem; font-weight: 700; padding: 8px 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; }
.mock__badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }

/* Page-load build sequence: runs once */
.js .mock [data-b] { opacity: 0; transform: translateY(10px); animation: build .6s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(var(--i, 0) * 140ms + 350ms); }
.js .mock__cursor { opacity: 0; animation: cursor 1.6s cubic-bezier(.4,0,.2,1) 1.7s forwards; }
@keyframes build { to { opacity: 1; transform: none; } }
@keyframes cursor {
  0% { opacity: 0; transform: translate(-90px, -70px); }
  20% { opacity: 1; }
  70% { opacity: 1; transform: translate(0, 0); }
  80% { transform: translate(0, 0) scale(.88); }
  100% { opacity: 1; transform: translate(0, 0) scale(1); }
}

@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; }
}

/* Section headings */
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head p { color: var(--muted); font-size: 1.15rem; }

/* Service rows */
.rows { border-top: 1px solid var(--line-strong); }
.row { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 24px 56px; padding-block: 36px; border-bottom: 1px solid var(--line); align-items: start; }
.row h3 { margin: 0; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.row p { color: var(--muted); margin: 0; max-width: 56ch; }
.row ul { margin-top: 18px; display: grid; gap: 10px; }
.row li { display: flex; gap: 12px; align-items: baseline; color: var(--text); font-size: 1rem; }
.row li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: .55em; border-radius: 2px; background: var(--gold); transform: rotate(45deg); }
@media (max-width: 760px) { .row { grid-template-columns: 1fr; gap: 12px; } }

/* Steps (a real sequence, so numbered) */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); overflow: hidden; background: var(--ink); }
.step { padding: 32px 28px 36px; border-right: 1px solid var(--line); }
.step:last-child { border-right: 0; }
.step b { font-family: var(--display); font-size: 2.4rem; color: var(--gold); line-height: 1; display: block; margin-bottom: 20px; letter-spacing: -0.03em; }
.step h3 { font-size: 1.25rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .98rem; margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } .step:nth-child(2) { border-right: 0; } .step:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .step { border-right: 0; border-bottom: 1px solid var(--line); } .step:last-child { border-bottom: 0; } }

/* Work tiles */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.work { display: block; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; transition: border-color .2s ease, transform .2s ease; }
.work:hover { border-color: rgba(216,184,119,.5); transform: translateY(-4px); }
.work__thumb { aspect-ratio: 16 / 10; background: linear-gradient(150deg, var(--surface-2), #0f1824); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.work__thumb img { width: 100%; height: 100%; object-fit: cover; }
.work__thumb .frame { width: 78%; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--ink); overflow: hidden; box-shadow: 0 24px 50px -20px rgba(0,0,0,.8); }
.frame__bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--surface); }
.frame__bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(237,232,223,.2); display: block; }
.frame__body { padding: 16px; display: grid; gap: 9px; }
.frame__body i { display: block; height: 10px; border-radius: 5px; background: rgba(237,232,223,.16); }
.frame__body i:first-child { width: 60%; height: 16px; background: var(--text); }
.frame__body i:nth-child(2) { width: 85%; }
.frame__body i:nth-child(3) { width: 45%; }
.frame__body i:last-child { width: 80px; height: 22px; border-radius: 999px; background: var(--gold); margin-top: 6px; }
.work__info { padding: 26px 28px 30px; }
.work__info h3 { margin-bottom: 6px; }
.work__info p { color: var(--muted); margin: 0 0 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tags li { font-size: .85rem; font-weight: 600; padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted); }
.work__link { font-weight: 700; color: var(--gold); display: inline-flex; gap: 8px; align-items: center; }
@media (max-width: 760px) { .work-grid { grid-template-columns: 1fr; } }

/* Feature pairs */
.pairs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.pairs h3 { font-size: 1.3rem; margin-bottom: 10px; }
.pairs p { color: var(--muted); margin: 0; }
.pairs > div { border-top: 2px solid var(--gold); padding-top: 22px; }
@media (max-width: 820px) { .pairs { grid-template-columns: 1fr; gap: 32px; } }

/* CTA band */
.cta { position: relative; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 28px; padding: clamp(36px, 6vw, 72px); background: linear-gradient(135deg, var(--surface-2), var(--surface)); }
.cta::after { content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -180px; background: radial-gradient(closest-side, rgba(216,184,119,.22), rgba(216,184,119,0)); pointer-events: none; }
.cta > * { position: relative; z-index: 1; }
.cta h2 { max-width: 16ch; }
.cta p { color: var(--muted); max-width: 52ch; margin-bottom: 28px; font-size: 1.1rem; }

/* Page header (inner pages) */
.page-head { padding-block: clamp(56px, 9vw, 112px) clamp(32px, 5vw, 56px); position: relative; overflow: hidden; }
.page-head::before { content: ""; position: absolute; width: 620px; height: 620px; right: -200px; top: -300px; background: radial-gradient(closest-side, rgba(216,184,119,.16), rgba(216,184,119,0)); pointer-events: none; }
.page-head h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); max-width: 18ch; }

/* About */
.split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.portrait { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); border: 1px solid var(--line-strong); background: linear-gradient(160deg, var(--surface-2), var(--ink-2)); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.portrait img.photo { width: 100%; height: 100%; object-fit: cover; }
.portrait .mark { width: 38%; opacity: .9; }
.portrait small { position: absolute; bottom: 16px; left: 18px; color: var(--muted); font-weight: 600; font-size: .85rem; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .portrait { max-width: 420px; } }

/* FAQ */
.faq { border-top: 1px solid var(--line-strong); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding-block: 4px; }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; font-family: var(--display); font-weight: 600; font-size: 1.25rem; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; color: var(--gold); transition: transform .2s ease; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 22px; margin: 0; max-width: 64ch; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 700; font-size: .95rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 12px; padding: 14px 16px; transition: border-color .18s ease, background .18s ease;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #66748a; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: var(--surface-2); }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 55%, calc(100% - 16px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.form__status { min-height: 1.5em; color: var(--teal); font-weight: 600; margin: 0; }
.aside { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; background: var(--surface); display: grid; gap: 26px; }
.aside h3 { font-size: 1.1rem; margin-bottom: 6px; }
.aside p { margin: 0; color: var(--muted); }
.aside a.mail { color: var(--gold); font-weight: 700; word-break: break-all; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 56px 36px; background: var(--ink-2); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer__grid p { color: var(--muted); max-width: 38ch; margin-top: 16px; }
.footer__grid h4 { font-size: 1rem; margin-bottom: 14px; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.footer__grid li + li { margin-top: 8px; }
.footer__grid a:hover { color: var(--gold); }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; } }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .mock [data-b], .js .mock__cursor { animation: none !important; opacity: 1 !important; transform: none !important; }
  .btn, .work { transition: none; }
}

/* Project thumbnails tinted to each client's brand */
.work__thumb--navy { background: linear-gradient(150deg, #173257, #0d1c33); }
.work__thumb--dark { background: linear-gradient(150deg, #1a1626, #07060b); }

/* ===== Motion layer ===== */
#fx { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
main, .site-footer { position: relative; z-index: 1; }
.section--tint { background: rgba(14, 22, 34, 0.62); }
.site-footer { background: rgba(14, 22, 34, 0.8); }
.hero::before, .page-head::before { opacity: .7; }

.glow { position: fixed; left: 0; top: 0; width: 520px; height: 520px; z-index: 0; pointer-events: none; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(240, 217, 168, .16), rgba(216, 184, 119, .05) 55%, rgba(216, 184, 119, 0) 72%);
  mix-blend-mode: screen; will-change: transform; }
.glow::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(240,217,168,.35), rgba(240,217,168,0)); opacity: 0; transform: scale(.4); transition: opacity .45s ease, transform .45s ease; }
.glow.hot::after { opacity: 1; transform: scale(1); transition-duration: .12s; }

.ring { position: fixed; left: -16px; top: -16px; width: 32px; height: 32px; margin: 0; border: 1.5px solid rgba(240, 217, 168, .7); border-radius: 50%; z-index: 90; pointer-events: none; will-change: transform; transition: width .2s ease, height .2s ease, margin .2s ease, background .2s ease, border-color .2s ease; }
.ring.big { width: 56px; height: 56px; margin: -12px 0 0 -12px; background: rgba(216, 184, 119, .12); border-color: var(--gold); }

.progress { position: fixed; left: 0; top: 0; height: 2px; width: 100%; z-index: 120; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--gold-lo), var(--gold-hi)); pointer-events: none; }

/* Headline word rise */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.wi { display: inline-block; transform: translateY(115%); animation: rise .95s cubic-bezier(.2, .7, .2, 1) forwards; animation-delay: calc(var(--d) * 75ms + 120ms); }
@keyframes rise { to { transform: none; } }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(32px) scale(.985); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* Marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: rgba(14, 22, 34, .5); padding-block: 22px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; width: max-content; animation: slide 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span { font-family: var(--display); font-weight: 600; font-size: clamp(1.3rem, 2.6vw, 2rem); letter-spacing: -0.02em; color: var(--muted); padding-inline: 28px; white-space: nowrap; display: inline-flex; align-items: center; gap: 56px; }
.marquee span::after { content: ""; width: 9px; height: 9px; background: var(--gold); transform: rotate(45deg); }
@keyframes slide { to { transform: translateX(-50%); } }

/* Spotlight that follows the pointer on cards */
.work, .cta, .aside, .mock { position: relative; }
.work::after, .aside::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(240, 217, 168, .14), transparent 60%); }
.work:hover::after, .aside:hover::after { opacity: 1; }
.work { transition: border-color .2s ease, transform .18s ease-out; transform-style: preserve-3d; }
.btn--gold { box-shadow: 0 0 0 0 rgba(216, 184, 119, 0); transition: transform .18s ease, background .18s ease, box-shadow .25s ease, translate .15s ease-out; }
.btn--gold:hover { box-shadow: 0 14px 44px -12px rgba(216, 184, 119, .7); }
.btn { translate: 0 0; }
.mock { transition: transform .18s ease-out; will-change: transform; }
.mock::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(380px circle at var(--mx, 70%) var(--my, 30%), rgba(240,217,168,.12), transparent 60%); }

/* Gentle idle float on the hero mock */
.js .hero .mock { animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { translate: 0 -10px; } }

@media (prefers-reduced-motion: reduce) {
  .wi { animation: none; transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track, .js .hero .mock { animation: none; }
  .glow, .ring, .progress { display: none; }
}
@media (hover: none) { .ring { display: none; } }

/* Scrolling website previews (real screenshots of client sites) */
.work__thumb--shot { padding: 0; }
.browser { width: 84%; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--ink); overflow: hidden; box-shadow: 0 28px 60px -22px rgba(0,0,0,.85); }
.shot { aspect-ratio: 16 / 9.5; background-repeat: no-repeat; background-size: 100% auto; background-position: 50% 0%; animation: pan 26s ease-in-out infinite alternate; }
@keyframes pan { 0%, 6% { background-position-y: 0%; } 94%, 100% { background-position-y: 100%; } }
@media (prefers-reduced-motion: reduce) { .shot { animation: none; } }

/* Video previews of the client sites being scrolled */
.shot-video { display: block; width: 100%; aspect-ratio: 16 / 9.5; object-fit: cover; object-position: top center; background: var(--ink); }

/* ===== Futuristic pass ===== */
@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

/* film grain over everything, very light */
body::after { content: ""; position: fixed; inset: 0; z-index: 130; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

/* hero orbit rings */
.hero__grid > div { position: relative; z-index: 1; }
.orbit { position: absolute; z-index: 0; right: -9%; top: 50%; width: min(860px, 78vw); translate: 0 -50%; pointer-events: none; opacity: .9; }
.orbit g { transform-origin: 400px 400px; }
.orbit .o1 { animation: spin 90s linear infinite; }
.orbit .o2 { animation: spin 55s linear infinite reverse; }
.orbit .o3 { animation: spin 38s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero .mock { z-index: 1; }
@media (max-width: 920px) { .orbit { right: -40%; top: 62%; opacity: .5; } }

/* video showcase frames: HUD brackets, animated edge light, scan line, power-on */
.work__thumb--shot { position: relative; }
.work__thumb--shot .c { position: absolute; width: 22px; height: 22px; border: 0 solid var(--gold); opacity: .85; z-index: 2; transition: transform .35s ease, opacity .35s ease; }
.work__thumb--shot .tl { left: 12px; top: 12px; border-width: 2px 0 0 2px; }
.work__thumb--shot .tr { right: 12px; top: 12px; border-width: 2px 2px 0 0; }
.work__thumb--shot .bl { left: 12px; bottom: 12px; border-width: 0 0 2px 2px; }
.work__thumb--shot .br { right: 12px; bottom: 12px; border-width: 0 2px 2px 0; }
.work:hover .work__thumb--shot .tl { transform: translate(-4px, -4px); } .work:hover .work__thumb--shot .tr { transform: translate(4px, -4px); }
.work:hover .work__thumb--shot .bl { transform: translate(-4px, 4px); } .work:hover .work__thumb--shot .br { transform: translate(4px, 4px); }

.browser.hud { position: relative; border: 1px solid transparent;
  background: linear-gradient(var(--ink), var(--ink)) padding-box, conic-gradient(from var(--a), rgba(216,184,119,.15) 0 55%, #F6E3B4 78%, rgba(216,184,119,.15) 100%) border-box;
  animation: edge 7s linear infinite; box-shadow: 0 30px 80px -24px rgba(0,0,0,.9), 0 0 60px -20px rgba(216, 184, 119, .35); }
@keyframes edge { to { --a: 360deg; } }
.frame__live { margin-left: auto; font-size: .66rem; font-weight: 700; letter-spacing: .18em; color: var(--teal); display: inline-flex; align-items: center; gap: 7px; }
.frame__live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.hud::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 38%; pointer-events: none; z-index: 3;
  background: linear-gradient(to bottom, rgba(240,217,168,0), rgba(240,217,168,.13) 85%, rgba(240,217,168,.35)); transform: translateY(-120%); animation: scan 5.5s cubic-bezier(.5,0,.5,1) infinite; mix-blend-mode: screen; }
@keyframes scan { 0% { transform: translateY(-120%); } 55%, 100% { transform: translateY(330%); } }
.hud .shot-video { filter: saturate(1.08) contrast(1.04); }
.js .hud .shot-video { clip-path: inset(46% 0 46% 0); filter: brightness(2.4) saturate(.1) blur(8px); transition: clip-path 1s cubic-bezier(.2,.8,.2,1), filter 1.3s ease; }
.js .hud.on .shot-video { clip-path: inset(0); filter: saturate(1.08) contrast(1.04); }
.js .work__thumb--shot .c { opacity: 0; transform: scale(.4); }
.js .work__thumb--shot.on .c { opacity: .85; transform: none; transition: opacity .6s .5s, transform .6s .5s cubic-bezier(.2,.8,.2,1); }

@media (prefers-reduced-motion: reduce) {
  .orbit .o1, .orbit .o2, .orbit .o3, .browser.hud, .hud::after, .frame__live::before { animation: none; }
  .js .hud .shot-video { clip-path: none; filter: none; transition: none; }
  .js .work__thumb--shot .c { opacity: .85; transform: none; }
  body::after { display: none; }
}

.split--text { grid-template-columns: 0.7fr 1.3fr; }
@media (max-width: 860px) { .split--text { grid-template-columns: 1fr; } }

/* Touch devices: comfortable tap targets (44px minimum) */
@media (pointer: coarse) {
  .footer__grid a, .aside a.mail, .work__link, .brand { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
  .footer__grid li + li { margin-top: 2px; }
  .btn, .btn--sm { min-height: 44px; }
  .faq summary { min-height: 48px; }
  .nav__toggle { width: 48px; height: 48px; }
}

/* Keep the brand name on one line on small phones */
.brand { white-space: nowrap; }
@media (max-width: 400px) {
  .nav { gap: 12px; }
  .brand { font-size: 1.12rem; gap: 9px; }
  .brand img { width: 40px; height: 40px; }
}
@media (max-width: 330px) {
  .brand { font-size: 1rem; gap: 7px; }
  .brand img { width: 34px; height: 34px; }
  .nav__toggle { width: 44px; height: 44px; }
}

.form__status.is-error { color: #F0A58C; }
