/* ============================================================
   FIBERSEATS — video hero + panel dashboard
   Original implementation. Layout concept: fullscreen looping
   video with a bento grid of translucent panels on top.
   ============================================================ */

@font-face {
  font-family: "PP Neue Montreal";
  src: url("../fonts/ppneuemontreal-book.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PP Neue Montreal";
  src: url("../fonts/ppneuemontreal-thin.woff") format("woff");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

:root {
  --gutter: 10px;
  --gap: 5px;
  /* zoom-compensated viewport height: with body zoom, raw 100dvh renders
     taller than the screen — divide by the zoom factor to stay at 100vh */
  --zoom: 1;
  --vh: calc(100dvh / var(--zoom));
  --logo-w: 160px;
  --logo-h: 64px;
  --radius: 8px;
  --bar-h: 64px;
  --panel-bg: rgba(8, 8, 8, 0.55);
  --panel-bg-strong: rgba(8, 8, 8, 0.72);
  --accent: rgb(96, 94, 81);      /* stone — fills: chips, buttons */
  --accent-soft: #c9c4b4;         /* warm parchment — text, hovers, borders */
  --accent-ink: #f0eee6;          /* text on stone fills */
  --text: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.72);
  --text-faint: rgba(255, 255, 255, 0.5);
  --hairline: rgba(255, 255, 255, 0.12);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { font-size: 16px; }

body {
  font-family: "PP Neue Montreal", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  background: #060606;
  color: var(--text);
  min-height: var(--vh);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-weight: 400; letter-spacing: -0.01em; }

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

/* Scrollbar (subpage panels) */
.content-scroll::-webkit-scrollbar { width: 4px; }
.content-scroll::-webkit-scrollbar-track { background: transparent; }
.content-scroll::-webkit-scrollbar-thumb { background: var(--accent-soft); border-radius: 99px; }

/* ------------------------------------------------------------
   Background video
   ------------------------------------------------------------ */
.bg-video {
  position: fixed;
  inset: -24px;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #060606;
}
.bg-video video,
.bg-video > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
body[data-page="sub"] .bg-video > img { filter: brightness(0.7) saturate(0.9); }
.bg-video .veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(0, 0, 0, 0.52);
}
body[data-page="sub"] .bg-video video { filter: brightness(0.7) saturate(0.9); }

/* ------------------------------------------------------------
   Frame
   ------------------------------------------------------------ */
.frame {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  min-height: var(--vh);
  padding: var(--gutter);
}

/* Desktop: fixed 100vh app — the page never scrolls, only content panels do */
@media (min-width: 900px) {
  html, body { height: var(--vh); overflow: hidden; }
  .frame { height: var(--vh); }

  /* Content panels wrap around the floating logo: notch cut top-left
     (logo size + gap below and right), video shows through the gap */
  .d-product, .content-panel {
    --nw: calc(var(--logo-w) + var(--gap));
    --nh: calc(var(--logo-h) + var(--gap));
    --nr: 5px;
    /* fallback: sharp-cornered notch for browsers without shape() */
    clip-path: polygon(
      var(--nw) 0,
      100% 0,
      100% 100%,
      0 100%,
      0 var(--nh),
      var(--nw) var(--nh)
    );
    /* rounded notch: 5px radii on both content corners at the cut,
       plus a 5px inward (concave) fillet on the inner corner */
    clip-path: shape(
      from calc(var(--nw) + var(--nr)) 0px,
      hline to 100%,
      vline to 100%,
      hline to 0%,
      vline to calc(var(--nh) + var(--nr)),
      arc to var(--nr) var(--nh) of var(--nr) cw,
      hline to calc(var(--nw) - var(--nr)),
      arc to var(--nw) calc(var(--nh) - var(--nr)) of var(--nr) ccw,
      vline to var(--nr),
      arc to calc(var(--nw) + var(--nr)) 0px of var(--nr) cw
    );
  }
}

/* ------------------------------------------------------------
   Panels — shared
   ------------------------------------------------------------ */
.panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--panel-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  animation: panel-in 0.7s var(--ease-out) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes panel-in {
  to { opacity: 1; transform: none; }
}
body.leaving .panel {
  animation: panel-out 0.28s ease forwards;
}
@keyframes panel-out {
  to { opacity: 0; transform: translateY(10px) scale(0.99); }
}

/* ------------------------------------------------------------
   Dashboard "lights on" — the room wakes and each panel flickers
   to life like showroom lighting striking on. Scoped to the
   dashboard; staggered by the per-panel --d delay.
   ------------------------------------------------------------ */
body[data-page="dashboard"] .bg-video > img {
  animation: room-wake 1.15s ease both;
}
@keyframes room-wake {
  0%   { filter: brightness(0.28); }
  16%  { filter: brightness(0.92); }   /* first surge */
  24%  { filter: brightness(0.42); }   /* dip */
  40%  { filter: brightness(1);    }
  46%  { filter: brightness(0.78); }   /* last blink */
  100% { filter: brightness(1);    }
}

body[data-page="dashboard"] .panel {
  animation: panel-flicker 0.9s var(--ease-out) var(--d, 0s) both;
}
@keyframes panel-flicker {
  0%   { opacity: 0;    transform: translateY(14px) scale(0.985); filter: brightness(0.6);  box-shadow: 0 0 0 rgba(201,196,180,0); }
  6%   { opacity: 0.62; filter: brightness(1.65); box-shadow: 0 0 38px rgba(201,196,180,0.22); }  /* strike */
  9%   { opacity: 0.05; filter: brightness(0.5);  box-shadow: 0 0 0 rgba(201,196,180,0); }         /* stutter out */
  15%  { opacity: 0.9;  filter: brightness(1.5);  box-shadow: 0 0 30px rgba(201,196,180,0.18); }
  19%  { opacity: 0.22; filter: brightness(0.7);  box-shadow: 0 0 0 rgba(201,196,180,0); }
  27%  { opacity: 1;    filter: brightness(1.35); transform: translateY(2px) scale(0.997); box-shadow: 0 0 22px rgba(201,196,180,0.14); }
  33%  { opacity: 0.72; filter: brightness(0.95); }
  48%  { opacity: 1;    filter: brightness(1.1);  transform: none; }
  100% { opacity: 1;    filter: brightness(1);    transform: none; box-shadow: 0 0 0 rgba(201,196,180,0); }
}

/* Accessibility: no strobing for users who ask for reduced motion */
@media (prefers-reduced-motion: reduce) {
  body[data-page="dashboard"] .bg-video > img { animation: none; }
  body[data-page="dashboard"] .panel {
    animation: panel-in 0.7s var(--ease-out) var(--d, 0s) both;
  }
}

.fade-up {
  opacity: 0;
  transform: translateY(12px);
  animation: fade-up 0.7s var(--ease-out) forwards;
  animation-delay: calc(var(--d, 0s) + 0.25s);
}
@keyframes fade-up {
  to { opacity: 1; transform: none; }
}

/* Icon chip (small accent square) */
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-ink);
  flex: 0 0 auto;
}
.chip svg { width: 18px; height: 18px; }

