/* ==========================================================================
   Red Door Interactive — site styles
   ========================================================================== */

/* --- Tokens --------------------------------------------------------------- */
:root {
  --red:          #a12c1d;
  --red-deep:     #7b1e12;
  --red-bright:   #c14a30;

  --ink:          #2f231b;   /* headings */
  --ink-soft:     #4a3729;   /* body copy */
  --ink-muted:    #6d5842;   /* captions, breadcrumbs */

  --parchment:    #e5dcc6;
  --parchment-lo: #d8ccb0;
  --cream:        #f2e8d2;

  --wood:         #38210f;
  --wood-lo:      #24150a;

  --rule:         #a8916e;
  --rule-soft:    rgba(120, 98, 68, .38);

  --slab:         #6f6244;   /* card button */
  --slab-lo:      #4a4029;

  --shell:      1200px;
  --gutter:     clamp(20px, 5vw, 48px);

  --serif: "Playfair Display", "Libre Baskerville", Georgia, "Times New Roman", serif;
  --sans:  "Lato", "Segoe UI", -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;

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

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

body, h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
/* height:auto is required — the HTML width/height attributes map to
   presentational hints, which would otherwise pin height and defeat both
   aspect-ratio and responsive scaling. */
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink-soft);
  background: var(--parchment) url("../img/tex-parchment.jpg") repeat;
  background-size: 640px 640px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;

  /* keep the footer at the bottom on short pages (404, thin content) */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body > main { flex: 1 0 auto; }
body > .footer { flex: none; }

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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

/* --- Type ----------------------------------------------------------------- */
h1, h2, h3 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.005em;
}

.accent { color: var(--red); }

/* ==========================================================================
   Brand mark
   ========================================================================== */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.logo__mark { flex: none; }

.logo__word {
  font-family: var(--sans);
  line-height: 1;
}

.logo__name {
  display: block;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: .055em;
  color: var(--ink);
}

.logo__sub {
  display: block;
  margin-top: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .40em;
  color: var(--ink-muted);
}

/* ==========================================================================
   Site header
   ========================================================================== */
.masthead {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease);
}

/* Soft scrim so the dark nav stays legible over the darkest part of the
   artwork (the tree canopy sits right under the links). Fades out once the
   solid stuck background takes over. */
.masthead::before {
  content: "";
  position: absolute;
  inset: 0 0 -64px;
  pointer-events: none;
  background: linear-gradient(180deg,
              rgba(242, 234, 214, .92) 0%,
              rgba(242, 234, 214, .72) 42%,
              rgba(242, 234, 214, .28) 74%,
              rgba(242, 234, 214, 0) 100%);
  transition: opacity .35s var(--ease);
}

.masthead.is-stuck::before { opacity: 0; }

.masthead__bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 92px;
}

/* solid backing once the hero scrolls away */
.masthead.is-stuck {
  background: rgba(226, 216, 194, .93);
  box-shadow: 0 1px 0 var(--rule-soft), 0 10px 28px rgba(52, 34, 18, .16);
  backdrop-filter: blur(6px);
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 17px;
  color: var(--ink-soft);
}

.nav a {
  position: relative;
  padding: 4px 2px;
  transition: color .2s var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s var(--ease);
}

.nav a:hover { color: var(--red); }
.nav a:hover::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--red); }

