/* ==========================================================================
   Depauw Engineering — demo by Corvana Studio
   Corvana's system (structure, type rhythm, motion) dressed as a classic-car
   atelier: British racing green, cream paper, one brass accent, serif titles.
   ========================================================================== */

:root {
  /* Colours */
  --c-night: #0c1812;        /* deepest green-black: footer, shadows */
  --c-green: #13261d;        /* British racing green, page dark */
  --c-green-2: #1a3127;      /* raised surfaces on dark */
  --c-green-3: #24412f;
  --c-cream: #f3ecdd;        /* paper sections */
  --c-cream-2: #e8dec8;
  --c-paper: #fbf7ee;
  --c-ivory: #f1e9d8;        /* text on dark */
  --c-sage: #b4b39f;         /* muted text on dark */
  --c-moss: #56614f;         /* muted text on cream */
  --c-brass: #c4a064;        /* brass accent */
  --c-brass-2: #d6b67e;
  --c-brass-deep: #8a6630;   /* brass as text on cream (AA) */
  --c-error: #b3412f;

  /* Theme slots (dark by default, .is-light sections override) */
  --fg: var(--c-ivory);
  --muted: var(--c-sage);
  --line: rgba(241, 233, 216, .13);
  --line-2: rgba(241, 233, 216, .28);
  --accent-fg: var(--c-brass);
  --surface: var(--c-green-2);
  --btn-bg: var(--c-brass);
  --btn-bg-hover: var(--c-brass-2);
  --btn-fg: var(--c-green);

  /* Type */
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Cormorant Garamond', 'Cormorant', Garamond, 'Times New Roman', Georgia, serif;
  --text-caption: 12px;
  --text-body-sm: 14px;
  --text-body: 16px;
  --text-sub: 20px;

  /* Space */
  --s-4: 4px; --s-8: 8px; --s-10: 10px; --s-12: 12px; --s-16: 16px; --s-20: 20px;
  --s-24: 24px; --s-28: 28px; --s-40: 40px; --s-60: 60px; --s-64: 64px;
  --gutter: 20px;
  --page-max: 1200px;
  --section-pad: 96px;
  --nav-h: 68px;

  /* Shape */
  --radius: 3px;
  --radius-pill: 100px;
  --shadow-md: rgba(5, 12, 8, .35) 0 18px 40px -22px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}
@media (min-width: 768px) { :root { --gutter: 40px; --section-pad: 136px; --nav-h: 78px; } }
@media (min-width: 1280px) { :root { --gutter: 64px; --section-pad: 160px; } }

