/* ===== Horizon black hole palette ===== */
:root {
  --bg: #03070d;
  --bg-2: #071727;
  --navy: #0b1930;
  --cyan: #00cfff;
  --sky: #83e5ff;
  --white: #fff;
  --muted: #a7b8c9;
  --line: rgba(131, 229, 255, .18);
  color-scheme: dark;

  --sans: "PP Neue Montreal", "Inter Tight", "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", "Roboto Mono", ui-monospace, Consolas, monospace;
  --price: "Geist", "Inter", sans-serif;
  --form: "TASA Orbiter", "Inter", sans-serif;
}

/* ===== Page transition: corner wipe (Chrome, Edge, newer Safari) ===== */
@view-transition { navigation: auto; }
@property --sweep { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
::view-transition-old(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) {
  mix-blend-mode: normal;
  animation: wipe .42s cubic-bezier(.45, 0, .55, 1) both;
  mask-image: conic-gradient(from 0deg at 100% 100%, transparent calc(360deg - var(--sweep)), #000 0);
}
@keyframes wipe { from { --sweep: 0deg; } to { --sweep: 90deg; } }

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--bg); font-family: var(--sans); font-weight: 500; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.wrap { max-width: 1440px; width: 100%; margin: 0 auto; }
.section { position: relative; z-index: 3; padding: 80px 20px; scroll-margin-top: 0; }
.light { background: var(--white); color: var(--bg); }
.dark { background: var(--bg); color: var(--white); }
.stack { display: flex; flex-direction: column; gap: 80px; }

.title { font-size: clamp(34px, 3.4vw, 48px); font-weight: 500; letter-spacing: -.03em; line-height: 1.05; }
.mono { font-family: var(--mono); font-weight: 400; font-size: 14px; line-height: 1.5; letter-spacing: -.02em; }
.head { display: flex; flex-direction: column; gap: 16px; }
.subtitle { display: flex; gap: 12px; max-width: 480px; font-family: var(--mono); font-weight: 400; font-size: 14px; line-height: 1.5; text-transform: uppercase; color: var(--muted); }
.subtitle::before { content: ""; flex: 0 0 8px; background: var(--cyan); }
.dark .subtitle { color: var(--muted); }

.bar { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 14px; font-family: var(--mono); font-weight: 400; font-size: 13px; }
.dark .bar { border-color: var(--line); }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 44px; padding: 0 18px; border: 0; border-radius: 3px; background: var(--white); color: var(--bg); font-family: var(--mono); font-size: 14px; text-transform: uppercase; cursor: pointer; transition: background-color .25s, color .25s; }
.btn:hover { background: var(--cyan); color: var(--white); }
.btn.accent { background: var(--cyan); color: var(--white); }
.btn.accent:hover { background: var(--bg); }
.btn.black { background: var(--bg); color: var(--white); }
.btn.black:hover { background: var(--cyan); }
.cta-row { display: flex; justify-content: center; }

/* ===== Images ===== */
.media { position: relative; overflow: hidden; background: var(--navy); }
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ===== Navbar ===== */
.nav { position: fixed; z-index: 50; top: 8px; left: 8px; right: 8px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 62px; padding: 0 18px; background: var(--white); color: var(--bg); border-radius: 4px; transition: transform .4s cubic-bezier(.44, 0, .56, 1); }
.nav.is-hidden { transform: translateY(-80px); }
.brand { display: flex; align-items: center; gap: 8px; font-size: 20px; letter-spacing: -.03em; justify-self: start; }
.nav-links { display: flex; gap: 36px; font-family: var(--mono); font-weight: 400; font-size: 13px; text-transform: uppercase; }
.nav-links a:hover { color: var(--cyan); }