/* Arrow that swaps diagonally on hover */
.arrow {
  position: relative;
  display: inline-block;
  width: 1em;
  height: 1em;
  overflow: hidden;
  font-size: 15px;
}
.arrow svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.35s var(--ease-out);
}
.arrow svg:last-child { transform: translate(-110%, 110%); }
a:hover .arrow svg:first-child,
.panel-link:hover .arrow svg:first-child { transform: translate(110%, -110%); }
a:hover .arrow svg:last-child,
.panel-link:hover .arrow svg:last-child { transform: translate(0, 0); }

/* ------------------------------------------------------------
   Logo panel (top-left, floats above the grid)
   ------------------------------------------------------------ */
.logo-panel {
  position: absolute;
  top: var(--gutter);
  left: var(--gutter);
  z-index: 50;
  width: var(--logo-w);
  height: var(--logo-h);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  animation: panel-in 0.7s var(--ease-out) 0.05s forwards;
}
.logo-panel img { height: 20px; width: auto; }

/* ------------------------------------------------------------
   Top-right utility row (social chips + atelier clock)
   ------------------------------------------------------------ */
.util-row { display: flex; gap: var(--gap); height: 64px; }
.util-sq {
  width: 64px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: color 0.3s;
}
.util-sq:hover { color: var(--accent-soft); }
.util-sq svg { width: 20px; height: 20px; }
.util-wide {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  min-width: 0;
}
.util-wide .label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.util-wide .clock {
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ------------------------------------------------------------
   Landing (index)
   ------------------------------------------------------------ */
.hero-top {
  display: flex;
  justify-content: flex-end;
  height: 64px;
}
.hero-top .util-row { width: min(420px, 60vw); }

.hero-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 16px calc(var(--bar-h) + 24px);
}
.hero-center .kicker {
  font-size: 13px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  text-indent: 0.34em;
}
.hero-center h1 {
  margin: 18px auto 20px;
  max-width: 17ch;
  font-size: clamp(2rem, 5.2vw, 4.4rem);
  line-height: 1.02;
  font-weight: 400;
  text-wrap: balance;
}
.hero-center p {
  font-size: 14px;
  color: var(--text-dim);
  max-width: 46ch;
  margin: 0 auto;
}

