/* AURIS website: the white product site. Tokens and mode rules per CONTRACT.md. */

:root {
  --bg: #ffffff;
  --fg: #0a0a0a;
  --muted: #6b6b6b;
  --line: #e5e5e5;
  --pill: #f4f4f4;
  --accent: #e85d1f;
  --shadow: 0 18px 44px rgba(0, 0, 0, .3);
  --skel-a: #ececec;
  --skel-b: #f7f7f7;
  --illo-filter: none;
  --display: "Poppins", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --gut: max(6vw, calc((100vw - 1440px) / 2));
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0a0a; --fg: #ffffff; --muted: #8f8f8f; --line: #222222; --pill: #1a1a1a;
    --shadow: 0 18px 44px rgba(0, 0, 0, .65);
    --skel-a: #161616; --skel-b: #222222;
    --illo-filter: invert(1) hue-rotate(180deg);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0a0a; --fg: #ffffff; --muted: #8f8f8f; --line: #222222; --pill: #1a1a1a;
  --shadow: 0 18px 44px rgba(0, 0, 0, .65);
  --skel-a: #161616; --skel-b: #222222;
  --illo-filter: invert(1) hue-rotate(180deg);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 15px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: background-color .4s ease, color .4s ease;
}
img { max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }

/* ---------- Mode layers ---------- */
#gl, #hud { position: fixed; inset: 0; width: 100%; height: 100%; }
#gl { z-index: 1; display: block; background: #000; }
#hud { z-index: 2; }
#wipe { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 50; pointer-events: none; }
#site { position: relative; z-index: 0; transition: opacity .5s ease; }
body:not(.is-3d) #gl, body:not(.is-3d) #hud { visibility: hidden; pointer-events: none; }
body.is-3d { overflow: hidden; background: #000; }
body.is-3d #site { visibility: hidden; opacity: 0; pointer-events: none; }
body.is-3d .cta, body.is-3d .brand { display: none; }

/* ---------- Type ---------- */
h1, h2, h3, .mega, .art, .wordmark, .tape, .brand { font-family: var(--display); font-weight: 800; }
.kicker {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
}
.sec { width: 100%; max-width: calc(1440px + 12vw); margin: 0 auto; padding: 120px var(--gut) 0; }
.h2 { margin: 0; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05; letter-spacing: -.035em; }
.sub { max-width: 52ch; margin: 14px 0 0; color: var(--muted); font-size: 15px; }
.rule-head { margin: 0 0 28px; padding-top: 24px; border-top: 1px solid var(--line); }

/* ---------- Brand + pill nav ---------- */
.brand {
  position: fixed; top: 22px; left: var(--gut); z-index: 40;
  display: flex; align-items: baseline; gap: 7px;
  font-size: 23px; letter-spacing: -.06em; line-height: 1; text-decoration: none; color: var(--fg);
}
.brand em {
  font: 500 9px/1 var(--mono); font-style: normal; letter-spacing: .12em;
  padding: 4px 6px 3px; border-radius: 999px; background: var(--accent); color: #fff;
  transform: translateY(-3px);
}

#bar {
  position: fixed; top: 14px; left: 50%; z-index: 40;
  display: flex; align-items: center; gap: 4px;
  padding: 5px 5px 5px 18px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--pill) 88%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  transform: translateX(-50%);
  font-size: 13px; font-weight: 500;
  white-space: nowrap;
  transition: background-color .4s ease, color .4s ease;
}
.bar-links { display: flex; gap: 18px; margin-right: 8px; }
.bar-links a { position: relative; padding: 6px 0; text-decoration: none; }
.bar-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 1px; height: 2px;
  border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .35s cubic-bezier(.2, .8, .3, 1);
}
.bar-links a:hover::after, .bar-links a.is-active::after { transform: scaleX(1); }

.bar-icon {
  display: grid; place-items: center; width: 36px; height: 36px; padding: 0;
  border: 0; border-radius: 50%; background: none; cursor: pointer;
  transition: background-color .2s ease;
}
.bar-icon:hover { background: color-mix(in srgb, var(--fg) 7%, transparent); }
.icon-sun { display: none; }
:root[data-theme="dark"] .icon-sun { display: block; }
:root[data-theme="dark"] .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun { display: block; }
  :root:not([data-theme="light"]) .icon-moon { display: none; }
}
.bar-menu { display: none; }