.is-light, .craft, .contact {
  --fg: var(--c-green);
  --muted: var(--c-moss);
  --line: rgba(19, 38, 29, .14);
  --line-2: rgba(19, 38, 29, .3);
  --accent-fg: var(--c-brass-deep);
  --surface: var(--c-paper);
  --btn-bg: var(--c-green);
  --btn-bg-hover: var(--c-green-3);
  --btn-fg: var(--c-ivory);
  color: var(--fg);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--c-green); color: var(--fg);
  font-family: var(--font-sans); font-size: var(--text-body); line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip;
}
h1, h2, h3, h4, p, ul, ol, figure, table, dl, dd { margin: 0; }
h1, h2, h3, h4 { font-weight: 500; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--c-brass); color: var(--c-green); }
:focus-visible { outline: 2px solid var(--accent-fg); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; top: 12px; left: 12px; z-index: 100; padding: 12px 18px; border-radius: var(--radius-pill);
  background: var(--c-brass); color: var(--c-green); transform: translateY(-160%); transition: transform .3s var(--ease-out);
}
.skip:focus-visible { transform: none; }
.wrap { width: 100%; max-width: calc(var(--page-max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type ---------- */
.caption { font-size: var(--text-caption); line-height: 1.35; letter-spacing: .06em; color: var(--muted); }
.t-sub { font-size: var(--text-sub); line-height: 1.3; font-weight: 500; }
.t-heading, .t-display { font-family: var(--font-serif); font-weight: 500; letter-spacing: -.01em; }
.t-heading { font-size: 40px; line-height: 1.04; }
.t-display { font-size: 50px; line-height: 1; }
.t-display em, .t-heading em { font-style: italic; color: var(--accent-fg); }
@media (min-width: 768px) {
  .t-heading { font-size: 60px; }
  .t-display { font-size: 84px; }
}
@media (min-width: 1280px) { .t-display { font-size: 108px; } .t-heading { font-size: 66px; } }
.ash { color: var(--muted); }
.label {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: var(--s-24);
  font-size: var(--text-caption); letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.label__n { font-family: var(--font-serif); font-style: italic; font-size: 20px; letter-spacing: .04em; text-transform: none; color: var(--accent-fg); }
.label__n::after { content: ""; display: inline-block; width: 32px; height: 1px; background: var(--line-2); margin-left: 12px; vertical-align: middle; }

/* ---------- Status ---------- */
.status { display: inline-flex; align-items: center; gap: var(--s-10); font-size: var(--text-body-sm); color: var(--fg); letter-spacing: .02em; }
.dot { position: relative; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--c-brass); }
.dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; opacity: .5; animation: pulse 2.8s var(--ease-out) infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .5; } 70%, 100% { transform: scale(2.6); opacity: 0; } }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 6px 22px; border-radius: var(--radius-pill);
  font-size: var(--text-body-sm); font-weight: 500; line-height: 1.2; letter-spacing: .02em; white-space: nowrap;
  transition: background-color .35s var(--ease-out), color .35s var(--ease-out), transform .2s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn--fill { background: var(--btn-bg); color: var(--btn-fg); --btn-ink: var(--btn-fg); }
.btn--ghost { color: var(--fg); box-shadow: inset 0 0 0 1px var(--line-2); --btn-ink: var(--fg); background: rgba(12, 24, 18, .28); }
.btn--lg { min-height: 54px; padding: 6px 28px; font-size: 15px; }
.btn--block { width: 100%; }
.btn:active { transform: scale(.97); }
.btn__icon { display: inline-grid; place-items: center; color: var(--btn-ink); }
@media (hover: hover) {
  .btn--fill:hover { background: var(--btn-bg-hover); }
  .btn--ghost:hover { background: rgba(241, 233, 216, .1); }
}
/* Label roll on hover (from Corvana): real text stays for screen readers, two painted copies roll up. */
.btn__label { position: relative; display: block; overflow: hidden; padding-block: 2px; color: transparent; }
.btn__label::before, .btn__label::after {
  content: attr(data-text); position: absolute; left: 0; right: 0; padding-block: 2px; text-align: center;
  color: var(--btn-ink); transition: transform .55s var(--ease-out);
}
.btn__label::before { top: 0; }
.btn__label::after { top: 100%; }
@media (hover: hover) {
  .btn:hover .btn__label::before, .btn:hover .btn__label::after { transform: translateY(-100%); }
}
@media (forced-colors: active) {
  .btn__label { color: inherit; }
  .btn__label::before, .btn__label::after { display: none; }
}

.pill {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 4px 14px;
  font-size: var(--text-body-sm); letter-spacing: .03em; color: var(--fg);
}
.pill::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 10px; height: 1px; background: var(--c-brass);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out);
}
@media (hover: hover) { .pill:hover::after { transform: scaleX(1); transform-origin: left; } }

.link {
  position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-align: left;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 10px) / 100% 1px no-repeat;
  transition: background-size .45s var(--ease-out), color .3s;
}
@media (hover: hover) {
  .link:hover { background-size: 0 1px; background-position: 100% calc(100% - 10px); color: var(--accent-fg); }
}
.link--arrow::after { content: "→"; transition: transform .35s var(--ease-out); }
@media (hover: hover) { .link--arrow:hover::after { transform: translateX(4px); } }

