/* ═══════════════════════════════════════════════════════════════════
   Krest Audio — Mock-Final
   Split Atelier's shell (sticky left rail, scrolling content column)
   carrying Monolith's accordion range and numbered craft rows, with
   Immersive Scroll's full-bleed photography behind every section.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --obsidian:   #0E0B08;
  --velvet:     #1A1410;
  --walnut:     #241C15;
  --copper:     #B87333;
  --copper-lit: #D08542;
  --ivory:      #F5EDD8;
  --parchment:  #D4B896;
  --hair:       rgba(184, 115, 51, .2);

  --font-display: 'Cormorant Garamond', 'Iowan Old Style', Palatino, Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --rail-w: 340px;
  --pad: 1.5rem;
  --bar-h: 72px;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

@media (min-width: 1180px) { :root { --rail-w: 400px; --pad: 4rem; } }
@media (min-width: 960px) and (max-width: 1179px) { :root { --pad: 2.5rem; } }

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--obsidian);
  color: var(--parchment);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ol { list-style: none; padding: 0; }
dl, dd { margin: 0; }

::selection { background: rgba(184, 115, 51, .32); color: var(--ivory); }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--copper); color: var(--obsidian);
  padding: .75rem 1.25rem; font-size: .875rem;
}
.skip:focus { left: 0; }

/* ── Type ──────────────────────────────────────────────────────── */
.display, .h2, h3, .step-num, .mailto,
.item-price, .item-drivers, .item-name {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ivory);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: .875rem;
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 1.75rem;
}
.idx-mark {
  margin-left: auto;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0;
  color: rgba(184, 115, 51, .5);
}
.centre .eyebrow { justify-content: center; }
.centre .idx-mark { display: none; }

.display {
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  line-height: .98;
  letter-spacing: -.01em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .85), 0 0 70px rgba(0, 0, 0, .45);
}
.display span { display: block; }

.h2 {
  font-size: clamp(1.875rem, 3.8vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -.008em;
  max-width: 24ch;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .75);
}
.h2.tight { max-width: 20ch; }

.copper { color: var(--copper); }
em { font-style: italic; }
.glow { text-shadow: 0 0 32px rgba(184, 115, 51, .35), 0 0 68px rgba(184, 115, 51, .16); }

.lede {
  font-size: clamp(1rem, 1.3vw, 1.0625rem);
  line-height: 1.85;
  max-width: 40rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .55);
}
.lede.quiet { margin-top: 1.25rem; font-size: .9375rem; color: rgba(212, 184, 150, .88); }
.sub { max-width: 38rem; color: rgba(212, 184, 150, .78); margin-top: 1.25rem; }

.rule { display: block; width: 3rem; height: 1px; background: var(--copper); margin-block: 2rem; }

.centre { text-align: center; }
.centre .h2, .centre .lede, .centre .rule { margin-inline: auto; }

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: .875rem 1.875rem;
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .06em;
  white-space: nowrap;
  transition: background .3s var(--ease), border-color .3s var(--ease),
              color .3s var(--ease), transform .3s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-solid {
  background: linear-gradient(135deg, #E0A268, var(--copper));
  color: #17110B;
  box-shadow: 0 18px 46px -22px rgba(184, 115, 51, .85);
}
.btn-solid:hover { background: linear-gradient(135deg, #EBB27C, var(--copper-lit)); }
.btn-ghost {
  border: 1px solid rgba(245, 237, 216, .35);
  color: var(--ivory);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.btn-ghost:hover { border-color: var(--ivory); background: rgba(245, 237, 216, .08); }

/* ── Shell ─────────────────────────────────────────────────────── */
.shell { display: block; }

@media (min-width: 960px) {
  .shell {
    display: grid;
    grid-template-columns: var(--rail-w) minmax(0, 1fr);
    align-items: start;
  }
}

/* ── Mobile bar ────────────────────────────────────────────────── */
.mobile-bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--bar-h);
  padding-inline: var(--pad);
  background: rgba(14, 11, 8, .9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hair);
}
.mobile-bar .brand img { height: 34px; width: auto; }

.burger { display: grid; place-content: center; gap: 6px; width: 44px; height: 44px; margin-right: -.5rem; }
.burger span {
  display: block; width: 22px; height: 1.5px; background: var(--parchment);
  transition: transform .3s var(--ease);
}
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child  { transform: translateY(-3.75px) rotate(-45deg); }

@media (min-width: 960px) { .mobile-bar { display: none; } }

/* ── Sticky rail ───────────────────────────────────────────────── */
.rail {
  position: relative;
  background: var(--velvet);
  border-right: 1px solid rgba(184, 115, 51, .15);
  overflow: hidden;
}
@media (min-width: 960px) {
  .rail { position: sticky; top: 0; height: 100svh; display: flex; }
}

.rail-bg { position: absolute; inset: 0; opacity: .14; }
.rail-bg img { width: 100%; height: 100%; object-fit: cover; }
.rail::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26, 20, 16, .55), rgba(14, 11, 8, .96));
  pointer-events: none;
}

