/* =========================================================
   STUDIO BLACK OAK — Landing Page
   Mobile-first. Tokens → base → layout → components → motion.
   Palette source: paleta-black-oak.jpeg + logo (#4F2425)
   ========================================================= */

/* ---------- 1. TOKENS ---------- */
:root {
  /* Brand */
  --oak-900: #2B1512;
  --oak-800: #4F2425;   /* logo ink */
  --oak-700: #542714;   /* palette */
  --oak-500: #734924;   /* palette */
  --oak-300: #A87B52;
  --oak-200: #C9A98A;

  /* Neutrals */
  --bone:    #FEFDFD;   /* palette */
  --sand:    #F4EFE9;
  --mist:    #EAEAEA;   /* palette */
  --ink:     #33231E;
  --ink-soft:#5F4A42;

  /* Roles */
  --bg:          var(--bone);
  --bg-alt:      var(--sand);
  --bg-deep:     var(--oak-900);
  --text:        var(--ink);
  --text-soft:   var(--ink-soft);
  --text-invert: var(--bone);
  --line:        rgba(84, 39, 20, .16);
  --line-light:  rgba(254, 253, 253, .20);

  /* Type */
  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body: "Jost", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;

  --fs-kicker: clamp(.68rem, .62rem + .22vw, .78rem);
  --fs-body:   clamp(1rem, .96rem + .22vw, 1.1rem);
  --fs-lede:   clamp(1.08rem, 1rem + .5vw, 1.32rem);
  --fs-h3:     clamp(1.35rem, 1.15rem + .9vw, 1.85rem);
  --fs-h2:     clamp(2rem, 1.4rem + 2.6vw, 3.4rem);
  --fs-h1:     clamp(2.5rem, 1.6rem + 4vw, 4.9rem);

  /* Space */
  --shell: 1240px;
  --gutter: clamp(1.15rem, .6rem + 2.6vw, 2.5rem);
  --section-y: clamp(4.5rem, 3rem + 7vw, 9rem);
  --stack: clamp(1rem, .8rem + .8vw, 1.5rem);

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur: .55s;

  --radius: 2px;
  --shadow-lift: 0 18px 45px -22px rgba(43, 21, 18, .55);
  --shadow-deep: 0 34px 80px -34px rgba(43, 21, 18, .62);
}

/* ---------- 2. RESET / BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

/* Hard stop on horizontal overflow — mobile requirement */
html, body { max-width: 100%; overflow-x: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: 1.68;
  letter-spacing: .004em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

img, picture, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, figure, fieldset, legend { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }

::selection { background: var(--oak-700); color: var(--bone); }

:focus-visible {
  outline: 2px solid var(--oak-500);
  outline-offset: 3px;
  border-radius: var(--radius);
}

.sr-only {
  position: absolute; 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: 1rem; top: -100%; z-index: 999;
  background: var(--oak-800); color: var(--bone);
  padding: .8rem 1.2rem; text-decoration: none; font-size: .9rem;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- 3. TYPE SCALE ---------- */
.kicker, .eyebrow {
  font-size: var(--fs-kicker);
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--oak-500);
  line-height: 1.5;
  text-wrap: balance;
}
.eyebrow { display: flex; align-items: center; gap: .7rem; }
.eyebrow::before {
  content: ""; width: clamp(1.5rem, 3vw, 2.6rem); height: 1px;
  background: currentColor; opacity: .6; flex: none;
}
.eyebrow--light { color: var(--oak-200); }

.hero__title, .h2 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -.012em;
  color: var(--oak-800);
  text-wrap: balance;
}
.hero__title { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); line-height: 1.08; }
.h2--light, .hero__title em, .h2 em { color: inherit; }
.hero__title em, .h2 em { font-style: italic; color: var(--oak-500); }
.h2--light { color: var(--bone); }
.h2--light em { color: var(--oak-200); }

