/* Ideal Bathrooms preview. Calm showroom: cool stone neutrals, the brand teal and slate from
   the logo, one sans (Manrope), one radius rule: controls 6px, images and panels 10px. */

@font-face {
  font-family: 'Manrope';
  src: url('/fonts/manrope.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --bg: #F1F2F0;
  --bg-2: #E6E9E7;
  --surface: #FAFBFA;
  --ink: #172126;
  --ink-2: #44505A;
  --muted: #5E6A72;
  --line: rgba(23, 33, 38, 0.12);
  --line-strong: rgba(23, 33, 38, 0.2);
  --accent: #00737C;
  --accent-ink: #FFFFFF;
  --accent-soft: rgba(0, 115, 124, 0.1);
  --grout: #D9DDDA;
  --glass: rgba(250, 251, 250, 0.78);
  --shadow: rgba(23, 45, 52, 0.18);
  --scrim: rgba(12, 20, 24, 0.55);

  --f-sans: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  --r-ctl: 6px;
  --r-box: 10px;
  --gutter: 20px;
  --maxw: 1320px;
  --nav-h: 68px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --z-badge: 30;
  --z-menu: 35;
  --z-nav: 40;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101719;
    --bg-2: #162024;
    --surface: #1A2428;
    --ink: #E7ECEC;
    --ink-2: #B9C3C7;
    --muted: #93A0A6;
    --line: rgba(231, 236, 236, 0.12);
    --line-strong: rgba(231, 236, 236, 0.22);
    --accent: #45B7C0;
    --accent-ink: #0B1416;
    --accent-soft: rgba(69, 183, 192, 0.14);
    --grout: #243034;
    --glass: rgba(22, 32, 36, 0.8);
    --shadow: rgba(0, 0, 0, 0.45);
    color-scheme: dark;
  }
}
@media (min-width: 768px) { :root { --gutter: 32px; } }
@media (min-width: 1280px) { :root { --gutter: 48px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; text-wrap: balance; }
p { margin: 0; }
svg { width: 1em; height: 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--ink); color: var(--bg); border-radius: var(--r-ctl); }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.display { font-size: clamp(2.4rem, 5.2vw, 4.6rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1.02; }
.h2 { font-size: clamp(2rem, 3.8vw, 3.3rem); letter-spacing: -0.04em; }
.h3 { font-size: clamp(1.3rem, 1.8vw, 1.6rem); }
.lede { font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 22px;
  border: 1px solid transparent; border-radius: var(--r-ctl);
  font-size: 15.5px; font-weight: 600; letter-spacing: -0.005em; white-space: nowrap;
  text-decoration: none; cursor: pointer;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: color-mix(in srgb, var(--accent) 86%, var(--ink)); }
.btn--ghost { border-color: var(--line-strong); background: transparent; color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--sm { min-height: 42px; padding: 0 16px; font-size: 14.5px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.link { color: var(--accent); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.link svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.link:hover svg { transform: translateX(3px); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: var(--z-nav);
  height: var(--nav-h);
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease);
}
.nav.is-scrolled { background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav__in { height: 100%; display: flex; align-items: center; gap: 28px; }
.nav__brand { display: block; flex: none; }
.nav__brand img { height: 38px; width: auto; }
.nav__links { display: none; gap: 26px; margin-left: auto; font-size: 15px; font-weight: 500; }
.nav__links a { text-decoration: none; color: var(--ink-2); transition: color .2s; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--ink); }
.nav__cta { display: none; }
.menu-btn {
  margin-left: auto; width: 46px; height: 46px; display: grid; place-content: center; gap: 6px;
  border: 1px solid var(--line-strong); border-radius: var(--r-ctl); background: transparent; cursor: pointer;
}
.menu-btn__line { width: 18px; height: 1.5px; background: var(--ink); transition: transform .35s var(--ease); }
.menu-open .menu-btn__line:first-of-type { transform: translateY(3.75px) rotate(45deg); }
.menu-open .menu-btn__line:last-of-type { transform: translateY(-3.75px) rotate(-45deg); }
@media (min-width: 980px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .menu-btn { display: none; }
}

.menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  background: var(--bg);
  padding: calc(var(--nav-h) + 24px) var(--gutter) 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; transition: opacity .35s var(--ease);
}
.menu-open .menu { opacity: 1; }
.menu__links { display: grid; gap: 4px; }
.menu__links a { font-size: 2.1rem; font-weight: 600; letter-spacing: -0.04em; text-decoration: none; padding: 6px 0; border-bottom: 1px solid var(--line); }
.menu__foot { display: grid; gap: 14px; }
.menu__foot .btn { width: 100%; }
.menu-open body { overflow: hidden; }

/* ---------- reveal states (only when JS + GSAP run) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); }
.js .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.js .line__in { display: block; transform: translateY(105%); }
.js [data-hero-fade] { opacity: 0; transform: translateY(14px); }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js [data-hero-fade] { opacity: 1; transform: none; }
  .js .line__in { transform: none; }
}

/* ---------- hero ---------- */
.hero { padding-top: calc(var(--nav-h) + 28px); padding-bottom: 56px; }
.hero__grid { display: grid; gap: 32px; }
.hero__copy { display: grid; gap: 22px; align-content: center; }
.hero__sub { font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: var(--ink-2); max-width: 40ch; }
.hero__media { position: relative; border-radius: var(--r-box); overflow: hidden; aspect-ratio: 4 / 3.4; background: var(--bg-2); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; }
@media (min-width: 900px) {
  .hero { min-height: 100dvh; display: flex; align-items: center; padding-bottom: 40px; }
  .hero__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 48px; align-items: center; }
  .hero .display { font-size: clamp(2.4rem, 4.2vw, 4.4rem); }
  .hero__media { aspect-ratio: auto; height: min(76dvh, 720px); }
}

/* ---------- intro ---------- */
.intro { padding-block: clamp(72px, 10vw, 140px); }
.intro__lead { font-size: clamp(1.6rem, 3vw, 2.6rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1.2; max-width: 30ch; }
.intro__lead em { font-style: normal; color: var(--accent); }
.facts { list-style: none; margin: 56px 0 0; padding: 0; display: grid; gap: 28px; }
.facts li { padding-top: 18px; border-top: 1px solid var(--line-strong); display: grid; gap: 6px; }
.facts__num { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
.facts__label { color: var(--ink-2); max-width: 28ch; }
@media (min-width: 768px) { .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; } }

/* ---------- signature: a room laid tile by tile ---------- */
.build { position: relative; background: var(--bg-2); }
.build__pin { min-height: 100dvh; display: flex; align-items: center; padding-block: calc(var(--nav-h) + 16px) 32px; }
.build__grid { display: grid; gap: 22px; align-items: center; }
.build__title { font-size: clamp(1.7rem, 3.4vw, 3rem); letter-spacing: -0.04em; max-width: 14ch; }
.build__index { display: flex; gap: 18px; list-style: none; margin: 18px 0 0; padding: 0; font-size: 14px; font-weight: 600; }
.build__index li { color: var(--muted); padding-top: 8px; border-top: 2px solid var(--line); transition: color .3s, border-color .3s; }
.build__index li.is-active { color: var(--ink); border-color: var(--accent); }
.build__steps { display: grid; margin: 18px 0 0; padding: 0; list-style: none; }
.build__step { display: grid; margin-bottom: 18px; gap: 8px; transition: opacity .45s var(--ease), transform .45s var(--ease); }
.js .build__step { grid-area: 1 / 1; margin-bottom: 0; opacity: 0; transform: translateY(10px); pointer-events: none; }
.js .build__step.is-active { opacity: 1; transform: none; pointer-events: auto; }
.build__step h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
.build__step p { color: var(--ink-2); max-width: 38ch; }
.build__note { margin-top: 18px; font-size: 15px; color: var(--muted); }

.board {
  position: relative; width: 100%; aspect-ratio: 3 / 2; border-radius: var(--r-box); overflow: hidden;
  perspective: 1400px;
  background-color: var(--grout);
  /* bare screed with the tiling grid marked out: 6 by 4 */
  background-image:
    linear-gradient(to right, var(--line-strong) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-strong) 1px, transparent 1px);
  background-size: calc(100% / 6) calc(100% / 4);
}
.board__fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.board.is-built .board__fallback { display: none; }
.board__layer { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(4, 1fr); }
.tile {
  background-image: var(--img);
  background-size: 600% 400%;
  background-repeat: no-repeat;
  transform-origin: 50% 50%;
  backface-visibility: hidden;
}
@media (min-width: 900px) {
  .build__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; }
  .build__title { max-width: 12ch; }
}
@media (max-width: 899px) {
  .build__pin { align-items: flex-start; }
  .build__copy { order: 1; }
  .board { order: 2; }
}