.bar-switch {
  position: relative;
  display: inline-flex; align-items: center; gap: 12px;
  height: 36px; padding: 0 6px 0 16px; margin-left: 2px;
  border: 0; border-radius: 999px;
  background: #0a0a0a; color: #fff;
  font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: transform .25s ease, opacity .25s ease;
}
:root[data-theme="dark"] .bar-switch { background: #fff; color: #0a0a0a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bar-switch { background: #fff; color: #0a0a0a; } }
.bar-switch:disabled { cursor: progress; }
.bar-switch:disabled .bar-switch-label { opacity: .72; }
.bar-switch:not(:disabled):hover { transform: translateY(-1px); }
.bar-switch-label { min-width: 74px; text-align: left; }
.bar-switch-track {
  position: relative; width: 30px; height: 18px; border-radius: 999px;
  background: color-mix(in srgb, currentColor 22%, transparent);
  transition: background-color .3s ease;
}
.bar-switch-track i {
  position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%;
  background: currentColor; transition: transform .35s cubic-bezier(.2, .8, .3, 1);
}
.bar-switch.is-on .bar-switch-track { background: var(--accent); }
.bar-switch.is-on .bar-switch-track i { transform: translateX(12px); background: #fff; }
/* The orange dot that says "this one is live". */
.bar-switch::before {
  content: ""; position: absolute; top: -2px; right: -2px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--accent); opacity: 0; transform: scale(.4);
  transition: opacity .3s ease, transform .3s ease;
}
.bar-switch.is-ready::before { opacity: 1; transform: scale(1); animation: blink 1.8s ease-in-out infinite; }
.bar-switch.is-on::before { display: none; }

.try-me {
  position: absolute; top: calc(100% + 2px); right: -14px; width: 78px; height: 52px;
  color: var(--accent); pointer-events: none; overflow: visible;
  transition: opacity .4s ease;
}
.try-me text { font: 800 13px/1 var(--display); letter-spacing: -.02em; fill: var(--fg); }
.try-arrow { stroke-dasharray: 90; stroke-dashoffset: 90; animation: draw 1s .6s cubic-bezier(.3, .7, .3, 1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
#bar.is-used .try-me, body.is-3d .try-me { opacity: 0; }

/* 3D mode: the bar stays, as a light pill over the dark stage. */
body.is-3d #bar { background: rgba(255, 255, 255, .94); color: #0a0a0a; }
body.is-3d #bar .bar-switch { background: #f1f1f1; color: #0a0a0a; }
body.is-3d #bar .bar-icon:hover { background: rgba(0, 0, 0, .06); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid; align-content: center;
  min-height: max(76vh, 640px);
  padding: 130px var(--gut) 150px;
  overflow: hidden;
  text-align: center;
}
.hero-head { position: relative; z-index: 3; max-width: 900px; margin: 0 auto; }
.mega {
  margin: 20px 0 0;
  font-size: clamp(36px, 9vw, 100px);
  line-height: 1; letter-spacing: -.05em;
  text-transform: lowercase;
}
.mega span { display: block; white-space: nowrap; }
.rec {
  display: inline-block; font-style: normal; color: var(--accent);
  animation: rec 1.6s ease-in-out infinite;
  text-shadow: 0 0 0 transparent;
}
@keyframes rec {
  0%, 100% { opacity: 1; text-shadow: 0 0 18px color-mix(in srgb, var(--accent) 55%, transparent); }
  50% { opacity: .28; text-shadow: 0 0 0 transparent; }
}
.lead { max-width: 46ch; margin: 22px auto 0; color: var(--muted); font-size: 15px; line-height: 1.65; }

.arrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 26px; padding: 0 0 4px;
  border: 0; border-bottom: 1px solid var(--fg); background: none;
  font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
}
.arrow::after { content: "\2192"; color: var(--accent); transition: transform .25s ease; }
.arrow:hover::after { transform: translateX(5px); }

.stage { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.float {
  position: absolute; margin: 0;
  width: clamp(120px, 13vw, 230px); aspect-ratio: 4 / 5;
  border-radius: 14px; overflow: hidden;
  background: var(--skel-a);
  box-shadow: var(--shadow);
  will-change: transform;
  animation: drift 7s ease-in-out infinite;
}
.float:nth-of-type(1) { top: 13%; left: 9%; rotate: -3deg; }
.float:nth-of-type(2) { top: 7%; right: 11%; rotate: 2deg; animation-duration: 9s; animation-delay: -2.5s; width: clamp(130px, 15vw, 260px); }
.float:nth-of-type(3) { bottom: 11%; left: 21%; rotate: 1.5deg; animation-duration: 11s; animation-delay: -5s; width: clamp(110px, 11vw, 200px); }
@keyframes drift { 50% { translate: 0 -14px; } }
.float img {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06); transition: opacity .8s ease, transform 1.2s cubic-bezier(.2, .8, .3, 1);
}
.float.is-filled img { opacity: 1; transform: none; }
.skel {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 45% at 50% 46%, var(--skel-b), transparent 70%),
    linear-gradient(110deg, transparent 30%, color-mix(in srgb, var(--skel-b) 90%, transparent) 50%, transparent 70%) 0 0 / 250% 100%,
    var(--skel-a);
  animation: shimmer 1.8s linear infinite;
  transition: opacity .6s ease;
}
.skel::after {
  content: ""; position: absolute; left: 50%; top: 47%; width: 34%; aspect-ratio: 3 / 4;
  border-radius: 28% / 22%; transform: translate(-50%, -50%);
  border: 1.5px solid color-mix(in srgb, var(--fg) 9%, transparent);
}
.float.is-filled .skel { opacity: 0; }
@keyframes shimmer { from { background-position: 0 0, 150% 0, 0 0; } to { background-position: 0 0, -100% 0, 0 0; } }