/* ---------- Language switch ---------- */
.lang { display: inline-flex; align-items: center; gap: 2px; }
.lang__link {
  display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 8px;
  border-radius: var(--radius-pill); font-size: 13px; letter-spacing: .08em; color: var(--muted); transition: color .3s;
}
.lang__link[aria-current="true"] { color: var(--fg); box-shadow: inset 0 0 0 1px var(--line-2); }
@media (hover: hover) { .lang__link:hover { color: var(--accent-fg); } }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: calc(var(--nav-h) + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top); color: var(--c-ivory);
  transition: transform .5s var(--ease-out), background-color .4s, box-shadow .4s;
}
.nav.is-solid { background: rgba(19, 38, 29, .95); box-shadow: 0 1px 0 rgba(196, 160, 100, .22); }
@supports (backdrop-filter: blur(8px)) { .nav.is-solid { background: rgba(19, 38, 29, .84); backdrop-filter: blur(12px); } }
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-16); }
.brand { display: inline-flex; align-items: center; gap: var(--s-12); min-height: 44px; }
.brand__mark { display: block; width: 40px; height: 40px; color: var(--c-brass); transition: transform .8s var(--ease-out); }
@media (hover: hover) { .brand:hover .brand__mark { transform: rotate(-12deg); } }
.brand__name { display: grid; font-family: var(--font-serif); font-weight: 600; font-size: 22px; line-height: 1; letter-spacing: .01em; }
.brand__sub { font-family: var(--font-sans); font-weight: 400; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--c-sage); margin-top: 5px; }
.nav__links { display: none; }
.nav__end { display: flex; align-items: center; gap: var(--s-8); }
.nav__end > .lang { display: none; }
.nav__cta { display: none; }
.menu-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-pill); box-shadow: inset 0 0 0 1px var(--line-2); }
.menu-btn__bars { position: relative; width: 16px; height: 8px; }
.menu-btn__bars i { position: absolute; left: 0; right: 0; height: 1.5px; background: var(--c-ivory); transition: transform .5s var(--ease-out), top .5s var(--ease-out); }
.menu-btn__bars i:first-child { top: 0; }
.menu-btn__bars i:last-child { top: 7px; }
.menu-btn[aria-expanded="true"] .menu-btn__bars i:first-child { top: 3.5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars i:last-child { top: 3.5px; transform: rotate(-45deg); }
@media (max-width: 380px) { .brand__name { font-size: 19px; } .brand__mark { width: 34px; height: 34px; } }
@media (min-width: 600px) { .nav__end > .lang { display: inline-flex; } }
@media (min-width: 900px) { .nav__cta { display: inline-flex; } }
@media (min-width: 1100px) {
  .nav__links { display: flex; gap: 4px; }
  .menu-btn { display: none; }
}

.menu {
  position: fixed; inset: 0; z-index: 40; background: var(--c-green); color: var(--c-ivory);
  padding-top: calc(var(--nav-h) + env(safe-area-inset-top)); overflow-y: auto;
}
.menu__inner { min-height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-28); padding-block: var(--s-28) calc(var(--s-28) + env(safe-area-inset-bottom)); }
.menu__links { display: flex; flex-direction: column; }
.menu__link {
  display: flex; align-items: baseline; gap: 16px; min-height: 64px; padding-top: 16px;
  font-family: var(--font-serif); font-weight: 500; font-size: 38px; line-height: 1;
  border-bottom: 1px solid var(--line);
}
.menu__link .caption { min-width: 2.4em; color: var(--c-brass); font-family: var(--font-serif); font-style: italic; font-size: 18px; }
.menu__foot { display: grid; gap: var(--s-20); }
.menu__row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-12); flex-wrap: wrap; }
html.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 580px; color: var(--c-ivory);
  display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -1; background: var(--c-night); }