.build--static .build__step { grid-area: auto; margin-bottom: 18px; opacity: 1; transform: none; }
.build--static .build__index { display: none; }

/* ---------- collections (bento) ---------- */
.sec { padding-block: clamp(80px, 10vw, 140px); }
.sec__head { display: grid; gap: 14px; margin-bottom: 40px; max-width: 46rem; }
.bento { display: grid; gap: 14px; }
.cell {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 340px; border-radius: var(--r-box); overflow: hidden; text-decoration: none;
  color: #F4F6F5; isolation: isolate;
}
.cell img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.cell::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(10, 18, 21, 0.78) 0%, rgba(10, 18, 21, 0.25) 55%, rgba(10, 18, 21, 0) 80%); }
.cell:hover img { transform: scale(1.04); }
.cell__body { padding: 24px; display: grid; gap: 8px; }
.cell__title { font-size: clamp(1.5rem, 2.4vw, 2.1rem); color: #FFFFFF; }
.cell__list { font-size: 14.5px; color: rgba(244, 246, 245, 0.86); max-width: 44ch; }
@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: 330px 330px 300px; }
  .cell--bath { grid-column: 1 / 8; grid-row: 1 / 3; }
  .cell--floor { grid-column: 8 / 13; grid-row: 1 / 2; }
  .cell--walls { grid-column: 8 / 13; grid-row: 2 / 3; }
  .cell--well { grid-column: 1 / 13; grid-row: 3 / 4; }
  .cell { min-height: 0; }
}

