/* ==========================================================================
   Dev Crow Egg — Direction E "Gallery"
   A design museum and its shop. White, near-black, one signal red.
   ========================================================================== */

:root {
  --paper: #ffffff;
  --ink: #0b0b0b;
  --signal: #e10600;
  --plinth: #f2f2f2;
  --plinth-2: #e9e9e9;
  --rule: #e1e1e1;
  --mute: #666666;

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-text: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  --margin: 48px;
  --gutter: 24px;
  --hh: 68px;
  --max: 1680px;

  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

:root[lang="ar"] {
  --f-display: "Readex Pro", "Archivo", sans-serif;
  --f-text: "Readex Pro", "Instrument Sans", sans-serif;
}

@media (max-width: 1100px) { :root { --margin: 32px; --gutter: 20px; } }
@media (max-width: 700px)  { :root { --margin: 20px; --gutter: 14px; --hh: 58px; } }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hh) + 12px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: 16px;
  line-height: 1.5;
  font-feature-settings: "ss01", "tnum" 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
:lang(ar) { letter-spacing: 0 !important; }

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

::selection { background: var(--ink); color: var(--paper); }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.on-dark :focus-visible { outline-color: var(--paper); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; inset-inline-start: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 14px; font-size: 14px;
  transition: top .2s var(--ease);
}
.skip:focus { top: 12px; }

