/* HYDRAULIC — see content.js for the design brief */

:root {
  /* palette (user-supplied) */
  --forest-950: #001B15;   /* page */
  --forest-900: #062219;   /* raised surface */
  --forest-800: #043316;   /* panels */
  --forest-700: #2A3F37;   /* lines, chips */
  --sage:       #7FA584;   /* labels, meta */
  --red:        #C8102E;   /* order actions only */
  --red-700:    #6A1416;
  --red-900:    #51030A;
  --ink:        #EEEBE2;   /* text */
  --ink-dim:    #B5BDB4;

  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Familjen Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --line: 1px solid rgba(127, 165, 132, .22);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--forest-950);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
a { color: inherit; }
b { font-weight: 600; }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 50;
  background: var(--ink); color: var(--forest-950); padding: 8px 12px;
}
.skip:focus { left: 8px; }

/* ---------- bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 14px var(--gutter);
  background: rgba(0, 27, 21, .88);
  backdrop-filter: blur(10px);
  border-bottom: var(--line);
}
.wordmark {
  font: 600 15px/1 var(--sans);
  letter-spacing: .32em;
  text-decoration: none;
}
.wordmark-sm { font-size: 13px; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--ink-dim); font-size: 15px; }
.nav a:hover { color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border: 0; border-radius: 2px; cursor: pointer;
  font: 600 16px/1 var(--sans); text-decoration: none;
  transition: background-color .15s, color .15s;
}
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-order { background: var(--red); color: #fff; }
.btn-order:hover { background: #a90d26; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--forest-700); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--sage); }

.icon-btn {
  width: 40px; height: 40px; display: inline-grid; place-items: center;
  background: transparent; border: 1px solid var(--forest-700); border-radius: 50%;
  cursor: pointer; font-size: 17px; line-height: 1;
}
.icon-btn:hover { border-color: var(--sage); }

.label {
  font: 600 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
  color: var(--sage);
}

/* ---------- hero ---------- */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(32px, 5vw, 72px) var(--gutter) clamp(48px, 7vw, 96px);
}
.kicker {
  display: flex; align-items: center; gap: 10px; margin: 0 0 28px;
  color: var(--sage); font-size: 15px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.hero-title {
  margin: 0 0 clamp(32px, 5vw, 64px);
  font: 500 clamp(44px, 7.2vw, 120px)/.98 var(--serif);
  font-optical-sizing: auto;
  letter-spacing: -.02em;
}
@media (max-width: 700px) { .br-wide { display: none; } }
.hero-title em, h2 em { font-style: italic; font-weight: 400; color: var(--sage); }

.hero-stage {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 5fr;
  gap: clamp(16px, 3vw, 40px);
  align-items: end;
}
.hero-meta {
  display: flex; flex-direction: column; gap: 14px;
  padding-bottom: 6px; border-bottom: var(--line);
}
.hero-count { font: 400 15px/1 var(--sans); color: var(--ink-dim); font-variant-numeric: tabular-nums; }
.hero-name { font: italic 500 clamp(24px, 2.4vw, 34px)/1.1 var(--serif); }
.hero-ctrl { display: flex; gap: 8px; padding-bottom: 10px; }

.hero-frame {
  padding: 0; border: 0; cursor: zoom-in; background: var(--forest-900);
  aspect-ratio: 16 / 9; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(127, 165, 132, .18), 0 40px 80px -40px rgba(81, 3, 10, .9);
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s ease; }
.hero-frame img.is-swapping { opacity: 0; }

.hero-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  margin-top: 28px;
  padding-left: calc(min(150px, 100%) + clamp(16px, 3vw, 40px));
}

.handle {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 48px; padding: 0 16px;
  background: transparent; border: 1px solid var(--forest-700); border-radius: 2px;
  cursor: pointer;
}
.handle:hover { border-color: var(--sage); }
.handle-k { font-size: 13px; color: var(--sage); }
.handle-v { font-weight: 600; }
.handle-s { font-size: 13px; color: var(--ink-dim); min-width: 4.5em; text-align: right; }

/* ---------- sections ---------- */
.section {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(56px, 8vw, 112px) var(--gutter);
  border-top: var(--line);
}
.section-head {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 5fr;
  gap: 0 clamp(16px, 3vw, 40px);
  margin-bottom: clamp(28px, 4vw, 48px);
}
.num { margin: 10px 0 0; font: 500 15px/1 var(--sans); color: var(--sage); font-variant-numeric: tabular-nums; }
.section-head h2 {
  margin: 0; font: 500 clamp(36px, 5vw, 72px)/1 var(--serif); letter-spacing: -.015em;
}
.section-note { grid-column: 2; margin: 16px 0 0; max-width: 56ch; color: var(--ink-dim); }

/* ---------- work grid: pair, full, pair, pair, repeat ---------- */
.work {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 4vw, 56px) clamp(16px, 2vw, 28px);
}
.work li:nth-child(5n + 3) { grid-column: 1 / -1; }
.tile {
  display: block; width: 100%; padding: 0; border: 0; background: none;
  text-align: left; cursor: zoom-in;
}
.tile-img {
  aspect-ratio: 16 / 9; overflow: hidden; background: var(--forest-900);
  box-shadow: 0 0 0 1px rgba(127, 165, 132, .14);
}
.tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.tile:hover .tile-img img { transform: scale(1.025); }
@media (prefers-reduced-motion: reduce) { .tile:hover .tile-img img { transform: none; } }
.tile-cap { display: flex; align-items: baseline; gap: 14px; margin-top: 14px; }
.tile-n { font-size: 14px; color: var(--sage); font-variant-numeric: tabular-nums; }
.tile-t { font: 500 clamp(20px, 1.8vw, 26px)/1.15 var(--serif); }
.work li:nth-child(5n + 3) .tile-t { font-size: clamp(26px, 2.6vw, 38px); font-style: italic; }