/* ---------- details: horizontal row ---------- */
.details { padding-block: 0 clamp(80px, 10vw, 140px); }
.details__head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; }
.details__arrows { display: none; gap: 8px; }
.round {
  width: 48px; height: 48px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: var(--r-ctl); background: transparent; cursor: pointer;
}
.round:disabled { opacity: .35; cursor: default; }
.round svg { width: 18px; height: 18px; }
@media (min-width: 768px) { .details__arrows { display: flex; } }
.row {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 340px); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
}
@media (min-width: 1320px) { .row { padding-inline: calc((100vw - var(--maxw)) / 2 + var(--gutter)); scroll-padding-inline: calc((100vw - var(--maxw)) / 2 + var(--gutter)); } }
.row::-webkit-scrollbar { display: none; }
.piece { scroll-snap-align: start; margin: 0; }
.piece__img { aspect-ratio: 4 / 5; border-radius: var(--r-box); overflow: hidden; background: var(--bg-2); }
.piece__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.piece:hover .piece__img img { transform: scale(1.04); }
.piece figcaption { padding-top: 12px; display: grid; gap: 2px; }
.piece figcaption strong { font-weight: 600; letter-spacing: -0.01em; }
.piece figcaption span { font-size: 14.5px; color: var(--muted); }

/* ---------- quote over photo ---------- */
.quote { position: relative; isolation: isolate; overflow: hidden; color: #F4F6F5; }
.quote__bg { position: absolute; inset: -10% 0; z-index: -2; }
.quote__bg img { width: 100%; height: 100%; object-fit: cover; }
.quote::after { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(10, 18, 21, 0.58); }
.quote__in { padding-block: clamp(110px, 16vw, 200px); display: grid; gap: 22px; justify-items: start; }
.quote blockquote { margin: 0; font-size: clamp(1.7rem, 3.6vw, 3.1rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1.15; max-width: 24ch; }
.quote cite { font-style: normal; font-size: 15px; color: rgba(244, 246, 245, 0.82); }

/* ---------- visit panel ---------- */
.visit { padding-block: clamp(80px, 10vw, 140px); }
.visit__grid { display: grid; gap: 40px; }
.visit__info { display: grid; gap: 30px; }
.hours { list-style: none; margin: 0; padding: 0; display: grid; }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hours li:first-child { border-top: 1px solid var(--line); }
.hours li.is-today { color: var(--accent); font-weight: 600; }
.hours span:last-child { font-variant-numeric: tabular-nums; }
.addr { display: grid; gap: 4px; font-size: 18px; }
.visit__photo { border-radius: var(--r-box); overflow: hidden; min-height: 320px; }
.visit__photo img { width: 100%; height: 100%; object-fit: cover; }
.open-now { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.open-now i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.open-now.is-open i { background: #2E9B5B; }
@media (min-width: 900px) {
  .visit__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 64px; align-items: stretch; }
}

/* ---------- inner page heads ---------- */
.page-head { padding-top: calc(var(--nav-h) + clamp(48px, 8vw, 110px)); padding-bottom: clamp(40px, 6vw, 72px); }
.page-head__in { display: grid; gap: 22px; max-width: 52rem; }

/* ---------- about ---------- */
.story { display: grid; gap: 40px; padding-bottom: clamp(80px, 10vw, 140px); }
.story__img { border-radius: var(--r-box); overflow: hidden; aspect-ratio: 16 / 9; }
.story__img img { width: 100%; height: 100%; object-fit: cover; }
.story__text { display: grid; gap: 20px; font-size: 18px; color: var(--ink-2); max-width: 62ch; }
.story__text strong { color: var(--ink); font-weight: 600; }
@media (min-width: 900px) {
  .story { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
  .story__img { aspect-ratio: 4 / 5; position: sticky; top: calc(var(--nav-h) + 24px); }
}
.range { display: grid; gap: 14px; }
.range__group { padding: 28px; border-radius: var(--r-box); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 14px; align-content: start; }
.range__group h3 { font-size: 1.35rem; }
.range__group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.range__group li { padding: 6px 12px; border-radius: var(--r-ctl); background: var(--accent-soft); color: var(--ink); font-size: 14.5px; font-weight: 500; }
.range__group--img { padding: 0; overflow: hidden; border: 0; min-height: 260px; }
.range__group--img img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
  .range { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .range__group--wide { grid-column: span 2; }
}
.pair { display: grid; gap: 14px; margin-top: 14px; }
.pair img { border-radius: var(--r-box); width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }
@media (min-width: 768px) { .pair { grid-template-columns: 7fr 5fr; } }

/* ---------- contact ---------- */
.contact { display: grid; gap: 14px; padding-bottom: clamp(80px, 10vw, 140px); }
.c-card { padding: 28px; border-radius: var(--r-box); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 14px; align-content: start; }
.c-card h2 { font-size: 1.4rem; }
.c-card__big { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 600; letter-spacing: -0.03em; text-decoration: none; word-break: break-word; }
.c-card__big:hover { color: var(--accent); }
.c-card .icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-ctl); background: var(--accent-soft); color: var(--accent); }
.c-card .icon svg { width: 22px; height: 22px; }
.c-photo { border-radius: var(--r-box); overflow: hidden; min-height: 280px; }
.c-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
  .contact { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .c-card--call { grid-column: 1 / 5; }
  .c-card--mail { grid-column: 5 / 9; }
  .c-card--social { grid-column: 9 / 13; }
  .c-card--hours { grid-column: 1 / 7; }
  .c-card--find { grid-column: 7 / 13; }
  .c-photo { grid-column: 1 / 13; min-height: 420px; }
}
.socials { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- visit planner (demo form) ---------- */
.planner { display: grid; gap: 40px; padding-bottom: clamp(80px, 10vw, 140px); }
.planner__aside { display: grid; gap: 20px; align-content: start; }
.planner__aside img { border-radius: var(--r-box); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
@media (min-width: 980px) {
  .planner { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: start; }
  .planner__aside { position: sticky; top: calc(var(--nav-h) + 24px); }
}
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-box); padding: clamp(22px, 3vw, 40px); }
.progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; list-style: none; margin: 0 0 28px; padding: 0; font-size: 13.5px; font-weight: 600; }
.progress li { padding-top: 10px; border-top: 2px solid var(--line); color: var(--muted); }
.progress li.is-done, .progress li.is-active { border-color: var(--accent); color: var(--ink); }
.fstep { border: 0; margin: 0; padding: 0; display: grid; gap: 22px; min-width: 0; }
.fstep legend { font-size: clamp(1.4rem, 2.2vw, 1.8rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; padding: 0; margin-bottom: 4px; }
.choices { display: grid; gap: 10px; }
@media (min-width: 600px) { .choices--2 { grid-template-columns: 1fr 1fr; } }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  display: grid; gap: 2px; padding: 16px 18px; border: 1px solid var(--line-strong); border-radius: var(--r-ctl);
  transition: border-color .2s, background-color .2s;
}
.choice span strong { font-weight: 600; }
.choice span em { font-style: normal; font-size: 14.5px; color: var(--muted); }
.choice input:checked + span { border-color: var(--accent); background: var(--accent-soft); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-ctl); font-size: 15px; font-weight: 500; transition: border-color .2s, background-color .2s; cursor: pointer; }
.chip input:checked + span { border-color: var(--accent); background: var(--accent-soft); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.chip svg { width: 14px; height: 14px; display: none; }
.chip input:checked + span svg { display: block; color: var(--accent); }
.chip-group { display: grid; gap: 10px; }
.chip-group h3 { font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--ink-2); }
.field { display: grid; gap: 8px; }
.field label { font-size: 15px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-ctl);
  background: var(--bg); color: var(--ink); font-size: 16px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.field__help { font-size: 14px; color: var(--muted); }
