/* Bundi Concepts — public catalogue.
   Direction: the specimen catalogue. Every item stands alone on a flat colour tile, named by its code.
   Brand (Bundi Concepts brand kit): the "bc" owl, charcoal #414143 + yellow #f4be25 + cream #ffeabb, Lato,
   rounded cards and pill buttons from the social templates, the key border from the email signature. */

:root {
  --bg: #fafafa;
  --surface: #f0f0ef;
  --surface-2: #e4e4e2;
  --ink: #414143;
  --ink-deep: #2e2e30;
  --muted: #5f5f62;
  --yellow: #f4be25;
  --cream: #ffeabb;
  --accent: var(--ink);
  --accent-strong: var(--ink-deep);
  --accent-ink: #ffffff;
  --field-1: var(--cream);
  --field-2: #ececea;
  --field-3: #ffffff;
  --radius: 18px;
  --radius-sm: 12px;

  --font: "Lato", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: var(--font);

  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.125rem, 1.06rem + 0.25vw, 1.25rem);
  --step-lead: clamp(1.3125rem, 1.15rem + 0.7vw, 1.6875rem);
  --step-head: clamp(1.875rem, 1.2rem + 3vw, 3.75rem);
  --step-display: clamp(2.6rem, 0.4rem + 5vw, 5.75rem);

  --margin: clamp(1.25rem, 2.2vw, 2rem);
  --gutter: clamp(1rem, 2vw, 2rem);
  --section: clamp(6rem, 12vw, 12rem);
  --gap: 12px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--step-body); line-height: 1.45; -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }
ul.plain, ol.plain { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
h1, h2, h3, .button, .code, .product-code, .disc-name, .disc-title, .how-name, .cell { font-family: var(--font-display); }
h1, h2, h3 { font-weight: 900; letter-spacing: -0.02em; text-wrap: balance; }
p { max-width: 62ch; text-wrap: pretty; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px var(--yellow); }
[hidden] { display: none !important; }

.wrap { padding-inline: var(--margin); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--margin); top: -4rem; background: var(--ink); color: var(--bg); padding: .6rem 1rem; z-index: 10; }
.skip:focus { top: .5rem; }
.head { font-size: var(--step-head); line-height: 1.0; letter-spacing: -0.03em; }
.lead { font-size: var(--step-lead); line-height: 1.3; max-width: 38ch; }
.small { font-size: var(--step-small); line-height: 1.45; color: var(--muted); }
.only-wide { display: none; }
@media (min-width: 60em) { .only-wide { display: inline; } }

/* ---------- controls ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3.25rem; padding: 0 1.75rem; border-radius: 999px; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 700; font-size: .9375rem; letter-spacing: .01em; white-space: nowrap; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.button:active { transform: scale(0.97); }
.button-small { min-height: 2.6rem; padding: 0 1rem; font-size: var(--step-small); }
.button-big { min-height: 4rem; padding: 0 2.25rem; font-size: var(--step-lead); }
.button .count { display: inline-grid; place-items: center; min-width: 1.5rem; height: 1.5rem; padding: 0 .35rem; border-radius: 999px; background: var(--yellow); color: var(--ink); font-variant-numeric: tabular-nums; }
.link { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.2em; text-decoration-thickness: 0.12em; transition: text-decoration-color var(--t-hover) ease; }
.link-plain { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 0.07em; }
.text-button { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: .18em; text-underline-offset: .22em; transition: text-decoration-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.text-button:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--accent-strong); }
  .link:hover { text-decoration-color: var(--yellow); }
  .text-button:hover { text-decoration-color: currentColor; }
  .link-plain:hover { text-decoration-color: var(--yellow); }
}
.field { width: 100%; min-height: 3.25rem; padding: .75rem .9rem; background: var(--field-3); border: 0; border-radius: var(--radius-sm); font-size: max(1rem, var(--step-body)); transition: background-color var(--t-hover) ease, box-shadow var(--t-hover) ease; }
.field:focus { outline: none; box-shadow: inset 0 0 0 2px var(--ink), 0 0 0 3px var(--yellow); }
textarea.field { resize: vertical; min-height: 7rem; }
.fld { display: grid; gap: .4rem; font-size: 1rem; font-weight: 500; }
.fld .field { font-weight: 400; }
.err { color: #a3141f; font-weight: 500; }
.field[aria-invalid="true"] { box-shadow: inset 0 0 0 2px #a3141f; }
.hp { position: absolute; left: -9999px; }

/* ---------- top bar ---------- */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.wordmark { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); }
/* logo: the kit's lockup, owl beside "bundi ---- CONCEPTS" (as on the Concepts invoice) */
.logo { display: inline-flex; align-items: center; gap: .65rem; }
.mark { width: 64px; height: auto; flex: none; }
.o-h { fill: var(--ink); }
.o-d { fill: var(--yellow); }
.wm { display: block; width: 122px; height: auto; flex: none; }
.w-b { fill: var(--yellow); }
.w-c { fill: var(--ink); }
.logo-text { font-weight: 900; font-size: 1.25rem; letter-spacing: -0.01em; }
.key { height: 24px; background: url(/assets/brand/key-charcoal.svg) left top / auto 100% repeat-x; }
.bar-nav { display: flex; align-items: center; gap: clamp(.75rem, 2vw, 1.75rem); }
.bar-search input { width: clamp(8.5rem, 16vw, 15rem); min-height: 2.6rem; padding: .4rem 1rem; border: 0; border-radius: 999px; background: var(--surface); font-size: 1.0625rem; transition: background-color var(--t-hover) ease; }
.bar-search input:focus { outline: none; background: var(--field-3); box-shadow: inset 0 0 0 2px var(--ink); }
.flash { background: var(--cream); padding-block: .9rem; font-weight: 700; max-width: none; }