.lede {
  font-size: var(--fs-lede);
  line-height: 1.6;
  color: var(--text-soft);
  max-width: 46ch;
  text-wrap: pretty;
}
.body {
  color: var(--text-soft);
  max-width: 56ch;
  text-wrap: pretty;
}
.body--light { color: rgba(254, 253, 253, .78); }
.lede--light { color: var(--bone); }

/* ---------- 4. BUTTONS ---------- */
.btn {
  --btn-bg: var(--oak-700);
  --btn-fg: var(--bone);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 48px;
  padding: .9rem 1.9rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: .82rem;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out),
              background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
/* sheen sweep */
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.22) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .75s var(--ease-out);
}
.btn:hover::after, .btn:focus-visible::after { transform: translateX(120%); }

.btn--solid { box-shadow: var(--shadow-lift); }
.btn--solid:hover, .btn--solid:focus-visible {
  --btn-bg: var(--oak-800);
  transform: translateY(-2px);
  box-shadow: 0 22px 48px -20px rgba(84, 39, 20, .68);
}
.btn--solid:active { transform: translateY(0); }

.btn--solid-light { --btn-bg: var(--bone); --btn-fg: var(--oak-800); box-shadow: var(--shadow-deep); }
.btn--solid-light:hover, .btn--solid-light:focus-visible {
  --btn-bg: #fff; transform: translateY(-2px);
}

.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--oak-800);
  border-color: var(--line);
  padding-inline: 1.5rem;
}
.btn--ghost:hover, .btn--ghost:focus-visible {
  --btn-bg: var(--oak-800); --btn-fg: var(--bone);
  border-color: var(--oak-800);
  transform: translateY(-2px);
}

.btn--quiet { --btn-bg: transparent; --btn-fg: var(--bone); border-color: var(--line-light); }
.btn--quiet:hover { --btn-bg: rgba(254,253,253,.1); }

.btn--lg { padding: 1.1rem 2.3rem; min-height: 56px; }
.btn--block { width: 100%; }
.btn--tiny { min-height: 40px; padding: .5rem 1rem; font-size: .72rem; letter-spacing: .12em; }

.btn__spinner { display: none; width: 16px; height: 16px; border: 2px solid currentColor;
  border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.is-busy { pointer-events: none; opacity: .78; }
.btn.is-busy .btn__spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 5. NAVBAR ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-block: clamp(.7rem, .5rem + .6vw, 1.1rem);
  background: transparent;
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
}
/* Without JS the nav never gets `is-stuck`, so it would sit transparent
   over the dark sections and the maroon logo would disappear. Pin the
   solid state on permanently in that case. */
