/* =========================================================
   RIO FURNITURES — site styles
   ---------------------------------------------------------
   Workshop look: concrete grey and charcoal, condensed headings,
   RIO orange as the accent. Photos are shown as taken.

   Contents
   1. Tokens (colours, type, spacing) — light and dark
   2. Base
   3. Type
   4. Buttons and links
   5. Header and footer
   6. Media (photos, placeholders)
   7. Shared pieces (cards, filters, forms, order builder)
   8. Pages (home, spaces, furniture, product, projects,
      about, my project, start a project, tracking)
   ========================================================= */

/* ---------- Typeface: Instrument Sans (open licence), served from /fonts ---------- */
@font-face { font-family: "Instrument Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/instrument-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/instrument-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/instrument-sans-latin-600-normal.woff2") format("woff2"); }

@font-face { font-family: "Barlow Condensed"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/barlow-condensed-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }

/* ---------- 1. Tokens ---------- */
:root {
  --paper: #d5d1ca;        /* workshop concrete: the page */
  --paper-2: #c9c5bd;      /* quiet bands */
  --paper-3: #bab5ac;      /* image frames */
  --ink: #1b1a18;          /* headings */
  --ink-soft: #33312d;     /* body text */
  --muted: #4b4842;        /* small supporting text */
  --line: rgba(27, 26, 24, .18);
  --line-2: rgba(27, 26, 24, .36);
  --accent: #9a3408;       /* orange dark enough to read as text on concrete */
  --brand: #ff5a1f;        /* RIO orange: buttons and marks on charcoal */
  --on-brand: #1b1a18;
  --night: #1b1a18;        /* charcoal: header, hero, workshop, footer */
  --on-night: #f2efe9;
  --on-night-soft: #c9c4bb;
  --on-night-muted: #9c968c;
  --header-bg: rgba(213, 209, 202, .95);   /* the sticky filter bar */
  --rope: #c9a77c;         /* warm rope tan: the workshop band */

  --font: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --max: 1360px;
  --nav-h: 72px;
  --gap: clamp(16px, 2vw, 28px);
  --space-section: clamp(80px, 9vw, 136px);
  --space-block: clamp(40px, 5vw, 72px);
  --ease: cubic-bezier(.22, .61, .2, 1);
}

[data-theme="dark"] {
  color-scheme: dark;
  --paper: #171614;
  --paper-2: #201e1c;
  --paper-3: #2c2a26;
  --ink: #f2efe9;
  --ink-soft: #cfc9be;
  --muted: #9c968c;
  --line: rgba(242, 239, 233, .13);
  --line-2: rgba(242, 239, 233, .26);
  --accent: #ff7a45;
  --night: #0e0d0c;
  --header-bg: rgba(23, 22, 20, .95);
  --rope: #3b2f22;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink-soft);
  font-family: var(--font); font-size: 16.5px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }
main { padding-top: var(--nav-h); }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 1000px; }
.section { padding: var(--space-section) 0; }
.band { background: var(--paper-2); }
.dark { background: var(--night); color: var(--on-night-soft); }
.dark .h-xl, .dark .h-l, .dark .h-m, .dark .h-s, .dark .ink, .dark .link { color: var(--on-night); }
.dark .meta, .dark .muted { color: #8f8a81; }

.row { display: flex; gap: 14px 20px; flex-wrap: wrap; align-items: center; }
.hide { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mt-s { margin-top: 16px; } .mt-m { margin-top: 32px; } .mt-l { margin-top: 56px; }

/* ---------- 3. Type: four levels, one family ---------- */
.h-xl, .h-l, .h-m, .h-s { color: var(--ink); font-weight: 500; }
.h-xl { font-size: clamp(36px, 4.7vw, 64px); line-height: 1.06; letter-spacing: -.026em; }
.h-l  { font-size: clamp(28px, 3.3vw, 46px); line-height: 1.1;  letter-spacing: -.022em; }
.h-m  { font-size: clamp(21px, 1.9vw, 26px); line-height: 1.2;  letter-spacing: -.012em; }
.h-s  { font-size: 17.5px; line-height: 1.3; letter-spacing: -.005em; }
.lead { font-size: clamp(17px, 1.3vw, 19.5px); line-height: 1.55; color: var(--ink-soft); max-width: 44ch; }
.meta { font-size: 13px; line-height: 1.4; color: var(--muted); }
.eyebrow { display: block; font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.small { font-size: 14px; }
.muted { color: var(--muted); }
.ink { color: var(--ink); }

.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; margin-bottom: var(--space-block); }
.head .lead { margin-top: 14px; }

/* ---------- 4. Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  font-size: 15px; font-weight: 500; white-space: nowrap;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), opacity .25s;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-line:hover { border-color: var(--ink); }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 14px; }
.btn[disabled] { background: transparent; border-color: var(--line-2); color: var(--muted); pointer-events: none; }
.btn .arr, .link .arr { display: inline-block; transition: transform .3s var(--ease); }
.btn:hover .arr, .link:hover .arr, a:hover > .link .arr { transform: translateX(3px); }
.dark .btn { background: var(--on-night); color: var(--night); border-color: var(--on-night); }
.dark .btn:hover { background: transparent; color: var(--on-night); }

.link {
  display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 500; font-size: 15px;
  text-decoration: underline; text-decoration-color: var(--line-2); text-decoration-thickness: 1px; text-underline-offset: 6px;
  transition: text-decoration-color .25s;
}
.link:hover { text-decoration-color: currentColor; }
.dark .link { text-decoration-color: rgba(247, 245, 240, .4); }
/* Fingers need bigger targets than a mouse does */
@media (pointer: coarse) {
  .link, .crumbs a, .foot-bottom a, .pj-item-foot a, .pj-item-foot button, .pj-actions .row button { min-height: 44px; display: inline-flex; align-items: center; }
  .facts .link { min-height: 36px; }
}

/* ---------- 5. Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--nav-h);
  background: var(--header-bg); border-bottom: 1px solid transparent;
  transition: height .3s var(--ease), background .3s, border-color .3s, color .3s;
}
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.site-header.scrolled { height: 60px; border-bottom-color: var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.logo { color: var(--ink); font-weight: 600; font-size: 21px; letter-spacing: .06em; }
.nav { display: flex; gap: 30px; align-items: center; margin-left: clamp(20px, 4vw, 64px); margin-right: auto; }
.nav a.nl { font-size: 15px; color: var(--ink-soft); padding: 6px 0; border-bottom: 1px solid transparent; transition: color .25s, border-color .25s; }
.nav a.nl:hover, .nav a.nl.active { color: var(--ink); }
.nav a.nl.active { border-bottom-color: currentColor; }
.nav .nav-cta { display: none; }
.header-right { display: flex; align-items: center; gap: 6px 18px; }
.proj-link { display: inline-flex; align-items: center; gap: 7px; font-size: 14.5px; color: var(--ink-soft); white-space: nowrap; transition: color .25s; }
.proj-link:hover { color: var(--ink); }
.proj-link .qty { font-size: 12px; font-weight: 500; min-width: 20px; height: 20px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 10px; background: var(--paper-3); color: var(--ink); }
.proj-link .qty.has { background: var(--accent); color: #fff; }
.proj-link .qty:not(.has) { display: none; }
.theme-btn { width: 44px; height: 44px; display: grid; place-items: center; color: var(--ink-soft); border-radius: 50%; transition: color .25s, background .25s; }
.theme-btn:hover { color: var(--ink); background: var(--paper-2); }
.theme-btn svg { width: 17px; height: 17px; }
.theme-btn .i-sun { display: none; }
[data-theme="dark"] .theme-btn .i-sun { display: block; }
[data-theme="dark"] .theme-btn .i-moon { display: none; }
.menu-btn { display: none; width: 40px; height: 40px; }
.menu-btn span { display: block; width: 22px; height: 1.5px; background: currentColor; margin: 6px auto; transition: transform .3s var(--ease); }

@media (max-width: 960px) {
  .nav { display: none; margin: 0; }
  .header-right { margin-left: auto; }
  .header-right > .btn { display: none; }
  .menu-btn { display: block; color: var(--ink); }
  body.menu-open { overflow: hidden; }
  body.menu-open .site-header { background: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; }
  body.menu-open .nav {
    display: flex; position: fixed; inset: var(--nav-h) 0 0 0; z-index: 70; overflow-y: auto;
    background: var(--paper); flex-direction: column; align-items: flex-start; gap: 0; padding: 12px var(--gutter) 40px;
  }
  body.menu-open .nav a.nl { width: 100%; font-size: 26px; font-weight: 500; letter-spacing: -.015em; color: var(--ink); padding: 18px 0; border-bottom: 1px solid var(--line); }
  body.menu-open .nav .nav-cta { display: inline-flex; margin-top: 32px; }
  body.menu-open .menu-btn span:first-child { transform: translateY(3.75px) rotate(45deg); }
  body.menu-open .menu-btn span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
}
@media (max-width: 420px) { .proj-link .pl-t { display: none; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: clamp(56px, 7vw, 96px) 0 32px; font-size: 15px; }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px clamp(32px, 6vw, 96px); }
.foot-brand .logo { font-size: 24px; }
.foot-brand p { margin-top: 10px; color: var(--muted); }
.site-footer li + li { margin-top: 6px; }
.site-footer li a { display: inline-block; padding: 3px 0; }
.site-footer a { transition: color .25s; }
.site-footer a:hover { color: var(--ink); }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; margin-top: clamp(48px, 6vw, 80px); padding-top: 22px; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .foot-top { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 460px) { .foot-top { grid-template-columns: 1fr; } }

/* ---------- 6. Media ----------
   Every photo sits in a .media frame with a fixed shape (--ar),
   so swapping a photo never changes the layout. A missing photo
   shows a quiet labelled placeholder instead of a broken image. */
.media { position: relative; overflow: hidden; background: var(--paper-2); aspect-ratio: var(--ar, 3 / 2); }
.media > img, .media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media.is-empty::after {
  content: attr(data-label); position: absolute; left: 20px; bottom: 16px; right: 20px;
  font-size: 12.5px; color: var(--muted);
}
.media.is-empty > img { display: none; }
/* Line drawings always sit on a light tile so every colour stays visible */
.is-drawing { background: #ece8e0; color: #5f5b54; }
a .media > img, a .media > video { transition: transform .9s var(--ease); }
a:hover .media > img, a:hover .media > video { transform: scale(1.025); }

/* Gentle fade as things enter the screen */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 7. Shared pieces ---------- */

/* Furniture cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(40px, 5vw, 72px) var(--gap); }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.card { display: block; }
.card-media { --ar: 4 / 5; display: grid; place-items: center; }
.card-media svg { width: 54%; position: relative; }
.card-body { padding-top: 16px; }
.card-body .meta { display: block; margin-top: 3px; }
@media (max-width: 1000px) { .cards.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .cards, .cards.four { gap: 32px 14px; } .card-body .h-s { font-size: 16px; } }

/* Page intro and filter bar */
.intro { padding: clamp(56px, 8vw, 120px) 0 var(--space-block); }
.intro .lead { margin-top: 20px; }
.filters { position: sticky; top: 60px; z-index: 20; background: var(--header-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.filters .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; }
.tabs { display: flex; gap: 0 26px; overflow-x: auto; scrollbar-width: none; padding: 6px 0; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button, .tabs a { font-size: 15px; color: var(--muted); white-space: nowrap; padding: 10px 0; border-bottom: 1px solid transparent; transition: color .25s, border-color .25s; }
.tabs button:hover, .tabs a:hover { color: var(--ink); }
.tabs .on { color: var(--ink); border-bottom-color: currentColor; }
.tabs.wrap-tabs { flex-wrap: wrap; overflow: visible; padding: 0; }
.select-line { border: 0; border-bottom: 1px solid var(--line-2); background: transparent; padding: 8px 0; font-size: 15px; color: var(--ink); border-radius: 0; }

/* Colour swatches */
.sw { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--line-2); flex: none; }
.sw[data-f="natural"], .sw[data-f="walnut"] { background-image: repeating-linear-gradient(100deg, rgba(0, 0, 0, .09) 0 1px, transparent 1px 5px) !important; }

/* Quantity stepper */
.qty { display: inline-flex; align-items: center; gap: 4px; }
.qty button { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; color: var(--ink); border: 1px solid var(--line); transition: border-color .2s, background .2s; }
.qty button:hover { border-color: var(--ink); }
.qty input { width: 64px; height: 44px; text-align: center; border: 0; background: transparent; font-size: 17px; font-weight: 500; color: var(--ink); -moz-appearance: textfield; border-radius: 0; }
.qty input:focus { outline: none; box-shadow: inset 0 -1.5px 0 var(--ink); }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty.sm button { width: 36px; height: 36px; font-size: 17px; }
.qty.sm input { width: 52px; height: 36px; font-size: 15px; }

/* Order builder: how many, in which colours */
.order { border: 1px solid var(--line-2); border-radius: 16px; padding: clamp(20px, 2.4vw, 32px); }
.order-head p { margin-top: 4px; }
.o-rows { margin-top: 16px; }
.o-row { display: grid; grid-template-columns: 22px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.o-row .sw { width: 20px; height: 20px; }
.o-row .nm { color: var(--ink); font-size: 16px; }
.o-total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 0 0; border-top: 1px solid var(--line-2); }
.o-total .n { font-size: 28px; font-weight: 500; color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.o-mix { min-height: 20px; margin-top: 4px; }
.o-add { display: grid; gap: 12px; margin-top: 22px; }
.o-add .target { display: flex; align-items: center; gap: 12px; }
.o-add .target select { flex: 1; min-width: 0; border: 0; border-bottom: 1px solid var(--line-2); background: transparent; padding: 10px 0; font-size: 15.5px; border-radius: 0; color: var(--ink); }
.o-add select:focus { outline: none; border-color: var(--ink); }
.o-note { font-size: 13.5px; color: var(--muted); }
.o-done { font-size: 15px; color: var(--ink); padding: 12px 14px; border-radius: 10px; background: var(--paper-2); display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; align-items: center; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 8px; }
.field > label, .field > .lbl { font-size: 13.5px; font-weight: 500; color: var(--ink); }
.input, .textarea, .select {
  width: 100%; border: 1px solid var(--line-2); border-radius: 10px; background: transparent;
  padding: 13px 14px; font-size: 16px; color: var(--ink); transition: border-color .2s;
}
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--ink); }
.textarea { min-height: 132px; resize: vertical; line-height: 1.5; }
.f-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px var(--gap); }
.dropzone { display: block; border: 1px dashed var(--line-2); border-radius: 10px; padding: 26px 20px; text-align: center; cursor: pointer; font-size: 15px; color: var(--ink-soft); transition: border-color .2s, background .2s; }
.dropzone .meta { display: block; margin-top: 4px; }
.dropzone:hover, .dropzone.drag { border-color: var(--ink); background: var(--paper-2); }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone { position: relative; }
.dropzone:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.files li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink); }
.files li button { color: var(--muted); font-size: 18px; line-height: 1; padding: 0 6px; }
.files li button:hover { color: var(--ink); }
@media (max-width: 700px) { .f-grid2 { grid-template-columns: 1fr; } .filters .wrap { flex-direction: column; align-items: stretch; gap: 0; } .filters .wrap > label { padding-bottom: 10px; } .filters .select-line { flex: 1; } }