/* ------------------------------------------------------------
   Action bar (bottom): Explore / Close / Back + right link
   ------------------------------------------------------------ */
.action-bar {
  position: relative;
  height: var(--bar-h);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.btn-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 99px;
  border: 1px solid var(--hairline);
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: color 0.3s, border-color 0.3s;
}
.btn-action:hover { color: var(--accent-soft); border-color: var(--accent-soft); }
.btn-action svg { width: 15px; height: 15px; }

.bar-link {
  position: absolute;
  right: 8px;
  font-size: 13px;
  letter-spacing: 0.06em;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color 0.3s;
}
.bar-link:hover { color: var(--accent-soft); }

/* Language toggle (left side of the action bar) */
.bar-lang {
  position: absolute;
  left: 8px;
  font-size: 13px;
  letter-spacing: 0.1em;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color 0.3s;
}
.bar-lang:hover { color: var(--accent-soft); }

/* ------------------------------------------------------------
   Dashboard grid
   ------------------------------------------------------------ */
.dash {
  flex: 1;
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(16, 1fr);
  grid-template-rows: 64px repeat(9, 1fr);
  min-height: 0;
  height: calc(var(--vh) - var(--bar-h) - var(--gutter) * 2);
}

/* product panel reaches the top row; its notch wraps around the logo */
.d-product { grid-column: 1 / 12; grid-row: 1 / 7; }
.d-util    { grid-column: 12 / 17; grid-row: 1 / 2; }
.d-tall    { grid-column: 12 / 17; grid-row: 2 / 7; }
.d-pair    { grid-column: 1 / 12; grid-row: 7 / 11; display: flex; gap: var(--gap); }
.d-tiles   { grid-column: 12 / 17; grid-row: 7 / 11; display: flex; gap: var(--gap); }

.d-util { display: flex; }
.d-util .util-row { width: 100%; }

/* Panel link layout */
.panel-link {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  z-index: 2;
}

