/* Chris Caiña: shared styles for every page. */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=Inter:wght@400;500;600&family=Manrope:wght@300;400;500;600&display=swap');

:root {
  --ink: #0c0c0e;
  --ink-2: #151518;
  --ink-3: #1d1d21;
  --paper: #f4f1ea;
  --paper-2: #ebe6db;
  --on-ink: #f4f1ea;
  --on-ink-muted: #b4afa5;
  --on-paper: #151515;
  --on-paper-muted: #55514a;
  --accent: #ff8a3d;
  --accent-ink: #b8501a;          /* accent for text on light backgrounds (AA) */
  --line-ink: rgba(255, 255, 255, .12);
  --line-paper: rgba(20, 20, 20, .12);
  --radius: 16px;
  --max: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --font: Poppins, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ink); color: var(--on-ink);
  font: 400 17px/1.65 var(--font); -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.025em; line-height: 1.08; }
p { margin: 0; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 100; padding: 10px 14px; background: var(--accent); color: var(--ink); border-radius: 8px; }
.skip:focus { left: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: clamp(84px, 11vw, 140px); }
.section--paper { background: var(--paper); color: var(--on-paper); }
.section--ink2 { background: var(--ink-2); }
.kicker { display: inline-block; margin-bottom: 18px; color: var(--accent); font-size: 14px; font-weight: 600; letter-spacing: .02em; }
.section--paper .kicker { color: var(--accent-ink); }
.h-xl { font-size: clamp(44px, 7.2vw, 96px); font-weight: 600; letter-spacing: -.035em; line-height: 1.02; }
.h-lg { font-size: clamp(36px, 5vw, 64px); }
.h-md { font-size: clamp(26px, 3vw, 36px); }
.lede { max-width: 620px; margin-top: 22px; color: var(--on-ink-muted); font-size: clamp(17px, 1.5vw, 20px); }
.section--paper .lede { color: var(--on-paper-muted); }
.accent { color: var(--accent); }
.section--paper .accent { color: var(--accent-ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px;
  border: 1px solid transparent; border-radius: 999px; font: 600 15px/1 var(--font); text-decoration: none;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s; cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: #1a0d03; }
.btn--primary:hover { background: #ffa261; }
.btn--ghost { border-color: rgba(244, 241, 234, .35); color: var(--on-ink); }
.btn--ghost:hover { border-color: var(--on-ink); }
.section--paper .btn--ghost { border-color: rgba(21, 21, 21, .3); color: var(--on-paper); }
.btn svg { width: 16px; height: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid { background: rgba(12, 12, 14, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line-ink); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; letter-spacing: .01em; }
.brand img { width: 36px; height: 36px; border-radius: 50%; background: #e9e6df; }
.brand b { font-weight: 700; } .brand span { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) { padding: 10px 14px; border-radius: 999px; color: var(--on-ink-muted); font-size: 15px; font-weight: 500; text-decoration: none; transition: color .2s, background .2s; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--on-ink); background: rgba(255, 255, 255, .07); }
.nav .btn { min-height: 44px; margin-left: 8px; padding: 0 20px; }
.menu-btn { display: none; width: 46px; height: 46px; border: 1px solid var(--line-ink); border-radius: 50%; background: none; color: var(--on-ink); cursor: pointer; }
.menu-btn span { display: block; width: 18px; height: 2px; margin: 4px auto; background: currentColor; transition: transform .25s, opacity .25s; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Hero (home) */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; transform: scale(calc(1.06 + var(--hp, 0) * .12)); transform-origin: 70% 40%; will-change: transform; }
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(12,12,14,.55) 0%, rgba(12,12,14,.15) 38%, rgba(12,12,14,.78) 78%, var(--ink) 100%),
              linear-gradient(90deg, rgba(12,12,14,.85) 0%, rgba(12,12,14,.2) 65%);
}
.hero__content { padding-block: 150px clamp(64px, 9vw, 110px); opacity: calc(1 - var(--hp, 0) * 1.4); transform: translateY(calc(var(--hp, 0) * -40px)); }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px; padding: 8px 14px 8px 8px; border: 1px solid var(--line-ink); border-radius: 999px; background: rgba(12,12,14,.4); backdrop-filter: blur(8px); color: var(--on-ink); font-size: 14px; font-weight: 500; }
.hero__eyebrow img { width: 28px; height: 28px; border-radius: 50%; background: #e9e6df; }
.hero__eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 4px rgba(61, 220, 132, .18); font-style: normal; }
.hero h1 { max-width: 900px; }
.hero .lede { color: #d6d1c7; }
.hero__trust { margin-top: 30px; color: var(--on-ink-muted); font-size: 14px; }

/* Page hero (inner pages) */
.page-hero { position: relative; padding-block: 170px 90px; overflow: hidden; isolation: isolate; }
.page-hero__media { position: absolute; inset: 0; z-index: -2; opacity: .4; }
.page-hero__media video, .page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12,12,14,.6), var(--ink)); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line-ink); border-bottom: 1px solid var(--line-ink); }
.stat { padding: 34px 22px; border-left: 1px solid var(--line-ink); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat strong { display: block; font-size: clamp(32px, 3.6vw, 48px); font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.stat span { display: block; margin-top: 12px; color: var(--on-ink-muted); font-size: 14px; line-height: 1.4; }

/* Section head */
.head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: end; margin-bottom: 56px; }
.head .lede { margin-top: 0; }

/* Service grid */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line-paper); }
.service { display: grid; grid-template-columns: 56px 1fr; gap: 6px 18px; padding: 30px 28px 32px 0; border-bottom: 1px solid var(--line-paper); }
.services .service:nth-child(odd) { border-right: 1px solid var(--line-paper); }
.services .service:nth-child(even) { padding-left: 28px; }
.service__icon { grid-row: span 2; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: var(--paper-2); color: var(--accent-ink); }
.service__icon svg { width: 24px; height: 24px; }
.service h3 { font-size: 21px; letter-spacing: -.015em; }
.service p { color: var(--on-paper-muted); font-size: 16px; }
.service a { color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.service a:hover { text-decoration: underline; }

/* Statement band (cinematic scroll moment) */
.statement { position: relative; height: 220vh; }
.statement__sticky { position: sticky; top: 0; height: 100svh; display: grid; place-items: center; overflow: hidden; isolation: isolate; }
.statement__media { position: absolute; inset: 0; z-index: -2; transform: scale(calc(1.15 - var(--sp, 0) * .15)); }
.statement__media video, .statement__media img { width: 100%; height: 100%; object-fit: cover; }
.statement__sticky::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(12,12,14,.55) 0%, rgba(12,12,14,.88) 75%); }
.statement__lines { width: min(100% - 2 * var(--gutter), 1000px); text-align: center; }
.statement__line { font-size: clamp(32px, 5.4vw, 72px); font-weight: 600; letter-spacing: -.03em; line-height: 1.08; opacity: .12; transition: opacity .5s var(--ease), transform .5s var(--ease); transform: translateY(10px); }
.statement__line.is-on { opacity: 1; transform: none; }
.statement__line + .statement__line { margin-top: 10px; }

