/* ==========================================================================
   Larkspur & Stone — fictional concept site by ACE AXIS
   Ivory, forest green, warm stone, earth. Montserrat + Gelasio Italic.
   ========================================================================== */

@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-300.woff") format("woff"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-500.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Gelasio"; src: url("../fonts/gelasio-400i.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --ivory: #f6f3ec;
  --white: #fcfbf8;
  --stone: #e6dfd1;
  --stone-2: #cfc4af;
  --earth: #735f47;
  --forest: #1f3a2c;
  --forest-2: #2e5240;
  --sage: #9db08f;
  --ink: #1d2a22;
  --muted: #525f57;
  --line: rgba(31, 58, 44, .14);
  --line-2: rgba(31, 58, 44, .26);

  --sans: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Gelasio", Georgia, "Times New Roman", serif;

  --shell: 1320px;
  --pad: clamp(1.25rem, 0.5rem + 3.4vw, 3.5rem);
  --sec: clamp(5.5rem, 3rem + 8vw, 11rem);
  --ease: cubic-bezier(.22, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; background: var(--ivory); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.locked { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-weight: 300; color: var(--forest); letter-spacing: -.02em; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
figure { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
:focus-visible { outline: 2px solid var(--earth); outline-offset: 3px; }
::selection { background: var(--forest); color: var(--ivory); }

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--pad); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: 1rem; z-index: 999; padding: .6rem 1rem; background: var(--forest); color: var(--ivory); transform: translateY(-300%); }
.skip:focus { transform: none; }

/* ---------- Concept disclosure ---------- */
.demo-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .3rem 1.5rem;
  padding: .6rem var(--pad);
  background: var(--forest);
  color: rgba(246, 243, 236, .86);
  font-size: .78rem;
  line-height: 1.5;
}
.demo-note strong { color: var(--white); font-weight: 500; }
.demo-note a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* ---------- Type helpers ---------- */
.eyebrow {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--earth);
}
.eyebrow--light { color: var(--sage); }
.h2 { font-size: clamp(2.2rem, 1.3rem + 3.4vw, 4.25rem); line-height: 1.08; }
.h2 em { color: var(--forest-2); }
.h2--light { color: var(--ivory); }
.h2--light em { color: var(--sage); }
.head { margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
.head .h2 { margin-top: 1.1rem; max-width: 18ch; }
.head--split { display: grid; gap: 1.5rem; align-items: end; }
.head__note { max-width: 26rem; font-size: .9rem; color: var(--muted); }
@media (min-width: 900px) { .head--split { grid-template-columns: 1fr auto; } }
.sample { margin-top: 1.5rem; font-family: var(--serif); font-style: italic; font-size: .9rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: .8rem 1.75rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn--forest { background: var(--forest); color: var(--ivory); border: 1px solid var(--forest); }
.btn--forest:hover { background: var(--forest-2); border-color: var(--forest-2); }
.btn--ghost { border: 1px solid var(--line-2); color: var(--forest); }
.btn--ghost:hover { border-color: var(--forest); }
.arrow-link { display: inline-flex; gap: .6rem; align-items: center; font-size: .8rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--forest); }
.arrow-link span { transition: transform .35s var(--ease); }
.arrow-link:hover span { transform: translateX(4px); }

/* ---------- Photo slots ---------- */
.pic { position: relative; overflow: hidden; border-radius: 6px; background: linear-gradient(160deg, #dcd5c4, #c5bca6); }
.pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.pic.is-missing img { visibility: hidden; }
.pic.is-missing::after {
  content: "Image pending: " attr(data-file);
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(31, 58, 44, .55);
}

/* Soft "focus-in" entrance (JS only, never with reduced motion) */
.js [data-in] { opacity: 0; filter: blur(8px); transform: translateY(10px); transition: opacity 1.1s var(--ease), filter 1.1s var(--ease), transform 1.1s var(--ease); }
.js [data-in].in { opacity: 1; filter: none; transform: none; }

/* ---------- Header ---------- */
.hd { position: sticky; top: 0; z-index: 50; background: rgba(246, 243, 236, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.hd.is-scrolled { border-bottom-color: var(--line); }
.hd__row { display: flex; align-items: center; justify-content: space-between; gap: 2rem; height: 84px; }
.logo { display: inline-flex; align-items: center; gap: .8rem; color: var(--forest); position: relative; z-index: 2; }
.logo__mark { width: 40px; height: 40px; flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__text > span { font-size: 1.15rem; font-weight: 400; letter-spacing: .02em; }
.logo__text em { color: var(--earth); }
.logo__text small { font-size: .6rem; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); }
.hd__nav { display: flex; align-items: center; gap: 2rem; font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.hd__nav a:not(.hd__cta) { position: relative; padding-block: .4rem; color: var(--ink); transition: color .25s; }
.hd__nav a:not(.hd__cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--earth); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.hd__nav a:not(.hd__cta):hover::after { transform: scaleX(1); transform-origin: left; }
.hd__cta { padding: .7rem 1.2rem; border-radius: 999px; background: var(--forest); color: var(--ivory); }
.hd__cta:hover { background: var(--forest-2); }
.hd__toggle { display: none; position: relative; z-index: 2; width: 46px; height: 46px; border: 1px solid var(--line-2); border-radius: 50%; }
.hd__toggle i { position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--forest); transition: transform .35s var(--ease), opacity .2s; }
.hd__toggle i:nth-of-type(1) { top: 16px; } .hd__toggle i:nth-of-type(2) { top: 22px; } .hd__toggle i:nth-of-type(3) { top: 28px; }
.hd__toggle[aria-expanded="true"] i:nth-of-type(1) { transform: translateY(6px) rotate(45deg); }
.hd__toggle[aria-expanded="true"] i:nth-of-type(2) { opacity: 0; }
.hd__toggle[aria-expanded="true"] i:nth-of-type(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1080px) {
  .hd__toggle { display: block; }
  .hd__nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.4rem;
    padding: 6rem var(--pad) 3rem;
    background: var(--ivory);
    font-size: 1.6rem;
    font-weight: 300;
    letter-spacing: 0;
    text-transform: none;
    visibility: hidden;
    opacity: 0;
    transition: opacity .35s var(--ease), visibility 0s linear .35s;
  }
  .hd__nav.is-open { visibility: visible; opacity: 1; transition: opacity .35s var(--ease); }
  .hd__cta { margin-top: 1rem; font-size: .85rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; padding: 1rem 1.6rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(3rem, 1rem + 6vw, 7rem); padding-bottom: var(--sec); isolation: isolate; }
.contours { position: absolute; z-index: -1; left: 0; top: 0; width: 100%; height: 60%; pointer-events: none; }
.contours path { fill: none; stroke: var(--stone-2); stroke-width: 1; opacity: .65; stroke-dasharray: 2000; stroke-dashoffset: 2000; animation: draw 3.2s var(--ease) forwards; vector-effect: non-scaling-stroke; }
.contours path:nth-child(2) { animation-delay: .15s; } .contours path:nth-child(3) { animation-delay: .3s; } .contours path:nth-child(4) { animation-delay: .45s; } .contours path:nth-child(5) { animation-delay: .6s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero__top { display: grid; gap: 2rem; margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
.hero__h { margin-top: 1.25rem; font-size: clamp(2.9rem, 1.2rem + 6.4vw, 7rem); line-height: 1.02; letter-spacing: -.035em; max-width: 12ch; }
.hero__h em { color: var(--earth); }
.hero__aside { max-width: 24rem; align-self: end; color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2rem; }
.hero__img { aspect-ratio: 4 / 5; }
.hero__img picture { display: contents; }
.hero__chip {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  display: flex;
  gap: 0;
  padding: .45rem;
  border-radius: 999px;
  background: rgba(252, 251, 248, .88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--forest);
}
.hero__chip span { padding: .35rem .9rem; }
.hero__chip span + span { border-left: 1px solid var(--line-2); }
@media (min-width: 701px) { .hero__img { aspect-ratio: 21 / 9; } }
@media (min-width: 1000px) {
  .hero__top { grid-template-columns: 1fr auto; align-items: end; column-gap: 4rem; }
}

/* ---------- Services: tabs ---------- */
.services { padding-bottom: var(--sec); }
.tabs { display: grid; gap: 2rem; }
.tabs__list { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.tabs__list::-webkit-scrollbar { display: none; }
.tabs__tab {
  flex: none;
  display: flex;
  align-items: baseline;
  gap: .7rem;
  padding: 1rem 1rem 1.1rem 0;
  margin-right: 1rem;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-size: .95rem;
  font-weight: 400;
  color: var(--muted);
  text-align: left;
  transition: color .25s, border-color .35s var(--ease);
}
.tabs__tab span { font-size: .7rem; font-weight: 500; letter-spacing: .14em; color: var(--earth); }
.tabs__tab:hover { color: var(--forest); }
.tabs__tab[aria-selected="true"] { color: var(--forest); border-bottom-color: var(--forest); }
.tabs__panel { display: grid; gap: 2rem; align-items: center; }
.tabs__panel:not([hidden]) { animation: fadein .7s var(--ease); }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.tabs__panel .pic { aspect-ratio: 4 / 3; }
.tabs__text h3 { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); }
.tabs__text > p { margin-top: 1rem; max-width: 30rem; color: var(--muted); }
.ticks { display: grid; gap: .75rem; margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.ticks li { position: relative; padding-left: 1.6rem; font-size: .95rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .7em; width: 9px; height: 9px; border-radius: 50% 0 50% 0; background: var(--sage); transform: rotate(-45deg); }
@media (min-width: 960px) {
  .tabs { grid-template-columns: 17rem 1fr; column-gap: clamp(2.5rem, 1rem + 4vw, 5rem); align-items: start; }
  .tabs__list { flex-direction: column; gap: 0; border-bottom: 0; border-left: 1px solid var(--line); }
  .tabs__tab { margin: 0 0 0 -1px; padding: 1.1rem 0 1.1rem 1.5rem; border-bottom: 0; border-left: 2px solid transparent; }
  .tabs__tab[aria-selected="true"] { border-left-color: var(--forest); }
  .tabs__panel { grid-template-columns: 1.15fr .85fr; column-gap: 3rem; }
}

/* ---------- Projects: filterable mosaic ---------- */
.projects { padding-block: var(--sec); background: var(--white); border-block: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filter { min-height: 42px; padding: .5rem 1.15rem; border: 1px solid var(--line-2); border-radius: 999px; font-size: .78rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--forest); transition: background-color .25s, color .25s, border-color .25s; }
.filter:hover { border-color: var(--forest); }
.filter.is-on { background: var(--forest); border-color: var(--forest); color: var(--ivory); }
.mosaic { display: grid; gap: 1.25rem; }
.mosaic__item { transition: opacity .45s var(--ease); }
.mosaic__item.is-hidden { display: none; }
.mosaic__item .pic { aspect-ratio: 4 / 3; }
.mosaic__item:hover .pic img { transform: scale(1.035); }
.mosaic__item p { margin-top: .75rem; font-size: .72rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 760px) {
  .mosaic { grid-template-columns: repeat(3, 1fr); }
  .mosaic__item--tall { grid-row: span 2; display: flex; flex-direction: column; }
  .mosaic__item--tall .pic { flex: 1; aspect-ratio: auto; }
  .mosaic__item--wide { grid-column: span 2; }
  .mosaic__item--wide .pic { aspect-ratio: auto; height: calc((100% - 2.2rem)); min-height: 240px; }
  .mosaic__item--wide { display: flex; flex-direction: column; }
  .mosaic__item--wide .pic { flex: 1; height: auto; }
  .mosaic__item--full { grid-column: 1 / -1; }
  .mosaic__item--full .pic { aspect-ratio: 2 / 1; }
  .mosaic.is-filtered .mosaic__item { grid-row: auto; grid-column: auto; }
  .mosaic.is-filtered .pic { aspect-ratio: 4 / 3; flex: none; min-height: 0; }
}

/* ---------- Process ---------- */
.process { padding-block: var(--sec); background: var(--forest); color: rgba(246, 243, 236, .78); }
.process__grid { display: grid; gap: 3rem; }
.process__intro .h2 { margin-top: 1.1rem; }
.process__intro > p:last-child { margin-top: 1.5rem; max-width: 24rem; }
.phases { counter-reset: p; }
.phases li { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; padding: 1.75rem 0; border-top: 1px solid rgba(246, 243, 236, .16); }
.phases li:last-child { border-bottom: 1px solid rgba(246, 243, 236, .16); }
.phases__n { font-size: 2.6rem; font-weight: 300; line-height: 1; color: var(--sage); letter-spacing: -.04em; }
.phases h3 { font-size: 1.35rem; font-weight: 400; color: var(--ivory); letter-spacing: -.01em; }
.phases p { margin-top: .4rem; max-width: 30rem; font-size: .95rem; }
.phases small { display: inline-block; margin-top: .8rem; font-size: .68rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--stone-2); }
@media (min-width: 1000px) {
  .process__grid { grid-template-columns: .8fr 1.2fr; column-gap: clamp(3rem, 1rem + 6vw, 8rem); }
  .process__intro { position: sticky; top: 130px; align-self: start; }
}

/* ---------- Studio ---------- */
.studio { padding-block: var(--sec); }
.studio__grid { display: grid; gap: 3rem; align-items: center; }
.studio__img { aspect-ratio: 4 / 5; }
.studio__text .h2 { margin-top: 1.1rem; max-width: 16ch; }
.lead { margin-top: 1.75rem; font-size: 1.15rem; line-height: 1.65; color: var(--ink); max-width: 34rem; }
.studio__text > p:not(.eyebrow):not(.lead) { margin-top: 1.1rem; color: var(--muted); max-width: 34rem; }
.values { margin: 2.5rem 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.values div { padding: 1.2rem 0; border-bottom: 1px solid var(--line); display: grid; gap: .2rem; }
.values dt { font-weight: 500; color: var(--forest); }
.values dd { margin: 0; color: var(--muted); font-size: .95rem; }
@media (min-width: 960px) { .studio__grid { grid-template-columns: .9fr 1.1fr; column-gap: clamp(3rem, 1rem + 6vw, 8rem); } }

/* ---------- Service areas ---------- */
.areas { padding-bottom: var(--sec); }
.areas__grid { display: grid; gap: 3rem; align-items: center; padding: clamp(2rem, 1rem + 4vw, 5rem); border: 1px solid var(--line); border-radius: 6px; background: var(--white); }
.areas__diagram { max-width: 400px; width: 100%; justify-self: center; }
.areas__diagram svg { width: 100%; height: auto; font-family: var(--sans); }
.areas__text .h2 { margin-top: 1.1rem; }
.areas__text > p:not(.eyebrow) { margin-top: 1.25rem; color: var(--muted); max-width: 32rem; }
.zones { margin-top: 2rem; display: grid; gap: 0; border-top: 1px solid var(--line); }
.zones li { display: grid; gap: .1rem .75rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.zones b { font-weight: 500; color: var(--forest); }
.zones span { color: var(--muted); font-size: .95rem; }
.zones em { color: var(--earth); font-size: .95rem; }
@media (min-width: 640px) { .zones li { grid-template-columns: 9rem 1fr; } .zones em { grid-column: 2; } }
@media (min-width: 960px) { .areas__grid { grid-template-columns: .8fr 1.2fr; column-gap: 5rem; } }

/* ---------- Estimate wizard ---------- */
.estimate { padding-bottom: var(--sec); }
.estimate__grid { display: grid; gap: 3rem; }
.estimate__intro .h2 { margin-top: 1.1rem; }
.estimate__intro > p:last-child { margin-top: 1.5rem; max-width: 24rem; color: var(--muted); }
@media (min-width: 1000px) { .estimate__grid { grid-template-columns: .75fr 1.25fr; column-gap: clamp(3rem, 1rem + 5vw, 7rem); align-items: start; } }

.wizard { padding: clamp(1.5rem, 1rem + 2.5vw, 3rem); background: var(--white); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 30px 60px -45px rgba(31, 58, 44, .35); }
.wizard__demo { padding: .85rem 1.1rem; border-radius: 4px; background: var(--stone); font-size: .88rem; color: var(--ink); }
.wizard__demo strong { font-weight: 500; }
.wizard__progress { height: 2px; margin-top: 2rem; background: var(--line); border-radius: 2px; overflow: hidden; }
.wizard__progress span { display: block; height: 100%; width: 25%; background: var(--forest); transition: width .6s var(--ease); }
.wizard__count { margin-top: .75rem; font-size: .7rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--earth); }
.step { margin: 1.5rem 0 0; padding: 0; border: 0; min-width: 0; }
.step.is-active { animation: fadein .55s var(--ease); }
.step legend { padding: 0; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); font-weight: 300; color: var(--forest); letter-spacing: -.01em; }
.step__hint { margin-top: .3rem; font-size: .9rem; color: var(--muted); }
.step__label { margin: 1.5rem 0 .75rem; font-size: .72rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .75rem; margin-top: 1.5rem; }
.card { position: relative; cursor: pointer; }
.card input, .pill input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.card span { display: grid; gap: .2rem; height: 100%; padding: 1.1rem 1.2rem; border: 1px solid var(--line-2); border-radius: 6px; transition: border-color .25s, background-color .25s; }
.card b { font-weight: 500; color: var(--forest); }
.card small { font-size: .82rem; color: var(--muted); }
.card:hover span { border-color: var(--forest); }
.card input:checked + span { border-color: var(--forest); background: #eef1e9; box-shadow: inset 0 0 0 1px var(--forest); }
.card input:checked + span b::after { content: " \2713"; color: var(--forest-2); }
.pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.step > .pills:first-of-type { margin-top: 1.5rem; }
.pill { position: relative; cursor: pointer; }
.pill span { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 1.15rem; border: 1px solid var(--line-2); border-radius: 999px; font-size: .9rem; transition: all .25s; }
.pill:hover span { border-color: var(--forest); }
.pill input:checked + span { background: var(--forest); border-color: var(--forest); color: var(--ivory); }
.card input:focus-visible + span, .pill input:focus-visible + span { outline: 2px solid var(--earth); outline-offset: 2px; }
.fld { margin-top: 1.5rem; }
.fld label { display: block; margin-bottom: .45rem; font-size: .72rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.fld label span { letter-spacing: .04em; text-transform: none; font-weight: 400; }
.fld input, .fld textarea { width: 100%; min-height: 50px; padding: .8rem 1rem; font: inherit; font-size: 1rem; color: var(--ink); background: var(--ivory); border: 1px solid var(--line-2); border-radius: 4px; }
.fld textarea { resize: vertical; }
.fld input:focus, .fld textarea:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(31, 58, 44, .12); }
.fld input[aria-invalid="true"] { border-color: #a4472f; }
.fld-row { display: grid; gap: 0 1.25rem; }
@media (min-width: 640px) { .fld-row { grid-template-columns: 1fr 1fr; } }
.review { margin-top: 1.75rem; padding: 1.1rem 1.25rem; border-left: 2px solid var(--sage); background: var(--ivory); font-size: .9rem; color: var(--muted); }
.review:empty { display: none; }
.review dl { margin: 0; display: grid; gap: .35rem; }
.review div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; }
.review dt { font-weight: 500; color: var(--forest); }
.review dd { margin: 0; }
.wizard__error { margin-top: 1.25rem; font-size: .9rem; color: #a4472f; }
.wizard__error:empty { display: none; }
.wizard__nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.wizard__nav [data-next], .wizard__nav [data-submit] { margin-left: auto; }
.wizard__status { margin-top: 1rem; font-size: .92rem; }
.wizard__status:empty { display: none; }
.wizard__status { padding: 1rem 1.15rem; border-radius: 4px; background: #eef1e9; color: var(--forest); }

/* ---------- Footer ---------- */
.ft { padding-top: 4.5rem; background: var(--stone); }
.ft__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line-2); }
.ft__brand { font-size: clamp(2.4rem, 1.4rem + 4vw, 4.5rem); font-weight: 300; line-height: 1; color: var(--forest); letter-spacing: -.03em; }
.ft__brand em { color: var(--earth); }
.ft__nav { display: flex; flex-wrap: wrap; gap: 1rem 2rem; font-size: .75rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.ft__nav a:hover { color: var(--earth); }
.ft__note { margin-top: 2rem; max-width: 42rem; font-size: .9rem; color: var(--muted); }
.ft__note strong { color: var(--forest); font-weight: 500; }
.ft a { text-decoration-color: var(--line-2); }
.ft__note a, .ft__base a { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }
.ft__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-block: 1.5rem; border-top: 1px solid var(--line-2); font-size: .85rem; color: var(--muted); }

/* ---------- Credits page ---------- */
.credits { padding-block: 4rem 6rem; display: grid; gap: 1.5rem; justify-items: start; }
.credits table { width: 100%; max-width: 56rem; border-collapse: collapse; font-size: .95rem; }
.credits th { text-align: left; font-size: .72rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--earth); padding: .75rem 1rem .75rem 0; border-bottom: 1px solid var(--forest); }
.credits td { padding: .85rem 1rem .85rem 0; border-bottom: 1px solid var(--line); }
.credits a { text-decoration: underline; text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .contours path { stroke-dashoffset: 0; }
  .js [data-in] { opacity: 1; filter: none; transform: none; }
}