/* Details list (specs, project facts) */
.facts > div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.facts dt { font-size: 14px; color: var(--muted); }
.facts dd { color: var(--ink); }
.facts ul { padding-left: 18px; list-style: disc; }
@media (max-width: 520px) { .facts > div { grid-template-columns: 1fr; gap: 2px; } }

/* Toast and modal */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 160%); z-index: 100;
  background: var(--night); color: var(--on-night); padding: 14px 20px; border-radius: 12px;
  display: flex; gap: 18px; align-items: center; font-size: 15px; max-width: calc(100% - 32px);
  transition: transform .4s var(--ease);
}
.toast.show { transform: translate(-50%, 0); }
.toast a { white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }
.modal { position: fixed; inset: 0; z-index: 95; display: none; }
.modal.open { display: block; }
.modal-bg { position: absolute; inset: 0; background: rgba(20, 18, 15, .5); }
.modal-card { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(600px, calc(100% - 32px)); max-height: calc(100% - 40px); overflow: auto; background: var(--paper); border-radius: 16px; padding: clamp(26px, 4vw, 44px); }
.modal-card h2 { margin: 8px 0; }
.modal-close { position: absolute; top: 12px; right: 14px; font-size: 26px; color: var(--ink); width: 44px; height: 44px; }
.summary { font-size: 14px; line-height: 1.65; background: var(--paper-2); border-radius: 10px; padding: 16px 18px; white-space: pre-wrap; max-height: 240px; overflow: auto; margin: 20px 0; color: var(--ink); }
.send-err:empty { display: none; }
.send-err { margin-top: 14px; }

/* ---------- 8. Pages ---------- */