/* Media layer with fade mask */
.panel-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.panel-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}
.panel:hover .panel-media img { transform: scale(1.045); }
.mask-r { -webkit-mask-image: linear-gradient(to left, #000 30%, transparent 85%); mask-image: linear-gradient(to left, #000 30%, transparent 85%); }
.mask-b { -webkit-mask-image: linear-gradient(to top, #000 20%, transparent 90%); mask-image: linear-gradient(to top, #000 20%, transparent 90%); }
.mask-full { -webkit-mask-image: linear-gradient(to top, #000 40%, rgba(0,0,0,0.35) 100%); mask-image: linear-gradient(to top, #000 40%, rgba(0,0,0,0.35) 100%); }

/* Corner chip */
.panel .corner {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
}

/* Large product panel */
.d-product .panel-link { align-items: flex-end; }
.d-product .panel-body {
  position: relative;
  z-index: 2;
  padding: 22px;
  max-width: 46ch;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.d-product h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.d-product p { font-size: 13.5px; line-height: 1.5; color: var(--text-dim); }
.d-product .panel-media { left: 30%; }
.d-product:hover h2 { color: var(--accent-soft); transition: color .4s; }

/* Tall personalization panel */
.d-tall .panel-link { flex-direction: column; justify-content: space-between; padding: 18px; }
.d-tall .head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; position: relative; z-index: 2; }
.d-tall .head .eyebrow { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); }
.d-tall .title { position: relative; z-index: 2; font-size: clamp(1.3rem, 1.7vw, 1.7rem); margin-top: 10px; }
.d-tall .sub { position: relative; z-index: 2; font-size: 12.5px; color: var(--text-dim); line-height: 1.5; margin-top: 8px; max-width: 34ch; }
.d-tall .panel-media { top: 30%; }
.btn-blur {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 6px;
  border: 1px solid var(--hairline);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 13.5px;
  transition: border-color 0.3s, color 0.3s;
}
.btn-blur:hover { border-color: var(--accent-soft); color: var(--accent-soft); }

/* Expanding pair */
.d-pair .panel {
  flex: 1 1 0;
  transition: flex-grow 0.55s var(--ease-out);
  will-change: flex-grow;
}
.d-pair .panel:hover { flex-grow: 1.45; }
.d-pair .panel-link { padding: 20px; }
.d-pair .body { display: flex; width: 100%; gap: 12px; position: relative; z-index: 2; }
.d-pair .body .txt { flex: 1; }
.d-pair h2 { font-size: clamp(1.5rem, 2.2vw, 2.1rem); max-width: 12ch; line-height: 1.05; }
.d-pair .arrow { margin-top: 12px; }
.d-pair .panel:hover .txt { color: var(--accent-soft); transition: color .4s; }

/* Small tiles */
.d-tiles .panel {
  flex: 1 1 0;
  transition: flex-grow 0.55s var(--ease-out);
}
.d-tiles .panel:hover { flex-grow: 1.35; }
.d-tiles .panel-link {
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
}
.d-tiles .top { display: flex; justify-content: flex-end; }
.d-tiles .name { font-size: 15.5px; line-height: 1.15; max-width: 9ch; }
.d-tiles .arrow { margin-top: 8px; }
.d-tiles .panel:hover .bottom { color: var(--accent-soft); transition: color .4s; }

/* ------------------------------------------------------------
   Subpages — one large scrollable content panel
   ------------------------------------------------------------ */
.content-panel {
  flex: 1;
  min-height: 0;
  display: flex;
  background: var(--panel-bg);
}
.content-scroll {
  width: 100%;
  height: calc(var(--vh) - var(--bar-h) - var(--gutter) * 2);
  overflow-y: auto;
  scroll-behavior: smooth;
}
.content-inner {
  width: 100%;
  padding: 96px 36px 60px;
}

/* Impact header */
.impact { min-height: calc(var(--vh) * 0.42); display: flex; flex-direction: column; justify-content: center; position: relative; }
.impact h1 { font-size: clamp(2.2rem, 5vw, 4rem); max-width: 16ch; line-height: 1.03; text-wrap: balance; }
.impact .lede { margin-top: 14px; font-size: 15.5px; color: var(--text-dim); max-width: 52ch; line-height: 1.55; }
.impact .impact-media {
  position: absolute;
  top: -96px;
  right: -28px;
  bottom: 0;
  width: 74%;
  z-index: -1;
  overflow: hidden;
}
.impact .impact-media img { width: 100%; height: 100%; object-fit: cover; }
/* hero fade reaches further left so more of the image stays visible */
.impact .impact-media.mask-r {
  -webkit-mask-image: linear-gradient(to left, #000 48%, transparent 98%);
  mask-image: linear-gradient(to left, #000 48%, transparent 98%);
}

/* Sections */
.section { margin-top: 40px; }
.section .eyebrow {
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 14px;
}
.section h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); max-width: 24ch; text-wrap: balance; }
.section p { margin-top: 10px; font-size: 14.5px; line-height: 1.65; color: var(--text-dim); max-width: 68ch; }
.section p strong, .section p a { color: var(--text); }
.section p a { border-bottom: 1px solid var(--accent-soft); }
.section ul { margin: 14px 0 0 1.1em; font-size: 14.5px; line-height: 1.75; color: var(--text-dim); }

/* Feature row: text always left, image always right.
   Thin border on the media; hovering grows the image across the row. */
.feature {
  display: grid;
  grid-template-columns: 65fr 35fr;
  gap: var(--gap);
  align-items: stretch;
  transition: grid-template-columns 0.7s var(--ease-out);
}
.feature:hover { grid-template-columns: 40fr 60fr; }
/* consecutive feature blocks sit tight — vertical gap matches the horizontal one */
.feature + .feature { margin-top: var(--gap); }

/* a group of stacked features that should all share the tallest one's height:
   grid-auto-rows:1fr makes every row resolve to the largest row's height */
.feature-group {
  display: grid;
  grid-auto-rows: 1fr;
  gap: var(--gap);
  margin-top: 40px;
}
.feature-group > .feature { margin-top: 0; }
.feature .txt {
  align-self: stretch;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid #444444;
  border-radius: 5px;
  padding: 34px 32px;
}
.feature .media {
  position: relative;
  min-height: 320px;
  border: 1px solid #444444;
  border-radius: 5px;
  overflow: hidden;
}
.feature .media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}
.feature:hover .media img { transform: scale(1.05); }

/* Numbered badge for a feature that belongs to a sequence (top-left) */
.feature-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  margin-bottom: 20px;
}

/* Statement: a single strong text block with an accent rule */
.statement {
  margin-top: 40px;
  padding: 24px 0 24px 26px;
  border-left: 2px solid var(--accent-soft);
}
.statement h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); max-width: 26ch; text-wrap: balance; }
.statement p { margin-top: 12px; font-size: 14.5px; line-height: 1.65; color: var(--text-dim); max-width: 62ch; }

/* Ledger: editorial index for stacked text-only content */
.ledger { margin-top: 40px; border-top: 1px solid var(--hairline); }
.ledger .row {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--hairline);
}
.ledger .n {
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.2em;
  color: var(--accent-soft);
  margin-bottom: 10px;
}
.ledger h3 { font-size: clamp(1.2rem, 1.9vw, 1.6rem); max-width: 16ch; transition: color 0.4s; }
.ledger .row:hover h3 { color: var(--accent-soft); }
.ledger p { margin-top: 0; font-size: 14.5px; line-height: 1.65; color: var(--text-dim); max-width: 62ch; }
.ledger p + p { margin-top: 10px; }