.nav__sep {
  color: var(--rule);
  user-select: none;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .25s var(--ease),
              filter .25s var(--ease);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* primary — lacquered red door */
.btn--red {
  background: linear-gradient(180deg, #b23a26 0%, var(--red) 45%, var(--red-deep) 100%);
  border-color: #5d1409;
  color: #fdf3e2;
  box-shadow: inset 0 1px 0 rgba(255, 214, 190, .38),
              0 3px 10px rgba(58, 20, 10, .34);
}

.btn--red:hover {
  filter: brightness(1.08);
  box-shadow: inset 0 1px 0 rgba(255, 214, 190, .5),
              0 8px 20px rgba(58, 20, 10, .38);
}

/* secondary — bone / paper */
.btn--bone {
  background: linear-gradient(180deg, #fbf5e7 0%, #e6dbc2 100%);
  border-color: #9d8a68;
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8),
              0 3px 10px rgba(58, 40, 20, .22);
}

.btn--bone:hover { filter: brightness(1.04); }

/* card action — bronze slab */
.btn--slab {
  padding: 11px 22px;
  font-size: 15.5px;
  background: linear-gradient(180deg, #7d7050 0%, var(--slab) 50%, var(--slab-lo) 100%);
  border-color: #3d3421;
  color: #f4ecd8;
  box-shadow: inset 0 1px 0 rgba(255, 246, 214, .3),
              0 3px 9px rgba(40, 30, 14, .34);
}

.btn--slab:hover { filter: brightness(1.12); }

.btn__chev {
  font-size: 1.05em;
  line-height: 1;
  transition: transform .25s var(--ease);
}

.btn:hover .btn__chev { transform: translateX(4px); }

/* ==========================================================================
   Hero — home
   ========================================================================== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(440px, 58vh, 580px);
  padding: 120px 0 60px;
  overflow: hidden;
  /* the painting is 2.5:1, near enough the hero box that cover barely crops */
  background: #c9a878 url("../img/hero-farmhouse.jpg") no-repeat center center / cover;
  background-image: image-set("../img/hero-farmhouse.webp" type("image/webp"),
                              "../img/hero-farmhouse.jpg"  type("image/jpeg"));
}

/* lift the copy off the sky without muddying the painting */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
              rgba(240, 231, 210, .74) 0%,
              rgba(240, 231, 210, .5) 28%,
              rgba(240, 231, 210, .1) 50%,
              rgba(240, 231, 210, 0) 64%);
}

/* seam into the parchment section below */
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 90px;
  background: linear-gradient(180deg, rgba(229, 220, 198, 0), rgba(229, 220, 198, .96));
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.hero__title {
  font-size: clamp(2.5rem, 4.9vw, 3.85rem);
  line-height: 1.09;
  text-shadow: 0 1px 0 rgba(255, 250, 236, .55);
}

.hero__lede {
  max-width: 31ch;
  margin-top: 26px;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--ink-soft);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 38px;
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: clamp(64px, 8vw, 104px) 0; }
.section--tight { padding-top: clamp(40px, 5vw, 64px); }

.section__title {
  font-size: clamp(1.85rem, 3vw, 2.5rem);
}

.section__title--center {
  text-align: center;
  font-size: clamp(2rem, 3.4vw, 2.85rem);
}

.section__lede {
  max-width: 60ch;
  margin-top: 14px;
  font-size: clamp(1rem, 1.3vw, 1.1rem);
}

/* ==========================================================================
   Product cards
   ========================================================================== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.4vw, 32px);
  margin-top: 34px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 22px 24px;
  background: linear-gradient(180deg, rgba(252, 247, 233, .78), rgba(233, 223, 200, .78));
  border: 1px solid var(--rule);
  box-shadow: 0 10px 26px rgba(62, 42, 22, .16);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 38px rgba(62, 42, 22, .24);
}

/* engraved corner brackets */
.corners::before {
  content: "";
  position: absolute;
  inset: 8px;
  pointer-events: none;
  background:
    linear-gradient(var(--rule), var(--rule))   0    0    / 18px 1px no-repeat,
    linear-gradient(var(--rule), var(--rule))   0    0    / 1px 18px no-repeat,
    linear-gradient(var(--rule), var(--rule)) 100%   0    / 18px 1px no-repeat,
    linear-gradient(var(--rule), var(--rule)) 100%   0    / 1px 18px no-repeat,
    linear-gradient(var(--rule), var(--rule))   0  100%   / 18px 1px no-repeat,
    linear-gradient(var(--rule), var(--rule))   0  100%   / 1px 18px no-repeat,
    linear-gradient(var(--rule), var(--rule)) 100% 100%   / 18px 1px no-repeat,
    linear-gradient(var(--rule), var(--rule)) 100% 100%   / 1px 18px no-repeat;
}