/* ===== Home ===== */
.hero { position: relative; min-height: min(94svh, 960px); display: flex; align-items: flex-end; background: #2a2622; color: #fff; overflow: hidden; }
.hero-media { position: absolute; inset: 0; aspect-ratio: auto; background: #2a2622; }
.hero-media::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(20, 18, 15, .34) 0, rgba(20, 18, 15, 0) 22%), linear-gradient(to top, rgba(20, 18, 15, .62) 0, rgba(20, 18, 15, .18) 46%, rgba(20, 18, 15, 0) 70%); }
.hero-media.is-empty::after { color: rgba(255, 255, 255, .5); top: calc(var(--nav-h) + 16px); bottom: auto; z-index: 2; }
.hero-text { position: relative; z-index: 2; padding-top: calc(var(--nav-h) + 80px); padding-bottom: clamp(44px, 6vw, 88px); }
@media (max-width: 760px) { .hero { min-height: min(86svh, 720px); } }
.hero-text h1 { color: #fff; max-width: 14ch; }
.hero-text .lead { color: rgba(255, 255, 255, .9); margin-top: 18px; max-width: 38ch; }
.hero .btn { background: #fff; border-color: #fff; color: #1b1a18; }
.hero .btn:hover { background: transparent; color: #fff; }
.hero .btn-line { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.hero .btn-line:hover { border-color: #fff; }

/* The spaces walk: one large room, then two side by side, and again */
.walk { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-block) var(--gap); }
.space { display: block; }
.space.wide { grid-column: 1 / -1; }
.space .media { --ar: 4 / 5; }
.space.wide .media { --ar: 16 / 8; }
.space-cap { display: grid; grid-template-columns: 1fr auto; gap: 6px 24px; align-items: end; padding-top: 20px; }
.space-cap p { grid-column: 1; max-width: 46ch; }
.space-cap .link { grid-column: 2; grid-row: 1 / span 2; }
@media (max-width: 760px) {
  .walk { grid-template-columns: 1fr; }
  .space .media, .space.wide .media { --ar: 4 / 5; }
  .space-cap { grid-template-columns: 1fr; }
  .space-cap .link { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 10px; }
}

/* Bulk ordering */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px clamp(40px, 7vw, 120px); align-items: center; }
.sample { background: var(--paper); border-radius: 16px; padding: clamp(24px, 3vw, 40px); }
.sample li { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); color: var(--ink); }
.sample li span:first-child { display: inline-flex; align-items: center; gap: 12px; }
.sample .sample-total { border-top-color: var(--line-2); font-weight: 500; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Real projects on the home page */
.proofs { display: grid; grid-template-columns: 1.35fr 1fr; gap: var(--space-block) var(--gap); align-items: start; }
.proof .media { --ar: 3 / 2; }
.proof:first-child { grid-row: span 2; }
.proof:first-child .media { --ar: 4 / 5; }
.proof-cap { padding-top: 16px; display: grid; gap: 4px; }
.proof-cap .link { justify-self: start; margin-top: 8px; font-size: 14.5px; }
@media (max-width: 760px) { .proofs { grid-template-columns: 1fr; } .proof:first-child { grid-row: auto; } .proof:first-child .media { --ar: 4 / 5; } }

/* Workshop: material → build → finish → space */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.steps .media { --ar: 4 / 5; background: #2a2825; }
.steps figcaption { padding-top: 14px; }
.steps figcaption .meta { display: block; margin-top: 2px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; gap: 32px var(--gap); } }

/* Start-a-project panel */
.ask { display: grid; grid-template-columns: 1fr 1fr; gap: 40px clamp(40px, 7vw, 120px); align-items: start; }
.ask-list li { padding: 15px 0; border-top: 1px solid var(--line); color: var(--ink); font-size: 17px; }
.ask-list li:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 860px) { .ask { grid-template-columns: 1fr; } }

/* ===== Spaces ===== */
.room { padding: var(--space-block) 0; scroll-margin-top: 120px; }
.room + .room { border-top: 1px solid var(--line); }
.room > .media { --ar: 16 / 8; }
.room-head { display: grid; grid-template-columns: 1fr 1fr; gap: 20px clamp(32px, 6vw, 96px); align-items: start; padding: clamp(24px, 3vw, 40px) 0 var(--space-block); }
.room-head .row { margin-top: 24px; }
.room-needs { margin-top: 0; font-size: 14px; }
.room.plain .room-head { padding-top: 0; padding-bottom: 0; }
@media (max-width: 760px) { .room > .media { --ar: 4 / 5; } .room-head { grid-template-columns: 1fr; } }

/* ===== Furniture ===== */
.f-group { padding-top: var(--space-block); }
.f-group-head { margin-bottom: clamp(24px, 3vw, 40px); }
.f-custom { margin-top: var(--space-section); padding: clamp(28px, 4vw, 56px); border-radius: 16px; background: var(--paper-2); display: flex; justify-content: space-between; align-items: center; gap: 20px 40px; flex-wrap: wrap; }

/* ===== Product ===== */
.crumbs { padding: 22px 0 0; display: flex; gap: 8px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.prod { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px clamp(32px, 6vw, 104px); padding: 28px 0 var(--space-section); align-items: start; }
.p-stage-wrap { position: sticky; top: 84px; }
.p-stage { aspect-ratio: 1; background: var(--paper-2); position: relative; display: grid; place-items: center; overflow: hidden; }
.p-stage.is-photo { aspect-ratio: 4 / 5; }
.p-stage > svg { width: 56%; transition: opacity .25s; }
.p-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.p-stage .cap { position: absolute; left: 18px; bottom: 14px; }
.p-stage .turn-btn { position: absolute; right: 14px; bottom: 14px; z-index: 3; min-height: 40px; padding: 8px 16px; border-radius: 999px; background: var(--night); color: var(--on-night); font-size: 14px; font-weight: 500; }
.views { display: flex; gap: 6px 22px; flex-wrap: wrap; margin-top: 14px; }
.views button { font-size: 14px; color: var(--muted); padding: 4px 0; border-bottom: 1px solid transparent; }
.views button.on { color: var(--ink); border-color: currentColor; }
.p-info h1 { margin-top: 4px; }
.p-info .lead { margin-top: 18px; }
.p-block { margin-top: 36px; }
.p-custom { margin-top: 28px; display: flex; justify-content: space-between; gap: 12px 20px; align-items: center; flex-wrap: wrap; font-size: 15px; }
@media (max-width: 900px) { .prod { grid-template-columns: 1fr; } .p-stage-wrap { position: static; } }

/* ===== Projects ===== */
.story { padding: var(--space-block) 0; scroll-margin-top: 120px; }
.story + .story { border-top: 1px solid var(--line); }
.story .media { --ar: 16 / 9; }
.story-body { display: grid; grid-template-columns: 1fr 1fr; gap: 28px clamp(32px, 6vw, 96px); margin-top: clamp(24px, 3vw, 40px); align-items: start; }
.story-body .lead { margin-top: 14px; }
.story-thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.story-thumbs .media { --ar: 4 / 3; }
.story-thumbs .media:only-child { grid-column: 1 / -1; --ar: 3 / 2; }
.story-body .facts { margin-bottom: var(--gap); }
@media (max-width: 860px) { .story-body { grid-template-columns: 1fr; } .story .media { --ar: 4 / 3; } }

/* ===== About ===== */
.about-top { display: grid; grid-template-columns: 1fr 1fr; gap: 32px clamp(32px, 6vw, 96px); align-items: end; }
.about-top .lead + .lead { margin-top: 16px; }
.about-photo { --ar: 16 / 8; margin-top: var(--space-block); }
.how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px var(--gap); counter-reset: how; }
.how li { counter-increment: how; padding-top: 18px; border-top: 1px solid var(--line-2); }
.how li::before { content: counter(how); display: block; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.how li p { margin-top: 6px; font-size: 15px; }
.visit { display: grid; grid-template-columns: 1fr 1fr; gap: 28px clamp(32px, 6vw, 96px); align-items: end; }
@media (max-width: 860px) { .about-top, .visit { grid-template-columns: 1fr; } .how { grid-template-columns: 1fr 1fr; } .about-photo { --ar: 4 / 3; } }
@media (max-width: 480px) { .how { grid-template-columns: 1fr; } }

/* ===== My project ===== */
.pj-switch { padding: 18px 0; border-bottom: 1px solid var(--line); }
.pj-switch .tabs { padding: 0; align-items: center; }
.pj { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px clamp(32px, 5vw, 88px); padding: var(--space-block) 0 var(--space-section); align-items: start; }
.pj-name { width: 100%; border: 0; border-bottom: 1px solid var(--line-2); background: transparent; font-size: clamp(30px, 3.6vw, 48px); font-weight: 500; letter-spacing: -.022em; color: var(--ink); padding: 0 0 10px; line-height: 1.1; border-radius: 0; }
.pj-name:focus { outline: none; border-color: var(--ink); }
.pj-space { margin: 20px 0 44px; display: flex; gap: 4px 18px; align-items: center; flex-wrap: wrap; }
.pj-item { padding: 24px 0; border-top: 1px solid var(--line-2); }
.pj-item-head { display: grid; grid-template-columns: 76px 1fr auto; gap: 18px; align-items: center; margin-bottom: 12px; }
.pj-item-head .th { width: 76px; height: 76px; background: var(--paper-2); display: grid; place-items: center; overflow: hidden; }
.pj-item-head .th svg { width: 78%; }
.pj-item-head .th img { width: 100%; height: 100%; object-fit: cover; }
.pj-item-head .t { text-align: right; }
.pj-item-head .t .n { font-size: 24px; font-weight: 500; color: var(--ink); line-height: 1.1; display: block; font-variant-numeric: tabular-nums; }
.pj-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; padding-left: 94px; }
.pj-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.pj-row .nm { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 15px; }
.pj-row.zero .nm { color: var(--muted); }
.pj-item-foot { display: flex; justify-content: space-between; padding: 12px 0 0 94px; }
.pj-item-foot button, .pj-item-foot a, .pj-actions .row button { font-size: 14px; color: var(--muted); transition: color .2s; }
.pj-item-foot button:hover, .pj-item-foot a:hover, .pj-actions .row button:hover { color: var(--ink); }
.pj-empty { padding: 36px 0; border-top: 1px solid var(--line-2); }
.pj-empty p + p { margin-top: 8px; }
.pj-side { position: sticky; top: 84px; display: grid; gap: 32px; }
.pj-total .n { font-size: clamp(52px, 5.4vw, 76px); font-weight: 500; line-height: 1; color: var(--ink); letter-spacing: -.03em; display: block; margin: 6px 0 16px; font-variant-numeric: tabular-nums; }
.pj-total li { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink); }
.pj-tier { margin-top: 14px; }
.pj-actions { display: grid; gap: 12px; }
.pj-actions .row { justify-content: space-between; }
.save-state { font-size: 13px; color: var(--muted); }
.pj-new { padding: var(--space-block) 0 var(--space-section); max-width: 760px; }
.pj-new h1 { margin-bottom: 24px; }
.pj-new .pj-name { margin-top: 8px; }
.suggest { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.suggest button { font-size: 14px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-soft); transition: border-color .2s, color .2s; }
.suggest button:hover { border-color: var(--ink); color: var(--ink); }
@media (max-width: 960px) { .pj { grid-template-columns: 1fr; } .pj-side { position: static; } }
@media (max-width: 620px) { .pj-rows { grid-template-columns: 1fr; padding-left: 0; } .pj-item-foot { padding-left: 0; } .pj-item-head { grid-template-columns: 56px 1fr auto; } .pj-item-head .th { width: 56px; height: 56px; } }

/* ===== Start a project ===== */
.flow { display: grid; grid-template-columns: 1fr 2.2fr; gap: 32px clamp(32px, 6vw, 104px); padding-top: 8px; padding-bottom: var(--space-section); }
.flow-aside { position: sticky; top: 96px; align-self: start; }
.flow-steps { margin-top: 18px; }
.flow-steps li { padding: 7px 0; font-size: 15px; color: var(--muted); cursor: default; }
.flow-steps li.done { color: var(--ink-soft); cursor: pointer; }
.flow-steps li.on { color: var(--ink); font-weight: 500; }
.progress { height: 2px; background: var(--line); margin-top: 14px; position: relative; }
.progress span { position: absolute; left: 0; top: 0; height: 100%; background: var(--ink); transition: width .5s var(--ease); }
.f-step h2 { margin: 0 0 28px; }
.f-step .f-sub { margin: -16px 0 24px; color: var(--muted); }
.choices { border-top: 1px solid var(--line-2); }
.choice { display: grid; grid-template-columns: 28px 1fr auto; gap: 14px; align-items: center; width: 100%; text-align: left; min-height: 60px; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.choice .ring { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: border-color .2s; }
.choice .ring::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); transform: scale(0); transition: transform .2s var(--ease); }
.choice.sq .ring { border-radius: 4px; } .choice.sq .ring::after { border-radius: 2px; }
.choice .w { font-size: 19px; font-weight: 500; color: var(--ink); }
.choice .aside { font-size: 14px; color: var(--muted); text-align: right; max-width: 300px; }
.choice:hover .ring, .choice.on .ring { border-color: var(--ink); }
.choice.on .ring::after { transform: scale(1); }
.f-hint { margin-top: 20px; padding: 14px 16px; border-radius: 10px; background: var(--paper-2); font-size: 15px; max-width: 60ch; }
.f-fields { display: grid; gap: 28px; }
.f-foot { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 40px; flex-wrap: wrap; }
.f-foot .msg { font-size: 14.5px; color: var(--accent); }
@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; } .flow-aside { position: static; } .flow-steps { display: none; }
  .choice .aside { display: none; }
}