.hero__media picture, .hero__img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__img { object-fit: cover; object-position: 50% 45%; transform-origin: 50% 60%; }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 24, 18, .55) 0%, rgba(12, 24, 18, .2) 32%, rgba(12, 24, 18, .7) 64%, rgba(19, 38, 29, .98) 100%),
    linear-gradient(90deg, rgba(12, 24, 18, .7) 0%, rgba(12, 24, 18, .08) 75%);
}
.hero__content { display: grid; gap: var(--s-20); justify-items: start; padding-bottom: var(--s-28); }
.hero__title { max-width: 17ch; }
.hero__title em { color: var(--c-brass); }
.hero__lead { max-width: 46ch; color: #e2dac8; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s-10); }
.hero__meta {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-16); flex-wrap: wrap;
  padding-block: var(--s-16) calc(var(--s-20) + env(safe-area-inset-bottom)); border-top: 1px solid var(--line);
}
.hero__place { display: none; }
@media (max-width: 400px) { .hero__content .actions .btn { flex: 1 1 auto; padding-inline: 16px; } }
@media (min-width: 768px) {
  .hero__content { padding-bottom: var(--s-40); gap: var(--s-24); }
  .hero__lead { font-size: 18px; }
  .hero__place { display: block; }
}
@media (max-height: 640px) and (max-width: 767px) { .hero__content { gap: 14px; padding-bottom: 14px; } .hero__meta { padding-block: 8px calc(8px + env(safe-area-inset-bottom)); } .hero .t-display { font-size: 42px; } }

/* Google rating */
.rating { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.rating__score { font-family: var(--font-serif); font-weight: 600; font-size: 28px; line-height: 1; }
.rating__max { color: var(--muted); font-size: .6em; }
.stars {
  --rate: 4.5; position: relative; display: inline-block; flex: none; width: 80px; height: 15px;
  background: linear-gradient(90deg, var(--c-brass) calc(var(--rate) / 5 * 100%), rgba(241, 233, 216, .22) 0);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 15'%3E%3Cpath d='M8 0l2.35 4.76 5.25.77-3.8 3.7.9 5.23L8 11.99l-4.7 2.47.9-5.23L.4 5.53l5.25-.77z'/%3E%3C/svg%3E") 0 0 / 16px 15px repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 15'%3E%3Cpath d='M8 0l2.35 4.76 5.25.77-3.8 3.7.9 5.23L8 11.99l-4.7 2.47.9-5.23L.4 5.53l5.25-.77z'/%3E%3C/svg%3E") 0 0 / 16px 15px repeat-x;
}
.rating .caption { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
@media (hover: hover) { .rating:hover .caption { color: var(--c-brass); } }

/* Dust cover (entrance): a green cloth with a brass edge, drawn off the car */
.cover { position: absolute; inset: 0; z-index: 1; pointer-events: none; display: none; }
.motion .cover { display: block; }
.cover__sheet {
  position: absolute; inset: 0; display: grid; place-items: center; will-change: transform;
  background:
    radial-gradient(120% 80% at 50% 40%, rgba(255, 255, 255, .05), transparent 60%),
    repeating-linear-gradient(100deg, rgba(0, 0, 0, .07) 0 2px, transparent 2px 7px),
    linear-gradient(180deg, #1a3328, #10211a);
}
.cover__sheet::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px;
  background: linear-gradient(180deg, var(--c-brass) 0 2px, transparent 2px 6px, rgba(196, 160, 100, .5) 6px 7px, transparent 7px);
}
.cover__plate {
  display: grid; justify-items: center; gap: 10px; padding: 26px 34px;
  border: 1px solid rgba(196, 160, 100, .5); outline: 1px solid rgba(196, 160, 100, .22); outline-offset: 5px;
  font-family: var(--font-serif); font-size: 22px; letter-spacing: .06em; color: var(--c-ivory);
}
.cover__mono { font-style: italic; font-size: 40px; line-height: 1; color: var(--c-brass); }
.cover__city { font-family: var(--font-sans); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--c-sage); }
.cover__light { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--c-brass); transform: scaleX(0); opacity: 0; }