.media-band { margin-top: 40px; border-radius: var(--radius); overflow: hidden; }
.media-band img { width: 100%; height: calc(var(--vh) * 0.5); object-fit: cover; }

/* Card grids (features / steps) */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--gap); margin-top: 18px; }

/* Bento tile grid — mixed text tiles and image tiles, tight gaps */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(170px, auto);
  gap: var(--gap);
  margin-top: 18px;
}
.tile {
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--hairline);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
}
.tile h3 { font-size: 16px; }
.tile p { font-size: 13px; line-height: 1.55; color: var(--text-dim); margin: 0; max-width: none; }
.tile .num { font-size: 12px; color: var(--accent-soft); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: auto; }
.tile.img-tile { padding: 0; border: 0; overflow: hidden; position: relative; }
.tile.img-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* 360° spin viewer (sspin engine) — dark-theme fit */
.spin-section .sspin {
  --sspin-accent: #c9c4b4;
  --sspin-base: rgba(255, 255, 255, 0.45);
  --sspin-fsbg: #0a0a0a;
  max-width: 440px;
  margin: 22px auto 0;
}
.spin-section .sspin-load-txt { color: var(--text-faint); }
.spin-section .sspin-fs {
  background: rgba(0, 0, 0, 0.45);
  border-color: var(--hairline);
  color: var(--text-dim);
}
.spin-section .sspin-fs:hover,
.spin-section .sspin:fullscreen .sspin-fs { color: #14120c; }
.spin-section .sspin-hint { background: rgba(0, 0, 0, 0.5); color: var(--text-dim); }
.spin-section .sspin-badge.sspin-loading { background: rgba(0, 0, 0, 0.55); color: var(--text-dim); }
.spin-section .sspin-badge.sspin-hd { color: #14120c; }

/* Finish videos: four tiles in a row — hover expands the tile and plays the clip */
.video-row {
  display: flex;
  gap: var(--gap);
  margin-top: 18px;
  height: 400px;
}
.video-tile {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: flex-grow 0.65s var(--ease-out), border-color 0.4s;
}
.video-tile:hover { flex-grow: 2.4; border-color: var(--accent-soft); }
.video-tile video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-tile .cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 48px 16px 14px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), transparent);
  pointer-events: none;
}
.video-tile .cap h3 { font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.video-tile .cap p {
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.5;
  margin-top: 5px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out), opacity 0.5s;
}
.video-tile:hover .cap p { max-height: 110px; opacity: 1; }