.card > * { position: relative; }

.card__title { font-size: clamp(1.3rem, 1.8vw, 1.6rem); }

.card__sub {
  margin-top: 8px;
  font-size: 15.5px;
  color: var(--ink-muted);
}

.card__media {
  margin: 18px 0 22px;
  border: 1px solid rgba(88, 68, 44, .55);
  box-shadow: 0 4px 14px rgba(52, 34, 18, .28);
  overflow: hidden;
}

.card__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform .5s var(--ease);
}

.card:hover .card__media img { transform: scale(1.045); }

.card__foot { margin-top: auto; text-align: center; }

/* ==========================================================================
   Approach columns
   ========================================================================== */
.approach { margin-top: 40px; }

.approach__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3.4vw, 52px);
}

.approach__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--sans);
  font-size: 1.32rem;
  font-weight: 700;
  color: var(--ink);
}

.approach__head::before {
  content: "";
  flex: none;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--ink-soft);
  transform: translateY(-2px);
}

.approach__body {
  margin-top: 12px;
  padding-left: 21px;
  max-width: 34ch;
}

/* ==========================================================================
   Product pages
   ========================================================================== */

/* these pages open on parchment, so the header needs its solid backing
   immediately rather than waiting for the scroll handler */
.masthead--solid {
  background: rgba(226, 216, 194, .93);
  box-shadow: 0 1px 0 var(--rule-soft), 0 10px 28px rgba(52, 34, 18, .1);
  backdrop-filter: blur(6px);
}

.masthead--solid::before { display: none; }

.prodhead {
  padding: clamp(124px, 14vw, 156px) 0 clamp(40px, 5vw, 64px);
}

/* product pages stack several short sections, so they run tighter than the
   home page's full-bleed rhythm */
.page--product .section { padding-block: clamp(38px, 4.6vw, 64px); }

.page--product .section:last-of-type { padding-bottom: clamp(56px, 7vw, 92px); }

.lede-block {
  max-width: 68ch;
  margin-top: 16px;
}

.prodhead__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5.5fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
}

.prodhead__title {
  margin-top: 12px;
  font-size: clamp(2.3rem, 4.4vw, 3.35rem);
}

.prodhead__lede {
  max-width: 42ch;
  margin-top: 16px;
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
}

.prodhead__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

/* status pill + stack chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
}

.chip {
  padding: 5px 13px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border: 1px solid var(--rule-soft);
  border-radius: 999px;
  background: rgba(252, 247, 233, .5);
}

.chip--status {
  color: #6b4a12;
  border-color: rgba(168, 132, 48, .6);
  background: rgba(233, 205, 140, .38);
}

.chip--status::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: #b8862c;
  vertical-align: 1px;
}

/* framed hero art */
.prodhead__art {
  border: 1px solid rgba(88, 68, 44, .5);
  box-shadow: 0 16px 36px rgba(58, 38, 18, .26);
  overflow: hidden;
}

.prodhead__art img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* --- feature grid --- */
.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 38px);
  margin-top: 34px;
}

.feature__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--sans);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--ink);
}

.feature__head::before {
  content: "";
  flex: none;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  transform: translateY(-2px);
}

.feature p {
  margin-top: 7px;
  padding-left: 20px;
}

/* --- live screenshot: compact thumbnail, click to enlarge --- */
.shot {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: clamp(18px, 2.6vw, 32px);
  align-items: start;
  margin-top: clamp(22px, 2.6vw, 30px);
}

.shot__thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid rgba(88, 68, 44, .55);
  background: none;
  cursor: zoom-in;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(58, 38, 18, .2);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}

.shot__thumb img { width: 100%; }

.shot__thumb:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(58, 38, 18, .3);
}

/* magnifier badge */
.shot__zoom {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  font-size: 14px;
  line-height: 1;
  color: #f6ecd6;
  background: rgba(30, 18, 10, .68);
  border: 1px solid rgba(246, 236, 214, .35);
  border-radius: 3px;
  opacity: .85;
  transition: opacity .25s var(--ease);
}