/* ---------- Layout primitives ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--margin); }
.g12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
@media (max-width: 700px) { .g12 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Type ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 600;
  font-stretch: 100%;
  letter-spacing: -0.055em;
  line-height: .84;
}
:lang(ar) .display { line-height: 1.15; font-weight: 600; }
:lang(ar) .hero__title, :lang(ar) .sell-hero__title { padding-bottom: 24px; }

.h2 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(44px, 6.6vw, 112px);
  letter-spacing: -0.05em;
  line-height: .9;
}
:lang(ar) .h2 { line-height: 1.2; font-size: clamp(36px, 5.4vw, 92px); }

.h3 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(20px, 1.7vw, 26px);
  letter-spacing: -0.025em;
  line-height: 1.08;
}
.lede { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.42; letter-spacing: -0.005em; max-width: 34ch; }
.small { font-size: 14px; line-height: 1.45; }
.caption {
  font-size: 12.5px; line-height: 1.4; letter-spacing: .01em; color: var(--mute);
}
.eyebrow {
  font-size: 12.5px; line-height: 1.35; letter-spacing: .02em; font-weight: 500;
  display: inline-flex; align-items: flex-start; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); flex: none; margin-top: .42em;
}
.num { font-family: var(--f-display); font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.signal { color: var(--signal); }
.dot { color: var(--signal); }

/* ---------- Buttons ---------- */
.btn {
  --bh: 52px;
  display: inline-flex; align-items: center; justify-content: space-between; gap: 28px;
  height: var(--bh); padding-inline: 20px 18px;
  font-family: var(--f-text); font-size: 15px; font-weight: 500; letter-spacing: -0.005em;
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
  white-space: nowrap;
}
.btn .arr { width: 16px; height: 16px; transition: transform .45s var(--ease); flex: none; }
:root[dir="rtl"] .btn .arr { transform: scaleX(-1); }
.btn:hover .arr { transform: translateX(4px); }
:root[dir="rtl"] .btn:hover .arr { transform: scaleX(-1) translateX(4px); }
.btn:hover { background: var(--paper); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.on-dark .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.on-dark .btn:hover { background: transparent; color: var(--paper); }
.btn--block { width: 100%; }

.textlink {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 2px; transition: background-size .45s var(--ease);
}
.textlink:hover { background-size: 0 1px; background-position: 100% 100%; }
:root[dir="rtl"] .textlink { background-position: 100% 100%; }
:root[dir="rtl"] .textlink:hover { background-position: 0 100%; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  height: var(--hh);
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.header-grid { height: 100%; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; }
.brand { grid-column: 1 / 4; display: inline-flex; align-items: center; gap: 10px; width: max-content; }
.brand__mark { width: 15px; height: 19px; fill: var(--ink); flex: none; }
.brand__name {
  font-family: "Archivo", sans-serif; font-weight: 700; font-size: 17px; letter-spacing: -0.04em; white-space: nowrap;
}
.brand__name .dot { margin-inline-start: 1px; }

.nav { grid-column: 4 / 9; display: flex; gap: 26px; font-size: 14px; }
.nav a { position: relative; padding-block: 6px; white-space: nowrap; }
.nav a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
:root[dir="rtl"] .nav a::after { transform-origin: left; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
:root[dir="rtl"] .nav a:hover::after, :root[dir="rtl"] .nav a[aria-current="page"]::after { transform-origin: right; }

.search { grid-column: 9 / 11; position: relative; display: flex; align-items: center; }
.search svg { position: absolute; inset-inline-start: 0; width: 15px; height: 15px; stroke: var(--ink); fill: none; stroke-width: 1.6; pointer-events: none; }
.search input {
  width: 100%; height: 34px; border: 0; border-bottom: 1px solid var(--rule); background: transparent;
  padding-inline: 24px 0; font-size: 14px; border-radius: 0; -webkit-appearance: none; appearance: none;
  transition: border-color .3s var(--ease);
}
.search input::placeholder { color: var(--mute); opacity: 1; }
.search input:hover, .search input:focus { border-bottom-color: var(--ink); }
.search input:focus-visible { outline-offset: 4px; }

.tools { grid-column: 11 / 13; display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.lang { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.lang button { color: var(--mute); padding: 4px 2px; transition: color .25s; }
.lang button[aria-pressed="true"] { color: var(--ink); font-weight: 600; }
.lang button:hover { color: var(--ink); }
.lang span { color: var(--rule); }
.lang button[lang="ar"] { font-family: "Readex Pro", sans-serif; }

.cart { position: relative; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; padding: 4px 0; }
.cart svg { width: 19px; height: 19px; flex: none; stroke: var(--ink); fill: none; stroke-width: 1.5; }
.cart__count {
  min-width: 20px; height: 20px; padding-inline: 5px; border-radius: 10px; display: inline-grid; place-items: center;
  font-family: "Archivo", sans-serif; font-weight: 600; font-size: 11.5px; font-variant-numeric: tabular-nums;
  background: var(--plinth); color: var(--ink); transition: background-color .3s, color .3s;
}
.cart.has-items .cart__count { background: var(--signal); color: #fff; }
.cart__count.bump { animation: bump .5s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.28); } 100% { transform: scale(1); } }

.menu-btn { display: none; font-size: 13px; font-weight: 600; padding: 6px 0; }

@media (max-width: 1240px) {
  .search { display: none; }
  .nav { grid-column: 4 / 10; }
  .tools { grid-column: 10 / 13; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .menu-btn { display: inline-block; }
  .brand { grid-column: 1 / 7; }
  .tools { grid-column: 7 / 13; gap: 16px; }
}
@media (max-width: 700px) {
  .header-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .brand { grid-column: 1 / 3; }
  .brand__name { font-size: 15.5px; }
  .tools { grid-column: 3 / 5; gap: 14px; }
  .cart > span.cart__label { display: none; }
}
@media (max-width: 380px) { .brand__name { font-size: 14.5px; } .tools { gap: 11px; } }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: var(--hh) 0 0 0; z-index: 49; background: var(--paper);
  padding: 28px var(--margin) 40px; display: flex; flex-direction: column; gap: 28px;
  overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; border-top: 1px solid var(--ink); }
.mobile-menu nav a {
  font-family: var(--f-display); font-weight: 600; font-size: 34px; letter-spacing: -0.045em; line-height: 1;
  padding-block: 18px; border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; align-items: baseline;
}
.mobile-menu nav a span { font-family: var(--f-text); font-size: 12px; letter-spacing: 0; color: var(--mute); font-weight: 400; }
.mobile-menu .search { display: flex; }
.mobile-menu .search input { height: 44px; font-size: 16px; }

/* ==========================================================================
   Reveal (JS adds .reveal-ready to html; GSAP handles the rest)
   ========================================================================== */
.mask { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.mask > span { display: block; }

/* ==========================================================================
   Sections
   ========================================================================== */
main { display: block; }
.section { padding-block: clamp(96px, 11vw, 168px); }
.section--tight { padding-block: clamp(72px, 8vw, 120px); }
.sec-head { row-gap: 22px; margin-bottom: clamp(48px, 6vw, 88px); }
.sec-head .rule { grid-column: 1 / -1; height: 1px; background: var(--ink); margin-bottom: 18px; transform-origin: left; }
:root[dir="rtl"] .sec-head .rule { transform-origin: right; }
.sec-head .eyebrow { grid-column: 1 / 4; align-self: start; padding-top: .5em; }
.sec-head .h2 { grid-column: 4 / 13; }
.sec-head .intro { grid-column: 4 / 9; color: var(--ink); }
.sec-head .aside { grid-column: 10 / 13; align-self: end; justify-self: end; text-align: end; }
@media (max-width: 700px) {
  .sec-head .eyebrow, .sec-head .h2, .sec-head .intro, .sec-head .aside { grid-column: 1 / -1; }
  .sec-head .aside { justify-self: start; text-align: start; }
}

/* ==========================================================================
   Hero — the gallery walk
   ========================================================================== */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; background: var(--paper); }
.hero__inner {
  position: relative; height: 100%;
  padding-top: calc(var(--hh) + 18px); padding-bottom: 30px;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
  grid-template-rows: auto auto 1fr auto;
}
.hero__stage { position: absolute; inset: var(--hh) 0 0 0; z-index: 0; }
.hero__stage canvas { width: 100% !important; height: 100% !important; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero__stage.is-live canvas { opacity: 1; }
.hero__fallback { position: absolute; inset: 0; display: grid; place-items: end center; padding-bottom: 2vh; }
.hero__stage.is-live .hero__fallback { display: none; }
.hero__fallback svg { height: 82%; width: auto; }

.hero__title {
  grid-column: 1 / -1; grid-row: 1; position: relative; z-index: 2;
  font-size: 160px; /* JS fits this to the column */
  white-space: nowrap; padding-bottom: 14px;
}
.hero__title .mask { padding-bottom: .1em; }
.hero__title::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: var(--ink);
}
.hero__lede { grid-column: 1 / 5; grid-row: 2; position: relative; z-index: 2; padding-top: 18px; }
.hero__lede .eyebrow { margin-bottom: 14px; }
.hero__lede p { font-size: 15px; line-height: 1.5; max-width: 30ch; }
.hero__lede .eyebrow { max-width: none; }

.hero__counter {
  grid-column: 10 / 13; grid-row: 2; position: relative; z-index: 2; padding-top: 18px;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
}
.counter__row { display: flex; align-items: center; gap: 14px; }
.counter__num { font-size: 12.5px; letter-spacing: .02em; }
.counter__num b { font-weight: 600; color: var(--ink); }
.counter__bars { display: flex; gap: 4px; }
.counter__bars i { display: block; width: 28px; height: 2px; background: var(--rule); position: relative; overflow: hidden; }
.counter__bars i::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleX(var(--p, 0)); transform-origin: left; }
:root[dir="rtl"] .counter__bars i::after { transform-origin: right; }
.counter__bars i.is-active::after { background: var(--signal); }
.counter__nav { display: flex; gap: 6px; }
.counter__nav button {
  width: 36px; height: 36px; border: 1px solid var(--rule); display: grid; place-items: center; background: var(--paper);
  transition: border-color .3s, background-color .3s;
}
.counter__nav button:hover { border-color: var(--ink); }
.counter__nav button:disabled { opacity: .35; cursor: default; border-color: var(--rule); }
.counter__nav svg { width: 14px; height: 14px; stroke: var(--ink); fill: none; stroke-width: 1.6; }
:root[dir="rtl"] .counter__nav svg { transform: scaleX(-1); }

.hero__actions { grid-column: 1 / 5; grid-row: 4; align-self: end; position: relative; z-index: 2; display: flex; flex-direction: column; gap: 22px; }
.hero__actions .row { display: flex; gap: 10px; flex-wrap: wrap; }
.scroll-hint { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--mute); }
.scroll-hint i { width: 1px; height: 26px; background: var(--rule); position: relative; overflow: hidden; }
.scroll-hint i::after { content: ""; position: absolute; inset-inline: 0; top: 0; height: 40%; background: var(--ink); animation: drip 2.4s var(--ease-io) infinite; }
@keyframes drip { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(260%); } }

/* Wall label (museum caption) */
.wall-label {
  grid-column: 10 / 13; grid-row: 4; align-self: end; position: relative; z-index: 2;
  background: rgba(255,255,255,.86); padding: 16px 0 0; border-top: 1px solid var(--ink);
}
.wall-label__inner { display: grid; gap: 2px; font-size: 13px; line-height: 1.42; }
.wall-label__no { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: 12.5px; }
.wall-label__no .num { font-weight: 600; letter-spacing: -0.01em; font-size: 13px; }
.wall-label__title { font-family: var(--f-display); font-weight: 600; font-size: 21px; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 4px; }
.wall-label__maker { font-weight: 500; }
.wall-label__meta { color: var(--mute); }
.wall-label__foot { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--rule); }
.wall-label__price { font-family: var(--f-display); font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }

/* Red dot sticker — a gallery's "acquired" mark */
.sticker {
  width: 11px; height: 11px; border-radius: 50%; background: var(--signal); display: inline-block; flex: none;
  transform: scale(0); transition: transform .5s cubic-bezier(.3,1.4,.5,1);
}
.is-acquired .sticker, .sticker.is-on { transform: scale(1); }

@media (max-width: 1100px) {
  .hero__lede { grid-column: 1 / 5; }
  .hero__counter { grid-column: 9 / 13; }
  .wall-label { grid-column: 9 / 13; }
  .hero__actions { grid-column: 1 / 6; }
}
@media (max-width: 700px) {
  .hero { min-height: 560px; }
  .hero__inner {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: auto auto minmax(0, 1fr) auto auto;
    padding-top: calc(var(--hh) + 12px); padding-bottom: 18px;
  }
  .hero__title { padding-bottom: 10px; }
  .hero__lede { grid-column: 1 / -1; grid-row: 2; padding-top: 10px; }
  .hero__lede .eyebrow { display: none; }
  .hero__lede p { font-size: 13.5px; max-width: none; }
  .hero__stage { position: relative; inset: auto; grid-column: 1 / -1; grid-row: 3; margin-inline: calc(var(--margin) * -1); min-height: 0; }
  .hero__counter { grid-column: 1 / -1; grid-row: 3; align-self: start; flex-direction: row; justify-content: space-between; align-items: center; padding-top: 12px; }
  .counter__bars i { width: 18px; }
  .counter__nav button { width: 34px; height: 34px; }
  .wall-label { grid-column: 1 / -1; grid-row: 4; padding-top: 10px; background: transparent; }
  .wall-label__no { margin-bottom: 4px; }
  .wall-label__title { font-size: 18px; margin-bottom: 0; }
  .wall-label__meta { display: none; }
  .wall-label__foot { margin-top: 8px; padding-top: 8px; }
  .hero__actions { grid-column: 1 / -1; grid-row: 5; margin-top: 14px; }
  .hero__actions .row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .hero__actions .btn { --bh: 48px; padding-inline: 14px; gap: 10px; font-size: 14px; }
  .scroll-hint { display: none; }
}

/* ==========================================================================
   How it works
   ========================================================================== */
.how__track { position: relative; }
.how__line { position: absolute; inset-inline: 0; top: 0; height: 1px; background: var(--rule); }
.how__dot {
  position: absolute; top: -5px; inset-inline-start: 0; width: 11px; height: 11px; border-radius: 50%;
  background: var(--signal); transform: translateX(0);
}
.how__steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gutter); }
.step { position: relative; padding-top: 34px; padding-inline-end: 12px; }
.step::before { content: ""; position: absolute; top: -4px; inset-inline-start: 0; width: 1px; height: 9px; background: var(--ink); }
.step__n { font-family: var(--f-display); font-weight: 500; font-size: clamp(72px, 8.2vw, 136px); letter-spacing: -0.06em; line-height: .8; display: block; margin-bottom: 30px; }
.step__pict { display: block; width: 52px; height: 52px; margin-bottom: 22px; }
.step__pict svg, [data-pict] svg { width: 100%; height: 100%; }
[data-pict] { display: block; flex: none; }
.dir [data-pict] { width: 44px; height: 44px; }
.trust [data-pict] { width: 36px; height: 36px; margin-bottom: 14px; }
.rules__list [data-pict] { width: 64px; height: 64px; }
.step h3 { margin-bottom: 10px; }
.step p { font-size: 15px; color: var(--ink); max-width: 30ch; opacity: .82; }
@media (max-width: 900px) { .how__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; } .how__line, .how__dot { display: none; } .step { border-top: 1px solid var(--rule); } }
@media (max-width: 460px) { .how__steps { grid-template-columns: 1fr; row-gap: 40px; } .step__n { font-size: 64px; margin-bottom: 18px; } }

.pict { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: square; stroke-linejoin: miter; }
.pict .f { fill: var(--ink); stroke: none; }
.pict .r { stroke: var(--signal); }
.pict .rf { fill: var(--signal); stroke: none; }

/* ==========================================================================
   Objects (product cards) — every object on a plinth, with a wall label
   ========================================================================== */