.rail-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 2.5rem var(--pad);
  gap: 2rem;
}
@media (min-width: 960px) { .rail-inner { padding-block: 3rem; overflow-y: auto; } }

.rail-brand img { height: 54px; width: auto; }

.rail-tag { font-size: .8125rem; line-height: 1.7; letter-spacing: .04em; color: rgba(212, 184, 150, .7); }

.nav { display: flex; flex-direction: column; }
.nav a {
  display: flex;
  align-items: baseline;
  gap: .875rem;
  padding-block: .75rem;
  font-size: 1rem;
  letter-spacing: .04em;
  color: rgba(212, 184, 150, .72);
  border-bottom: 1px solid rgba(184, 115, 51, .1);
  transition: color .3s ease, padding-left .3s var(--ease);
}
.nav a .idx {
  font-family: var(--font-display);
  font-size: .8125rem;
  color: rgba(184, 115, 51, .5);
  transition: color .3s ease;
}
.nav a:hover, .nav a.active { color: var(--ivory); padding-left: .5rem; }
.nav a:hover .idx, .nav a.active .idx { color: var(--copper); }

.rail-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  padding-top: 1rem;
}
.rail-mail {
  font-size: .875rem;
  color: var(--copper);
  border-bottom: 1px solid rgba(184, 115, 51, .3);
  padding-bottom: 2px;
  overflow-wrap: anywhere;
  transition: color .3s ease, border-color .3s ease;
}
.rail-mail:hover { color: var(--copper-lit); border-color: var(--copper-lit); }
.rail-meta { font-size: .6875rem; letter-spacing: .1em; color: rgba(212, 184, 150, .4); }

/* Mobile: rail becomes a drawer under the bar */
@media (max-width: 959px) {
  .rail {
    position: fixed;
    inset: var(--bar-h) 0 auto 0;
    z-index: 110;
    max-height: calc(100svh - var(--bar-h));
    overflow-y: auto;
    border-right: 0;
    border-bottom: 1px solid var(--hair);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, transform .25s var(--ease), visibility .25s;
  }
  .rail.open { opacity: 1; visibility: visible; transform: none; }
  .rail-brand { display: none; }
  .rail-inner { gap: 1.5rem; }
  .rail-foot { margin-top: 1rem; }
}

/* ── Content ───────────────────────────────────────────────────── */
.content { min-width: 0; }
@media (max-width: 959px) { .content { padding-top: var(--bar-h); } }

/* ── Scenes ────────────────────────────────────────────────────── */
/* Every section carries its own full-bleed photograph, so each one is a
   positioning context with the image, scrim and grain stacked behind. */
.scene {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  scroll-margin-top: var(--bar-h);
  border-top: 1px solid rgba(184, 115, 51, .12);
}
@media (min-width: 960px) { .scene { scroll-margin-top: 0; } }

.scene-hero { min-height: clamp(560px, 92svh, 900px); align-items: flex-end; border-top: 0; }
@media (min-width: 960px) { .scene-hero { min-height: 100svh; } }

.scene-full { min-height: clamp(560px, 88svh, 880px); }
.scene-tall { min-height: 100svh; align-items: center; }

.scene-media { position: absolute; inset: 0; z-index: -1; }
.scene-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 55%;
  transform: scale(1.1);
  transition: transform 2.2s var(--ease);
}
.js .scene.in .scene-media img { transform: scale(1); }
html:not(.js) .scene-media img { transform: none; }

/* Bookends share the Soča, so the closing frame takes a different crop. */
.scene-end .scene-media img { object-position: center 85%; }

.scene-body {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: clamp(4.5rem, 9vw, 7rem) var(--pad);
  max-width: 1240px;
}
.scene-body.wide { max-width: 1340px; }
.scene-hero .scene-body { padding-block: clamp(3rem, 8vw, 6rem); }
.scene-body.centre { margin-inline: auto; }

/* ── Scrims ────────────────────────────────────────────────────── */
/* Flat-weighted rather than radial: centred copy over bright daylight
   photography needs the middle of the gradient to stay dark. */
.scrim { position: absolute; inset: 0; }
.scrim-hero {
  background: linear-gradient(180deg,
    rgba(14, 11, 8, .42) 0%, rgba(14, 11, 8, .72) 45%, rgba(14, 11, 8, .97) 100%);
}
/* Centred copy lands on the brightest part of these photographs (Bled's
   water, Piran's rooftops). A radial pool sunk under the text block keeps
   it readable without flattening the whole image to a grey wash. */
