/* ============================================================================
   DUSTY BAKER — STYLES
   Editorial, gallery-like, warm-minimal. The photography is the brand;
   everything else stays quiet.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght,SOFT,WONK@9..144,300..600,0..100,0..1&family=Archivo:wght@400;500;600&display=swap');

:root {
  --paper: #F1E9D8;     /* aged paper */
  --paper-2: #E7DCC5;
  --ink: #2B2014;       /* espresso */
  --ink-2: #7A6A52;
  --bark: #33281B;      /* dark sections */
  --line: rgba(43, 32, 20, 0.2);
  --clay: #9C4F2A;      /* accent — used sparingly */
  --moss: #4E5B3C;      /* AVAILABLE */
  --ochre: #9C731B;     /* PENDING */
  --ease: cubic-bezier(0.22, 0.61, 0.2, 1);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Archivo", Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

html { -webkit-tap-highlight-color: transparent; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a, button, input, textarea, label { touch-action: manipulation; }

img { display: block; max-width: 100%; }

/* film grain over everything — the single biggest "aged" cue */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.055;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

.wrap {
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 64px);
}

/* ------------------------------------------------------------------ type */

/* SOFT/WONK axes give Fraunces a gently hand-carved character */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-variation-settings: "SOFT" 55, "WONK" 1;
}

h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.kicker {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-2);
}

/* small joinery-diamond ornament before section labels */
.kicker::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 12px;
  background: var(--clay);
  transform: rotate(45deg) translateY(-1px);
}

.dark .kicker { color: rgba(241, 233, 216, 0.55); }

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 1em 2.1em;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}

.btn:hover { background: var(--ink); color: var(--paper); }

.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--clay); border-color: var(--clay); color: var(--paper); }

.btn-paper { border-color: var(--paper); color: var(--paper); }
.btn-paper:hover { background: var(--paper); color: var(--ink); }

.btn-ghost { border-color: var(--line); color: var(--ink-2); }
.btn-ghost:hover { background: transparent; border-color: var(--ink); color: var(--ink); }

.btn-small { padding: 0.7em 1.4em; }
.btn-large { padding: 1.2em 3em; font-size: 0.84rem; }

.btn:disabled { opacity: 0.35; cursor: not-allowed; }
.btn:disabled:hover { background: var(--ink); color: var(--paper); }

:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }

/* ------------------------------------------------------------------- nav */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding-block: 18px;
  background: transparent;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
}

.nav.scrolled {
  background: rgba(241, 233, 216, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  padding-block: 12px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { text-decoration: none; color: var(--ink); line-height: 1.15; display: flex; align-items: center; gap: 12px; }
.brand-logo {
  height: 46px;
  width: auto;
  mix-blend-mode: multiply; /* white logo background disappears into the paper */
}
.brand-name {
  display: block;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.brand-sub {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: var(--ink-2);
}

.nav-links { display: flex; gap: clamp(20px, 3vw, 44px); }
.nav-links a {
  font-size: 0.76rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink);
  text-decoration: none;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -5px;
  width: 100%; height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); }

/* ------------------------------------------------------------------ hero */

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: stretch;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(110px, 16vh, 180px) clamp(24px, 5vw, 72px) clamp(60px, 8vh, 100px);
}

