/* =====================================================================
   Keramika Davidović · design system
   Porcelain + ink + cobalt glaze (evolved from the original #216AC8 mark)
   ===================================================================== */
@import url('/fonts/fonts.css');

:root {
  --porcelain: #F3F0EA;
  --porcelain-2: #E8E3D9;
  --paper: #FBFAF7;
  --well: #ECE8E0;
  --ink: #0D1015;
  --ink-2: #161A21;
  --ink-3: #222832;
  --graphite: #4F5764;
  --mute: #8A919C;
  --mute-on-dark: #9AA3AF;
  --line: rgba(13, 16, 21, .12);
  --line-strong: rgba(13, 16, 21, .24);
  --line-dark: rgba(243, 240, 234, .14);
  --cobalt: #1E5BD6;
  --cobalt-deep: #0B2C77;
  --cobalt-night: #071A47;
  --cyan: #3FABDC;
  --brand: #216AC8;
  --open: #2FBF71;
  --closed: #E0564F;
  --glaze: linear-gradient(120deg, #3FABDC 0%, #1E5BD6 46%, #0B2C77 100%);

  --f-sans: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-serif: 'Fraunces', ui-serif, Georgia, serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --pad: clamp(16px, 4vw, 64px);
  --max: 1680px;
  --hdr: 76px;
  --r: 3px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);
  --t-fast: .25s;
  --t: .5s;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; }
body {
  background: var(--porcelain);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.55;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--cobalt); color: #fff; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 2px; }