.shot__thumb:hover .shot__zoom { opacity: 1; }

.shot__caption {
  font-size: 15.5px;
  color: var(--ink-muted);
}

.shot__caption b { color: var(--ink); font-weight: 700; }

.shot__hint {
  display: block;
  margin-top: 10px;
  font-size: 13.5px;
  font-style: italic;
  color: rgba(109, 88, 66, .82);
}

@media (max-width: 620px) {
  .shot { grid-template-columns: 1fr; gap: 14px; }
  .shot__thumb { max-width: 340px; }
}

/* --- lightbox --- */
.lightbox {
  width: min(94vw, 1280px);
  max-width: none;
  padding: 0;
  border: 1px solid rgba(246, 236, 214, .25);
  background: #1b1108;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}

.lightbox::backdrop { background: rgba(24, 14, 6, .82); }

.lightbox__img { width: 100%; height: auto; }

.lightbox__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  font-size: 22px;
  line-height: 1;
  color: #f6ecd6;
  background: rgba(30, 18, 10, .72);
  border: 1px solid rgba(246, 236, 214, .4);
  border-radius: 3px;
  cursor: pointer;
}

.lightbox__close:hover { background: rgba(60, 34, 18, .9); }

/* --- spec table --- */
.specs {
  margin-top: 30px;
  border-top: 1px solid var(--rule-soft);
}

.specs__row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(0, 3.4fr);
  gap: 12px clamp(16px, 3vw, 40px);
  padding: 16px 2px;
  border-bottom: 1px solid var(--rule-soft);
}

.specs__key {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.specs__val { color: var(--ink-soft); }

.specs__val a {
  font-weight: 700;
  color: var(--red);
  text-decoration: underline;
  text-decoration-color: rgba(161, 44, 29, .35);
  text-underline-offset: 3px;
}

.specs__val a:hover { text-decoration-color: currentColor; }
.specs__val code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: .92em;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(120, 98, 68, .14);
}

/* --- back link --- */
.backlink {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: clamp(40px, 5vw, 60px);
  font-weight: 700;
  color: var(--ink-muted);
}

.backlink:hover { color: var(--red); }
.backlink__chev { transition: transform .25s var(--ease); }
.backlink:hover .backlink__chev { transform: translateX(-4px); }

@media (max-width: 900px) {
  .prodhead__grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .specs__row { grid-template-columns: 1fr; gap: 4px; padding: 14px 2px; }
}

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4.4fr);
  gap: clamp(30px, 4.5vw, 68px);
  align-items: start;
  margin-top: clamp(28px, 4vw, 44px);
}

/* --- form --- */
.form {
  display: grid;
  gap: clamp(18px, 2.2vw, 24px);
}

.form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 24px);
}

.field { display: grid; gap: 7px; }