.field__err { font-size: 14px; color: #B3261E; font-weight: 600; }
@media (prefers-color-scheme: dark) { .field__err { color: #FF8A80; } }
.fields-2 { display: grid; gap: 18px; }
@media (min-width: 600px) { .fields-2 { grid-template-columns: 1fr 1fr; } }
.form__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.slots { display: flex; flex-wrap: wrap; gap: 8px; }
.summary { display: grid; gap: 0; margin: 0; }
.summary div { display: grid; grid-template-columns: 9rem 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.summary dt { color: var(--muted); font-size: 15px; }
.summary dd { margin: 0; font-weight: 500; }
.done { display: grid; gap: 18px; justify-items: start; }
.done__icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: var(--r-ctl); background: var(--accent-soft); color: var(--accent); }
.done__icon svg { width: 26px; height: 26px; }
.notice { padding: 14px 16px; border-radius: var(--r-ctl); background: var(--accent-soft); font-size: 15px; color: var(--ink); }

/* ---------- 404 ---------- */
.lost { min-height: 100dvh; display: grid; align-content: center; gap: 22px; padding-top: var(--nav-h); }
.lost__code { font-size: clamp(5rem, 16vw, 11rem); font-weight: 600; letter-spacing: -0.06em; line-height: 0.9; color: var(--accent); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding-block: 56px 96px; font-size: 15px; color: var(--ink-2); }
.foot__grid { display: grid; gap: 32px; }
.foot__brand img { height: 44px; width: auto; }
.foot h2 { font-size: 13px; letter-spacing: 0.02em; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--accent); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot__legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
@media (min-width: 768px) { .foot__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* ---------- logo swap for dark mode ---------- */
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  .logo-light-ui { display: none; }
  .logo-dark { display: block; }
}

/* ---------- preview badge ---------- */
.badge {
  position: fixed; left: 16px; bottom: 16px; z-index: var(--z-badge);
  display: flex; align-items: center; gap: 6px;
  padding: 5px 5px 5px 16px; border-radius: 999px;
  background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 14px 30px -14px var(--shadow);
  color: var(--ink-2); font-size: 12.5px;
}
.badge a { text-decoration: none; }
.badge strong { color: var(--ink); font-weight: 600; }
.badge__close { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 999px; background: var(--line); cursor: pointer; }
.badge__close svg { width: 14px; height: 14px; }
.badge.is-hidden { display: none; }