.obj { position: relative; display: flex; flex-direction: column; }
.obj__link { display: block; }
.obj__plinth { position: relative; aspect-ratio: 5 / 6; overflow: hidden; background: var(--paper); }
.obj__plinth .art { width: 100%; height: 100%; }
.art__obj { transition: transform .9s var(--ease); transform-box: fill-box; }
.art__cast { transition: opacity .9s var(--ease), transform .9s var(--ease); transform-box: fill-box; transform-origin: center; }
.obj:hover .art__obj, .obj__link:focus-visible .art__obj { transform: translateY(-7px); }
.obj:hover .art__cast, .obj__link:focus-visible .art__cast { opacity: .5; transform: scale(.86); }
.obj__label { padding-top: 16px; border-top: 1px solid var(--ink); display: grid; gap: 1px; font-size: 13px; line-height: 1.42; }
.obj__no { display: flex; align-items: center; gap: 8px; font-size: 12.5px; margin-bottom: 8px; color: var(--ink); }
.obj__no .num { font-weight: 600; transition: color .3s; }
.obj:hover .obj__no .num { color: var(--signal); }
.obj__title { font-family: var(--f-display); font-weight: 600; font-size: 19px; letter-spacing: -0.03em; line-height: 1.12; margin-bottom: 4px; }
.obj__maker { font-weight: 500; }
.obj__meta { color: var(--mute); }
.obj__buy { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--rule); }
.obj__price { font-family: var(--f-display); font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.add {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; height: 32px; padding-inline: 12px;
  border: 1px solid var(--rule); transition: border-color .3s, background-color .3s, color .3s;
}
.add svg { width: 11px; height: 11px; stroke: currentColor; stroke-width: 1.6; fill: none; }
.add:hover { border-color: var(--ink); }
.add.is-done { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.obj--lg .obj__title { font-size: clamp(20px, 1.9vw, 28px); }
.obj--lg .obj__plinth { aspect-ratio: 1 / 1; }

/* Collection layout */
.collection { row-gap: 56px; }
.collection__aside { grid-column: 1 / 4; align-self: start; position: sticky; top: calc(var(--hh) + 32px); display: grid; gap: 22px; }
.collection__aside .h2 { font-size: clamp(44px, 5vw, 84px); }
.collection__aside p { font-size: 15px; max-width: 28ch; }
.collection__grid { grid-column: 4 / 13; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 72px; }
.collection__grid .obj:nth-child(even) { margin-top: 120px; }
@media (max-width: 1100px) { .collection__aside { grid-column: 1 / 5; } .collection__grid { grid-column: 5 / 13; } }
@media (max-width: 900px) {
  .collection__aside { grid-column: 1 / -1; position: static; }
  .collection__grid { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .collection__grid { grid-template-columns: 1fr; row-gap: 56px; }
  .collection__grid .obj:nth-child(even) { margin-top: 0; }
}

/* Trending grid + index view */
.view-toggle { display: inline-flex; border: 1px solid var(--ink); }
.view-toggle button { font-size: 13px; padding: 8px 14px; font-weight: 500; transition: background-color .3s, color .3s; }
.view-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.shop__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 64px; }
@media (max-width: 1100px) { .shop__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .shop__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; } .obj__title { font-size: 16px; } .obj__label { font-size: 12px; } .add span { display: none; } .add { padding-inline: 10px; } }
.shop__index { display: none; border-top: 1px solid var(--ink); }
.shop.is-index .shop__grid { display: none; }
.shop.is-index .shop__index { display: block; }
.irow {
  display: grid; grid-template-columns: 1fr 4fr 3fr 2fr 1.4fr 1.6fr auto; gap: var(--gutter); align-items: center;
  padding-block: 18px; border-bottom: 1px solid var(--rule); font-size: 14px; position: relative;
}
.irow--head { font-size: 12px; color: var(--mute); padding-block: 12px; }
.irow .num { font-weight: 600; }
.irow__name { font-family: var(--f-display); font-weight: 600; font-size: clamp(18px, 1.9vw, 28px); letter-spacing: -0.035em; line-height: 1.05; transition: transform .5s var(--ease); }
.irow a.irow__link::after { content: ""; position: absolute; inset: 0; }
.irow:not(.irow--head):hover .irow__name { transform: translateX(10px); }
:root[dir="rtl"] .irow:not(.irow--head):hover .irow__name { transform: translateX(-10px); }
.irow:not(.irow--head):hover .num { color: var(--signal); }
.irow .add { position: relative; z-index: 1; }
.irow__price { font-family: var(--f-display); font-weight: 600; font-variant-numeric: tabular-nums; text-align: end; }
@media (max-width: 760px) {
  .irow { grid-template-columns: auto 1fr auto; row-gap: 4px; }
  .irow--head { display: none; }
  .irow > :nth-child(3), .irow > :nth-child(4), .irow > :nth-child(5) { display: none; }
  .irow .add { grid-column: 3; }
  .irow__price { grid-column: 2; grid-row: 2; text-align: start; font-size: 13px; }
}
.peek {
  position: fixed; z-index: 40; width: 240px; aspect-ratio: 5/6; pointer-events: none; background: var(--paper);
  box-shadow: 0 0 0 1px var(--rule); opacity: 0; transform: translate(-50%, -50%) scale(.96);
  transition: opacity .3s var(--ease), transform .4s var(--ease); left: 0; top: 0;
}
.peek.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.peek svg { width: 100%; height: 100%; }

/* ==========================================================================
   Categories — a floor directory
   ========================================================================== */
.dir { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.dir a {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px;
  padding: 30px 8px 30px 0; border-bottom: 1px solid var(--rule); min-height: 132px;
}
:root[dir="rtl"] .dir a { padding: 30px 0 30px 8px; }
.dir a:nth-child(3n+1), .dir a:nth-child(3n+2) { border-inline-end: 1px solid var(--rule); }
.dir a:not(:nth-child(3n+1)) { padding-inline-start: 28px; }
.dir .pict { width: 44px; height: 44px; transition: transform .6s var(--ease); }
.dir__name { font-family: var(--f-display); font-weight: 600; font-size: clamp(22px, 2.2vw, 34px); letter-spacing: -0.04em; line-height: 1.02; }
.dir__go { width: 22px; height: 22px; stroke: var(--ink); fill: none; stroke-width: 1.5; transition: transform .5s var(--ease), stroke .3s; }
:root[dir="rtl"] .dir__go { transform: scaleX(-1); }
.dir a:hover .dir__go { transform: translateX(6px); stroke: var(--signal); }
:root[dir="rtl"] .dir a:hover .dir__go { transform: scaleX(-1) translateX(6px); }
.dir a:hover .pict { transform: translateY(-3px); }
.dir a::before {
  content: ""; position: absolute; inset-inline-start: 0; bottom: -1px; height: 1px; width: 100%; background: var(--ink);
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease);
}
:root[dir="rtl"] .dir a::before { transform-origin: right; }
.dir a:hover::before { transform: scaleX(1); }
@media (max-width: 900px) {
  .dir { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dir a, .dir a:not(:nth-child(3n+1)) { border-inline-end: 0; padding-inline-start: 0; }
  .dir a:nth-child(odd) { border-inline-end: 1px solid var(--rule); }
  .dir a:nth-child(even) { padding-inline-start: 20px; }
}
@media (max-width: 560px) {
  .dir { grid-template-columns: 1fr; }
  .dir a, .dir a:nth-child(even) { border-inline-end: 0 !important; padding-inline-start: 0; min-height: 96px; padding-block: 22px; }
}

/* ==========================================================================
   Seller band (dark)
   ========================================================================== */
.band { background: var(--ink); color: var(--paper); }
.band .eyebrow::before { background: var(--paper); }
.band__grid { row-gap: 36px; align-items: end; }
.band__head { grid-column: 1 / 8; grid-row: 1; display: grid; gap: 28px; }
.band__title { font-size: clamp(56px, 8.4vw, 148px); }
.band__body { grid-column: 1 / 6; grid-row: 2; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.42; color: rgba(255,255,255,.86); max-width: 36ch; }
.band__stat { grid-column: 8 / 13; grid-row: 1 / 4; align-self: end; justify-self: end; text-align: end; }
.band__stat .big { font-family: "Archivo", sans-serif; font-weight: 600; font-size: clamp(120px, 17vw, 300px); letter-spacing: -0.07em; line-height: .78; color: var(--signal); display: block; font-variant-numeric: tabular-nums; }
.band__stat .caption { color: rgba(255,255,255,.7); margin-top: 18px; display: block; font-size: 13px; }
.band__cta { grid-column: 1 / 6; grid-row: 3; display: flex; gap: 10px; flex-wrap: wrap; }
.band .btn--ghost { color: var(--paper); border-color: rgba(255,255,255,.4); background: transparent; }
.band .btn--ghost:hover { border-color: var(--paper); background: var(--paper); color: var(--ink); }
@media (max-width: 900px) {
  .band__head, .band__body, .band__cta { grid-column: 1 / -1; grid-row: auto; }
  .band__stat { grid-column: 1 / -1; grid-row: auto; justify-self: start; text-align: start; }
}

/* ==========================================================================
   Trust points
   ========================================================================== */
.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gutter); }
.trust li { border-top: 1px solid var(--ink); padding-top: 22px; display: grid; gap: 10px; align-content: start; }
.trust h3 { font-family: var(--f-display); font-weight: 600; font-size: 19px; letter-spacing: -0.025em; line-height: 1.15; }
.trust p { font-size: 14px; color: var(--mute); max-width: 28ch; }
@media (max-width: 900px) { .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; } }
@media (max-width: 460px) { .trust { grid-template-columns: 1fr; row-gap: 30px; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { border-top: 1px solid var(--ink); padding-block: 56px 32px; font-size: 14px; }
.footer__grid { row-gap: 40px; }
.footer__brand { grid-column: 1 / 5; display: grid; gap: 16px; align-content: start; }
.footer__brand p { color: var(--mute); max-width: 30ch; }
.footer__col { grid-column: span 2; display: grid; gap: 8px; align-content: start; }
.footer__col h2 { font-size: 12.5px; font-weight: 600; margin-bottom: 8px; letter-spacing: .01em; }
.footer__col a { color: var(--ink); width: max-content; max-width: 100%; }
.footer__col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer__lang { grid-column: 11 / 13; }
.footer__base { display: flex; justify-content: space-between; gap: 20px; margin-top: 72px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 12.5px; color: var(--mute); flex-wrap: wrap; }
@media (max-width: 900px) {
  .footer__brand { grid-column: 1 / -1; }
  .footer__col { grid-column: span 3; }
  .footer__lang { grid-column: span 3; }
}
@media (max-width: 700px) { .footer__col, .footer__lang { grid-column: span 2; } }

/* ==========================================================================
   Product page
   ========================================================================== */
.crumbs { padding-top: calc(var(--hh) + 22px); font-size: 12.5px; color: var(--mute); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink); }
.pdp { padding-top: 18px; row-gap: 40px; align-items: start; }
.viewer { grid-column: 1 / 8; position: sticky; top: calc(var(--hh) + 16px); }
.viewer__stage { position: relative; height: min(78vh, 760px); min-height: 420px; background: var(--paper); border-top: 1px solid var(--ink); overflow: hidden; touch-action: none; cursor: grab; }
.viewer__stage:active { cursor: grabbing; }
.viewer__stage { transition: background-color .8s var(--ease); }
.viewer__stage.is-dark { background: #141312; }
.viewer__stage.is-dark .viewer__hint { color: rgba(255,255,255,.62); }
.viewer__stage.is-dark .viewer__hint svg { stroke: rgba(255,255,255,.62); }
.viewer__stage.is-dark .viewer__tools button:not([aria-pressed="true"]) { background: rgba(20,19,18,.7); color: #fff; border-color: rgba(255,255,255,.25); }
.viewer__stage.is-dark .viewer__tools button[aria-pressed="true"] { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.viewer__stage canvas { width: 100% !important; height: 100% !important; }
.viewer__stage .hero__fallback { pointer-events: none; }
.viewer__stage.is-live .hero__fallback { display: none; }
.viewer__tools { position: absolute; inset-inline-end: 0; top: 14px; display: flex; gap: 6px; z-index: 2; }
.viewer__tools button {
  height: 36px; min-width: 36px; padding-inline: 10px; border: 1px solid var(--rule); background: rgba(255,255,255,.9);
  font-size: 12.5px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: border-color .3s, background-color .3s, color .3s;
}
.viewer__tools button:hover { border-color: var(--ink); }
.viewer__tools button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.viewer__tools svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.viewer__hint { position: absolute; inset-inline-start: 0; top: 18px; transition: color .6s; z-index: 2; font-size: 12.5px; color: var(--mute); display: flex; align-items: center; gap: 10px; }
.viewer__hint svg { width: 18px; height: 18px; stroke: var(--mute); fill: none; stroke-width: 1.4; }
.figcap { display: flex; justify-content: space-between; gap: 20px; padding-top: 12px; border-top: 1px solid var(--rule); font-size: 12.5px; color: var(--mute); }
.figcap b { color: var(--ink); font-weight: 600; }
.figcap .num { white-space: nowrap; }

.buy { grid-column: 9 / 13; display: grid; gap: 0; }
.buy__no { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; padding-top: 16px; border-top: 1px solid var(--ink); }
.buy__no .num { font-weight: 600; }
.buy__title { font-size: clamp(44px, 4.6vw, 76px); margin-top: 22px; }
.buy__maker { margin-top: 18px; font-size: 15px; }
.buy__maker span { color: var(--mute); }
.buy__price { font-family: "Archivo", sans-serif; font-weight: 600; font-size: 30px; letter-spacing: -0.03em; margin-top: 26px; font-variant-numeric: tabular-nums; }
.buy__price small { font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--mute); margin-inline-start: 6px; font-family: var(--f-text); }
.buy__pod { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 14px; }
.buy__pod .sticker { transform: scale(1); width: 8px; height: 8px; }
.spec-row { display: grid; grid-template-columns: 1fr 2fr; gap: 16px; padding-block: 14px; border-top: 1px solid var(--rule); font-size: 14px; align-items: center; }
.spec-row:first-of-type { margin-top: 30px; }
.spec-row dt, .spec-row .k { color: var(--mute); font-size: 13px; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch {
  width: 38px; height: 38px; position: relative; border: 1px solid var(--rule);
  transition: border-color .3s;
}
.swatch i { position: absolute; inset: 4px; background: var(--c); }
.swatch[aria-checked="true"] { border-color: var(--ink); }
.swatch[aria-checked="true"]::after { content: ""; position: absolute; left: 50%; top: -9px; width: 5px; height: 5px; border-radius: 50%; background: var(--signal); transform: translateX(-50%); }
.swatch:hover { border-color: var(--ink); }
.swatch-name { font-size: 13px; margin-top: 8px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--rule); height: 44px; }
.qty button { width: 42px; height: 100%; display: grid; place-items: center; font-size: 18px; transition: background-color .25s; }
.qty button:hover { background: var(--plinth); }
.qty output { width: 44px; text-align: center; font-family: "Archivo", sans-serif; font-weight: 600; font-variant-numeric: tabular-nums; }
.buy__cta { margin-top: 26px; display: grid; gap: 12px; }
.buy__cta .btn { --bh: 58px; }
.buy__added { font-size: 13px; color: var(--mute); min-height: 20px; display: flex; align-items: center; gap: 8px; }
.buy__desc { margin-top: 44px; padding-top: 16px; border-top: 1px solid var(--ink); display: grid; gap: 14px; }
.buy__desc h2, .buy__specs h2 { font-size: 12.5px; font-weight: 600; letter-spacing: .01em; }
.buy__desc p { font-size: 15.5px; line-height: 1.55; max-width: 44ch; }
.buy__specs { margin-top: 40px; }
.buy__specs h2 { padding-top: 16px; border-top: 1px solid var(--ink); margin-bottom: 4px; }
.buy__specs dl { display: grid; }
.buy__specs .spec-row:first-of-type { margin-top: 10px; }
.buy__specs dd { font-variant-numeric: tabular-nums; }
@media (max-width: 1100px) { .viewer { grid-column: 1 / 7; } .buy { grid-column: 7 / 13; } }
@media (max-width: 860px) {
  .viewer { grid-column: 1 / -1; position: relative; top: 0; }
  .viewer__stage { height: 62vh; min-height: 360px; }
  .viewer__hint { top: auto; bottom: 12px; }
  .buy { grid-column: 1 / -1; }
}
.more { border-top: 1px solid var(--ink); }

/* ==========================================================================
   Sell page
   ========================================================================== */
.sell-hero { position: relative; min-height: 100svh; padding-top: calc(var(--hh) + 18px); padding-bottom: 40px; display: grid; }
.sell-hero__grid { grid-template-rows: auto 1fr auto; row-gap: 24px; }
.sell-hero__grid > :not(.sell-hero__stage) { position: relative; z-index: 2; }
.sell-hero__title { grid-column: 1 / -1; font-size: 150px; white-space: nowrap; padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.sell-hero__lede { grid-column: 1 / 5; grid-row: 2; padding-top: 6px; display: grid; gap: 22px; align-content: start; }
.sell-hero__lede .lede { max-width: 30ch; }
.sell-hero__no { grid-column: 1 / 5; grid-row: 3; align-self: end; display: grid; gap: 10px; }
.sell-hero__no ul { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.sell-hero__no li { display: flex; justify-content: space-between; gap: 14px; padding-block: 10px; border-bottom: 1px solid var(--rule); font-size: 14px; }
.sell-hero__no li span:last-child { color: var(--mute); text-align: end; }
.sell-hero .wall-label { grid-column: 10 / 13; grid-row: 3; }
.sell-hero__stage { position: absolute; inset: var(--hh) 0 0 0; z-index: 1; }
.sell-hero__stage canvas { width: 100% !important; height: 100% !important; opacity: 0; transition: opacity 1.2s var(--ease); }
.sell-hero__stage.is-live canvas { opacity: 1; }
.sell-hero__stage.is-live .hero__fallback { display: none; }
@media (max-width: 1100px) { .sell-hero .wall-label { grid-column: 8 / 13; } .sell-hero__lede, .sell-hero__no { grid-column: 1 / 6; } }
@media (max-width: 700px) {
  .sell-hero { min-height: auto; }
  .sell-hero__grid { grid-template-rows: auto auto 360px auto auto; }
  .sell-hero__lede { grid-column: 1 / -1; grid-row: 2; }
  .sell-hero__stage { position: relative; inset: auto; grid-column: 1 / -1; grid-row: 3; margin-inline: calc(var(--margin) * -1); height: 360px; }
  .sell-hero .wall-label { grid-column: 1 / -1; grid-row: 4; background: transparent; }
  .sell-hero__no { grid-column: 1 / -1; grid-row: 5; }
}

.steps6 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: var(--gutter); border-top: 1px solid var(--rule); }
.steps6 li { padding-top: 20px; display: grid; gap: 14px; align-content: start; position: relative; }
.steps6 li::before { content: ""; position: absolute; top: -1px; inset-inline-start: 0; width: calc(var(--line, 1) * 100%); height: 1px; background: var(--ink); }
.steps6 .n { font-family: "Archivo", sans-serif; font-weight: 500; font-size: clamp(56px, 6vw, 96px); letter-spacing: -0.06em; line-height: .8; margin-bottom: 18px; }
.steps6 h3 { font-family: var(--f-display); font-weight: 600; font-size: 18px; letter-spacing: -0.02em; line-height: 1.18; }
.steps6 p { font-size: 13.5px; color: var(--mute); }
@media (max-width: 1100px) { .steps6 { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 48px; border-top: 0; } .steps6 li { border-top: 1px solid var(--rule); } }
@media (max-width: 560px) { .steps6 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; } .steps6 .n { font-size: 52px; } }

/* Calculator */
.calc { row-gap: 48px; align-items: start; }
.calc__form { grid-column: 1 / 7; display: grid; gap: 0; border-top: 1px solid var(--ink); }
.calc__out { grid-column: 8 / 13; position: sticky; top: calc(var(--hh) + 24px); }
.field { padding-block: 26px; border-bottom: 1px solid var(--rule); display: grid; gap: 16px; }
.field__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.field__head label, .field__head .lbl { font-size: 14px; font-weight: 600; }
.field__val { font-family: "Archivo", sans-serif; font-weight: 600; font-size: 34px; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; line-height: 1; }
.field__val small { font-size: 14px; letter-spacing: 0; font-weight: 500; margin-inline-start: 4px; color: var(--mute); font-family: var(--f-text); }
.field__hint { font-size: 12.5px; color: var(--mute); display: flex; justify-content: space-between; }
.seg { display: inline-grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ink); width: max-content; }
.seg button { padding: 12px 22px; font-size: 14px; font-weight: 500; display: grid; gap: 2px; text-align: start; min-width: 150px; transition: background-color .3s, color .3s; }
.seg button small { font-size: 12px; opacity: .7; font-weight: 400; }
.seg button[aria-checked="true"] { background: var(--ink); color: var(--paper); }

input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; margin: 0;
  --fill: 20%;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 2px; background: linear-gradient(to right, var(--ink) var(--fill), var(--rule) var(--fill));
}
:root[dir="rtl"] input[type="range"]::-webkit-slider-runnable-track { background: linear-gradient(to left, var(--ink) var(--fill), var(--rule) var(--fill)); }
input[type="range"]::-moz-range-track { height: 2px; background: var(--rule); }
input[type="range"]::-moz-range-progress { height: 2px; background: var(--ink); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 18px; height: 18px; margin-top: -8px; background: var(--paper);
  border: 2px solid var(--ink); border-radius: 0; transition: transform .2s var(--ease);
}
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; background: var(--paper); border: 2px solid var(--ink); border-radius: 0; }
input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.15); }
input[type="range"]:focus-visible { outline-offset: 6px; }

