/* Layout idea: a night-shift hero where the chat answers on its own, then left-aligned columns on cool paper; clock times carry the story. */
:root {
  color-scheme: light;
  --paper: #F4F6F7;
  --surface: #FFFFFF;
  --ink: #0F1B2D;
  --ink-2: #16243A;
  --muted: #56647A;
  --line: #D9E0E6;
  --accent: #C2410C;      /* hi-vis orange: the one action and the late clock */
  --accent-bright: #F97316;
  --answered: #12643A;    /* semantic: a request that got its reply */
  --answered-bright: #34D399;
  --answered-tint: #DDF2E3;
  --on-ink: #F4F6F7;
  --on-ink-muted: #B9C4D2;
  --font-display: "Bricolage Grotesque", "Arial Narrow", Arial, sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.04; margin: 0; text-wrap: balance; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.6rem, 6.2vw, 4.8rem); font-weight: 800; letter-spacing: -0.03em; }
.page-title { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 800; letter-spacing: -0.02em; }
h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.2; }
p { margin: 0; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.muted { color: var(--muted); }
.time { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 0.82em; }
.eyebrow { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(15, 27, 45, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,0.08); color: var(--on-ink); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.mark { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; text-decoration: none; letter-spacing: -0.02em; display: inline-flex; align-items: center; }
.mark span { color: #F26B1D; }
.mark .logo-mark { width: 30px; height: 30px; margin-right: 10px; flex: none; }
.mark .pulse { margin-right: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--answered-bright); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); }
.nav { display: flex; gap: 8px clamp(14px, 2.4vw, 28px); align-items: center; flex-wrap: wrap; font-size: 0.95rem; }
.nav a { text-decoration: none; color: var(--on-ink-muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--on-ink); }
.nav a[aria-current="page"] { font-weight: 600; box-shadow: 0 2px 0 var(--accent-bright); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 1rem;
  padding: 13px 22px; border-radius: 10px; border: 2px solid var(--ink); color: var(--ink); background: transparent;
  cursor: pointer; font-family: var(--font-body); line-height: 1.2;
  transition: transform .2s var(--ease), background-color .2s, color .2s, box-shadow .2s;
}
.btn:hover { background: var(--ink); color: var(--paper); transform: translateY(-1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 10px 24px -12px rgba(194, 65, 12, 0.8); }
.btn.primary:hover { background: #9A3412; border-color: #9A3412; }
.btn.ghost-light { border-color: rgba(244,246,247,0.5); color: var(--on-ink); }
.btn.ghost-light:hover { background: var(--on-ink); color: var(--ink); }
.btn.small { padding: 8px 14px; font-size: 0.92rem; }
.nav .btn { padding: 9px 16px; font-size: 0.95rem; }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section { padding: clamp(56px, 8vw, 104px) 0; }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.head { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); max-width: 44em; }
.note { color: var(--muted); font-size: 0.9rem; margin-top: 18px; }
.more { font-weight: 600; text-underline-offset: 4px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--on-ink);
  background:
    radial-gradient(60% 70% at 85% 20%, rgba(249, 115, 22, 0.20), transparent 60%),
    radial-gradient(50% 60% at 0% 100%, rgba(52, 211, 153, 0.10), transparent 60%),
    var(--ink);
  padding: clamp(44px, 7vw, 92px) 0 clamp(56px, 8vw, 104px);
}
.hero.has-photo {
  background:
    radial-gradient(60% 70% at 85% 20%, rgba(249, 115, 22, 0.16), transparent 60%),
    linear-gradient(90deg, rgba(15,27,45,.95) 0%, rgba(15,27,45,.87) 45%, rgba(15,27,45,.74) 100%),
    url("https://images.unsplash.com/photo-1660330589257-813305a4a383?w=1800&q=70&auto=format&fit=crop") center / cover no-repeat,
    var(--ink);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.09) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(to bottom, black 30%, transparent 95%); mask-image: linear-gradient(to bottom, black 30%, transparent 95%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 26px; }
.hero .eyebrow { color: var(--answered-bright); display: inline-flex; align-items: center; gap: 10px; }
.hero .eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--answered-bright); }
.hero h1 em {
  font-style: normal; color: var(--accent-bright);
  background: linear-gradient(transparent 82%, rgba(249,115,22,0.35) 82%) no-repeat 0 0 / 100% 100%;
}
.hero .lede { color: var(--on-ink-muted); }
.assure { display: flex; gap: 8px 24px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; color: var(--on-ink-muted); font-size: 0.95rem; }
.assure li::before { content: "✓"; color: var(--answered-bright); font-weight: 700; margin-right: 8px; }