/* ===== Hero ===== */
.hero { position: sticky; top: 0; z-index: 1; height: 100vh; height: 100svh; min-height: 560px; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 20px; color: var(--white); overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute !important; inset: 0; z-index: -2; }
.hero-bg img { object-position: center top; }
.js .hero-bg { animation: zoom-in 2.2s cubic-bezier(.2, .6, .3, 1) both; }
/* hero starts dark and a little closer, then settles */
@keyframes zoom-in { from { filter: brightness(.12); transform: scale(1.14); } to { filter: brightness(1); transform: none; } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0, 0, 0, .8); opacity: .2; -webkit-mask-image: linear-gradient(180deg, transparent 48%, #000 75%); mask-image: linear-gradient(180deg, transparent 48%, #000 75%); }
.hero-content { padding: 20px 20px 0; max-width: 2160px; width: 100%; display: flex; flex-direction: column; gap: 24px; }
.js .hero-content { animation: rise 1.1s cubic-bezier(.16, 1, .3, 1) .1s both; }
@keyframes rise { from { opacity: 0; transform: translateY(170px); } to { opacity: 1; transform: none; } }
.hero h1 { align-self: flex-end; text-align: right; font-size: clamp(34px, 9vw, 136px); font-weight: 500; letter-spacing: -.045em; line-height: .98; mix-blend-mode: exclusion; }
.hero-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.hero-foot p { max-width: 560px; font-size: 15px; }
.only-phone { display: none; }

/* ===== About ===== */
.about { z-index: 2; }
.about .stack { min-height: 100vh; justify-content: center; }
.statement { font-size: 52px; line-height: 1.2; letter-spacing: -.025em; font-weight: 500; }
.partners { display: flex; flex-direction: column; gap: 30px; text-align: center; overflow: hidden; }
.ticker { 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); }
.ticker-track { display: flex; width: max-content; animation: slide 32s linear infinite; }
.ticker.reverse .ticker-track { animation-direction: reverse; }
.ticker-item { width: 130px; height: 66px; margin-right: 44px; display: grid; place-items: center; filter: grayscale(1); opacity: .7; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ===== Services ===== */
.services .stack { min-height: calc(100vh - 160px); justify-content: center; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 24px; }
.service h3 { font-size: 24px; font-weight: 500; letter-spacing: -.02em; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.service p { margin-top: 16px; max-width: 390px; color: var(--muted); }

/* ===== Works ===== */
.works { display: flex; flex-direction: column; gap: 80px; }
.works-body { display: flex; align-items: flex-start; gap: 10px; }
.sidebar { position: sticky; top: 100px; flex: 0 0 min(397px, 30%); display: flex; flex-direction: column; gap: 32px; }
.sidebar .title { max-width: 320px; }
.sidebar .subtitle { max-width: 360px; }
.thumbs { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding-left: 18px; }
.thumb { position: relative; width: 66px; height: 66px; border: 0; background: none; cursor: pointer; opacity: .85; transition: width .35s, height .35s, opacity .35s; }
.thumb .media { width: 100%; height: 100%; }
.thumb.active { width: 90px; height: 90px; opacity: 1; }
.cards { flex: 1; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.work-card { display: block; aspect-ratio: 1.46; scroll-margin-top: 100px; }
.work-card img { transition: transform .8s cubic-bezier(.16, 1, .3, 1); }
.work-card:hover img { transform: scale(1.04); }
.works-phone-head, .works-phone-cta { display: none; }

/* ===== Pricing ===== */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.plan { display: flex; flex-direction: column; gap: 46px; padding: 20px; border-radius: 8px; }
.tag { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-weight: 400; }
.tag i { width: 14px; height: 14px; background: var(--cyan); }
.featured .tag i { background: var(--white); }
.price { display: flex; align-items: center; gap: 10px; margin-top: 38px; }
.counter { display: flex; font-family: var(--price); font-weight: 300; font-size: 68px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.featured .counter { color: var(--cyan); }
.digit { display: inline-block; height: 1.1em; overflow: hidden; }
.digit-strip { display: flex; flex-direction: column; transition: transform .9s cubic-bezier(.2, 1.1, .3, 1); }
.digit-strip b { display: block; height: 1.1em; font-weight: inherit; }
.per { color: var(--muted); }
.featured .per { color: var(--muted); }
.features { list-style: none; font-family: var(--mono); font-weight: 400; font-size: 17px; line-height: 1.5; }
.features li { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.plan-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; font-family: var(--mono); font-weight: 400; font-size: 17px; }
.one-liner { margin-top: -52px; text-align: center; font-size: 15px; }

/* ===== Process accordion ===== */
.faq .stack { min-height: calc(100vh - 160px); justify-content: center; }
.faq-item h3 { font-weight: 500; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; background: none; border: 0; text-align: left; font-size: 18px; cursor: pointer; }
.faq-q::after { content: "+"; font-family: var(--mono); font-weight: 400; font-size: 24px; transition: rotate .3s; }
.faq-q[aria-expanded="true"]::after { rotate: 45deg; }
.faq-a { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .35s, visibility .35s; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding-bottom: 22px; max-width: 640px; color: var(--muted); }
.faq-item.open .faq-a { grid-template-rows: 1fr; visibility: visible; }

/* ===== Highlight cards ===== */
.reviews { display: flex; align-items: flex-start; gap: 38px; }
.reviews > .head { position: sticky; top: 100px; flex: 0 1 500px; }
.review-list { flex: 1.8; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.review { display: grid; grid-template-columns: 1fr 1.4fr 228px; gap: 10px; align-items: start; padding-top: 8px; border-top: 1px solid var(--line); font-family: var(--mono); font-weight: 400; font-size: 12px; line-height: 1.5; }

/* ===== Footer ===== */
.footer { position: relative; z-index: 3; background: var(--bg); color: var(--white); padding: 60px 20px 30px; }
.footer .subtitle { color: var(--muted); }
.footer .bar { border-color: var(--line); }
.footer .wrap { display: flex; flex-direction: column; gap: 60px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr auto; gap: 30px; align-items: start; padding-bottom: 50px; border-bottom: 1px solid var(--line); }
.footer-links { display: flex; flex-direction: column; gap: 10px; font-family: var(--mono); font-weight: 400; font-size: 14px; text-transform: uppercase; }
.footer-top a:hover { color: var(--cyan); }
.footer-main { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.footer-info { display: flex; flex-direction: column; justify-content: space-between; gap: 50px; }
.wordmark { font-size: clamp(56px, 7vw, 96px); letter-spacing: -.05em; line-height: 1; }
.contact-info { display: grid; grid-template-columns: 1fr 1fr; gap: 50px 8px; }
.contact-info h3 { font-family: var(--mono); font-weight: 400; font-size: 12px; color: var(--muted); margin-bottom: 16px; }
.contact-info p, .contact-info address { font-family: var(--mono); font-weight: 400; font-size: 14px; line-height: 1.7; }
.contact-info address { font-style: normal; max-width: 200px; }

/* ===== Form ===== */
.form { display: flex; flex-direction: column; gap: 32px; }
.field { display: flex; flex-direction: column; gap: 16px; }
.label { font-family: var(--mono); font-weight: 400; font-size: 12px; text-transform: uppercase; }
.field input, .field textarea { width: 100%; padding: 0 12px; height: 40px; background: transparent; border: 1px solid rgba(255, 255, 255, .25); font-family: var(--form); font-weight: 400; font-size: 14px; }
.field textarea { height: 110px; padding: 12px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: currentColor; }
.field ::placeholder { color: var(--muted); }
.light .field input, .light .field textarea { border-color: rgba(0, 0, 0, .25); }
.budget { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px; border: 0; }
.budget legend { float: left; }
.budget label { display: flex; align-items: center; gap: 10px; font: 400 14px/1.3 "Roboto Mono", var(--mono); cursor: pointer; }
.budget input { appearance: none; width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--muted); cursor: pointer; }
.budget input:checked { background: var(--cyan); }
.form .btn { width: 100%; height: 40px; }
.form-note { font-family: var(--mono); font-size: 13px; min-height: 1.4em; color: var(--cyan); margin-top: -18px; }

/* ===== Inner pages ===== */
.latest { height: 100vh; min-height: 520px; padding: 88px 15px 15px; display: flex; }
.latest a { flex: 1; display: flex; align-items: flex-end; padding: 30px; color: var(--white); }
.latest a::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); }
.latest .caption { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; }
.latest .caption b { font-size: clamp(32px, 4vw, 56px); font-weight: 500; letter-spacing: -.03em; }
.project-list { padding: 85px 30px 100px; }
.project-list .wrap { display: flex; flex-direction: column; gap: 30px; }
.rule { height: 1px; background: var(--line); }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 15px; }
.pcard .media { aspect-ratio: .86; border-radius: 4px; }
.pcard img { transition: transform .8s cubic-bezier(.16, 1, .3, 1); }
.pcard:hover img { transform: scale(1.05); }
.pcard h2 { margin-top: 12px; font-size: 22px; font-weight: 500; }
.pcard p { display: flex; justify-content: space-between; margin-top: 4px; font-family: var(--mono); font-weight: 400; font-size: 13px; color: var(--muted); }

.case-hero { display: flex; align-items: flex-start; }
.case-image { position: sticky; top: 0; flex: 1; height: 100vh; display: flex; padding: 150px 15px 15px; }
.case-image .media { flex: 1; border-radius: 8px; }
.case-copy { flex: 1; display: flex; flex-direction: column; gap: 60px; padding: 150px 100px 120px 30px; min-height: 100vh; justify-content: center; }
.case-copy p { font-size: 18px; line-height: 1.55; white-space: pre-line; }
.case-copy h2 { font-size: 30px; font-weight: 400; letter-spacing: -1px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }

.page { padding: 150px 20px; display: flex; flex-direction: column; align-items: center; gap: 60px; }
.contact-title { text-align: center; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; width: 100%; max-width: 1440px; padding-top: 64px; color: var(--white); }
.contact-grid .contact-info { align-self: end; }
.contact-grid .contact-info h3 { color: var(--white); }
.contact-grid .form { color: var(--bg); }


.notfound { min-height: 100vh; display: grid; place-content: center; justify-items: center; text-align: center; gap: 24px; padding: 150px 20px 100px; position: relative; z-index: 3; }
.notfound .big { font-size: clamp(120px, 30vw, 400px); line-height: .85; letter-spacing: -.06em; -webkit-mask-image: linear-gradient(0deg, transparent, #000 253%); mask-image: linear-gradient(0deg, transparent, #000 253%); }

/* ===== Horizon theme and content ===== */
body { background: var(--bg); color: var(--white); }
::selection { background: var(--cyan); color: var(--bg); }
.light { background: var(--bg-2); color: var(--white); }
.dark { background: var(--bg); color: var(--white); }
.btn { background: var(--white); color: var(--bg); }
.btn:hover, .btn.accent:hover { background: var(--sky); color: var(--bg); }
.btn.accent { background: var(--cyan); color: var(--bg); }
.btn.black, .btn.ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1px var(--cyan); }
.btn.ghost:hover, .btn.black:hover { background: rgba(255, 255, 255, .12); color: var(--white); box-shadow: inset 0 0 0 1px var(--sky); }
.text-link { font-family: var(--mono); font-weight: 400; font-size: 13px; color: var(--sky); text-transform: uppercase; padding: 12px 0; }
.text-link:hover { color: var(--cyan); }
.media { background: var(--navy); }
.status::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }

/* navbar */
.nav { background: rgba(7, 23, 39, .94); color: var(--white); border: 1px solid var(--line); }
.brand { white-space: nowrap; }
.nav-links { gap: 28px; }

/* hero: whole image, true proportions */
.hero { background: var(--bg); }
.hero-bg { position: absolute !important; inset: 0; z-index: -2; background: #01040c; }
.hero::after { background: linear-gradient(180deg, transparent 52%, rgba(3, 7, 13, .88) 86%, var(--bg)); opacity: 1; -webkit-mask-image: none; mask-image: none; }
.hero h1 { mix-blend-mode: normal; text-shadow: 0 2px 30px rgba(3, 7, 13, .9); }
.eyebrow { align-self: flex-end; font-family: var(--mono); font-size: 13px; letter-spacing: .12em; color: var(--sky); }
.hero-content { gap: 14px; }
.hero-foot p { max-width: 440px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 10px; }

/* studio */
.statement-block { display: flex; flex-direction: column; gap: 24px; }
.statement-block h2 { color: var(--sky); }
.statement { font-size: 46px; }
.partners { align-items: center; }
.partners > p { max-width: 640px; color: var(--muted); }
.ticker { width: 100%; }
.ticker-item { width: auto; height: 54px; margin-right: 0; padding: 0 28px; display: flex; align-items: center; gap: 28px; white-space: nowrap; filter: none; opacity: 1; font-family: var(--mono); font-size: 15px; color: var(--muted); }
.ticker-item::after { content: ""; width: 8px; height: 8px; background: var(--cyan); }

/* services */
.service-grid { gap: 40px 24px; }
.service { padding-top: 4px; }
.service .num { display: block; color: var(--cyan); margin-bottom: 10px; }
.service:hover h3 { border-color: var(--cyan); }
.service h3 { transition: border-color .3s; }

/* project showcase */
.sidebar { top: 96px; gap: 24px; }
.project-info { display: grid; }
.info { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 18px; opacity: 0; visibility: hidden; transform: translateY(18px); transition: opacity .35s, transform .45s cubic-bezier(.44, 0, .34, .98), visibility .35s; }
.info.active { opacity: 1; visibility: visible; transform: none; }
.project-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.thumbs { padding-left: 0; }
.thumb { padding: 0; }
.thumb .media { display: block; border: 1px solid var(--line); }
.thumb.active .media, .thumb:hover .media { border-color: var(--cyan); }
.thumb:hover { opacity: 1; }
.work { scroll-margin-top: 96px; }
.work-card { display: block; aspect-ratio: auto; height: auto; }
.work-card .media { border: 1px solid var(--line); }
.work-card:hover .media { border-color: var(--cyan); }
.work-caption { display: none; }
.cards { gap: 24px; padding-bottom: 12vh; }

/* pricing */
.plans { grid-template-columns: repeat(3, 1fr); }
.plan { background: var(--navy); border: 1px solid var(--line); gap: 32px; transition-property: opacity, transform, border-color; }
.plan:hover { border-color: var(--cyan); }
.plan.featured { background: var(--bg); border-color: var(--cyan); }
.tag i, .featured .tag i { background: var(--cyan); }
.price { align-items: baseline; gap: 8px; margin-top: 30px; white-space: nowrap; }
.currency { font-family: var(--mono); font-size: 15px; color: var(--sky); }
.counter, .featured .counter { font-size: clamp(38px, 4.2vw, 62px); color: var(--white); }
.featured .counter { color: var(--cyan); }
.bundle { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 20px; padding: 12px; border: 1px dashed var(--line); font-family: var(--mono); font-weight: 400; font-size: 14px; color: var(--muted); }
.bundle b { font-weight: 500; color: var(--sky); }
.features li, .featured .features li { border-color: var(--line); font-size: 14px; }
.plan-foot .btn { width: 100%; }
.one-liner { margin-top: -52px; color: var(--muted); }

/* process (accordion layout) */
.faq-q span { display: flex; gap: 20px; align-items: baseline; }
.faq-q em { font: 400 13px var(--mono); color: var(--cyan); }
.faq-a p { padding-left: 38px; }

/* highlight cards (testimonial layout without invented reviews) */
.review { grid-template-columns: 1fr 1.4fr 260px; padding: 28px 0; font-size: 14px; border-color: var(--line); }
.review .num { color: var(--cyan); }
.review h3 { font: 500 22px/1.25 var(--sans); }
.review p { color: var(--muted); }
.reviews > .head .title { max-width: 11em; }

/* final call to action */
.final { text-align: center; padding-block: 140px; background: radial-gradient(70% 90% at 50% 110%, rgba(0, 207, 255, .22), transparent 70%), var(--bg); }
.final .wrap { display: flex; flex-direction: column; align-items: center; gap: 36px; }
.final .title { font-size: clamp(36px, 6vw, 84px); max-width: 13em; }

/* contact + footer */
.footer { background: var(--bg); border-top: 1px solid var(--line); }
.footer-top { grid-template-columns: 2fr 1fr; }
.footer-top .title { max-width: 14em; }
.footer-top .head .w { white-space: nowrap; }
.wordmark { font-size: clamp(36px, 4.6vw, 66px); line-height: 1.05; }
.footer-info .mono { color: var(--sky); }
.footer-main.info-only { grid-template-columns: 1fr; }
.copyright { color: var(--muted); font-size: 12px; }
.contact-info a:hover { color: var(--cyan); }
.contact-info p { overflow-wrap: anywhere; }
.contact-info h3.gap { margin-top: 24px; }
.field input, .field textarea, .light .field input, .light .field textarea { background: rgba(11, 25, 48, .6); border-color: var(--line); }
.field input:focus, .field textarea:focus { border-color: var(--cyan); }
.budget input:checked { box-shadow: inset 0 0 0 4px var(--bg); }
.form-note { color: var(--sky); line-height: 1.6; }
.form-note a { text-decoration: underline; }
.hp { position: absolute; left: -9999px; }
.contact-grid .form, .contact-grid { color: var(--white); }
.contact-grid { scroll-margin-top: 90px; }
#contact-form { scroll-margin-top: 100px; }

/* inner pages */
.latest { height: auto; min-height: 0; padding: 88px 15px 15px; background: var(--bg); justify-content: center; }
.latest a { position: relative; flex: 0 1 1400px; display: block; padding: 0; }
.latest a::after { display: none; }
.latest .caption { display: flex; padding: 20px 5px; }
.project-grid { grid-template-columns: 1fr 1fr; gap: 40px 15px; }
.pcard .media { border: 1px solid var(--line); }
.pcard > p { display: block; margin: 10px 0 16px; font-size: 14px; color: var(--muted); }
.pcard:hover .media { border-color: var(--cyan); }
.case-hero { background: var(--bg-2); }
.case-image { height: 100vh; align-items: center; flex: 1.5; }
.case-image .media { flex: 1; min-width: 0; }
.case-copy { gap: 32px; }
.case-copy p { color: var(--muted); }
.notfound { background: var(--bg); }
.notfound .big { color: var(--cyan); }

/* ===== Reveal animations (only hidden when JavaScript is running) ===== */
.js [data-reveal] { opacity: 0; transition: opacity .6s cubic-bezier(.44, 0, .56, 1), transform .6s cubic-bezier(.44, 0, .56, 1); transition-delay: var(--delay, 0s); }
.js [data-reveal="left"] { transform: translateX(-150px); }
.js [data-reveal="up"] { transform: translateY(54px); transition-duration: .5s; }
.js [data-reveal].in { opacity: 1; transform: none; }

.w { display: inline-block; white-space: nowrap; }
.js [data-words] .w { opacity: 0; transform: translateY(var(--from, 150px)); filter: blur(var(--blur, 10px)); transition: opacity .6s, transform .6s cubic-bezier(.44, 0, .56, 1), filter .6s; transition-delay: calc(var(--base, .6s) + var(--i) * .06s); }
.js [data-words].in .w { opacity: 1; transform: none; filter: none; }

.line { display: block; overflow: hidden; }
.line > span { display: block; white-space: nowrap; transform: translateY(110%); transition: transform .7s cubic-bezier(.44, 0, .34, .98); transition-delay: calc(var(--i) * .1s); padding-bottom: .04em; }
.in .line > span { transform: none; }

.js [data-letters] .ch { display: inline-block; opacity: 0; }
.js [data-letters].in .ch { animation: letter .55s cubic-bezier(.2, .8, .3, 1) both; animation-delay: calc(var(--i) * .04s); }
@keyframes letter { from { opacity: 0; transform: translateY(25px) scale(.8); } 65% { opacity: 1; transform: translateY(-2px) scale(1.05); } to { opacity: 1; transform: none; } }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ===== Tablet (below 1440px type scales; below 1200px layout adjusts) ===== */
@media (max-width: 1199.98px) {
  .statement { font-size: 38px; line-height: 1.2; }
  .features { font-size: 14px; }
  .plan-foot { flex-direction: column; align-items: stretch; text-align: left; }
  .reviews { flex-direction: column; }
  .reviews > .head { position: static; flex: none; }
  .review-list { width: 100%; flex: none; }
  .footer-top { grid-template-columns: 1fr auto; }
  .footer-top > .head { grid-column: 1 / -1; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 989.98px) {
  .footer-main, .contact-grid { grid-template-columns: 1fr; }
  .case-hero { flex-direction: column; }
  .case-image { position: relative; width: 100%; flex: none; }
  .case-copy { width: 100%; min-height: 0; padding: 30px 15px 45px; }
}

/* ===== Phone ===== */
@media (max-width: 809.98px) {
  .section { padding: 60px 20px; }
  .stack { gap: 48px; }
  .only-wide { display: none; }
  .only-phone { display: block; }
  .about .stack { min-height: 0; }
  .statement { font-size: 30px; line-height: 1.15; }
  .services .stack, .faq .stack { min-height: 0; }
  .service-grid, .plans { grid-template-columns: 1fr; }
  .plans { gap: 24px; }
  .works { gap: 40px; }
  .works-body { flex-direction: column; }
  .sidebar { display: none; }
  .works-phone-head { display: flex; }
  .works-phone-cta { display: flex; }
  .cards { width: 100%; flex: none; }
  .work-card { aspect-ratio: auto; height: 260px; }
  .counter { font-size: 52px; }
  .one-liner { margin-top: -24px; }
  .review { grid-template-columns: 1fr; gap: 20px; padding-top: 20px; }
  .footer-top { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .project-list { padding: 60px 15px; }
  .latest { height: 80vh; }
  .case-image { height: auto; padding-top: 100px; }
  .case-image .media { height: 462px; }
}

/* In-between widths: cards shorter, as on the Framer tablet layout */
@media (min-width: 810px) and (max-width: 989.98px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .work-card { aspect-ratio: auto; height: 310px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal], .js [data-words] .w, .js [data-letters] .ch { opacity: 1; transform: none; filter: none; }
  .line > span { transform: none; }
  @view-transition { navigation: none; }
}

/* ===== Horizon responsive ===== */
@media (max-width: 1099.98px) {
  .plans { grid-template-columns: 1fr; max-width: 620px; }
  .counter, .featured .counter { font-size: 58px; }
  .review { grid-template-columns: 50px 1fr 1fr; }
}
@media (max-width: 989.98px) {
  .case-image { height: auto; align-items: stretch; padding: 100px 15px 15px; }
  .case-image .media { flex: none; width: 100%; height: auto; }
}
@media (min-width: 810px) and (max-width: 989.98px) { .work-card { height: auto; } .sidebar { flex-basis: 250px; } .sidebar .title { font-size: 30px; } }
@media (max-width: 809.98px) {
  .contact-info > div:first-child { grid-column: 1 / -1; }
  .statement { font-size: 28px; }
  .work-caption { display: flex; flex-direction: column; gap: 12px; padding: 14px 0 8px; }
  .work-caption h3 { font-size: 26px; font-weight: 500; }
  .work-caption p { color: var(--muted); }
  .cards { gap: 32px; padding-bottom: 0; }
  .work-card { height: auto; }
  .review { grid-template-columns: 1fr; gap: 10px; padding: 24px 0; }
  .footer-top { grid-template-columns: 1fr; }
  .final { padding-block: 90px; }
  .project-grid { grid-template-columns: 1fr; }
  .latest { height: auto; }
  .budget { gap: 14px 20px; }
  .budget .label { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .info { transform: none; } .hero-bg img { animation: none; } }
.page .head { align-items: center; text-align: center; }
.page .head .subtitle { text-align: left; }
.project-list { padding-top: 70px; }
@media (max-width: 1099.98px) { .plans { grid-template-columns: minmax(0, 1fr); width: 100%; margin-inline: auto; } }
@media (max-width: 419.98px) { .counter, .featured .counter { font-size: 44px; } .brand { font-size: 17px; } }
/* contact page: footer links in one row, since the headline is already at the top of the page */
body[data-page="contact"] .footer-top { grid-template-columns: 1fr; }
body[data-page="contact"] .footer-top > div:empty { display: none; }
body[data-page="contact"] .footer-links { flex-direction: row; flex-wrap: wrap; gap: 10px 32px; }
/* =====================================================================
   Effects matched to the reference screen recordings (Nov 2026)
   ===================================================================== */
/* name: plain "Horizon" wordmark */
.brand { font-size: 23px; font-weight: 400; letter-spacing: -.035em; }
.wordmark { font-weight: 400; font-size: clamp(52px, 4.8vw, 82px); letter-spacing: -.045em; line-height: 1; }

/* accent colour used sparingly, as in the reference */
.eyebrow, .footer-info .mono, .currency, .text-link, .service .num, .faq-q em, .review .num { color: var(--muted); }
.statement-block h2, .bundle b { color: var(--white); }
.text-link:hover { color: var(--cyan); }
.btn.ghost, .btn.black { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.ticker-item::after { background: rgba(167, 184, 201, .45); }
.plan:hover, .plan.featured { border-color: var(--line); }
.final { background: var(--bg); }
.work-card:hover .media, .pcard:hover .media { border-color: var(--line); }

/* navbar: brand, centred links, two-line menu button */
.nav { grid-template-columns: 1fr auto 1fr; }
.nav-links { gap: 36px; }
.menu-btn, .menu-close { grid-column: 3; justify-self: end; display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; background: none; border: 0; cursor: pointer; }
.bars { position: relative; display: block; width: 24px; height: 10px; }
.bars i { position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor; transition: top .35s cubic-bezier(.44, 0, .34, .98), rotate .35s cubic-bezier(.44, 0, .34, .98); }
.bars i:first-child { top: 1px; }
.bars i:last-child { top: 7.5px; }
.menu.open .bars i:first-child { top: 4.25px; rotate: 20deg; }
.menu.open .bars i:last-child { top: 4.25px; rotate: -20deg; }

/* hover text roll */
.roll { display: inline-block; overflow: hidden; vertical-align: top; line-height: 1.25; }
.roll > span { position: relative; display: block; transition: transform .32s cubic-bezier(.44, 0, .34, .98), color .2s; }
.roll > span::after { content: attr(data-t); content: attr(data-t) / ""; position: absolute; left: 0; top: 100%; color: var(--cyan); }
.nav-links a:hover, .footer-top a:hover { color: inherit; }
@media (hover: hover) { a:hover > .roll > span { transform: translateY(-100%); } }
a:focus-visible > .roll > span { transform: translateY(-100%); }

/* menu panel: grows out of the navbar, turns accent, then the words rise in */
.menu { position: fixed; z-index: 70; top: 8px; left: 8px; right: 8px; display: grid; grid-template-rows: 62px 0fr; max-height: calc(100svh - 16px); overflow: hidden; border-radius: 4px; background: var(--bg-2); color: var(--bg); opacity: 0; visibility: hidden; box-shadow: 0 14px 30px rgba(0, 0, 0, .45);
  --ease: cubic-bezier(.44, 0, .2, 1);
  transition: grid-template-rows .45s var(--ease), left .45s var(--ease), right .45s var(--ease), background-color .4s, color .4s, opacity .18s .3s, visibility 0s .48s; }
.menu.open { grid-template-rows: 62px 1fr; left: 7.5%; right: 7.5%; background: var(--cyan); opacity: 1; visibility: visible;
  transition: grid-template-rows .5s var(--ease), left .5s var(--ease), right .5s var(--ease), background-color .5s linear, color .4s, opacity .08s, visibility 0s; }
.menu-top { display: flex; justify-content: space-between; align-items: center; padding: 0 18px; }
.menu-close { margin-right: -10px; }
.menu-clip { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.menu-body { display: flex; flex-direction: column; align-items: center; padding: 2vh 40px 26px; }
.menu-body nav { display: flex; flex-direction: column; align-items: center; }
.menu-link { font-size: clamp(30px, min(4.4vw, 6.4vh), 72px); font-weight: 500; letter-spacing: -.035em; text-transform: uppercase; line-height: 1.12; }
.menu-link .roll { line-height: 1.12; }
.menu-link .roll > span::after { color: var(--white); }
.menu-link.picked .roll > span { color: var(--white); }
.menu-foot { align-self: stretch; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; margin-top: 3vh; padding-top: 20px; border-top: 1px solid rgba(3, 7, 13, .25); font-size: clamp(19px, 2vw, 28px); letter-spacing: -.03em; text-transform: uppercase; }
.menu-foot a { text-transform: none; }
.menu-foot .status { order: 3; width: 100%; justify-content: center; text-align: center; font: 400 12px var(--mono); }
.menu-foot .status::before { background: var(--bg); box-shadow: none; }
.menu-link, .menu-foot { opacity: 0; translate: 0 36px; transition: opacity .15s, translate .15s; }
.menu.open .menu-link, .menu.open .menu-foot { opacity: 1; translate: 0 0; transition: opacity .35s, translate .45s cubic-bezier(.2, .8, .3, 1); transition-delay: calc(.1s + var(--i, 5) * .055s); }
.menu.open.leaving .menu-link, .menu.open.leaving .menu-foot { opacity: 0; transition: opacity .16s; transition-delay: 0s; }

/* two-step page wipe for browsers without the built-in one (same corner and direction) */
.cover, html.arriving::before { position: fixed; inset: 0; z-index: 100; background: var(--navy); }
.cover { animation: wipe .36s cubic-bezier(.45, 0, .55, 1) both; -webkit-mask-image: conic-gradient(from 0deg at 100% 100%, transparent calc(360deg - var(--sweep)), #000 0); mask-image: conic-gradient(from 0deg at 100% 100%, transparent calc(360deg - var(--sweep)), #000 0); }
html.arriving::before { content: ""; pointer-events: none; animation: wipe .38s cubic-bezier(.45, 0, .55, 1) both; -webkit-mask-image: conic-gradient(from 270deg at 100% 100%, #000 calc(90deg - var(--sweep)), transparent 0); mask-image: conic-gradient(from 270deg at 100% 100%, #000 calc(90deg - var(--sweep)), transparent 0); }

/* projects: equal thumbnails, the chosen one steps right, a square slides to it and turns */
.thumbs { --size: clamp(66px, 6.2vw, 96px); --gap: 8px; --n: 0; position: relative; gap: var(--gap); }
.thumb, .thumb.active { width: var(--size); height: var(--size); opacity: 1; }
.thumb { transition: translate .45s cubic-bezier(.44, 0, .2, 1); }
.thumb.active { translate: 18px 0; }
.thumb .media, .thumb.active .media, .thumb:hover .media { border: 0; }
.thumb:focus-visible { outline-offset: 2px; }
.marker { position: absolute; left: calc(var(--size) + 44px); top: calc(var(--size) / 2 - 12px); width: 24px; height: 24px; background: var(--cyan); transform: translateY(calc(var(--n) * (var(--size) + var(--gap)))) rotate(calc(var(--n) * 45deg)); transition: transform .55s cubic-bezier(.44, 0, .2, 1); pointer-events: none; }
.cards { gap: 10px; }
.work-card, .pcard .shot { position: relative; display: block; overflow: hidden; }
/* quiet fade used by the footer and the process rows */
.js [data-reveal="fade"] { transform: none; transition-duration: .8s; }

@media (max-width: 989.98px) { .nav-links { gap: 20px; } }
@media (max-width: 809.98px) {
  .nav { grid-template-columns: 1fr auto 1fr; }
  .nav-links { display: none; }
  .menu.open { left: 8px; right: 8px; }
  .menu-body { padding: 3vh 18px 22px; }
  .menu-link { font-size: clamp(36px, min(13vw, 7vh), 64px); line-height: 1.15; }
  .menu-link .roll { line-height: 1.15; }
  .menu-foot { flex-direction: column; align-items: center; font-size: clamp(17px, 5.6vw, 26px); }
  .menu-foot a { font-size: clamp(15px, 5vw, 24px); }
  .service h3 { display: flex; align-items: center; gap: 12px; }
  .service h3::before { content: ""; flex: 0 0 12px; height: 12px; background: var(--cyan); }
}
@media (prefers-reduced-motion: reduce) { .cover, html.arriving::before { display: none; } .menu-link, .menu-foot { translate: 0 0; } }
/* the navbar turns into the panel, so it is hidden while the menu is open */
.nav { transition: transform .4s cubic-bezier(.44, 0, .56, 1), opacity .15s .3s; }
.nav.under { opacity: 0; transition: opacity .1s; }
.menu-link { font-size: clamp(30px, min(4.2vw, 7.3vh), 76px); }
@media (max-width: 809.98px) { .menu-link { font-size: clamp(36px, min(13vw, 7vh), 64px); } }
.menu-btn, .menu-close, .menu-link, .thumb { -webkit-tap-highlight-color: transparent; }

/* =====================================================================
   Buttons and arrows
   ===================================================================== */
.btn { --chip: var(--bg); --chip-ink: var(--white); height: 50px; gap: 16px; padding: 0 8px 0 22px; border-radius: 6px; }
.btn.accent { --chip: var(--bg); --chip-ink: var(--cyan); }
.btn.ghost, .btn.black { --chip: rgba(255, 255, 255, .13); --chip-ink: var(--white); }
.btn.ghost:hover, .btn.black:hover { --chip: var(--white); --chip-ink: var(--bg); }
.form .btn { height: 50px; }
.arrow { flex: none; display: grid; place-items: center; width: 2.3em; height: 2.3em; border-radius: 4px; background: var(--chip); color: var(--chip-ink); transition: background-color .25s, color .25s; }
.arrow svg, .out svg, .card-arrow svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.arrow svg { width: 1.25em; height: 1.25em; stroke-width: 2; transition: rotate .35s cubic-bezier(.44, 0, .2, 1); }
.btn:hover .arrow svg, .btn:focus-visible .arrow svg { rotate: 45deg; }
.out { display: inline-block; vertical-align: -.1em; }
.out svg { display: block; width: .95em; height: .95em; stroke-width: 2; }
.card-arrow { position: absolute; right: 14px; bottom: 14px; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .24); background: rgba(3, 7, 13, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--white); opacity: 0; translate: -10px 0; transition: opacity .3s, translate .3s; pointer-events: none; }
.card-arrow svg { width: 22px; height: 22px; stroke-width: 1.8; }
a:hover .card-arrow, a:focus-visible .card-arrow { opacity: 1; translate: 0 0; }
@media (hover: none) { .card-arrow { opacity: 1; translate: 0 0; } }

/* glass navbar: same navy, see-through and blurred, with a soft shine along the top edge */
.nav { background: linear-gradient(180deg, rgba(180, 235, 255, .15), rgba(131, 229, 255, .045) 48%, rgba(131, 229, 255, .07)), rgba(9, 31, 52, .4); -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%); border: 1px solid rgba(170, 228, 255, .24); border-radius: 10px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 -1px 0 rgba(255, 255, 255, .05), 0 12px 34px rgba(0, 0, 0, .34); }
.menu { border-radius: 10px; }

/* =====================================================================
   Hero. Desktop is drawn for a 1536 x 864 screen; --u is one pixel of
   that design, so every other screen shows the same picture, scaled.
   ===================================================================== */
.hero { --u: min(calc(100vw / 1536), calc(100svh / 864)); height: auto; min-height: 100vh; min-height: 100svh; padding: 74px 0 calc(var(--u) * 20); }
.hero.tall { position: relative; }
.hero-bg img { inset: auto; max-width: none; width: calc(var(--u) * 1736); height: calc(var(--u) * 976.5); left: calc(50% - var(--u) * 868); top: calc((100vh - var(--u) * 864) * .35 - var(--u) * 89); top: calc((100svh - var(--u) * 864) * .35 - var(--u) * 89); object-fit: cover; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.hero-content { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 0 24px; max-width: none; padding: 0 max(16px, calc(var(--u) * 20)); }
.hero-foot { grid-area: 1 / 1; gap: max(14px, calc(var(--u) * 20)); padding-bottom: calc(var(--u) * 2); }
.hero-head { grid-area: 1 / 2; display: flex; flex-direction: column; align-items: flex-end; gap: max(8px, calc(var(--u) * 14)); }
.hero h1 { font-size: max(34px, calc(var(--u) * 100)); line-height: .98; white-space: nowrap; }
.eyebrow { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 4px 12px; font-size: max(11px, calc(var(--u) * 14)); letter-spacing: .12em; text-transform: uppercase; color: var(--white); text-shadow: 0 1px 12px rgba(3, 7, 13, .95), 0 0 4px rgba(3, 7, 13, .9); }
.eyebrow span + span { display: flex; align-items: center; gap: 12px; color: var(--sky); }
.eyebrow span + span::before { content: ""; width: 7px; height: 7px; background: var(--cyan); }
.hero-foot p { max-width: 31em; font-size: max(13px, calc(var(--u) * 16)); line-height: 1.6; }
.hero-buttons { gap: max(10px, calc(var(--u) * 12)); }
.hero .btn { height: clamp(46px, calc(var(--u) * 58), 88px); font-size: clamp(12.5px, calc(var(--u) * 15.5), 23px); gap: 1.2em; padding: 0 .6em 0 1.7em; }
.hero-buttons { flex-wrap: wrap; }

/* phones and upright tablets: menu bar, then the black hole in the free space, then the words.
   Nothing can overlap, whatever the screen size. */
@media (max-width: 809.98px), (max-aspect-ratio: 5/4) {
  .hero { padding: 74px 0 16px; justify-content: flex-start; }
  .hero::after { display: none; }
  .hero-bg { position: relative !important; inset: auto; flex: 1 1 0; width: 100%; min-height: 150px; container-type: size; overflow: visible; background: transparent; pointer-events: none; }
  .hero-bg img { --wide: 175cqw; left: 50%; top: 50%; width: min(var(--wide), 290cqh); height: auto; aspect-ratio: 16 / 9; transform: translate(-50%, -50%); -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); }
  .hero-content { display: flex; flex-direction: column; align-items: stretch; gap: 16px; padding: 0 20px; }
  .hero-head { gap: 10px; }
  .eyebrow { flex-direction: column; align-items: flex-end; font-size: clamp(10.5px, 3.2vw, 14px); }
  .hero h1 { font-size: min(11vw, 7.4svh, 104px); text-align: right; }
  .hero-foot { gap: 16px; padding: 0; }
  .hero-foot p { font-size: clamp(13px, 3.9vw, 17px); }
  .hero-buttons { align-self: stretch; gap: 10px; }
  .hero .btn { flex: 1 1 240px; justify-content: space-between; height: 54px; font-size: 14px; }
}
@media (min-width: 600px) and (max-width: 809.98px), (min-width: 600px) and (max-aspect-ratio: 5/4) {
  .hero-bg img { --wide: 135cqw; }
  .hero .btn { flex: 0 1 280px; }
}
@media (max-width: 809.98px) and (max-height: 660px), (max-aspect-ratio: 5/4) and (max-height: 660px) {
  .hero { padding-top: 70px; padding-bottom: 12px; }
  .hero-content { gap: 10px; }
  .hero-foot { gap: 10px; }
  .hero-foot p { font-size: 12.5px; line-height: 1.5; }
  .hero .btn { height: 46px; font-size: 13px; }
  .hero-bg { min-height: 130px; }
}
@media (max-width: 339.98px) { .hero-content { padding: 0 14px; } .eyebrow { letter-spacing: .08em; } }
/* sideways phones */
@media (max-height: 500px) and (min-aspect-ratio: 5/4) {
  .hero h1 { font-size: min(5.4vw, 12svh); }
  .hero .btn { height: 44px; font-size: 12px; gap: .9em; padding-left: 1.2em; }
  .hero-foot { gap: 10px; }
}

/* =====================================================================
   Theme switch (inside the menu)
   ===================================================================== */
.theme-btn { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; margin-top: 2vh; padding: 0 10px 0 18px; border: 1px solid rgba(3, 7, 13, .4); border-radius: 999px; background: transparent; color: var(--bg); font: 500 13px var(--mono); text-transform: uppercase; cursor: pointer; flex: none; -webkit-tap-highlight-color: transparent; }
.theme-btn i { position: relative; width: 44px; height: 26px; border-radius: 999px; background: rgba(3, 7, 13, .25); transition: background-color .3s; }
.theme-btn i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); transition: translate .3s cubic-bezier(.44, 0, .2, 1); }
.theme-btn[aria-checked="true"] i { background: var(--bg); }
.theme-btn[aria-checked="true"] i::after { translate: 18px 0; }
.theme-btn:focus-visible, .menu :focus-visible { outline-color: var(--bg); }
.theme-btn { opacity: 0; translate: 0 36px; transition: opacity .15s, translate .15s; }
.menu.open .theme-btn { opacity: 1; translate: 0 0; transition: opacity .35s, translate .45s cubic-bezier(.2, .8, .3, 1); transition-delay: .38s; }
.menu.open.leaving .theme-btn { opacity: 0; transition: opacity .16s; transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) { .theme-btn { translate: 0 0; } }
@media (max-height: 700px) { .menu-link { font-size: clamp(28px, min(11vw, 6.2vh), 56px); } .menu-foot { margin-top: 2vh; padding-top: 12px; font-size: 18px; } .menu-foot a { font-size: 16px; } .theme-btn { margin-top: 1vh; } }

/* =====================================================================
   Light mode. The hero stays dark because the black hole picture is
   a night-sky image; every other part turns light.
   ===================================================================== */
:root[data-theme="light"] { color-scheme: light; --muted: #4a6074; --line: rgba(7, 23, 39, .13); --ink: #071727; --accent-ink: #00719a; }
:root[data-theme="light"] body { background: #f5f9fc; color: var(--ink); }
:root[data-theme="light"] .hero { --muted: #a7b8c9; --line: rgba(131, 229, 255, .18); color: var(--white); }
:root[data-theme="light"] :is(.dark, .final, .notfound, .latest) { background: #f5f9fc; color: var(--ink); }
:root[data-theme="light"] :is(.light, .case-hero) { background: #eaf3f9; color: var(--ink); }
:root[data-theme="light"] .final { background: radial-gradient(70% 100% at 50% 115%, rgba(0, 207, 255, .22), transparent 70%), #f5f9fc; }
:root[data-theme="light"] .footer { background: #fff; color: var(--ink); }
:root[data-theme="light"] :is(.statement-block h2, .bundle b, .counter, .contact-grid, .contact-grid .form, .contact-grid .contact-info h3, .latest a) { color: var(--ink); }
:root[data-theme="light"] .featured .counter { color: var(--accent-ink); }
:root[data-theme="light"] .form-note { color: var(--accent-ink); }
:root[data-theme="light"] .notfound .big { color: var(--accent-ink); }
:root[data-theme="light"] .plan { background: #fff; box-shadow: 0 14px 34px rgba(7, 40, 70, .07); }
:root[data-theme="light"] .plan:hover { border-color: rgba(0, 113, 154, .45); }
:root[data-theme="light"] .plan.featured { border-color: var(--cyan); box-shadow: 0 18px 44px rgba(0, 150, 200, .18); }
:root[data-theme="light"] .media:not(.hero-bg) { background: #dbe9f2; }
:root[data-theme="light"] :is(.work-card, .pcard) .media { box-shadow: 0 14px 34px rgba(7, 40, 70, .12); }
:root[data-theme="light"] :is(.field input, .field textarea, .light .field input, .light .field textarea) { background: #fff; border-color: rgba(7, 23, 39, .18); }
:root[data-theme="light"] :is(.field input, .field textarea):focus { border-color: var(--accent-ink); }
:root[data-theme="light"] .footer :is(.field input, .field textarea) { background: #f5f9fc; }
:root[data-theme="light"] .budget input:checked { box-shadow: inset 0 0 0 4px #fff; background: var(--accent-ink); }
:root[data-theme="light"] .btn:not(.hero .btn, .accent, .ghost, .black) { background: var(--ink); color: var(--white); --chip: var(--white); --chip-ink: var(--ink); }
:root[data-theme="light"] .btn:not(.hero .btn, .accent, .ghost, .black):hover { background: #12314e; }
:root[data-theme="light"] :is(.btn.black, .btn.ghost):not(.hero .btn) { color: var(--ink); box-shadow: inset 0 0 0 1px rgba(7, 23, 39, .3); --chip: rgba(7, 23, 39, .09); --chip-ink: var(--ink); }
:root[data-theme="light"] :is(.text-link:hover, .contact-info a:hover) { color: var(--accent-ink); }
:root[data-theme="light"] .nav { background: linear-gradient(180deg, rgba(255, 255, 255, .65), rgba(255, 255, 255, .3)), rgba(236, 246, 252, .76); color: var(--ink); border-color: rgba(255, 255, 255, .7); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 10px 30px rgba(3, 20, 40, .16); }
:root[data-theme="light"] .nav .roll > span::after, :root[data-theme="light"] .footer .roll > span::after { color: var(--accent-ink); }
:root[data-theme="light"] :focus-visible { outline-color: var(--accent-ink); }
:root[data-theme="light"] .hero :focus-visible { outline-color: var(--cyan); }
:root[data-theme="light"] .menu:not(.open) { background: #eaf3f9; }
:root[data-theme="light"] .cover, html[data-theme="light"].arriving::before { background: #cdeaf7; }