/* Split words + masked lines */
.wm { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.wi { display: inline-block; will-change: transform; }
.line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.line__in { display: inline-block; will-change: transform; }

/* Motion start states (only when JS + motion are on) */
.motion [data-enter], .motion [data-enter-nav] { opacity: 0; }
.motion [data-enter-line], .motion [data-contact-line] { transform: translateY(115%); }
.motion [data-reveal] { opacity: 0; }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: var(--section-pad); }
.section__head { display: grid; gap: var(--s-16); max-width: 760px; margin-bottom: var(--s-60); }
.section__head .label { margin-bottom: 0; }
.section__lead { max-width: 52ch; }
.frame { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--c-green-2); box-shadow: var(--shadow-md); }

/* I Savoir-faire (cream paper) */
.craft { background: var(--c-cream); }
.craft::before { /* fine brass rule at the top of the paper */
  content: ""; position: absolute; left: var(--gutter); right: var(--gutter); top: 0; height: 1px; background: rgba(138, 102, 48, .35);
}
.statement { max-width: 24ch; color: var(--c-green); }
.craft__grid { display: grid; gap: var(--s-40); margin-top: var(--s-60); }
.craft__media { aspect-ratio: 4 / 5; max-height: 660px; width: 100%; background: var(--c-cream-2); }
.craft__media img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; }
.craft__main { min-width: 0; }
.craft__lead { max-width: 40ch; font-family: var(--font-serif); font-size: 26px; line-height: 1.3; font-style: italic; }
.points { margin-top: var(--s-28); }
.point { position: relative; display: grid; gap: 4px; padding: var(--s-20) 0 var(--s-20) var(--s-28); }
.point::before { content: ""; position: absolute; left: 2px; top: 31px; width: 8px; height: 8px; border: 1px solid var(--c-brass-deep); transform: rotate(45deg); }
.point::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); transform-origin: left; }
.motion .point::after { transform: scaleX(var(--line, 0)); }
.point .t-sub { font-family: var(--font-serif); font-size: 26px; font-weight: 600; line-height: 1.15; }
.origins { margin-top: var(--s-40); padding: var(--s-20) var(--s-24); border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--c-paper); }
.origins__label { text-transform: uppercase; letter-spacing: .2em; margin-bottom: var(--s-10); }
.origins__list { display: flex; flex-wrap: wrap; gap: 4px 18px; font-family: var(--font-serif); font-style: italic; font-size: 26px; line-height: 1.3; }
.origins__list li + li::before { content: "·"; margin-right: 18px; color: var(--c-brass-deep); font-style: normal; }
@media (min-width: 900px) {
  .craft__grid { grid-template-columns: 5fr 6fr; gap: var(--s-64); align-items: start; }
  .craft__media { position: sticky; top: calc(var(--nav-h) + 32px); }
  .craft__main { padding-top: var(--s-20); }
  .craft__lead { font-size: 30px; }
}

