:root {
  --navy: #0d1b2a;
  --navy-2: #13263b;
  --ink: #142233;
  --muted: #5b6b7d;
  --line: #dfe5ec;
  --bg: #ffffff;
  --tint: #f4f7fa;
  --accent: #f26b1d;
  --accent-2: #ff8a3d;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(13, 27, 42, .06), 0 8px 24px rgba(13, 27, 42, .08);
  --font: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -.02em; margin: 0; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.75rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; }

.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; padding: 14px 24px; border-radius: 6px; border: 2px solid var(--accent); transition: background .2s, transform .2s, border-color .2s; cursor: pointer; font: 600 1rem var(--font); }
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: #fff; }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.btn-block { width: 100%; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .25s, box-shadow .25s; }
.site-header.scrolled { background: rgba(13, 27, 42, .94); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand img { height: 40px; width: 40px; border-radius: 6px; }
.wordmark { font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; }
.wordmark b { font-weight: 400; color: rgba(255,255,255,.7); }
.footer-brand { margin-bottom: 16px; }
.footer-brand img { height: 36px; width: 36px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: rgba(255,255,255,.82); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:not(.btn):hover { color: #fff; }
.nav .btn { color: #fff; }
.nav-phone { font-family: var(--mono); font-size: .88rem !important; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: #fff; margin: 5px 0; transition: transform .25s, opacity .25s; }

/* Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; background: var(--navy); color: #fff; overflow: hidden; padding: 120px 0 90px; }
.hero-bg { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(13,27,42,.97) 0%, rgba(13,27,42,.85) 45%, rgba(13,27,42,.45) 100%), url("assets/images/hero-bg.jpg") center/cover; }
.grid-overlay { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent); }
.hero-inner { position: relative; }
.eyebrow { font-family: var(--mono); text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; color: rgba(255,255,255,.7); display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(242,107,29,.25); }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); font-weight: 800; letter-spacing: -.035em; max-width: 14ch; }
.accent { color: var(--accent); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255,255,255,.8); max-width: 58ch; margin: 24px 0 36px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, auto); gap: 48px; margin: 64px 0 0; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.14); max-width: 760px; }
.hero-stats dt { font-weight: 700; font-size: 1.15rem; }
.hero-stats dd { margin: 2px 0 0; color: rgba(255,255,255,.6); font-size: .9rem; }
.ruler { position: absolute; left: 0; right: 0; bottom: 0; height: 18px; background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 1px, transparent 1px 12px), repeating-linear-gradient(90deg, rgba(255,255,255,.6) 0 1px, transparent 1px 60px); background-size: 100% 8px, 100% 16px; background-repeat: no-repeat; background-position: bottom, bottom; }

/* Clients */
.clients { padding: 56px 0; border-bottom: 1px solid var(--line); overflow: hidden; }
.clients-title { font-size: .85rem; font-family: var(--mono); font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); text-align: center; margin-bottom: 32px; }
.marquee { mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { list-style: none; margin: 0; padding: 0; display: flex; gap: 64px; width: max-content; animation: scroll 50s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li { flex: 0 0 auto; display: flex; align-items: center; height: 56px; }
.marquee-track img { max-height: 48px; max-width: 140px; width: auto; filter: grayscale(1); opacity: .65; transition: filter .25s, opacity .25s; }
.marquee-track img:hover { filter: none; opacity: 1; }
.marquee-track img.logo-wide { max-width: 250px; } /* very wide wordmarks (~10:1) need more width to match the others visually */
@keyframes scroll { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section-tint { background: var(--tint); }
.section-dark { background: var(--navy); color: #fff; overflow: hidden; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker { font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin: 0 0 16px; display: flex; align-items: center; gap: 12px; }
.section-head.center .kicker { justify-content: center; }
.kicker span { color: var(--muted); }
.kicker span::after { content: ""; display: inline-block; width: 28px; height: 1px; background: currentColor; vertical-align: middle; margin-left: 12px; }
.section-dark .kicker span { color: rgba(255,255,255,.5); }
.section-sub { color: var(--muted); font-size: 1.1rem; margin: 18px 0 0; }
.section-dark .section-sub { color: rgba(255,255,255,.72); }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; }
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--tint); }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.service:hover .service-img img { transform: scale(1.04); }
.service-body { padding: 28px; }
.service-body p { color: var(--muted); margin: 10px 0 18px; }
.ticks { list-style: none; padding: 18px 0 0; margin: 0; border-top: 1px dashed var(--line); display: grid; gap: 8px; font-size: .95rem; }
.ticks li { padding-left: 22px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* Process */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; position: relative; }
.split .section-head { margin-bottom: 40px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.12); }
.steps li:last-child { border-bottom: 1px solid rgba(255,255,255,.12); }
.step-n { font-family: var(--mono); color: var(--accent); font-size: .9rem; padding-top: 2px; }
.steps h3 { font-size: 1.05rem; }
.steps p { margin: 4px 0 0; color: rgba(255,255,255,.65); font-size: .95rem; }
.process-img { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.process-img img { width: 100%; height: 100%; object-fit: cover; }
.process-img::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(255,255,255,.35); border-radius: 4px; pointer-events: none; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tile { margin: 0; }
.tile-wide { grid-column: span 2; }
.tile button { all: unset; cursor: zoom-in; display: block; width: 100%; aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; position: relative; }
.tile-wide button { aspect-ratio: 8 / 3; }
.tile button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.tile button:hover img { transform: scale(1.05); }
.tile figcaption { font-size: .88rem; color: var(--muted); padding: 10px 2px 0; display: flex; gap: 8px; }
.tile figcaption b { color: var(--ink); font-weight: 600; }

/* Why */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 26px; }
.why-card svg { width: 40px; height: 40px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 20px; }
.why-card p { color: var(--muted); margin: 10px 0 0; font-size: .97rem; }

/* Request */
.request { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; }
.request-copy p { color: var(--muted); font-size: 1.05rem; }
.request-copy h2 { margin-bottom: 18px; }
.contact-list { list-style: none; padding: 0; margin: 32px 0 0; border-top: 1px solid var(--line); }
.contact-list li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-weight: 600; flex-wrap: wrap; }
.contact-list span { font-family: var(--mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 400; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--accent); }
.form { background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); display: grid; gap: 20px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form label { display: block; font-weight: 600; font-size: .9rem; }
.form label > input, .form label > textarea { margin-top: 6px; }
.form em { color: var(--accent); font-style: normal; }
.form input:not([type=radio]), .form textarea { font: 400 1rem var(--font); color: var(--ink); background: #fff; border: 1px solid #cfd8e2; border-radius: 6px; padding: 12px 14px; width: 100%; transition: border-color .2s, box-shadow .2s; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(242,107,29,.18); }
.form .invalid { border-color: #d43c3c !important; }
.form textarea { resize: vertical; min-height: 120px; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 600; font-size: .9rem; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: block !important; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 9px 16px; border: 1px solid #cfd8e2; border-radius: 999px; background: #fff; font-weight: 500; font-size: .9rem; transition: all .2s; }
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form input.hp { position: absolute; left: -9999px; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; }
.btn:disabled { opacity: .7; cursor: wait; transform: none; }
.form-status a { color: inherit; font-weight: 600; }
.form-status { margin: 0; font-size: .92rem; min-height: 1.4em; }
.form-status.err { color: #c03030; }
.form-status.ok { color: #1d7a47; }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,.7); padding: 64px 0 28px; font-size: .95rem; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-inner p { max-width: 36ch; margin: 0; }
.site-footer nav, .footer-contact { display: grid; gap: 10px; align-content: start; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-base { padding-top: 24px; font-size: .85rem; color: rgba(255,255,255,.45); }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1200px, 94vw); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(8, 16, 26, .88); }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: 6px; background: #fff; margin: auto; }
.lightbox-cap { color: #fff; text-align: center; margin: 12px 0 0; }
.lightbox-close { position: absolute; top: -44px; right: 0; background: none; border: 0; color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; width: 40px; height: 40px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1024px) {
  .services { grid-template-columns: 1fr 1fr; }
  .why { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .split, .request { grid-template-columns: 1fr; gap: 48px; }
  .process-img { aspect-ratio: 16 / 10; }
  .nav-phone { display: none; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: 76px 0 auto; flex-direction: column; align-items: stretch; gap: 0; background: var(--navy); padding: 8px 20px 24px; transform: translateY(-120%); transition: transform .3s; box-shadow: 0 20px 40px rgba(0,0,0,.3); z-index: -1; }
  .nav.open { transform: none; }
  .nav a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 1.05rem; }
  .nav .btn { margin-top: 16px; border: 0; padding: 14px; }
  .nav-phone { display: block; }
  .site-header.menu-open { background: var(--navy); }
  .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: 640px) {
  .wrap { width: calc(100% - 32px); }
  .services, .why { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .tile-wide { grid-column: auto; }
  .tile-wide button { aspect-ratio: 4 / 3; }
  .hero-stats { grid-template-columns: 1fr; gap: 16px; margin-top: 48px; }
  .form .row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
