/* Brilliant Solutions — site styles.  One dark theme (it is a lighting company;
   the product only exists at night), one accent (the brand orange), soft radii
   with pill buttons. */

@font-face {
  font-family: "Outfit";
  src: url("/assets/fonts/outfit-var.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --night: #0b0f1a;
  --night-2: #121828;
  --night-3: #1a2136;
  --line: rgba(255, 255, 255, 0.11);
  --line-2: rgba(255, 255, 255, 0.2);
  --ink: #f3f0ea;
  --ink-soft: #a9aeba;
  --ink-mute: #858b9a;
  --accent: #f28a2b;
  --accent-2: #ffab5e;
  --accent-ink: #1c0f03;
  --warm: #ffd9a6;
  --blue: #4a90d9;
  --radius: 14px;
  --radius-sm: 10px;
  --wrap: 1280px;
  --gutter: clamp(1.1rem, 4vw, 3rem);
  --nav-h: 72px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0; background: var(--night); color: var(--ink);
  font-family: "Outfit", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1.04rem; line-height: 1.55; font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img, video, canvas { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; text-wrap: balance; }
p { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem; white-space: nowrap;
  padding: 0.85rem 1.45rem; border-radius: 999px; text-decoration: none;
  font-weight: 500; font-size: 1rem; line-height: 1; border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  cursor: pointer;
}
.btn:active { transform: translateY(1px) scale(0.985); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { background: rgba(255, 255, 255, 0.06); border-color: var(--line-2); color: var(--ink); backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: var(--ink-soft); background: rgba(255, 255, 255, 0.1); }
.btn-lg { padding: 1.05rem 1.8rem; font-size: 1.08rem; }
.link { color: var(--ink); text-decoration: underline; text-underline-offset: 0.2em; text-decoration-color: var(--ink-mute); }
.link:hover { text-decoration-color: var(--accent); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.3s ease, visibility 0s linear 0.3s;
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; font-weight: 500; font-size: 1.12rem; letter-spacing: -0.01em; }
.nav-brand img { width: 30px; height: auto; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) { text-decoration: none; color: var(--ink-soft); font-size: 0.98rem; transition: color 0.18s ease; }
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links .btn { padding: 0.65rem 1.15rem; font-size: 0.95rem; }
.nav-menu { display: none; }
/* floating pill state once the hero is passed */
.nav--float .wrap {
  background: rgba(14, 18, 30, 0.72); border: 1px solid var(--line); backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%); border-radius: 999px; padding: 0.45rem 0.6rem 0.45rem 1.1rem;
  width: min(1120px, 100% - 2 * var(--gutter)); margin-top: 0.75rem;
}
.nav--float { height: auto; }
.nav--hidden { transform: translateY(-120%); opacity: 0; pointer-events: none; visibility: hidden; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 70; background: var(--accent); color: var(--accent-ink); padding: 0.6rem 1rem; border-radius: 999px; text-decoration: none; font-weight: 500; }
.skip:focus { top: 1rem; }

/* mobile menu */
.mobile-menu { position: fixed; inset: 0; z-index: 45; background: var(--night); display: none; flex-direction: column; padding: 5.5rem var(--gutter) 2rem; }
.mobile-menu.is-open { display: flex; }
.mobile-menu a { font-size: 2rem; font-weight: 500; text-decoration: none; padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 1.5rem; align-self: flex-start; font-size: 1.1rem; }
.mobile-menu .mm-contact { margin-top: auto; color: var(--ink-soft); }
.mobile-menu .mm-contact a { font-size: 1rem; border: 0; padding: 0; display: block; color: var(--ink); }

/* ---------- hero ---------- */
/* Default (no JS, no WebGL, context lost) is the static poster with the first
   caption.  .hero--live switches to the canvas, the moving captions and the panel. */
.hero { position: relative; background: var(--night); }
.hero-stick { position: relative; height: 100svh; min-height: 560px; overflow: hidden; }
.hero-stick canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.hero-poster { position: absolute; inset: 0; background: url("/assets/img/hero-warm-1600.webp") center / cover no-repeat; }
.hero-poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 15, 26, 0.35), rgba(11, 15, 26, 0.78)); }
.hero--live canvas { display: block; }
.hero--live .hero-poster, .js .hero:not(.hero--static) .hero-poster { display: none; }
.hero-panel, .hero-dots, .hero-panel-toggle { display: none; }
.hero-copy { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 9vh; z-index: 3; pointer-events: none; }
.hc { max-width: 36rem; }
.hc:not([data-i="0"]) { display: none; }
.hero--live .hc { display: block; position: absolute; left: 0; bottom: 0; visibility: hidden; will-change: transform, opacity; }
.hero--live .hc.is-on { pointer-events: auto; }
.hc h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); font-weight: 500; letter-spacing: -0.03em; line-height: 0.98; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5); }
.hc h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 500; letter-spacing: -0.025em; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5); }
.hc p { margin-top: 1rem; color: var(--ink); opacity: 0.9; max-width: 30rem; font-size: 1.08rem; text-shadow: 0 1px 18px rgba(0, 0, 0, 0.6); }
.hc .btns { display: flex; gap: 0.75rem; margin-top: 1.5rem; flex-wrap: wrap; pointer-events: auto; }
.hc .hc-hint { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.2rem; color: var(--warm); font-size: 0.95rem; }
.hero:not(.hero--live) .hc-hint { display: none; }