.sp3 { grid-column: span 3; }
.sp4 { grid-column: span 4; }
.sp5 { grid-column: span 5; }
.sp6 { grid-column: span 6; }
.sp7 { grid-column: span 7; }
.sp8 { grid-column: span 8; }
.sp12 { grid-column: span 12; }
.tile.span-2row { grid-row: span 2; }
.card {
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--hairline);
  padding: 20px;
}
.card .num { font-size: 12px; color: var(--accent-soft); letter-spacing: 0.14em; text-transform: uppercase; }
.card h3 { font-size: 16.5px; margin-top: 8px; }
.card p { font-size: 13px; line-height: 1.55; color: var(--text-dim); margin-top: 8px; max-width: none; }

/* Quote / founder block — stone background, half width, white signature */
.founder {
  margin-top: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--accent-soft);
  background: var(--accent);
  padding: 30px 26px;
  max-width: 50%;
  color: var(--accent-ink);
}
.founder blockquote { font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.45; max-width: 30ch; text-wrap: balance; }

/* Commission page: "haven't found it" alternatives (left) + founder note (right) */
.commission-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: stretch;
  margin-top: 40px;
}
.commission-cols > .section { margin-top: 0; }
.commission-cols > .founder { max-width: none; }
/* left column is one bordered tile — like the founder note, but neutral:
   it carries the background the inner blocks used to have */
.commission-cols > .alt-paths {
  border: 1px solid #444444;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  padding: 30px 26px;
}
/* the two options are now borderless blocks inside the tile, split by a hairline */
.alt-path { margin-top: 20px; }
.alt-path + .alt-path {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}
.alt-path h3 { font-size: 1.05rem; }
.alt-path p { margin-top: 8px; }
.alt-cta {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  color: var(--accent-soft);
  border-bottom: 1px solid var(--accent-soft);
}
.alt-cta.is-soon { color: var(--text-dim); border-bottom-style: dashed; cursor: default; }
@media (max-width: 900px) {
  .commission-cols { grid-template-columns: 1fr; }
  .commission-cols > .founder { max-width: 100%; }
}
.founder .eyebrow { color: rgba(240, 238, 230, 0.75) !important; }
.founder .body { margin-top: 20px; font-size: 14.5px; line-height: 1.65; color: rgba(240, 238, 230, 0.85); max-width: 62ch; }
.founder .body p + p { margin-top: 12px; }
.founder .sig { margin-top: 24px; }
.founder .sig img { height: 56px; width: auto; filter: brightness(0) invert(1); }
.founder .sig .who { margin-top: 8px; font-size: 13px; color: rgba(240, 238, 230, 0.7); }
.founder .sig .who a { border-bottom: 1px solid currentColor; }

/* founder note as a feature-style row: stone text box left, image right (hover-expands) */
.founder-row {
  display: grid;
  grid-template-columns: 65fr 35fr;
  gap: var(--gap);
  align-items: stretch;
  transition: grid-template-columns 0.7s var(--ease-out);
}
.founder-row:hover { grid-template-columns: 40fr 60fr; }
.founder-row .founder { margin-top: 0; max-width: none; }
.founder-row .media {
  position: relative;
  min-height: 320px;
  border: 1px solid #444444;
  border-radius: 5px;
  overflow: hidden;
}
.founder-row .media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}
.founder-row:hover .media img { transform: scale(1.05); }

/* CTA row */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn-solid {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 14px;
  letter-spacing: 0.04em;
  transition: filter 0.3s;
}
.btn-solid:hover { filter: brightness(1.12); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 6px;
  border: 1px solid var(--hairline);
  font-size: 14px;
  transition: border-color 0.3s, color 0.3s;
}
.btn-ghost:hover { border-color: var(--accent-soft); color: var(--accent-soft); }

/* Price tag */
.price { margin-top: 18px; font-size: 15px; }
.price span { color: var(--text-faint); font-size: 13px; }