/* ---------- hero: statement beside specimen mosaic ---------- */
.hero { display: grid; grid-template-columns: 7fr 5fr; min-height: calc(100svh - 4.5rem); }
.hero-text { display: flex; flex-direction: column; justify-content: space-between; gap: 3rem; padding-block: clamp(2rem, 6vh, 4.5rem) clamp(2rem, 7vh, 5rem); }
.hero-title { font-size: var(--step-display); line-height: 0.98; letter-spacing: -0.03em; }
.hero-title span { display: inline-block; }
.hero-foot { display: grid; gap: 1.75rem; }
.hero-foot .lead { max-width: 30ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; }
.hero-field { position: relative; isolation: isolate; background: var(--ink); overflow: hidden; display: flex; align-items: center; border-bottom-left-radius: calc(var(--radius) * 2); }
.hero-field::before { content: ""; position: absolute; z-index: -1; left: -14%; bottom: -16%; width: 62%; aspect-ratio: 1.25; background: var(--yellow); border-radius: 46% 54% 42% 58% / 55% 45% 55% 45%; }
.hero-field::after { content: ""; position: absolute; right: 5%; bottom: 5%; width: 64px; height: 56px; background: url(/assets/brand/sparkles.svg) center / contain no-repeat; }
.hero-field .m { background: var(--field-3); border-radius: var(--radius); }
.mosaic { display: grid; grid-template-columns: repeat(4, 11.5vw); grid-auto-rows: calc(11.5vw * 4 / 3); gap: 14px; padding-left: 14px; flex: none; }
.m { display: grid; place-items: center; overflow: hidden; border-radius: var(--radius); }
.m img { width: 84%; height: 84%; }
.m1 { grid-column: 2 / 4; grid-row: 1 / 3; }
.m2 { grid-column: 1; grid-row: 2; }
.m3 { grid-column: 4; grid-row: 1; }
.m4 { grid-column: 1; grid-row: 3; }
.m5 { grid-column: 3; grid-row: 3; }
.m6 { grid-column: 4; grid-row: 3; }
.m7 { grid-column: 2; grid-row: 3; }
@media (max-height: 820px) and (min-width: 56em) { .mosaic { grid-template-columns: repeat(4, 10vw); grid-auto-rows: calc(10vw * 4 / 3); } }

.cut img { object-fit: contain; mix-blend-mode: multiply; }
.mount img { object-fit: cover; mix-blend-mode: normal; }
.f1 { background: var(--field-1); }
.f2 { background: var(--field-2); }
.f3 { background: var(--field-3); }

