/* ==========================================================================
   Nirova Labs: design tokens
   ========================================================================== */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("assets/fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("assets/fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  /* Colour */
  --cream: #F8F5EF;
  --paper: #FFFDF9;
  --sand: #F0EBE1;
  --line: #E3DBCD;
  --line-strong: #D3C9B7;
  --ink: #252823;
  --ink-2: #4A4E46;
  --ink-3: #676B61;
  --forest: #244C3B;
  --forest-hover: #1B3B2D;
  --forest-tint: #E4ECE5;
  --sage: #5F8C6C;
  --orange: #E9A16B;
  --orange-mark: #F4975A;
  --orange-ink: #9A4E1C;
  --amber: #F2BE5F;
  --on-dark: #F8F5EF;
  --on-dark-2: #C6D3C9;

  /* Type */
  --font-display: "Bricolage Grotesque", "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-md: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
  --text-2xl: clamp(2rem, 1.5rem + 1.8vw, 2.875rem);
  --text-3xl: clamp(2.5rem, 1.6rem + 3.4vw, 4.25rem);

  /* Space & layout */
  --container: 1200px;
  --gutter: clamp(1rem, 0.4rem + 2.6vw, 2.5rem);
  --section: clamp(4rem, 2.5rem + 5vw, 7rem);
  --header-h: 72px;

  /* Shape & motion */
  --r-sm: 8px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-pill: 999px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: 180ms;
  --shadow-window: 0 1px 0 rgba(37, 40, 35, .04), 0 24px 48px -24px rgba(36, 76, 59, .28);
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
::selection { background: var(--amber); color: var(--ink); }

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

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; padding: 10px 14px; background: var(--forest); color: var(--on-dark); border-radius: var(--r-sm); text-decoration: none; transition: top var(--dur) var(--ease); }
.skip-link:focus { top: 12px; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  --btn-h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: var(--btn-h); padding: 0 1.15em;
  border: 1px solid transparent; border-radius: var(--r-md);
  font: 600 var(--text-sm)/1 var(--font-body); letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn--sm { --btn-h: 38px; padding: 0 .95em; }
.btn--lg { --btn-h: 50px; padding: 0 1.35em; font-size: 1rem; }
.btn__icon { width: 16px; height: 16px; transition: transform var(--dur) var(--ease); }
.btn:hover .btn__icon { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--forest); color: var(--on-dark); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 1px 2px rgba(36,76,59,.3); }
.btn--primary:hover { background: var(--forest-hover); }
.btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { background: var(--paper); border-color: var(--ink-3); }
.btn[aria-busy="true"] { cursor: progress; opacity: .85; }

