/* Nightowl Labs: site styles. Dark "night" palette, moon-gold accent. Fraunces headings, Inter body. */
:root {
  --bg: #0b0c10;
  --bg-2: #101217;
  --surface: #161920;
  --surface-2: #1c2029;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .16);
  --text: #eeece6;
  --soft: #b4b6bf;
  --muted: #868a95;
  --moon: #ead87d;
  --moon-deep: #d8c25a;
  --moon-ink: #17140a;
  --glow: rgba(70, 52, 170, .28);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --wrap: 1180px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font: 400 1.0625rem/1.65 var(--sans); color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--moon); text-underline-offset: 3px; }
a:hover { color: #f4e6a6; }
h1, h2, h3 { line-height: 1.18; margin: 0 0 .55em; color: #fff; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5.6vw, 3.7rem); }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
svg { width: 1.1em; height: 1.1em; flex: none; }
::selection { background: var(--moon); color: var(--moon-ink); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.center { text-align: center; }
.soft { color: var(--soft); }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 0; background: var(--moon); color: var(--moon-ink); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .76rem; font-weight: 600; color: var(--moon); margin: 0 0 .9em; }
.lead { font-size: clamp(1.08rem, 2.1vw, 1.25rem); color: var(--soft); max-width: 46ch; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; padding: .85em 1.45em; min-height: 48px;
  border-radius: 999px; background: var(--moon); color: var(--moon-ink); font-weight: 600; text-decoration: none;
  border: 2px solid var(--moon); transition: background .2s, border-color .2s, color .2s, transform .15s, box-shadow .2s; cursor: pointer; font-size: 1rem; }
.btn:hover { background: #f3e39a; border-color: #f3e39a; color: var(--moon-ink); transform: translateY(-1px); box-shadow: 0 10px 30px rgba(234, 216, 125, .22); }
.btn-sm { padding: .5em 1.05em; min-height: 40px; font-size: .92rem; }
.btn-ghost { background: transparent; color: #fff; border-color: var(--line-strong); }
.btn-ghost:hover { background: rgba(255, 255, 255, .06); border-color: #fff; color: #fff; box-shadow: none; }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .4em; }
.link-arrow::after { content: "\2192"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(3px); }

/* Header */
.site-header { transition: background .3s, box-shadow .3s; position: sticky; top: 0; z-index: 50; background: rgba(11, 12, 16, .86); backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 30px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a { color: #d7d8de; text-decoration: none; font-size: .94rem; font-weight: 500; padding: 8px 11px; border-radius: 8px; }
.site-nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.site-nav a[aria-current] { color: #fff; box-shadow: inset 0 -2px 0 var(--moon); border-radius: 0; background: none; }
.site-nav .nav-cta { margin-left: 12px; color: var(--moon-ink); padding: .5em 1.05em; border-radius: 999px; box-shadow: none; }
.site-nav .nav-cta:hover { background: #f3e39a; color: var(--moon-ink); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1040px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch;
    background: var(--bg); padding: 8px 20px 22px; border-bottom: 1px solid var(--line); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav a[aria-current] { box-shadow: inset 3px 0 0 var(--moon); padding-left: 12px; }
  .site-nav .nav-cta { margin: 16px 0 0; justify-content: center; border-bottom: 0; border-radius: 999px; }
}

/* Night sky backdrop used by the hero, page heroes and the CTA band */
.sky { position: relative; isolation: isolate; overflow: hidden; background-color: var(--bg);
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.55) 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 72%, rgba(255,255,255,.4) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 44% 34%, rgba(255,255,255,.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 12%, rgba(255,255,255,.45) 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 56%, rgba(255,255,255,.4) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 88% 28%, rgba(255,255,255,.55) 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 88%, rgba(255,255,255,.35) 50%, transparent 51%),
    radial-gradient(1px 1px at 54% 90%, rgba(255,255,255,.35) 50%, transparent 51%),
    radial-gradient(ellipse 60% 70% at 85% 0%, var(--glow) 0%, transparent 70%),
    radial-gradient(ellipse 45% 50% at 0% 100%, rgba(234, 216, 125, .07) 0%, transparent 70%);
  background-size: 340px 340px, 420px 420px, 380px 380px, 300px 300px, 460px 460px, 360px 360px, 400px 400px, 440px 440px, 100% 100%, 100% 100%; }

/* Starfield canvas (drawn by site.js behind hero content) */
canvas.stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

/* Home hero */
.hero { padding: clamp(56px, 9vw, 110px) 0 clamp(56px, 8vw, 100px); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 22px; font-size: .92rem; color: var(--muted); }
.hero-note a { color: var(--soft); }
.stack { position: relative; aspect-ratio: 16 / 12.5; }
.stack::before { content: ""; position: absolute; inset: 10% 5% 0 15%; background: radial-gradient(closest-side, rgba(234, 216, 125, .16), transparent); filter: blur(30px); z-index: 0; }
.stack .browser { position: absolute; }
.stack .b1 { right: 0; top: 0; width: 82%; z-index: 1; }
.stack .b2 { left: 0; bottom: 3%; width: 50%; z-index: 2; }
.stack .b3 { right: 2%; bottom: 0; width: 40%; z-index: 3; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .stack { max-width: 560px; }
}

.browser { background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: #20242e; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a3f4b; }
.browser-bar span { margin-left: 8px; font-size: .72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser .screen { aspect-ratio: 16 / 10; overflow: hidden; container-type: size; background: #fff; }
.browser .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.browser .screen.scroll img { height: auto; object-fit: fill; animation: pan 32s ease-in-out 2.4s infinite alternate; will-change: transform; }
@keyframes pan { 0%, 6% { transform: translateY(0); } 94%, 100% { transform: translateY(calc(-100% + 100cqh)); } }

/* Client marquee */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); padding: 20px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; list-style: none; margin: 0; padding: 0; }
.marquee li { display: flex; align-items: center; gap: 30px; padding-right: 30px; white-space: nowrap; color: #cfd0d6; font: 500 1.08rem/1 var(--serif); }
.marquee li::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--moon); box-shadow: 0 0 12px rgba(234, 216, 125, .7); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Page hero (inner pages) */
.page-hero { padding: clamp(64px, 10vw, 120px) 0 clamp(44px, 7vw, 76px); border-bottom: 1px solid var(--line); }
.page-hero .lead { margin-bottom: 0; max-width: 58ch; }
.page-hero .hero-actions { margin-top: 26px; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--soft); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs span { margin: 0 .45em; }

/* Sections */
.section { padding: clamp(60px, 9vw, 108px) 0; }
.section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin: 0 0 44px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head p { color: var(--soft); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split.flip > :first-child { order: 2; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }

.checks { list-style: none; padding: 0; margin: 0 0 28px; }
.checks li { position: relative; padding-left: 32px; margin-bottom: 12px; color: var(--soft); }
.checks li strong { color: #fff; font-weight: 600; }
.checks li::before { content: ""; position: absolute; left: 2px; top: .42em; width: 15px; height: 8px;
  border-left: 2.5px solid var(--moon); border-bottom: 2.5px solid var(--moon); transform: rotate(-45deg); }

/* Service cards */
.svc { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.svc-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px 24px; text-decoration: none; color: inherit; transition: border-color .2s, transform .2s, background .2s; }
.svc-card:hover { border-color: rgba(234, 216, 125, .45); transform: translateY(-3px); background: var(--surface-2); color: inherit; }
.svc-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(234, 216, 125, .1); color: var(--moon); margin-bottom: 18px; }
.svc-icon svg { width: 24px; height: 24px; }
.svc-card h3 { font-family: var(--serif); font-size: 1.3rem; margin-bottom: .45em; }
.svc-card p { color: var(--soft); font-size: .97rem; flex: 1; }
.svc-card .link-arrow { color: var(--moon); font-size: .95rem; }
@media (max-width: 560px) { .svc { grid-template-columns: 1fr; } }

/* Work cards */
.work { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.work-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.work-shot { display: block; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.work-shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform .5s ease; }
.work-card:hover .work-shot img { transform: scale(1.035); }
.work-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.work-body h3 { margin-bottom: .2em; }
.work-kind { color: var(--muted); font-size: .9rem; margin-bottom: .8em; }
.work-body p { color: var(--soft); font-size: .96rem; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; padding: 0; list-style: none; }
.tags li { font-size: .76rem; font-weight: 500; color: var(--soft); border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px 10px; }
.work-body .link-arrow { font-size: .95rem; }
.section-foot { margin-top: 40px; text-align: center; }
@media (max-width: 960px) { .work { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .work { grid-template-columns: 1fr; } }

/* Photo mosaic + gallery */
.mosaic { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.mosaic img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); }
.mosaic .tall { grid-row: span 2; }
.mosaic .tall img { aspect-ratio: auto; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.filters button { font: 500 .92rem/1 var(--sans); color: var(--soft); background: transparent; border: 1px solid var(--line-strong);
  border-radius: 999px; padding: .65em 1.1em; cursor: pointer; }
.filters button:hover { color: #fff; border-color: #fff; }
.filters button[aria-pressed="true"] { background: var(--moon); color: var(--moon-ink); border-color: var(--moon); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.g-item { display: block; position: relative; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.g-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .45s ease, opacity .3s; }
.g-item:hover img { transform: scale(1.04); }
.g-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; font-size: .82rem; color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, .7)); opacity: 0; transition: opacity .25s; }
.g-item:hover figcaption, .g-item:focus-visible figcaption { opacity: 1; }
.g-item[hidden] { display: none; }
@media (max-width: 560px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; } .g-item figcaption { display: none; } }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(6, 7, 10, .96); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 94vw; max-height: 84vh; width: auto; border-radius: 6px; }
.lb-cap { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #c9cad0; font-size: .9rem; padding: 0 70px; }
.lb-btn { position: absolute; background: rgba(255, 255, 255, .1); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%;
  font-size: 28px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lb-btn:hover { background: rgba(255, 255, 255, .22); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 560px) { .lb-prev, .lb-next { top: auto; bottom: 8px; transform: none; } .lb-cap { bottom: 70px; padding: 0 16px; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; border-top: 1px solid var(--line-strong); padding-top: 22px; }
.steps li::before { content: "0" counter(step); display: block; font: 600 1.05rem/1 var(--serif); color: var(--moon); margin-bottom: 14px; }
.steps h3 { margin-bottom: .4em; }
.steps p { color: var(--soft); font-size: .97rem; margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Feature list (service pages) */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature h3 { margin-bottom: .4em; }
.feature p { color: var(--soft); font-size: .97rem; margin: 0; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-weight: 600; font-size: 1.05rem; color: #fff; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--moon); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--soft); margin: 0 0 20px; max-width: 68ch; }

/* People (about) */
.people { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.person { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.person h3 { font-family: var(--serif); font-size: 1.35rem; margin-bottom: .15em; }
.person .role { color: var(--moon); font-size: .9rem; font-weight: 500; margin-bottom: 1em; }
.person p { color: var(--soft); }
@media (max-width: 760px) { .people { grid-template-columns: 1fr; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-list { list-style: none; margin: 28px 0 0; padding: 0; }
.contact-list li { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.contact-list svg { width: 22px; height: 22px; color: var(--moon); margin-top: 3px; }
.contact-list h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: .3em; }
.contact-list p { margin: 0; }
.contact-list a { color: #fff; text-decoration: none; }
.contact-list a:hover { color: var(--moon); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.form-card { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 18px; padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow); }
.form-card h2 { font-size: 1.6rem; margin-bottom: .2em; }
.form-card .sub { color: var(--soft); margin: 0 0 24px; font-size: .97rem; }
.contact-form { display: grid; gap: 16px; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: grid; gap: 7px; font-size: .9rem; font-weight: 500; color: #e3e3e8; }
.contact-form .opt { font-weight: 400; color: var(--muted); }
.contact-form input, .contact-form select, .contact-form textarea { font: inherit; font-size: 1rem; color: #fff; background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: .75em .9em; width: 100%; }
.contact-form select { appearance: none; padding-right: 2.4em;
  background-image: linear-gradient(45deg, transparent 50%, var(--soft) 50%), linear-gradient(135deg, var(--soft) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.contact-form select option { color: #111; }
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--moon); outline-offset: 1px; border-color: transparent; }
.contact-form .btn { justify-self: start; }
.cf-turnstile, .g-recaptcha { min-height: 65px; }
@media (max-width: 520px) { .contact-form .row { grid-template-columns: 1fr; } .contact-form .btn { justify-self: stretch; } }

/* CTA band */
.cta-band { padding: clamp(56px, 8vw, 92px) 0; border-top: 1px solid var(--line); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-inner h2 { margin-bottom: .25em; }
.cta-inner p { margin: 0; color: var(--soft); max-width: 52ch; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Footer */
.site-footer { background: #07080b; color: var(--soft); font-size: .95rem; padding-top: 60px; border-top: 1px solid var(--line); }
.site-footer a { color: #e6e6ea; text-decoration: none; }
.site-footer a:hover { color: var(--moon); text-decoration: underline; }
.site-footer h3 { color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .16em; margin-bottom: 1.1em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .55em; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 32px; padding-bottom: 44px; }
.footer-brand img { height: 28px; width: auto; margin-bottom: 16px; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 20px; padding-bottom: 28px; font-size: .85rem; color: var(--muted);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; gap: 26px; } }

/* Header once scrolled */
.site-header.scrolled { background: rgba(9, 10, 13, .94); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }

/* Gold shimmer across the hero highlight */
.shine { font-style: normal; color: var(--moon); background: linear-gradient(110deg, var(--moon) 0%, var(--moon) 42%, #fff6cf 50%, var(--moon) 58%, var(--moon) 100%);
  background-size: 260% 100%; background-position: 100% 0; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: shine 7s ease-in-out 1.4s infinite; }
@keyframes shine { 0% { background-position: 100% 0; } 35%, 100% { background-position: 0% 0; } }

/* Floating browser frames */
.stack .browser { animation: float 10s ease-in-out infinite; transition: translate .8s cubic-bezier(.2, .7, .2, 1); }
.stack .b2 { animation-delay: -3.3s; }
.stack .b3 { animation-delay: -6.6s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* Moonlight glow that follows the pointer (position set by site.js) */
.svc-card, .feature, .work-card, .person, .form-card { position: relative; isolation: isolate; }
.svc-card::before, .feature::before, .work-card::before, .person::before, .form-card::before { content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(234, 216, 125, .11), transparent 45%); }
.svc-card:hover::before, .feature:hover::before, .work-card:hover::before, .person:hover::before, .form-card:hover::before { opacity: 1; }
.feature, .person { transition: border-color .25s, transform .25s; }
.feature:hover, .person:hover { border-color: rgba(234, 216, 125, .35); transform: translateY(-3px); }
.work-card { transition: border-color .25s, transform .25s, box-shadow .25s; }
.work-card:hover { border-color: rgba(234, 216, 125, .35); transform: translateY(-4px); box-shadow: var(--shadow); }

/* Intro + scroll reveals (the .js class is set in <head>; without JS everything just shows) */
.js [data-intro] { opacity: 0; animation: intro 1s cubic-bezier(.2, .7, .2, 1) forwards; }
.js [data-intro]:nth-child(1) { animation-delay: .05s; }
.js [data-intro]:nth-child(2) { animation-delay: .16s; }
.js [data-intro]:nth-child(3) { animation-delay: .28s; }
.js [data-intro]:nth-child(4) { animation-delay: .4s; }
.js [data-intro]:nth-child(5) { animation-delay: .52s; }
.js [data-intro]:nth-child(6) { animation-delay: .64s; }
.js .hero .stack { opacity: 0; animation: introStack 1.3s cubic-bezier(.2, .7, .2, 1) .3s forwards; }
@keyframes intro { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes introStack { from { opacity: 0; transform: translateY(30px) scale(.97); } to { opacity: 1; transform: none; } }
.js [data-reveal], .js .reveal-item { opacity: 0; transform: translateY(26px);
  transition: opacity .8s cubic-bezier(.2, .7, .2, 1) var(--d, 0s), transform .8s cubic-bezier(.2, .7, .2, 1) var(--d, 0s); }
.js [data-reveal].in, .js .reveal-item.in { opacity: 1; transform: none; }

.contact-section { border-top: 1px solid var(--line); }
@media print { .js [data-intro], .js .hero .stack, .js [data-reveal], .js .reveal-item { opacity: 1 !important; transform: none !important; animation: none !important; } canvas.stars, .marquee { display: none; } }

/* 404 */
.not-found { min-height: 60vh; display: grid; place-items: center; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .js [data-intro], .js .hero .stack, .js [data-reveal], .js .reveal-item { opacity: 1; transform: none; animation: none; }
  .marquee-track, .browser .screen.scroll img, .stack .browser, .shine { animation: none; }
  .marquee { overflow-x: auto; }
}