/* II Services (green) */
.services { background: var(--c-green); }
.cards { display: grid; gap: var(--s-20); }
.card {
  position: relative; display: grid; grid-template-rows: auto 1fr; overflow: hidden; border-radius: var(--radius);
  background: var(--c-green-2); border: 1px solid rgba(196, 160, 100, .18);
}
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--c-night); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 50%; transition: transform 1.2s var(--ease-out); filter: saturate(.8) sepia(.08); }
.card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 24, 18, 0) 55%, rgba(26, 49, 39, .92)); }
.card__body { position: relative; display: grid; align-content: start; gap: var(--s-10); padding: var(--s-20) var(--s-24) var(--s-28); }
.card__n { font-family: var(--font-serif); font-style: italic; font-size: 22px; line-height: 1; color: var(--c-brass); }
.card__t { font-family: var(--font-serif); font-weight: 600; font-size: 30px; line-height: 1.08; }
.card__d { max-width: 40ch; }
.card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--c-brass); z-index: 2;
  transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease-out);
}
@media (hover: hover) {
  .card:hover::before { transform: scaleX(1); }
  .card:hover .card__media img { transform: scale(1.05); }
}
.services__other {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-8) var(--s-24);
  margin-top: var(--s-40); padding-top: var(--s-24); border-top: 1px solid var(--line);
}
.services__other p { font-family: var(--font-serif); font-style: italic; font-size: 24px; line-height: 1.3; max-width: 40ch; }
.services__other .link { font-size: var(--text-sub); font-weight: 500; color: var(--c-brass); }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 700px) and (max-width: 999px) { .card__t { font-size: 26px; } .card__body { padding-inline: var(--s-20); } }

