/* Aucket — layout concept: airy cool-white page, deep-navy ink, one cobalt accent,
   and the cyan "streak" from the logo used sparingly as a signature line. */
:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --ink: #0a1330;
  --muted: #56607a;
  --line: #dfe5f0;
  --accent: #1670ea;
  --accent-ink: #ffffff;
  --spark: #1fc2f2;
  --tint: #e8f1ff;
  --tint-2: #eff3fa;
  --warn: #8a5a00;
  --warn-bg: #fff4dc;

  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Instrument Sans", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: 1.5rem;
  --step-3: 2rem;
  --step-4: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);
  --step-5: clamp(2.6rem, 1.7rem + 3.8vw, 4.6rem);

  --radius: 16px;
  --wrap: 1120px;
  --read: 68ch;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #060b1c; --surface: #0c1430; --ink: #e9eefb; --muted: #97a2bf;
    --line: #1b2649; --accent: #4f9dff; --accent-ink: #04102a; --spark: #3fd3ff;
    --tint: #0f2150; --tint-2: #0a1128; --warn: #f3c56b; --warn-bg: #2b2310;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #060b1c; --surface: #0c1430; --ink: #e9eefb; --muted: #97a2bf;
  --line: #1b2649; --accent: #4f9dff; --accent-ink: #04102a; --spark: #3fd3ff;
  --tint: #0f2150; --tint-2: #0a1128; --warn: #f3c56b; --warn-bg: #2b2310;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 16px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 48px);
  margin-inline: auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
@media (max-width: 480px) {
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
}

/* ---------- Header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand .mark { width: 34px; height: 34px; flex: none; display: block; }
.brand .wm { display: block; height: 19px; width: auto; }
.brand .wm-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand .wm-light { display: none; } :root:not([data-theme="light"]) .brand .wm-dark { display: block; } }
:root[data-theme="dark"] .brand .wm-light { display: none; }
:root[data-theme="dark"] .brand .wm-dark { display: block; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: inline-block; padding: 8px 12px; border-radius: 999px; text-decoration: none;
  color: var(--muted); font-size: 0.95rem; font-weight: 500;
}
.nav-links a:hover { color: var(--ink); background: var(--tint-2); }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links .btn, .nav-links .btn[aria-current="page"] { margin-left: 8px; color: var(--accent-ink); }
.nav-links .btn:hover { color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 88%, var(--ink)); }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 10px; width: 42px; height: 42px; cursor: pointer; }
.menu-toggle svg { width: 20px; height: 20px; }

@media (max-width: 760px) {
  .menu-toggle { display: inline-grid; place-items: center; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px));
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 8px; border-radius: 8px; font-size: 1rem; }
  .nav-links .btn { margin: 8px 0 0; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; border: 1px solid transparent;
  background: var(--accent); color: var(--accent-ink);
  font: 600 0.95rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background .15s, transform .15s;
}
.btn:hover { background: color-mix(in srgb, var(--accent) 88%, var(--ink)); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--tint-2); }
.btn svg { width: 16px; height: 16px; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; margin: 0; text-wrap: balance; }
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-1); letter-spacing: -0.01em; line-height: 1.3; }
p { margin: 0; }
.lead { font-size: var(--step-1); color: var(--muted); max-width: 54ch; line-height: 1.55; }
.eyebrow {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.muted { color: var(--muted); }

/* ---------- Sections ---------- */
main { display: block; }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 720px; }