/* FAQ accordion */
.faq-group { margin-top: 28px; border-top: 1px solid var(--hairline); }
.faq-group details { border-bottom: 1px solid var(--hairline); }
.faq-group summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 4px;
  font-size: 15.5px;
  transition: color 0.3s;
}
.faq-group summary::-webkit-details-marker { display: none; }
.faq-group summary:hover { color: var(--accent-soft); }
.faq-group summary .ind { flex: 0 0 auto; font-size: 18px; color: var(--accent-soft); transition: transform 0.3s; }
.faq-group details[open] summary .ind { transform: rotate(45deg); }
.faq-group details .a { padding: 0 4px 20px; font-size: 14px; line-height: 1.65; color: var(--text-dim); max-width: 72ch; }
.faq-group details .a p + p { margin-top: 10px; }

/* Contact form */
.contact-form { margin-top: 32px; max-width: 560px; display: grid; gap: 14px; }
.contact-form label { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 13px 14px;
  font: inherit;
  font-size: 14.5px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  outline: none;
  transition: border-color 0.3s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-color: var(--accent-soft); }
.contact-form select option { background: #111; color: #fff; }
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form fieldset { border: 0; display: grid; gap: 8px; }
.contact-form fieldset label { display: flex; align-items: center; gap: 10px; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--text); cursor: pointer; }
.contact-form input[type="radio"] { width: auto; margin: 0; accent-color: var(--accent-soft); }
.form-note { font-size: 12.5px; color: var(--text-faint); }
.form-ok { display: none; padding: 14px 16px; border-radius: 6px; border: 1px solid var(--accent-soft); color: var(--accent-soft); font-size: 14px; }
.form-err { display: none; padding: 14px 16px; border-radius: 6px; border: 1px solid rgba(255, 120, 100, 0.6); color: #ff9d8a; font-size: 14px; }

/* Social row (contact page) */
.social-row { display: flex; gap: var(--gap); margin-top: 28px; }
.social-row a {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  transition: color 0.3s, border-color 0.3s;
}
.social-row a:hover { color: var(--accent-soft); border-color: var(--accent-soft); }
.social-row svg { width: 20px; height: 20px; }

/* Legal footer inside content panels */
.legal {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 12px;
  color: var(--text-faint);
}
.legal a:hover { color: var(--accent-soft); }

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
/* Scale everything up on 2K/4K displays so content stays readable.
   --zoom must match body zoom so --vh keeps the layout at exactly 100vh. */
@media (min-width: 2000px) {
  :root { --zoom: 1.25; }
  body { zoom: 1.25; }
}
@media (min-width: 2800px) {
  :root { --zoom: 1.6; }
  body { zoom: 1.6; }
}
@media (min-width: 3600px) {
  :root { --zoom: 2; }
  body { zoom: 2; }
}

@media (max-width: 899px) {
  .frame { padding-bottom: 0; }
  .dash {
    display: flex;
    flex-direction: column;
    height: auto;
    padding-top: 74px;
    padding-bottom: calc(var(--bar-h) + 44px + env(safe-area-inset-bottom, 0px));
  }
  /* panels carry min-height but no definite height in the flex column, so
     .panel-link's height:100% collapses to content — make each panel a flex
     box so the link (and its absolute .panel-media image) fills the full box */
  .dash .panel { display: flex; }
  .dash .panel > .panel-link { flex: 1 1 auto; min-width: 0; height: auto; }
  .d-product { min-height: 380px; }
  .d-product .panel-media { left: 0; }
  .d-product .panel-media img { -webkit-mask-image: none; mask-image: none; opacity: 0.5; }
  .d-util { height: 64px; flex: 0 0 auto; }
  .d-tall { min-height: 360px; }
  .d-pair { flex-direction: column; }
  .d-pair .panel { min-height: 210px; }
  .d-tiles { flex-wrap: wrap; }
  .d-tiles .panel { min-height: 150px; flex: 1 1 45%; }
  .action-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    height: auto;
    justify-content: space-between;
    gap: 8px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 58%, transparent);
    padding: 12px var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 16px);
  }
  /* three controls laid out in a row so nothing overlaps, shrunk to fit */
  .action-bar .bar-lang,
  .action-bar .bar-link {
    position: static;
    font-size: 12px;
    letter-spacing: 0.03em;
    flex: 0 0 auto;
  }
  .action-bar .btn-action {
    font-size: 12px;
    padding: 9px 13px;
    gap: 6px;
    letter-spacing: 0.04em;
    white-space: nowrap;
  }
  .content-scroll { height: auto; overflow: visible; }
  .content-panel { display: block; }
  .content-inner { padding: 90px 18px calc(var(--bar-h) + 56px + env(safe-area-inset-bottom, 0px)); }
  /* top-right social/clock row only belongs on the dashboard on mobile */
  .hero-top { display: none; }
  .impact .impact-media { display: none; }
  .feature, .feature:hover { grid-template-columns: 1fr; }
  .founder-row, .founder-row:hover { grid-template-columns: 1fr; }
  .founder-row .media { min-height: 240px; }
  .feature-group { grid-auto-rows: auto; } /* natural heights when stacked */
  .feature .txt { padding: 24px 22px; }
  .feature .media { min-height: 240px; }
  .ledger .row { grid-template-columns: 1fr; gap: 10px; }
  .founder { max-width: 100%; }
  .statement { padding-left: 18px; }
  .tile-grid { grid-template-columns: 1fr 1fr; }
  .tile-grid > * { grid-column: span 2; }
  .tile-grid > .sp3, .tile-grid > .sp4 { grid-column: span 1; }
  .tile.span-2row { grid-row: auto; }
  .video-row { flex-direction: column; height: auto; }
  .video-tile { min-height: 230px; }
  .video-tile .cap p { max-height: 110px; opacity: 1; }
  .hero-center h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .util-wide .label { display: none; }
}

