:root {
  --ink: #0e0d0c;
  --coal: #181614;
  --line: rgba(251, 249, 244, 0.14);
  --paper: #fbf9f4;
  --paper-dim: #c9c4bb;
  --muted: #9a948b;
  --orange: #fb6a26;
  --orange-hi: #ff8b52;
  --display: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: clamp(18px, 4.5vw, 56px);
  --top-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--paper); font: 400 17px/1.6 var(--display); -webkit-font-smoothing: antialiased; }
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--orange-hi); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--paper); color: var(--ink); padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

.wrap { width: min(1240px, 100%); margin: 0 auto; padding: 0 var(--gutter); }
.sec { padding: clamp(64px, 10vw, 136px) 0; }
.paper { background: var(--paper); color: var(--ink); }

.eyebrow { font: 500 12.5px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange); margin-bottom: 18px; }
h1, h2 { font-family: var(--display); font-stretch: 112%; font-weight: 800; letter-spacing: -0.025em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 7.6vw, 6.2rem); line-height: 0.96; }
h2 { font-size: clamp(1.9rem, 4.6vw, 3.6rem); line-height: 1.02; max-width: 18ch; }
h3 { font-size: 1.3rem; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--paper-dim); max-width: 56ch; margin-top: 22px; text-wrap: pretty; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 20px; border-radius: 999px; font: 700 15px/1 var(--display); text-decoration: none; white-space: nowrap; border: 1.5px solid transparent; transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.18s; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn-lg { min-height: 58px; padding: 0 28px; font-size: 17px; }
.btn-call { background: var(--orange); color: var(--ink); }
.btn-call:hover { background: var(--orange-hi); transform: translateY(-1px); }
.btn-ghost { border-color: rgba(251, 249, 244, 0.45); color: var(--paper); background: rgba(14, 13, 12, 0.35); }
.btn-ghost:hover { border-color: var(--paper); background: rgba(14, 13, 12, 0.6); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #2a2623; transform: translateY(-1px); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* header */
.top { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--top-h); display: flex; align-items: center; gap: 24px; padding: 0 var(--gutter); transition: background 0.25s, box-shadow 0.25s; }
.top.solid { background: rgba(14, 13, 12, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--paper); margin-right: auto; }
.mark { width: 38px; height: 38px; flex: none; }
.brand-name { font: 800 15px/1.05 var(--display); font-stretch: 108%; letter-spacing: -0.01em; }
.nav { display: flex; gap: 30px; }
.nav a { font-size: 15px; font-weight: 600; text-decoration: none; color: var(--paper-dim); padding: 8px 0; }
.nav a:hover { color: var(--paper); }
.menu-btn { display: none; }

/* hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; overflow: hidden; }
.hero-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; animation: drift 26s ease-in-out infinite alternate; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14, 13, 12, 0.62) 0%, rgba(14, 13, 12, 0.25) 55%, transparent 80%), linear-gradient(180deg, rgba(14, 13, 12, 0.72) 0%, rgba(14, 13, 12, 0.18) 28%, rgba(14, 13, 12, 0.55) 58%, var(--ink) 100%); }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.1); } }
.hero-in { width: min(1240px, 100%); margin: 0 auto; padding: calc(var(--top-h) + 40px) var(--gutter) 0; }
.hero h1 { max-width: 13ch; }
.hero .lead { color: #f1ede6; }
.hero .eyebrow { color: var(--paper); }
.hero-tags { width: min(1240px, 100%); margin: clamp(40px, 7vw, 84px) auto 0; padding: 20px var(--gutter) 28px; display: flex; flex-wrap: wrap; gap: 8px 28px; border-top: 1px solid var(--line); font: 500 12.5px/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--paper-dim); }
.hero-tags li { display: flex; align-items: center; gap: 10px; }
.hero-tags li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }

/* services */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: clamp(36px, 5vw, 64px); border-top: 1.5px solid var(--ink); }
.svc { padding: 28px 26px 34px 0; border-bottom: 1.5px solid var(--ink); }
.svc + .svc { padding-left: 26px; border-left: 1.5px solid rgba(14, 13, 12, 0.14); }
.svc svg { width: 44px; height: 44px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 22px; }
.svc svg rect:first-child, .svc svg path:first-child { stroke: var(--orange); }
.svc p { margin-top: 10px; font-size: 16px; color: #45403a; text-wrap: pretty; }

.kinds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(40px, 6vw, 72px); }
.kind { position: relative; border-radius: 18px; overflow: hidden; background: var(--ink); aspect-ratio: 4 / 5; }
.kind img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.kind:hover img { transform: scale(1.04); }
.kind figcaption { position: absolute; inset: auto 0 0 0; padding: 70px 22px 22px; color: var(--paper); background: linear-gradient(180deg, transparent, rgba(14, 13, 12, 0.92) 62%); }
.kind strong { display: block; font-size: 1.3rem; line-height: 1.15; font-weight: 800; font-stretch: 108%; }
.kind span { display: block; margin-top: 6px; font-size: 15px; color: var(--paper-dim); }