/* Hero */
.hero { padding-block: clamp(48px, 8vw, 104px) clamp(56px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero-copy { display: grid; gap: 24px; min-width: 0; }
.hero-copy h1 em { font-style: normal; color: var(--accent); position: relative; white-space: nowrap; }
.hero-copy h1 em::after {
  content: ""; position: absolute; left: 2%; right: -2%; bottom: -0.12em; height: 0.16em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g'%3E%3Cstop offset='0' stop-color='%231670ea' stop-opacity='0'/%3E%3Cstop offset='.55' stop-color='%231fc2f2'/%3E%3Cstop offset='1' stop-color='%231fc2f2' stop-opacity='.2'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M2 10C60 9 130 6 198 2' fill='none' stroke='url(%23g)' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero-art { min-width: 0; }
.hero-art svg { width: 100%; height: auto; display: block; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { max-width: 420px; } }

.tile { transform-box: fill-box; transform-origin: center; animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { transform: translateY(8px); opacity: .0; } to { transform: none; opacity: 1; } }

/* Principles */
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
@media (max-width: 860px) { .cols-3 { grid-template-columns: 1fr; } }
.principle { display: grid; gap: 12px; align-content: start; padding-top: 20px; border-top: 2px solid var(--ink); }
.principle .icon { width: 36px; height: 36px; color: var(--accent); }
.principle p { color: var(--muted); }

/* App shelf */
.shelf { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.app-slot {
  display: grid; gap: 14px; align-content: start;
  padding: 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.app-slot .app-icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; }
.app-slot.pending { background: transparent; border: 1.5px dashed color-mix(in srgb, var(--muted) 45%, transparent); }
.status {
  display: inline-flex; align-items: center; gap: 6px; width: fit-content;
  font: 500 0.75rem/1 var(--font-mono); letter-spacing: .04em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px; background: var(--tint); color: var(--accent);
}
.store-row { display: flex; flex-wrap: wrap; gap: 8px; }
.store-chip { font-size: .82rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }

/* Band */
.band { background: var(--surface); border-block: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.split > * { min-width: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Fact list */
.facts { margin: 0; display: grid; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { .facts > div { grid-template-columns: 1fr; gap: 4px; } }

/* CTA */
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta h2 { font-size: var(--step-3); }

/* Page hero (inner pages) */
.page-hero { padding-block: clamp(48px, 7vw, 88px) clamp(32px, 5vw, 56px); display: grid; gap: 18px; }
.page-hero h1 { font-size: var(--step-4); max-width: 18ch; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-grid > * { min-width: 0; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; gap: 20px; padding: clamp(20px, 4vw, 36px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; min-width: 0; }
.field label { font-weight: 600; font-size: .92rem; }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.form .fine { font-size: .85rem; color: var(--muted); }
.form-status { font-size: .95rem; padding: 12px 14px; border-radius: 10px; background: var(--tint); color: var(--ink); }
.form-status.error { background: var(--warn-bg); color: var(--warn); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.directory { display: grid; gap: 0; border-top: 1px solid var(--line); }
.directory > div { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.directory .label { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.directory a { font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.directory a:hover { color: var(--accent); }
.note { padding: 18px; border-radius: var(--radius); background: var(--tint-2); border: 1px solid var(--line); font-size: .93rem; display: grid; gap: 8px; }

/* Press */
.asset-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .asset-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .asset-grid { grid-template-columns: 1fr; } }
.asset { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); display: grid; }
.asset .preview { aspect-ratio: 16 / 10; display: grid; place-items: center; padding: 24px; max-width: 100%; }
.asset .preview.light { background: #ffffff; color: #0a1330; }
.asset .preview img { max-height: 76px; width: auto; }
.asset .preview.dark { background: #01071f; color: #ffffff; }
.asset .preview.blue { background: #1670ea; color: #ffffff; }
.asset .preview svg { max-height: 72px; width: auto; }
.asset .meta { padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); }
.asset .meta strong { font-size: .92rem; }
.asset .meta .links { display: flex; gap: 10px; font-size: .85rem; }
.asset .meta .links a { color: var(--accent); font-weight: 600; text-decoration: none; }

.swatches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .swatches { grid-template-columns: 1fr 1fr; } }
.swatch { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.swatch .chip { height: 88px; }
.swatch .info { padding: 12px 14px; display: grid; gap: 2px; }
.swatch code { font-family: var(--font-mono); font-size: .85rem; color: var(--muted); }

.boiler { position: relative; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 16px; }
.boiler p { max-width: var(--read); }
.copy-btn { justify-self: start; }
.rules { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.rules li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.rules svg { width: 18px; height: 18px; margin-top: 4px; }
.rules .yes { color: var(--accent); }
.rules .no { color: var(--muted); }

/* Legal */
.legal { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; padding-bottom: clamp(64px, 9vw, 120px); }
.toc { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 92px); display: grid; gap: 4px; font-size: .88rem; }
.toc a { color: var(--muted); text-decoration: none; padding: 4px 0; }
.toc a:hover { color: var(--ink); }
@media (max-width: 900px) {
  .legal { grid-template-columns: 1fr; }
  .toc { position: static; display: block; columns: 2; column-gap: 24px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
  .toc .label { column-span: all; display: block; }
  .toc a { display: block; break-inside: avoid; }
}
@media (max-width: 480px) { .toc { columns: 1; } }
.toc .label { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.prose { max-width: var(--read); display: grid; gap: 16px; }
.prose h2 { font-size: var(--step-2); margin-top: 28px; scroll-margin-top: 96px; }
.prose h3 { font-size: var(--step-0); margin-top: 8px; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.prose li::marker { color: var(--accent); }
.prose .caps { text-transform: uppercase; font-size: .92rem; letter-spacing: .01em; }
.meta-line { font-family: var(--font-mono); font-size: .82rem; color: var(--muted); }
.fill { background: var(--warn-bg); color: var(--warn); padding: 0 4px; border-radius: 4px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 56px 32px; font-size: .93rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
.foot-brand { display: grid; gap: 14px; align-content: start; }
.foot-brand p { color: var(--muted); max-width: 34ch; }
.foot-col { display: grid; gap: 8px; align-content: start; }
.foot-col h4 { margin: 0 0 4px; font-family: var(--font-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.foot-col a { text-decoration: none; color: var(--ink); width: fit-content; }
.foot-col a:hover { color: var(--accent); }
.foot-base { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .85rem; }

/* ---------- Photos ---------- */
.photo {
  position: relative; margin: 0; overflow: hidden; border-radius: 28px; max-width: 100%;
  background: radial-gradient(120% 90% at 0% 0%, var(--spark) 0%, transparent 55%), linear-gradient(150deg, var(--accent), #0a2b8f);
}
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo .badge { position: absolute; left: 18px; bottom: 18px; width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 10px 30px rgba(4,16,48,.35); }
.photo .streak { position: absolute; inset: auto 0 0 0; width: 100%; height: 38%; pointer-events: none; }
.photo figcaption { position: absolute; right: 14px; bottom: 12px; font: 500 .7rem/1 var(--font-mono); color: rgba(255,255,255,.85); text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.hero-photo { aspect-ratio: 4 / 5; }
.moments { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; }
.moments .photo { aspect-ratio: 4 / 3; }
.moments .photo.tall { grid-row: span 2; aspect-ratio: auto; min-height: 100%; }
@media (max-width: 760px) { .moments { grid-template-columns: 1fr; } .moments .photo.tall { aspect-ratio: 4 / 3; } }
.moments-copy { display: grid; gap: 16px; align-content: center; padding: 8px 4px; }