/* ---------- Demo ---------- */
.demo { display: flex; flex-direction: column; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: 0.88rem; font-weight: 500; padding: 7px 13px; border-radius: 999px; border: 1px solid rgba(244,246,247,0.22); background: rgba(255,255,255,0.04); color: var(--on-ink-muted); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--on-ink); color: var(--on-ink); }
.chip[aria-pressed="true"] { background: var(--on-ink); border-color: var(--on-ink); color: var(--ink); }
.chat { margin: 0; background: var(--surface); color: var(--ink); border-radius: 18px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255,255,255,0.06); overflow: hidden; }
.chat-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.chat-head .who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--answered); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 0.85rem; flex: none; }
.chat-head strong { font-weight: 600; display: block; }
.chat-head small { color: var(--answered); font-size: 0.78rem; }
.tag { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.thread { display: flex; flex-direction: column; gap: 10px; padding: 16px; background: #EEF2F4; height: 360px; overflow-y: auto; scroll-behavior: smooth; }
.msg { max-width: 86%; padding: 10px 13px; border-radius: 14px; font-size: 0.95rem; line-height: 1.4; overflow-wrap: anywhere; }
.msg .time { display: block; margin-top: 4px; color: var(--muted); }
.msg.them { align-self: flex-end; background: var(--surface); border: 1px solid var(--line); border-top-right-radius: 4px; }
.msg.us { align-self: flex-start; background: var(--answered-tint); border: 1px solid #BFE3CB; border-top-left-radius: 4px; }
.msg.us .time { color: var(--answered); }
.msg.hint { align-self: center; background: transparent; border: 1px dashed #B9C4CF; color: var(--muted); font-size: 0.9rem; text-align: center; max-width: 100%; }
.typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 12px 14px; background: var(--answered-tint); border: 1px solid #BFE3CB; border-radius: 14px; border-top-left-radius: 4px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--answered); opacity: .35; }
.slots { display: flex; gap: 8px; flex-wrap: wrap; align-self: flex-end; }
.summary { padding: 13px 16px; border-top: 1px solid var(--line); border-left: 4px solid var(--accent); display: flex; flex-direction: column; gap: 3px; font-size: 0.92rem; overflow-wrap: anywhere; background: #FFF8F3; }
.summary[hidden] { display: none; }
.summary b { font-weight: 600; }
.summary .time { color: var(--accent); }
.composer { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--surface); }
.composer[hidden] { display: none; }
.composer input { flex: 1; min-width: 0; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid #B9C4CF; border-radius: 10px; padding: 10px 12px; }
.demo-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap; font-size: 0.86rem; color: var(--on-ink-muted); }
.demo-foot .btn { border-color: rgba(244,246,247,0.5); color: var(--on-ink); }
.demo-foot .btn:hover { background: var(--on-ink); color: var(--ink); }

/* ---------- Stats strip ---------- */
.stats { padding: 0; background: var(--surface); border-bottom: 1px solid var(--line); }
.stats .wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat { padding: clamp(22px, 3vw, 34px) clamp(8px, 2vw, 24px); display: flex; flex-direction: column; gap: 4px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat b small { font-size: 0.5em; font-weight: 700; margin-left: 2px; }
.stat > span { color: var(--muted); font-size: 0.95rem; }

/* ---------- Two clocks ---------- */
.clocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.clock { border: 1px solid var(--line); border-radius: 16px; padding: 26px; background: var(--surface); display: flex; flex-direction: column; gap: 18px; }
.clock-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.clock h3 { font-size: 1.05rem; }
.wait { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.late .wait { color: var(--accent); }
.soon .wait { color: var(--answered); }
.bar { height: 10px; border-radius: 999px; background: #E7ECF0; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; width: var(--w); }
.late .bar i { background: linear-gradient(90deg, #FDBA74, var(--accent)); }
.soon .bar i { background: var(--answered); min-width: 10px; }
.clock ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.clock li { display: grid; grid-template-columns: 4.2em 1fr; gap: 12px; align-items: baseline; }
.clock li .time { font-size: 0.95rem; font-weight: 500; color: var(--muted); }
.late li:last-child { color: var(--accent); font-weight: 600; }
.soon li:last-child { color: var(--answered); font-weight: 600; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; position: relative; }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.steps li::before { content: "0" counter(step); font-family: var(--font-mono); font-size: 0.85rem; color: var(--accent); }
.steps p { color: var(--muted); }

/* ---------- Service cards ---------- */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.svc { position: relative; border-radius: 18px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--accent); display: flex; flex-direction: column; gap: 14px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.svc:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgba(15, 27, 45, 0.45); }
.svc .num { font-family: var(--font-mono); font-size: 0.85rem; color: var(--accent); }
.svc p { color: var(--muted); }
.svc ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 0.95rem; }
.svc ul li { position: relative; padding-left: 18px; }
.svc ul li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.svc .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Calculator ---------- */
.tool { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.tool-form { display: flex; flex-direction: column; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 0.95rem; font-weight: 500; }
.field .hint { font-weight: 400; color: var(--muted); font-size: 0.88rem; }
.slider-row { display: grid; grid-template-columns: minmax(0, 1fr) 6.5em; gap: 12px; align-items: center; }
.tool input[type="number"] { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid #B9C4CF; border-radius: 10px; padding: 10px 12px; width: 100%; font-variant-numeric: tabular-nums; }
input[type="range"] { width: 100%; accent-color: var(--accent); }
.result { background: var(--ink); color: var(--on-ink); border-radius: 18px; padding: clamp(24px, 3vw, 34px); display: flex; flex-direction: column; gap: 18px; position: sticky; top: 84px; overflow: hidden; }
.result::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(rgba(249,115,22,0.35), transparent 70%); pointer-events: none; }
.result .label { color: var(--on-ink-muted); font-size: 0.92rem; }
.big { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.6rem, 5.4vw, 4rem); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--accent-bright); }
.figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; border-top: 1px solid #2B3B55; padding-top: 16px; }
.figures div { display: flex; flex-direction: column; gap: 2px; }
.figures b { font-family: var(--font-display); font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.result .explain { color: var(--on-ink-muted); font-size: 0.95rem; position: relative; }
.result .btn { align-self: flex-start; position: relative; }

/* ---------- Trades marquee ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent); mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; list-style: none; margin: 0; padding: 4px 0; }
.marquee-track li { border: 1px solid var(--ink); border-radius: 999px; padding: 12px 22px; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.05rem, 2vw, 1.4rem); white-space: nowrap; background: var(--surface); }
.marquee-track li:nth-child(odd) { background: var(--ink); color: var(--on-ink); }

/* ---------- Services page ---------- */
.page-head { background: var(--ink); color: var(--on-ink); padding: clamp(48px, 7vw, 88px) 0; position: relative; overflow: hidden; }
.page-head::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px); background-size: 24px 24px; -webkit-mask-image: linear-gradient(to bottom, black, transparent); mask-image: linear-gradient(to bottom, black, transparent); }
.page-head .head { margin: 0; position: relative; }
.page-head .lede { color: var(--on-ink-muted); }
.jump { display: flex; gap: 10px; flex-wrap: wrap; position: relative; margin-top: 24px; }
.jump a { text-decoration: none; border: 1px solid rgba(244,246,247,0.3); border-radius: 999px; padding: 8px 16px; font-size: 0.95rem; color: var(--on-ink); }
.jump a:hover { background: var(--on-ink); color: var(--ink); }
.detail { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(24px, 5vw, 72px); align-items: start; scroll-margin-top: 80px; }
.detail-intro { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 96px; }
.detail-intro .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(3rem, 7vw, 5rem); line-height: 0.9; color: var(--accent); letter-spacing: -0.04em; }
.detail-body { display: flex; flex-direction: column; gap: 22px; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.col { border: 1px solid var(--line); border-radius: 16px; padding: 22px; background: var(--surface); display: flex; flex-direction: column; gap: 14px; }
.band .col { background: var(--paper); }
.col ul, .check { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.col li, .check li { padding-left: 26px; position: relative; }
.col li::before, .check li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.col.yes li::before, .check li::before { content: "✓"; color: var(--answered); }
.col.no li::before { content: "✕"; color: var(--accent); }
.mini-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; counter-reset: ms; }
.mini-steps li { counter-increment: ms; display: grid; grid-template-columns: 2.4em 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.mini-steps li::before { content: "0" counter(ms); font-family: var(--font-mono); color: var(--accent); font-size: 0.9rem; padding-top: 2px; }
.mini-steps p { color: var(--muted); }
.callout { border-left: 4px solid var(--accent); background: #FFF8F3; padding: 16px 18px; border-radius: 0 12px 12px 0; color: var(--ink); }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; max-width: 48em; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 20px 32px 20px 0; font-weight: 600; font-size: 1.08rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 15px; font-size: 1.5rem; font-weight: 400; color: var(--accent); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 32px 22px 0; }

/* ---------- About ---------- */
.prose { display: flex; flex-direction: column; gap: 18px; max-width: 40em; }
.prose p { color: var(--muted); font-size: 1.1rem; }
.prose p.sig { color: var(--ink); font-weight: 600; }

/* ---------- Contact ---------- */
.contact { background: var(--ink); color: var(--on-ink); position: relative; overflow: hidden; scroll-margin-top: 60px; }
.contact::before { content: ""; position: absolute; left: -10%; bottom: -40%; width: 60%; height: 120%; background: radial-gradient(rgba(249,115,22,0.18), transparent 65%); pointer-events: none; }
.contact .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact .head { margin: 0; }
.contact .lede { color: var(--on-ink-muted); }
.contact a.mail { font-family: var(--font-mono); font-size: 0.95rem; }
.contact form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.contact form .full { grid-column: 1 / -1; }
.contact label { display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; color: var(--on-ink-muted); }
.contact input, .contact textarea { font: inherit; color: var(--on-ink); background: var(--ink-2); border: 1px solid #344560; border-radius: 10px; padding: 12px 14px; width: 100%; transition: border-color .2s; }
.contact input:focus, .contact textarea:focus { border-color: var(--accent-bright); }
.contact input::placeholder, .contact textarea::placeholder { color: #8493A8; }
.contact textarea { min-height: 110px; resize: vertical; }
.contact .btn.primary { justify-self: start; }
.status { grid-column: 1 / -1; font-size: 0.95rem; color: #F5C8A8; min-height: 1.5em; }

/* Closing band (other pages) */
.closing { background: var(--ink); color: var(--on-ink); }
.closing .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px 40px; flex-wrap: wrap; }
.closing p { color: var(--on-ink-muted); max-width: 30em; }
.closing .copy { display: flex; flex-direction: column; gap: 10px; }

footer { padding: 28px 0; font-size: 0.9rem; color: var(--muted); background: var(--paper); }
footer .wrap { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
footer nav { display: flex; gap: 8px 18px; flex-wrap: wrap; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

/* ---------- Motion (only when allowed) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .mark .pulse { animation: pulse 2.4s infinite; }
  @keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,0.55); } 70% { box-shadow: 0 0 0 10px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }

  .hero-copy > * { animation: rise .8s var(--ease) 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; }
  .demo { animation: rise 1s .2s var(--ease) both; }
  .hero h1 em { animation: underline 1s .9s var(--ease) both; }
  @keyframes underline { from { background-size: 0% 100%; } to { background-size: 100% 100%; } }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

  .msg, .summary:not([hidden]), .slots, .typing { animation: pop .35s var(--ease) both; }
  @keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
  .typing i { animation: dot 1s infinite; }
  .typing i:nth-child(2) { animation-delay: .15s; }
  .typing i:nth-child(3) { animation-delay: .3s; }
  @keyframes dot { 0%, 100% { opacity: .3; transform: none; } 50% { opacity: 1; transform: translateY(-3px); } }

  .reveal.in { animation: rise .7s var(--ease) both; }
  .reveal.in:nth-child(2) { animation-delay: .08s; }
  .reveal.in:nth-child(3) { animation-delay: .16s; }

  .bar i { transform-origin: left; transform: scaleX(0); transition: transform 1.6s var(--ease); }
  .soon .bar i { transition-duration: .5s; }
  .in .bar i { transform: scaleX(1); }

  .marquee-track { animation: slide 38s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
  @keyframes slide { to { transform: translateX(-50%); } }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { flex-wrap: wrap; width: auto; }
  .marquee-track li[aria-hidden="true"] { display: none; }
}

@media (max-width: 960px) {
  .services { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .hero .wrap, .contact .wrap, .tool, .detail { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .result { position: relative; top: auto; }
  .detail-intro { position: static; }
}
@media (max-width: 640px) {
  .clocks, .split, .contact form { grid-template-columns: minmax(0, 1fr); }
  .stats .wrap { grid-template-columns: minmax(0, 1fr); }
  .stat { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .stat:first-child { border-top: 0; }
  .nav { font-size: 0.9rem; }
  .top { position: static; }
  .thread { height: 340px; }
}

/* ---------- Photos ---------- */
.ph { margin: 0; border-radius: 18px; overflow: hidden; position: relative; background: #DDE3E8; }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph figcaption { position: absolute; left: 14px; bottom: 14px; right: 14px; width: max-content; max-width: calc(100% - 28px); background: rgba(15,27,45,.82); color: #fff; font-size: .85rem; padding: 6px 12px; border-radius: 999px; }
.problem-top { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); gap: clamp(24px,4vw,56px); align-items: center; margin-bottom: clamp(28px,4vw,48px); }
.problem-top .head { margin: 0; }
.problem-top .ph { height: 340px; }
.how-grid { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: clamp(24px,4vw,56px); align-items: stretch; }
.how-grid .ph { min-height: 420px; }
.how-grid .steps { grid-template-columns: minmax(0,1fr); }
.work { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.work .ph { height: 230px; transition: transform .3s var(--ease); }
.work .ph:hover { transform: translateY(-4px); }
@media (max-width: 900px) {
  .problem-top, .how-grid { grid-template-columns: minmax(0,1fr); }
  .problem-top .ph { height: 260px; }
  .how-grid .ph { min-height: 0; height: 300px; }
  .work { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .work .ph { height: 180px; }
}

.marquee-below { margin-top: clamp(24px, 3vw, 36px); }