.nav.is-stuck,
html:not(.js) .nav {
  background: rgba(254, 253, 253, .82);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -22px rgba(43, 21, 18, .4);
  padding-block: .5rem;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.nav__brand { display: flex; align-items: center; min-height: 44px; flex: none; }
.nav__brand img { width: clamp(140px, 12vw, 190px); height: auto; }

.nav__list { display: none; }
.nav__cta { display: none; }

.nav__toggle {
  width: 48px; height: 48px; margin-right: -.6rem;
  display: grid; place-items: center;
  background: none; border: 0; cursor: pointer; color: var(--oak-800);
}
.nav__bars { display: block; width: 26px; }
.nav__bars i {
  display: block; height: 1.5px; background: currentColor; border-radius: 2px;
  transition: transform .4s var(--ease-out), opacity .3s var(--ease), width .4s var(--ease-out);
}
.nav__bars i + i { margin-top: 7px; width: 18px; margin-left: auto; }
.nav.is-open .nav__bars i:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav.is-open .nav__bars i + i { width: 26px; transform: translateY(-4px) rotate(-45deg); }

.nav__scrim {
  position: fixed; inset: 0; z-index: 98;
  background: rgba(43, 21, 18, .45);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  opacity: 0; transition: opacity .35s var(--ease);
}
.nav__scrim.is-visible { opacity: 1; }

/* Mobile drawer */
@media (max-width: 899px) {
  .nav__menu {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(84vw, 360px);
    z-index: 99;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    padding: 5rem var(--gutter) 3rem;
    background: var(--oak-900);
    color: var(--bone);
    transform: translateX(102%);
    transition: transform .45s var(--ease-out);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nav.is-open .nav__menu { transform: translateX(0); }
  .nav__list { display: grid; gap: .35rem; }
  .nav__link {
    display: block;
    min-height: 48px;
    padding: .75rem 0;
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 300;
    text-decoration: none;
    border-bottom: 1px solid var(--line-light);
    transition: color .3s var(--ease), padding-left .35s var(--ease-out);
  }
  .nav__link:hover, .nav__link:focus-visible { color: var(--oak-200); padding-left: .5rem; }
  .nav__cta { display: inline-flex; --btn-bg: var(--bone); --btn-fg: var(--oak-800); }
}

@media (min-width: 900px) {
  .nav__toggle { display: none; }
  .nav__scrim { display: none; }
  .nav__menu { display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 2.8rem); }
  .nav__list { display: flex; align-items: center; gap: clamp(1.2rem, 2.4vw, 2.2rem); }
  .nav__link {
    position: relative;
    font-size: .82rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--oak-800);
    padding-block: .45rem;
    transition: color .3s var(--ease);
  }
  .nav__link::after {
    content: ""; position: absolute; left: 0; bottom: 0;
    width: 100%; height: 1px; background: currentColor;
    transform: scaleX(0); transform-origin: right;
    transition: transform .4s var(--ease-out);
  }
  .nav__link:hover::after, .nav__link:focus-visible::after,
  .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
  .nav__link.is-active { color: var(--oak-500); }
  .nav__cta { display: inline-flex; min-height: 44px; padding: .7rem 1.4rem; font-size: .74rem; }
}

/* ---------- 6. SHARED MEDIA FRAMES ---------- */
.frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--mist);
  box-shadow: var(--shadow-deep);
}
.frame img, .frame__video { width: 100%; height: 100%; object-fit: cover; }
.frame--tall { aspect-ratio: 3 / 4; }
.frame--square { aspect-ratio: 1 / 1; }

@media (min-width: 900px) {
  .frame--tall { aspect-ratio: 4 / 5.4; }
}

/* soft cinematic wash so text beside it always wins contrast */
.frame__wash {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,.06), transparent 60%),
    linear-gradient(to top, rgba(43,21,18,.34), transparent 45%);
}
.frame__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.4rem 1.2rem .9rem;
  font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--bone);
  background: linear-gradient(to top, rgba(43,21,18,.72), transparent);
}

/* ---------- 7. HERO ---------- */
.hero {
  position: relative;
  padding-top: clamp(6.5rem, 5rem + 9vw, 9.5rem);
  padding-bottom: var(--section-y);
  background:
    radial-gradient(90% 60% at 88% 8%, rgba(168, 123, 82, .16), transparent 62%),
    radial-gradient(70% 50% at 0% 100%, rgba(84, 39, 20, .08), transparent 60%),
    var(--bg);
  overflow: hidden;
}
.hero__grain, .section__grain {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.045'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
.hero__grid { position: relative; z-index: 1; display: grid; gap: clamp(2.5rem, 6vw, 4rem); }
.hero__copy { display: grid; gap: var(--stack); align-content: center; }
.hero__title { margin-block: .2rem .3rem; }
.hero__actions { display: grid; gap: 1.1rem; justify-items: start; margin-top: .6rem; }
.hero__meta {
  font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--oak-500);
}
.hero__media { position: relative; }
.hero__rule { display: none; }

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.02fr .78fr;
    align-items: center;
    gap: clamp(3rem, 6vw, 6rem);
  }
  .hero__media { max-width: 460px; margin-left: auto; }
  .hero__rule {
    display: block; position: absolute; left: -3.2rem; top: 12%;
    width: 1px; height: 46%; background: linear-gradient(var(--line), transparent);
  }
  .hero { padding-top: clamp(8rem, 6rem + 6vw, 11rem); }
}

/* ---------- 8. SECTIONS + SPLIT LAYOUT ---------- */
.section { position: relative; padding-block: var(--section-y); }
.section--value { background: var(--bg-alt); }