/* ==========================================================================
   Header & navigation
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 245, 239, .94);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
@supports (backdrop-filter: blur(8px)) { .site-header { backdrop-filter: saturate(1.4) blur(10px); } }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 2rem; height: var(--header-h); }
.nav__brand { display: block; flex: none; border-radius: 6px; }
.nav__brand img { width: 152px; height: auto; }
.nav__links { display: flex; gap: .25rem; margin-left: auto; }
.nav__links a {
  position: relative; padding: .5rem .8rem; border-radius: var(--r-sm);
  font-size: var(--text-sm); font-weight: 500; color: var(--ink-2); text-decoration: none;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.nav__links a:hover { color: var(--ink); background: var(--sand); }
.nav__links a[aria-current="true"] { color: var(--ink); }
.nav__links a[aria-current="true"]::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: 2px; height: 2px; border-radius: 2px; background: var(--orange); }
.nav__cta { flex: none; }

.nav__toggle { display: none; position: relative; width: 44px; height: 44px; margin-left: auto; padding: 0; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--paper); cursor: pointer; }
.nav__toggle-bars, .nav__toggle-bars::before, .nav__toggle-bars::after { position: absolute; left: 50%; width: 18px; height: 1.6px; margin-left: -9px; background: var(--ink); border-radius: 2px; transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.nav__toggle-bars { top: 50%; margin-top: -.8px; }
.nav__toggle-bars::before, .nav__toggle-bars::after { content: ""; left: 0; margin-left: 0; }
.nav__toggle-bars::before { transform: translateY(-6px); }
.nav__toggle-bars::after { transform: translateY(6px); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::before { transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::after { transform: rotate(-45deg); }

.mobile-menu { position: absolute; left: 0; right: 0; top: 100%; border-block: 1px solid var(--line); background: var(--cream); box-shadow: 0 24px 40px -24px rgba(37, 40, 35, .25); }
.mobile-menu nav { display: flex; flex-direction: column; padding-block: .75rem 1.5rem; }
.mobile-menu a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid var(--line); font: 500 1.125rem/1.2 var(--font-display); text-decoration: none; }
.mobile-menu .btn { margin-top: 1.25rem; }

@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  :root { --header-h: 64px; }
  .nav__brand img { width: 136px; }
}
@media (min-width: 861px) { .mobile-menu { display: none !important; } }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding-block: var(--section); }
.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem 4rem; align-items: end; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section-head__title { font-size: var(--text-2xl); }
.section-head__lede { max-width: 34rem; color: var(--ink-2); font-size: var(--text-lg); line-height: 1.5; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; gap: 1rem; } }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding-block: clamp(2.5rem, 1rem + 4vw, 4.75rem) clamp(3rem, 1.5rem + 4vw, 5rem); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(2.5rem, 1rem + 4vw, 5rem); align-items: center; }
.hero__kicker { display: inline-flex; align-items: flex-start; gap: .6rem; margin-bottom: 1.5rem; color: var(--ink-2); font-size: var(--text-sm); font-weight: 500; }
.hero__kicker::before { content: ""; flex: none; margin-top: .45em; width: 22px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--sage) 0 33%, var(--orange-mark) 33% 66%, var(--amber) 66%); }
.hero__title { font-size: clamp(2.5rem, 1.7rem + 2.9vw, 3.875rem); font-weight: 600; line-height: 1.04; letter-spacing: -0.035em; }
.hero__title span { display: block; }
@media (min-width: 1200px) { .hero__title { font-size: min(3.375rem, 4.15vw); } .hero__title span { white-space: nowrap; } }
@media (min-width: 961px) and (max-width: 1199px) { .hero__title { font-size: 4.5vw; } }
.hero__lede { max-width: 33rem; margin-top: 1.5rem; color: var(--ink-2); font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); line-height: 1.55; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }

.hero__visual { margin: 0; }
.hero__visual figcaption { max-width: 30rem; margin: 1.25rem auto 0; color: var(--ink-3); font-size: var(--text-xs); line-height: 1.5; text-align: center; }
.system { width: 100%; max-width: 520px; height: auto; margin-inline: auto; overflow: visible; }
.system__col--green { fill: var(--sage); opacity: .96; }
.system__col--amber { fill: var(--amber); }
.system__band { stroke: var(--orange-mark); stroke-width: 150; stroke-linecap: round; opacity: .9; }
.system__flow circle { fill: var(--paper); opacity: .9; }
.system__heading { font: 600 19px var(--font-display); fill: var(--ink); letter-spacing: -.01em; }
.system__heading--light { fill: var(--paper); }
.chip rect { stroke-width: 1; }
.chip text { font: 500 16.5px var(--font-body); }
.chip--on-green rect { fill: rgba(27, 59, 45, .42); stroke: rgba(255, 253, 249, .35); }
.chip--on-green text { fill: var(--paper); }
.chip--on-amber rect { fill: rgba(255, 253, 249, .55); stroke: rgba(37, 40, 35, .14); }
.chip--on-amber text { fill: var(--ink); }
.chip--core rect { fill: var(--paper); stroke: rgba(37, 40, 35, .1); filter: drop-shadow(0 10px 18px rgba(120, 60, 20, .22)); }
.chip__title { font: 600 19px var(--font-display) !important; fill: var(--ink); }
.chip__sub { font: 500 14px var(--font-body) !important; fill: var(--ink-3); }

/* One orchestrated entrance: the mark assembles */
.js .system__col, .js .system__band, .js .system__group { opacity: 0; }
.js .system__col { animation: rise .7s var(--ease) forwards; }
.js .system__col--amber { animation-delay: .08s; }
.js .system__band { animation: band .8s var(--ease) .18s forwards; }
.js .system__group { animation: fade .5s var(--ease) forwards; }
.js .system__group:nth-of-type(2) { animation-delay: .55s; }
.js .system__group:nth-of-type(3) { animation-delay: .7s; }
.js .system__group:nth-of-type(4) { animation-delay: .85s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes band { from { opacity: 0; stroke-dasharray: 0 700; } to { opacity: .9; stroke-dasharray: 700 0; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 480px) { .hero__actions .btn { flex: 1 1 100%; } }
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__title { max-width: 14ch; }
  .system { max-width: 440px; }
}

/* ==========================================================================
   Capability strip
   ========================================================================== */
.capabilities { border-block: 1px solid var(--line); background: var(--paper); }
.capabilities__inner { display: flex; align-items: center; gap: 2.5rem; min-height: 76px; }
.capabilities__title { flex: none; font: 500 var(--text-sm)/1.3 var(--font-body); letter-spacing: 0; color: var(--ink-3); }
.capabilities__list { display: flex; flex: 1; justify-content: space-between; }
.capabilities__list li { display: flex; align-items: center; }
.capabilities__list li + li::before { content: ""; width: 1px; height: 18px; margin-right: 1.25rem; background: var(--line-strong); }
.capabilities__list a { padding: .4rem 0; font: 500 1rem/1.3 var(--font-display); color: var(--ink); text-decoration: none; background: linear-gradient(var(--orange), var(--orange)) 0 100% / 0 2px no-repeat; transition: background-size var(--dur) var(--ease); white-space: nowrap; }
.capabilities__list a:hover { background-size: 100% 2px; }
.capabilities__list li:not(:first-child) a { margin-right: 0; }
@media (max-width: 1100px) {
  .capabilities__inner { flex-direction: column; align-items: stretch; gap: .5rem; padding-block: 1.25rem; }
  .capabilities__list { gap: 1.5rem; }
  .capabilities__list li + li::before { display: none; }
}
@media (max-width: 860px) {
  .capabilities__list { flex-direction: column; gap: 0; width: 100%; }
  .capabilities__list li { border-top: 1px solid var(--line); }
  .capabilities__list li + li::before { display: none; }
  .capabilities__list a { display: block; width: 100%; padding: .8rem 0; }
}

/* ==========================================================================
   Products
   ========================================================================== */
.product { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; padding: clamp(1.5rem, 1rem + 3vw, 3.5rem); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); }
.product__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: 1.5rem; }
.tag { display: inline-flex; align-items: center; height: 28px; padding: 0 .75rem; border-radius: var(--r-pill); background: var(--forest-tint); color: var(--forest); font-size: var(--text-xs); font-weight: 600; }
.status { display: inline-flex; align-items: center; gap: .45rem; height: 28px; padding: 0 .75rem; border: 1px solid var(--line-strong); border-radius: var(--r-pill); color: var(--ink-2); font-size: var(--text-xs); font-weight: 500; }
.status__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 3px rgba(233, 161, 107, .25); }
.product__name { font-size: clamp(2.75rem, 2rem + 3vw, 4rem); letter-spacing: -0.04em; line-height: 1; }
.product__tagline { margin-top: .6rem; text-wrap: balance; font: 500 var(--text-xl)/1.25 var(--font-display); letter-spacing: -0.015em; color: var(--forest); }
.product__body { margin-top: 1.25rem; color: var(--ink-2); max-width: 32rem; }
.product__points { display: grid; gap: .7rem; margin-top: 1.5rem; }
.product__points li { position: relative; padding-left: 1.6rem; color: var(--ink); font-size: var(--text-sm); }
.product__points li::before { content: ""; position: absolute; left: 0; top: .45em; width: 12px; height: 7px; border-left: 1.75px solid var(--forest); border-bottom: 1.75px solid var(--forest); transform: rotate(-45deg); }
.product__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; margin-top: 2rem; }
.product__note { flex: 1 1 14rem; max-width: 20rem; color: var(--ink-3); font-size: var(--text-xs); line-height: 1.45; }

