/* MACK Steel Consultech — one stylesheet for every page.
   Palette: "Mist and teal" (approved November 2026). Soft grey-green grounds, the teal of the EVAClad
   logo for buttons and links, and its red for thin rules. The footer is the one dark ground.
   The variable names (--wine, --maroon, --gold) are from the first, wine and gold design; they were
   kept so the rules below did not have to change. Read them by the role noted beside each.
   Type: Geist. */

:root {
  /* Main colour: buttons and links */
  --maroon: #063F4A;        /* the EVAClad teal */
  --maroon-dk: #042E36;     /* hover */
  /* Accent: thin rules and marks */
  --gold-hi: #D11A1A;
  --gold: #B80C0C;          /* the EVAClad red */
  --amber: #9A0808;
  --gold-face: linear-gradient(180deg, var(--gold-hi) 0%, var(--amber) 100%);

  /* Grounds of the hero, page heads and bands */
  --wine: #E4EFEF;
  --wine-mid: #CFE3E4;
  --wine-deep: #F2F8F8;
  --on-wine: var(--body);   /* body text on those grounds */
  --on-wine-soft: var(--body);

  /* Neutrals */
  --ink: #0C262C;           /* headings */
  --body: #44555A;          /* body text */
  --mute: #5E6E73;
  --line: #DCE5E6;
  --paper: #F2F6F6;         /* alternate section ground */
  --white: #FFFFFF;

  --font: "Geist", "Segoe UI", Arial, sans-serif;
  /* Type scale: every page uses only these sizes (body text itself is 16px). */
  --fs-h1: clamp(2rem, 3.3vw, 3rem);       /* page titles */
  --fs-h2: clamp(1.5rem, 2.3vw, 2.1rem);   /* section titles */
  --fs-h3: 1.125rem;                       /* titles inside a section */
  --fs-lede: 1.0625rem;                    /* the paragraph that introduces a section */
  --fs-ui: 15px;                           /* menus, buttons, lists */
  --fs-sm: 14px;                           /* supporting text */
  --fs-meta: 13px;                         /* small labels */
  --wrap: 1180px;
  --gutter: clamp(18px, 3.4vw, 48px);
  --header-h: 72px;        /* floating bar (52) plus 10 above and below */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --glow: rgba(255, 255, 255, .8);     /* soft light behind product windows */
  --glow-2: rgba(255, 255, 255, 0);
  /* Text and marks on the hero, page heads and bands (the sections marked "on-dark" in the pages). */
  --od-head: var(--ink);
  --od-rule: rgba(20, 30, 40, .16);
  --od-line-strong: rgba(20, 30, 40, .34);
  --od-inv: #FFFFFF;
  --od-accent: var(--maroon);
  --cta-bg: var(--maroon);
  --cta-fg: #FFFFFF;
  --footer: #031C22;
  --footer-text: #A5BFC3;
  --dark-ground:
    radial-gradient(820px 560px at 80% 60%, var(--glow) 0%, rgba(0, 0, 0, 0) 70%),
    radial-gradient(520px 360px at 100% 0%, var(--glow-2) 0%, rgba(0, 0, 0, 0) 70%),
    linear-gradient(120deg, var(--wine-deep) 0%, var(--wine-mid) 78%);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--white); color: var(--body);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, iframe, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3 { color: var(--ink); font-weight: 500; line-height: 1.1; letter-spacing: -.025em; }
h1 { font-size: var(--fs-h1); letter-spacing: -.035em; line-height: 1.06; }
h2 { font-size: var(--fs-h2); line-height: 1.14; text-wrap: balance; }
h3 { font-size: var(--fs-h3); font-weight: 550; letter-spacing: -.015em; line-height: 1.25; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--maroon); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible { outline-color: var(--od-accent); }
.site-footer :focus-visible { outline-color: var(--gold); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--white); padding: 8px 14px; border-radius: 6px; font-weight: 600; }
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font: 500 15px/1 var(--font); letter-spacing: -.005em; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), filter .18s var(--ease);
}
.btn-gold { background: var(--cta-bg); color: var(--cta-fg); }
.btn-gold:hover { filter: brightness(1.15); }
.btn-brand { background: var(--maroon); color: var(--white); }
.btn-brand:hover { background: var(--maroon-dk); }
.btn-line { border-color: rgba(30, 21, 23, .28); color: var(--ink); }
.btn-line:hover { border-color: var(--maroon); background: var(--maroon); color: var(--white); }
.btn-line-light { border-color: var(--od-line-strong); color: var(--od-head); }
.btn-line-light:hover { background: var(--od-head); border-color: var(--od-head); color: var(--od-inv); }
.btn-sm { min-height: 36px; padding: 0 16px; font-size: 14px; }
.btn[disabled] { opacity: .6; cursor: default; }