.hero-title {
  font-size: clamp(3.2rem, 7.6vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-top: 26px;
}

.hero-sub {
  margin-top: 28px;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 300;
  color: var(--ink-2);
  max-width: 34ch;
}

.hero-actions {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-media { position: relative; overflow: hidden; }
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  animation: heroIn 1.6s var(--ease) both;
}

@keyframes heroIn {
  from { transform: scale(1.06); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* -------------------------------------------------------------- sections */

.section { padding-block: clamp(90px, 13vw, 170px); }

.section-head { max-width: 720px; margin-bottom: clamp(48px, 7vw, 96px); }
.section-head h2 { margin-top: 18px; }
.section-note {
  margin-top: 20px;
  color: var(--ink-2);
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.05rem;
  max-width: 52ch;
}

.dark { background: var(--bark); color: var(--paper); }
.dark ::selection { background: var(--paper); color: var(--ink); }

/* ------------------------------------------------------------- work grid */

.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(24px, 4vw, 64px);
  row-gap: clamp(70px, 9vw, 130px);
}

.work-item { cursor: pointer; }

/* Editorial rhythm — repeats every 4 pieces */
.work-item:nth-child(4n + 1) { grid-column: 1 / 8; }
.work-item:nth-child(4n + 1) .work-media { aspect-ratio: 4 / 3; }
.work-item:nth-child(4n + 2) { grid-column: 9 / 13; margin-top: clamp(60px, 10vw, 150px); }
.work-item:nth-child(4n + 2) .work-media { aspect-ratio: 3 / 4; }
.work-item:nth-child(4n + 3) { grid-column: 2 / 7; }
.work-item:nth-child(4n + 3) .work-media { aspect-ratio: 3 / 4; }
.work-item:nth-child(4n + 4) { grid-column: 8 / 13; margin-top: clamp(50px, 8vw, 120px); }
.work-item:nth-child(4n + 4) .work-media { aspect-ratio: 4 / 3; }

/* extra-wide photos get a wide frame — set wide: true on the piece in data.js */
.work-item.is-wide { grid-column: 2 / 12; margin-top: 0; }
.work-item.is-wide .work-media { aspect-ratio: 16 / 9; }

/* framed-print mat around each photo */
.work-frame {
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--paper-2);
}

.work-media { overflow: hidden; background: var(--paper-2); }
.work-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.work-item:hover .work-media img { transform: scale(1.035); }

.work-caption {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
}

.work-name {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.work-meta {
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--ink-2);
}

.work-price {
  font-family: var(--serif);
  font-size: 1.05rem;
  white-space: nowrap;
  text-align: right;
}
.work-item.is-sold .work-price { color: var(--ink-2); }

/* -------------------------------------------------------------- statuses */

.piece-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-top: 8px;
  color: var(--ink-2);
}
.piece-status::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.piece-status.st-available  { color: var(--moss); }
.piece-status.st-sold       { color: var(--ink-2); }
.piece-status.st-pending    { color: var(--ochre); }
.piece-status.st-commission { color: var(--clay); }

/* ---------------------------------------------------------------- builds */

.builds-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(18px, 3vw, 44px);
  row-gap: clamp(44px, 6vw, 80px);
}

.build-item { cursor: pointer; }
.build-item:nth-child(4n + 1) { grid-column: 1 / 8; }
.build-item:nth-child(4n + 1) .build-media { aspect-ratio: 16 / 10; }
.build-item:nth-child(4n + 2) { grid-column: 8 / 13; margin-top: clamp(30px, 5vw, 70px); }
.build-item:nth-child(4n + 2) .build-media { aspect-ratio: 4 / 5; }
.build-item:nth-child(4n + 3) { grid-column: 1 / 6; }
.build-item:nth-child(4n + 3) .build-media { aspect-ratio: 4 / 5; }
.build-item:nth-child(4n + 4) { grid-column: 6 / 13; margin-top: clamp(30px, 5vw, 70px); }
.build-item:nth-child(4n + 4) .build-media { aspect-ratio: 16 / 10; }

.build-media { overflow: hidden; }
.build-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.build-item:hover .build-media img { transform: scale(1.035); }

.build-caption { margin-top: 14px; }
.build-name {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  font-weight: 500;
  text-transform: uppercase;
}
.build-sub { margin-top: 3px; font-size: 0.78rem; color: var(--ink-2); }

/* ----------------------------------------------------------------- story */

.story-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(48px, 7vw, 110px);
  align-items: center;
}