/* ---------- showcase: object on a disc ---------- */
.disc-section { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; min-height: 92svh; padding-block: var(--section) calc(var(--section) / 2); }
.disc-names { grid-column: 1 / 6; grid-row: 1; align-self: end; }
.disc-title { font-size: clamp(1.5rem, 2.5vw, 2.375rem); line-height: 1.2; color: var(--muted); font-weight: 500; letter-spacing: -0.02em; }
.disc-name { display: block; font-size: clamp(1.5rem, 2.5vw, 2.375rem); line-height: 1.2; font-weight: 500; letter-spacing: -0.02em; color: var(--muted); text-decoration: none; transition: color var(--t-hover) ease; }
.disc-name.is-on { color: var(--ink); font-weight: 900; text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: .14em; text-underline-offset: .16em; }
@media (hover: hover) and (pointer: fine) { .disc-name:hover { color: var(--ink); } }
.disc-stage { grid-column: 5 / 13; grid-row: 1; position: relative; display: grid; }
.disc-panel { grid-area: 1 / 1; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: var(--gutter); }
.disc { width: min(64vh, 40vw); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; justify-self: center; overflow: hidden; }
.disc img { width: 64%; height: 64%; }
.disc.mount img { border-radius: 50%; width: 76%; height: 76%; }
.disc-fact { display: grid; gap: .5rem; max-width: 16rem; font-size: var(--step-body); padding-bottom: 1rem; }
.disc-n { font: 900 var(--step-lead)/1.1 var(--font-display); }
.js .disc-panel { transition: opacity 300ms ease; }
.js .disc-panel.is-leaving { opacity: 0; }

/* ---------- index: two-column menu with photo bullets ---------- */
.section { padding-block: calc(var(--section) / 2); }
.section-tight { padding-block: 2rem calc(var(--section) / 2); }
.index-group { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding-block: 3.5rem; }
.index-group:nth-child(even) { background: var(--surface); margin-inline: calc(var(--margin) * -1); padding-inline: var(--margin); }
.index-head { grid-column: 1 / 5; align-self: start; position: sticky; top: 1.5rem; display: grid; gap: .5rem; }
.index-title { font-size: clamp(2rem, 3.4vw, 3.125rem); line-height: 1; letter-spacing: -0.03em; }
.index-count { font-size: var(--step-body); color: var(--ink); font-variant-numeric: tabular-nums; }
.index-list { grid-column: 5 / 13; display: grid; grid-template-columns: 1fr 1fr; column-gap: 3rem; row-gap: 1.75rem; }
.index-item { display: grid; grid-template-columns: 96px 1fr; gap: 1.25rem; align-items: center; text-decoration: none; }
.bullet { width: 96px; height: 96px; display: grid; place-items: center; overflow: hidden; border-radius: var(--radius-sm); }
.bullet img { width: 84%; height: 84%; transition: transform 400ms var(--ease-soft); }
.index-text { display: grid; gap: .2rem; }
.index-name { font-weight: 700; font-size: var(--step-lead); line-height: 1.15; letter-spacing: 0; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: .12em; text-underline-offset: .2em; transition: text-decoration-color var(--t-hover) ease; }
.index-fact { font-size: var(--step-small); color: var(--muted); }
@media (hover: hover) and (pointer: fine) {
  .index-item:hover .index-name { text-decoration-color: var(--yellow); }
  .index-item:hover .bullet img { transform: scale(1.08); }
}

/* ---------- how quoting works: tiles that grow ---------- */
.how { position: relative; padding-block: calc(var(--section) / 2); }
.how-title { position: absolute; top: calc(var(--section) / 2); left: var(--margin); width: calc((100% - 2 * var(--margin)) * 7 / 12 - var(--gap)); }
.how-tiles { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 10px; align-items: end; }
.how-stage { display: grid; gap: .6rem; align-content: end; }
.how-stage.s1 { grid-column: 1 / 4; }
.how-stage.s2 { grid-column: 4 / 8; }
.how-stage.s3 { grid-column: 8 / 13; }
.how-tile { display: grid; place-items: center; overflow: hidden; margin-bottom: .6rem; border-radius: var(--radius); }
.s1 .how-tile { height: 30vh; }
.s2 .how-tile { height: 44vh; }
.s3 .how-tile { height: 60vh; }
.how-tile img { height: 78%; width: 78%; }
.how-name { font-size: var(--step-lead); font-weight: 700; letter-spacing: -0.015em; }
.how-text { font-size: var(--step-body); max-width: 34ch; }