.text-link { display: inline-block; font-weight: 500; color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.text-link:hover { color: var(--maroon); text-decoration-color: var(--maroon); }

/* ---------- Header: a floating bar over the page head ----------
   The bar is a glass capsule: the page shows through it, blurred. Over the dark page head it is
   clear glass with light text. Once the page head has scrolled away (site.js adds .scrolled) it
   turns to frosted white glass with dark text, so it stays readable over the light sections.
   A pill slides between the menu items to follow the pointer and rests on the current page. */
.site-header {
  position: sticky; top: 0; z-index: 50; padding-block: 10px; pointer-events: none;
  --nav-bg: rgba(255, 255, 255, .5); --nav-line: rgba(20, 30, 40, .12); --nav-shine: rgba(255, 255, 255, .22);
  --nav-fg: var(--od-head); --nav-fg-soft: var(--on-wine); --nav-pill: var(--ink); --nav-pill-fg: #FFFFFF;
  --nav-cta-bg: var(--od-head); --nav-cta-fg: var(--od-inv); --nav-shadow: 0 10px 30px -18px rgba(0, 0, 0, .6);
}
.site-header.scrolled {
  --nav-bg: rgba(255, 255, 255, .7); --nav-line: rgba(30, 21, 23, .1); --nav-shine: rgba(255, 255, 255, .9);
  --nav-fg: var(--ink); --nav-fg-soft: var(--body); --nav-pill: var(--ink); --nav-pill-fg: var(--white);
  --nav-cta-bg: var(--maroon); --nav-cta-fg: var(--white); --nav-shadow: 0 12px 30px -18px rgba(0, 0, 0, .4);
}
.nav {
  position: relative; display: flex; align-items: center; gap: 16px; height: 52px; padding: 0 8px 0 18px;
  background: var(--nav-bg); backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border: 1px solid var(--nav-line); border-radius: 999px; pointer-events: auto;
  box-shadow: inset 0 1px 0 var(--nav-shine), var(--nav-shadow);
  transition: background-color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.nav-cta.btn { background: var(--nav-cta-bg); color: var(--nav-cta-fg); }
.nav-cta.btn:hover { filter: brightness(.92); }
.brand { flex: none; display: block; }
.brand img { height: 40px; width: auto; }
.nav > nav { margin-left: auto; }
.nav-links { position: relative; display: flex; align-items: center; gap: 2px; }
.nav-links a { position: relative; z-index: 1; display: block; padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: 14.5px; line-height: 1.4; text-decoration: none; color: var(--nav-fg-soft); transition: color .25s var(--ease); }
.nav-links a:hover { color: var(--nav-fg); }
.nav-links:not(.has-ink) a:hover { background: var(--nav-pill); color: var(--nav-pill-fg); }
.nav-links a[aria-current] { color: var(--nav-fg); }
.nav-ink { position: absolute; left: 0; top: 0; width: 0; border-radius: 999px; background: var(--nav-pill); opacity: 0; pointer-events: none; }
.nav-ink.ready { transition: transform .35s var(--ease), width .35s var(--ease), opacity .2s var(--ease), background-color .35s var(--ease); }
.nav-links .mobile-only { display: none; }
.nav-toggle { display: none; width: 38px; height: 38px; align-items: center; justify-content: center; background: var(--nav-pill); border: 0; border-radius: 999px; color: var(--nav-pill-fg); cursor: pointer; }
.nav-toggle svg { width: 18px; height: 18px; }
main { margin-top: calc(-1 * var(--header-h)); }
.lost { padding-top: var(--header-h); }
@media (min-width: 861px) {
  .nav-links a.is-ink, .nav-links a.is-ink[aria-current] { color: var(--nav-pill-fg); }
}
@media (max-width: 860px) {
  :root { --header-h: 68px; }
  .site-header { padding-block: 8px; }
  .nav { gap: 12px; padding: 0 7px 0 16px; }
  .brand img { height: 36px; }
  .nav-cta, .nav-ink { display: none; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .nav > nav { margin-left: 0; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: calc(100% + 10px); flex-direction: column; align-items: stretch; gap: 0;
    padding: 6px 20px 20px; background: var(--white); border: 1px solid rgba(30, 21, 23, .1); border-radius: 18px; box-shadow: 0 28px 56px -22px rgba(0, 0, 0, .55);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 0; font-size: 16px; border-radius: 0; border-bottom: 1px solid var(--line); color: var(--body); }
  .nav-links a:hover { color: var(--ink); }
  .nav-links a[aria-current] { color: var(--maroon); }
  .nav-links .mobile-only { display: block; padding-top: 18px; }
  .nav-links .mobile-only a, .nav-links .mobile-only a:hover { border: 0; padding: 0 20px; color: var(--white); font-size: 15px; border-radius: 999px; }
}

/* ---------- Home: hero (split screen) ----------
   The screen is cut in two from edge to edge: EVAClad on the darker tone of the palette on the left,
   EVAClad Viewer on its brighter tone on the right, with the page title across both.
   Each half ends in a product window: a dark frame holding a real screenshot.
   Motion: everything rises into place, a soft light drifts behind each window, the windows float,
   a light runs round each frame, a scan line crosses the EVAClad model, and pointing at a half widens it and turns its window to face you. */
.hero-split { position: relative; overflow: hidden; color: var(--on-wine); background: var(--wine-deep); }
.hero-split h1 {
  position: absolute; z-index: 2; left: 0; right: 0; top: calc(var(--header-h) + clamp(22px, 4vh, 44px)); padding-inline: var(--gutter);
  text-align: center; text-wrap: balance; color: var(--od-head); font-size: clamp(1.6rem, 2.6vw, 2.4rem); pointer-events: none;
  animation: hs-rise .9s var(--ease) both;
}
.hs-grid { display: flex; min-height: min(100svh, 900px); }
.hs-side {
  position: relative; isolation: isolate; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; overflow: hidden;
  padding-block: calc(var(--header-h) + clamp(100px, 13vh, 132px)) clamp(30px, 4.6vh, 46px);
  transition: flex-grow .8s var(--ease);
}
.hs-left {
  --hs-glow: var(--glow); --sd: 0s; --tilt: 6deg;
  padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); padding-right: clamp(28px, 4vw, 64px);
  background: linear-gradient(165deg, var(--wine-deep) 0%, var(--wine) 100%);
}
.hs-right {
  --hs-glow: var(--glow-2); --sd: .14s; --tilt: -6deg;
  padding-right: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); padding-left: clamp(28px, 4vw, 64px);
  background: linear-gradient(195deg, var(--wine-mid) 0%, var(--wine) 100%);
}
/* A faint drawing grid, fading out towards the top. */
.hs-side::before {
  content: ""; position: absolute; inset: 0; z-index: -2; opacity: .5;
  background-image: linear-gradient(var(--od-rule) 1px, transparent 1px), linear-gradient(90deg, var(--od-rule) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(110% 80% at 50% 100%, #000 0%, transparent 72%); mask-image: radial-gradient(110% 80% at 50% 100%, #000 0%, transparent 72%);
}
.hs-glow {
  position: absolute; z-index: -1; left: 12%; bottom: -30%; width: 76%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, var(--hs-glow) 0%, rgba(0, 0, 0, 0) 100%);
  animation: hs-drift 13s ease-in-out infinite alternate;
}
/* The dividing rule starts below the title, draws itself downward, then a glint runs along it. */
.hs-divider { position: absolute; z-index: 1; left: 0; bottom: 0; top: calc(var(--header-h) + clamp(88px, 11.5vh, 118px)); width: 1px; overflow: hidden; background: var(--od-rule); transform-origin: top; animation: hs-draw 1.1s var(--ease) both .25s; }
.hs-divider::after { content: ""; position: absolute; left: 0; top: -140px; width: 1px; height: 140px; background: linear-gradient(180deg, rgba(0, 0, 0, 0), var(--gold-hi), rgba(0, 0, 0, 0)); animation: hs-glint 6s ease-in-out infinite 1.4s; }

.hs-in { transition: opacity .5s var(--ease); }
.hs-in > * { animation: hs-rise .9s var(--ease) both; animation-delay: calc(var(--d, 0s) + var(--sd)); }
.hs-in > :nth-child(1) { --d: .15s; }
.hs-in > :nth-child(2) { --d: .24s; }
.hs-in > :nth-child(3) { --d: .32s; }
.hs-in > :nth-child(4) { --d: .4s; }
.hs-head { display: flex; align-items: center; gap: 16px; }
.hs-head img { flex: none; width: 46px; height: 46px; }
.hs-name { display: block; font-weight: 500; font-size: clamp(1.7rem, 2.6vw, 2.35rem); letter-spacing: -.03em; line-height: 1.05; color: var(--od-head); }
.hs-kind { display: block; margin-top: 5px; font-size: var(--fs-sm); color: var(--od-accent); }
.hs-in p { margin-top: 18px; max-width: 26em; line-height: 1.55; }
.hs-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hs-chips li { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--od-rule); background: rgba(255, 255, 255, .06); color: var(--od-head); font-size: var(--fs-meta); line-height: 1.4; }
.hs-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-block: 22px clamp(22px, 3.2vh, 30px); }