.price-in { display: flex; align-items: center; border-bottom: 2px solid var(--ink); max-width: 320px; }
.price-in span { font-family: "Archivo", sans-serif; font-weight: 600; font-size: 22px; color: var(--mute); padding-inline-end: 10px; }
.price-in input {
  width: 100%; border: 0; background: transparent; font-family: "Archivo", sans-serif; font-weight: 600; font-size: 44px; letter-spacing: -0.04em;
  padding-block: 6px; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield;
}
.price-in input::-webkit-outer-spin-button, .price-in input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.price-in input:focus-visible { outline: none; }
.price-in:focus-within { border-bottom-color: var(--signal); }
.calc__msg { font-size: 14px; display: flex; gap: 10px; align-items: flex-start; min-height: 22px; }
.calc__msg[data-state="error"] { color: var(--signal); font-weight: 500; }
.calc__msg .linkbtn { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; color: var(--ink); }

.receipt { border-top: 1px solid var(--ink); }
.receipt__head { display: flex; justify-content: space-between; align-items: baseline; padding-block: 16px 12px; font-size: 12.5px; }
.receipt__head b { font-weight: 600; }
.rline { display: flex; justify-content: space-between; gap: 16px; padding-block: 9px; border-top: 1px solid var(--rule); font-size: 14px; }
.rline span:last-child { font-variant-numeric: tabular-nums; font-family: "Archivo", sans-serif; font-weight: 500; }
.rline .k small { color: var(--mute); font-size: 12px; margin-inline-start: 6px; }
.rline--sum { border-top: 1px solid var(--ink); font-weight: 600; }
.rline--min { border-top: 1px solid var(--ink); padding-block: 18px; align-items: baseline; }
.rline--min .k { font-size: 14px; font-weight: 600; }
.rline--min span:last-child { font-size: 40px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.split { margin-block: 22px 8px; }
.split__bar { display: flex; height: 10px; width: 100%; background: var(--plinth); overflow: hidden; }
.split__bar i { display: block; height: 100%; transition: flex-basis .6s var(--ease); flex: 0 0 0; }
.split__bar .c { background: var(--ink); }
.split__bar .m { background: #9a9a9a; }
.split__bar .u { background: #cfcfcf; }
.split__bar .s { background: var(--signal); }
.split__key { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 12px; color: var(--mute); }
.split__key span { display: inline-flex; align-items: center; gap: 6px; }
.split__key i { width: 8px; height: 8px; display: inline-block; }
.earn { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 8px; padding-block: 22px 8px; border-top: 1px solid var(--ink); margin-top: 18px; }
.earn .k { font-size: 14px; font-weight: 600; }
.earn .k small { display: block; font-weight: 400; color: var(--mute); font-size: 12.5px; margin-top: 3px; }
.earn .v { font-family: "Archivo", sans-serif; font-weight: 600; font-size: clamp(48px, 5vw, 76px); letter-spacing: -0.05em; line-height: .85; color: var(--signal); font-variant-numeric: tabular-nums; }
.earn .v.is-zero { color: var(--ink); }
.note { font-size: 12.5px; color: var(--mute); margin-top: 16px; }
@media (max-width: 900px) { .calc__form, .calc__out { grid-column: 1 / -1; } .calc__out { position: static; } }
@media (max-width: 460px) { .seg button { min-width: 0; padding-inline: 14px; } .seg { width: 100%; } }

/* File picker (calculator step 1) */
.field__head .lbl, .field__head label { display: inline-flex; align-items: center; }
.fno {
  display: inline-grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--ink); border-radius: 50%;
  font-family: 'Archivo', sans-serif; font-size: 11px; font-weight: 600; margin-inline-end: 10px; flex: none;
}
.drop {
  display: flex; align-items: center; gap: 18px; padding: 20px 22px; border: 1px dashed #b9b9b9;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.drop.is-over { border-color: var(--ink); background: #fafafa; }
.drop__pict { width: 34px; height: 34px; }
.drop__t { font-weight: 600; font-size: 15px; }
.drop.is-over .drop__pict .pict { stroke: var(--signal); }
.files { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.file {
  position: relative; display: grid; gap: 2px; align-content: start; text-align: start; padding-bottom: 12px;
  border: 1px solid var(--rule); background: var(--paper); transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.file__art { display: block; aspect-ratio: 1 / 1; overflow: hidden; pointer-events: none; }
.file__art svg { width: 100%; height: 100%; }
.file__name { font-size: 13px; font-weight: 600; padding-inline: 10px; line-height: 1.25; }
.file__meta { font-size: 11.5px; color: var(--mute); padding-inline: 10px; }
.file:hover { border-color: #9a9a9a; }
.file[aria-checked='true'] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.file::after {
  content: ''; position: absolute; top: 10px; inset-inline-end: 10px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--signal); transform: scale(0); transition: transform .45s cubic-bezier(.3,1.4,.5,1);
}
.file[aria-checked='true']::after { transform: scale(1); }
.est { font-size: 14px; line-height: 1.5; padding-top: 14px; border-top: 1px solid var(--rule); }
.est b { font-family: 'Archivo', sans-serif; font-weight: 600; font-variant-numeric: tabular-nums; }
.estnote { border-inline-start: 2px solid var(--ink); padding: 2px 0 2px 16px; padding-inline: 16px 0; }
.estnote h3 { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.estnote p { font-size: 13.5px; color: var(--mute); max-width: 62ch; line-height: 1.55; }
@media (max-width: 700px) { .files { grid-template-columns: repeat(2, minmax(0, 1fr)); } .drop { padding: 16px; } }

/* Material guide */
.matg { width: 100%; border-collapse: collapse; table-layout: fixed; }
.matg thead th, .matg thead td { padding: 0 24px 18px 0; text-align: start; vertical-align: bottom; border-bottom: 1px solid var(--ink); }
:root[dir='rtl'] .matg thead th, :root[dir='rtl'] .matg thead td, :root[dir='rtl'] .matg th[scope='row'], :root[dir='rtl'] .matg td { padding-right: 0; padding-left: 24px; }
.matg thead td { width: 25%; }
.matg__name { display: block; font-family: 'Archivo', sans-serif; font-weight: 600; font-size: clamp(64px, 8.5vw, 150px); letter-spacing: -0.065em; line-height: .78; }
.matg tbody tr { border-bottom: 1px solid var(--rule); }
.matg th[scope='row'] { text-align: start; font-size: 13px; font-weight: 600; padding: 20px 24px 20px 0; vertical-align: top; }
.matg td { padding: 20px 24px 20px 0; vertical-align: top; font-size: 15px; line-height: 1.5; }
.matg__line td { font-family: var(--f-display); font-weight: 600; font-size: clamp(20px, 2vw, 28px); letter-spacing: -0.03em; line-height: 1.15; padding-block: 26px; }
:lang(ar) .matg__line td { line-height: 1.45; }
.temp { display: block; position: relative; height: 30px; margin-bottom: 8px; max-width: 340px; background: linear-gradient(var(--rule), var(--rule)) 0 7px / 100% 1px no-repeat; }
.temp i { position: absolute; top: 2px; height: 11px; background: var(--ink); inset-inline-start: calc((var(--a) - 20) / 80 * 100%); width: calc((var(--b) - var(--a)) / 80 * 100%); }
.temp::before, .temp::after { position: absolute; top: 15px; font-size: 10.5px; color: var(--mute); font-variant-numeric: tabular-nums; }
.temp::before { content: '20°C'; inset-inline-start: 0; }
.temp::after { content: '100°C'; inset-inline-end: 0; }
.matg__notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); margin-top: 36px; }
.matg__notes p { border-top: 1px solid var(--ink); padding-top: 16px; font-size: 15px; }
.matg__notes b { font-weight: 600; }
@media (max-width: 760px) {
  .matg, .matg thead, .matg tbody, .matg tr { display: block; width: 100%; }
  .matg thead tr, .matg tbody tr { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; }
  .matg thead td { display: none; }
  .matg thead th { padding: 0 0 12px; }
  .matg th[scope='row'] { grid-column: 1 / -1; padding: 16px 0 6px !important; }
  .matg td { padding: 0 0 16px !important; font-size: 14px; }
  .matg__line td { font-size: 18px; padding-bottom: 18px !important; }
  .matg__notes { grid-template-columns: 1fr; }
}

/* Rules */
.rules { row-gap: 40px; }
.rules__lead { grid-column: 1 / 6; font-family: var(--f-display); font-weight: 600; font-size: clamp(28px, 3vw, 46px); letter-spacing: -0.04em; line-height: 1.04; }
.rules__list { grid-column: 7 / 13; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.rules__list li { border-top: 1px solid var(--ink); padding-top: 18px; display: grid; gap: 14px; align-content: start; }
.rules__list .pict { width: 64px; height: 64px; }
.rules__list h3 { font-size: 15px; font-weight: 600; line-height: 1.3; }
.rules__list p { font-size: 13px; color: var(--mute); }
@media (max-width: 900px) { .rules__lead, .rules__list { grid-column: 1 / -1; } }
@media (max-width: 560px) { .rules__list { grid-template-columns: 1fr; } .rules__list li { grid-template-columns: 64px 1fr; align-items: start; column-gap: 18px; } .rules__list li > div { display: grid; gap: 6px; } }

.endcta { text-align: start; }
.endcta .g12 { row-gap: 32px; align-items: end; }
.endcta__title { grid-column: 1 / 10; font-size: clamp(52px, 8vw, 140px); }
.endcta__go { grid-column: 10 / 13; justify-self: end; }
@media (max-width: 900px) { .endcta__title, .endcta__go { grid-column: 1 / -1; justify-self: start; } }

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

/* ---------- See it in your room (shared module: ../shared/room-view) ---------- */
:root {
  --rv-bg: #ffffff;
  --rv-surface: #f2f2f2;
  --rv-text: #0b0b0b;
  --rv-muted: #666666;
  --rv-line: #e1e1e1;
  --rv-accent: #0b0b0b;
  --rv-accent-text: #ffffff;
  --rv-radius: 0px;
  --rv-font: var(--f-text);
  --rv-font-display: var(--f-display);
}
.room-cta { display: grid; gap: 8px; }
.btn--room .cube { width: 19px; height: 19px; flex: none; }
.room-cta__note { font-size: 13px; color: var(--mute); }