/* ===== Order tracking ===== */
.track-form { display: flex; gap: 12px; align-items: stretch; max-width: 540px; }
.track-input { font-size: 18px; letter-spacing: .04em; text-transform: uppercase; }
.track-msg { margin-top: 16px; min-height: 24px; }
.track-msg a { text-decoration: underline; text-underline-offset: 3px; }
.track-card { padding: var(--space-block) 0 var(--space-section); border-top: 1px solid var(--line-2); }
.track-head { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-end; }
.track-head h2 { margin-top: 8px; }
.track-now { display: flex; flex-direction: column; gap: 3px; text-align: right; }
.track-bar { height: 3px; background: var(--line); margin: 32px 0 8px; position: relative; border-radius: 2px; }
.track-bar span { position: absolute; left: 0; top: 0; height: 100%; background: var(--accent); border-radius: 2px; transition: width 1s var(--ease); }
.track-stages { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0 20px; }
.track-stages li { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.track-stages li.done { color: var(--ink-soft); }
.track-stages li.done::after { content: " ✓"; color: var(--accent); }
.track-stages li.now { color: var(--ink); font-weight: 500; }
.track-block { margin-top: 44px; }
.track-items, .track-log { margin-top: 12px; border-top: 1px solid var(--line-2); }
.track-items li { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.track-log li { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.track-help { margin-top: 44px; display: flex; gap: 12px 16px; flex-wrap: wrap; align-items: center; }
@media (max-width: 760px) {
  .track-form { flex-direction: column; }
  .track-now { text-align: left; }
  .track-stages { grid-template-columns: 1fr 1fr; }
  .track-items li { grid-template-columns: 1fr auto; } .track-items li .muted { grid-column: 1 / -1; grid-row: 2; font-size: 14px; }
  .track-log li { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- People who prefer less motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* Line drawings keep their light tile in dark mode too */
.p-stage.is-drawing, .th.is-drawing { background: #ece8e0; }
.p-stage.is-drawing .cap { color: #5f5b54; }


/* =========================================================
   WORKSHOP LOOK
   Everything below restyles the pieces above. Colours come
   from the tokens at the top of this file.
   ========================================================= */

/* ---------- Type ---------- */
.h-xl, .h-l, .h-m { font-family: var(--display); font-weight: 600; text-transform: uppercase; text-wrap: balance; }
.h-xl { font-size: clamp(44px, 6.6vw, 96px); line-height: .96; letter-spacing: .004em; }
.h-l  { font-size: clamp(34px, 4.3vw, 60px); line-height: 1; letter-spacing: .006em; }
.h-m  { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.05; letter-spacing: .02em; }
.h-s  { font-weight: 600; }
.eyebrow, .no { display: block; font-family: var(--display); font-weight: 500; text-transform: uppercase; letter-spacing: .16em; font-size: 16px; line-height: 1.3; color: var(--muted); }
.no { font-size: 15px; margin-bottom: 2px; }
.dark .eyebrow, .hero .eyebrow { color: var(--brand); }
.dark .meta, .dark .muted { color: var(--on-night-muted); }
.pj-name { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .006em; }
.shot-note { margin-top: var(--space-block); padding-top: 16px; border-top: 1px solid var(--line-2); font-size: 15px; color: var(--muted); }

/* ---------- Square, sturdy shapes ---------- */
.btn { border-radius: 0; font-weight: 600; }
.order, .sample, .modal-card, .f-custom, .summary, .o-done, .f-hint, .toast, .input, .textarea, .select, .dropzone, .skip,
.qty button, .suggest button, .p-stage .turn-btn, .theme-btn { border-radius: 0; }
.dark .btn, .hero .btn, .site-header .btn { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.dark .btn:hover, .hero .btn:hover, .site-header .btn:hover { background: transparent; color: var(--on-night); }
.dark .btn-line, .hero .btn-line { background: transparent; color: var(--on-night); border-color: rgba(242, 239, 233, .45); }
.dark .btn-line:hover, .hero .btn-line:hover { border-color: var(--on-night); }
.dark .link { text-decoration-color: rgba(242, 239, 233, .4); }

/* ---------- Header and footer: charcoal on every page ---------- */
.site-header { background: var(--night); }
.site-header.scrolled { border-bottom-color: rgba(242, 239, 233, .12); }
.site-header :is(.logo, .proj-link, .theme-btn, .menu-btn) { color: var(--on-night); }
.logo { font-family: var(--display); font-weight: 600; font-size: 30px; letter-spacing: .08em; line-height: 1; }
.proj-link:hover { color: #fff; }
.proj-link .qty.has { background: var(--brand); color: var(--on-brand); }
.theme-btn:hover { color: #fff; background: rgba(255, 255, 255, .12); }
@media (min-width: 961px) {
  .nav a.nl { color: var(--on-night-soft); }
  .nav a.nl:hover, .nav a.nl.active { color: var(--on-night); }
  .nav a.nl.active { border-bottom-color: var(--brand); }
}
@media (max-width: 960px) { body.menu-open .site-header { background: var(--night); } }

.site-footer { background: var(--night); color: var(--on-night-soft); border-top: 0; }
.site-footer .logo, .site-footer a:hover { color: var(--on-night); }
.site-footer .foot-brand .logo { font-size: 30px; }
.site-footer .foot-brand p, .site-footer .meta { color: var(--on-night-muted); }
.site-footer .foot-bottom { border-top-color: rgba(242, 239, 233, .14); }

/* ---------- Photos ---------- */
.media { background: var(--paper-3); }
.card-media { --ar: 4 / 3; }
/* A photo with a set crop is zoomed in on the furniture (see `crop` in js/data.js) */
.media > img.crop { inset: auto; height: auto; max-width: none; object-fit: fill; }
.p-stage.is-photo { aspect-ratio: 4 / 3; background: var(--paper-3); }
.p-stage img { object-fit: contain; }
.about-photo { --ar: 4 / 3; max-width: 760px; }

/* ---------- Home ---------- */
.hero { min-height: 0; display: block; background: var(--night); color: var(--on-night-soft); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px clamp(32px, 6vw, 88px); align-items: center; padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(56px, 7vw, 96px); }
.hero-text { padding: 0; }
.hero-text h1 { color: var(--on-night); max-width: 12ch; margin-top: 18px; }
.hero-text .lead { color: var(--on-night-soft); }
.hero-photo { width: 100%; max-width: 520px; justify-self: end; }
.hero-photo .media { --ar: 4 / 5; background: #2a2825; }
.hero-photo figcaption { margin-top: 12px; font-size: 14px; color: var(--on-night-muted); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-photo { justify-self: start; } }

.walk { grid-template-columns: repeat(4, 1fr); gap: 40px var(--gap); }
.space.wide { grid-column: auto; }
.space .media, .space.wide .media { --ar: 4 / 5; }
.space-cap { grid-template-columns: 1fr; }
.space-cap .link { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 8px; }
@media (max-width: 1000px) { .walk { grid-template-columns: 1fr 1fr; } }

.split .media { --ar: 4 / 5; max-width: 460px; }
.split .sample { margin-top: 28px; }

.proofs { grid-template-columns: repeat(3, 1fr); }
.proof:first-child { grid-row: auto; }
.proof .media, .proof:first-child .media { --ar: 4 / 3; }
@media (max-width: 760px) { .proofs { grid-template-columns: 1fr; } }

/* ---------- Spaces: photo beside the text, not across the page ---------- */
@media (min-width: 761px) {
  .room:not(.plain) { display: grid; grid-template-columns: minmax(0, 34%) 1fr; gap: var(--space-block) clamp(32px, 5vw, 80px); align-items: start; }
  .room:not(.plain) > .media { --ar: 4 / 5; }
  .room:not(.plain) > .room-head { grid-template-columns: 1fr; padding: 0; }
  .room:not(.plain) > .cards { grid-column: 1 / -1; }
}

/* ---------- Projects: photo beside the story ---------- */
@media (min-width: 861px) {
  .story { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
  .story .media { --ar: 4 / 3; }
  .story-body { grid-template-columns: 1fr; margin-top: 0; }
}

/* ---------- Logo: the workshop plate ----------
   Header: a small orange plate with RIO. Footer: the full plate (images/logo/). */
.site-header .logo { background: var(--brand); color: var(--on-brand); padding: 5px 11px 4px; font-size: 27px; letter-spacing: .05em; }
.foot-plate { display: block; width: 132px; }
.foot-plate img { display: block; width: 100%; height: auto; }

/* ---------- The warm band: the workshop, in the colour of the rope ---------- */
.warm { background: var(--rope); color: var(--ink-soft); }
.warm .meta, .warm .muted { color: var(--ink-soft); }
.warm .steps .media { background: rgba(27, 26, 24, .25); }

/* ---------- Prices (set by staff in the dashboard) ---------- */
.card-body .price { color: var(--ink); font-weight: 600; margin-top: 6px; }
.facts .price-note { display: block; margin-top: 2px; }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: var(--gap); align-items: start; }
.review { background: var(--paper); border: 1px solid var(--line); padding: clamp(20px, 2.4vw, 30px); display: grid; gap: 16px; }
.band .review { border-color: transparent; }
.stars { font-size: 20px; letter-spacing: 3px; line-height: 1; color: var(--accent); }
.stars i { font-style: normal; color: var(--line-2); }
.review-body { color: var(--ink); font-size: 17px; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.review-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.review-photos a { display: block; aspect-ratio: 1; background: var(--paper-3); overflow: hidden; }
.review-photos img { width: 100%; height: 100%; object-fit: cover; }
.review-by { font-size: 15px; overflow-wrap: anywhere; }
.review-by .meta { display: block; margin-top: 2px; }
.rate { display: flex; gap: 4px; }
.rate button { width: 48px; height: 48px; font-size: 34px; line-height: 1; color: var(--line-2); transition: color .15s; }
.rate button.on { color: var(--accent); }
.rate button:hover { color: var(--ink); }
.rv-thumbs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.rv-thumbs:empty { display: none; }
.rv-thumbs li { position: relative; width: 96px; height: 96px; background: var(--paper-3); }
.rv-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.rv-thumbs button { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; background: var(--night); color: var(--on-night); font-size: 18px; line-height: 1; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Categories that look like categories ----------
   Spaces on the home page are boxed tiles with a dark "See 5 pieces" bar,
   and the filter rows (furniture, projects, spaces) are buttons, so it is
   obvious there is more to open. */
.space { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line-2); }
.space .space-cap { padding: 16px 16px 14px; flex: 1; }
.space .go { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 48px; padding: 12px 16px; background: var(--ink); color: var(--paper); font-weight: 600; font-size: 15px; }
.space:hover .go .arr { transform: translateX(3px); }
.go .arr { display: inline-block; transition: transform .3s var(--ease); }
.head .lead { max-width: 40ch; }
.more-row { display: flex; justify-content: center; margin-top: var(--space-block); }
.more-row .btn { min-height: 54px; padding: 14px 32px; font-size: 16px; }

.filters .tabs { gap: 8px; padding: 12px 0; }
.filters .tabs button, .filters .tabs a { border: 1px solid var(--line-2); padding: 10px 16px; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 500; background: var(--paper); }
.filters .tabs button:hover, .filters .tabs a:hover { border-color: var(--ink); }
.filters .tabs .on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.k { font-family: var(--font); font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); }
.filters .tabs .on .k { color: inherit; opacity: .8; }
.f-group-head .k { margin-left: 8px; }

/* ---------- A little life ----------
   The top of the home page arrives in order, photos settle as they
   scroll into view, and one slow strip of words moves under the hero.
   All of it stops for people who have asked their device for less motion. */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes tick { to { transform: translateX(-50%); } }

.hero-text > * { animation: rise .8s var(--ease) both; }
.hero-text > :nth-child(1) { animation-delay: .05s; }
.hero-text > :nth-child(2) { animation-delay: .16s; }
.hero-text > :nth-child(3) { animation-delay: .30s; }
.hero-text > :nth-child(4) { animation-delay: .42s; }
.hero-photo { animation: rise 1s var(--ease) .25s both; }
.hero-photo .media > img { animation: settle 1.8s var(--ease) .25s both; }

.reveal .media > img, .reveal.media > img { transition: transform 1.3s var(--ease); }
.reveal:not(.in) .media > img, .reveal.media:not(.in) > img { transform: scale(1.07); }

.ticker { background: var(--night); color: var(--on-night-soft); border-top: 1px solid rgba(242, 239, 233, .14); overflow: hidden; white-space: nowrap; padding: 13px 0; }
.ticker-track { display: inline-flex; animation: tick 80s linear infinite; will-change: transform; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker span { font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: .14em; text-transform: uppercase; padding: 0 22px; display: inline-flex; align-items: center; gap: 44px; }
.ticker span::after { content: ""; width: 7px; height: 7px; background: var(--brand); transform: rotate(45deg); }   /* the only orange in the strip */

.space .go { transition: background .25s var(--ease), color .25s var(--ease); }
.space:hover .go { background: var(--brand); color: var(--on-brand); }
.card .card-body .h-s { transition: color .25s; }
.btn { transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), opacity .25s, transform .2s var(--ease); }
.btn:active { transform: translateY(1px) scale(.985); }

@media (prefers-reduced-motion: reduce) {
  .hero-text > *, .hero-photo, .hero-photo .media > img, .ticker-track { animation: none !important; }
  .reveal:not(.in) .media > img, .reveal.media:not(.in) > img { transform: none; }
}

/* ---------- Start a Project, front and centre ----------
   The main button at the top of the home page, an orange band half way
   down, and on phones a bar that stays at the bottom of every page. */
.hero-note { margin-top: 14px; font-size: 14.5px; color: var(--on-night-muted); }
.hero-text > :nth-child(5) { animation-delay: .52s; }
.hero .btn:not(.btn-line) { min-height: 54px; padding: 14px 28px; font-size: 16px; }

.cta-band { background: var(--brand); color: var(--on-brand); padding: clamp(40px, 5vw, 68px) 0; }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px 48px; flex-wrap: wrap; }
.cta-band .h-l, .cta-band .lead, .cta-band .link { color: var(--on-brand); }
.cta-band .lead { margin-top: 10px; max-width: 46ch; }
.cta-band .link { text-decoration-color: rgba(27, 26, 24, .45); }
.cta-band .btn { min-height: 54px; padding: 14px 28px; font-size: 16px; background: var(--on-brand); border-color: var(--on-brand); color: #f2efe9; }
.cta-band .btn:hover { background: transparent; color: var(--on-brand); }

.cta-bar { display: none; }
@media (max-width: 760px) {
  .cta-bar { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--night); border-top: 1px solid rgba(242, 239, 233, .16); }
  .cta-bar .btn { flex: 1 1 auto; min-height: 48px; background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
  .cta-bar .btn-line { flex: 0 0 auto; background: transparent; color: var(--on-night); border-color: rgba(242, 239, 233, .45); }
  body.has-cta-bar { padding-bottom: calc(69px + env(safe-area-inset-bottom, 0px)); }
  body.has-cta-bar .toast { bottom: 88px; }
  body.menu-open .cta-bar { display: none; }
}

/* ===== PREVIEW: full-screen hero + furniture tabs on the home page ===== */
.hero.hero-full { position: relative; display: flex; align-items: flex-end; min-height: min(100svh, 980px); background: var(--night); color: #fff; overflow: hidden; }
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-bg img { object-fit: cover; object-position: 50% 55%; }
.hero.hero-full::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(20,18,16,.55) 0%, rgba(20,18,16,.15) 32%, rgba(20,18,16,.55) 62%, rgba(20,18,16,.92) 100%); }
.hero-full-text { position: relative; z-index: 2; width: 100%; padding-top: calc(var(--nav-h, 64px) + 120px); padding-bottom: clamp(48px, 7vw, 96px); }
.hero-full-text h1 { color: #fff; max-width: 13ch; margin-top: 16px; }
.hero-full-text .lead { color: rgba(255,255,255,.88); max-width: 40ch; margin-top: 18px; }
.hero-full-text .hero-note { color: rgba(255,255,255,.7); }
.hero.hero-full .btn-line { color: #fff; border-color: rgba(255,255,255,.6); background: transparent; }
.hero.hero-full .btn-line:hover { border-color: #fff; }
@media (max-width: 860px) { .hero-bg img { object-position: 50% 62%; } .hero-full-text { padding-top: calc(var(--nav-h, 64px) + 220px); } }
.home-tabs { gap: 8px; margin: 0 0 28px; padding: 0; flex-wrap: wrap; overflow: visible; }
.home-tabs button { border: 1px solid var(--line-2); padding: 10px 16px; min-height: 44px; color: var(--ink); font-weight: 500; background: transparent; }
.home-tabs button:hover { border-color: var(--ink); }
.home-tabs .on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.hero-full-text .eyebrow { color: #fff; opacity: .85; }
@media (min-width: 861px) {
  .hero.hero-full::after { background:
    linear-gradient(90deg, rgba(20,18,16,.82) 0%, rgba(20,18,16,.55) 40%, rgba(20,18,16,.1) 75%),
    linear-gradient(180deg, rgba(20,18,16,.5) 0%, rgba(20,18,16,0) 30%, rgba(20,18,16,.55) 100%); }
}
#furniture .head { margin-bottom: 28px; }
/* A single piece shown whole in its card (cropped close in images/pieces/) */
.media > img.fit { object-fit: contain; background: var(--paper-2); }
.made-note { margin-top: 14px; padding: 12px 14px; border-left: 3px solid var(--brand); background: var(--paper-2); font-size: 15px; line-height: 1.5; color: var(--ink); }

/* ===== FURNITURE: featured piece, the first full screen ===== */
.feature { position: relative; min-height: calc(100svh - 60px); display: flex; align-items: center; overflow: hidden;
  background: radial-gradient(120% 90% at 30% 15%, #d0935c 0%, #bf8150 45%, #a96f44 100%); color: #1b1a18; }
.feature-grid { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 24px clamp(24px, 4vw, 64px); padding-top: clamp(32px, 5vw, 64px); padding-bottom: clamp(72px, 9vw, 112px); }
.feature-text { position: relative; z-index: 2; }
.feature .eyebrow { color: #1b1a18; opacity: .8; }
.feature h1 { color: #1b1a18; margin-top: 14px; }
.feature .lead { color: #2a1d12; max-width: 40ch; margin-top: 18px; }
.feature .btn { background: #1b1a18; border-color: #1b1a18; color: #fff; }
.feature .btn:hover { background: transparent; color: #1b1a18; }
.feature .btn-line { background: transparent; color: #1b1a18; border-color: rgba(27,26,24,.55); }
.feature .btn-line:hover { border-color: #1b1a18; background: rgba(27,26,24,.06); }
.feature-note { margin-top: 18px; font-size: 15px; color: #2a1d12; max-width: 44ch; }
.feature-photo { margin: 0; }
.feature-photo img { display: block; width: 100%; height: auto; max-height: calc(100svh - 120px); object-fit: contain;
  -webkit-mask-image: radial-gradient(closest-side, #000 78%, transparent 100%); mask-image: radial-gradient(closest-side, #000 78%, transparent 100%); }
.feature-cue { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #1b1a18; text-decoration: none; opacity: .75; }
.feature-cue span:last-child { font-size: 18px; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@media (prefers-reduced-motion: reduce) { .feature-cue span:last-child { animation: none; } }
@media (max-width: 860px) {
  .feature { align-items: flex-start; }
  .feature-grid { grid-template-columns: 1fr; padding-top: 8px; }
  .feature-photo { order: -1; margin: 0 -8px; }
  .feature-photo img { max-height: 46svh; margin: 0 auto; }
  .feature .row .btn { flex: 1 1 auto; justify-content: center; }
}
#all { scroll-margin-top: 60px; }
/* Home: the Rope Sofa as the first screen */
.feature-home h1 { max-width: 13ch; }
.feature-home .btn:first-child { background: var(--brand); border-color: var(--brand); color: #1b1a18; }
.feature-home .btn:first-child:hover { background: #1b1a18; border-color: #1b1a18; color: #fff; }
.feature-photo figcaption { text-align: center; font-size: 14px; color: #2a1d12; margin-top: -8px; }
.feature-photo a { display: block; }