.on-dark :focus-visible, .is-dark :focus-visible { outline-color: var(--cyan); }
[hidden] { display: none !important; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

.skip { position: fixed; left: 12px; top: -60px; z-index: 1000; background: var(--ink); color: var(--porcelain); padding: 10px 16px; border-radius: var(--r); transition: top .2s; }
.skip:focus { top: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
.t-display {
  font-weight: 800; font-stretch: 112%;
  font-size: clamp(3.1rem, 10.4vw, 12.5rem);
  line-height: .86; letter-spacing: -.045em;
}
.t-h1 { font-weight: 760; font-stretch: 108%; font-size: clamp(2.6rem, 7vw, 7.4rem); line-height: .9; letter-spacing: -.04em; }
.t-h2 { font-weight: 720; font-stretch: 106%; font-size: clamp(2.1rem, 4.9vw, 5rem); line-height: .95; letter-spacing: -.035em; }
.t-h3 { font-weight: 650; font-stretch: 104%; font-size: clamp(1.35rem, 2.1vw, 2rem); line-height: 1.08; letter-spacing: -.02em; }
.t-h4 { font-weight: 640; font-size: 1.125rem; line-height: 1.25; letter-spacing: -.01em; }
.t-lead { font-size: clamp(1.1rem, 1.45vw, 1.45rem); line-height: 1.45; letter-spacing: -.01em; font-weight: 420; }
.t-small { font-size: .875rem; line-height: 1.5; }
.t-mono, .eyebrow {
  font-family: var(--f-mono); font-weight: 500;
  font-size: .75rem; line-height: 1.3; letter-spacing: .08em; text-transform: uppercase;
}
.eyebrow { display: inline-flex; align-items: center; gap: .7em; color: var(--graphite); }
.on-dark .eyebrow { color: var(--mute-on-dark); }
.eyebrow::before { content: ''; width: .62em; height: .62em; background: currentColor; transform: rotate(45deg); flex: none; }
.eyebrow--brand { color: var(--cobalt); }
.on-dark .eyebrow--brand { color: var(--cyan); }
.serif {
  font-family: var(--f-serif); font-style: italic; font-weight: 340; font-stretch: normal;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  letter-spacing: -.02em;
}
.glaze-text { background: var(--glaze); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--graphite); }
.on-dark .muted { color: var(--mute-on-dark); }
.nowrap { white-space: nowrap; }

/* split lines for reveal */
.line-mask { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.line-mask > .line-inner { display: block; will-change: transform; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { position: relative; padding: clamp(80px, 12vw, 180px) 0; }
.section--tight { padding: clamp(56px, 7vw, 110px) 0; }
.is-dark { background: var(--ink); color: var(--porcelain); }
.is-cobalt { background: var(--cobalt-deep); color: #fff; }
.is-alt { background: var(--porcelain-2); }
.grid12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.on-dark .rule, .is-dark .rule { background: var(--line-dark); }

/* ---------- diamond (logo tile) ---------- */
.dia { display: inline-block; width: .55em; height: .55em; background: currentColor; transform: rotate(45deg); flex: none; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--porcelain); --bd: var(--ink);
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  min-height: 52px; padding: 0 22px 0 24px;
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd); border-radius: var(--r);
  font-weight: 600; font-size: .95rem; letter-spacing: -.005em; font-stretch: 104%;
  overflow: hidden; isolation: isolate; cursor: pointer;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn::before {
  content: ''; position: absolute; inset: -1px; z-index: -1;
  background: var(--glaze);
  clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  transition: clip-path .6s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { clip-path: polygon(0 0, 115% 0, 100% 100%, 0 100%); }
.btn:hover, .btn:focus-visible { color: #fff; border-color: var(--cobalt); }
.btn:active { transform: scale(.98); }
.btn__ico { position: relative; width: 22px; height: 22px; flex: none; display: grid; place-items: center; }
.btn__ico::before { content: ''; width: 9px; height: 9px; background: currentColor; transform: rotate(45deg); transition: transform .5s var(--ease); }
.btn:hover .btn__ico::before { transform: rotate(225deg) scale(1.15); }
.btn--light { --bg: var(--porcelain); --fg: var(--ink); --bd: var(--porcelain); }
.btn--ghost { --bg: transparent; --fg: var(--ink); --bd: var(--line-strong); }
.on-dark .btn--ghost, .is-dark .btn--ghost, .is-cobalt .btn--ghost { --fg: var(--porcelain); --bd: rgba(243, 240, 234, .35); }
.btn--cobalt { --bg: var(--cobalt); --fg: #fff; --bd: var(--cobalt); }
.btn--sm { min-height: 40px; padding: 0 14px 0 16px; font-size: .85rem; gap: 10px; }
.btn--block { width: 100%; justify-content: space-between; }
.btn[disabled] { opacity: .45; pointer-events: none; }

.link-u { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .45s var(--ease); padding-bottom: 2px; }
.link-u:hover, .link-u:focus-visible { background-size: 100% 1px; }

.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: 100px; background: transparent;
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 500;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  white-space: nowrap; cursor: pointer;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"], .chip.is-on { background: var(--ink); color: var(--porcelain); border-color: var(--ink); }
.chip__n { color: var(--graphite); }
.chip.is-on .chip__n, .chip[aria-pressed="true"] .chip__n { color: inherit; opacity: .7; }
.on-dark .chip, .is-dark .chip { border-color: rgba(243, 240, 234, .28); }
.on-dark .chip:hover, .is-dark .chip:hover { border-color: var(--porcelain); }
.on-dark .chip[aria-pressed="true"], .is-dark .chip[aria-pressed="true"] { background: var(--porcelain); color: var(--ink); border-color: var(--porcelain); }

/* ---------- header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 90; height: var(--hdr);
  color: var(--ink);
  transition: transform .6s var(--ease), color .35s var(--ease);
}
.hdr::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: rgba(243, 240, 234, .78); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  opacity: 0; transition: opacity .35s var(--ease), background .35s;
}
.hdr.is-solid::before { opacity: 1; }
.hdr[data-theme="dark"] { color: var(--porcelain); }
.hdr[data-theme="dark"]::before { background: rgba(13, 16, 21, .72); border-bottom-color: var(--line-dark); }
.hdr.is-hidden { transform: translateY(-105%); }
.hdr__in { height: 100%; display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.logo__mark { width: 40px; height: 38px; flex: none; }
.logo__word { display: flex; flex-direction: column; line-height: 1; }
.logo__name { font-weight: 800; font-stretch: 118%; font-size: 1.12rem; letter-spacing: -.03em; }
.logo__sub { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; opacity: .7; margin-top: 4px; }
.nav { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 30px); margin-left: auto; }
.nav a { position: relative; font-size: .92rem; font-weight: 560; letter-spacing: -.005em; padding: 8px 0; }
.nav a::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 5px; height: 5px; background: currentColor; transform: translateX(-50%) rotate(45deg) scale(0); transition: transform .35s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: translateX(-50%) rotate(45deg) scale(1); }
.hdr__tools { display: flex; align-items: center; gap: 10px; }
.status-pill {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px;
  border: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 22%, transparent); border-radius: 100px;
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--closed); flex: none; position: relative; }
.is-open .status-dot { background: var(--open); }
.is-open .status-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--open); animation: ping 2s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
.list-btn { position: relative; display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; border-radius: 100px; background: var(--ink); color: var(--porcelain); font-weight: 600; font-size: .85rem; }
.hdr[data-theme="dark"] .list-btn { background: var(--porcelain); color: var(--ink); }
.hdr[data-theme="dark"]:not(.is-solid) .status-pill, .hdr[data-theme="dark"]:not(.is-solid) .soc { background: rgba(13,16,21,.32); } /* readable over the hero's lit wall */
.list-btn__n { min-width: 22px; height: 22px; border-radius: 11px; display: grid; place-items: center; background: var(--cobalt); color: #fff; font-family: var(--f-mono); font-size: .7rem; padding: 0 6px; }
.list-btn.is-bump { animation: bump .6s var(--ease); }
@keyframes bump { 30% { transform: scale(1.12); } 100% { transform: scale(1); } }
.burger { width: 44px; height: 44px; display: none; place-items: center; border-radius: 50%; border: 1px solid color-mix(in srgb, currentColor 22%, transparent); }
.burger span { position: relative; width: 18px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.burger span::before, .burger span::after { content: ''; position: absolute; left: 0; width: 100%; height: 100%; background: currentColor; transition: transform .4s var(--ease); }
.burger span::before { transform: translateY(-6px); }
.burger span::after { transform: translateY(6px); }
.menu-open .burger span { background: transparent; }
.menu-open .burger span::before { transform: rotate(45deg); }
.menu-open .burger span::after { transform: rotate(-45deg); }

/* social logos: monochrome at rest, each platform's own colours on hover */
.soc-row { display: flex; align-items: center; gap: 8px; }
.soc { width: 40px; height: 40px; display: grid; place-items: center; flex: none; border-radius: 50%; border: 1px solid color-mix(in srgb, currentColor 22%, transparent); transition: background .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease), transform .35s var(--ease); }
.soc svg { width: 18px; height: 18px; transition: filter .35s var(--ease); }
.soc:hover, .soc:focus-visible { transform: translateY(-2px); color: #fff; border-color: transparent; }
.soc--ig:hover, .soc--ig:focus-visible { background: radial-gradient(circle at 30% 107%, #FDF497 0%, #FDF497 5%, #FD5949 45%, #D6249F 60%, #285AEB 90%); }
.soc--tt:hover, .soc--tt:focus-visible { background: #000; }
.soc--tt:hover svg, .soc--tt:focus-visible svg { filter: drop-shadow(-1.4px -1.2px 0 #25F4EE) drop-shadow(1.4px 1.2px 0 #FE2C55); }
/* the difference-blend cursor would invert the brand colours, so the native pointer takes over on these */
.has-cursor .soc { cursor: pointer; }
html:has(.soc:hover) .cursor { visibility: hidden; }
.hdr__soc { margin-right: 4px; }
.hdr__soc .soc { width: 36px; height: 36px; }
.hdr__soc .soc svg { width: 16px; height: 16px; }
.menu__soc { flex-basis: 100%; margin-top: 4px; color: var(--porcelain); }
.ftr__soc { margin-top: 24px; }
.ftr__soc .soc, .cbox__soc .soc { width: 48px; height: 48px; }
.ftr__soc .soc svg, .cbox__soc .soc svg { width: 21px; height: 21px; }
.cbox__soc { margin: 12px 0 10px; }
@media (max-width: 700px) { .hdr__soc { display: none; } }

@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: grid; }
  .hdr__tools { margin-left: auto; }
}
@media (max-width: 640px) {
  :root { --hdr: 64px; }
  .status-pill { display: none; }
  .logo__mark { width: 34px; height: 32px; }
  .logo__name { font-size: 1rem; }
  .list-btn__label { display: none; }
  .list-btn { padding: 0 10px; }
}

/* ---------- fullscreen menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 80; background: var(--ink); color: var(--porcelain);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--hdr) + 24px) var(--pad) 32px;
  clip-path: inset(0 0 100% 0); visibility: hidden;
}
.menu__list { display: flex; flex-direction: column; gap: 2px; }
.menu__list a { display: flex; align-items: baseline; gap: 16px; font-weight: 760; font-stretch: 112%; font-size: clamp(2.4rem, 11vw, 5.5rem); line-height: 1; letter-spacing: -.04em; padding: 6px 0; }
.menu__list a span { font-family: var(--f-mono); font-size: .75rem; font-weight: 500; letter-spacing: .08em; opacity: .5; }
.menu__foot { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: .9rem; color: var(--mute-on-dark); }

/* ---------- cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 9998; pointer-events: none; mix-blend-mode: difference; display: none; }
.has-cursor .cursor { display: block; }
.cursor__d { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; background: #fff; transform: rotate(45deg); transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), border-radius .35s; }
.cursor.is-hover .cursor__d { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
.cursor.is-down .cursor__d { width: 8px; height: 8px; margin: -4px 0 0 -4px; }
.cursor__label { position: absolute; left: 30px; top: -9px; color: #fff; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; opacity: 0; transition: opacity .25s; }
.cursor.has-label .cursor__label { opacity: 1; }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }
.has-cursor input, .has-cursor textarea, .has-cursor select { cursor: auto; }

/* ---------- grain ---------- */
.grain { position: fixed; inset: -50%; z-index: 9997; pointer-events: none; opacity: .045; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>"); animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); } }

/* ---------- page transition (diamond wipe) ---------- */
.wipe { position: fixed; inset: 0; z-index: 9990; pointer-events: none; display: grid; overflow: hidden; }
.wipe i { display: block; background: var(--ink); transform: rotate(45deg) scale(0); }
.wipe.is-covering, .wipe.is-covered { pointer-events: all; }
.wipe-boot .wipe { background: var(--ink); }

/* ---------- preloader ---------- */
.pre { position: fixed; inset: 0; z-index: 9995; background: var(--ink); color: var(--porcelain); display: grid; place-items: center; }
.pre__mark { width: min(38vw, 220px); }
.pre__mark .d-tile, .pre__mark .d-body { transform-box: fill-box; transform-origin: center; }
.pre__count { position: absolute; left: var(--pad); bottom: 28px; font-family: var(--f-mono); font-size: .75rem; letter-spacing: .1em; color: var(--mute-on-dark); }
.pre__name { position: absolute; right: var(--pad); bottom: 28px; font-family: var(--f-mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mute-on-dark); }
.no-pre .pre { display: none; }

/* =====================================================================
   HOME
   ===================================================================== */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; background: var(--ink); color: var(--porcelain); overflow: hidden; }
.hero__gl { position: absolute; inset: 0; }
.hero__gl canvas { width: 100% !important; height: 100% !important; }
.hero__poster { position: absolute; inset: 0; background: radial-gradient(120% 90% at 70% 40%, #1b2230 0%, var(--ink) 60%); }
.hero__poster::after { content: ''; position: absolute; inset: 0; background-image: var(--poster); background-size: cover; background-position: center; opacity: .35; mix-blend-mode: luminosity; }
.hero.gl-ready .hero__poster { opacity: 0; transition: opacity 1.2s; }
.hero__shade { position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(90deg, rgba(13,16,21,.92) 0%, rgba(13,16,21,.62) 34%, rgba(13,16,21,0) 62%),
  linear-gradient(0deg, rgba(13,16,21,.85) 0%, rgba(13,16,21,0) 30%); }
.hero__content { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: clamp(96px, 13vh, 150px); pointer-events: none; }
.hero__content a, .hero__content button { pointer-events: auto; }
.hero__eyebrow { margin-bottom: clamp(18px, 3vh, 34px); }
.hero__title { max-width: 11.5ch; font-size: clamp(3.1rem, min(10.4vw, 15.5svh), 12.5rem); }
/* the copy never draws under the fixed header: --cut is the header's bottom edge in the element's own box,
   --feather grows with scroll so the text dissolves into the header instead of sliding under it (home.js) */
.hero__content, .hero__mat {
  -webkit-mask-image: linear-gradient(to bottom, transparent calc(var(--cut, 0px) + var(--feather, 0px) * .35), #000 calc(var(--cut, 0px) + var(--feather, 0px)));
  mask-image: linear-gradient(to bottom, transparent calc(var(--cut, 0px) + var(--feather, 0px) * .35), #000 calc(var(--cut, 0px) + var(--feather, 0px)));
}
@media (max-height: 700px) and (min-width: 901px) { .hero__sub { display: none; } }
.hero__title .serif { font-weight: 300; letter-spacing: -.03em; }
.hero__sub { max-width: 34rem; margin-top: clamp(20px, 3vh, 32px); color: rgba(243,240,234,.78); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 4vh, 40px); }
.hero__mat {
  position: absolute; right: var(--pad); bottom: clamp(96px, 13vh, 150px); width: min(360px, 34vw);
  display: grid; gap: 12px; padding: 18px; border-radius: 4px;
  background: rgba(13,16,21,.55); border: 1px solid var(--line-dark); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.hero__mat-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hero__mat-name { font-weight: 640; font-size: 1.02rem; line-height: 1.2; letter-spacing: -.01em; min-height: 2.4em; }
.hero__mat-meta { color: var(--mute-on-dark); }
.hero__mat-ctrl { display: flex; gap: 8px; }
.hero__mat-ctrl button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(243,240,234,.28); display: grid; place-items: center; transition: background .25s, color .25s; }
.hero__mat-ctrl button:hover { background: var(--porcelain); color: var(--ink); }
.hero__mat-ctrl svg { width: 14px; height: 14px; }
.hero__mat-bar { height: 2px; background: rgba(243,240,234,.16); overflow: hidden; }
.hero__mat-bar i { display: block; height: 100%; width: 100%; background: var(--glaze); transform-origin: 0 50%; transform: scaleX(0); }
.hero__mat-swatches { display: flex; gap: 6px; }
.hero__mat-swatches button { width: 30px; height: 30px; border-radius: 2px; background-size: cover; background-position: center; border: 1px solid rgba(243,240,234,.2); transition: transform .3s var(--ease), border-color .3s; }
.hero__mat-swatches button[aria-pressed="true"] { border-color: var(--porcelain); transform: translateY(-3px); }
.hero__foot { position: absolute; left: 0; right: 0; bottom: 26px; display: flex; justify-content: space-between; align-items: center; color: var(--mute-on-dark); pointer-events: none; }
.scroll-cue { display: inline-flex; align-items: center; gap: 10px; }
.scroll-cue i { width: 1px; height: 34px; background: rgba(243,240,234,.25); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ''; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--porcelain); animation: cue 1.8s var(--ease-io) infinite; }
@keyframes cue { to { top: 100%; } }
.hero__hint { display: inline-flex; gap: 10px; align-items: center; }
@media (max-width: 900px) {
  .hero__mat { left: var(--pad); right: var(--pad); width: auto; bottom: 16px; grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 10px 10px 10px 14px; gap: 10px; }
  .hero__mat > .hero__mat-top:first-child, .hero__mat .hero__mat-bar, .hero__mat .hero__mat-swatches, .hero__mat .hero__mat-meta { display: none; }
  .hero__mat-name { min-height: 0; font-size: .82rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .hero__content { padding-bottom: 96px; }
  .hero__ctas { flex-wrap: nowrap; gap: 8px; }
  .hero__ctas .btn { min-height: 48px; padding: 0 14px 0 16px; gap: 10px; font-size: .88rem; }
  .hero__shade { background: linear-gradient(0deg, rgba(13,16,21,.95) 0%, rgba(13,16,21,.62) 48%, rgba(13,16,21,.18) 78%); }
  .hero__foot { display: none; }
  .hero__sub { font-size: 1rem; margin-top: 16px; }
  .hero__eyebrow { margin-bottom: 14px; }
}
@media (max-width: 380px) { .hero__ctas .btn--ghost { display: none; } }

/* ticker */
.ticker { position: relative; background: var(--glaze); color: #fff; overflow: hidden; padding: clamp(18px, 2.4vw, 30px) 0; }
.ticker__track { display: flex; width: max-content; will-change: transform; }
.ticker__item { display: inline-flex; align-items: center; gap: clamp(20px, 3vw, 44px); padding-right: clamp(20px, 3vw, 44px); font-weight: 800; font-stretch: 118%; font-size: clamp(2rem, 5.4vw, 5.6rem); line-height: 1; letter-spacing: -.04em; white-space: nowrap; }
.ticker__item .serif { font-weight: 300; }
.ticker__item .dia { width: .28em; height: .28em; opacity: .7; }
.ticker__item--o { -webkit-text-stroke: 1.5px rgba(255,255,255,.9); color: transparent; }

/* intro / manifesto */
.intro__grid { row-gap: 56px; }
.intro__label { grid-column: 1 / span 3; }
.intro__text { grid-column: 4 / span 9; font-weight: 560; font-stretch: 104%; font-size: clamp(1.7rem, 3.6vw, 3.6rem); line-height: 1.08; letter-spacing: -.03em; }
.intro__text .w { opacity: .14; transition: none; }
.intro__text .serif { font-weight: 320; }
.stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 26px 20px 0 0; border-right: 1px solid var(--line); }
.stat + .stat { padding-left: clamp(16px, 2vw, 28px); }
.stat:last-child { border-right: 0; }
.stat__n { font-weight: 800; font-stretch: 116%; font-size: clamp(2.6rem, 6vw, 6rem); line-height: .9; letter-spacing: -.05em; }
.stat__l { margin-top: 12px; color: var(--graphite); }
@media (max-width: 900px) {
  .intro__label, .intro__text { grid-column: 1 / -1; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 22px 12px 22px 0; border-bottom: 1px solid var(--line); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3) { padding-left: 0; }
}

/* worlds (horizontal category panels) */
.worlds { position: relative; background: var(--porcelain); }
.worlds__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding-bottom: clamp(32px, 4vw, 56px); }
.worlds__pin { position: relative; overflow: hidden; }
.worlds__track { display: flex; gap: clamp(14px, 1.6vw, 24px); padding: 0 var(--pad); width: max-content; will-change: transform; }
.world {
  position: relative; flex: none; width: clamp(300px, 34vw, 560px); height: clamp(460px, 70vh, 760px);
  border-radius: 4px; overflow: hidden; background: var(--well); color: var(--ink);
  display: flex; flex-direction: column; justify-content: space-between; padding: clamp(18px, 2vw, 28px);
  isolation: isolate;
}
.world:nth-child(3n+2) { background: #E3E6EA; }
.world:nth-child(3n) { background: #EEE6DA; }
.world--dark { background: var(--ink-2) !important; color: var(--porcelain); }
.world--glaze { background: var(--cobalt-deep) !important; color: #fff; }
.world__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; position: relative; z-index: 2; }
.world__idx { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .08em; }
.world__count { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; opacity: .7; text-align: right; }
.world__name { position: relative; z-index: 2; font-weight: 800; font-stretch: 116%; font-size: clamp(2.2rem, 3.8vw, 3.9rem); line-height: .9; letter-spacing: -.045em; }
.world__lead { position: relative; z-index: 2; margin-top: 12px; max-width: 30ch; font-size: .95rem; opacity: .78; }
.world__go { position: relative; z-index: 2; margin-top: 18px; display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .9rem; }
.world__go .dia { transition: transform .5s var(--ease); }
.world:hover .world__go .dia { transform: rotate(225deg); }
.world__art { position: absolute; inset: 0; pointer-events: none; }
.world__art img { position: absolute; object-fit: contain; mix-blend-mode: multiply; }
.world--dark .world__art img { mix-blend-mode: normal; background: #fff; border-radius: 3px; padding: 5%; box-shadow: 0 40px 70px -30px rgba(0,0,0,.7); }
.world__art img:nth-child(1) { width: 58%; right: -4%; top: 16%; }
.world__art img:nth-child(2) { width: 38%; right: 40%; top: 30%; }
.world__art img:nth-child(3) { width: 34%; right: 12%; top: 50%; }
.world__art img:nth-child(4) { width: 26%; right: 52%; top: 12%; }
.world__art--tiles img { mix-blend-mode: normal; box-shadow: 0 30px 60px -20px rgba(13,16,21,.45); border-radius: 2px; }
.world__art--tiles img:nth-child(1) { width: 46%; right: 8%; top: 12%; transform: rotate(8deg); }
.world__art--tiles img:nth-child(2) { width: 42%; right: 36%; top: 26%; transform: rotate(-10deg); }
.world__art--tiles img:nth-child(3) { width: 40%; right: 2%; top: 40%; transform: rotate(-3deg); }
.world__art--tiles img:nth-child(4) { width: 34%; right: 46%; top: 6%; transform: rotate(14deg); }
.world__body { position: relative; z-index: 2; }
.world--intro { background: transparent !important; width: clamp(260px, 26vw, 420px); padding-left: 0; justify-content: flex-end; }
.world--end { background: var(--ink) !important; color: var(--porcelain); justify-content: center; align-items: flex-start; gap: 24px; }
@media (max-width: 900px) {
  .worlds__track { flex-direction: column; width: 100%; padding: 0 var(--pad); }
  .world { width: 100%; height: auto; min-height: 500px; }
  .world__art { bottom: 46%; top: 44px; }
  .world__art img:nth-child(1) { width: 50%; right: 2%; top: 4%; }
  .world__art img:nth-child(2) { width: 36%; right: 46%; top: 12%; }
  .world__art img:nth-child(3) { width: 30%; right: 22%; top: 46%; }
  .world__art img:nth-child(4) { display: none; }
  .world__art--tiles { top: 76px; } /* light count text ran over the white marble */
  .world--intro { display: none; }
  .world--end { min-height: 0; }
}

/* visualizer teaser + page */
.viz { position: relative; background: var(--ink); color: var(--porcelain); }
.viz__grid { align-items: end; row-gap: 32px; }
.viz__copy { grid-column: 1 / span 5; }
.viz__stage-wrap { grid-column: 1 / -1; }
.viz__stage { position: relative; height: min(78vh, 760px); min-height: 460px; border-radius: 4px; overflow: hidden; background: #1a1d22; }
.viz__stage canvas { width: 100% !important; height: 100% !important; touch-action: pan-y; }
.viz__loading { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mute-on-dark); }
.viz__panel {
  position: absolute; left: 16px; bottom: 16px; right: 16px; z-index: 3;
  display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end;
}
.viz__card { background: rgba(13,16,21,.66); border: 1px solid var(--line-dark); border-radius: 4px; padding: 12px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); min-width: 0; }
.viz__card-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.viz__card-h .t-mono { color: var(--mute-on-dark); }
.viz__pick { font-size: .85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viz__pick a { color: inherit; }
.viz__sw { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.viz__sw::-webkit-scrollbar { display: none; }
.viz__sw button { flex: none; width: 44px; height: 44px; border-radius: 2px; background-size: cover; background-position: center; border: 1px solid rgba(243,240,234,.18); transition: transform .3s var(--ease), border-color .3s; }
.viz__sw button[aria-pressed="true"] { border: 2px solid var(--porcelain); transform: translateY(-3px); }
.viz__fam { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 8px; }
.viz__fam::-webkit-scrollbar { display: none; }
.viz__fam .chip { min-height: 28px; padding: 0 10px; font-size: .62rem; }
.viz__opts { display: flex; flex-direction: column; gap: 8px; }
.viz__seg { display: inline-flex; border: 1px solid var(--line-dark); border-radius: 100px; padding: 3px; background: rgba(13,16,21,.66); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.viz__seg button { height: 32px; padding: 0 12px; border-radius: 100px; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.viz__seg button[aria-pressed="true"] { background: var(--porcelain); color: var(--ink); }
.viz__seg .grout-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: -1px; margin-right: 6px; border: 1px solid rgba(255,255,255,.4); }
.viz__hint { position: absolute; top: 14px; left: 14px; z-index: 3; color: var(--porcelain); background: rgba(13,16,21,.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 8px 12px; border-radius: 100px; max-width: calc(100% - 180px); }
.viz__top-right { position: absolute; top: 12px; right: 12px; z-index: 3; display: flex; gap: 8px; }
.viz__card-h { align-items: center; }
.viz__card-h > .t-mono { flex: none; }
.viz__dim { font-weight: 500; color: var(--porcelain); margin-left: 8px; text-transform: none; letter-spacing: .02em; }
.viz__pick { flex: 1; min-width: 0; text-align: right; }
.viz__ori { flex: none; display: inline-flex; border: 1px solid var(--line-dark); border-radius: 100px; padding: 2px; }
.viz__ori[hidden] { display: none; }
.viz__ori button { width: 28px; height: 22px; border-radius: 100px; display: grid; place-items: center; color: var(--mute-on-dark); transition: background .25s, color .25s; }
.viz__ori button svg { width: 14px; height: 14px; }
.viz__ori button[aria-pressed="true"] { background: var(--porcelain); color: var(--ink); }
.viz__pat { flex: none; height: 26px; max-width: 128px; padding: 0 24px 0 10px; border: 1px solid var(--line-dark); border-radius: 100px; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23F3F0EA' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 9px center / 9px 6px; color: var(--porcelain); font-family: var(--f-mono); font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; -webkit-appearance: none; appearance: none; cursor: pointer; }
.viz__pat:focus-visible { outline: 2px solid var(--porcelain); outline-offset: 2px; }
.viz__pat option { color: var(--ink); background: var(--porcelain); text-transform: none; }
.viz__tabs { display: flex; gap: 4px; margin-bottom: 10px; padding: 3px; border: 1px solid var(--line-dark); border-radius: 100px; width: max-content; }
.viz__tabs[hidden] { display: none; }
.viz__tabs button { height: 26px; padding: 0 12px; border-radius: 100px; font-family: var(--f-mono); font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; color: var(--mute-on-dark); transition: background .25s, color .25s; }
.viz__tabs button[aria-pressed="true"] { background: var(--porcelain); color: var(--ink); }
.viz__sw .viz__same { width: auto; padding: 0 12px; background: transparent; color: var(--porcelain); font-family: var(--f-mono); font-size: .6rem; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.viz__same-note { color: var(--mute-on-dark); font-weight: 500; }
/* fingers need bigger targets than the mouse */
@media (pointer: coarse) { .viz__ori button { width: 38px; height: 32px; } .viz__pat { height: 34px; } .viz__tabs button { height: 34px; padding: 0 14px; } }
/* laptop and desktop: the strip wraps into rows that scroll with the mouse wheel and show a scrollbar; one sideways row of
   ~370 tiles could not be scrolled without a trackpad (17 Nov 2026). Phones keep the swipeable single row. */
@media (min-width: 901px) {
  .viz__sw { display: grid; grid-template-columns: repeat(auto-fill, 44px); justify-content: space-between; align-content: start; overflow-x: hidden; overflow-y: auto; max-height: 116px; padding: 4px 6px 2px 0; scrollbar-width: auto; scrollbar-color: auto; }
  .viz__sw .viz__same { grid-column: span 2; }
  .viz-page .viz__sw { overscroll-behavior: contain; }
  .viz__sw::-webkit-scrollbar { display: block; width: 6px; }
  .viz__sw::-webkit-scrollbar-track { background: rgba(243,240,234,.08); border-radius: 3px; }
  .viz__sw::-webkit-scrollbar-thumb { background: rgba(243,240,234,.45); border-radius: 3px; }
  .viz__sw::-webkit-scrollbar-thumb:hover { background: rgba(243,240,234,.7); }
}
.viz__seg button[aria-disabled="true"] { opacity: .4; }
.viz__stage[data-mode="full"] .viz__hint { left: 50%; transform: translateX(-50%); max-width: 40%; text-align: center; }
.viz__room { position: absolute; top: 12px; left: 12px; z-index: 4; width: min(372px, calc(100% - 24px)); pointer-events: none; }
.viz__room > * { pointer-events: auto; }
.viz__room-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 14px 0 16px; border-radius: 100px; background: var(--porcelain); color: var(--ink); font-size: .85rem; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.viz__room-btn .t-mono { color: var(--graphite); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; }
.viz__room-ico { font-size: 1.1rem; line-height: 1; transition: transform .35s var(--ease); }
.viz__room-btn[aria-expanded="true"] .viz__room-ico { transform: rotate(45deg); }
.viz__room-card { margin-top: 8px; display: grid; gap: 12px; padding: 14px; background: rgba(13,16,21,.84); border: 1px solid var(--line-dark); border-radius: 4px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.viz__room-card[hidden] { display: none; }
.viz__dims { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.viz__dims label { display: grid; gap: 5px; min-width: 0; }
.viz__dims .t-mono { color: var(--mute-on-dark); font-size: .62rem; }
.viz__dims small { color: var(--mute-on-dark); font-size: .68rem; }
.viz__in { display: flex; align-items: center; gap: 4px; padding: 0 10px; border: 1px solid var(--line-dark); border-radius: 3px; background: rgba(243,240,234,.06); transition: border-color .25s; }
.viz__in:focus-within { border-color: var(--porcelain); }
.viz__in input { width: 100%; min-width: 0; height: 38px; padding: 0; background: none; border: 0; outline: none; color: var(--porcelain); font: 600 1rem var(--f-sans); }
.viz__in i { font-style: normal; font-size: .8rem; color: var(--mute-on-dark); }
.viz__qty { display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line-dark); }
.viz__qrow { display: grid; grid-template-columns: 58px 1fr; gap: 2px 10px; align-items: baseline; }
.viz__qrow .t-mono { color: var(--mute-on-dark); font-size: .62rem; }
.viz__qrow strong { font-size: 1.05rem; }
.viz__qrow span:last-child { grid-column: 2; color: var(--mute-on-dark); font-size: .74rem; }
.viz__room-card .btn { justify-self: start; }
.viz__note { margin: 0; color: var(--mute-on-dark); font-size: .7rem; line-height: 1.45; }
@media (max-width: 1240px) { .viz__stage[data-mode="full"] .viz__hint { display: none; } }
@media (max-width: 900px) {
  .viz__copy { grid-column: 1 / -1; }
  .viz__panel { grid-template-columns: 1fr; left: 8px; right: 8px; bottom: 8px; gap: 8px; }
  .viz__opts { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .viz__opts::-webkit-scrollbar { display: none; }
  .viz__seg { flex: none; }
  .viz__hint { display: none; }
  .viz__stage { height: 82svh; }
  .viz__fam { display: none; }
  .viz__card { padding: 8px 10px; }
  .viz__card-h { margin-bottom: 6px; }
  .viz__sw button { width: 38px; height: 38px; }
  .viz__room { top: 8px; left: 8px; width: calc(100% - 16px); }
  .viz__room-btn { min-height: 36px; padding: 0 12px; font-size: .8rem; }
  .viz__room-btn .t-mono { display: none; }
  .viz__room-card { padding: 12px; gap: 10px; }
  .viz__dims small { display: none; }
  .viz__dim { margin-left: 6px; }
  .viz__stage[data-mode="full"] .viz__top-right { top: 52px; right: 8px; }
  /* phone: the tile name gets its own line, the option row fits the screen (grout as colour dots only) */
  .viz__card-h { flex-wrap: wrap; row-gap: 4px; }
  .viz__card-h .viz__pat { margin-left: auto; }
  .viz__pick { order: 9; flex-basis: 100%; text-align: left; font-size: .78rem; }
  .viz__seg button { padding: 0 9px; }
  .viz__glabel { display: none; }
  .viz__seg .grout-dot { margin-right: 0; width: 14px; height: 14px; }
}
/* the tile panel steps aside so the room shows ("Sakrij meni"); the dock brings it back. Phones also close it after a
   tile pick. Laptops got the button on 17 Nov 2026 (Peter: the menu covers a good part of the room). */
.viz__panel { transition: transform .45s var(--ease), opacity .3s, visibility 0s; }
.viz__stage.is-panel-closed .viz__panel { transform: translateY(calc(100% + 24px)); opacity: 0; visibility: hidden; pointer-events: none; transition: transform .45s var(--ease), opacity .3s, visibility 0s .45s; }
.viz__hide { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 100px; background: rgba(13,16,21,.66); border: 1px solid var(--line-dark); color: var(--porcelain); font-family: var(--f-mono); font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: background .25s; }
.viz__hide:hover { background: rgba(13,16,21,.86); }
.viz__dock { display: none; position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 3; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 8px; border-radius: 100px; background: var(--porcelain); color: var(--ink); font-size: .85rem; font-weight: 600; white-space: nowrap; box-shadow: 0 10px 30px rgba(0,0,0,.3); animation: viz-dock-in .35s var(--ease) both; }
.viz__stage.is-panel-closed .viz__dock { display: inline-flex; }
.viz__dock-sw { width: 28px; height: 28px; border-radius: 3px; background-size: cover; background-position: center; border: 1px solid rgba(13,16,21,.18); }
.viz__dock-sw + .viz__dock-sw { margin-left: -6px; }
@media (min-width: 901px) { .viz__hide { position: absolute; right: 0; bottom: calc(100% + 10px); } }
@media (max-width: 900px) { .viz__hide { justify-self: end; } .viz__dock { bottom: 12px; } }
@keyframes viz-dock-in { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) { .viz__panel, .viz__stage.is-panel-closed .viz__panel { transition: none; } .viz__dock { animation: none; } }
.viz-page .viz__stage { height: calc(100svh - var(--hdr) - 24px); border-radius: 0; }
.viz-page { padding-top: var(--hdr); background: var(--ink); color: var(--porcelain); }

/* process */
.process__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(40px, 6vw, 80px); }
.process__list { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 32px); }
.process__line { position: absolute; left: 0; right: 0; top: 34px; height: 2px; pointer-events: none; }
.process__line svg { width: 100%; height: 2px; overflow: visible; }
.step { position: relative; perspective: 900px; }
.step__tile { width: 68px; height: 68px; display: grid; place-items: center; background: var(--porcelain); border: 1px solid var(--line-strong); border-radius: 3px; font-family: var(--f-mono); font-size: .8rem; position: relative; z-index: 1; transform-style: preserve-3d; }
.step:hover .step__tile { background: var(--ink); color: var(--porcelain); }
.step__t { margin-top: 26px; }
.step__d { margin-top: 10px; color: var(--graphite); max-width: 32ch; }
@media (max-width: 900px) { .process__list { grid-template-columns: 1fr 1fr; row-gap: 48px; } .process__line { display: none; } }
@media (max-width: 520px) { .process__list { grid-template-columns: 1fr; } }

/* calculator */
.calc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 72px); align-items: stretch; }
.calc__form { display: grid; gap: 22px; align-content: start; }
.calc__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 8px; }
.field__l { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--graphite); }
.on-dark .field__l, .is-dark .field__l { color: var(--mute-on-dark); }
.field__in { position: relative; display: flex; align-items: center; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 54px; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: var(--r);
  background: var(--paper); font-size: 1.05rem; font-weight: 520; transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.45; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(30,91,214,.18); }
.field__unit { position: absolute; right: 14px; font-family: var(--f-mono); font-size: .75rem; color: var(--graphite); pointer-events: none; }
.field select { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%230D1015' stroke-width='1.5'/></svg>"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field__hint { font-size: .82rem; color: var(--graphite); }
.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.calc__out { position: relative; display: grid; grid-template-rows: 1fr auto; background: var(--ink); color: var(--porcelain); border-radius: 4px; overflow: hidden; min-height: 460px; }
.calc__plan { position: relative; display: grid; place-items: center; padding: clamp(20px, 3vw, 40px); padding-top: clamp(52px, 6vw, 64px); min-height: 280px; }
.calc__plan svg { width: 100%; height: 100%; max-height: 420px; overflow: visible; }
.calc__dims { position: absolute; top: 14px; left: 16px; color: var(--mute-on-dark); }
.calc__res { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-dark); }
.calc__res > div { padding: 18px clamp(14px, 2vw, 24px); border-right: 1px solid var(--line-dark); }
.calc__res > div:last-child { border-right: 0; }
.calc__res b { display: block; font-weight: 800; font-stretch: 116%; font-size: clamp(1.8rem, 3.4vw, 3.2rem); letter-spacing: -.04em; line-height: 1; }
.calc__res > div > span { display: block; margin-top: 8px; color: var(--mute-on-dark); }
.calc__res i { font-style: normal; }
.calc__res .is-hl b { background: var(--glaze); -webkit-background-clip: text; background-clip: text; color: transparent; filter: brightness(1.5); }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .calc__res { grid-template-columns: 1fr 1fr; } .calc__res > div:last-child { grid-column: 1 / -1; border-top: 1px solid var(--line-dark); } }

/* brands */
.brands__grid { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line-dark); border-left: 1px solid var(--line-dark); }
.brand { position: relative; aspect-ratio: 1.55; perspective: 800px; border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.brand__in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .8s var(--ease); }
.brand:hover .brand__in { transform: rotateX(180deg); }
.brand__f, .brand__b { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 10px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.brand__f { font-weight: 760; font-stretch: 112%; font-size: clamp(1rem, 1.8vw, 1.6rem); letter-spacing: -.03em; }
.brand__b { transform: rotateX(180deg); background: var(--glaze); color: #fff; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 1100px) { .brands__grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px) { .brands__grid { grid-template-columns: repeat(2, 1fr); } }

/* voices */
.voices__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 72px); }
.rating { display: grid; gap: 12px; align-content: start; }
.rating__n { font-weight: 800; font-stretch: 118%; font-size: clamp(5rem, 12vw, 11rem); line-height: .82; letter-spacing: -.06em; }
.rating__stars { display: flex; gap: 6px; color: var(--cobalt); }
.rating__stars i { width: 16px; height: 16px; background: currentColor; transform: rotate(45deg) scale(.8); }
.quotes { display: grid; gap: 18px; }
.quote { padding: clamp(22px, 3vw, 40px); background: var(--paper); border-radius: 4px; border: 1px solid var(--line); }
.quote__t { font-family: var(--f-serif); font-style: italic; font-weight: 340; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 72; font-size: clamp(1.3rem, 2.2vw, 2rem); line-height: 1.22; letter-spacing: -.015em; }
.quote__by { margin-top: 20px; display: flex; align-items: center; gap: 12px; }
.quote__av { width: 40px; height: 40px; border-radius: 50%; background: var(--glaze); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
@media (max-width: 900px) { .voices__grid { grid-template-columns: 1fr; } }

/* services strip */
.services { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.svc { padding: 28px clamp(14px, 2vw, 28px) 8px 0; border-right: 1px solid var(--line); }
.svc + .svc { padding-left: clamp(14px, 2vw, 28px); }
.svc:last-child { border-right: 0; }
.svc__i { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 3px; background: var(--ink); color: var(--porcelain); }
.svc__i svg { width: 20px; height: 20px; }
.svc__t { font-weight: 680; font-size: 1.15rem; letter-spacing: -.015em; }
.svc__d { margin-top: 8px; color: var(--graphite); font-size: .95rem; }
.on-dark .services, .is-dark .services { border-top-color: var(--line-dark); }
.on-dark .svc, .is-dark .svc { border-right-color: var(--line-dark); }
.is-dark .svc__i { background: var(--porcelain); color: var(--ink); }
.is-dark .svc__d { color: var(--mute-on-dark); }
@media (max-width: 900px) { .services { grid-template-columns: 1fr 1fr; } .svc { border-bottom: 1px solid var(--line); padding-bottom: 24px; } .svc:nth-child(2) { border-right: 0; } .svc:nth-child(3) { padding-left: 0; } }
@media (max-width: 520px) { .services { grid-template-columns: 1fr; } .svc { border-right: 0; padding-left: 0 !important; } }

/* visit */
.visit { background: var(--cobalt-night); color: #fff; overflow: hidden; }
.visit__bg { position: absolute; inset: 0; opacity: .5; pointer-events: none; background: radial-gradient(80% 70% at 85% 10%, rgba(63,171,220,.35), transparent 60%), radial-gradient(60% 60% at 0% 100%, rgba(30,91,214,.45), transparent 60%); }
.visit__grid { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 72px); align-items: end; }
.visit__title .serif { font-weight: 300; }
.hours { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hours td { padding: 11px 0; border-bottom: 1px solid color-mix(in srgb, currentColor 16%, transparent); }
.hours td:last-child { text-align: right; font-family: var(--f-mono); font-size: .82rem; letter-spacing: .04em; }
.hours tr.is-today td { font-weight: 650; }
.hours tr.is-today td:first-child::before { content: ''; display: inline-block; width: 7px; height: 7px; background: var(--cobalt); transform: rotate(45deg); margin-right: 10px; vertical-align: 1px; }
.visit .hours tr.is-today td:first-child::before { background: var(--cyan); }
.hours tr:not(.is-today) td { opacity: .72; }
.visit__status { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; margin-bottom: 18px; }
.visit__acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.visit__addr { font-weight: 720; font-stretch: 108%; font-size: clamp(1.6rem, 3vw, 2.6rem); line-height: 1.02; letter-spacing: -.03em; margin-top: 28px; }
@media (max-width: 900px) { .visit__grid { grid-template-columns: 1fr; } }

/* map placeholder */
.map { position: relative; aspect-ratio: 16 / 10; border-radius: 4px; overflow: hidden; background: #0f1b33; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.2) contrast(1.05); }
.map__ph { position: absolute; inset: 0; display: grid; place-items: center; background:
  linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px) 0 0 / 32px 32px,
  linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px) 0 0 / 32px 32px; }
.map__pin { position: absolute; left: 50%; top: 46%; width: 22px; height: 22px; margin: -11px; background: var(--cyan); transform: rotate(45deg); box-shadow: 0 0 0 10px rgba(63,171,220,.18), 0 0 0 24px rgba(63,171,220,.08); }
.map__roads path { fill: none; stroke: rgba(255,255,255,.22); stroke-width: 2; }
.map__btn { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); }
.map__coords { position: absolute; left: 14px; top: 12px; color: rgba(255,255,255,.6); }

/* =====================================================================
   FOOTER
   ===================================================================== */
.ftr { position: relative; background: var(--ink); color: var(--porcelain); padding-top: clamp(64px, 9vw, 130px); overflow: hidden; }
.ftr__cta { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; padding-bottom: clamp(48px, 7vw, 100px); border-bottom: 1px solid var(--line-dark); }
.ftr__cta .t-h1 .serif { font-weight: 300; }
.ftr__cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 32px; padding: 48px 0; }
.ftr__h { margin-bottom: 16px; color: var(--mute-on-dark); }
.ftr__cols li { margin-bottom: 9px; }
.ftr__cols a { color: rgba(243,240,234,.86); }
.ftr__cols a:hover { color: #fff; }
.ftr__word { position: relative; display: block; width: 100%; padding: 0 var(--pad); font-weight: 900; font-stretch: 125%; line-height: .78; letter-spacing: -.06em; font-size: 15vw; white-space: nowrap; text-align: center; color: var(--porcelain); user-select: none; margin-bottom: -1.2vw; }
.ftr__word .ch { display: inline-block; will-change: transform; }
.ftr__bar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 0 28px; color: var(--mute-on-dark); font-size: .82rem; border-top: 1px solid var(--line-dark); }
.ftr__made a { color: rgba(243,240,234,.86); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .3s var(--ease); }
.ftr__made a:hover, .ftr__made a:focus-visible { color: #fff; }
@media (max-width: 900px) { .ftr__cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .ftr__cols { grid-template-columns: 1fr; } }

/* =====================================================================
   DRAWER (inquiry list)
   ===================================================================== */
.drawer { position: fixed; inset: 0; z-index: 95; pointer-events: none; }
.drawer__veil { position: absolute; inset: 0; background: rgba(13,16,21,.5); opacity: 0; transition: opacity .45s var(--ease); }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(480px, 100%); background: var(--porcelain); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .65s var(--ease), box-shadow .65s var(--ease); }
.drawer.is-open { pointer-events: auto; }
.drawer.is-open .drawer__veil { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; box-shadow: -30px 0 80px -20px rgba(13,16,21,.4); } /* closed, the shadow leaked onto the right edge of every page */
.drawer__h { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.drawer__x { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; }
.drawer__x svg { width: 14px; height: 14px; }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 24px; overscroll-behavior: contain; }
.drawer__empty { padding: 48px 0; text-align: center; color: var(--graphite); display: grid; gap: 18px; justify-items: center; }
.drawer__f { padding: 18px 24px 24px; border-top: 1px solid var(--line); display: grid; gap: 10px; background: var(--paper); }
.li { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.li__img { width: 72px; height: 72px; background: var(--well); border-radius: 2px; overflow: hidden; }
.li__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.li__n { font-weight: 600; font-size: .92rem; line-height: 1.25; }
.li__m { color: var(--graphite); margin-top: 4px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 100px; height: 36px; }
.qty button { width: 32px; height: 34px; display: grid; place-items: center; font-size: 1rem; }
.qty input { width: 52px; text-align: center; border: 0; background: transparent; font-family: var(--f-mono); font-size: .8rem; padding: 0; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.li__x { font-size: .75rem; color: var(--graphite); margin-top: 6px; text-decoration: underline; text-underline-offset: 3px; }
.li__side { display: grid; justify-items: end; gap: 4px; }
.li__u { font-family: var(--f-mono); font-size: .65rem; color: var(--graphite); }

/* fly-to-list particle */
.fly { position: fixed; z-index: 9996; width: 14px; height: 14px; margin: -7px; background: var(--cobalt); transform: rotate(45deg); pointer-events: none; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 9993; transform: translate(-50%, calc(100% + 40px)); background: var(--ink); color: var(--porcelain); padding: 12px 18px; border-radius: 100px; display: flex; gap: 10px; align-items: center; font-size: .9rem; transition: transform .5s var(--ease); max-width: calc(100% - 32px); }
.toast.is-on { transform: translate(-50%, 0); }
.toast a { text-decoration: underline; text-underline-offset: 3px; }

/* =====================================================================
   PAGE HEAD (inner pages)
   ===================================================================== */
.phead { position: relative; padding: calc(var(--hdr) + clamp(48px, 9vw, 140px)) 0 clamp(36px, 5vw, 72px); }
.phead--dark { background: var(--ink); color: var(--porcelain); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 26px; color: var(--graphite); }
.phead--dark .crumbs { color: var(--mute-on-dark); }
.crumbs a:hover { color: var(--ink); }
.phead--dark .crumbs a:hover { color: #fff; }
.crumbs i { width: 4px; height: 4px; background: currentColor; transform: rotate(45deg); opacity: .6; }
.phead__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.phead__title .serif { font-weight: 300; }
.phead__lead { max-width: 40rem; margin-top: 22px; }

/* =====================================================================
   CATALOG
   ===================================================================== */
.cat { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); align-items: start; padding-bottom: clamp(80px, 10vw, 140px); }
.cat__side { position: sticky; top: calc(var(--hdr) + 20px); display: grid; gap: 26px; max-height: calc(100vh - var(--hdr) - 40px); overflow-y: auto; padding-right: 6px; scrollbar-width: thin; }
.cat__bar { position: sticky; top: var(--hdr); transition: top .6s var(--ease); z-index: 5; background: rgba(243,240,234,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 0; margin-bottom: 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.search { position: relative; flex: 1; min-width: 220px; }
.search input { width: 100%; height: 48px; border-radius: 100px; border: 1px solid var(--line-strong); background: var(--paper); padding: 0 18px 0 46px; font-size: .98rem; }
.search input:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(30,91,214,.15); }
.search svg { position: absolute; left: 17px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--graphite); }
.cat__count { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--graphite); white-space: nowrap; }
.cat__sort select { height: 48px; border-radius: 100px; border: 1px solid var(--line-strong); background: var(--paper); padding: 0 40px 0 16px; font-size: .9rem; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%230D1015' stroke-width='1.5'/></svg>"); background-repeat: no-repeat; background-position: right 16px center; }
.fgroup__h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.fgroup__list { display: grid; gap: 2px; }
.fopt { display: flex; align-items: center; gap: 10px; min-height: 34px; font-size: .92rem; cursor: pointer; padding: 2px 0; }
.fopt input { position: absolute; opacity: 0; pointer-events: none; }
.fopt__box { width: 16px; height: 16px; border: 1px solid var(--line-strong); border-radius: 2px; display: grid; place-items: center; flex: none; transition: background .2s, border-color .2s; }
.fopt__box::after { content: ''; width: 6px; height: 6px; background: #fff; transform: rotate(45deg) scale(0); transition: transform .25s var(--ease); }
.fopt input:checked + .fopt__box { background: var(--cobalt); border-color: var(--cobalt); }
.fopt input:checked + .fopt__box::after { transform: rotate(45deg) scale(1); }
.fopt input:focus-visible + .fopt__box { outline: 2px solid var(--cobalt); outline-offset: 2px; }
.fopt__n { margin-left: auto; font-family: var(--f-mono); font-size: .7rem; color: var(--graphite); }
.fopt--sw .fopt__sw { width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--line-strong); flex: none; }
.ctree a { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: .95rem; font-weight: 520; border-bottom: 1px solid transparent; }
.ctree a span { font-family: var(--f-mono); font-size: .7rem; color: var(--graphite); }
.ctree a[aria-current="true"] { font-weight: 700; color: var(--cobalt); }
.ctree ul { padding-left: 14px; border-left: 1px solid var(--line); margin: 2px 0 8px 2px; }
.ctree ul a { font-size: .88rem; font-weight: 460; padding: 5px 0 5px 4px; }
.cat__subs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 14px; margin-bottom: 4px; }
.cat__subs::-webkit-scrollbar { display: none; }
.fclear { font-size: .82rem; text-decoration: underline; text-underline-offset: 3px; color: var(--graphite); }
.fbtn { display: none; }
.cat__active { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 14px; }
.cat__active button { display: inline-flex; gap: 8px; align-items: center; height: 30px; padding: 0 10px; border-radius: 100px; background: var(--ink); color: var(--porcelain); font-size: .78rem; }
@media (max-width: 1000px) {
  .cat { grid-template-columns: 1fr; }
  .cat__side { position: fixed; inset: 0; z-index: 96; top: 0; max-height: none; background: var(--porcelain); padding: 20px var(--pad) 120px; transform: translateY(100%); transition: transform .6s var(--ease); }
  .cat__side.is-open { transform: none; }
  .fbtn { display: inline-flex; }
  .cat__side-close { display: flex !important; }
}
.cat__side-close { display: none; justify-content: space-between; align-items: center; position: sticky; top: -20px; background: var(--porcelain); padding: 8px 0 12px; z-index: 2; }
.cat__side-apply { display: none; }
@media (max-width: 1000px) { .cat__side-apply { display: inline-flex; justify-content: center; position: fixed; left: var(--pad); right: var(--pad); bottom: 20px; width: auto; z-index: 3; } }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: clamp(10px, 1.2vw, 18px); }
@media (max-width: 520px) { .grid { grid-template-columns: 1fr 1fr; gap: 10px; } }
.card { position: relative; display: flex; flex-direction: column; border-radius: 4px; background: var(--paper); border: 1px solid var(--line); overflow: hidden; transition: border-color .3s, box-shadow .4s var(--ease), transform .5s var(--ease); }
.card:hover { border-color: var(--line-strong); box-shadow: 0 24px 50px -28px rgba(13,16,21,.35); }
.card__img { position: relative; aspect-ratio: 1; background: var(--well); overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: scale-down; mix-blend-mode: multiply; transition: transform .9s var(--ease), opacity .5s; }
.card__img img.is-face { object-fit: cover; mix-blend-mode: normal; }
.card:hover .card__img img { transform: scale(1.05); }
.card__img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.45) 48%, transparent 66%); transform: translateX(-120%); transition: transform 1s var(--ease); pointer-events: none; mix-blend-mode: soft-light; }
.card:hover .card__img::after { transform: translateX(120%); }
.card__b { padding: 14px 14px 16px; display: grid; gap: 6px; flex: 1; align-content: start; }
.card__brand { min-height: 1.2em; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--graphite); }
.card__n { font-weight: 600; font-size: .93rem; line-height: 1.25; letter-spacing: -.005em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.card__tags span { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .04em; padding: 3px 6px; border-radius: 2px; background: var(--porcelain-2); color: var(--graphite); }
/* price from BizniSoft (only what is in stock) and the shop's mark for articles without a photo yet */
.card__price { margin-top: 6px; font-weight: 680; font-size: .92rem; letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: var(--ink); }
.card__img img.is-ph, .li__img img.is-ph { object-fit: contain; mix-blend-mode: normal; padding: 30%; opacity: .32; }
.card:hover .card__img img.is-ph { transform: none; }
.gal__main.is-ph { cursor: default; display: grid; place-items: center; }
.gal__main.is-ph img { position: static; width: 30%; height: auto; opacity: .3; mix-blend-mode: normal; }
.catc img.catc__ph { width: 40%; right: 10%; bottom: 26%; opacity: .22; mix-blend-mode: normal; }
@media (max-width: 900px) { .gal__main.is-ph { aspect-ratio: 2 / 1; } .gal__main.is-ph img { width: 22%; } .gal__ph-note { bottom: 10px; } }
.gal__ph-note { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--graphite); }
.card__add { position: absolute; top: 10px; right: 10px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center; transition: background .25s, color .25s, transform .4s var(--ease); }
.card__add svg { width: 14px; height: 14px; transition: transform .4s var(--ease); }
.card__add:hover { background: var(--ink); color: var(--porcelain); }
.card__add.is-in { background: var(--cobalt); color: #fff; border-color: var(--cobalt); }
.card__add.is-in svg { transform: rotate(45deg); }
.card__link::before { content: ''; position: absolute; inset: 0; z-index: 1; }
.grid__more { display: flex; justify-content: center; padding: 40px 0 0; }
.empty { padding: 80px 0; text-align: center; color: var(--graphite); display: grid; gap: 16px; justify-items: center; }

/* category landing (all categories) */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.2vw, 18px); margin-bottom: clamp(48px, 6vw, 80px); }
.catc { position: relative; aspect-ratio: .82; border-radius: 4px; overflow: hidden; background: var(--well); padding: 18px; display: flex; flex-direction: column; justify-content: space-between; isolation: isolate; }
.catc:nth-child(4n+2) { background: #E3E6EA; } .catc:nth-child(4n+3) { background: #EEE6DA; } .catc:nth-child(4n+4) { background: #E6E2EA; }
.catc img { position: absolute; z-index: -1; right: -6%; bottom: 10%; width: 78%; object-fit: contain; mix-blend-mode: multiply; transition: transform 1s var(--ease); }
.catc--tiles img { mix-blend-mode: normal; width: 64%; right: 10%; bottom: 16%; transform: rotate(-8deg); box-shadow: 0 30px 60px -24px rgba(13,16,21,.5); }
.catc:hover img { transform: translateY(-8px) rotate(-2deg) scale(1.04); }
.catc__n { font-weight: 780; font-stretch: 114%; font-size: clamp(1.3rem, 2vw, 1.9rem); line-height: .95; letter-spacing: -.035em; }
.catc__c { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--graphite); }
@media (max-width: 1000px) { .cats { grid-template-columns: repeat(2, 1fr); } }
/* narrow tiles: the product sits above the title instead of behind it */
@media (max-width: 640px) { .catc img { width: 58%; right: 4%; bottom: 36%; } .catc--tiles img { width: 54%; right: 12%; bottom: 40%; } .catc img.catc__ph { width: 36%; bottom: 46%; } }

/* =====================================================================
   PRODUCT
   ===================================================================== */
.pdp { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 72px); padding-top: calc(var(--hdr) + 28px); padding-bottom: clamp(64px, 8vw, 120px); align-items: start; }
.gal { display: grid; gap: 10px; position: sticky; top: calc(var(--hdr) + 16px); }
.gal__main { position: relative; aspect-ratio: 1; background: var(--well); border-radius: 4px; overflow: hidden; cursor: zoom-in; }
/* scale-down: a photo smaller than the frame shows at its own size instead of being blown up (many old-site photos are small) */
.gal__main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: scale-down; mix-blend-mode: multiply; transition: transform .2s ease-out; }
.gal__main.is-face img { object-fit: cover; mix-blend-mode: normal; }
.gal__main.is-zoom img { transform: scale(2); }
.gal__light { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(240px 240px at var(--lx, 50%) var(--ly, 40%), rgba(255,255,255,.35), transparent 70%); mix-blend-mode: soft-light; opacity: 0; transition: opacity .4s; }
.gal__main:hover .gal__light { opacity: 1; }
.gal__thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.gal__thumbs button { flex: none; width: 76px; height: 76px; background: var(--well); border-radius: 3px; overflow: hidden; border: 1px solid transparent; transition: border-color .25s; }
.gal__thumbs button[aria-current="true"] { border-color: var(--ink); }
.gal__thumbs img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.gal__count { position: absolute; left: 14px; bottom: 12px; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .06em; color: var(--graphite); }
.pdp__info { display: grid; gap: 24px; }
.pdp__brand { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pdp__title { font-weight: 740; font-stretch: 106%; font-size: clamp(1.9rem, 3.4vw, 3.3rem); line-height: .98; letter-spacing: -.035em; overflow-wrap: anywhere; }
.pdp__code { font-family: var(--f-mono); font-size: .8rem; color: var(--graphite); letter-spacing: .04em; }
.pdp__acts { display: grid; gap: 10px; }
.pdp__acts-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pdp__acts-row .btn { justify-content: center; }
.pdp__price { padding: 16px; border-radius: 4px; background: var(--porcelain-2); display: flex; gap: 14px; align-items: center; font-size: .92rem; }
.pdp__price .dia { color: var(--cobalt); width: 10px; height: 10px; }
.pdp__price.has-price { display: grid; gap: 8px; padding: 18px 20px; background: var(--paper); border: 1px solid var(--line); }
.pp__row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; }
.pp__val { font-weight: 680; font-stretch: 104%; font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1; letter-spacing: -.02em; }
.pp__unit { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .04em; color: var(--graphite); }
.pp__old { color: var(--mute); font-size: .95rem; }
.pp__off { font-family: var(--f-mono); font-size: .74rem; font-weight: 600; color: #fff; background: var(--closed); padding: 3px 7px; border-radius: 2px; }
.pp__box { font-size: .92rem; color: var(--graphite); }
.pp__box b { color: var(--ink); font-weight: 600; }
.pp__stock { display: flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 560; }
.pp__stock span { width: 8px; height: 8px; border-radius: 50%; background: var(--open); }
.pp__stock.is-out span { background: var(--mute); }
.pp__note { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .03em; color: var(--graphite); }
.pp__demo { color: var(--closed); font-weight: 600; }
.specs { width: 100%; border-collapse: collapse; }
.specs th, .specs td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .93rem; }
.specs th { width: 42%; font-family: var(--f-mono); font-weight: 500; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--graphite); padding-right: 16px; }
.feat { display: grid; gap: 8px; }
.feat li { display: flex; gap: 12px; font-size: .95rem; }
.feat li::before { content: ''; flex: none; width: 6px; height: 6px; background: var(--cobalt); transform: rotate(45deg); margin-top: .55em; }
.pdp__paras p + p { margin-top: 12px; }
.pdp__paras { color: var(--graphite); font-size: .95rem; }
.tcalc { padding: 20px; border: 1px solid var(--line-strong); border-radius: 4px; display: grid; gap: 14px; background: var(--paper); }
.tcalc__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 520px) { .tcalc__row { grid-template-columns: 1fr; } }
.tcalc__out { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tcalc__out div { padding: 12px; background: var(--porcelain-2); border-radius: 3px; }
.tcalc__out b { display: block; font-weight: 800; font-stretch: 112%; font-size: 1.6rem; letter-spacing: -.03em; line-height: 1; }
.tcalc__out span { display: block; margin-top: 6px; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; color: var(--graphite); }
.pdp__help { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: 4px; background: var(--ink); color: var(--porcelain); }
.pdp__help-av { width: 48px; height: 48px; border-radius: 50%; flex: none; background: var(--glaze); display: grid; place-items: center; }
.pdp__help-av svg { width: 22px; height: 22px; color: #fff; }
.pdp__help a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .pdp { grid-template-columns: 1fr; } .gal { position: relative; top: 0; } }
.related { padding-bottom: clamp(80px, 10vw, 140px); }
.related__h { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 9992; background: rgba(13,16,21,.94); display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .35s; }
.lb.is-open { opacity: 1; pointer-events: auto; }
.lb img { max-width: 92vw; max-height: 86vh; object-fit: contain; background: #fff; }
.lb__x { position: absolute; top: 18px; right: 18px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); color: #fff; display: grid; place-items: center; }
.lb__x svg { width: 16px; height: 16px; }

/* =====================================================================
   ABOUT / CONTACT / LIST
   ===================================================================== */
.story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 96px); }
.story__big { font-weight: 560; font-stretch: 104%; font-size: clamp(1.5rem, 2.6vw, 2.5rem); line-height: 1.15; letter-spacing: -.025em; }
.story__big .serif { font-weight: 320; }
.story__body p + p { margin-top: 18px; }
.story__body { color: var(--graphite); font-size: 1.05rem; max-width: 40rem; }
@media (max-width: 900px) { .story { grid-template-columns: 1fr; } }
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 32px); }
.tl { padding-top: 26px; border-top: 1px solid var(--line-dark); position: relative; }
.tl::before { content: ''; position: absolute; left: 0; top: -6px; width: 11px; height: 11px; background: var(--cyan); transform: rotate(45deg); }
.tl__y { font-weight: 800; font-stretch: 118%; font-size: clamp(2.6rem, 5vw, 4.6rem); line-height: .9; letter-spacing: -.05em; }
.tl__t { margin-top: 16px; font-weight: 650; font-size: 1.1rem; }
.tl__d { margin-top: 8px; color: var(--mute-on-dark); font-size: .95rem; }
@media (max-width: 900px) { .timeline { grid-template-columns: 1fr 1fr; row-gap: 40px; } }
@media (max-width: 520px) { .timeline { grid-template-columns: 1fr; } }
.extra { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.extra > span { display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 3px; background: var(--paper); border: 1px solid var(--line); font-weight: 560; }
.extra > span .dia { color: var(--cobalt); width: 7px; height: 7px; }

.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 96px); }
.cbox { display: grid; gap: 4px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.cbox__v { font-weight: 720; font-stretch: 106%; font-size: clamp(1.5rem, 2.6vw, 2.4rem); letter-spacing: -.03em; line-height: 1.05; }
.cbox__v a:hover { color: var(--cobalt); }
a[href^="tel:"] { white-space: nowrap; }
.cbox__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-weight: 650; font-size: clamp(1.05rem, 1.6vw, 1.35rem); letter-spacing: -.015em; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; width: 14px; height: 14px; flex: none; }
.faq summary i::before, .faq summary i::after { content: ''; position: absolute; left: 0; top: 50%; width: 100%; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq__a { padding: 0 0 24px; color: var(--graphite); max-width: 46rem; }

.list-page { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 72px); align-items: start; padding-bottom: clamp(80px, 10vw, 140px); }
.list-page__items { display: grid; }
.send { position: sticky; top: calc(var(--hdr) + 20px); display: grid; gap: 16px; padding: clamp(20px, 2.4vw, 32px); border-radius: 4px; background: var(--paper); border: 1px solid var(--line); }
.send__acts { display: grid; gap: 8px; }
.send__note { font-size: .82rem; color: var(--graphite); }
@media (max-width: 900px) { .list-page { grid-template-columns: 1fr; } .send { position: relative; top: 0; } }

/* 404 */
.nf { min-height: 100svh; display: grid; place-items: center; text-align: center; background: var(--ink); color: var(--porcelain); padding: var(--hdr) var(--pad) 40px; }
.nf__n { font-weight: 900; font-stretch: 125%; font-size: clamp(7rem, 30vw, 22rem); line-height: .8; letter-spacing: -.07em; }

/* =====================================================================
   REVEAL initial states (only when JS runs and motion is allowed)
   ===================================================================== */
.js.motion [data-reveal="up"]:not(.is-in) { opacity: 0; transform: translateY(40px); }
.js.motion [data-reveal="fade"]:not(.is-in) { opacity: 0; }
.js.motion [data-reveal="tile"]:not(.is-in) { opacity: 0; transform: translateY(50px) rotateX(-55deg); transform-origin: 50% 0; }
.js.motion [data-reveal="clip"]:not(.is-in) { clip-path: inset(100% 0 0 0); }
.js.motion [data-split] .line-inner { transform: translateY(105%); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .grain { display: none; }
}

@media print {
  .hdr, .ftr, .drawer, .cursor, .grain, .wipe, .pre, .menu { display: none !important; }
}

/* when the header slides away, sticky bars move up with it */
html:has(.hdr.is-hidden) .cat__bar { top: 0; }
html:has(.hdr.is-hidden) .cat__side { top: 20px; }
.cat__side { transition: top .6s var(--ease); }

/* floating list button: shows when the header is away and the list has items */
.list-fab { position: fixed; right: 18px; bottom: 18px; z-index: 89; display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 12px 0 18px; border-radius: 100px; background: var(--ink); color: var(--porcelain); font-weight: 600; font-size: .9rem; box-shadow: 0 20px 40px -18px rgba(13,16,21,.6); transform: translateY(140%); transition: transform .6s var(--ease); }
.list-fab .dia { width: 8px; height: 8px; color: var(--cyan); }
html.has-list:has(.hdr.is-hidden) .list-fab { transform: none; }
.drawer.is-open ~ .list-fab { transform: translateY(140%); }