/* ---------- find by code: photo strip, three-cell bar ---------- */
.find { background: var(--yellow); color: var(--ink); padding-block: 3rem 5rem; overflow: hidden; }
.strip { overflow: hidden; margin-bottom: 4.5rem; }
.strip-run { display: flex; gap: 8px; width: max-content; }
.strip-img { height: 150px; width: auto; object-fit: cover; background: var(--field-3); border-radius: var(--radius-sm); }
.strip-img.r0 { aspect-ratio: 3 / 4; }
.strip-img.r1 { aspect-ratio: 1; }
.strip-img.r2 { aspect-ratio: 3 / 2; }
.find-title { font-size: clamp(2.25rem, 4vw, 3.75rem); margin-bottom: 2.5rem; }
.find-bar { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.cell { min-height: 6rem; border: 0; border-radius: var(--radius); background: var(--field-3); color: var(--ink); text-align: center; font-size: 1.0625rem; font-weight: 600; padding: 0 1rem; transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.cell::placeholder { color: var(--muted); font-weight: 500; }
.cell:focus { outline: none; box-shadow: inset 0 0 0 3px var(--ink); }
select.cell { appearance: none; cursor: pointer; }
select.cell option, select.cell optgroup { color: var(--ink); background: #fff; }
.cell-go { background: var(--ink); color: #fff; font-weight: 900; }
.cell-go:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .cell-go:hover { background: var(--ink-deep); } }
.find-note { color: var(--ink); margin-top: 1rem; }
.find-bar-page { grid-template-columns: 2fr 1fr; max-width: 56rem; margin-top: 2rem; }
.find-bar-page .cell { min-height: 4rem; background: var(--surface); color: var(--ink); text-align: left; }
.find-bar-page .cell::placeholder { color: var(--muted); }
.find-bar-page .cell:focus { background: var(--field-3); box-shadow: inset 0 0 0 2px var(--ink); }
.find-bar-page .cell-go { background: var(--accent); color: var(--accent-ink); text-align: center; }
@media (prefers-reduced-motion: no-preference) {
  .strip-run { animation: drift 80s linear infinite; }
  .strip:hover .strip-run { animation-play-state: paused; }
}
@keyframes drift { to { transform: translateX(-50%); } }

/* ---------- page heads, chips ---------- */
.page-head { padding-block: clamp(2.5rem, 7vh, 5rem) 2.5rem; display: grid; gap: 1.25rem; }
.page-title-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.chip { display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0 1rem; border-radius: 999px; background: var(--surface); text-decoration: none; font-size: 1rem; transition: background-color var(--t-hover) ease; }
.chip.is-on { background: var(--ink); color: var(--yellow); font-weight: 700; }
@media (hover: hover) and (pointer: fine) { .chip:not(.is-on):hover { background: var(--surface-2); } }

/* ---------- specimen tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); grid-auto-flow: dense; column-gap: var(--gap); row-gap: 2.25rem; }
.tile { display: grid; grid-template-rows: auto 1fr; gap: .8rem; }
.tile-big { grid-column: span 2; grid-row: span 2; }
.tile-img { display: grid; place-items: center; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); }
.tile-big .tile-img { aspect-ratio: 4 / 5; }
.tile-img img { width: 84%; height: 84%; transition: transform 500ms var(--ease-soft); }
.tile-img.mount img { width: 82%; height: 82%; }
.tile-meta { display: grid; gap: .2rem; align-content: start; }
.code { font-size: 1rem; font-weight: 900; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.tile-name { font-size: var(--step-body); font-weight: 500; line-height: 1.3; letter-spacing: 0; }
.tile-big .tile-name { font-size: var(--step-lead); }
.tile-add { margin-top: .3rem; }
.tile-add .text-button { font-size: var(--step-small); }
@media (hover: hover) and (pointer: fine) { .tile:hover .tile-img img { transform: scale(1.04); } }
.tiles-row { grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); }
.ideas { margin-top: 2.5rem; }

/* ---------- product ---------- */
.product { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "gallery head" "gallery info"; grid-template-rows: auto 1fr; column-gap: clamp(2rem, 5vw, 5rem); row-gap: 1.5rem; padding-block: 1.5rem var(--section); align-items: start; }
.gallery { grid-area: gallery; }
.product-head { grid-area: head; display: grid; gap: .75rem; padding-top: 1rem; }
.product-info { grid-area: info; }
.page-title { font-size: var(--step-display); line-height: .95; letter-spacing: -0.04em; }
.gallery { display: grid; gap: var(--gap); }
.gallery-main { display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; border-radius: calc(var(--radius) * 1.5); }
.gallery-main img { width: 88%; height: 88%; object-fit: contain; }
.gallery-main.mount { background: var(--surface); }
.gallery-main.mount img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr)); gap: 8px; }
.thumb { display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-sm); background: var(--field-3); transition: background-color var(--t-hover) ease; }
.thumb img { width: 86%; height: 86%; object-fit: cover; }
.thumb.is-on { background: var(--field-1); box-shadow: inset 0 0 0 3px var(--yellow); }
@media (hover: hover) and (pointer: fine) { .thumb:not(.is-on):hover { background: var(--field-2); } }
.product-info { display: grid; gap: 1.25rem; }
.product-code { display: block; font-size: var(--step-display); font-weight: 900; letter-spacing: -0.03em; line-height: .95; font-variant-numeric: tabular-nums; }
.product-name { display: block; font-size: var(--step-lead); line-height: 1.2; font-weight: 500; letter-spacing: -0.01em; }
.product-desc p { white-space: pre-line; }
.product-desc p + p { margin-top: .6em; }
.add-form { display: grid; gap: 1.25rem; justify-items: start; background: var(--cream); padding: 1.5rem; border-radius: var(--radius); }
.add-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; width: 100%; }
.fld-wide { grid-column: 1 / -1; }
.add-form .text-button, .add-form .link { margin-left: 0; }
.product-note { max-width: 46ch; }