.field > label {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.field .req { color: var(--red); }

.field input,
.field select,
.field textarea {
  font: inherit;
  width: 100%;
  padding: 12px 14px;
  color: var(--ink);
  background: rgba(252, 247, 233, .62);
  border: 1px solid var(--rule);
  border-radius: 3px;
  box-shadow: inset 0 1px 2px rgba(88, 68, 44, .1);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.field textarea { min-height: 168px; resize: vertical; }

.field select {
  appearance: none;
  padding-right: 40px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink-muted) 50%),
    linear-gradient(135deg, var(--ink-muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(161, 44, 29, .16);
}

.field ::placeholder { color: rgba(109, 88, 66, .62); }

/* validation */
.field__error {
  display: none;
  font-size: 14px;
  color: #8d2718;
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea { border-color: #a83a26; }

.field.is-invalid .field__error { display: block; }

/* bot trap — visually and semantically hidden, never announced */
.field--trap {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.form__note {
  font-size: 14.5px;
  color: var(--ink-muted);
}

/* submission result */
.form__status {
  display: none;
  padding: 14px 18px;
  border: 1px solid var(--rule);
  border-left-width: 4px;
  border-radius: 3px;
  background: rgba(252, 247, 233, .7);
}

.form__status.is-shown { display: block; }
.form__status.is-ok { border-left-color: #4e7a3f; }
.form__status.is-err { border-left-color: #a83a26; }

/* --- aside --- */
.panel {
  position: relative;
  padding: clamp(24px, 2.6vw, 32px);
  border: 1px solid var(--rule);
  background: linear-gradient(180deg, rgba(252, 247, 233, .72), rgba(233, 223, 200, .72));
  box-shadow: 0 10px 26px rgba(62, 42, 22, .13);
}

.panel + .panel { margin-top: clamp(20px, 2.4vw, 28px); }

.panel__title {
  font-size: 1.28rem;
  margin-bottom: 12px;
}

.panel__mail {
  display: inline-block;
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--red);
  word-break: break-word;
}

.panel__mail:hover { text-decoration: underline; }

.steps {
  display: grid;
  gap: 14px;
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  font-size: 13px;
  font-weight: 700;
  color: #fdf3e2;
  background: var(--red);
  border-radius: 50%;
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .form__row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  position: relative;
  color: var(--cream);
  background: var(--wood-lo) url("../img/tex-wood.jpg") no-repeat center / cover;
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(46, 27, 13, .58), rgba(24, 13, 6, .84));
}

.footer > * { position: relative; }

.footer__tagline {
  padding: 42px 0 30px;
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  color: #f6ecd6;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .55);
}

.footer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 22px 26px;   /* keep .shell's inline padding */
  border-top: 1px solid rgba(226, 198, 152, .28);
}

.footer .nav { color: #e8dcc2; }
.footer .nav a:hover { color: #f6c9a8; }
.footer .nav__sep { color: rgba(226, 198, 152, .45); }

/* wordmark: by**reddoor**.io */
.footmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 27px;
  letter-spacing: -.01em;
  color: var(--cream);
}

.footmark__prefix { font-weight: 300; opacity: .92; }
.footmark__name { font-weight: 800; }
.footmark__tld { font-weight: 800; color: #d4694a; }

/* ==========================================================================
   About page
   ========================================================================== */
.pagehead {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(360px, 46vh, 470px);
  padding: 132px 0 56px;
  overflow: hidden;
  background: #c9a878 url("../img/hero-farmhouse.jpg") no-repeat center 46% / cover;
  background-image: image-set("../img/hero-farmhouse.webp" type("image/webp"),
                              "../img/hero-farmhouse.jpg"  type("image/jpeg"));
}

.pagehead::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
              rgba(238, 228, 206, .84) 0%,
              rgba(238, 228, 206, .6) 30%,
              rgba(238, 228, 206, .1) 54%,
              rgba(238, 228, 206, 0) 66%);
}

.pagehead::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 64px;
  background: linear-gradient(180deg, rgba(229, 220, 198, 0), rgba(229, 220, 198, .96));
}

.pagehead__inner {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  color: var(--ink-muted);
}

.crumbs a:hover { color: var(--red); }
.crumbs__sep { color: var(--rule); }
.crumbs [aria-current] { color: var(--ink-soft); }

.pagehead__title {
  margin-top: 14px;
  font-size: clamp(2.4rem, 4.6vw, 3.5rem);
  text-shadow: 0 1px 0 rgba(255, 250, 236, .5);
}

.pagehead__lede {
  max-width: 46ch;
  margin-top: 20px;
  font-size: clamp(1rem, 1.35vw, 1.12rem);
}

/* centred intro */
.intro {
  max-width: 760px;
  margin: 26px auto 0;
  text-align: center;
  font-size: clamp(1rem, 1.3vw, 1.1rem);
}

/* image column + prose column */
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
  margin-top: clamp(44px, 5vw, 68px);
}

.stack {
  display: grid;
  gap: clamp(20px, 2.4vw, 30px);
}

.plate {
  border: 1px solid rgba(88, 68, 44, .5);
  box-shadow: 0 12px 28px rgba(58, 38, 18, .24);
  overflow: hidden;
}

.plate img {
  width: 100%;
  transition: transform .55s var(--ease);
}

.plate:hover img { transform: scale(1.04); }

.prose h2 { font-size: clamp(1.6rem, 2.4vw, 2.05rem); }
.prose h2 + p { margin-top: 14px; }
.prose > h2 + p + h2 { margin-top: 34px; }

.tenets { margin-top: 18px; display: grid; gap: 18px; }

.tenet__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--sans);
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--ink);
}