/* Build cards */
.builds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.build { display: flex; flex-direction: column; padding: 30px; border: 1px solid var(--line-ink); border-radius: var(--radius); background: var(--ink-2); transition: border-color .3s, transform .3s var(--ease); }
.build:hover { border-color: rgba(255, 138, 61, .5); transform: translateY(-4px); }
.status { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: rgba(61, 220, 132, .12); color: #7ce9a8; font-size: 13px; font-weight: 600; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status--done { background: rgba(255, 138, 61, .14); color: #ffb27e; }
.build h3 { margin-top: 22px; font-size: 24px; }
.build p { margin-top: 12px; color: var(--on-ink-muted); font-size: 16px; }
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; padding-top: 26px; }
.metric { padding: 14px; border-radius: 12px; background: var(--ink-3); }
.metric strong { display: block; font-size: 22px; font-weight: 600; line-height: 1.1; }
.metric span { color: var(--on-ink-muted); font-size: 13px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; padding: 0; list-style: none; }
.tags li { padding: 6px 12px; border: 1px solid var(--line-ink); border-radius: 999px; color: var(--on-ink-muted); font-size: 13px; }

/* Offers (solo / team) */
.offers { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.offer { display: flex; flex-direction: column; padding: clamp(28px, 4vw, 44px); border: 1px solid var(--line-paper); border-radius: 22px; background: #fff; }
.offer--dark { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.offer__tag { align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: var(--paper-2); color: var(--on-paper-muted); font-size: 13px; font-weight: 600; }
.offer--dark .offer__tag { background: var(--ink-3); color: var(--on-ink-muted); }
.offer h3 { margin-top: 22px; font-size: clamp(30px, 3.2vw, 42px); }
.offer > p { margin-top: 14px; color: var(--on-paper-muted); }
.offer--dark > p { color: var(--on-ink-muted); }
.ticks { display: grid; gap: 12px; margin: 28px 0 34px; padding: 0; list-style: none; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 16px; }
.ticks li::before { content: ""; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--paper-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b8501a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat; }
.offer--dark .ticks li::before { background-color: var(--ink-3); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff8a3d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.offer .btn { margin-top: auto; align-self: flex-start; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { padding: 30px; border-top: 2px solid var(--line-ink); }
.step::before { counter-increment: step; content: "0" counter(step); display: block; color: var(--accent); font-size: 15px; font-weight: 600; }
.step h3 { margin-top: 18px; font-size: 22px; }
.step p { margin-top: 10px; color: var(--on-ink-muted); font-size: 16px; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 34px 30px; border: 1px solid var(--line-paper); border-radius: 20px; background: #fff; }
.plan--featured { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.plan__badge { position: absolute; top: -13px; left: 30px; padding: 5px 12px; border-radius: 999px; background: var(--accent); color: #1a0d03; font-size: 12px; font-weight: 700; }
.plan h3 { font-size: 18px; font-weight: 600; letter-spacing: 0; }
.plan__price { margin-top: 14px; font-size: 52px; font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.plan__price small { font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--on-paper-muted); }
.plan--featured .plan__price small, .plan--featured .plan__note { color: var(--on-ink-muted); }
.plan__note { margin-top: 10px; color: var(--on-paper-muted); font-size: 14px; }
.plan .ticks { margin: 24px 0 30px; }
.plan .btn { margin-top: auto; justify-content: center; }
.plan--featured .ticks li::before { background-color: var(--ink-3); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff8a3d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }

/* Reels */
.reels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.reel { overflow: hidden; border-radius: 18px; background: var(--ink-2); }
.reel img { width: 100%; aspect-ratio: 560 / 1003; object-fit: cover; transition: transform .6s var(--ease); }
.reel:hover img { transform: scale(1.04); }
.reel figcaption { padding: 16px 18px 18px; }
.reel strong { display: block; font-size: 16px; font-weight: 600; }
.reel span { color: var(--on-ink-muted); font-size: 14px; }

/* Timeline */
.timeline { border-top: 1px solid var(--line-ink); }
.role { display: grid; grid-template-columns: 220px 1fr; gap: 40px; padding: 44px 0; border-bottom: 1px solid var(--line-ink); }
.role__when { color: var(--on-ink-muted); font-size: 15px; }
.role__when strong { display: block; margin-bottom: 4px; color: var(--on-ink); font-weight: 600; }
.role h3 { font-size: 26px; }
.role h3 small { display: block; margin-top: 6px; color: var(--accent); font-size: 16px; font-weight: 500; letter-spacing: 0; }
.role ul { display: grid; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.role li { position: relative; padding-left: 22px; color: var(--on-ink-muted); font-size: 16px; }
.role li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 2px; background: var(--accent); }

/* Skills */
.skills { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.skill-group { padding: 26px; border: 1px solid var(--line-paper); border-radius: var(--radius); background: #fff; }
.skill-group h3 { font-size: 18px; letter-spacing: 0; }
.skill-group ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.skill-group li { padding: 6px 11px; border-radius: 999px; background: var(--paper-2); font-size: 14px; }

/* Feature (portfolio detail) */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: 56px; border-bottom: 1px solid var(--line-ink); }
.feature:last-child { border-bottom: 0; }
.feature__visual { position: relative; aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; background: var(--ink-2); border: 1px solid var(--line-ink); }
.feature__visual video, .feature__visual img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.feature__panel { position: absolute; inset: auto 20px 20px 20px; padding: 18px 20px; border-radius: 14px; background: rgba(12, 12, 14, .78); backdrop-filter: blur(10px); border: 1px solid var(--line-ink); }
.feature__panel b { display: block; font-size: 28px; font-weight: 600; letter-spacing: -.02em; }
.feature__panel span { color: var(--on-ink-muted); font-size: 14px; }
.feature__num { color: var(--accent); font-size: 15px; font-weight: 600; }
.feature h2 { margin-top: 14px; font-size: clamp(30px, 3.4vw, 44px); }
.feature p { margin-top: 16px; color: var(--on-ink-muted); }

/* Includes grid */
.includes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.include { padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line-paper); }
.include h3 { font-size: 20px; }
.include p { margin-top: 10px; color: var(--on-paper-muted); font-size: 16px; }

/* CTA band */
.cta-band { padding: clamp(40px, 6vw, 72px); border-radius: 28px; background: linear-gradient(135deg, #1b130c, #2a1608 60%, #3a1d08); border: 1px solid rgba(255, 138, 61, .25); display: grid; grid-template-columns: 1.3fr auto; gap: 30px; align-items: center; }
.cta-band p { margin-top: 14px; color: #d8c8b8; }

/* Contact */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 90px); }
.contact__card { display: flex; align-items: center; gap: 16px; margin-top: 34px; }
.contact__card img { width: 64px; height: 64px; border-radius: 50%; background: #e9e6df; }
.contact__card strong { display: block; font-size: 17px; }
.contact__card span { color: var(--on-ink-muted); font-size: 14px; }
.contact__list { display: grid; gap: 4px; margin-top: 26px; }
.contact__list a, .contact__list span { color: var(--on-ink-muted); text-decoration: none; font-size: 16px; }
.contact__list a:hover { color: var(--on-ink); }
.form { display: grid; gap: 16px; padding: clamp(24px, 3.5vw, 40px); border: 1px solid var(--line-ink); border-radius: 22px; background: var(--ink-2); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; font-size: 14px; font-weight: 500; color: var(--on-ink); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 14px 16px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px;
  background: var(--ink); color: var(--on-ink); font: 400 16px/1.4 var(--font); transition: border-color .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #8a857c; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.form .btn { justify-self: start; border: 0; }
.form__note { color: var(--on-ink-muted); font-size: 14px; }
.form__status { padding: 14px 16px; border-radius: 12px; font-size: 15px; }
.form__status.ok { background: rgba(61, 220, 132, .12); color: #9ff0bf; }
.form__status.err { background: rgba(255, 92, 92, .12); color: #ffb3b3; }
.hp { position: absolute; left: -9999px; }

/* Footer */
.site-footer { padding-block: 64px 40px; border-top: 1px solid var(--line-ink); }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { font-size: 15px; font-weight: 600; letter-spacing: 0; margin-bottom: 14px; }
.site-footer a, .site-footer p { display: block; color: var(--on-ink-muted); font-size: 15px; text-decoration: none; line-height: 2; }
.site-footer a:hover { color: var(--on-ink); }
.footer__base { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 20px; padding-top: 28px; margin-top: 12px; border-top: 1px solid var(--line-ink); color: #8a857c; font-size: 14px; }

/* Reveal on scroll */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .08s; } [data-reveal-delay="2"] { transition-delay: .16s; } [data-reveal-delay="3"] { transition-delay: .24s; }

/* Responsive */
@media (max-width: 1024px) {
  .builds, .includes { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(4) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+4) { border-top: 1px solid var(--line-ink); }
  .reels { grid-template-columns: repeat(2, 1fr); }
  .skills { grid-template-columns: 1fr 1fr; }
  .pricing { grid-template-columns: 1fr; max-width: 520px; }
}
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav { position: fixed; inset: 76px 0 auto; display: grid; gap: 4px; padding: 16px var(--gutter) 28px; background: rgba(12, 12, 14, .97); border-bottom: 1px solid var(--line-ink); transform: translateY(-120%); transition: transform .35s var(--ease); }
  .menu-open .nav { transform: none; }
  .nav a:not(.btn) { padding: 14px 4px; font-size: 18px; border-radius: 0; border-bottom: 1px solid var(--line-ink); }
  .nav .btn { margin: 14px 0 0; justify-content: center; }
  .head, .offers, .contact, .feature, .cta-band { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .services .service:nth-child(odd) { border-right: 0; }
  .services .service:nth-child(even) { padding-left: 0; }
  .steps { grid-template-columns: 1fr; }
  .role { grid-template-columns: 1fr; gap: 12px; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .site-footer .wrap > :first-child { grid-column: 1 / -1; }
  .feature__visual { order: -1; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .builds, .includes, .skills, .reels { grid-template-columns: 1fr; }
  .reels { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat, .stat:first-child, .stat:nth-child(4) { padding: 24px 16px 24px 0; border-left: 0; }
  .stat:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line-ink); }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line-ink); }
  .stat:last-child { grid-column: 1 / -1; }
  .form__row { grid-template-columns: 1fr; }
  .footer__base { flex-direction: column; }
  .actions .btn { flex: 1 1 100%; justify-content: center; }
  .statement { height: 180vh; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero__media, .statement__media { transform: none !important; }
  .hero__content { opacity: 1 !important; transform: none !important; }
  .statement { height: auto; }
  .statement__sticky { position: relative; height: auto; padding-block: 120px; }
  .statement__line { opacity: 1; transform: none; }
  .btn:hover, .build:hover { transform: none; }
}

/* Balanced headline wrapping */
h1, h2, .statement__line { text-wrap: balance; }
.statement__line { font-size: clamp(30px, 4.8vw, 64px); }
.page-hero .lede { max-width: 680px; }
.note { margin-top: 26px; color: var(--on-paper-muted); font-size: 15px; }
.section--ink2 .note, .section:not(.section--paper) .note { color: var(--on-ink-muted); }
.edu { display: flex; flex-wrap: wrap; gap: 8px 30px; align-items: baseline; padding: 30px 0; border-bottom: 1px solid var(--line-ink); }
.edu strong { font-size: 20px; font-weight: 600; }
.edu span { color: var(--on-ink-muted); }
.wins { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.win { padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line-paper); }
.win strong { display: block; font-size: 36px; font-weight: 600; letter-spacing: -.03em; line-height: 1; color: var(--accent-ink); }
.win p { margin-top: 12px; color: var(--on-paper-muted); font-size: 15px; }
@media (max-width: 1024px) { .wins { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .wins { grid-template-columns: 1fr; } }
/* Tool tags inside a timeline role keep their pill style. */
.role ul.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.role ul.tags li { padding: 6px 12px; color: var(--on-ink-muted); font-size: 13px; }
.role ul.tags li::before { display: none; }
@media (max-width: 860px) {
  .nav { background: var(--ink); box-shadow: 0 30px 60px rgba(0, 0, 0, .55); }
  .menu-open .site-header { background: var(--ink); border-color: var(--line-ink); }
  .menu-open::after { content: ""; position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .55); }
}


/* =====================================================================
   MISSION THEME: dark, cinematic, SpaceX x Terminal x Feadship.
   Overrides the base tokens and the light "paper" sections.
   ===================================================================== */
:root {
  --ink: #050607; --ink-2: #0a0d10; --ink-3: #12171b;
  --paper: #0b0f12; --paper-2: #141a1f;
  --on-ink: #e9edef; --on-ink-muted: #8f989e;
  --on-paper: #e9edef; --on-paper-muted: #8f989e;
  --accent: #7fe3ee; --accent-ink: #7fe3ee; --amber: #ffb25e;
  --line-ink: rgba(255,255,255,.1); --line-paper: rgba(255,255,255,.1);
  --font: Inter, "Helvetica Neue", Arial, sans-serif;
  --display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --mono: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --radius: 4px;
}
body { font-family: var(--font); background: var(--ink); }
h1, h2, .h-xl, .h-lg, .h-md, .offer h3, .plan__price { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .005em; line-height: .98; }
.h-xl { font-size: clamp(52px, 8vw, 118px); }
.h-lg { font-size: clamp(42px, 5.6vw, 80px); }
.h-md { font-size: clamp(30px, 3.4vw, 44px); }
h3 { font-family: var(--font); font-weight: 600; letter-spacing: -.01em; }
.kicker, .feature__num, .role__when, .status, .plan__badge, .offer__tag, .step::before, .stat span {
  font-family: var(--mono); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; font-size: 12px;
}
.kicker { color: var(--accent); }
.kicker::before { content: "// "; opacity: .55; }
.accent, .section--paper .accent { color: var(--accent); }
.lede, .section--paper .lede { color: #a7b0b5; }

/* Buttons: SpaceX-style. Solid white primary, thin outline ghost, square-ish. */
.btn { border-radius: 2px; min-height: 50px; font: 500 13px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.btn--primary { background: #f2f4f5; color: #050607; }
.btn--primary:hover { background: var(--accent); }
.btn--ghost, .section--paper .btn--ghost { border-color: rgba(255,255,255,.4); color: var(--on-ink); }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }

/* Floating pill nav (Terminal-style). */
.site-header { inset: 14px 0 auto; border: 0; background: none !important; backdrop-filter: none !important; }
.site-header .wrap { height: 60px; width: min(100% - 28px, 1180px); padding: 0 10px 0 18px; border: 1px solid rgba(255,255,255,.1); border-radius: 999px;
  background: rgba(8,10,12,.55); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transition: background .3s; }
.site-header.is-solid .wrap { background: rgba(8,10,12,.85); }
.brand { font-family: var(--display); font-size: 20px; letter-spacing: .14em; text-transform: uppercase; }
.brand b { font-weight: 600; }
.brand img { width: 30px; height: 30px; }
.brand span { color: var(--accent); }
.nav a:not(.btn) { font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #b8c0c4; }
.nav .btn { min-height: 42px; border-radius: 999px; padding: 0 18px; font-size: 12px; }

/* Dark cards everywhere the light theme used white. */
.section--paper { background: var(--paper); }
.offer, .plan, .include, .skill-group, .win, .metric { background: var(--ink-2); border-color: var(--line-ink); color: var(--on-ink); }
.offer--dark, .plan--featured { background: linear-gradient(160deg, #0f1d22, #0a0d10 70%); border-color: rgba(127,227,238,.35); }
.offer > p, .plan__note, .include p, .win p, .service p, .skill-group li { color: var(--on-ink-muted); }
.offer__tag, .skill-group li, .service__icon { background: var(--ink-3); color: var(--accent); }
.ticks li::before, .offer--dark .ticks li::before, .plan--featured .ticks li::before { background-color: var(--ink-3);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237fe3ee' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.win strong { color: var(--accent); font-family: var(--display); font-size: 48px; }
.service a, .services .service a { color: var(--accent); }
.plan__badge { background: var(--accent); color: #041014; }
.plan__price small { color: var(--on-ink-muted); }
.stat strong { font-family: var(--display); font-size: clamp(44px, 4.6vw, 64px); font-weight: 600; }
.status { background: rgba(127,227,238,.1); color: var(--accent); }
.status--done { background: rgba(255,178,94,.12); color: var(--amber); }
.cta-band { background: linear-gradient(120deg, #0c1a1f, #0a0d10 55%, #1a120a); border-color: rgba(127,227,238,.22); border-radius: 6px; }
.form, .field input, .field select, .field textarea { border-radius: 2px; }
.page-hero__media { opacity: .55; }
.page-hero::after { background: linear-gradient(90deg, rgba(5,6,7,.92) 0%, rgba(5,6,7,.55) 55%, rgba(5,6,7,.2) 100%), linear-gradient(180deg, transparent 60%, var(--ink)); }
.feature__visual { border-radius: 4px; }
.feature__visual img { opacity: .85; }
.reel { border-radius: 4px; }

/* Film grain over the whole page: subtle, cinematic. */
body::after { content: ""; position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-3%)} 60%{transform:translate(-2%,-1%)} 80%{transform:translate(3%,3%)} 100%{transform:translate(0,0)} }
@media (prefers-reduced-motion: reduce) { body::after { animation: none; } }
@media (max-width: 860px) {
  .site-header .wrap { padding: 0 8px 0 14px; }
  .nav { inset: 84px 14px auto; border: 1px solid var(--line-ink); border-radius: 18px; background: rgba(8,10,12,.97); transform: translateY(calc(-100% - 120px)); visibility: hidden; transition: transform .35s var(--ease), visibility 0s .35s; }
  .menu-open .nav { transform: none; visibility: visible; transition: transform .35s var(--ease); }
  .nav a:not(.btn) { font-size: 14px; }
}

/* =====================================================================
   REFINEMENTS: clean label type, open header, compass mark, cursor.
   ===================================================================== */
/* Labels: a clean, light geometric sans instead of a code font. */
.kicker, .feature__num, .role__when, .status, .plan__badge, .offer__tag, .step::before, .stat span { font-weight: 500; letter-spacing: .18em; font-size: 11px; }
.kicker { display: inline-flex; align-items: center; gap: 12px; }
.kicker::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .6; }
.btn { font: 600 12px/1 var(--mono); letter-spacing: .18em; }
.nav a:not(.btn) { font: 500 11px/1 var(--mono); letter-spacing: .2em; }

/* Header: no tile. Just the mark, the name and the links, floating over the page. */
.site-header { inset: 0 0 auto; }
.site-header::before { content: ""; position: absolute; inset: 0 0 -40px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(5,6,7,.8), rgba(5,6,7,.35) 60%, transparent); opacity: .7; transition: opacity .3s; }
.site-header.is-solid::before { opacity: 1; }
.site-header .wrap { height: 84px; width: min(100% - 48px, 1280px); padding: 0; border: 0; border-radius: 0; background: none !important;
  backdrop-filter: none; -webkit-backdrop-filter: none; }
.nav a:not(.btn) { background: none !important; padding: 10px 12px; position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: #fff; }
.nav a span[aria-hidden] { color: var(--accent); }
.nav .btn { border-radius: 2px; min-height: 40px; }
.brand { gap: 12px; font-size: 19px; letter-spacing: .22em; color: #f2f4f5; }
.brand__mark { width: 26px; height: 26px; flex: none; color: #f2f4f5; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.brand:hover .brand__mark { transform: rotate(45deg); }
.contact__card img { border-radius: 50%; object-fit: cover; filter: grayscale(.2); }
@media (max-width: 860px) {
  .site-header .wrap { height: 70px; width: min(100% - 32px, 1280px); padding: 0; }
  .nav { inset: 72px 14px auto; }
  .nav a:not(.btn)::after { display: none; }
  .brand { font-size: 17px; letter-spacing: .18em; }
}

/* Cursor: a small instrument reticle. Dot is exact, the ring trails and opens over anything clickable. */
html.has-cursor, html.has-cursor * { cursor: none !important; }
html.has-cursor input, html.has-cursor textarea, html.has-cursor select { cursor: text !important; }
.cursor { position: fixed; left: 0; top: 0; z-index: 400; pointer-events: none; opacity: 0; transition: opacity .3s; }
.cursor.is-on { opacity: 1; }
.cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; will-change: transform; }
.cursor__dot { width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(127,227,238,.9); }
.cursor__ring { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
.cursor__ring i { position: absolute; inset: 0; border: 1px solid rgba(242,244,245,.42); border-radius: 50%;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .3s; }
.cursor__ring b { position: absolute; inset: -7px; animation: reticle 9s linear infinite; transition: inset .35s cubic-bezier(.2,.8,.2,1); }
.cursor__ring b::before, .cursor__ring b::after { content: ""; position: absolute; background: rgba(242,244,245,.75); }
.cursor__ring b::before { left: 50%; top: 0; bottom: 0; width: 1px; margin-left: -.5px;
  -webkit-mask: linear-gradient(#000 0 6px, transparent 6px calc(100% - 6px), #000 calc(100% - 6px)); mask: linear-gradient(#000 0 6px, transparent 6px calc(100% - 6px), #000 calc(100% - 6px)); }
.cursor__ring b::after { top: 50%; left: 0; right: 0; height: 1px; margin-top: -.5px;
  -webkit-mask: linear-gradient(90deg, #000 0 6px, transparent 6px calc(100% - 6px), #000 calc(100% - 6px)); mask: linear-gradient(90deg, #000 0 6px, transparent 6px calc(100% - 6px), #000 calc(100% - 6px)); }
.cursor.is-link .cursor__ring i { transform: scale(1.55); border-color: var(--accent); }
.cursor.is-link .cursor__ring b { inset: -18px; }
.cursor.is-down .cursor__ring i { transform: scale(.75); }
.cursor.is-text { opacity: 0; }
@keyframes reticle { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .cursor__ring b { animation: none; } }
/* Runstead: the agency block and its linked screenshot. */
.agency { border-top: 1px solid var(--line-ink); }
.agency .feature { padding-block: 0; border: 0; }
.agency .ticks { margin-top: 22px; }
.agency .actions { margin-top: 28px; }
.agency__shot { display: block; position: relative; overflow: hidden; text-decoration: none; color: inherit; }
.agency__shot img { width: 100%; height: auto; opacity: .92; transition: transform .8s cubic-bezier(.2,.8,.2,1), opacity .3s; }
.agency__shot:hover img { transform: scale(1.03); opacity: 1; }
.btn svg { width: 15px; height: 15px; }
/* Once content scrolls under it, the header becomes a full-width dark glass bar (no tile).
   Over the opening film it stays a soft gradient so the frame isn't boxed in. */
.site-header::before { transition: opacity .3s, background-color .3s; }
.site-header.is-solid::before { inset: 0; opacity: 1; background: rgba(5,6,7,.84); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.06); }
html:has(#experience):not(.stage-off) .site-header.is-solid::before { inset: 0 0 -40px; background: linear-gradient(180deg, rgba(5,6,7,.8), rgba(5,6,7,.35) 60%, transparent);
  backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 0; }
