/* DryStroke: Studio Dark. Order: fonts → tokens → base → components → sections → motion */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Outfit';
  src: url('../fonts/outfit-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('../fonts/instrument-serif-latin-400-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;
  --bg: #121212;
  --surface: #1b1b1a;
  --raised: #242422;
  --line: #2e2d2b;
  --text: #ecebe8;
  --muted: #9a9893;
  --brass: #c9a96a;
  --brass-hi: #dcc08a;
  --on-brass: #141414;
  --spot: #2c2b28;
  --error: #f0a58f;
  --sans: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --r: 8px;
  --r-lg: 12px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(88px, 12vw, 168px);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow-art: 0 24px 48px rgba(0, 0, 0, .65), 0 4px 10px rgba(0, 0, 0, .4);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 300; letter-spacing: -.025em; line-height: 1.05; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--brass); color: var(--on-brass); }
section[id] { scroll-margin-top: var(--header-h); }
#main:focus { outline: none; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--brass); color: var(--on-brass); padding: 10px 16px;
  border-radius: var(--r); text-decoration: none; font-weight: 500;
}
.skip-link:focus { top: 16px; }

/* ---------- Type ---------- */
.eyebrow { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.eyebrow--brass { color: var(--brass); }
.display { font-size: clamp(44px, 7vw, 88px); line-height: 1; }
.h2 { font-size: clamp(34px, 4.6vw, 56px); }
.h3 { font-size: 22px; font-weight: 400; letter-spacing: -.01em; line-height: 1.25; }
.accent { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; color: var(--brass); }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 56ch; }
.muted { color: var(--muted); }
.meta { font-size: 13px; color: var(--muted); }
.caption { margin-top: 14px; font-size: 13px; color: var(--muted); }
.caption b { display: block; color: var(--text); font-weight: 400; font-size: 14px; }

/* ---------- Layout helpers ---------- */
.section { padding-block: var(--section); }
.section__head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 500 15px/1 var(--sans); padding: 15px 24px; border-radius: var(--r);
  border: 1px solid transparent; text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