.tape {
  position: absolute; left: 50%; bottom: 17%; z-index: 1;
  width: 170vw; margin-left: -85vw; padding: 10px 0;
  overflow: hidden; white-space: nowrap;
  font-size: clamp(26px, 3.4vw, 56px); line-height: 1.15; letter-spacing: -.02em;
  text-transform: uppercase;
  background: var(--accent); color: #fff;
  transform: rotate(-2deg);
  box-shadow: 0 10px 30px rgba(232, 93, 31, .18);
}
.tape span { display: inline-block; will-change: transform; animation: slide 32s linear infinite; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Cards ---------- */
.grid {
  display: grid; gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  margin: 40px 0 0; padding: 0; list-style: none;
}
.edge { padding: 20px 20px 28px; border-radius: 14px; background: var(--pill); transition: transform .35s ease; }
.edge:hover { transform: translateY(-4px); }
.edge .kicker { margin-top: 18px; }
.edge h3 { margin: 10px 0 8px; font-size: 20px; line-height: 1.2; letter-spacing: -.03em; }
.edge p:not(.kicker) { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.shot {
  display: grid; place-items: center; aspect-ratio: 1 / 1; margin: 0;
  border-radius: 10px; overflow: hidden;
}
.illo { display: block; width: 100%; height: 100%; object-fit: contain; filter: var(--illo-filter); }
.illo.is-missing { visibility: hidden; }

/* ---------- Rule rows ---------- */
.inside { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.rows {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  column-gap: 48px; margin: 0; padding: 0; list-style: none;
}
.rows li {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
  gap: 2px 24px; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 14px;
}
.rows b { font-weight: 500; }
.rows span { color: var(--muted); text-align: right; }
.inside-art { background: var(--pill); border-radius: 14px; padding: 18px; }

.stats {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 32px;
  margin-top: 72px; padding: 36px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stat .kicker { color: var(--muted); margin-bottom: 10px; }
.num {
  margin: 0; font-family: var(--display); font-weight: 800;
  font-size: clamp(44px, 7vw, 104px); line-height: .95; letter-spacing: -.05em;
}
.num small { margin-left: .18em; font-size: .36em; letter-spacing: -.02em; }
.num-was { color: var(--muted); text-decoration: line-through; text-decoration-thickness: .06em; text-decoration-color: var(--accent); }
.stat-arrow { width: 80px; color: var(--accent); padding-bottom: 22px; }

/* ---------- Dark band ---------- */
.band {
  margin-top: 130px;
  padding: 80px var(--gut) 96px;
  background: var(--fg); color: var(--bg);
  transition: background-color .4s ease, color .4s ease;
}
.band .kicker { display: flex; align-items: center; gap: 9px; color: var(--bg); opacity: .6; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.band .art {
  margin: 24px 0 28px; font-size: clamp(30px, 4.8vw, 70px);
  line-height: .95; letter-spacing: -.04em; text-transform: uppercase;
}
.band .art span { display: block; }
.band .art .hl { color: var(--accent); }
.band p:not(.kicker) { max-width: 60ch; margin: 0 0 30px; opacity: .65; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.chips button {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border: 0; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  cursor: pointer; transition: background-color .25s ease, color .25s ease, transform .25s ease;
}
.chips svg { flex: none; width: 17px; height: 17px; fill: currentColor; }
.chips button:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: end; padding-bottom: 40px; }
.contact .h2 { font-size: clamp(34px, 4.6vw, 64px); letter-spacing: -.045em; }
.mailbox .kicker { color: var(--muted); margin-bottom: 10px; }
.mail {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 22px; border-radius: 999px; background: var(--pill);
}
.mail-addr {
  min-width: 0; overflow: hidden; text-overflow: ellipsis;
  font-family: var(--display); font-weight: 800; font-size: clamp(18px, 2vw, 26px); letter-spacing: -.03em;
  user-select: all; -webkit-user-select: all; cursor: text;
}
.mail-copy {
  flex: none; padding: 12px 20px; border: 0; border-radius: 999px;
  background: var(--fg); color: var(--bg);
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
  transition: background-color .25s ease;
}
.mail-copy:hover, .mail-copy.is-done { background: var(--accent); color: #fff; }
.mail-note { min-height: 1.4em; margin: 10px 0 0 22px; color: var(--muted); font-size: 13px; }

/* ---------- Footer ---------- */
.foot-wrap { padding: 90px 0 110px; }
.wordmark {
  display: block; margin: 0 auto; padding: 0 0 24px;
  font-size: min(26vw, 425px); line-height: .78; letter-spacing: -.085em;
  white-space: nowrap; text-align: center; text-decoration: none;
  transition: color .3s ease;
}
.wordmark:hover { color: var(--accent); }
.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
  max-width: calc(1440px + 12vw); margin: 0 auto; padding: 22px var(--gut) 0;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 12px;
}
.foot a { text-decoration: none; border-bottom: 1px solid currentColor; }
.foot a:hover { color: var(--accent); }

/* ---------- Sticky 3D button ---------- */
.cta {
  position: fixed; left: 50%; bottom: 30px; z-index: 30;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border: 0; border-radius: 999px;
  background: var(--fg); color: var(--bg);
  font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  cursor: pointer; box-shadow: 0 12px 34px rgba(0, 0, 0, .22);
  transform: translateX(-50%);
  transition: transform .35s cubic-bezier(.2, .8, .3, 1), opacity .35s ease;
}
.cta:hover { transform: translateX(-50%) translateY(-3px); }
.cta.is-away { opacity: 0; transform: translateX(-50%) translateY(20px); pointer-events: none; }
.cta-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: blink 1.8s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .inside { grid-template-columns: 1fr; }
  .inside-art { max-width: 420px; }
  .contact { grid-template-columns: 1fr; gap: 28px; }
  .float { width: clamp(104px, 18vw, 160px); }
  .float:nth-of-type(1) { top: 9%; left: 3%; }
  .float:nth-of-type(2) { top: 7%; right: 3%; width: clamp(104px, 18vw, 170px); }
  .float:nth-of-type(3) { bottom: 5%; left: 8%; width: clamp(96px, 15vw, 140px); }
}
@media (max-width: 760px) {
  :root { --gut: 16px; }
  .brand { top: 24px; font-size: 21px; }
  .brand em { display: none; }
  #bar { left: auto; right: 16px; transform: none; padding-left: 5px; gap: 2px; }
  .bar-links { display: none; }
  .bar-menu { display: grid; }
  #bar.is-open .bar-links {
    position: absolute; top: calc(100% + 10px); right: 0;
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    min-width: 190px; margin: 0; padding: 12px 18px;
    border-radius: 18px; background: var(--pill); box-shadow: 0 16px 40px rgba(0, 0, 0, .14);
  }
  body.is-3d #bar.is-open .bar-links { background: #fff; }
  .try-me { display: none; }
  .bar-switch { padding-left: 13px; gap: 9px; }
  .bar-switch-label { min-width: 0; }
  .sec { padding-top: 88px; }
  .hero { min-height: 760px; padding: 250px 16px 250px; align-content: start; }
  .mega { font-size: 9.2vw; }
  .lead { font-size: 14px; }
  .tape { bottom: 20%; }
  .float { width: 33vw; }
  .float:nth-of-type(1) { top: 88px; left: 16px; }
  .float:nth-of-type(2) { top: 72px; right: 16px; width: 36vw; }
  .float:nth-of-type(3) { bottom: 26px; left: auto; right: 22%; width: 30vw; }
  .stats { grid-template-columns: 1fr; gap: 18px; }
  .stat-arrow { transform: rotate(90deg); width: 44px; padding: 0; }
  .rows span { text-align: left; }
  .band { margin-top: 96px; padding: 64px 16px 72px; }
  .chips button { padding: 12px 18px; font-size: 11px; }
  .mail { padding-left: 16px; }
  .cta { bottom: 18px; padding: 13px 20px; font-size: 11px; }
  .foot { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tape span, .float, .skel, .cta-dot, .rec, .bar-switch.is-ready::before { animation: none; }
  .try-arrow { animation: none; stroke-dashoffset: 0; }
  .rec { opacity: 1; }
}