/* III Workshop (dark band over a photo) */
.workshop { overflow: hidden; isolation: isolate; background: var(--c-night); }
.workshop__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--c-night); }
.workshop__media img { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; object-fit: cover; filter: saturate(.7); }
.workshop__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(12, 24, 18, .95) 0%, rgba(12, 24, 18, .84) 50%, rgba(12, 24, 18, .6) 100%); }
.workshop__head { display: grid; justify-items: start; gap: var(--s-20); }
.workshop__head .label { margin-bottom: 0; }
.workshop__title { max-width: 13ch; }
.workshop__lead { max-width: 46ch; color: #e2dac8; font-size: 18px; }
.steps { display: grid; gap: var(--s-28); margin-top: var(--s-60); counter-reset: step; }
.step { display: grid; align-content: start; gap: var(--s-8); padding-top: var(--s-20); border-top: 1px solid var(--line-2); }
.step__n { font-style: italic; color: var(--c-brass); font-size: 44px; }
.step .t-sub { font-family: var(--font-serif); font-size: 26px; font-weight: 600; }
.step__d { max-width: 34ch; color: #d9d1bf; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s-40); } .step__n { font-size: 56px; } }
.facts { display: grid; margin-top: var(--s-60); }
.fact { position: relative; display: grid; grid-template-columns: 1fr; gap: var(--s-8); padding-block: var(--s-24); }
.fact::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line-2); transform-origin: left; }
.motion .fact::after { transform: scaleX(var(--line, 0)); }
.fact__n { color: var(--c-brass); font-size: 64px; line-height: 1; }
.fact__unit { font-size: .45em; color: var(--c-sage); margin-left: 4px; }
.fact__icon { line-height: 0; }
.fact .t-sub { font-family: var(--font-serif); font-size: 26px; font-weight: 600; margin-bottom: 2px; }
.fact__d { color: #d9d1bf; }
.fact .link { margin-top: 2px; }
@media (min-width: 640px) { .fact { grid-template-columns: 170px 1fr; gap: var(--s-24); align-items: center; } }
@media (min-width: 1000px) { .facts { grid-template-columns: 1fr 1fr; column-gap: var(--s-64); } }

/* IV Contact (cream paper) */
.contact { overflow: hidden; isolation: isolate; background: var(--c-cream); }
.contact__cover {
  position: absolute; inset: 0; z-index: 3; pointer-events: none; display: none;
  background:
    repeating-linear-gradient(100deg, rgba(0, 0, 0, .07) 0 2px, transparent 2px 7px),
    linear-gradient(180deg, #1a3328, #10211a);
}
.contact__cover::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: linear-gradient(180deg, var(--c-brass) 0 2px, transparent 2px 6px, rgba(196, 160, 100, .5) 6px 7px, transparent 7px); }
.motion .contact__cover { display: block; }
.contact__grid { display: grid; gap: var(--s-40); }
.contact__intro { display: grid; gap: var(--s-24); align-content: start; }
.contact__intro .label { margin-bottom: 0; }
@media (min-width: 900px) { .contact__intro .t-display { font-size: clamp(52px, 5.2vw, 80px); } }
.contact__lead { max-width: 42ch; font-size: 17px; }
.contact__list { display: grid; gap: var(--s-16); padding-block: var(--s-8); }
.contact__list > div { display: grid; gap: 2px; }
.contact__list dt { text-transform: uppercase; letter-spacing: .2em; }
.contact__list dd { font-family: var(--font-serif); font-size: 24px; line-height: 1.25; }
.contact__list .link { min-height: 40px; background-position: 0 calc(100% - 6px); }
@media (hover: hover) { .contact__list .link:hover { background-position: 100% calc(100% - 6px); } }
.contact__card { background: var(--c-paper); border: 1px solid var(--line-2); border-radius: var(--radius); padding: var(--s-28) var(--s-20); box-shadow: var(--shadow-md); }
.contact__formtitle { font-family: var(--font-serif); font-size: 30px; font-weight: 600; line-height: 1.1; margin-bottom: var(--s-24); padding-bottom: var(--s-16); border-bottom: 1px solid var(--line); }
@media (min-width: 768px) { .contact__card { padding: var(--s-40); } }
@media (min-width: 900px) {
  .contact__grid { grid-template-columns: 5fr 6fr; gap: var(--s-64); align-items: start; }
}

/* Map (drawn, no third-party embed) */
.map { display: grid; color: var(--c-ivory); max-width: 560px; background: var(--c-green-2); }
.map__art {
  position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden;
  background:
    linear-gradient(rgba(241, 233, 216, .04) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(241, 233, 216, .04) 1px, transparent 1px) 0 0 / 22px 22px,
    #172d23;
}
.map__road { position: absolute; display: block; background: #2c4638; box-shadow: 0 0 0 1px rgba(0, 0, 0, .2); }
.map__road--a { left: -10%; right: -10%; top: 58%; height: 13px; transform: rotate(-8deg); }
.map__road--b { top: -10%; bottom: -10%; left: 46%; width: 9px; transform: rotate(14deg); }
.map__road--c { left: -10%; right: 40%; top: 26%; height: 6px; transform: rotate(18deg); }
.map__road--d { top: 30%; bottom: -10%; left: 76%; width: 6px; transform: rotate(-24deg); }
.map__park { position: absolute; display: block; left: 6%; top: 64%; width: 26%; height: 30%; border-radius: 40% 60% 50% 40%; background: rgba(150, 190, 120, .12); }
.map__pin { position: absolute; left: 50%; top: 50%; translate: -50% -100%; color: var(--c-brass); filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .5)); z-index: 2; }
.map__pulse { position: absolute; left: 50%; top: 50%; width: 18px; height: 8px; translate: -50% -50%; border-radius: 50%; background: rgba(196, 160, 100, .45); }
.map__district { position: absolute; left: 14px; top: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--c-sage); }
.map__foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-8) var(--s-16); padding: var(--s-16) var(--s-20); border-top: 1px solid rgba(196, 160, 100, .25); }
.map__foot > span:first-child { display: grid; gap: 2px; }
.map__foot .caption { color: var(--c-sage); }
.map__name { font-family: var(--font-serif); font-size: 20px; font-weight: 600; }
.map__open { color: var(--c-brass) !important; white-space: nowrap; }
@media (hover: hover) { .map:hover .map__pin { translate: -50% -112%; transition: translate .5s var(--ease-out); } }