/* ---------- quote list ---------- */
.quote-form { padding-bottom: var(--section); display: grid; gap: 1.5rem; }
.qlines { display: grid; gap: 1.5rem; }
.qline { display: grid; grid-template-columns: 96px minmax(12rem, 1.1fr) 3fr auto; gap: 1.25rem 1.5rem; align-items: start; padding-bottom: 1.5rem; border-bottom: 6px solid var(--surface); }
.qline .bullet { width: 96px; height: 96px; }
.qline-name { font-size: var(--step-body); font-weight: 500; line-height: 1.3; }
.qline-fields { display: grid; grid-template-columns: 7rem 1fr 1.3fr; gap: .75rem; }
.qline-fields .field { background: var(--surface); }
.qline-remove { align-self: center; }
.send { background: var(--yellow); border-radius: calc(var(--radius) * 1.5); padding: clamp(1.5rem, 4vw, 3.5rem); display: grid; gap: 2rem; justify-items: start; margin-top: 2rem; }
.send-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; width: 100%; }
.sent { min-height: 60svh; align-content: center; }
.sent p:last-child { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; }

/* ---------- footer: charcoal, the key border, the lockup large in its reversed colours ---------- */
.foot { background: var(--ink); color: #fff; padding-bottom: 2rem; }
.foot .key { margin-bottom: clamp(3rem, 7vw, 6rem); }
.foot-brand { display: inline-flex; text-decoration: none; color: #fff; }
.foot .o-h { fill: #fff; }
.foot .w-c { fill: #fff; }
.logo-big { gap: clamp(1rem, 3vw, 2.5rem); }
.logo-big .mark { width: clamp(7rem, 19vw, 17rem); }
.logo-big .wm { width: clamp(12rem, 40vw, 34rem); }
.logo-big .logo-text { font-size: clamp(2.5rem, 8vw, 7rem); }
.foot a.button { background: var(--yellow); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .foot a.button:hover { background: #fff; } }
.foot .small { color: rgba(255, 255, 255, .8); }
.h0 { height: 100%; } .h1 { height: 78%; } .h2 { height: 92%; } .h3 { height: 64%; } .h4 { height: 86%; } .h5 { height: 72%; } .h6 { height: 96%; } .h7 { height: 70%; }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr) 1.4fr; gap: 2rem var(--gutter); margin-top: clamp(3rem, 6vw, 5rem); font-size: var(--step-small); }
.foot-h { font: 900 1rem/1.2 var(--font-display); letter-spacing: 0; color: var(--yellow); margin-bottom: .8rem; }
.foot-cols li + li { margin-top: .3rem; }
.foot-contact p + p { margin-top: .3rem; }
.foot-last { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 3.5rem; }

/* ---------- motion (content stays visible without script) ---------- */
.i0 { --i: 0; } .i1 { --i: 1; } .i2 { --i: 2; } .i3 { --i: 3; }
.shutter { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] { opacity: 0; transform: translateY(22px); animation: rise 800ms var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 90ms + 120ms); }
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: var(--d, 0ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .shutter[data-reveal] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1100ms var(--ease-in-out); }
  .js .shutter[data-reveal] img { transform: scale(1.12); transition: transform 1500ms var(--ease-soft); }
  .js .shutter[data-reveal].is-in { clip-path: inset(0); }
  .js .shutter[data-reveal].is-in img { transform: none; }
  .tiles > :nth-child(4n+2) { --d: 70ms; } .tiles > :nth-child(4n+3) { --d: 140ms; } .tiles > :nth-child(4n+4) { --d: 210ms; }
  .index-list > :nth-child(2n) { --d: 80ms; }
  .how-stage.s2 { --d: 90ms; } .how-stage.s3 { --d: 180ms; }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .m1, .gallery-main.shutter { animation: shutter 1100ms var(--ease-in-out) 200ms both; }
  .m1 img, .gallery-main.shutter img { animation: settle 1500ms var(--ease-soft) 200ms both; }
}
@keyframes shutter { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
@keyframes settle { from { transform: scale(1.12); } to { transform: none; } }

/* ---------- tablet ---------- */
@media (max-width: 64em) {
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .qline { grid-template-columns: 80px 1fr auto; }
  .qline .bullet { width: 80px; height: 80px; }
  .qline-fields { grid-column: 1 / -1; }
  .qline-remove { grid-row: 1; grid-column: 3; }
}

/* ---------- phone ---------- */
@media (max-width: 56em) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-text { padding-block: 2rem 2.5rem; gap: 1.5rem; }
  .hero-title { font-size: 10.5vw; max-width: none; }
  .hero-foot .lead { font-size: 1.125rem; }
  .hero-field { height: 112vw; align-items: flex-start; padding-top: 20px; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; gap: 12px; padding-inline: 20px; width: 100%; }
  .m { aspect-ratio: 3 / 4; grid-column: auto !important; grid-row: auto !important; }
  .m:nth-child(even) { transform: translateY(48px); }
  .m6, .m7 { display: none; }
  .disc-section { grid-template-columns: 1fr; min-height: 0; gap: 1.5rem; padding-block: 4.5rem; }
  .disc-stage, .disc-names { grid-column: 1; grid-row: auto; }
  .disc-panel { grid-template-columns: 1fr; }
  .disc { width: min(86vw, 26rem); }
  .disc-stage { justify-items: center; }
  .disc-names ul { display: flex; flex-wrap: wrap; column-gap: 1.25rem; row-gap: .25rem; }
  .disc-name, .disc-title { font-size: 1.625rem; }
  .disc-fact { max-width: none; }
  .index-group { grid-template-columns: 1fr; row-gap: 1.5rem; padding-block: 3rem; }
  .index-head, .index-list { grid-column: 1; position: static; }
  .index-list { grid-template-columns: 1fr; row-gap: 1rem; }
  .index-item { grid-template-columns: 64px 1fr; gap: 1rem; }
  .bullet { width: 64px; height: 64px; }
  .index-title { font-size: 8.5vw; }
  .index-name { font-size: var(--step-body); }
  .how { padding-top: 3rem; }
  .how-title { position: static; width: auto; font-size: 1.875rem; margin-bottom: 1.75rem; }
  .how-tiles { grid-template-columns: 1fr; gap: 1.75rem; }
  .how-stage.s1, .how-stage.s2, .how-stage.s3 { grid-column: 1; }
  .s1 .how-tile { height: 34vw; } .s2 .how-tile { height: 46vw; } .s3 .how-tile { height: 62vw; }
  .how-name { font-size: 1.125rem; }
  .strip { margin-bottom: 3rem; }
  .strip-img { height: 110px; }
  .find-title { font-size: 9vw; }
  .find-bar, .find-bar-page { grid-template-columns: 1fr; }
  .cell { min-height: 3.75rem; }
  .product { grid-template-columns: 1fr; grid-template-areas: "head" "gallery" "info"; }
  .add-grid, .send-grid { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; column-gap: 10px; row-gap: 1.75rem; }
  .tile-big { grid-column: span 2; grid-row: auto; }
  .tile-big .tile-img { aspect-ratio: 4 / 5; height: auto; min-height: 0; }
  .tile-name { font-size: 1rem; }
  .foot-last { flex-wrap: wrap; }
  .bar { min-height: 4rem; }
  .mark { width: 46px; }
  .wm { width: 86px; }
  .bar-search { display: none; }
}
@media (max-width: 30em) {
  .qline-fields { grid-template-columns: 1fr 1fr; }
  .qline-fields .fld-wide, .qline-fields .fld:nth-child(3) { grid-column: 1 / -1; }
}
.phone-only { display: none; }
@media (max-width: 56em) { .phone-only { display: inline; } }