.split { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); align-items: center; }
.split__copy { display: grid; gap: var(--stack); align-content: center; min-width: 0; }
.split__media { position: relative; min-width: 0; }

@media (min-width: 1000px) {
  .split { grid-template-columns: 1fr 1fr; gap: clamp(3rem, 6vw, 6rem); }
  .split--top { align-items: start; }
  .split--media-left .split__media { order: -1; }
  .split--media-right .split__media { order: 1; }
}

/* Asymmetric inset image (value section) */
.frame--inset { display: none; }
@media (min-width: 1000px) {
  .frame--inset {
    display: block;
    position: absolute;
    right: -2.2rem;
    bottom: -3rem;
    width: 34%;
    aspect-ratio: 3 / 4.4;
    border: 6px solid var(--bg-alt);
    box-shadow: var(--shadow-deep);
  }
}

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .42rem 1rem;
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--oak-500);
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.chips li:hover { background: var(--oak-700); color: var(--bone); border-color: var(--oak-700); }

.split__copy .btn { justify-self: start; margin-top: .4rem; }

/* ---------- 9. PROCESS ---------- */
.section--process {
  background:
    radial-gradient(80% 60% at 78% 4%, rgba(115, 73, 36, .38), transparent 60%),
    linear-gradient(180deg, var(--oak-900), #1F0F0D);
  color: var(--bone);
  overflow: hidden;
}
.section__grain { opacity: .8; mix-blend-mode: overlay; }
.section--process > .shell { position: relative; z-index: 1; }

.section__head { display: grid; gap: var(--stack); margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__intro { max-width: 60ch; }

.process { display: grid; gap: clamp(2.5rem, 6vw, 4rem); }

.steps { position: relative; display: grid; gap: clamp(1.6rem, 3vw, 2.4rem); padding-left: 2.6rem; }
.steps__track {
  position: absolute; left: .72rem; top: .6rem; bottom: .6rem;
  width: 1px; background: var(--line-light);
}
.steps__track i {
  position: absolute; inset: 0 auto 0 0; width: 1px; height: 0;
  background: linear-gradient(var(--oak-200), var(--oak-300));
  transition: height .18s linear;
}
.step { position: relative; }
.step__num {
  position: absolute; left: -2.6rem; top: .1rem;
  width: 1.45rem; height: 1.45rem;
  display: grid; place-items: center;
  border: 1px solid var(--line-light);
  border-radius: 50%;
  background: var(--oak-900);
  font-size: .58rem; letter-spacing: .04em; color: var(--oak-200);
  transition: border-color .5s var(--ease), color .5s var(--ease), background-color .5s var(--ease);
}
.step.is-in .step__num { border-color: var(--oak-300); color: var(--oak-900); background: var(--oak-200); }
.step__num-sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.step__title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 300;
  line-height: 1.15;
  color: var(--bone);
  margin-bottom: .4rem;
}
.step__body p { color: rgba(254, 253, 253, .74); max-width: 48ch; text-wrap: pretty; }

.process__media { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(.8rem, 2vw, 1.4rem); }
.process__media .frame { box-shadow: 0 30px 70px -34px rgba(0, 0, 0, .8); }

@media (min-width: 1000px) {
  .process { grid-template-columns: 1fr .85fr; align-items: center; gap: clamp(3rem, 6vw, 5.5rem); }
  .frame--offset { margin-top: clamp(2rem, 5vw, 4rem); }
}

/* ---------- 10. STUDIO / FILM ---------- */
.split__media--single { max-width: 460px; }
@media (min-width: 1000px) { .split__media--single { margin-inline: auto; } }

.video-card { background: var(--oak-900); }
/* Only offered when JS can drive it — otherwise the native controls take over. */
.video-card__play { display: none; }
.js .video-card__play {
  position: absolute; inset: auto 0 0 0;
  display: flex; align-items: center; justify-content: center; gap: .7rem;
  min-height: 56px; width: 100%;
  padding: 1rem;
  border: 0; cursor: pointer;
  /* Opaque enough at the base that the label stays legible over a bright poster. */
  background: linear-gradient(to top,
    rgba(43, 21, 18, .94) 0%,
    rgba(43, 21, 18, .78) 45%,
    rgba(43, 21, 18, 0) 100%);
  color: var(--bone);
  text-shadow: 0 1px 2px rgba(43, 21, 18, .5);
  font-size: .76rem; letter-spacing: .16em; text-transform: uppercase;
  transition: background-color .35s var(--ease), gap .35s var(--ease-out);
}
.video-card__play:hover, .video-card__play:focus-visible { gap: 1.1rem; }
.video-card__play svg { flex: none; }
.video-card.is-playing .video-card__play { display: none; }

/* ---------- 11. INVITATION ---------- */
.section--invite {
  position: relative;
  overflow: hidden;
  background: var(--oak-900);
  color: var(--bone);
  text-align: center;
  padding-block: clamp(5rem, 4rem + 8vw, 10rem);
}
.invite__bg { position: absolute; inset: -12% 0; z-index: 0; }
.invite__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.section--invite::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  /* Dark enough for AA text contrast, light enough that the room still reads. */
  background:
    radial-gradient(75% 65% at 50% 50%, rgba(43,21,18,.42), rgba(31,15,13,.86) 80%);
}
.invite__inner {
  position: relative; z-index: 1;
  display: grid; gap: var(--stack); justify-items: center;
}
.invite__title { max-width: 18ch; }
.invite__inner .lede, .invite__inner .body { max-width: 50ch; margin-inline: auto; }
.invite__inner .btn { margin-top: .8rem; }
.invite__meta {
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--oak-200);
}