/* ============================================================
   Product configurator — retinted to the Fiberseats box style.
   The core lives in configurator.css; here we only override the
   design tokens so its cards/boxes match the site (#444 borders,
   stone accent, PP Neue Montreal).
   ============================================================ */
.pcfg.pcfg {
  --pcfg-bg: transparent;
  --pcfg-stage-bg: rgba(255, 255, 255, 0.03);
  --pcfg-surface: rgba(255, 255, 255, 0.045);
  --pcfg-surface-hover: rgba(255, 255, 255, 0.11);
  --pcfg-text: var(--text);
  --pcfg-text-muted: var(--text-dim);
  --pcfg-border: #444444;
  --pcfg-border-strong: #444444;
  --pcfg-accent: var(--accent);
  --pcfg-accent-contrast: var(--accent-ink);
  --pcfg-selected-border: var(--accent-soft);
  --pcfg-focus: var(--accent-soft);
  --pcfg-radius: 5px;
  --pcfg-radius-sm: 5px;
  --pcfg-font: "PP Neue Montreal", "Helvetica Neue", Arial, sans-serif;
  --pcfg-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
}
/* embed wrapper: one bordered box that holds the full configurator */
.pcfg-embed {
  margin-top: 22px;
  border: 1px solid #444444;
  border-radius: 5px;
}
/* the configurator manages its own scroll/sticky, so let it size naturally
   inside the content panel rather than the page's fixed-viewport model */
.pcfg-embed .pcfg__layout { min-height: 0; }
/* keep the preview pinned while the options scroll beside it */
.pcfg-embed .pcfg__stage {
  position: sticky;
  top: 84px; /* clears the floating logo panel */
  align-self: start;
  height: auto;
  max-height: 78vh;
}
.pcfg-embed .pcfg__stage-canvas { height: auto; min-height: 300px; }
.pcfg-embed .pcfg__bar { position: static; margin-top: 0; }
/* the configurator's own steps-nav shouldn't stick to the scroll container
   (it fought the site layout) — let it scroll with the panel */
.pcfg-embed .pcfg__steps-nav { position: static; }

/* Submit Request — full-width, unmistakable accent CTA (parchment on hover) */
.pcfg-embed .pcfg__submit {
  width: 100%;
  margin-top: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid var(--accent);
  letter-spacing: 0.01em;
}
.pcfg-embed .pcfg__submit:hover:not(:disabled) {
  background: var(--accent-soft);
  color: #2a2822;
  border-color: var(--accent-soft);
  opacity: 1;
}

/* the three totals — brighter panel + obvious parchment border so the
   net / MwSt / gross figures stand apart from the itemized list */
.pcfg-embed .pcfg__totals {
  border: 1px solid var(--accent-soft);
  background: rgba(255, 255, 255, 0.10);
}
.pcfg-embed .pcfg__totals .pcfg__summary-item + .pcfg__summary-item {
  border-top-color: rgba(201, 196, 180, 0.35);
}