/* The product window. Its size follows the screen height, so the hero fits in one screen.
   .hs-stage rises in and then floats; .hs-rig holds the turn towards the middle of the screen. */
.hs-stage {
  --h: clamp(230px, 39svh, 390px);
  margin-top: auto; perspective: 1600px; transition: opacity .5s var(--ease);
  animation: hs-rise-far 1.1s var(--ease) both, hs-float 7s ease-in-out infinite alternate;
  animation-delay: calc(.45s + var(--sd)), calc(1.7s + var(--sd) * 9);
}
.hs-rig {
  position: relative; width: min(100%, calc(var(--h) * 1.7));
  transform: rotateX(3deg) rotateY(var(--tilt)); transition: transform .9s var(--ease);
}
.hs-shot {
  --hs-a: 0deg;
  position: relative; display: flex; flex-direction: column; padding: 0 6px 6px; border-radius: 14px;
  background: linear-gradient(180deg, #24252B 0%, #131418 100%); text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 0 0 1px rgba(255, 255, 255, .1), 0 44px 90px -30px rgba(0, 0, 0, .85);
  transition: box-shadow .9s var(--ease);
}
/* A light that runs round the frame. */
.hs-shot::after {
  content: ""; position: absolute; inset: -1px; padding: 1.5px; border-radius: 15px; pointer-events: none;
  background: conic-gradient(from var(--hs-a), rgba(0, 0, 0, 0) 0 62%, var(--gold-hi) 78%, rgba(0, 0, 0, 0) 94%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: hs-orbit 8s linear infinite; animation-delay: calc(var(--sd) * -20);
}
.hs-bar { flex: none; display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 6px; font-size: 12.5px; line-height: 1; white-space: nowrap; color: rgba(255, 255, 255, .5); }
.hs-bar img { flex: none; width: 18px; height: 18px; }
.hs-bar b { font-weight: 500; color: #fff; }
.hs-bar span { min-width: 0; overflow: hidden; text-overflow: ellipsis; margin-right: auto; }
.hs-bar i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.hs-view { position: relative; flex: none; aspect-ratio: 1917 / 1027; overflow: hidden; border-radius: 9px; background: var(--white); }
.hs-pic { position: absolute; inset: 0; animation: hs-zoom 16s ease-in-out infinite alternate; }
.hs-pic img { width: 100%; height: 100%; object-fit: contain; transform-origin: 50% 53%; transform: scale(1.2); }
/* Both windows take the shape of the Viewer screenshot, which is shown whole. */
.hs-pic.full { animation: none; }
.hs-pic.full img { transform: none; }
/* EVAClad: a scan line crosses the model. */
.hs-scan {
  position: absolute; top: 0; bottom: 0; left: 0; width: 34%; pointer-events: none;
  background: linear-gradient(90deg, rgba(242, 182, 30, 0) 0%, rgba(242, 182, 30, .16) 96%, var(--amber) 100%);
  transform: translateX(-110%); animation: hs-scan 7s var(--ease) infinite 1.6s;
}
/* Labels that float over the edges of the window. */
.hs-tag {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 7px; padding: 7px 12px 7px 9px; border-radius: 10px; white-space: nowrap;
  background: rgba(22, 23, 27, .78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .7);
  color: #fff; font-weight: 500; font-size: 12.5px; line-height: 1.2;
  animation: hs-pop .7s var(--ease) both, hs-bob 5s ease-in-out infinite alternate;
}
.hs-tag svg { flex: none; width: 15px; height: 15px; color: #F7DE4B; }
.hs-tag-1 { right: -14px; top: 26%; animation-delay: calc(1.25s + var(--sd)), calc(2s + var(--sd)); }
.hs-tag-2 { left: -14px; bottom: 13%; animation-delay: calc(1.45s + var(--sd)), calc(3.2s + var(--sd)); }
.hs-right .hs-tag-1 { right: auto; left: -14px; top: 66%; }
.hs-right .hs-tag-2 { left: auto; right: -14px; }

/* Short screens: a smaller window, so the hero still fits. */
@media (min-width: 861px) and (max-height: 800px) { .hs-stage { --h: clamp(230px, 34svh, 390px); } }
@media (hover: hover) and (min-width: 861px) {
  .hs-side:hover .hs-rig { transform: none; }
  .hs-side:hover .hs-shot { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 0 0 1px rgba(255, 255, 255, .16), 0 54px 110px -30px rgba(0, 0, 0, .95); }
  .hs-grid:hover .hs-side:not(:hover) .hs-in, .hs-grid:hover .hs-side:not(:hover) .hs-stage { opacity: .5; }
}
@media (hover: hover) and (min-width: 1280px) {
  .hs-side:hover { flex-grow: 1.22; }
}
@media (max-width: 860px) {
  .hero-split h1 { text-align: left; }
  .hs-grid { flex-direction: column; min-height: 0; }
  .hs-side { flex: none; padding-inline: var(--gutter); }
  .hs-left { padding-top: calc(var(--header-h) + 150px); }
  .hs-right { padding-top: 40px; }
  .hs-divider { display: none; }
  .hs-acts { margin-bottom: 26px; }
  .hs-rig { width: 100%; transform: none; }
  .hs-tag-1, .hs-right .hs-tag-2 { right: 8px; left: auto; }
  .hs-tag-2, .hs-right .hs-tag-1 { left: 8px; right: auto; }
}
@property --hs-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes hs-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes hs-rise-far { from { opacity: 0; transform: translateY(90px); } to { opacity: 1; transform: none; } }
@keyframes hs-float { from { transform: translateY(0); } to { transform: translateY(-9px); } }
@keyframes hs-draw { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes hs-drift { from { transform: translate(-9%, 5%) scale(1); } to { transform: translate(9%, -7%) scale(1.14); } }
@keyframes hs-glint { 0% { top: -140px; } 45%, 100% { top: 100%; } }
@keyframes hs-orbit { to { --hs-a: 360deg; } }
@keyframes hs-zoom { from { transform: scale(1); } to { transform: scale(1.06); } }
@keyframes hs-scan { 0% { transform: translateX(-110%); } 38%, 100% { transform: translateX(300%); } }
@keyframes hs-pop { from { opacity: 0; transform: translateY(10px) scale(.86); } to { opacity: 1; transform: none; } }
@keyframes hs-bob { from { transform: translateY(0); } to { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) {
  .hero-split *, .hero-split *::before, .hero-split *::after { animation: none !important; }
  .hs-rig { transform: none; }
  .hs-scan { display: none; }
}

/* ---------- Inner pages: page head ---------- */
.page-head { position: relative; color: var(--on-wine); background: var(--dark-ground); padding-block: calc(var(--header-h) + clamp(32px, 4.5vw, 64px)) clamp(36px, 5vw, 68px); }
.page-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--gold-hi), var(--amber)); }
.page-head-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px clamp(24px, 5vw, 88px); align-items: end; }
.page-head h1 { color: var(--od-head); max-width: 13em; text-wrap: balance; }
.page-head p { font-size: var(--fs-lede); line-height: 1.5; max-width: 30em; }
.page-head .back { display: inline-block; margin-bottom: 16px; font-weight: 500; font-size: var(--fs-sm); color: var(--od-accent); text-decoration: none; }
.page-head .back:hover { text-decoration: underline; text-underline-offset: 4px; }
.page-head.narrow .wrap { max-width: calc(860px + 2 * var(--gutter)); }
.page-head.narrow h1 { font-size: var(--fs-h2); letter-spacing: -.03em; line-height: 1.1; max-width: none; }
.article-meta { display: flex; gap: 18px; margin-top: 14px; font-size: var(--fs-sm); color: var(--on-wine-soft); }
@media (max-width: 860px) { .page-head-grid { grid-template-columns: 1fr; } }
/* Products and About page heads: a short band with the title and, beside it, a few words
   rolling past one at a time (the kinds of work we automate; the people who build it). A small gear, the colour of the label, turns in place
   next to it. The rolling word is teal: a lighter step of the Detailing teal. */
.page-head-art { padding-block: calc(var(--header-h) + clamp(16px, 2.2vw, 28px)) clamp(22px, 2.8vw, 34px); }
.pd-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px clamp(24px, 5vw, 72px); align-items: center; }
.page-head-art h1 { max-width: 12em; font-size: clamp(1.9rem, 3vw, 2.7rem); }
/* Same height on every page: room for a two-line title and a two-line introduction. */
@media (min-width: 861px) { .pd-grid { min-height: calc(2.12 * clamp(1.9rem, 3vw, 2.7rem) + 18px + 3.2rem); } }
.page-head-art p { margin-top: 14px; max-width: 28em; }
.pd-words { width: 16em; max-width: 100%; padding-left: clamp(18px, 2vw, 26px); border-left: 1px solid var(--od-rule); }
.pd-words small { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-weight: 500; font-size: var(--fs-meta); letter-spacing: .08em; text-transform: uppercase; color: var(--on-wine-soft); }
.pd-gear { flex: none; width: 22px; height: 22px; overflow: visible; }
.pd-spin { transform-origin: 0 0; animation: pd-turn 6s linear infinite; }
.pd-spin polygon { fill: currentColor; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.pd-rim { stroke: currentColor; stroke-width: 12; }
.pd-spoke { stroke: currentColor; stroke-width: 6; opacity: .6; }
.pd-hub { fill: currentColor; }
.pd-roll { height: 1.25em; overflow: hidden; font-weight: 500; font-size: clamp(1.4rem, 2.3vw, 2rem); letter-spacing: -.03em; line-height: 1.25; color: #2FB9AD; }
.pd-roll > div { animation: pd-roll 9s cubic-bezier(.7, 0, .2, 1) infinite; }
.pd-roll span { display: block; height: 1.25em; white-space: nowrap; }

@keyframes pd-turn { to { transform: rotate(360deg); } }
@keyframes pd-roll {
  0%, 19% { transform: translateY(0); }
  25%, 44% { transform: translateY(-1.25em); }
  50%, 69% { transform: translateY(-2.5em); }
  75%, 94% { transform: translateY(-3.75em); }
  100% { transform: translateY(-5em); }
}
@media (max-width: 860px) {
  .pd-grid { grid-template-columns: 1fr; }
  .pd-words { margin-top: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .pd-spin, .pd-roll > div { animation: none; }
}
.feature[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---------- Section basics ---------- */
.sec { padding-block: clamp(52px, 6.5vw, 92px); }
.sec-paper { background: var(--paper); border-block: 1px solid var(--line); }
.sec-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px clamp(24px, 5vw, 88px); align-items: end; margin-bottom: clamp(28px, 3.5vw, 44px); }
.sec-head p { font-size: var(--fs-lede); }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; } }

/* ---------- Home: people to products ----------
   A diagram: the three kinds of people on the left, the one office in the middle, and what comes
   out of it on the right. Dashes run along the lines from left to right. */
.rp-sec .sec-head { align-items: end; }
.rp-sec .sec-head h2 { max-width: 17em; }
.rp-sec .sec-head .text-link { margin-top: 16px; }
.rp { display: grid; grid-template-columns: minmax(0, 1fr) clamp(40px, 6vw, 84px) auto clamp(40px, 6vw, 84px) minmax(0, 1fr); align-items: stretch; }
.rp-col { display: grid; grid-auto-rows: 1fr; padding: 0; list-style: none; }
.rp-col li { display: flex; padding-block: 7px; }
.rp-card {
  flex: 1; display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--paper);
  color: var(--body); font-size: var(--fs-ui); line-height: 1.45; text-decoration: none;
  transition: border-color .3s var(--ease), background-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.rp-card > svg { flex: none; width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); color: var(--maroon); }
.rp-card > img { flex: none; width: 44px; height: 44px; }
.sec-paper .rp-card { background: var(--white); }
.sec-paper .rp-card > svg { background: var(--paper); }
.rp-card b { display: block; margin-bottom: 2px; color: var(--ink); font-weight: 550; font-size: var(--fs-h3); letter-spacing: -.015em; line-height: 1.25; }
.rp-card i { flex: none; margin-left: auto; width: 9px; height: 9px; border-top: 1.5px solid var(--mute); border-right: 1.5px solid var(--mute); transform: rotate(45deg); transition: transform .3s var(--ease), border-color .3s var(--ease); }
a.rp-card:hover { background: var(--white); border-color: var(--maroon); transform: translateX(4px); box-shadow: 0 18px 36px -24px rgba(30, 21, 23, .5); }
a.rp-card:hover i { border-color: var(--maroon); transform: translateX(3px) rotate(45deg); }

.rp-link { width: 100%; height: 100%; overflow: visible; }
.rp-link path { fill: none; vector-effect: non-scaling-stroke; }
.rp-rail path { stroke: var(--line); stroke-width: 1.5; }
.rp-flow path { stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 2 16; animation: rp-flow 1.5s linear infinite; }

.rp-hub { position: relative; align-self: center; }
.rp-cap { position: absolute; left: 50%; top: calc(100% + 14px); transform: translateX(-50%); text-align: center; white-space: nowrap; font-size: var(--fs-sm); line-height: 1.35; }
.rp-tile {
  position: relative; display: grid; place-items: center; width: clamp(112px, 11vw, 148px); aspect-ratio: 1; border-radius: 28px;
  background: radial-gradient(120% 120% at 30% 15%, var(--wine-mid) 0%, var(--wine-deep) 75%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1) inset, 0 26px 50px -24px rgba(30, 21, 23, .7);
}
.rp-tile::before, .rp-tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1.5px solid var(--gold); opacity: 0; animation: rp-ring 3.6s ease-out infinite; }
.rp-tile::after { animation-delay: 1.8s; }
.rp-tile img { width: 62%; height: auto; }
.rp-cap b { display: block; color: var(--ink); font-weight: 550; font-size: var(--fs-h3); letter-spacing: -.015em; }