.hero--live .hero-dots { position: absolute; left: 50%; bottom: calc(0.4rem + env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; gap: 0.35rem; z-index: 4; }
.hero-dots button { position: relative; width: 36px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 0; }
.hero-dots button::before { content: ""; position: absolute; left: 1px; right: 1px; top: 20px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.38); transition: background 0.2s ease; }
.hero-dots button.is-on::before { background: var(--warm); }

/* the light panel */
.hero--live .hero-panel { display: block; }
.hero-panel {
  position: absolute; right: var(--gutter); bottom: 6vh; z-index: 5; width: 22.5rem; max-width: calc(100% - 2 * var(--gutter));
  background: rgba(12, 16, 27, 0.66); border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 50px rgba(0, 0, 0, 0.35);
  padding: 0.85rem 1rem 1rem; color: var(--ink);
}
.hp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.7rem; }
.hp-zones { display: inline-flex; background: rgba(255, 255, 255, 0.06); border-radius: 999px; padding: 3px; }
.hp-zone { border: 0; background: transparent; color: var(--ink-soft); padding: 0.4rem 0.95rem; border-radius: 999px; cursor: pointer; font-size: 0.92rem; }
.hp-zone.is-on { background: var(--ink); color: var(--night); font-weight: 500; }
.hp-close { display: none; width: 44px; height: 44px; place-items: center; border: 0; background: transparent; color: var(--ink-soft); font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0; margin: -0.4rem -0.6rem -0.4rem 0; border-radius: 50%; }
.hp-row { padding: 0.55rem 0; border-top: 1px solid var(--line); }
.hp-row[hidden] { display: none; }
.hp-label { display: flex; justify-content: space-between; font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 0.4rem; }
.hp-label output { color: var(--ink); font-variant-numeric: tabular-nums; }
.hp-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.hp-chip { border: 1px solid var(--line-2); background: transparent; color: var(--ink); border-radius: 999px; padding: 0.5rem 0.9rem; font-size: 0.875rem; cursor: pointer; white-space: nowrap; }
.hp-chip.is-on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 500; }
.hp-anim { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.55rem; font-size: 0.875rem; color: var(--ink-soft); cursor: pointer; min-height: 32px; }
.hp-anim input { accent-color: var(--accent); width: 20px; height: 20px; margin: 0; }
.hp-swatches { display: flex; gap: 0.5rem; margin-bottom: 0.55rem; flex-wrap: wrap; }
.hp-sw { width: 34px; height: 34px; border-radius: 50%; border: 2px solid transparent; background: var(--sw); cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25); padding: 0; }
.hp-sw[data-sw="white"] { background: var(--zone-white, #ffe1b8); }
.hp-sw.is-on { border-color: var(--ink); }
.hero-panel input[type="range"] { --track: linear-gradient(90deg, var(--night-3), var(--night-3)); width: 100%; margin: 0; height: 2.5rem; background: transparent; appearance: none; -webkit-appearance: none; cursor: pointer; }
.hero-panel input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: var(--track); }
.hero-panel input[type="range"]::-moz-range-track { height: 8px; border-radius: 4px; background: var(--track); }
.hero-panel input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -6px; border-radius: 50%; background: #fff; border: 2px solid var(--night); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4); }
.hero-panel input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--night); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4); }
.hero-panel input[type="range"]:focus-visible { outline: none; }
.hero-panel input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--accent); }
.hp-hue { --track: linear-gradient(90deg, hsl(0 100% 55%), hsl(60 100% 55%), hsl(120 100% 50%), hsl(180 100% 50%), hsl(240 100% 60%), hsl(300 100% 55%), hsl(359 100% 55%)); }
.hp-hue:disabled { opacity: 0.35; cursor: default; }
.hp-kelvin { --track: linear-gradient(90deg, #ffb35c, #ffe1b8, #ffffff, #cfe3ff); }
.hp-bright { --track: linear-gradient(90deg, #3a3f4d, var(--accent)); }
/* ---------- chapters ---------- */
.chapter { padding: clamp(4.5rem, 9vw, 8rem) 0; position: relative; }
.chapter + .chapter { border-top: 1px solid var(--line); }
.chapter-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.chapter-head h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
.chapter-head p { margin-top: 1rem; color: var(--ink-soft); font-size: 1.12rem; max-width: 38rem; }

/* dealer strip under the hero */
.dealer { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.dealer p { color: var(--ink-soft); font-size: 1.02rem; }
.dealer img { height: 44px; width: auto; }

/* two systems */
.systems { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 1.25rem; }
.sys { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--night-2); border: 1px solid var(--line); display: grid; }
.sys img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.sys-body { padding: 1.6rem 1.7rem 1.8rem; }
.sys h3 { font-size: 1.7rem; }
.sys .by { color: var(--ink-mute); font-size: 0.95rem; margin-top: 0.3rem; }
.sys p.lead { margin-top: 0.9rem; color: var(--ink-soft); }
.facts { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.facts li { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--ink); font-size: 0.98rem; }
.facts li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 0.5rem; border-radius: 50%; background: var(--warm); box-shadow: 0 0 10px var(--warm); }
.sys .btn { margin-top: 1.4rem; }
.sys--tall img { aspect-ratio: 3 / 4; }

/* looks strip */
.looks { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 22.5rem); gap: 1rem; overflow-x: auto; padding-bottom: 1rem; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--night-3) transparent; }
.look { scroll-snap-align: start; position: relative; border-radius: var(--radius); overflow: hidden; color: var(--ink); background: var(--night-2); border: 1px solid var(--line); }
.look-link { display: block; text-decoration: none; color: inherit; }
.look img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.look:hover img { transform: scale(1.03); }
.look-body { padding: 1.1rem 8.2rem 1.3rem 1.2rem; }
.related .look-body { padding-right: 1.2rem; }
.look h3 { font-size: 1.25rem; }
.look p { color: var(--ink-soft); font-size: 0.95rem; margin-top: 0.25rem; }
.look-try { position: absolute; right: 1.1rem; bottom: 1.25rem; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.06); color: var(--ink); border-radius: 999px; padding: 0.6rem 0.95rem; font-size: 0.9rem; cursor: pointer; min-height: 40px; }
.look-try:hover { border-color: var(--accent); color: var(--accent-2); }