.product__preview { margin: 0; }
.product__preview figcaption { margin-top: .9rem; color: var(--ink-3); font-size: var(--text-xs); text-align: center; }

/* Mia's own landing-page demo lives in mia-demo.css (self-themed, dark/teal) */

@media (max-width: 960px) { .product { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   Services
   ========================================================================== */
.services { border-top: 1px solid var(--line); }
.services__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.services__intro { position: sticky; top: calc(var(--header-h) + 2rem); display: grid; gap: 1.25rem; justify-items: start; }
.services__intro .section-head__lede { font-size: var(--text-md); }

.service-list { border-top: 1px solid var(--ink); }
.service {
  display: grid; grid-template-columns: 36px minmax(0, 1fr) minmax(0, 1.05fr); gap: .5rem 1.75rem;
  padding: 1.75rem 0; border-bottom: 1px solid var(--line-strong);
  transition: background-color var(--dur) var(--ease);
}
.service__icon { width: 30px; height: 30px; margin-top: 2px; fill: none; stroke: var(--forest); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke var(--dur) var(--ease); }
.service:hover .service__icon { stroke: var(--orange-ink); }
.service__name { font-size: 1.3125rem; letter-spacing: -0.015em; line-height: 1.2; }
.service__desc { margin-top: .5rem; color: var(--ink-2); font-size: var(--text-sm); }
.service__detail { display: grid; gap: .9rem; margin: 0; }
.service__detail div { display: grid; gap: .15rem; }
.service__detail dt { color: var(--ink-3); font-size: var(--text-xs); font-weight: 600; }
.service__detail dd { margin: 0; font-size: var(--text-sm); line-height: 1.5; }
.service:target { background: linear-gradient(90deg, rgba(233, 161, 107, .14), transparent 70%); }

@media (max-width: 960px) {
  .services__grid { grid-template-columns: minmax(0, 1fr); }
  .services__intro { position: static; }
}
@media (max-width: 680px) {
  .service { grid-template-columns: 30px minmax(0, 1fr); }
  .service__icon { width: 24px; height: 24px; }
  .service__detail { grid-column: 2; margin-top: .5rem; }
  }

/* ==========================================================================
   Approach
   ========================================================================== */
.approach { background: var(--paper); border-block: 1px solid var(--line); }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; counter-reset: step; }
.steps::before { content: ""; position: absolute; top: 9px; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--sage) 0 25%, var(--orange-mark) 25% 50%, var(--amber) 50% 75%, var(--forest) 75%); border-radius: 2px; }
.step { position: relative; padding-top: 2.75rem; }
.step::before { content: ""; position: absolute; top: 0; left: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--paper); border: 2px solid var(--c); }
.step--1 { --c: var(--sage); } .step--2 { --c: var(--orange-mark); } .step--3 { --c: #D9A23F; } .step--4 { --c: var(--forest); }
.step__num { display: block; margin-bottom: .5rem; color: var(--ink-3); font: 500 var(--text-sm)/1 var(--font-body); font-variant-numeric: tabular-nums; }
.step__name { font-size: var(--text-xl); letter-spacing: -0.02em; }
.step p { max-width: 17rem; margin-top: .65rem; color: var(--ink-2); font-size: var(--text-sm); }

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 0; padding-left: 2.25rem; }
  .steps::before { top: 0; bottom: 0; left: 9px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--sage) 0 25%, var(--orange-mark) 25% 50%, var(--amber) 50% 75%, var(--forest) 75%); }
  .step { padding: 0 0 2.25rem; }
  .step:last-child { padding-bottom: 0; }
  .step::before { left: -2.25rem; }
  .step p { max-width: 30rem; }
}