/* ---------- 12. FORM ---------- */
.section--inquiry { background: var(--bg-alt); }

.form { display: grid; gap: 1.35rem; margin-top: .8rem; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.field { position: relative; display: grid; }
.field__input {
  width: 100%;
  min-height: 52px;
  padding: 1.5rem .95rem .6rem;
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.field__input--area { min-height: 120px; padding-top: 1.7rem; resize: vertical; }
.field__label {
  position: absolute;
  left: .95rem; top: 1rem;
  font-size: .95rem;
  color: var(--text-soft);
  pointer-events: none;
  transform-origin: left top;
  transition: transform .25s var(--ease-out), color .25s var(--ease);
}
.field__input:focus + .field__label,
.field__input:not(:placeholder-shown) + .field__label {
  transform: translateY(-.72rem) scale(.72);
  color: var(--oak-500);
}
.field__input:focus {
  outline: none;
  border-color: var(--oak-500);
  box-shadow: 0 0 0 3px rgba(115, 73, 36, .14);
}
.field__opt { text-transform: none; letter-spacing: 0; opacity: .7; }
.field__hint { font-size: .78rem; color: var(--text-soft); opacity: .8; margin-top: .35rem; }
.field__msg { font-size: .78rem; margin-top: .3rem; min-height: 0; color: #9B2C2C; }
.field__msg:empty { display: none; }

.field.is-invalid .field__input { border-color: #9B2C2C; box-shadow: 0 0 0 3px rgba(155, 44, 44, .1); }
.field.is-valid .field__input { border-color: rgba(115, 73, 36, .55); }
.field.is-valid .field__msg { color: var(--oak-500); }

.choices { display: grid; gap: .7rem; }
.choices__legend {
  font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--oak-500);
  margin-bottom: .1rem;
}
.choices__set { display: flex; flex-wrap: wrap; gap: .55rem; }
.choice { position: relative; }
.choice input {
  position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer;
}
.choice span {
  display: flex; align-items: center;
  min-height: 44px;
  padding: .6rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bone);
  font-size: .85rem;
  cursor: pointer;
  transition: background-color .28s var(--ease), color .28s var(--ease),
              border-color .28s var(--ease), transform .28s var(--ease-out);
}
.choice input:hover + span { border-color: var(--oak-300); transform: translateY(-1px); }
.choice input:focus-visible + span { outline: 2px solid var(--oak-500); outline-offset: 2px; }
.choice input:checked + span {
  background: var(--oak-700); color: var(--bone); border-color: var(--oak-700);
}
.choices.is-invalid .choice span { border-color: #9B2C2C; }

.consent {
  display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start;
  font-size: .84rem; line-height: 1.55; color: var(--text-soft);
  cursor: pointer;
  padding: .3rem 0;
  min-height: 44px;
}
.consent input {
  width: 20px; height: 20px; margin: .15rem 0 0; flex: none;
  accent-color: var(--oak-700); cursor: pointer;
}
.consent a { color: var(--oak-700); text-underline-offset: 3px; }

.cf-turnstile:empty { display: none; }

.form__status { font-size: .88rem; text-wrap: pretty; }
.form__status:empty { display: none; }
.form__status.is-error { color: #9B2C2C; }
.form__status.is-ok { color: var(--oak-700); }
.form__fineprint { font-size: .76rem; color: var(--text-soft); opacity: .8; text-align: center; }

/* ---------- 13. FOOTER ---------- */
.footer {
  background: var(--oak-900);
  color: rgba(254, 253, 253, .74);
  padding-block: clamp(3rem, 2rem + 4vw, 5rem) 0;
  font-size: .9rem;
}
.footer__grid { display: grid; gap: 2.4rem; }
.footer__brand img { width: clamp(170px, 20vw, 220px); }
.footer__tag {
  margin-top: .9rem; font-size: .72rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--oak-200);
}
.footer__h {
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--oak-200); font-weight: 400; margin-bottom: .9rem;
}
.footer__col ul { display: grid; gap: .1rem; }
.footer__col a {
  display: inline-flex; align-items: center;
  min-height: 44px;   /* touch target */
  text-decoration: none;
  transition: color .3s var(--ease), transform .3s var(--ease-out);
}
.footer__col a:hover, .footer__col a:focus-visible { color: var(--bone); transform: translateX(3px); }
.footer__base {
  display: grid; gap: .4rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-block: 1.5rem;
  border-top: 1px solid var(--line-light);
  font-size: .76rem;
  color: rgba(254, 253, 253, .5);
}
@media (min-width: 700px) {
  .footer__grid { grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
  .footer__base { grid-template-columns: 1fr auto; align-items: center; }
  .footer__base p:last-child { text-align: right; }
}

/* ---------- 14. STICKY CTA (mobile) ---------- */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  padding: .7rem var(--gutter) calc(.7rem + env(safe-area-inset-bottom));
  background: rgba(254, 253, 253, .9);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform .45s var(--ease-out);
}
.sticky-cta.is-visible { transform: translateY(0); }
@media (min-width: 900px) { .sticky-cta { display: none !important; } }
body.has-sticky-cta { padding-bottom: 4.6rem; }
@media (min-width: 900px) { body.has-sticky-cta { padding-bottom: 0; } }

/* ---------- 15. COOKIE BANNER ---------- */
.cookie {
  position: fixed;
  left: var(--gutter);
  bottom: var(--gutter);
  z-index: 95;
  width: min(360px, calc(100vw - var(--gutter) * 2));
  display: grid; gap: .9rem;
  padding: 1.1rem 1.2rem;
  background: rgba(43, 21, 18, .93);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  color: rgba(254, 253, 253, .85);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-deep);
  font-size: .82rem;
  line-height: 1.55;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .4s var(--ease), transform .4s var(--ease-out);
}
.cookie.is-visible { opacity: 1; transform: translateY(0); }
.cookie a { color: var(--oak-200); text-underline-offset: 3px; }
.cookie__actions { display: flex; gap: .5rem; justify-content: flex-end; }
/* keep clear of the sticky CTA on phones */
@media (max-width: 899px) { .cookie { bottom: calc(4.6rem + var(--gutter)); } }

/* ---------- 16. MOTION / REVEAL ---------- */
/* Scoped to .js: if the script never runs, nothing is ever hidden. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-revealed { opacity: 1; transform: none; }

[data-parallax] { will-change: transform; }

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