/* bento */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; }
.cell { border-radius: var(--radius); border: 1px solid var(--line); background: var(--night-2); padding: 1.6rem; position: relative; overflow: hidden; min-height: 15rem; display: flex; flex-direction: column; justify-content: flex-end; }
.cell h3 { font-size: 1.35rem; }
.cell p { color: var(--ink-soft); margin-top: 0.5rem; font-size: 0.98rem; max-width: 30rem; }
.cell .big { font-size: clamp(3rem, 6vw, 5rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1; color: var(--warm); margin-bottom: 0.6rem; }
.cell .big small { font-size: 0.35em; color: var(--ink-soft); letter-spacing: 0; margin-left: 0.3rem; font-weight: 400; }
.cell--img { padding: 0; justify-content: flex-end; }
.cell--img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cell--img .cell-txt { position: relative; padding: 1.6rem; background: linear-gradient(180deg, transparent, rgba(11, 15, 26, 0.92) 55%); }
.cell--img .cell-txt p { color: var(--ink); opacity: 0.85; }
.c4 { grid-column: span 4; } .c5 { grid-column: span 5; } .c6 { grid-column: span 6; } .c7 { grid-column: span 7; } .c8 { grid-column: span 8; } .c12 { grid-column: span 12; }
.cct { height: 14px; border-radius: 7px; margin: 1rem 0 0.5rem; background: linear-gradient(90deg, #ff9a3c 0%, #ffd9a6 30%, #fff5e6 60%, #d7e6ff 100%); position: relative; }
.cct i { position: absolute; top: -6px; left: 30%; width: 26px; height: 26px; border-radius: 50%; background: #ffd9a6; border: 3px solid var(--night-2); box-shadow: 0 0 18px #ffd9a6; }
.cct-labels { display: flex; justify-content: space-between; color: var(--ink-mute); font-size: 0.9rem; }
.cell--warm { background: radial-gradient(120% 90% at 80% 110%, rgba(242, 138, 43, 0.35), transparent 60%), var(--night-2); }
.app-shot { position: absolute; right: 1.3rem; top: 1.3rem; width: 42%; max-width: 190px; border-radius: 18px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); border: 1px solid var(--line-2); }
.cell--app { min-height: 24rem; }
.cell--app .cell-txt { max-width: 55%; }

/* film */
.film { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; display: grid; grid-template-columns: 1.3fr 1fr; }
.film video { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; }
.film-body { padding: clamp(1.6rem, 3vw, 3rem); display: flex; flex-direction: column; justify-content: center; background: var(--night-2); }
.film-body h3 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
.film-body p { color: var(--ink-soft); margin-top: 1rem; }
.film-body ul { margin: 1.2rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; color: var(--ink); }
.film-body li { padding-left: 1.1rem; position: relative; }
.film-body li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; counter-reset: step; }
.step { padding: 1.6rem 1.6rem 1.8rem; border-radius: var(--radius); background: var(--night-2); border: 1px solid var(--line); counter-increment: step; }
.step::before { content: counter(step, decimal-leading-zero); display: block; color: var(--accent); font-weight: 500; font-size: 0.95rem; letter-spacing: 0.04em; margin-bottom: 2.4rem; font-variant-numeric: tabular-nums; }
.step h3 { font-size: 1.35rem; }
.step p { color: var(--ink-soft); margin-top: 0.6rem; font-size: 0.98rem; }

/* FAQ accordion */
.faq { max-width: 52rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.2rem 3rem 1.2rem 0; font-size: 1.18rem; font-weight: 500; position: relative; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 0.3rem; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--ink-soft); border-bottom: 2px solid var(--ink-soft); transform: translateY(-70%) rotate(45deg); transition: transform 0.25s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details > div { padding: 0 0 1.4rem; color: var(--ink-soft); max-width: 44rem; }
.faq details > div p + p { margin-top: 0.7rem; }
.faq-more { margin-top: 2rem; }

/* contact band */
.cta-band { border-radius: var(--radius); background: linear-gradient(120deg, var(--night-3), var(--night-2)); border: 1px solid var(--line); padding: clamp(2rem, 5vw, 4rem); display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2rem; align-items: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; right: -10%; top: -40%; width: 50%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 217, 166, 0.22), transparent 65%); pointer-events: none; }
.cta-band h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.cta-band--single { grid-template-columns: 1fr; }
.cta-band--single h2 { font-size: 1.8rem; }
.cta-row { margin-top: 1.2rem; display: flex; gap: 0.6rem; flex-wrap: wrap; }
.cta-band p { color: var(--ink-soft); margin-top: 0.9rem; max-width: 34rem; font-size: 1.1rem; }
.cta-side { display: grid; gap: 0.9rem; justify-items: start; position: relative; }
.cta-side .contact-line { color: var(--ink-soft); }
.cta-side .contact-line a { color: var(--ink); text-decoration: none; font-weight: 500; }
.cta-side .contact-line a:hover { color: var(--accent-2); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 3.5rem 0 2.2rem; margin-top: 2rem; color: var(--ink-soft); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.foot-brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); font-weight: 500; font-size: 1.15rem; }
.foot-brand img { width: 30px; }
.foot p { margin-top: 0.9rem; max-width: 26rem; font-size: 0.98rem; }
.foot .foot-h { color: var(--ink); font-size: 0.95rem; font-weight: 500; margin-bottom: 0.7rem; letter-spacing: 0; }
.dealer-badge { background: #fff; border-radius: 8px; padding: 4px 10px; height: auto; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.foot a { text-decoration: none; color: var(--ink-soft); }
.foot a:hover { color: var(--ink); }
.foot-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--ink-mute); }