/* ---------- sizes ---------- */
.sizes { background: linear-gradient(180deg, var(--forest-800) 0%, var(--forest-950) 100%); max-width: none; }
.sizes > * { max-width: calc(var(--max) - 2 * var(--gutter)); margin-left: auto; margin-right: auto; }
.sizes-row {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: clamp(24px, 4vw, 56px);
  padding: clamp(28px, 4vw, 48px);
  background: #0f0f0f;  /* YouTube's dark-mode canvas, so the test is honest */
  border-radius: 4px;
}
.size { margin: 0; }
.size img { border-radius: 8px; background: #222; }
.size-l img { width: 360px; height: 203px; object-fit: cover; }
.size-m img { width: 168px; height: 95px; object-fit: cover; }
.size-s img { width: 120px; height: 68px; object-fit: cover; }
.size figcaption { margin-top: 10px; font-size: 13px; color: #aaa; }
.size figcaption b { color: #f1f1f1; margin-right: 4px; }

.picker {
  display: flex; gap: 8px; overflow-x: auto; margin-top: 20px; padding: 4px 2px 12px;
  scrollbar-color: var(--forest-700) transparent;
}
.pick {
  flex: 0 0 auto; width: 96px; aspect-ratio: 16 / 9; padding: 0; overflow: hidden;
  border: 0; border-radius: 3px; cursor: pointer; opacity: .55;
  box-shadow: 0 0 0 1px var(--forest-700);
  transition: opacity .15s;
}
.pick img { width: 100%; height: 100%; object-fit: cover; }
.pick:hover { opacity: .85; }
.pick[aria-checked="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--sage); }

/* ---------- order ---------- */
.order-body {
  display: grid; grid-template-columns: minmax(150px, 1fr) 3fr 2fr;
  gap: clamp(24px, 4vw, 56px) clamp(16px, 3vw, 40px);
}
.steps { grid-column: 2; list-style: none; margin: 0; padding: 0; }
.steps li {
  display: grid; grid-template-columns: 64px 1fr; gap: 16px;
  padding: 24px 0; border-bottom: var(--line);
}
.steps li:first-child { padding-top: 0; }
.step-n { font: italic 500 32px/1 var(--serif); color: var(--sage); }
.steps h3 { margin: 0 0 6px; font: 600 20px/1.25 var(--sans); }
.steps p { margin: 0; color: var(--ink-dim); }

.contact-card {
  align-self: start;
  padding: clamp(24px, 3vw, 36px);
  background: linear-gradient(160deg, var(--red-900) 0%, #2a0206 100%);
  box-shadow: inset 0 0 0 1px rgba(200, 16, 46, .35);
}
.contact-handle {
  margin: 14px 0 24px; font: 500 clamp(32px, 3.4vw, 48px)/1 var(--serif);
  overflow-wrap: anywhere;
}
.contact-card .label { color: #e7a3ad; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-actions .btn-ghost { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.contact-hint { margin: 20px 0 0; font-size: 14px; color: #d9c3c6; }

/* ---------- reviews ---------- */
.reviews {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: minmax(150px, 1fr) repeat(3, 5fr);
  gap: clamp(16px, 3vw, 40px);
}
.reviews li:first-child { grid-column: 2; }
.review { padding-top: 20px; border-top: 2px solid var(--sage); }
.review q { display: block; font: italic 400 22px/1.35 var(--serif); quotes: "\201C" "\201D"; }
.review cite { display: block; margin-top: 16px; font-style: normal; font-weight: 600; }
.review cite span { display: block; font-weight: 400; color: var(--sage); font-size: 14px; }
.review-slot {
  min-height: 150px; padding: 20px; display: grid; place-content: center; text-align: center;
  border: 1px dashed var(--forest-700); color: var(--forest-700);
  font-size: 14px;
}

/* ---------- footer ---------- */
.foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  padding: 28px var(--gutter); border-top: var(--line);
  color: var(--ink-dim); font-size: 14px;
}
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* ---------- lightbox ---------- */
.lightbox {
  width: min(1600px, 96vw); max-width: none; max-height: 96vh;
  padding: 0; border: 0; background: transparent; color: var(--ink);
}
.lightbox::backdrop { background: rgba(0, 12, 9, .92); }
.lightbox figure { margin: 0; }
.lightbox img { width: 100%; max-height: calc(96vh - 72px); object-fit: contain; background: #000; }
.lightbox figcaption {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 0; font: italic 500 22px/1.2 var(--serif);
}
.lb-ctrl { display: flex; gap: 8px; font-style: normal; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .bar .btn-sm { margin-left: auto; }
  .hero-stage, .section-head { grid-template-columns: 1fr; }
  .hero-meta { order: 2; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 16px; border: 0; padding: 0; }
  .hero-meta .label { display: none; }
  .hero-ctrl { margin-left: auto; padding: 0; }
  .hero-actions { padding-left: 0; }
  .num { margin: 0 0 10px; }
  .section-note { grid-column: 1; }
  .work { grid-template-columns: 1fr; }
  .order-body { grid-template-columns: 1fr; }
  .steps { grid-column: 1; }
  .reviews { grid-template-columns: 1fr; }
  .reviews li:first-child { grid-column: 1; }
}
@media (max-width: 480px) {
  .bar { gap: 12px; }
  .wordmark { letter-spacing: .22em; }
  .sizes-row { padding: 20px; }
  .size-l img { width: min(360px, calc(100vw - 72px)); height: auto; aspect-ratio: 16 / 9; }
  .handle { width: 100%; justify-content: space-between; }
  .hero-actions .btn { width: 100%; }
}