/* Form (from Corvana) */
.form { display: grid; gap: var(--s-24); }
.field { display: grid; gap: var(--s-8); min-width: 0; }
.field label { font-size: var(--text-body-sm); color: var(--fg); font-weight: 500; }
.field__opt { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--radius);
  background: #fff; color: var(--c-green); font: inherit; font-size: 16px; transition: border-color .3s, box-shadow .3s;
}
.field input::placeholder, .field textarea::placeholder { color: #7f8678; }
.field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--c-brass-deep); box-shadow: 0 0 0 3px rgba(196, 160, 100, .3); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--c-error); }
.field__hint { font-size: var(--text-caption); color: var(--muted); }
.field__error { display: flex; align-items: center; gap: 8px; font-size: var(--text-body-sm); color: var(--c-error); }
.field__error::before {
  content: "!"; display: inline-grid; place-items: center; flex: none; width: 16px; height: 16px; border-radius: 50%;
  background: var(--c-error); color: #fff; font-size: 11px; font-weight: 700; line-height: 1;
}
.form__foot { display: grid; gap: var(--s-12); margin-top: var(--s-4); }
.form__submit { width: 100%; }
.form__submit:disabled { opacity: .5; cursor: not-allowed; }
.form__status { font-size: var(--text-body-sm); color: var(--c-error); }
.form__status:empty { display: none; }
.form-success { display: grid; gap: var(--s-16); justify-items: start; }
.form-success:focus { outline: none; }
.form-success__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--c-green); color: var(--c-brass); }
.form-success__demo { padding: 10px 14px; border-radius: var(--radius); background: var(--c-cream); box-shadow: inset 0 0 0 1px var(--line); line-height: 1.5; color: var(--fg); }

/* ---------- Footer ---------- */
.footer { background: var(--c-night); color: var(--c-ivory); font-size: var(--text-body-sm); padding-top: var(--s-40); }
.footer__top { display: grid; gap: var(--s-20); padding-bottom: var(--s-28); border-bottom: 1px solid var(--line); }
.footer__brand { display: grid; gap: 6px; max-width: 52ch; }
.footer__name { font-family: var(--font-serif); font-weight: 600; font-size: 34px; line-height: 1; }
.footer__top .btn { justify-self: start; }
.footer__cols { display: grid; grid-template-columns: 1fr; gap: var(--s-24); padding-block: var(--s-28); }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.footer__col .caption { margin-bottom: var(--s-8); text-transform: uppercase; letter-spacing: .2em; }
.footer__col .link { min-height: 40px; background-position: 0 calc(100% - 8px); }
.footer__col .link--multi { display: block; background: none; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-2); line-height: 1.7; }
.footer__col.lang { flex-direction: row; }
.footer__bottom { display: grid; gap: 6px; padding-block: var(--s-20); border-top: 1px solid var(--line); font-size: var(--text-caption); color: #8e9586; }
.demo-band { background: #08110c; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.demo-band p { padding-block: 10px; font-size: 12px; letter-spacing: .06em; color: #9aa092; text-align: center; }
.demo-band a { color: var(--c-ivory); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); display: inline-block; padding-block: 6px; }
@media (hover: hover) { .demo-band a:hover { color: var(--c-brass); } }
@media (min-width: 640px) { .footer__cols { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) {
  .footer__top { grid-template-columns: 1fr auto; align-items: center; gap: var(--s-28); }
  .footer__cols { grid-template-columns: 1fr 1fr 1.2fr auto; }
  .footer__col.lang { align-self: start; }
}

/* ---------- Mobile action dock ---------- */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); color: var(--c-ivory);
  background: rgba(12, 24, 18, .95); border-top: 1px solid rgba(196, 160, 100, .25);
  transform: translateY(110%); transition: transform .5s var(--ease-out);
}
.dock.is-visible { transform: none; }
.dock .btn { width: 100%; }
html.menu-open .dock { transform: translateY(110%); }
@media (max-width: 899px) { body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); } }
@media (min-width: 900px) { .dock { display: none; } }

/* ---------- 404 ---------- */
.notfound { min-height: 80vh; display: grid; align-items: center; padding-top: calc(var(--nav-h) + 60px); padding-bottom: var(--section-pad); }
.notfound .wrap { display: grid; gap: var(--s-24); justify-items: start; }
.notfound__text { max-width: 44ch; }

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