/* Layout: single dark look, cockpit-at-night navy with cobalt as the action colour and HUD cyan for labels. Full-width bands, 1120px column. */
:root {
  --bg: #070b14;
  --bg-2: #0c1322;
  --panel: #111a2d;
  --line: #1e2a42;
  --line-hi: #2f4470;
  --fg: #e8edf7;
  --muted: #8c99b3;
  --sky: #3d7bff;
  --sky-hi: #5a8fff;
  --sky-soft: #3d7bff22;
  --hud: #7fd1ff;
  --ok: #6fe3a5;
  --warn: #ffb86b;
  --display: "Saira", "Segoe UI", system-ui, sans-serif;
  --body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 16px; line-height: 1.6; margin: 0; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--hud); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.band { padding-block: 96px; border-top: 1px solid var(--line); }
.band.alt { background: var(--bg-2); }

.label { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--hud); }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(30px, 4.5vw, 46px); font-weight: 600; line-height: 1.1; }
h3 { font-size: 19px; font-weight: 600; line-height: 1.25; }
p { margin: 0; }
.lead { color: var(--muted); max-width: 60ch; font-size: 17px; }
.section-head { display: grid; gap: 14px; margin-bottom: 48px; }
.ph { color: var(--muted); font-style: italic; }

/* Motion: a load sequence in the hero; sections rise in each time they scroll into view (site.js toggles .in). */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.reveal { transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.hero-copy > *, .reel, .example, .stats, .trusted { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
.hero-copy > :nth-child(5) { animation-delay: .32s; }
.hero-copy > :nth-child(6) { animation-delay: .4s; }
.reel, .example { animation-delay: .2s; }
.stats { animation-delay: .4s; }
.trusted { animation-delay: .5s; }
.js .reveal:not(.in) { opacity: 0; transform: translateY(32px); }
/* Reduce motion (an accessibility or battery-saving setting, common on phones): the same sequence as a plain fade, with no movement. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy > *, .reel, .example, .stats, .trusted { animation-name: fade; }
  .js .reveal:not(.in) { transform: none; }
}

/* Nav */
header.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 34px; width: auto; display: block; }
.nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; font-size: 14px; color: var(--muted); }
.nav ul a { text-decoration: none; transition: color .2s; }
.nav ul a:hover { color: var(--fg); }
@media (max-width: 820px) { .nav ul { display: none; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 22px; border-radius: 999px; font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: .02em; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.btn.primary { background: var(--sky); color: #fff; }
.btn.primary:hover { background: var(--sky-hi); transform: translateY(-1px); }
.btn.ghost { border-color: var(--line); color: var(--fg); background: transparent; }
.btn.ghost:hover { border-color: var(--muted); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.nav .btn { padding: 9px 18px; font-size: 14px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: 88px 64px; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 55% at 75% 30%, #1a3a8a55, transparent 70%), radial-gradient(ellipse 50% 40% at 10% 90%, #0f2a5a40, transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero .wrap.stats-wrap { display: block; }
.hero h1 { font-size: clamp(42px, 7vw, 82px); font-weight: 600; line-height: 1.0; margin-block: 18px 22px; }
.hero h1 em { font-style: normal; color: var(--sky); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-copy { min-width: 0; }
.creds { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.creds span { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-hi); background: #3d7bff12; color: var(--fg); }
.creds b { color: var(--hud); font-weight: 500; }
.reel { position: relative; aspect-ratio: 16 / 10; max-width: 100%; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(180deg, #0d1a33 0%, #132a52 55%, #1b3765 56%, #0a1424 100%); overflow: hidden; }
.reel svg.horizon { position: absolute; inset: 0; width: 100%; height: 100%; }
.reel .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 74px; height: 74px; border-radius: 50%; background: #ffffff18; border: 1px solid #ffffff40; backdrop-filter: blur(6px); display: grid; place-items: center; }
.reel .play svg { width: 26px; height: 26px; margin-left: 4px; fill: #fff; }
.reel .hudline { position: absolute; left: 16px; right: 16px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; display: flex; justify-content: space-between; gap: 12px; color: var(--hud); }
.reel .hudline.top { top: 14px; }
.reel .hudline.bot { bottom: 14px; color: #c9d6ee; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; gap: 40px; } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-top: 64px; }
.stat { background: var(--bg); padding: 22px 20px; display: grid; gap: 4px; }
.stat b { font-family: var(--display); font-size: 34px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat span { font-size: 13px; color: var(--muted); }
@media (max-width: 680px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.trusted { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 28px; }
.trusted .label { color: var(--muted); }
.clients { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 40px; }
.clients img { height: var(--h); width: auto; max-width: 100%; display: block; filter: brightness(0) invert(1); opacity: .72; transition: filter .3s, opacity .3s; }
.clients a { display: block; border-radius: 6px; }
.clients a:hover img, .clients a:focus-visible img { filter: none; opacity: 1; }

/* Services */
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1000px) { .grid4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid4 { grid-template-columns: 1fr; } }
.svc { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); display: flex; flex-direction: column; gap: 12px; text-decoration: none; transition: border-color .2s, background .2s; }
.svc:hover { border-color: var(--sky); background: #142038; }
.svc .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--sky-soft); display: grid; place-items: center; color: var(--sky); }
.svc .ic svg { width: 22px; height: 22px; }
.svc p { color: var(--muted); font-size: 14.5px; flex: 1; }
.svc .foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12px; }
.svc .from { color: var(--hud); }
.svc .go { color: var(--fg); transition: color .2s; }
.svc:hover .go { color: var(--sky-hi); }
.cam { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--warn); border: 1px solid #ffb86b55; border-radius: 6px; padding: 3px 8px; }
.cam svg { width: 13px; height: 13px; }
.camnote { margin-top: 20px; display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; border-radius: 14px; border: 1px dashed #ffb86b66; background: #ffb86b0d; }
.camnote svg { width: 26px; height: 26px; color: var(--warn); flex: none; margin-top: 2px; }
.camnote p { color: var(--muted); font-size: 15px; max-width: 80ch; }
.camnote strong { color: var(--fg); }

/* Portfolio */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid3 { grid-template-columns: 1fr; } }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; transition: border-color .2s, color .2s; }
.chip:hover { border-color: var(--muted); color: var(--fg); }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.work { display: grid; gap: 12px; align-content: start; }
.thumb { position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); display: grid; place-items: center; background:
  radial-gradient(ellipse 80% 70% at 50% 40%, #1a3a8a55, transparent 70%),
  repeating-linear-gradient(0deg, #ffffff06 0 1px, transparent 1px 24px),
  repeating-linear-gradient(90deg, #ffffff06 0 1px, transparent 1px 24px),
  linear-gradient(180deg, #0d1a33, #0a1120); transition: border-color .2s; }
.thumb img { width: 58%; height: auto; opacity: .92; }
.thumb .tag { position: absolute; top: 12px; left: 12px; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; padding: 5px 9px; border-radius: 6px; background: #000a; color: var(--hud); }
.thumb .soon { position: absolute; bottom: 12px; right: 12px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; background: #000a; color: var(--muted); }
.work:hover .thumb { border-color: var(--line-hi); }
.work p { color: var(--muted); font-size: 14px; }
.empty { grid-column: 1 / -1; padding: 40px; text-align: center; border: 1px dashed var(--line-hi); border-radius: 14px; color: var(--muted); }

/* About */
.two { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: center; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; gap: 40px; } }
.badge { width: 100%; max-width: 420px; aspect-ratio: 1; border-radius: 24px; display: block; box-shadow: 0 30px 80px -40px #000; }
.about-text { display: grid; gap: 18px; min-width: 0; }
.about-text p { color: var(--muted); max-width: 62ch; }
.about-text p strong { color: var(--fg); font-weight: 600; }
.mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-block: 6px; }
.mini div { padding: 16px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); display: grid; gap: 2px; }
.mini b { font-family: var(--display); font-size: 30px; font-weight: 600; color: var(--hud); font-variant-numeric: tabular-nums; line-height: 1.1; }
.mini span { font-size: 13px; color: var(--muted); }
.tools { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.tool { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 7px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); font-size: 14px; font-weight: 500; }
.tool svg { width: 34px; height: 34px; flex: none; display: block; }

/* Experience */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.timeline li { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding-block: 24px; border-bottom: 1px solid var(--line); }
.timeline li:first-child { border-top: 1px solid var(--line); }
.timeline time { font-family: var(--mono); font-size: 13px; color: var(--hud); font-variant-numeric: tabular-nums; }
.timeline .role { display: grid; gap: 6px; min-width: 0; }
.timeline .role span { color: var(--muted); font-size: 15px; }
.timeline .role span b { color: var(--fg); font-weight: 600; }
@media (max-width: 600px) { .timeline li { grid-template-columns: 1fr; gap: 6px; } }

/* Price builder */
.builder { display: grid; grid-template-columns: 1.05fr .95fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .builder { grid-template-columns: 1fr; } }
.opts { display: grid; gap: 10px; min-width: 0; }
.opt { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--fg); font: inherit; text-align: left; cursor: pointer; transition: border-color .2s, background .2s; }
.opt:hover { border-color: var(--line-hi); }
.opt[aria-pressed="true"] { border-color: var(--sky); background: #3d7bff14; box-shadow: inset 0 0 0 1px var(--sky); }
.opt .box { width: 20px; height: 20px; flex: none; border-radius: 6px; border: 1.5px solid var(--muted); display: grid; place-items: center; }
.opt[aria-pressed="true"] .box { background: var(--sky); border-color: var(--sky); }
.opt .box svg { width: 13px; height: 13px; opacity: 0; }
.opt[aria-pressed="true"] .box svg { opacity: 1; }
.opt .nm { flex: 1; min-width: 0; font-weight: 600; font-size: 15px; }
.opt .rng { font-family: var(--mono); font-size: 13px; color: var(--hud); text-align: right; }
@media (max-width: 480px) { .opt { flex-wrap: wrap; } .opt .rng { width: 100%; text-align: left; padding-left: 34px; } }
.quote { padding: 28px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); display: grid; gap: 20px; min-width: 0; }
@media (min-width: 901px) { .quote { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 88px); } }
.sum { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14.5px; }
.sum li { display: flex; justify-content: space-between; gap: 16px; }
.sum li span { color: var(--muted); }
.sum li b { font-family: var(--mono); font-weight: 500; font-size: 13px; white-space: nowrap; }
.total { display: grid; gap: 4px; padding-block: 16px; border-block: 1px solid var(--line); }
.total b { font-family: var(--display); font-size: 36px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.1; }
.notes { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.notes p::before { content: "→ "; color: var(--hud); }
.qty { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .check { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; color: var(--fg); font: inherit; font-size: 15px; transition: border-color .2s; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sky); }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; text-transform: none; letter-spacing: 0; font-family: var(--body); font-size: 14px; color: var(--fg); }
.check input { width: 18px; height: 18px; accent-color: var(--sky); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .row2 { grid-template-columns: 1fr; } }
.acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.soon-tag { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--warn); }
.status { font-size: 14px; color: var(--muted); min-height: 1.4em; }
.status.ok { color: var(--ok); }
.status.err { color: var(--warn); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; gap: 36px; } }
.contact-copy { display: grid; gap: 22px; min-width: 0; }
.contact .wordmark { width: min(600px, 100%); height: auto; display: block; }
.contact h2 { font-size: clamp(32px, 5vw, 54px); }
.contact .lead strong { color: var(--fg); }
.mail { font-family: var(--mono); font-size: 14px; color: var(--muted); }
.mail span { color: var(--fg); user-select: all; }
.socials { display: flex; flex-wrap: wrap; gap: 20px; color: var(--muted); font-size: 14px; }
.socials a { text-decoration: none; }
.socials a:hover { color: var(--fg); }
.cform { padding: 28px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); display: grid; gap: 16px; }
footer { border-top: 1px solid var(--line); padding-block: 28px; color: var(--muted); font-size: 13px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer .mono { font-family: var(--mono); letter-spacing: .08em; }

/* Service pages */
.svc-hero { padding-block: 56px 80px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--hud); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.svc-hero h1 { font-size: clamp(38px, 6vw, 68px); }
.price-tag { display: inline-grid; gap: 2px; margin-top: 6px; padding: 16px 20px; border-radius: 14px; border: 1px solid var(--line-hi); background: #3d7bff12; max-width: 100%; }
.price-tag b { font-family: var(--display); font-size: 30px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.2; }
.price-tag small { color: var(--muted); font-size: 13px; }
.example { margin: 0; display: grid; gap: 10px; min-width: 0; }
.example .thumb img { width: 46%; }
.example .play { position: absolute; left: 50%; bottom: 18%; transform: translateX(-50%); width: 56px; height: 56px; border-radius: 50%; background: #ffffff18; border: 1px solid #ffffff40; display: grid; place-items: center; }
.example .play svg { width: 20px; height: 20px; margin-left: 3px; fill: #fff; }
.example figcaption { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .06em; }
.two-even { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.two-even > * { min-width: 0; }
@media (max-width: 860px) { .two-even { grid-template-columns: 1fr; gap: 40px; } }
.stack { display: grid; gap: 16px; align-content: start; }
.checks { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li::before { content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 7px; background: var(--sky-soft); color: var(--sky-hi); display: grid; place-items: center; font-size: 13px; font-weight: 700; margin-top: 1px; }
.ideal { display: flex; flex-wrap: wrap; gap: 8px; }
.ideal span { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-hi); font-size: 14px; }
.stack .camnote { margin-top: 8px; }
.steps { list-style: none; padding: 0; margin: 0; }
.steps li { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); display: grid; gap: 10px; align-content: start; }
.steps .n { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--hud); }
.steps p { color: var(--muted); font-size: 14.5px; }
.others a { padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); text-decoration: none; display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; transition: border-color .2s, background .2s; }
.others a:hover { border-color: var(--sky); background: #142038; }
.others a span { font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--hud); }

/* YouTube cards */
.thumb.yt { cursor: pointer; text-decoration: none; }
.thumb img.ytimg, .example .thumb img.ytimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 1; }
.thumb.yt .play, .example .thumb.yt .play { position: absolute; left: 50%; top: 50%; bottom: auto; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; background: #070b14a6; border: 1px solid #ffffff59; backdrop-filter: blur(6px); display: grid; place-items: center; transition: background .2s, transform .2s; }
.thumb.yt .play svg { width: 22px; height: 22px; margin-left: 3px; fill: #fff; }
.thumb.yt:hover .play { background: var(--sky); transform: translate(-50%, -50%) scale(1.06); }
.thumb.yt .tag { z-index: 1; }
.thumb.playing { background: #000; }
.thumb iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.example figcaption.ex-cap { font-family: var(--body); letter-spacing: 0; display: grid; gap: 6px; font-size: 14.5px; color: var(--muted); }
.ex-cap strong { font-family: var(--display); font-size: 18px; font-weight: 600; color: var(--fg); }
.ex-cap a { color: var(--hud); text-decoration: none; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; }
.ex-cap a:hover { text-decoration: underline; }
.thumb.vert { aspect-ratio: 9 / 16; width: 100%; max-width: 340px; justify-self: center; }
.thumb.ig-frame { aspect-ratio: 9 / 19.5; background: #fff; }
.thumb img.cover { object-position: 50% 42%; }
.thumb.yt .soon { z-index: 1; color: var(--fg); }
.example img.mock { width: 100%; height: auto; display: block; border-radius: 16px; border: 1px solid var(--line); }
.gridmock { width: 100%; max-width: 440px; height: auto; justify-self: center; border-radius: 22px; border: 1px solid var(--line); box-shadow: 0 30px 80px -40px #000; }
.mini.two { grid-template-columns: repeat(2, 1fr); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cam.xp { color: var(--hud); border-color: #7fd1ff55; }
.notes2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.notes2 .camnote { margin-top: 0; }
@media (max-width: 800px) { .notes2 { grid-template-columns: 1fr; } }
.camnote.xp { border-color: #7fd1ff66; background: #7fd1ff0d; }
.camnote.xp svg { color: var(--hud); }
.exgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.exgrid .example { align-content: start; }
.exgrid .thumb.vert { max-width: none; }

/* Self-hosted video */
.thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.lightbox { padding: 0; border: 0; background: transparent; max-width: none; max-height: none; overflow: visible; }
.lightbox::backdrop { background: #03060cd9; backdrop-filter: blur(6px); }
.lightbox video { display: block; width: min(92vw, calc(88vh * 9 / 16)); aspect-ratio: 9 / 16; border-radius: 16px; background: #000; }
.lb-x { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid #ffffff40; background: #070b14bf; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; backdrop-filter: blur(6px); }
.lb-x:hover { background: var(--sky); }
.gridmock.story { max-width: 340px; }
@media (min-width: 861px) { .two-even.flip > :first-child { order: 2; } }

/* No example yet: invite the first order */
.thumb.first { text-decoration: none; color: inherit; }
.thumb.first img { opacity: .35; }
.first-cta { position: absolute; left: 50%; bottom: 14%; transform: translateX(-50%); white-space: nowrap; padding: 10px 18px; border-radius: 999px; background: var(--sky); color: #fff; font-weight: 600; font-size: 14.5px; box-shadow: 0 10px 30px -10px var(--sky); transition: transform .2s, background .2s; }
.thumb.first:hover .first-cta { transform: translateX(-50%) scale(1.05); }
.thumb.first:hover { border-color: var(--line-hi); }
.first-note { display: grid; gap: 14px; align-content: center; padding-left: 28px; border-left: 2px solid var(--sky); }
.first-big { font-family: var(--display); font-size: clamp(30px, 4vw, 46px); font-weight: 600; line-height: 1.1; letter-spacing: -.01em; }
.first-big em { font-style: normal; color: var(--sky); }
.first-note p:last-child { color: var(--muted); font-size: 16px; max-width: 420px; }
img.zoom { cursor: zoom-in; }
.lightbox .lb-img { display: block; max-width: 94vw; max-height: 90vh; border-radius: 16px; }
.zoom-hint { font-style: normal; color: var(--hud); font-family: var(--mono); font-size: 12px; letter-spacing: .06em; }

/* AI estimate */
.ai-btn svg { color: var(--hud); }
.ai-box { display: grid; gap: 10px; padding: 18px 20px; border-radius: 14px; border: 1px solid #7fd1ff55; background: linear-gradient(160deg, #7fd1ff12, #3d7bff10); }
.ai-box .ai-total { font-family: var(--display); font-size: 30px; font-weight: 600; color: var(--hud); font-variant-numeric: tabular-nums; line-height: 1.15; }
.ai-box p { color: var(--fg); font-size: 15px; line-height: 1.5; }
.ai-box small { color: var(--muted); font-size: 13px; line-height: 1.5; }
/* "Quoted with your idea" may wrap on phones so the row's label keeps its width. */
.ai-box .sum li b { white-space: normal; text-align: right; max-width: 48%; }

/* Touch screens: the hover highlights play as each card passes the middle of the screen (site.js adds .hot). */
.clients a.hot img { filter: none; opacity: 1; }
.svc.hot, .others a.hot { border-color: var(--sky); background: #142038; }
.svc.hot .go { color: var(--sky-hi); }
.work.hot .thumb { border-color: var(--line-hi); }
.work.hot .thumb.yt .play, .example.hot .thumb.yt .play { background: var(--sky); transform: translate(-50%, -50%) scale(1.06); }
.work.hot .first-cta { transform: translateX(-50%) scale(1.05); }

/* Elements hidden from script (filtered portfolio cards, the promo quantity fields) stay hidden even where a rule sets display. */
[hidden] { display: none !important; }

/* Phones: portfolio, services and example grids show two smaller cards per row. Steps stay one per row. */
@media (max-width: 600px) {
  .grid3, .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .steps.grid4 { grid-template-columns: 1fr; }
  .exgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }

  .work { gap: 6px; }
  .work h3 { font-size: 14.5px; line-height: 1.25; }
  .work p { font-size: 12.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .thumb { border-radius: 10px; }
  .thumb .tag { top: 6px; left: 6px; font-size: 8px; letter-spacing: .08em; padding: 3px 6px; border-radius: 4px; }
  .thumb .soon { bottom: 6px; right: 6px; font-size: 8px; letter-spacing: .06em; padding: 3px 6px; border-radius: 4px; }
  .thumb.yt .play, .example .thumb.yt .play { width: 40px; height: 40px; }
  .thumb.yt .play svg { width: 15px; height: 15px; margin-left: 2px; }
  .first-cta { bottom: 10%; padding: 6px 10px; font-size: 11px; }

  .svc { padding: 14px; gap: 8px; border-radius: 12px; }
  .svc .ic { width: 30px; height: 30px; border-radius: 8px; }
  .svc .ic svg { width: 17px; height: 17px; }
  .svc h3 { font-size: 15px; }
  .svc p { font-size: 12.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  .svc .tags { gap: 4px; }
  .svc .cam { font-size: 8px; letter-spacing: .04em; padding: 2px 5px; gap: 4px; }
  .svc .cam svg { width: 10px; height: 10px; }
  .svc .foot { padding-top: 8px; font-size: 10.5px; gap: 4px; }

  .others a { padding: 12px 14px; font-size: 13.5px; }
  .others a span { font-size: 11px; }

  .exgrid .ex-cap { font-size: 12.5px; gap: 4px; }
  .exgrid .ex-cap strong { font-size: 14.5px; }
  .exgrid .ex-cap span { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
  .exgrid .ex-cap a { font-size: 10.5px; }
}