.scrim-centre {
  background:
    radial-gradient(ellipse 60% 55% at 50% 52%,
      rgba(14, 11, 8, .88), rgba(14, 11, 8, .5) 68%, rgba(14, 11, 8, 0)),
    linear-gradient(180deg,
      rgba(14, 11, 8, .58) 0%, rgba(14, 11, 8, .5) 45%, rgba(14, 11, 8, .82) 100%);
}
.scrim-heavy {
  background:
    linear-gradient(180deg, rgba(14, 11, 8, .93), rgba(14, 11, 8, .86) 45%, rgba(14, 11, 8, .95));
}
.scrim-end {
  background: linear-gradient(180deg, rgba(14, 11, 8, .92), rgba(14, 11, 8, .97));
}

.grain {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: .45;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
}

/* ── Hero extras ───────────────────────────────────────────────── */
.scene-hero .lede { margin-top: 2rem; }
.actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }

/* ── Monitor range (accordion) ─────────────────────────────────── */
/* Sits on frosted glass so the rows stay legible over the photograph
   without hiding it entirely. */
.range {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  border: 1px solid var(--hair);
  border-radius: 1.25rem;
  overflow: hidden;
  background: rgba(20, 16, 12, .55);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, .9);

  /* The rail eats 340–400px, so this component is always much narrower
     than the viewport. Viewport media queries misjudge it badly (monitor
     names wrap at ~1200px); it responds to its own width instead. */
  container-type: inline-size;
  container-name: range;
}

.item { border-bottom: 1px solid rgba(184, 115, 51, .14); }
.item:last-child { border-bottom: 0; }
.item h3 { margin: 0; font-size: inherit; font-weight: inherit; }
.item.is-open { background: rgba(184, 115, 51, .05); }
.item.is-flagship .item-drivers { color: var(--copper); }

.item-head {
  position: relative;
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr) 1.75rem;
  grid-template-areas:
    "drv name plus"
    "drv kick plus"
    "drv price plus";
  align-items: center;
  gap: .125rem .875rem;
  width: 100%;
  padding: 1.5rem 1.25rem;
  text-align: left;
  transition: background-color .35s var(--ease), padding-left .35s var(--ease);
}
/* Kicker moves onto its own column, then price, as room appears. */
@container range (min-width: 520px) {
  .item-head {
    grid-template-columns: 4.5rem minmax(0, 1fr) 5.5rem 1.75rem;
    grid-template-areas:
      "drv name price plus"
      "drv kick price plus";
    gap: .25rem 1.25rem;
    padding: 1.625rem 1.5rem;
  }
}
@container range (min-width: 860px) {
  .item-head {
    grid-template-columns: 5rem minmax(0, 1fr) 12rem 6.5rem 1.75rem;
    grid-template-areas: "drv name kick price plus";
    gap: 1.75rem;
    padding: 1.75rem 2rem;
  }
}

.item-head:hover { background: rgba(184, 115, 51, .08); padding-left: 1.75rem; }
@container range (min-width: 520px) { .item-head:hover { padding-left: 2rem; } }
@container range (min-width: 860px) { .item-head:hover { padding-left: 2.5rem; } }

.item-drivers {
  grid-area: drv;
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  line-height: 1;
  color: rgba(184, 115, 51, .55);
  transition: color .4s var(--ease);
}
.item-head:hover .item-drivers, .item.is-open .item-drivers { color: var(--copper); }

.item-name {
  grid-area: name;
  font-size: clamp(1.375rem, 2.4vw, 1.875rem);
  line-height: 1.15;
  transition: color .3s ease;
}
.item-head:hover .item-name { color: var(--copper); }

.tag {
  display: inline-block;
  vertical-align: middle;
  margin-left: .5rem;
  padding: .25rem .625rem;
  border: 1px solid var(--copper);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: .5625rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--copper);
}

.item-kicker {
  grid-area: kick;
  font-size: .625rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(212, 184, 150, .65);
}

.item-price { grid-area: price; font-size: 1.375rem; color: var(--parchment); }
@container range (min-width: 520px) { .item-price { text-align: right; align-self: center; } }

.item-plus { grid-area: plus; position: relative; justify-self: end; width: 16px; height: 16px; }
.item-plus::before, .item-plus::after {
  content: '';
  position: absolute; top: 50%; left: 50%;
  width: 16px; height: 1px;
  background: var(--copper);
  transform: translate(-50%, -50%);
  transition: transform .4s var(--ease), opacity .3s ease;
}
.item-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.item.is-open .item-plus::after { transform: translate(-50%, -50%) rotate(0deg); opacity: 0; }