.story-media {
  overflow: hidden;
  padding: 10px;
  border: 1px solid rgba(241, 233, 216, 0.25);
}
.story-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.story-text h2 { margin-top: 18px; max-width: 14ch; }

.story-body {
  margin-top: 30px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.7;
  color: rgba(241, 233, 216, 0.82);
  max-width: 52ch;
}
.story-body p + p { margin-top: 1em; }

.story-creed {
  margin-top: 40px;
  padding-left: 22px;
  border-left: 1px solid rgba(241, 233, 216, 0.3);
}
.story-creed p {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.story-more {
  margin-top: 30px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(241, 233, 216, 0.75);
  max-width: 52ch;
}
.story-more p + p { margin-top: 1em; }

.story-text .btn {
  margin-top: 40px;
  border-color: rgba(241, 233, 216, 0.5);
  color: var(--paper);
}
.story-text .btn:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* ---------------------------------------------------------------- custom */

.custom { background: var(--paper-2); }
.custom-inner { text-align: center; max-width: 780px; }

.custom-headline {
  margin-top: 20px;
  font-size: clamp(2.8rem, 7vw, 6rem);
  line-height: 0.98;
}

.custom-sub {
  margin: 30px auto 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.02rem, 1.5vw, 1.25rem);
  color: var(--ink-2);
  max-width: 46ch;
}

.custom .btn { margin-top: 44px; }

/* --------------------------------------------------------------- process */

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 5vw, 72px);
}

.process-num {
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 300;
  line-height: 1;
  color: var(--ink-2);
}

.process-title {
  margin-top: 16px;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.process-text { margin-top: 12px; color: var(--ink-2); font-size: 0.95rem; max-width: 34ch; }

.shipping-notes {
  margin-top: clamp(60px, 8vw, 100px);
  border-top: 1px solid var(--line);
}
.shipping-note {
  display: grid;
  grid-template-columns: minmax(180px, 280px) 1fr;
  gap: 24px;
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
}
.shipping-note dt {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding-top: 3px;
}
.shipping-note dd { color: var(--ink-2); font-size: 0.95rem; }

/* ---------------------------------------------------------------- bigcta */

.bigcta-inner { text-align: center; }
.bigcta h2 { font-size: clamp(3rem, 8vw, 7rem); }
.bigcta .btn { margin-top: 48px; }

/* ---------------------------------------------------------------- footer */

.footer { border-top: 1px solid var(--line); padding-top: clamp(50px, 6vw, 80px); }

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: clamp(50px, 6vw, 80px);
}

.footer-name { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; }
.footer-sub {
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--ink-2);
  margin-top: 4px;
}
.footer-loc { margin-top: 14px; color: var(--ink-2); font-size: 0.9rem; }

.footer-links { display: flex; flex-direction: column; gap: 12px; text-align: right; }
.footer-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.footer-links a:hover { color: var(--clay); }

.footer-fine {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-block: 26px;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
  color: var(--ink-2);
}

.patterson-credit { font-size: 0.68rem; color: var(--ink-2); opacity: 0.75; }

/* ----------------------------------------------------------------- modal */

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: var(--paper);
  overflow-y: auto;
  animation: fadeIn 0.35s var(--ease);
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-close, .builder-close {
  position: fixed;
  top: 20px; right: 22px;
  z-index: 95;
  width: 48px; height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.modal-close:hover, .builder-close:hover {
  background: var(--ink);
  color: var(--paper);
  transform: rotate(90deg);
}

.modal-body {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(36px, 5vw, 80px);
  max-width: 1320px;
  margin-inline: auto;
  padding: clamp(80px, 10vh, 120px) clamp(20px, 5vw, 64px) clamp(60px, 8vh, 100px);
}

.modal-hero {
  overflow: hidden;
  background: var(--paper-2);
  padding: 10px;
  border: 1px solid var(--line);
}
/* contain, not cover — tall pieces (doors, vanities) must never be cropped */
.modal-hero img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }

.modal-thumbs {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.modal-thumbs button {
  border: 1px solid transparent;
  padding: 0;
  background: none;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s var(--ease);
}
.modal-thumbs button.active, .modal-thumbs button:hover { opacity: 1; }
.modal-thumbs button.active { border-color: var(--ink); }
.modal-thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; }

.modal-info { padding-top: 8px; }

.modal-name {
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.05;
  text-transform: uppercase;
  margin-top: 14px;
}

.modal-meta { margin-top: 10px; color: var(--ink-2); font-size: 0.9rem; }

.modal-specs { margin-top: 34px; border-top: 1px solid var(--line); }
.modal-specs > div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}
.modal-specs dt {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-2);
  padding-top: 3px;
}
.modal-specs dd { font-family: var(--serif); font-size: 1.02rem; }

.modal-story {
  margin-top: 30px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-2);
}

.modal-cta { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; }

/* --------------------------------------------------------------- builder */

.builder {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.35s var(--ease);
}

/* explicit display values above would otherwise defeat the hidden attribute */
.builder[hidden], .modal[hidden] { display: none; }

.builder-head {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 56px);
  padding: 20px clamp(20px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.builder-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.builder-progress {
  display: flex;
  gap: clamp(14px, 3vw, 40px);
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.builder-progress::-webkit-scrollbar { display: none; }

.builder-progress li {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-2);
  opacity: 0.45;
  white-space: nowrap;
  cursor: default;
  transition: opacity 0.3s var(--ease), color 0.3s var(--ease);
}
.builder-progress li .num { font-family: var(--serif); font-size: 0.85rem; }
.builder-progress li.active { opacity: 1; color: var(--ink); }
.builder-progress li.done { opacity: 0.8; color: var(--moss); cursor: pointer; }
.builder.inquiry .builder-progress { visibility: hidden; }

.builder-close { position: absolute; }

.builder-panes { flex: 1; overflow-y: auto; }

.pane { display: none; }
.pane.active { display: block; animation: paneIn 0.5s var(--ease) both; }

@keyframes paneIn {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}

.pane-inner {
  max-width: 920px;
  margin-inline: auto;
  padding: clamp(40px, 7vh, 80px) clamp(20px, 5vw, 64px) clamp(60px, 9vh, 110px);
}

.pane-title {
  font-size: clamp(1.7rem, 3.4vw, 2.8rem);
  line-height: 1.06;
  text-transform: uppercase;
}

.pane-hint { margin-top: 14px; color: var(--ink-2); max-width: 52ch; }

.pane-nav {
  margin-top: 48px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.inspired-chip {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  padding: 8px 16px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--clay);
}

/* type cards */
.type-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 18px;
}

.type-card {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 0;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.type-card:hover { border-color: var(--ink); transform: translateY(-3px); }
.type-card.selected { border-color: var(--ink); outline: 1px solid var(--ink); }

.type-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.type-card span {
  display: block;
  padding: 14px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* style cards */
.style-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.style-card {
  position: relative;
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
  transition: border-color 0.3s var(--ease);
}
.style-card:hover { border-color: var(--ink); }
.style-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.style-card .style-hint {
  display: block;
  padding: 12px 14px 14px;
  font-size: 0.78rem;
  color: var(--ink-2);
}

.style-card .style-flag {
  position: absolute;
  top: 10px; left: 10px;
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  background: var(--ink);
  color: var(--paper);
  padding: 5px 10px;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.style-card.primary { border-color: var(--ink); outline: 1px solid var(--ink); }
.style-card.primary .style-flag { opacity: 1; }
.style-card.secondary { border-color: var(--clay); }
.style-card.secondary .style-flag { opacity: 1; background: var(--clay); }

.style-also {
  position: absolute;
  top: 8px; right: 8px;
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid var(--line);
  background: rgba(241, 233, 216, 0.9);
  color: var(--ink-2);
  padding: 5px 9px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.style-also:hover { border-color: var(--clay); color: var(--clay); }

.style-card.none-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  padding: 20px;
  text-align: center;
  font-family: var(--serif);
  font-size: 0.98rem;
  color: var(--ink-2);
}

/* forms */
.field-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 36px;
}

.field { display: block; }
.field-wide { grid-column: 1 / -1; margin-top: 28px; }
.field-grid .field-wide { margin-top: 0; }

.field > span {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-2);
  margin-bottom: 9px;
}
.field > span em { font-style: normal; opacity: 0.6; text-transform: none; letter-spacing: 0.04em; }

.field input, .field textarea {
  width: 100%;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 8px 2px 10px;
  border-radius: 0;
  transition: border-color 0.3s var(--ease);
}
.field textarea {
  border: 1px solid var(--line);
  padding: 14px;
  resize: vertical;
  line-height: 1.6;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ink);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-2); opacity: 0.55; }