/* method */
.method-head { display: grid; grid-template-columns: 1fr minmax(240px, 380px); gap: clamp(28px, 6vw, 88px); align-items: center; }
.method-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 80%; border-radius: 18px; }
.steps { counter-reset: none; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(40px, 6vw, 80px); border-top: 1px solid var(--line); }
.steps li { padding: 30px 28px 36px 0; border-bottom: 1px solid var(--line); }
.steps li:not(:nth-child(3n + 1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.num { display: block; font: 500 13px/1 var(--mono); letter-spacing: 0.12em; color: var(--orange); margin-bottom: 18px; }
.steps p { margin-top: 10px; font-size: 16px; color: var(--paper-dim); text-wrap: pretty; }

/* delay demo */
.delay { display: grid; grid-template-columns: minmax(280px, 400px) 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; margin-top: clamp(40px, 6vw, 80px); padding: clamp(22px, 4vw, 44px); background: var(--coal); border: 1px solid var(--line); border-radius: 22px; }
.delay-text p:not(.eyebrow) { margin-top: 12px; font-size: 16px; color: var(--paper-dim); }
.delay-range { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 26px; font-size: 14.5px; color: var(--paper-dim); }
.delay-range output { font: 700 18px/1 var(--mono); color: var(--paper); white-space: nowrap; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 32px; margin: 6px 0 0; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: rgba(251, 249, 244, 0.22); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(251, 249, 244, 0.22); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -10px; border-radius: 50%; background: var(--orange); border: 3px solid var(--coal); box-shadow: 0 0 0 1.5px var(--orange); }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--orange); border: 3px solid var(--coal); box-shadow: 0 0 0 1.5px var(--orange); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 18px; padding: 4px; border-radius: 999px; background: rgba(251, 249, 244, 0.08); }
.seg button { min-height: 44px; border: 0; border-radius: 999px; background: transparent; color: var(--paper-dim); font: 700 15px/1 var(--display); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.delay-stage svg { width: 100%; height: auto; overflow: visible; }
.d-ground { stroke: rgba(251, 249, 244, 0.25); stroke-width: 2; }
.d-box { fill: none; stroke: rgba(251, 249, 244, 0.5); stroke-width: 2.5; }
.d-pole { stroke: rgba(251, 249, 244, 0.5); stroke-width: 2.5; }
.d-spk { fill: var(--orange); }
.d-head { fill: none; stroke: var(--paper); stroke-width: 2.5; }
.d-flash { fill: var(--orange); opacity: 0; }
.d-label { font: 500 15px var(--mono); letter-spacing: 0.12em; fill: var(--muted); }
.d-wave path { fill: none; stroke-width: 4; stroke-linecap: round; }
.d-wave-a path { stroke: var(--paper); }
.d-wave-b path { stroke: var(--orange); }
.delay-read { margin-top: 14px; min-height: 3.2em; font: 500 14.5px/1.55 var(--mono); color: var(--paper); }
.delay-read b { color: var(--orange); font-weight: 700; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: clamp(32px, 5vw, 56px); }
.gallery a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px; background: var(--coal); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease, opacity 0.3s; }
.gallery a:hover img { transform: scale(1.05); }
.reel-title { margin-top: clamp(44px, 7vw, 80px); font-size: 1.5rem; font-stretch: 108%; font-weight: 800; }
.reels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.reels video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; background: #000; }
.note { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* contact */
.contact { background: var(--orange); color: var(--ink); }
.contact .eyebrow { color: var(--ink); }
.contact .lead { color: #2b1405; }
.bigphone { display: inline-block; margin-top: 30px; font: 800 clamp(2.3rem, 9.6vw, 7rem) / 1 var(--display); font-stretch: 112%; letter-spacing: -0.03em; text-decoration: none; white-space: nowrap; border-bottom: 0.06em solid transparent; transition: border-color 0.2s; }
.bigphone:hover { border-color: var(--ink); }
.brief { margin-top: clamp(36px, 5vw, 56px); padding-top: 26px; border-top: 1.5px solid rgba(14, 13, 12, 0.3); max-width: 720px; font-size: 16px; }
.brief p { font-weight: 700; }
.brief ul { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; }
.brief li { padding-left: 18px; position: relative; }
.brief li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }

/* footer */
.foot { padding: 28px 0; font-size: 14px; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.foot a { color: var(--paper-dim); text-decoration: none; }
.foot a:hover { color: var(--paper); }

/* mobile call bar */
.callbar { display: none; }

/* lightbox */
.lightbox { width: 100vw; max-width: 100vw; height: 100vh; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8, 7, 6, 0.96); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(8, 7, 6, 0.96); }
.lightbox img { max-width: min(94vw, 1500px); max-height: 86vh; max-height: 86dvh; border-radius: 8px; }
.lb-close, .lb-nav { position: absolute; z-index: 2; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(251, 249, 244, 0.12); color: var(--paper); font-size: 28px; line-height: 1; cursor: pointer; }
.lb-close:hover, .lb-nav:hover { background: rgba(251, 249, 244, 0.24); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

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

@media (max-width: 1020px) {
  .services { grid-template-columns: 1fr 1fr; }
  .svc:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .steps li:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--line); }
  .delay { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  :root { --top-h: 62px; }
  body { font-size: 16.5px; padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .top { gap: 10px; }
  .top-call span { display: none; }
  .top-call { width: 44px; min-height: 44px; padding: 0; }
  .menu-btn { display: grid; place-content: center; gap: 6px; width: 44px; height: 44px; border: 1.5px solid rgba(251, 249, 244, 0.4); border-radius: 50%; background: transparent; cursor: pointer; }
  .menu-btn span { display: block; width: 18px; height: 2px; background: var(--paper); transition: transform 0.2s; }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav { position: fixed; inset: var(--top-h) 0 auto 0; flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px; background: rgba(14, 13, 12, 0.98); border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 16px 0; font-size: 20px; font-weight: 700; color: var(--paper); border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .hero-img { object-position: 42% 40%; }
  .hero .btn-lg { width: 100%; }
  .hero-tags { gap: 8px 18px; font-size: 11.5px; }
  .services { grid-template-columns: 1fr; }
  .svc, .svc + .svc { padding: 24px 0 26px; border-left: 0; }
  .kinds { grid-template-columns: 1fr; }
  .kind { aspect-ratio: 4 / 3; }
  .method-head { grid-template-columns: 1fr; }
  .method-photo { aspect-ratio: 4 / 3; object-position: 50% 88%; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li:nth-child(even) { padding: 24px 0 26px; border-left: 0; }
  .delay { border-radius: 18px; }
  .d-label { font-size: 17px; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 8px; }
  .reels { grid-template-columns: 1fr; }
  .contact .btn-lg { width: 100%; }
  .btn-line { font-size: 15px; padding: 0 14px; }
  .brief ul { grid-template-columns: 1fr; }
  .foot .wrap { flex-direction: column; }
  .callbar { position: fixed; inset: auto 0 0 0; z-index: 40; display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(14, 13, 12, 0.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform 0.3s ease; }
  .callbar.show { transform: none; }
  .callbar .btn { min-height: 50px; font-size: 16px; }
  .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-img { animation: none; }
  .rv { opacity: 1; transform: none; transition: none; }
  .kind img, .gallery img, .btn { transition: none; }
}