/* ---------- inner pages ---------- */
.page-head { padding: calc(var(--nav-h) + clamp(3rem, 7vw, 6rem)) 0 clamp(2rem, 4vw, 3.5rem); }
.page-head h1 { font-size: clamp(2.6rem, 5.5vw, 4.6rem); max-width: 18ch; }
.page-head p { margin-top: 1.1rem; color: var(--ink-soft); font-size: 1.15rem; max-width: 40rem; }
.page-head--img { position: relative; padding-top: 0; min-height: 70vh; display: flex; align-items: flex-end; overflow: hidden; }
.page-head--img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-head--img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 15, 26, 0.55), rgba(11, 15, 26, 0.25) 35%, rgba(11, 15, 26, 0.82) 70%, rgba(11, 15, 26, 0.98)); }
.page-head--img h1, .page-head--img p, .page-head--img .crumb { text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6); }
.page-head--img .crumb, .page-head--img .crumb a { color: var(--ink-soft); }
.page-head--img .wrap { position: relative; z-index: 1; padding-bottom: 3rem; }
.crumb { color: var(--ink-mute); font-size: 0.92rem; margin-bottom: 1rem; }
.crumb a { color: var(--ink-soft); text-decoration: none; }
.crumb a:hover { color: var(--ink); }

/* prose */
.prose { max-width: 44rem; color: var(--ink-soft); }
.prose h2 { color: var(--ink); font-size: 1.5rem; margin: 2.2rem 0 0.7rem; }
.prose p + p { margin-top: 1rem; }
.prose strong { color: var(--ink); font-weight: 500; }
.prose ul { padding-left: 1.2rem; }