.choice-row { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-2);
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.selected { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.form-error { margin-top: 22px; color: var(--clay); font-size: 0.9rem; }

/* upload */
.upload-zone {
  margin-top: 34px;
  border: 1px dashed var(--line);
  padding: clamp(24px, 4vw, 40px);
  text-align: center;
}
.upload-title { font-family: var(--serif); font-size: 1.2rem; text-transform: uppercase; }
.upload-sub { margin-top: 6px; color: var(--ink-2); font-size: 0.9rem; }
.upload-label { display: inline-block; margin-top: 18px; cursor: pointer; }
.upload-label input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-list { margin-top: 16px; list-style: none; font-size: 0.85rem; color: var(--ink-2); }
.upload-list li { padding: 4px 0; }
.upload-zone.dragging { border-color: var(--clay); background: rgba(156, 79, 42, 0.06); }
.upload-remove {
  border: none;
  background: none;
  color: var(--clay);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 2px 8px;
}

/* review */
.review-media { margin-top: 26px; max-width: 380px; }
.review-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.review-list { margin-top: 34px; border-top: 1px solid var(--line); }
.review-list > div {
  display: grid;
  grid-template-columns: minmax(150px, 240px) 1fr;
  gap: 18px;
  padding-block: 13px;
  border-bottom: 1px solid var(--line);
}
.review-list dt {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-2);
  padding-top: 4px;
}
.review-list dd { font-family: var(--serif); font-size: 1rem; white-space: pre-line; }

.review-fine { margin-top: 26px; font-size: 0.82rem; color: var(--ink-2); max-width: 46ch; }

/* confirmation */
.done-inner { text-align: center; padding-top: clamp(70px, 16vh, 160px); }
.done-title { font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1; text-transform: uppercase; }
.done-sub {
  margin: 28px auto 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.1rem;
  color: var(--ink-2);
  max-width: 42ch;
}
.done-inner .btn { margin-top: 44px; }

/* ------------------------------------------------------------------- faq */

.faq-list { max-width: 900px; border-top: 1px solid var(--line); }

.faq-item { border-bottom: 1px solid var(--line); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 52px 1fr 28px;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  transition: color 0.3s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--clay); }

.faq-num { font-family: var(--serif); font-size: 0.95rem; color: var(--ink-2); }

.faq-q {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 500;
  line-height: 1.3;
}

.faq-icon { position: relative; width: 14px; height: 14px; justify-self: end; }
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  transition: transform 0.35s var(--ease);
}
.faq-icon::before { left: 0; top: 6px; width: 14px; height: 1.5px; }
.faq-icon::after  { left: 6px; top: 0; width: 1.5px; height: 14px; }
.faq-item[open] .faq-icon::after { transform: rotate(90deg); }

.faq-a {
  padding: 0 0 28px 68px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 60ch;
}

/* ------------------------------------------------------------------ film */

.film-inner { max-width: 1000px; text-align: center; }
.film h2 { margin-top: 18px; }