.btn--primary { background: var(--brass); color: var(--on-brass); }
.btn--primary:hover { background: var(--brass-hi); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--text); border-color: #4a4843; }
.btn--ghost:hover { border-color: var(--brass); color: var(--brass); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.link-arrow { text-decoration: none; border-bottom: 1px solid var(--brass); padding-bottom: 3px; font-size: 15px; transition: color .2s; }
.link-arrow:hover { color: var(--brass); }
.chip {
  font: 400 14px/1 var(--sans); min-height: 40px; padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.chip:hover { color: var(--text); border-color: #4a4843; }
.chip[aria-pressed="true"] { background: var(--text); color: var(--on-brass); border-color: var(--text); }

/* ---------- Frames & wall lighting ---------- */
.frame { position: relative; background: var(--surface); box-shadow: var(--shadow-art); transition: transform .5s var(--ease); }
.frame img, .frame svg { width: 100%; height: auto; }
.frame--black { border: clamp(5px, .9vw, 12px) solid #0b0b0b; box-shadow: 0 0 0 1px #2a2a2a, var(--shadow-art); }
.frame--oak { border: clamp(5px, .9vw, 12px) solid #b08a5a; }
.frame--brass { border: 2px solid var(--brass); padding: clamp(6px, 1.2vw, 16px); background: #1b1b1a; }
.frame--none { background: none; }
@media (hover: hover) { .frame:hover { transform: translateY(-4px); } }
.spotlit { position: relative; isolation: isolate; }
.spotlit::before {
  content: ""; position: absolute; inset: -10% 0 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 60% 45% at 50% 38%, var(--spot) 0%, transparent 75%);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  border-bottom: 1px solid transparent; transition: background-color .3s, border-color .3s;
}
.site-header.is-scrolled, .site-header.is-open {
  background: rgba(18, 18, 18, .92); border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.wordmark { font-weight: 500; font-size: 15px; letter-spacing: .32em; text-decoration: none; }
.wordmark__tld { font-size: .7em; letter-spacing: .2em; }
.site-nav { display: flex; align-items: center; gap: 36px; }
.site-nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { text-decoration: none; font-size: 15px; color: var(--muted); transition: color .2s; }
.site-nav ul a:hover { color: var(--text); }
.menu-toggle { display: none; }

@media (max-width: 899px) {
  .js .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
    background: none; border: 1px solid var(--line); border-radius: var(--r); color: var(--text); cursor: pointer;
  }
  .menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
    display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; transition: transform .25s, background-color .25s;
  }
  .menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .menu-toggle__bars::before { top: -6px; }
  .menu-toggle__bars::after { top: 6px; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

  .js .site-nav {
    display: none; position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; align-items: stretch; gap: 24px;
    padding: 16px var(--gutter) 32px; background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .js .site-header.is-open .site-nav { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 12px 0; font-size: 20px; color: var(--text); }
  html:not(.js) .site-nav ul { display: none; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 48px; }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; }
.site-footer p { font-size: 14px; color: var(--muted); }
.site-footer a { text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--brass); }

/* ====== Sections (appended by later tasks, above the Motion block) ====== */

/* ---------- Hero ---------- */
.hero { padding-top: calc(var(--header-h) + clamp(56px, 9vw, 120px)); padding-bottom: clamp(64px, 9vw, 120px); overflow: hidden; }
.hero__inner { display: grid; gap: clamp(56px, 8vw, 96px); }
.hero__copy { display: grid; gap: 24px; }
.hero h1 { text-wrap: balance; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; margin-top: 8px; }
.hero__wall {
  display: grid; grid-template-columns: 1fr 1.25fr 1fr; align-items: end;
  gap: clamp(14px, 4vw, 56px); padding: clamp(40px, 6vw, 80px) clamp(0px, 4vw, 64px) 0;
}
.hero__piece { margin: 0; }
.hero__piece--lead { margin-bottom: clamp(12px, 3vw, 40px); }
.hero__wall.spotlit::before { animation: warm-up 1.8s var(--ease) both; }
@keyframes warm-up { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 639px) { .hero__wall .caption { display: none; } }

/* ---------- Audiences ---------- */
.audiences .section__head { position: relative; top: clamp(6px, .9vw, 11px); }
.audiences__list {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 1px;
  background: var(--line); border-block: 1px solid var(--line);
}
@media (min-width: 640px) { .audiences__list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .audiences__list { grid-template-columns: repeat(4, 1fr); } }
.audience { background: var(--bg); padding: 32px 24px 40px; display: grid; gap: 12px; align-content: start; }
.audience__num { font-size: 13px; font-weight: 500; letter-spacing: .1em; color: var(--brass); }
.audience p { font-size: 15px; }

/* ---------- Collections ---------- */
.collections__head { display: grid; gap: 32px; align-items: end; margin-bottom: clamp(24px, 4vw, 48px); }
.collections__head .section__head { margin-bottom: 0; }
@media (min-width: 1080px) { .collections__head { grid-template-columns: 1fr auto; } }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
html:not(.js) .filters { display: none; }
.gallery {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); align-items: end;
  gap: clamp(40px, 5vw, 64px) clamp(20px, 3vw, 40px);
}
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .gallery { grid-template-columns: repeat(5, 1fr); } }
.work figure { margin: 0; }
.work.is-entering { animation: fade-up .6s var(--ease) both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Made to measure ---------- */
.scheme__layout { display: grid; gap: 32px; }
@media (min-width: 1000px) { .scheme__layout { grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); align-items: center; gap: 56px; } }
.interior-stage { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r-lg); background: var(--surface); }
.interior { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s var(--ease); }
.interior.is-active { opacity: 1; }
.scheme-controls { display: grid; gap: 28px; }
.scheme-controls fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.scheme-controls legend { padding: 0; margin-bottom: 12px; }
.options { display: flex; flex-wrap: wrap; gap: 8px; }
.option-pill { position: relative; }
.option-pill input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.option-pill span {
  display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 10px 16px;
  border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--muted);
  transition: background-color .2s, border-color .2s, color .2s;
}
.option-pill:hover input:not(:checked) + span { color: var(--text); border-color: #4a4843; }
.option-pill input:checked + span { background: var(--text); color: var(--on-brass); border-color: var(--text); }
.option-pill input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: 3px; }
.scheme-caption { padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; }

/* ---------- Framing ---------- */
.framing .section__head, .framing .lede { max-width: none; }
.framing .lede { text-wrap: pretty; }
.frames {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); align-items: end; gap: clamp(32px, 5vw, 56px) clamp(20px, 3vw, 40px);
}
@media (min-width: 900px) { .frames { grid-template-columns: repeat(4, 1fr); } }
.frames figure { margin: 0; }
.perks { list-style: none; margin: clamp(56px, 8vw, 96px) 0 0; padding: 0; display: grid; gap: 32px; }
@media (min-width: 760px) { .perks { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.perk { display: grid; gap: 10px; padding-top: 24px; border-top: 1px solid var(--line); }
.perk p { font-size: 15px; }

/* ---------- Process ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; counter-reset: none; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; } }
.step { display: grid; gap: 12px; align-content: start; }
.step__num { font-size: clamp(48px, 5vw, 64px); font-weight: 200; line-height: 1; color: var(--brass); letter-spacing: -.03em; }
.step p { font-size: 15px; }

/* ---------- Quality ---------- */
.quality { border-block: 1px solid var(--line); background: var(--surface); }
.quality__list { list-style: none; margin: 0; padding: 40px 0; display: grid; gap: 28px; }
@media (min-width: 640px) { .quality__list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .quality__list { grid-template-columns: repeat(4, 1fr); } }
.quality__list li { display: grid; gap: 4px; }
.quality__list strong { font-weight: 500; font-size: 16px; }
.quality__list span { font-size: 14px; color: var(--muted); }

/* ---------- Enquiry ---------- */
.enquiry__layout { display: grid; gap: 48px; }
@media (min-width: 1000px) { .enquiry__layout { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 80px; align-items: start; } }
.enquiry__layout .section__head { margin-bottom: 0; }
.enquiry__panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 48px); }
.field-grid { display: grid; gap: 22px; }
@media (min-width: 640px) { .field-grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field { display: grid; gap: 8px; align-content: start; }
.field label { font-size: 14px; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 16px/1.4 var(--sans); color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 13px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field ::placeholder { color: #6f6d68; }
.field select {
  appearance: none; padding-right: 40px; background-repeat: no-repeat; background-position: right 14px center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%239a9893' stroke-width='1.5'/%3E%3C/svg%3E");
}
.field :is(input, select, textarea):hover { border-color: #4a4843; }
.field :is(input, select, textarea):focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(201, 169, 106, .2); }
.field [aria-invalid="true"] { border-color: #e07a5f; }
.field__error { font-size: 13px; color: var(--error); }
.field__error:empty { display: none; }
.enquiry-form__footer { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 28px; }
.enquiry-form__footer a, .form-status a, .enquiry-success a { color: var(--text); text-decoration-color: var(--brass); text-underline-offset: 3px; }
.form-status { margin-top: 16px; font-size: 15px; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--error); }
.enquiry-success { display: grid; gap: 16px; }
.enquiry-success:focus { outline: none; }

/* ---------- Privacy page ---------- */
.legal { padding-top: calc(var(--header-h) + 64px); padding-bottom: var(--section); }
.legal__body { max-width: 68ch; display: grid; gap: 20px; }
.legal__body h2 { font-size: 24px; font-weight: 400; margin-top: 20px; }
.legal__body p, .legal__body li { color: var(--muted); }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

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