/* gallery: justified rows */
.jgrid { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.jgrid::after { content: ""; flex-grow: 9999; flex-basis: 0; }
.jgrid a { flex-grow: var(--ar); flex-basis: calc(var(--ar) * 14rem); position: relative; border-radius: var(--radius-sm); overflow: hidden; background: var(--night-2); display: block; }
.jgrid a::before { content: ""; display: block; padding-bottom: calc(100% / var(--ar)); }
.jgrid img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.4s ease; }
.jgrid a:hover img { transform: scale(1.03); }
.jgrid a:focus-visible { outline-offset: -3px; }
.gallery-filter { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.gallery-filter button { border: 1px solid var(--line-2); background: transparent; color: var(--ink-soft); border-radius: 999px; padding: 0.45rem 0.95rem; cursor: pointer; }
.gallery-filter button.is-on { background: var(--ink); color: var(--night); border-color: var(--ink); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
.lightbox::backdrop { background: rgba(5, 7, 12, 0.92); }
.lightbox img { max-width: 96vw; max-height: 90vh; width: auto; height: auto; border-radius: var(--radius-sm); }
.lightbox .lb-close { position: fixed; top: 1rem; right: 1rem; border: 1px solid var(--line-2); background: rgba(11, 15, 26, 0.6); color: #fff; width: 44px; height: 44px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; }
.lightbox .lb-nav { position: fixed; top: 50%; transform: translateY(-50%); border: 1px solid var(--line-2); background: rgba(11, 15, 26, 0.6); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; }
.lightbox .lb-prev { left: 1rem; } .lightbox .lb-next { right: 1rem; }

/* support: tutorial viewer */
.tut { display: grid; grid-template-columns: 18rem 1fr; gap: 2rem; align-items: start; }
.tut-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.25rem; position: sticky; top: 6rem; }
.tut-list button { width: 100%; text-align: left; border: 1px solid transparent; background: transparent; color: var(--ink-soft); padding: 0.7rem 0.9rem; border-radius: var(--radius-sm); cursor: pointer; font-size: 1rem; }
.tut-list button:hover { color: var(--ink); background: var(--night-2); }
.tut-list button.is-on { background: var(--night-2); border-color: var(--line); color: var(--ink); }
.tut-view { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--night-2); }
.tut-view img { width: 100%; height: auto; }
.tut-view figcaption { padding: 0.9rem 1.2rem; color: var(--ink-soft); font-size: 0.95rem; display: flex; justify-content: space-between; gap: 1rem; }
.tut-view figcaption small { font-size: 0.9rem; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3rem; align-items: start; }
.contact-info h2 { font-size: 1.6rem; }
.contact-info p { color: var(--ink-soft); margin-top: 0.8rem; }
.contact-info .big-link { display: block; font-size: 1.4rem; color: var(--ink); text-decoration: none; margin-top: 1.4rem; font-weight: 500; }
.contact-info .big-link:hover { color: var(--accent-2); }
.contact-info .big-link small { display: block; font-size: 0.9rem; color: var(--ink-mute); font-weight: 400; }
.form { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.form .full { grid-column: 1 / -1; }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.92rem; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; background: var(--night-2); border: 1px solid var(--line-2); color: var(--ink); border-radius: var(--radius-sm); padding: 0.85rem 0.95rem; font: inherit; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-mute); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.field textarea { min-height: 9rem; resize: vertical; }
.field .help { font-size: 0.9rem; color: var(--ink-mute); }
.radios { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.radios label { display: inline-flex; gap: 0.45rem; align-items: center; color: var(--ink); }
.radios input { accent-color: var(--accent); width: 18px; height: 18px; }
.form .btn { justify-self: start; }
.form-note { grid-column: 1 / -1; font-size: 0.9rem; color: var(--ink-mute); }
.botcheck { display: none; }
.form-status { grid-column: 1 / -1; padding: 1rem; border-radius: var(--radius-sm); border: 1px solid var(--line); color: var(--ink); }
.form-status[hidden] { display: none; }
.form-status.is-error { border-color: #ff7b6b; color: #ffb3aa; }

/* look pages */
.look-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

/* reveals: only opacity/transform; fromTo() in JS supplies both ends */
.js .reveal { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; } }

/* progress bar */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 55; transform-origin: left; transform: scaleX(0); background: var(--accent); pointer-events: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .bento .c4, .bento .c5, .bento .c7, .bento .c8 { grid-column: span 6; }
  .film { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 899px) {
  :root { --nav-h: 64px; }
  .nav-links { display: none; }
  .nav-menu { display: inline-flex; align-items: center; gap: 0.5rem; border: 1px solid var(--line-2); background: rgba(14, 18, 30, 0.6); color: var(--ink); border-radius: 999px; padding: 0.55rem 1rem; cursor: pointer; backdrop-filter: blur(10px); }
  .nav--float .wrap { padding: 0.45rem 0.5rem 0.45rem 0.9rem; }
  .hero-stick { min-height: 620px; }
  .hero-stick::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 46%; background: linear-gradient(rgba(11, 15, 26, 0.82), transparent); z-index: 2; pointer-events: none; }
  .hero-copy { bottom: auto; top: calc(var(--nav-h) + 1rem); }
  .hero--live .hc { top: 0; bottom: auto; max-width: 100%; }
  .hc h1 { font-size: clamp(2.2rem, 10vw, 3.2rem); }
  .hc h2 { font-size: clamp(1.6rem, 7vw, 2.3rem); }
  .hc p { font-size: 1rem; margin-top: 0.7rem; }
  .hc .btns { margin-top: 1.1rem; }
  .hc .btn-lg { padding: 0.85rem 1.15rem; font-size: 1rem; }
  .hc .hc-hint { display: none; }
  .hero--live .hero-panel { display: none; right: var(--gutter); left: var(--gutter); width: auto; bottom: calc(1.2rem + env(safe-area-inset-bottom)); max-height: 42vh; overflow: auto; padding: 0.6rem 0.9rem 0.8rem; }
  .hero--live.hero--panel .hero-panel { display: block; }
  .hero--panel .hero-panel-toggle, .hero--panel .hero-dots { visibility: hidden; }
  .hero--panel .hero-copy { opacity: 0; pointer-events: none; }
  .hp-close { display: grid; }
  .hp-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .hp-chips::-webkit-scrollbar { display: none; }
  .hp-row { padding: 0.4rem 0; }
  .hero--live .hero-panel-toggle { display: inline-flex; position: absolute; right: var(--gutter); bottom: calc(3.4rem + env(safe-area-inset-bottom)); z-index: 6; }
  .systems { grid-template-columns: 1fr; }
  .sys--tall img { aspect-ratio: 4 / 3; }
  .bento .cell { grid-column: span 12; min-height: 13rem; }
  .cell--app { min-height: 22rem; }
  .cta-band { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .form { grid-template-columns: 1fr; }
  .tut { grid-template-columns: 1fr; }
  .tut-list { position: static; display: flex; overflow-x: auto; gap: 0.4rem; padding-bottom: 0.5rem; }
  .tut-list li { flex: none; }
  .look-hero-grid { grid-template-columns: 1fr; }
  .related { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .page-head--img { min-height: 60vh; }
}
@media (max-width: 560px) {
  .jgrid a { flex-basis: calc(var(--ar) * 6.4rem); }
  .looks { grid-auto-columns: 82vw; }
}