.tenet__head::before {
  content: "";
  flex: none;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ink-soft);
  transform: translateY(-2px);
}

.tenet p {
  margin-top: 5px;
  padding-left: 20px;
}

/* --- who's behind it --- */
.founder {
  position: relative;
  margin-top: clamp(44px, 5vw, 68px);
  padding: clamp(30px, 3.6vw, 46px);
  border: 1px solid var(--rule);
  background: linear-gradient(180deg, rgba(252, 247, 233, .62), rgba(230, 220, 197, .62));
  box-shadow: 0 12px 30px rgba(62, 42, 22, .13);
}

.founder__grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
  gap: clamp(20px, 3vw, 46px);
  align-items: start;
}

.founder__name {
  font-size: clamp(1.5rem, 2.3vw, 1.95rem);
  line-height: 1.15;
}

.founder__role {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.founder__body > p + p { margin-top: 13px; }

.founder__link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
  font-weight: 700;
  color: var(--red);
}

.founder__link:hover { text-decoration: underline; }
.founder__link svg { flex: none; }

@media (max-width: 720px) {
  .founder__grid { grid-template-columns: 1fr; gap: 18px; }
}

/* call to action panel */
.cta {
  position: relative;
  margin: clamp(56px, 6vw, 84px) 0 0;
  padding: clamp(38px, 5vw, 56px) clamp(24px, 4vw, 56px);
  text-align: center;
  border: 1px solid var(--rule);
  background: linear-gradient(180deg, rgba(250, 244, 229, .6), rgba(228, 217, 193, .6));
  box-shadow: 0 12px 30px rgba(62, 42, 22, .14);
}

.cta__title { font-size: clamp(1.6rem, 2.8vw, 2.15rem); }
.cta__lede { margin-top: 12px; }
.cta .btn { margin-top: 26px; padding: 15px 40px; font-size: 1.2rem; font-family: var(--serif); }

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .cards,
  .approach__grid { grid-template-columns: 1fr; }
  .approach__grid { gap: 30px; }
  .split { grid-template-columns: 1fr; }
  .approach__body { max-width: none; }
}

@media (max-width: 720px) {
  .masthead__bar { min-height: 76px; }
  .logo { gap: 10px; }
  .logo__name { font-size: 19px; white-space: nowrap; }
  .logo__sub { font-size: 8.5px; letter-spacing: .30em; }
  .logo__mark { width: 22px; height: auto; }

  .nav { gap: 14px; font-size: 15.5px; }

  .hero { padding-top: 128px; background-position: center 34%; }
  .hero__lede { max-width: none; }

  /* on narrow screens the copy sits over the painting, not beside it */
  .hero::before,
  .pagehead::before {
    background: linear-gradient(180deg,
                rgba(238, 228, 206, .9) 0%,
                rgba(238, 228, 206, .74) 46%,
                rgba(238, 228, 206, .3) 82%,
                rgba(238, 228, 206, .1) 100%);
  }

  .pagehead { padding-top: 116px; }

  .footer__bar { flex-direction: column; gap: 18px; text-align: center; }
  .footmark { font-size: 23px; }
}

@media (max-width: 520px) {
  .nav__sep { display: none; }
  .nav { gap: 11px; font-size: 14.5px; }
  .logo__name { font-size: 16px; }
  .logo__sub { font-size: 7.5px; letter-spacing: .26em; }

  .btn { padding: 13px 18px; font-size: 16px; }
  .hero__actions { gap: 12px; }
}

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