/* Akira Furniture — Shade Card catalogue
   One world: forest board, white paper, each sofa's own colour, lime for the live action only. */

:root {
  --forest: #013300;
  --forest-2: #0C4A0A;
  --lime: #2CEE35;
  --lime-hi: #5DF263;
  --ink: #0A140B;
  --ink-2: #3D4C3E;
  --paper: #FFFFFF;
  --stage-base: #EDF0EB;
  --wash: #EDF0EB;
  --rule: rgba(1, 51, 0, .16);
  --rule-strong: rgba(1, 51, 0, .32);
  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --nav-h: 80px;
  --gutter: clamp(16px, 4vw, 56px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  background-color: color-mix(in oklab, var(--wash) 11%, var(--stage-base));
  transition: background-color 1.1s var(--ease-out);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--forest);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--forest); color: #fff; }
:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; }
html { scrollbar-color: rgba(1, 51, 0, .35) transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(1, 51, 0, .3); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }

.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: absolute; left: 12px; top: -60px; z-index: 50; background: var(--forest); color: #fff;
  padding: 10px 16px; text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Navigation ---------- */

.site-nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--gutter);
  /* No positioning or z-index here: a stacking context would stop the logo's
     multiply blend from reaching the stage colour behind it. */
}
.brand { display: block; height: 58px; flex: none; }
.brand__logo { height: 100%; width: auto; display: block; }
.brand__logo.is-on-white { mix-blend-mode: multiply; }
.brand__text { font-weight: 800; font-size: 24px; color: var(--forest); text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 3vw, 40px); }
.nav-links a {
  color: var(--forest);
  text-decoration: none;
  font-weight: 560;
  font-size: 15px;
  letter-spacing: .01em;
  padding: 8px 0;
  background: linear-gradient(var(--forest), var(--forest)) left bottom / 0 2px no-repeat;
  transition: background-size .45s var(--ease-out);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { background-size: 100% 2px; }
.nav-links .nav-links__wa {
  display: grid; place-items: center; width: 42px; height: 42px; padding: 0;
  border: 1.5px solid var(--rule-strong); border-radius: 50%; background: none;
  transition: border-color .3s, background-color .3s;
}
.nav-links .nav-links__wa:hover { border-color: var(--forest); background: rgba(1, 51, 0, .06); }

/* ---------- Buttons ---------- */

.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  height: var(--h); padding: 0 1.4em;
  border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 640; font-size: 15px; letter-spacing: .01em; line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .25s var(--ease-out), border-color .25s var(--ease-out), transform .25s var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn--live { background: var(--lime); color: var(--forest); }
.btn--live:hover { background: var(--lime-hi); }
.btn--line { border-color: var(--rule-strong); color: var(--forest); background: transparent; }
.btn--line:hover { border-color: var(--forest); background: rgba(1, 51, 0, .05); }
.btn--solid { background: var(--forest); color: #fff; }
.btn--solid:hover { background: var(--forest-2); }
.btn--wide { width: 100%; }
.btn[disabled] { opacity: .55; cursor: progress; }
.btn .icon { width: 1.2em; height: 1.2em; }
.page a *, .page button * { pointer-events: none; }

/* ---------- Book stage ---------- */

body.is-book { height: 100svh; overflow: hidden; }
body.is-book .site-foot { display: none; }
.book-stage {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 4px var(--gutter) 18px;
}
.book-area { position: relative; min-height: 0; display: grid; place-items: center; }
.book-frame { width: 100%; max-width: 100%; }
.book-frame.is-ready { transition: transform .9s var(--ease-out); }
.book-frame.is-front { transform: translateX(-25%); }
.book-frame.is-back { transform: translateX(25%); }
.book { margin: 0 auto; }

/* Pages are containers, so everything on them scales with the page. */
.page {
  container-type: size;
  background: var(--paper);
  overflow: hidden;
  color: var(--ink);
}
.page::before, .page::after { content: ""; position: absolute; top: 0; bottom: 0; width: 7cqw; pointer-events: none; z-index: 3; }
.page--left::after { right: 0; background: linear-gradient(to left, rgba(10, 20, 11, .13), rgba(10, 20, 11, 0)); }
.page--right::before { left: 0; background: linear-gradient(to right, rgba(10, 20, 11, .13), rgba(10, 20, 11, 0)); }
/* Single pages are bound on the left, like the right-hand page of an open book. */
.is-portrait .page::after { display: none; }
.is-portrait .page:not(.page--cover)::before { left: 0; background: linear-gradient(to right, rgba(10, 20, 11, .1), rgba(10, 20, 11, 0)); }
/* Until book.js picks the page set and starts an engine, keep the pages out of view. */
.book:not(.stf__parent):not(.book--simple):not(.book--leaf) .page { display: none; }

/* Phone leaf: one page at a time, bound at the left edge. A turn folds the page over
   like paper: the corner lifts first, the folded part shows the paper's back, and the
   page beneath sits in the lifted sheet's shadow. The book clips everything to the page,
   so the turn never leaves it. Depth exists only while a page moves. */
.book--leaf {
  position: relative; width: 100%; aspect-ratio: var(--page-ratio, 3 / 4);
  overflow: hidden;
  -webkit-user-select: none; user-select: none;
}
.book--leaf .page { position: absolute; inset: 0; visibility: hidden; }
.book--leaf .page.is-current, .book--leaf .page.is-under, .book--leaf .page.is-turning { visibility: visible; }
.book--leaf .page.is-current, .book--leaf .page.is-under { z-index: 1; }
.book--leaf .page.is-turning { z-index: 3; }
.book--leaf img { -webkit-user-drag: none; }
.leaf-cast { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; }
.leaf-flap-wrap {
  position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0;
  filter: drop-shadow(-6px 2px 10px rgba(10, 20, 11, .22));
}
.leaf-flap { position: absolute; inset: 0; background-color: #fff; }

.folio {
  position: absolute; bottom: 4cqw; z-index: 4;
  font-size: clamp(10px, 2.3cqw, 13px); font-stretch: 80%; font-weight: 520;
  font-variant-numeric: tabular-nums; letter-spacing: .06em; color: var(--ink-2);
}
.page--left .folio { left: 6cqw; }
.page--right .folio { right: 6cqw; }
.is-portrait .page--left .folio { left: auto; right: 6cqw; }

/* Cover and back cover: forest board */
.page--cover { background: var(--forest); color: #fff; }
.cover {
  position: absolute; inset: 0;
  padding: 10cqw 19cqw 9cqw 10cqw;
  display: flex; flex-direction: column; align-items: flex-start;
}
.cover__label { background: #fff; width: 38cqw; padding: 4cqw 4.5cqw; }
.cover__label img { display: block; width: 100%; height: auto; }
.cover__title {
  margin: auto 0 0; font-size: clamp(26px, 12.4cqw, 84px); line-height: .94;
  font-weight: 760; font-stretch: 118%; letter-spacing: -.035em; text-wrap: balance;
}
.cover__edition {
  margin: 1.5cqw 0 0; font-size: clamp(24px, 12.4cqw, 84px); line-height: .94;
  font-weight: 200; font-stretch: 118%; letter-spacing: -.03em; font-variant-numeric: lining-nums;
}
.cover__note { margin: 5cqw 0 0; font-size: clamp(12px, 3cqw, 17px); font-weight: 450; letter-spacing: .01em; }
.cover__open {
  margin-top: 7cqw; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: .6em;
  height: clamp(38px, 9cqw, 54px); padding: 0 clamp(16px, 5cqw, 28px); border-radius: 999px;
  background: var(--lime); color: var(--forest);
  font-size: clamp(13px, 3.1cqw, 17px); font-weight: 680;
  transition: background-color .25s var(--ease-out), gap .35s var(--ease-out);
}
.cover__open:hover { background: var(--lime-hi); gap: .9em; }
.cover__edge {
  position: absolute; top: 0; right: 0; bottom: 0; width: 8cqw;
  margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column;
}
.cover__edge li { flex: 1; background: var(--c); }

.back {
  position: absolute; inset: 0; padding: 11cqw 10cqw 10cqw;
  display: flex; flex-direction: column; align-items: flex-start;
}
.back__title {
  margin: 0; font-size: clamp(20px, 7.6cqw, 46px); line-height: 1.02;
  font-weight: 720; font-stretch: 114%; letter-spacing: -.025em; text-wrap: balance; max-width: 14ch;
}
.back__list { margin: 7cqw 0 0; display: grid; gap: 4cqw; }
.back__list div { display: grid; grid-template-columns: 20cqw 1fr; gap: 3cqw; }
.back__list dt { font-size: clamp(10px, 2.4cqw, 13px); font-stretch: 80%; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; padding-top: .25em; }
.back__list dd { margin: 0; font-size: clamp(12px, 3.1cqw, 17px); line-height: 1.4; }
.back__list a { color: #fff; text-underline-offset: .2em; }
.back__link { margin-top: 6cqw; color: #fff; display: inline-flex; align-items: center; gap: .5em; font-weight: 600; font-size: clamp(13px, 3.2cqw, 17px); text-underline-offset: .25em; }
.cover__label--small { margin-top: auto; width: 24cqw; padding: 2.6cqw 3cqw; }

/* Introduction */
.intro { position: absolute; inset: 0; padding: 12cqw 11cqw 13cqw; display: flex; flex-direction: column; }
.intro__lead {
  margin: 0; color: var(--forest);
  font-size: clamp(16px, 5.6cqw, 32px); line-height: 1.24; font-weight: 420; letter-spacing: -.012em;
  text-wrap: pretty;
}
.intro__how { margin: auto 0 0; display: grid; gap: 4.4cqw; }
.intro__how div { display: grid; grid-template-columns: 15cqw 1fr; gap: 3cqw; padding-top: 3.4cqw; border-top: 1px solid var(--rule); }
.intro__how dt { font-size: clamp(10px, 2.4cqw, 13px); font-stretch: 80%; font-weight: 680; letter-spacing: .08em; text-transform: uppercase; color: var(--forest); padding-top: .2em; }
.intro__how dd { margin: 0; font-size: clamp(12px, 3cqw, 16px); line-height: 1.45; color: var(--ink-2); }

/* Contents: the shade card index */
.contents { position: absolute; inset: 0; padding: 12cqw 10cqw 13cqw; display: flex; flex-direction: column; }
.contents__title {
  margin: 0; color: var(--forest);
  font-size: clamp(24px, 10cqw, 60px); line-height: 1; font-weight: 740; font-stretch: 118%; letter-spacing: -.035em;
}
.contents__list { list-style: none; margin: 8cqw 0 0; padding: 0; display: grid; gap: 5.6cqw; }
.chapter-row { transition: opacity .4s var(--ease-out); }
.contents__list:hover .chapter-row:not(:hover), .contents__list:focus-within .chapter-row:not(:focus-within) { opacity: .34; }
.chapter-row__name {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 1.8cqw; margin-bottom: 2.4cqw; border-bottom: 1px solid var(--rule);
  text-decoration: none; color: var(--forest);
  font-size: clamp(13px, 3.6cqw, 20px); font-weight: 620; font-stretch: 105%;
}
.chapter-row__pg { font-stretch: 80%; font-weight: 500; font-variant-numeric: tabular-nums; font-size: .82em; }
.chips { display: flex; gap: 1.2cqw; }
.chip {
  flex: 1 1 0; max-width: 16cqw; height: 9cqw; background: var(--c);
  transition: transform .45s var(--ease-out);
}
.chip:hover, .chip:focus-visible { transform: translateY(-1.4cqw); }
.chip:focus-visible { outline-offset: 2px; }
.contents__caption {
  margin: auto 0 0; min-height: 1.4em;
  font-size: clamp(11px, 2.8cqw, 15px); font-stretch: 85%; font-weight: 520; letter-spacing: .03em; color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.contents__empty { margin: 8cqw 0 0; font-size: clamp(13px, 3.4cqw, 18px); color: var(--ink-2); max-width: 32ch; }

/* Chapter opener: board page and colour fan */
.page--board { background: var(--forest); color: #fff; }
.page--board .folio, .page--cover .folio { color: rgba(255, 255, 255, .72); }
.chapter { position: absolute; inset: 0; padding: 12cqw 11cqw 14cqw; display: flex; flex-direction: column; }
.chapter__name {
  margin: auto 0 0; font-size: clamp(28px, 13.4cqw, 88px); line-height: .92;
  font-weight: 780; font-stretch: 120%; letter-spacing: -.04em; text-wrap: balance;
}
.chapter__intro { margin: 5cqw 0 0; font-size: clamp(13px, 3.5cqw, 19px); line-height: 1.4; max-width: 30ch; }
.chapter__count { margin: 4cqw 0 0; font-size: clamp(11px, 2.6cqw, 14px); font-stretch: 80%; font-weight: 620; letter-spacing: .08em; text-transform: uppercase; }

.page--fan { background: var(--paper); }
.fan { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; display: flex; }
.fan li { flex: 1 1 0; min-width: 0; background: var(--c); color: var(--on); transition: flex-grow .6s var(--ease-out); }
.fan li:hover, .fan li:focus-within { flex-grow: 1.8; }
.fan a {
  height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  padding: 0 0 13cqw; text-decoration: none; color: inherit;
}
.fan a:focus-visible { outline: 2px solid var(--on); outline-offset: -6px; }
.fan__name {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: clamp(12px, 4.2cqw, 24px); font-weight: 680; font-stretch: 108%; letter-spacing: -.01em;
  white-space: nowrap; max-height: 92cqw; overflow: hidden; text-overflow: ellipsis;
}
.fan__code { margin-top: 3cqw; font-size: clamp(9px, 2.2cqw, 12px); font-stretch: 75%; font-weight: 600; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.page--fan .folio { color: var(--on, var(--ink-2)); mix-blend-mode: normal; }

/* Product: photo plate */
.page--photo { background: #fff; }
.plate { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; }
.plate img { width: 100%; height: 100%; object-fit: cover; display: block; }
.plate img.is-wide { object-fit: contain; }
.plate__empty { font-size: clamp(12px, 3cqw, 16px); color: var(--ink-2); }

/* Product: colour sheet */
.sheet-host { container-type: inline-size; }
.sheet {
  position: absolute; inset: 0;
  display: grid; grid-template-rows: minmax(0, 1fr) auto auto;
  background: var(--paper);
}
.sheet__field {
  background: var(--field); color: var(--on);
  padding: 10cqw 10cqw 6cqw;
  display: flex; flex-direction: column; justify-content: space-between; gap: 4cqw;
  min-height: 0;
}
.sheet__name {
  margin: 0; font-size: clamp(20px, 8.6cqw, 54px); line-height: .98;
  font-weight: 730; font-stretch: 116%; letter-spacing: -.03em; text-wrap: balance; max-width: 13ch;
}
/* The code is the shade's number, set large and light the way a paint fan prints its chip numbers. */
.sheet__code {
  margin: 0; font-size: clamp(14px, 6.4cqw, 38px); line-height: 1; font-stretch: 72%; font-weight: 280;
  letter-spacing: .01em; font-variant-numeric: tabular-nums lining-nums;
}

/* Phone single page: photo above the colour sheet, so the sofa and its price arrive together. */
/* The page element's display belongs to the flip library, so the layout lives on an inner box. */
.combo { position: absolute; inset: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.plate--combo { position: relative; inset: auto; min-height: 0; overflow: hidden; }
.plate--combo img { object-position: center 68%; }
.page--combo .sheet { position: relative; inset: auto; grid-template-rows: auto auto auto; }
.sheet--compact .sheet__field { padding: 5.5cqw 8cqw 5cqw; flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 4cqw; }
.sheet--compact .sheet__name { font-size: clamp(17px, 7cqw, 34px); max-width: none; }
.sheet--compact .sheet__code { font-size: clamp(12px, 4.4cqw, 22px); flex: none; }
.sheet--compact .sheet__label { padding: 5.5cqw 8cqw 10cqw; gap: 2.8cqw; }
.sheet--compact .sheet__price { font-size: clamp(17px, 6.4cqw, 30px); }
.sheet--compact .sheet__price.is-request { font-size: clamp(16px, 5.6cqw, 26px); }
.sheet--compact .sheet__desc { -webkit-line-clamp: 4; font-size: clamp(12px, 3.5cqw, 16px); }
.sheet--compact .sheet__more { font-size: clamp(11px, 3.2cqw, 14px); }
.page--combo .folio { right: 6cqw; bottom: 3.4cqw; }
.page--combo .btn { --h: clamp(36px, 10.4cqw, 50px); font-size: clamp(13px, 3.6cqw, 15px); padding: 0 clamp(12px, 4.4cqw, 22px); }
.sheet__ramp { display: grid; grid-template-columns: repeat(6, 1fr); height: 4.4cqw; margin: 0; padding: 0; list-style: none; align-items: end; }
.sheet__ramp li { background: var(--c); height: 100%; position: relative; }
/* A notch under the step nearest the sheet: "this is the colour you're looking at". */
.sheet__ramp li.is-field::after {
  content: ""; position: absolute; left: 50%; top: 100%; transform: translateX(-50%);
  border: 1.3cqw solid transparent; border-top-color: var(--c); border-bottom-width: 0;
}
.sheet__label { padding: 6.5cqw 10cqw 11cqw; display: grid; gap: 3.2cqw; align-content: start; }
.sheet__price {
  margin: 0; color: var(--forest);
  font-size: clamp(18px, 7cqw, 42px); line-height: 1; font-weight: 300; font-stretch: 104%; letter-spacing: -.025em;
  font-variant-numeric: lining-nums tabular-nums;
}
.sheet__price span { font-size: .4em; font-weight: 650; font-stretch: 85%; letter-spacing: .08em; text-transform: uppercase; vertical-align: .6em; margin-right: .2em; }
.sheet__price.is-request { font-size: clamp(16px, 5.2cqw, 30px); font-weight: 360; }
.sheet__desc {
  margin: 0; font-size: clamp(12px, 3cqw, 16px); line-height: 1.5; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; max-width: 46ch;
}
.sheet__spec { margin: 0; font-size: clamp(11px, 2.6cqw, 14px); font-stretch: 88%; font-weight: 520; color: var(--ink-2); }
.sheet__actions { display: flex; flex-wrap: wrap; gap: 2cqw; margin-top: 1cqw; }
.page .btn, .sheet-host .btn { --h: clamp(34px, 8.6cqw, 50px); padding: 0 clamp(10px, 3.8cqw, 22px); font-size: clamp(12px, 2.9cqw, 15px); }
.sheet__more {
  justify-self: start; font-size: clamp(11px, 2.7cqw, 14px); font-weight: 560; color: var(--forest);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .28em;
}
.sheet__more:hover { text-decoration-thickness: 2px; }

/* Fallback book (reduced motion or no page-flip library): crossfading spreads */
.book--simple { position: relative; width: 100%; aspect-ratio: 3 / 2; }
.book--simple.is-portrait { aspect-ratio: var(--page-ratio, 3 / 4); }
.book--simple .page { position: absolute; top: 0; height: 100%; width: 50%; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s .35s; }
.book--simple.is-portrait .page { width: 100%; left: 0; }
.book--simple .page.is-shown { opacity: 1; visibility: visible; transition: opacity .35s ease; }
.book--simple .page.is-l { left: 0; }
.book--simple .page.is-r { left: 50%; }

/* ---------- Page bar ---------- */

.pagebar {
  display: grid;
  grid-template-columns: auto auto minmax(120px, 1fr) minmax(0, 18rem) auto auto;
  align-items: center; gap: 14px;
  width: min(100%, 1160px); margin: 0 auto;
}
.pagebar__btn {
  height: 44px; min-width: 44px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  border: 1.5px solid var(--rule-strong); border-radius: 999px; background: transparent; color: var(--forest);
  cursor: pointer; font-weight: 600; font-size: 14px;
  transition: border-color .25s, background-color .25s;
}
.pagebar__btn:hover { border-color: var(--forest); background: rgba(1, 51, 0, .05); }
.pagebar__btn[disabled] { opacity: .35; cursor: default; }
.pagebar__contents { padding: 0 16px 0 12px; }
.pagebar__track { position: relative; height: 44px; display: grid; align-items: center; }
.pagebar__ticks { position: absolute; left: 9px; right: 9px; top: 50%; height: 1px; margin: 0; padding: 0; list-style: none; background: var(--rule-strong); }
.pagebar__ticks li { position: absolute; left: calc(var(--at) * 100%); top: -7px; width: 5px; height: 14px; background: var(--c); transform: translateX(-50%); }
.pagebar__range { position: relative; width: 100%; margin: 0; background: transparent; appearance: none; -webkit-appearance: none; height: 44px; cursor: pointer; }
.pagebar__range::-webkit-slider-runnable-track { height: 44px; background: transparent; }
.pagebar__range::-moz-range-track { height: 44px; background: transparent; }
.pagebar__range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 30px; margin-top: 7px; border-radius: 3px; background: var(--forest); border: 3px solid var(--stage-base); box-shadow: 0 1px 3px rgba(1, 51, 0, .35); }
.pagebar__range::-moz-range-thumb { width: 12px; height: 24px; border-radius: 3px; background: var(--forest); border: 3px solid var(--stage-base); box-shadow: 0 1px 3px rgba(1, 51, 0, .35); }
.pagebar__range:focus-visible { outline: none; }
.pagebar__range:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--forest); outline-offset: 2px; }
.pagebar__readout {
  margin: 0; min-width: 0; display: flex; gap: .7em; align-items: baseline; white-space: nowrap; overflow: hidden;
  font-size: 14px; color: var(--ink-2);
}
.pagebar__readout b { color: var(--forest); font-weight: 650; font-stretch: 80%; letter-spacing: .05em; font-variant-numeric: tabular-nums; }
.pagebar__readout span { overflow: hidden; text-overflow: ellipsis; }
.pagebar__jump input {
  width: 6.5rem; height: 44px; padding: 0 14px; border: 1.5px solid var(--rule-strong); border-radius: 999px; background: transparent;
  font-stretch: 80%; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--forest);
}
.pagebar__jump input::placeholder { color: var(--ink-2); text-transform: none; letter-spacing: .02em; }
.pagebar__jump input:focus { outline: none; border-color: var(--forest); }
.pagebar__jump.is-miss input { border-color: #B42318; }

.noscript-list { max-width: 640px; margin: 0 auto; padding: 24px; background: #fff; }

/* ---------- Enquiry dialog ---------- */

.enquiry {
  border: 0; padding: 0; width: min(520px, calc(100vw - 24px)); max-height: calc(100svh - 24px);
  background: var(--paper); color: var(--ink);
  box-shadow: 0 24px 60px rgba(1, 25, 1, .28);
}
.enquiry::backdrop { background: rgba(5, 22, 6, .5); }
.enquiry[open] { animation: rise .45s var(--ease-out); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.enquiry__head { position: relative; background: var(--field, var(--forest)); color: var(--on, #fff); padding: 26px 64px 22px 26px; }
.enquiry__head h2 { margin: 0; font-size: 24px; line-height: 1.08; font-weight: 720; font-stretch: 112%; letter-spacing: -.02em; text-wrap: balance; }
.enquiry__code { margin: 10px 0 0; font-size: 13px; font-stretch: 75%; font-weight: 600; letter-spacing: .07em; }
.enquiry__code:empty { display: none; }
.enquiry__close {
  position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: transparent; color: inherit; cursor: pointer; display: grid; place-items: center;
}
.enquiry__close:hover { background: rgba(127, 127, 127, .18); }
.enquiry__close:focus-visible { outline-color: currentColor; }
.enquiry__body { padding: 24px 26px 28px; display: grid; gap: 16px; }
.enquiry__done { padding: 40px 28px 32px; text-align: left; }
.enquiry__done h2 { margin: 16px 0 6px; font-size: 26px; font-weight: 720; font-stretch: 112%; letter-spacing: -.02em; color: var(--forest); }
.enquiry__done p { margin: 0 0 24px; color: var(--ink-2); }
.enquiry__tick { width: 52px; height: 52px; border-radius: 50%; background: var(--lime); color: var(--forest); display: grid; place-items: center; }
.enquiry__tick .icon { width: 26px; height: 26px; }

/* ---------- Forms ---------- */

.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 620; color: var(--forest); }
.field .opt { font-weight: 450; color: var(--ink-2); }
.field input, .field textarea {
  width: 100%; border: 1.5px solid var(--rule-strong); border-radius: 3px; background: #fff;
  padding: 11px 14px; font-size: 16px; line-height: 1.4;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 104px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(1, 51, 0, .14); }
.field input:user-invalid { border-color: #B42318; }
.form-error { margin: 0; color: #B42318; font-weight: 560; font-size: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Content pages ---------- */

.page-hero { background: var(--forest); color: #fff; padding: clamp(48px, 9vw, 120px) var(--gutter) clamp(40px, 6vw, 80px); position: relative; }
.page-hero h1 {
  margin: 0; max-width: 16ch; font-size: clamp(40px, 7.4vw, 96px); line-height: .94;
  font-weight: 760; font-stretch: 120%; letter-spacing: -.04em; text-wrap: balance;
}
.page-hero p { margin: clamp(20px, 3vw, 36px) 0 0; max-width: 40ch; font-size: clamp(18px, 1.9vw, 25px); line-height: 1.36; font-weight: 380; text-wrap: pretty; }
.shade-strip { display: flex; height: clamp(18px, 2.4vw, 30px); margin: 0; padding: 0; list-style: none; }
.shade-strip li { flex: 1; }
.shade-strip a { display: block; height: 100%; background: var(--c); transition: transform .4s var(--ease-out); }
.shade-strip a:hover, .shade-strip a:focus-visible { transform: scaleY(1.5); transform-origin: top; }

.prose-wrap { padding: clamp(48px, 7vw, 96px) var(--gutter); display: grid; grid-template-columns: minmax(0, 1fr); }
.prose { max-width: 66ch; font-size: 18px; line-height: 1.66; color: var(--ink); }
.prose h2 {
  margin: 2.4em 0 .5em; color: var(--forest);
  font-size: clamp(22px, 2.4vw, 30px); line-height: 1.1; font-weight: 720; font-stretch: 112%; letter-spacing: -.02em;
}
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 1em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(32px, 4vw, 56px); }

.contact-grid {
  padding: clamp(40px, 6vw, 88px) var(--gutter);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start;
  max-width: 1320px; width: 100%; margin: 0 auto;
}
.contact-grid.is-solo { grid-template-columns: minmax(0, 640px); justify-content: center; }
.contact-list { margin: 0; display: grid; gap: 28px; }
.contact-list > div { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.contact-list .icon { width: 44px; height: 44px; padding: 10px; border: 1.5px solid var(--rule-strong); border-radius: 50%; color: var(--forest); }
.contact-list dt { font-size: 13px; font-stretch: 80%; font-weight: 680; letter-spacing: .08em; text-transform: uppercase; color: var(--forest); }
.contact-list dd { margin: 2px 0 0; font-size: 18px; line-height: 1.45; }
.contact-list a { color: var(--ink); text-underline-offset: .22em; text-decoration-thickness: 1px; }
.form-card { background: #fff; padding: clamp(24px, 3vw, 40px); display: grid; gap: 16px; }
.form-card h2 { margin: 0 0 4px; color: var(--forest); font-size: clamp(24px, 2.4vw, 32px); font-weight: 720; font-stretch: 112%; letter-spacing: -.02em; line-height: 1.05; }
.form-card .form-done { display: grid; gap: 12px; }
.map { padding: 0 var(--gutter) clamp(48px, 6vw, 88px); max-width: 1320px; width: 100%; margin: 0 auto; }
.map iframe { width: 100%; height: clamp(280px, 38vw, 460px); border: 0; display: block; filter: saturate(.8); }

/* Product page */
/* The product page is one open spread, sized so both pages fit the screen. */
.product {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: min(100%, 1280px, calc((100svh - var(--nav-h) - 80px) * 1.5 + 2 * var(--gutter)));
  margin: 0 auto; padding: 8px var(--gutter) 0;
}
.product__back { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: .5em; margin: 0 0 16px; color: var(--forest); font-weight: 600; font-size: 15px; text-decoration: none; justify-self: start; }
.product__back:hover { text-decoration: underline; text-underline-offset: .25em; }
.product__photo { margin: 0; background: #fff; aspect-ratio: 3 / 4; position: relative; }
.product__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product__photo img.is-wide { object-fit: contain; }
.product .sheet-host { position: relative; background: #fff; min-height: min(133vw, 560px); }
.product .sheet { position: relative; height: 100%; }
.product .sheet__desc { -webkit-line-clamp: unset; display: block; }
.form-ok { margin: 0; color: var(--forest); font-weight: 560; }
.product__thumbs { grid-column: 1 / -1; display: flex; gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; flex-wrap: wrap; }
.product__thumbs button { padding: 0; border: 2px solid transparent; background: #fff; cursor: pointer; width: 84px; aspect-ratio: 3 / 4; }
.product__thumbs button[aria-pressed="true"] { border-color: var(--forest); }
.product__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-enquire { width: min(100%, 1280px); margin: 0 auto; padding: clamp(40px, 5vw, 72px) var(--gutter); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.product-enquire__intro h2 { margin: 0; color: var(--forest); font-size: clamp(26px, 3vw, 40px); line-height: 1.04; font-weight: 740; font-stretch: 116%; letter-spacing: -.03em; }
.product-enquire__intro p { margin: 16px 0 0; color: var(--ink-2); max-width: 40ch; font-size: 17px; }

/* Footer */
.site-foot {
  margin-top: auto; padding: 28px var(--gutter); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--rule); color: var(--ink-2); font-size: 14px;
}
.site-foot p { margin: 0; }
.site-foot nav { display: flex; gap: 22px; align-items: center; }
.site-foot a { color: var(--forest); text-decoration: none; font-weight: 560; display: inline-flex; }
.site-foot a:hover { text-decoration: underline; text-underline-offset: .25em; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  /* Two rows: what's open and how to jump, then turning. */
  .pagebar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "contents readout jump" "prev track next";
    gap: 8px 12px;
  }
  .pagebar__prev { grid-area: prev; justify-self: start; }
  .pagebar__next { grid-area: next; justify-self: end; }
  .pagebar__contents { grid-area: contents; justify-self: start; }
  .pagebar__track { grid-area: track; }
  .pagebar__readout { grid-area: readout; justify-content: center; }
  .pagebar__jump { grid-area: jump; }
  .product, .product-enquire { grid-template-columns: minmax(0, 1fr); }
  .product .sheet-host { min-height: 0; }
  .product .sheet__field { min-height: 46vw; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  :root { --nav-h: 64px; }
  .brand { height: 44px; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 14px; }
  .nav-links .nav-links__wa { width: 38px; height: 38px; }
  .pagebar { gap: 6px 10px; }
  .pagebar__contents { padding: 0 12px; }
  .pagebar__contents span { display: none; }
  .pagebar__readout { font-size: 13px; gap: .5em; }
  .pagebar__readout span { display: none; } /* the name is on the page right above; the code is enough here */
  .pagebar__jump input { width: 5.4rem; }
  .book-stage { gap: 10px; padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  .prose { font-size: 17px; }
  .site-foot { justify-content: center; text-align: center; }
}
@media (max-width: 420px) {
  .nav-links { gap: 12px; }
  .nav-links a { font-size: 13.5px; }
  .nav-links .nav-links__wa { display: none; } /* every sofa page carries WhatsApp already */
}
@media (max-height: 560px) and (orientation: landscape) {
  body.is-book { height: auto; overflow: auto; }
  .book-stage { min-height: 560px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  html { transition: none; }
}