/* `hidden` stays the source of truth for assistive tech; app.js animates
   the height, so it must remain display:block while collapsed. */
.item-panel { overflow: hidden; transition: height .45s var(--ease); }
.item-panel[hidden] { display: block; height: 0; }

.item-inner {
  display: grid;
  gap: 1.75rem;
  padding: .25rem 1.25rem 2rem;
}
@container range (min-width: 520px) {
  .item-inner { padding: .25rem 1.5rem 2.25rem 6rem; }
}
@container range (min-width: 700px) {
  .item-inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 2.5rem 3rem;
    padding: .25rem 2rem 2.5rem 7rem;
  }
  .link-arrow { grid-column: 1 / -1; }
}
.item-copy p { font-size: .9375rem; line-height: 1.85; color: rgba(212, 184, 150, .88); }

/* Driver-count pips: a quick read of where each model sits in the range. */
.pips { display: flex; gap: .375rem; margin-top: 1.25rem; }
.pips i {
  display: block;
  width: .5rem; height: .5rem;
  border-radius: 999px;
  border: 1px solid rgba(184, 115, 51, .45);
}
.pips i.on { background: var(--copper); border-color: var(--copper); }
.pips-label {
  margin-top: .625rem;
  font-size: .625rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(212, 184, 150, .5);
}

.specs { display: grid; gap: .75rem; align-content: start; }
.specs > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: .625rem;
  border-bottom: 1px solid rgba(184, 115, 51, .12);
}
.specs dt {
  font-size: .625rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(212, 184, 150, .55);
}
.specs dd { font-size: .875rem; color: var(--parchment); text-align: right; }

.link-arrow {
  justify-self: start;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--copper);
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(184, 115, 51, .4);
  transition: color .3s ease, border-color .3s ease;
}
.link-arrow:hover { color: var(--copper-lit); border-color: var(--copper-lit); }
.link-arrow span { display: inline-block; transition: transform .3s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

/* ── Craft ─────────────────────────────────────────────────────── */
.steps { margin-top: clamp(2.5rem, 5vw, 4rem); }
.step {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .75rem;
  padding-block: clamp(1.75rem, 3.5vw, 2.75rem);
  border-top: 1px solid rgba(184, 115, 51, .22);
}
@media (min-width: 780px) {
  .step { grid-template-columns: 9rem minmax(0, 1fr); gap: 3rem; align-items: start; }
}
.step-num { font-size: clamp(2.5rem, 5vw, 4rem); line-height: .9; color: rgba(184, 115, 51, .5); }
.step h3 { font-size: clamp(1.375rem, 2.6vw, 1.875rem); margin-bottom: .75rem; }
.step p {
  font-size: .9375rem;
  line-height: 1.85;
  color: rgba(212, 184, 150, .88);
  max-width: 42rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .5);
}

/* ── Contact ───────────────────────────────────────────────────── */
.watermark {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(70%, 560px);
  opacity: .06;
  z-index: 0;
  pointer-events: none;
}

.mailto {
  display: inline-block;
  margin-top: 2.5rem;
  font-size: clamp(1.375rem, 3.8vw, 2.75rem);
  color: var(--copper);
  text-shadow: 0 0 32px rgba(184, 115, 51, .35), 0 0 68px rgba(184, 115, 51, .16);
  overflow-wrap: anywhere;
  transition: color .3s ease;
}
.mailto:hover { color: var(--copper-lit); }

.scene-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: clamp(3.5rem, 8vw, 5.5rem);
  padding-top: 2.5rem;
  border-top: 1px solid rgba(184, 115, 51, .18);
}
.footer-mark { height: 32px; width: auto; opacity: .8; }
.footer-meta { font-size: .6875rem; letter-spacing: .12em; color: rgba(212, 184, 150, .45); }

/* ── Without JavaScript ────────────────────────────────────────── */
/* The rail is script-driven on narrow screens, and the accordion
   collapses via script — with JS off both simply stay open. */
@media (max-width: 959px) {
  html:not(.js) .rail {
    position: static;
    max-height: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  html:not(.js) .mobile-bar { display: none; }
  html:not(.js) .content { padding-top: 0; }
  html:not(.js) .rail-brand { display: block; }
}
html:not(.js) .item-panel[hidden] { display: block; height: auto; }
html:not(.js) .item-plus { display: none; }
html:not(.js) .item-head { cursor: default; }

/* ── Scroll reveal ─────────────────────────────────────────────── */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .85s var(--ease), transform .85s var(--ease);
  transition-delay: var(--d, 0ms);
}
.reveal.in { opacity: 1; transform: none; }

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