/* ==========================================================================
   About / why
   ========================================================================== */
.about { padding-block: var(--section); background: var(--forest); color: var(--on-dark); }
.about__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 1rem + 4vw, 5rem); }
.about__title { font-size: var(--text-2xl); }
.about__lede { margin-top: 1.25rem; max-width: 28rem; color: var(--on-dark-2); font-size: var(--text-lg); line-height: 1.55; }
.reasons { border-top: 1px solid rgba(248, 245, 239, .28); }
.reasons li { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: .5rem 2rem; padding: 1.4rem 0; border-bottom: 1px solid rgba(248, 245, 239, .16); }
.reasons h3 { font-size: 1.1875rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1.3; }
.reasons p { color: var(--on-dark-2); font-size: var(--text-sm); }
.about :focus-visible { outline-color: var(--amber); }
@media (max-width: 860px) {
  .about__grid { grid-template-columns: minmax(0, 1fr); }
  .reasons li { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2.5rem, 1rem + 5vw, 6rem); align-items: start; }
.contact__intro { position: relative; }
.contact__title { font-size: clamp(2.25rem, 1.6rem + 2.2vw, 3.25rem); letter-spacing: -0.03em; line-height: 1.06; }
.contact__title span { display: block; }
.contact__lede { margin-top: 1.25rem; max-width: 27rem; color: var(--ink-2); font-size: var(--text-lg); line-height: 1.5; }
.contact__expect { display: grid; gap: .6rem; margin-top: 2rem; max-width: 27rem; }
.contact__expect li { position: relative; padding-left: 1.25rem; color: var(--ink-2); font-size: var(--text-sm); }
.contact__expect li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }

.form { display: grid; gap: 1.25rem; padding: clamp(1.25rem, .8rem + 2vw, 2.25rem); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); box-shadow: 0 30px 60px -40px rgba(36, 76, 59, .35); }
.form__row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field { display: grid; gap: .45rem; }
.field label { font-size: var(--text-sm); font-weight: 600; }
.field__opt { margin-left: .3rem; color: var(--ink-3); font-weight: 400; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 46px; padding: .7rem .85rem;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--cream);
  color: var(--ink); font: 400 1rem/1.4 var(--font-body);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: #7A7D73; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--ink-3); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--forest); background: var(--paper); box-shadow: 0 0 0 3px rgba(36, 76, 59, .16); }
.field [aria-invalid="true"] { border-color: #B3401F; }
.field__error { color: #A63A1C; font-size: var(--text-xs); }
.select { position: relative; }
.select select { appearance: none; padding-right: 2.25rem; cursor: pointer; }
.select::after { content: ""; position: absolute; right: .95rem; top: 50%; width: 7px; height: 7px; margin-top: -6px; border-right: 1.6px solid var(--ink-2); border-bottom: 1.6px solid var(--ink-2); transform: rotate(45deg); pointer-events: none; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; padding-top: .25rem; }
.form__status { flex: 1 1 14rem; font-size: var(--text-sm); color: var(--ink-2); }
.form__status.is-success { color: var(--forest); }
.form__status.is-error { color: #A63A1C; }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(248, 245, 239, .35); border-top-color: var(--on-dark); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 960px) {
  .contact__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .form__row--2 { grid-template-columns: minmax(0, 1fr); }
  .form__foot .btn { width: 100%; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { border-top: 1px solid var(--line); background: var(--sand); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; padding-block: 4rem 3rem; }
.footer__brand a { display: inline-block; border-radius: 6px; }
.footer__brand img { width: 160px; height: auto; }
.footer__brand p { max-width: 21rem; margin-top: 1.1rem; color: var(--ink-2); font-size: var(--text-sm); }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; }
.footer__col h2 { margin-bottom: .35rem; font: 600 var(--text-sm)/1.3 var(--font-body); letter-spacing: 0; color: var(--ink); }
.footer__col a, .footer__base a { color: var(--ink-2); font-size: var(--text-sm); text-decoration: none; text-underline-offset: 3px; }
.footer__col a:hover, .footer__base a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--orange); }
.footer__base { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.5rem 2rem; background: linear-gradient(var(--line-strong), var(--line-strong)) content-box top / 100% 1px no-repeat; color: var(--ink-3); font-size: var(--text-xs); }
.footer__base a { display: inline-flex; align-items: center; min-height: 32px; margin-block: -6px; font-size: var(--text-xs); }
@media (max-width: 860px) {
  .footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 1.5rem; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 340px) { .footer__grid { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .system__flow { display: none; }
}