@keyframes rp-flow { to { stroke-dashoffset: -18; } }
@keyframes rp-ring { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(1.32); } }
@media (max-width: 980px) {
  .rp { grid-template-columns: 1fr; justify-items: stretch; }
  .rp-link { display: none; }
  .rp-hub { margin-block: 30px; display: flex; flex-direction: column; align-items: center; }
  .rp-cap { position: static; transform: none; margin-top: 14px; }
  .rp-hub::before, .rp-hub::after { content: ""; position: absolute; left: 50%; width: 1.5px; height: 22px; background: var(--line); }
  .rp-hub::before { top: -27px; }
  .rp-hub::after { bottom: -27px; }
}
@media (prefers-reduced-motion: reduce) {
  .rp-flow path, .rp-tile::before, .rp-tile::after { animation: none; }
}

/* ---------- Home: closing band, three ways to start ---------- */
.routes { background: var(--wine); color: var(--on-wine); padding-block: clamp(40px, 4.5vw, 60px); }
.routes .sec-title { color: var(--od-head); }
.routes-grid { margin-top: clamp(28px, 3.5vw, 44px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px clamp(24px, 4vw, 56px); }
.routes-grid > div { display: flex; flex-direction: column; align-items: flex-start; border-top: 1.5px solid var(--gold); padding-top: 18px; }
.routes-grid h3 { color: var(--od-head); }
.routes-grid p { margin: 6px 0 18px; max-width: 24em; }
.routes-grid .btn { margin-top: auto; }
.routes-reach { margin-top: clamp(28px, 3.5vw, 44px); padding-top: 20px; border-top: 1px solid var(--od-rule); display: flex; flex-wrap: wrap; gap: 14px clamp(28px, 5vw, 72px); }
.routes-reach a { color: var(--od-head); font-weight: 500; font-size: var(--fs-lede); letter-spacing: -.01em; text-decoration: none; }
.routes-reach a:hover { color: var(--od-accent); }
.routes-reach small { display: block; font-weight: 400; font-size: var(--fs-meta); letter-spacing: 0; color: var(--on-wine-soft); }
@media (max-width: 860px) { .routes-grid { grid-template-columns: 1fr; } }

/* ---------- Products page: one row per product ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.feature + .feature { margin-top: clamp(52px, 6.5vw, 92px); }
.feature.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature.flip .feature-copy { order: 2; }
.feature-logo { width: 48px; height: 48px; margin-bottom: 16px; }
.feature .kind { margin-top: 6px; font-weight: 500; font-size: var(--fs-sm); color: var(--maroon); }
.feature .sum { margin-top: 14px; font-size: var(--fs-lede); line-height: 1.5; color: var(--ink); }
.ticks { margin-top: 22px; border-top: 1px solid var(--line); }
.ticks li { position: relative; padding: 10px 0 10px 28px; font-size: var(--fs-ui); border-bottom: 1px solid var(--line); line-height: 1.45; }
.ticks li::before { content: ""; position: absolute; left: 3px; top: 16px; width: 11px; height: 6px; border-left: 1.5px solid var(--maroon); border-bottom: 1.5px solid var(--maroon); transform: rotate(-45deg); }
.acts { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.shot { display: block; border-radius: 14px; padding: clamp(14px, 2.4vw, 32px); background: var(--dark-ground); }
.shot span { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 8px; background: var(--white); box-shadow: 0 0 0 1px rgba(20, 30, 50, .1), 0 26px 56px -26px rgba(20, 30, 50, .4); }
.shot img { width: 100%; height: 100%; object-fit: contain; padding: 4%; }
.shot.cover img { object-fit: cover; object-position: left top; padding: 0; }
.shot.wide span { aspect-ratio: 1917 / 1027; }
.shot.wide img { padding: 0; }
@media (max-width: 900px) {
  .feature, .feature.flip { grid-template-columns: 1fr; }
  .feature.flip .feature-copy { order: 0; }
}

/* ---------- About page ---------- */
.tools-foot { margin-top: clamp(32px, 4vw, 48px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.tools-foot p { max-width: 34em; }
.tools-foot p b { color: var(--ink); font-weight: 500; }
.tools-foot div { display: flex; flex-wrap: wrap; gap: 10px; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px clamp(24px, 5vw, 88px); align-items: start; }
.split p { font-size: var(--fs-lede); }
.split p + p { margin-top: 14px; }
.split .lead { font-size: var(--fs-h3); line-height: 1.4; color: var(--ink); letter-spacing: -.015em; }
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cols3 > div { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 22px 22px; }
.cols3 h3 { position: relative; padding-bottom: 14px; margin-bottom: 14px; }
.cols3 h3::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: linear-gradient(90deg, var(--gold-hi), var(--amber)); }
.why { background: var(--wine); color: var(--on-wine); }
.why .sec-head h2 { color: var(--od-head); }
.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 40px); }
.why-grid > div { border-top: 1.5px solid var(--gold); padding-top: 18px; }
.why-grid h3 { color: var(--od-head); margin-bottom: 8px; }
.goal blockquote { max-width: 26em; font-weight: 500; font-size: var(--fs-h2); line-height: 1.16; letter-spacing: -.03em; color: var(--ink); padding-left: clamp(20px, 3vw, 40px); border-left: 3px solid var(--gold); text-wrap: balance; }
.goal p { margin-top: 20px; padding-left: clamp(26px, calc(3vw + 6px), 46px); color: var(--mute); }
/* About page: the goal leads the first section, above the diagram. */
.goal-lead { margin-bottom: clamp(36px, 4.5vw, 60px); padding-bottom: clamp(36px, 4.5vw, 60px); border-bottom: 1px solid var(--line); }
.goal-lead p { margin: 0 0 16px; padding-left: 0; color: var(--maroon); font-weight: 500; font-size: var(--fs-meta); letter-spacing: .08em; text-transform: uppercase; }
.goal-lead blockquote { max-width: 24em; font-size: clamp(1.6rem, 2.7vw, 2.4rem); }
@media (max-width: 1000px) { .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; } }
@media (max-width: 860px) { .split, .cols3 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

/* ---------- Videos and blog lists ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-bottom: 32px; }
.search { position: relative; flex: 1 1 320px; max-width: 480px; }
.search svg { position: absolute; left: 16px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); color: var(--mute); pointer-events: none; }
.search input { width: 100%; height: 44px; padding: 0 18px 0 44px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); font-size: 16px; }
.search input:focus { outline: none; border-color: var(--maroon); box-shadow: 0 0 0 4px rgba(152, 24, 24, .12); }
.result-count { color: var(--mute); font-size: var(--fs-sm); }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.list-foot { margin-top: 44px; display: flex; justify-content: center; }
.skeleton { border-radius: 10px; background: var(--paper); border: 1px solid var(--line); }
.empty { grid-column: 1 / -1; padding: 48px 24px; text-align: center; border: 1px dashed var(--line); border-radius: 10px; color: var(--mute); }
.empty a { color: var(--maroon); font-weight: 500; }

.video-card { display: flex; flex-direction: column; padding: 0; text-align: left; background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; cursor: pointer; color: inherit; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.video-card:hover, .post-card:hover { border-color: #D3C6BF; box-shadow: 0 22px 44px -26px rgba(42, 12, 15, .4); }
/* Every video card carries the same thumbnail (assets/img/video-thumb.webp); the category, title
   and description sit under it. */
.video-thumb { aspect-ratio: 16 / 9; overflow: hidden; background: #06353F; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.video-card:hover .video-thumb img { transform: scale(1.04); }
.video-body h3 { margin-top: 6px; line-height: 1.25; }
.video-body { padding: 16px 20px 20px; }
.tag { display: block; font-size: var(--fs-meta); font-weight: 500; color: var(--maroon); }
.post-body h3 { margin-top: 6px; line-height: 1.25; }
.video-body p, .post-body p { margin-top: 8px; font-size: var(--fs-sm); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.post-card { display: flex; flex-direction: column; height: 100%; background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; text-decoration: none; color: inherit; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.post-img { aspect-ratio: 16 / 9; background: var(--dark-ground); overflow: hidden; }
.post-img img { width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 16px 20px 20px; }
.post-body time { font-size: var(--fs-meta); color: var(--mute); }
.post-body .link-arrow { display: inline-block; margin-top: 12px; font-weight: 500; font-size: var(--fs-ui); color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.post-card { border-radius: 16px; }
.post-card[hidden], .post-first[hidden] { display: none; }
.post-card:hover .post-img img { transform: scale(1.04); }
.post-img img { transition: transform .6s var(--ease); }
.post-body .tag { margin-bottom: 2px; }
.post-first { grid-column: 1 / -1; }
.post-card.featured { flex-direction: row; }
.post-card.featured .post-img { flex: 0 0 52%; aspect-ratio: auto; min-height: 320px; }
.post-card.featured .post-body { align-self: center; padding: clamp(24px, 4vw, 48px); }
.post-card.featured h3 { font-size: var(--fs-h2); font-weight: 500; letter-spacing: -.03em; line-height: 1.12; }
.post-card.featured p { font-size: var(--fs-lede); -webkit-line-clamp: 4; }
@media (max-width: 1000px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .post-card.featured { flex-direction: column; }
  .post-card.featured .post-img { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
}
@media (max-width: 640px) { .card-grid { grid-template-columns: 1fr; } }

/* Video player */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(226, 228, 231, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.modal.open { display: flex; }
.modal-box { width: min(1000px, 100%); max-height: 100%; overflow: auto; background: var(--white); color: var(--body); border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 40px 90px -30px rgba(20, 24, 30, .5); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 16px 16px 24px; }
.modal-head h3 { color: var(--ink); font-size: var(--fs-h3); letter-spacing: -.02em; line-height: 1.3; }
.modal-close { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid rgba(30, 21, 23, .25); background: none; color: var(--ink); cursor: pointer; }
.modal-close:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.modal-close:focus-visible { outline-color: var(--maroon); }
.modal-close svg { width: 18px; height: 18px; }
.modal-frame { aspect-ratio: 16 / 9; background: #000; }
.modal-frame iframe { width: 100%; height: 100%; border: 0; }
.modal-desc { padding: 16px 24px 22px; font-size: var(--fs-sm); }
.modal-desc:empty { display: none; }

/* ---------- Article ---------- */
.article { max-width: 760px; margin-inline: auto; font-size: var(--fs-lede); line-height: 1.7; }
.article-hero-img { margin-bottom: 36px; }
.article-hero-img img { width: 100%; border-radius: 16px; }
.article h2 { margin: 44px 0 14px; font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.article h3 { margin: 30px 0 10px; line-height: 1.25; }
.article p { margin-bottom: 16px; }
.article a:not(.btn):not(.text-link) { color: var(--maroon); font-weight: 500; text-underline-offset: 3px; }
.article .lead-in { margin-bottom: 6px; font-weight: 500; color: var(--ink); }
.article ul { margin: 0 0 18px; }
.article li { position: relative; padding: 5px 0 5px 24px; }
.article li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 9px; height: 3px; background: var(--gold); }
.article-hero-img img { height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.article h2:first-of-type { margin-top: 36px; }
.article-cta { display: flex; align-items: flex-start; gap: 20px; margin-top: 48px; padding: clamp(20px, 3vw, 30px); border-radius: 20px; border: 1px solid var(--line); background: var(--paper); font-size: 1rem; line-height: 1.55; }
.article-cta > img { flex: none; width: 56px; height: 56px; }
.article .article-cta h2 { margin: 0 0 6px; font-size: var(--fs-h3); font-weight: 550; letter-spacing: -.015em; line-height: 1.25; }
.article .article-cta p { margin: 0; }
.article-cta .acts { margin-top: 16px; }
@media (max-width: 560px) { .article-cta { flex-direction: column; } }
.article-foot { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }

/* ---------- Contact page ---------- */
.contact-page { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px clamp(24px, 5vw, 88px); align-items: start; }
.reach-light { margin-top: 20px; border-top: 1.5px solid var(--gold); }
.reach-light a { display: block; padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 500; font-size: var(--fs-lede); letter-spacing: -.01em; text-decoration: none; overflow-wrap: anywhere; }
.reach-light a:hover { color: var(--maroon); }
.reach-light small { display: block; font-weight: 400; font-size: var(--fs-meta); letter-spacing: 0; color: var(--mute); }
.reach-note { margin-top: 20px; }
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: clamp(20px, 2.8vw, 36px); }
.form-card > p { margin-top: 6px; color: var(--mute); font-size: var(--fs-sm); }
.form-grid { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 6px; font-weight: 500; font-size: var(--fs-sm); color: var(--ink); }
.field .opt { font-weight: 400; color: var(--mute); }
.field input, .field textarea { width: 100%; padding: 10px 13px; border: 1px solid #D9D0C9; border-radius: 8px; background: var(--white); color: var(--ink); font-size: 16px; }
.field textarea { min-height: 116px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--maroon); box-shadow: 0 0 0 4px rgba(152, 24, 24, .12); }
.field ::placeholder { color: #A39A9B; }
.field [aria-invalid="true"] { border-color: var(--maroon); }
.field .err { display: none; margin-top: 6px; font-size: var(--fs-meta); font-weight: 500; color: var(--maroon); }
.field [aria-invalid="true"] ~ .err { display: block; }
.hp { position: absolute; left: -9999px; }
.form-foot { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form-foot .note { font-size: var(--fs-meta); color: var(--mute); }
.form-status { margin-top: 16px; }
.form-status:empty { display: none; }
.form-status.ok, .form-status.bad { padding: 14px 16px; border-radius: 10px; font-weight: 500; color: var(--ink); background: var(--white); border: 1.5px solid var(--gold); }
.form-status.bad { border-color: var(--maroon); }
.form-status a { color: var(--maroon); font-weight: 500; }
.map iframe { width: 100%; height: clamp(280px, 36vw, 400px); border: 0; border-radius: 12px; }
@media (max-width: 900px) { .contact-page { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Not found ---------- */
.lost { background: var(--dark-ground); color: var(--on-wine); padding-bottom: clamp(72px, 10vw, 130px); }
.lost .wrap { padding-top: clamp(56px, 8vw, 110px); }
.lost h1 { color: var(--od-head); max-width: 13em; text-wrap: balance; }
.lost p { margin-top: 18px; font-size: var(--fs-lede); max-width: 30em; }

/* ---------- Contact band (closes every page) ---------- */
.contact { background: var(--wine); color: var(--on-wine); padding-block: clamp(40px, 4.5vw, 60px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px clamp(24px, 5vw, 88px); align-items: center; }
.contact h2 { color: var(--od-head); max-width: 15em; }
.contact p { margin-top: 10px; }
.contact .btn { margin-top: 20px; }
.reach { border-top: 1.5px solid var(--gold); }
.reach a { display: flex; align-items: baseline; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--od-rule); color: var(--od-head); font-weight: 500; font-size: var(--fs-lede); letter-spacing: -.01em; text-decoration: none; overflow-wrap: anywhere; }
.reach a:hover { color: var(--od-accent); }
.reach small { flex: none; width: 4.4em; font-weight: 400; font-size: var(--fs-meta); letter-spacing: 0; color: var(--on-wine-soft); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: var(--footer-text); padding-block: 44px 24px; font-size: var(--fs-sm); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 36px clamp(24px, 5vw, 88px); }
.foot-brand { display: flex; align-items: center; gap: 14px; color: var(--white); text-decoration: none; }
.foot-brand img { height: 36px; width: auto; }
.foot-brand span { font-weight: 500; font-size: 15px; line-height: 1.2; letter-spacing: -.02em; }
.foot-brand + p { margin-top: 14px; max-width: 26em; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.foot-cols h3 { font-size: var(--fs-sm); font-weight: 500; letter-spacing: 0; line-height: 1.4; color: var(--white); margin-bottom: 10px; }
.foot-cols li { padding: 3px 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.foot-links { display: flex; gap: 24px; }
.foot-end { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: var(--fs-meta); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .foot-cols { grid-template-columns: 1fr 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; }
}

/* Hide Flutter debug canvas when running via 'flutter run -d chrome' */
flt-glass-pane, flutter-view, flt-renderer, flt-scene-host {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  top: -9999px !important;
  left: -9999px !important;
  z-index: -9999 !important;
}

html, body {
  overflow-x: hidden !important;
  overflow-y: auto !important;
}