.film-sub {
  margin: 20px auto 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  color: rgba(241, 233, 216, 0.72);
  max-width: 48ch;
}

.film-frame {
  margin-top: 44px;
  aspect-ratio: 16 / 9;
  padding: 10px;
  border: 1px solid rgba(241, 233, 216, 0.25);
  background: rgba(0, 0, 0, 0.25);
}
.film-frame iframe, .film-frame video, .film-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  background: #000;
}

/* film + big CTA read as one dark footer zone */
.film + .bigcta { padding-top: 0; }

/* ------------------------------------------------------- mobile CTA bar */

.mobile-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60; /* below modal (80) and builder (90) so overlays cover it */
  display: none;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(241, 233, 216, 0.94);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 0.45s var(--ease);
}
.mobile-cta.show { transform: none; }
.mobile-cta .btn { width: 100%; min-height: 52px; }

/* --------------------------------------------------------------- reveals */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- mobile */

@media (max-width: 900px) {

  /* ---- global rhythm: tighter sections, comfortable type ---- */
  .section { padding-block: 76px; }
  .section-head { margin-bottom: 44px; }
  h2 { font-size: clamp(1.9rem, 8.5vw, 2.6rem); }

  /* every button becomes an easy thumb target */
  .btn { min-height: 48px; padding: 0.9em 1.6em; }
  .btn-large { min-height: 54px; }

  /* ---- nav: solid, in-flow, and pinned — never transparent over the hero photo ---- */
  .nav {
    position: sticky;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding-block: 10px;
  }
  .nav-links { display: none; }
  .brand-name { font-size: 1.05rem; }
  .btn-small { min-height: 42px; padding: 0.5em 1.1em; }

  /* ---- hero: photo first, then title + stacked full-width CTAs ---- */
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-media { order: -1; height: 50svh; }
  .hero-text { padding: 36px 20px 56px; }
  .hero-title { font-size: clamp(2.7rem, 12.5vw, 3.6rem); margin-top: 18px; }
  .hero-sub { margin-top: 20px; font-size: 1.05rem; }
  .hero-actions { margin-top: 30px; flex-direction: column; }
  .hero-actions .btn { width: 100%; min-height: 54px; }

  /* ---- work grid: full-width framed photos, tight captions ---- */
  .work-grid { grid-template-columns: 1fr; row-gap: 56px; }
  .work-item:nth-child(n) { grid-column: 1 / -1; margin-top: 0; }
  .work-item:nth-child(n) .work-media { aspect-ratio: 4 / 3; }
  .work-item.is-wide .work-media { aspect-ratio: 16 / 9; }
  .work-frame { padding: 8px; }
  .work-caption { margin-top: 14px; }
  .work-name { font-size: 1.3rem; }
  .work-price { font-size: 1rem; }

  /* ---- bigger builds: swipe row ---- */
  .builds-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    margin-inline: calc(-1 * clamp(20px, 5vw, 64px));
    padding-inline: clamp(20px, 5vw, 64px);
    padding-bottom: 8px;
  }
  .build-item:nth-child(n) { margin-top: 0; }
  .build-item { flex: 0 0 80%; scroll-snap-align: center; }
  .build-item:nth-child(n) .build-media { aspect-ratio: 4 / 3; }

  .brand-logo { height: 38px; }

  /* ---- story ---- */
  .story-grid { grid-template-columns: 1fr; gap: 36px; }
  .story-media img { aspect-ratio: 4 / 4.4; }
  .story-text .btn { width: 100%; }

  /* ---- custom + big CTA: full-width actions ---- */
  .custom-headline { font-size: clamp(2.4rem, 11vw, 3.2rem); }
  .custom .btn, .bigcta .btn { width: 100%; }

  /* ---- process / shipping ---- */
  .process-grid { grid-template-columns: 1fr; gap: 40px; }
  .process-text { max-width: none; }
  .shipping-note { grid-template-columns: 1fr; gap: 6px; }

  /* ---- footer: stacked, generous tap spacing, room for CTA bar ---- */
  .footer-inner { flex-direction: column; }
  .footer-links { text-align: left; gap: 4px; }
  .footer-links a { padding: 8px 0; display: inline-block; }
  .footer-fine { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

  /* ---- sticky mobile CTA bar ---- */
  .mobile-cta { display: block; }

  /* ---- piece modal: stacked, swipeable thumbs, sticky CTA ---- */
  .modal-body { grid-template-columns: 1fr; gap: 28px; padding-top: 84px; }
  .modal-name { font-size: 1.9rem; }
  .modal-thumbs {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 4px;
  }
  .modal-thumbs button { flex: 0 0 76px; }
  .modal-cta {
    position: sticky;
    bottom: 0;
    z-index: 5;
    margin: 30px calc(-1 * clamp(20px, 5vw, 64px)) 0;
    padding: 12px clamp(20px, 5vw, 64px) calc(12px + env(safe-area-inset-bottom));
    background: rgba(241, 233, 216, 0.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
  }
  .modal-cta .btn { width: 100%; min-height: 52px; }
  .modal-close, .builder-close { top: 12px; right: 12px; width: 44px; height: 44px; }

  /* ---- builder: compact progress, sticky step actions ---- */
  .builder-head { flex-wrap: wrap; gap: 10px 18px; padding: 14px 76px 12px 20px; }
  .builder-title { font-size: 0.95rem; }
  .builder-progress { gap: 14px; }
  .builder-progress li { font-size: 0.62rem; letter-spacing: 0.12em; }

  .pane-inner { padding-bottom: 40px; }
  .pane-title { font-size: clamp(1.5rem, 6.5vw, 1.9rem); }

  /* step actions stay pinned at the thumb */
  .pane-nav {
    position: sticky;
    bottom: 0;
    z-index: 5;
    margin: 40px calc(-1 * clamp(20px, 5vw, 64px)) 0;
    padding: 12px clamp(20px, 5vw, 64px) calc(12px + env(safe-area-inset-bottom));
    background: rgba(241, 233, 216, 0.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
  }
  .pane-nav .btn { flex: 1; min-height: 50px; }

  /* type cards: 2-up, wildcard spans full width */
  .type-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 28px; }
  .type-card:last-child { grid-column: 1 / -1; }
  .type-card:last-child img { aspect-ratio: 8 / 3; }
  .type-card span { padding: 12px 14px; font-size: 0.72rem; }

  /* swipe-friendly style selection */
  .style-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    margin-inline: calc(-1 * clamp(20px, 5vw, 64px));
    padding-inline: clamp(20px, 5vw, 64px);
    padding-bottom: 8px;
    margin-top: 28px;
  }
  .style-card { flex: 0 0 80%; scroll-snap-align: center; }
  .style-also { padding: 9px 12px; font-size: 0.64rem; }

  /* forms: single column, big touch chips, no iOS zoom (inputs ≥16px) */
  .field-grid { grid-template-columns: 1fr; gap: 22px; margin-top: 28px; }
  .choice-row { gap: 8px; }
  .chip { flex: 1; min-width: 88px; min-height: 46px; padding: 10px 12px; }
  .upload-zone { padding: 22px 16px; }

  /* review: stacked label-over-value rows */
  .review-list > div { grid-template-columns: 1fr; gap: 3px; padding-block: 12px; }
  .review-media { max-width: none; }

  .done-inner { padding-top: 56px; }

  /* faq + film */
  .faq-item summary { grid-template-columns: 34px 1fr 22px; gap: 12px; padding: 18px 0; }
  .faq-q { font-size: 1.05rem; }
  .faq-a { padding: 0 0 22px 46px; font-size: 1rem; }
  .film-frame { margin-top: 28px; padding: 6px; }
}

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