/* ==========================================================================
   Alpenmetzg AG — Premium Swiss Corporate Website
   Design system: dark green, graphite, silver, white. Light + dark.
   Hand-written CSS, no frameworks.
   ========================================================================== */

/* ---------------------------------------------------------- Design tokens */
:root {
  --green-900: #14271f;
  --green-800: #1c3a2c;
  --green-700: #25503c;
  --green-600: #2f6349;
  --green-500: #3c7c5b;

  --graphite-900: #1a1d1c;
  --graphite-700: #33403a;
  --graphite-500: #5d6b64;

  --silver-400: #aeb7b2;
  --silver-300: #c9d0cb;
  --silver-200: #e4e8e5;
  --silver-100: #f1f4f1;

  --white: #ffffff;
  --paper: #fbfcfb;

  /* Semantic — light default */
  --bg: var(--paper);
  --bg-elev: var(--white);
  --bg-muted: var(--silver-100);
  --border: rgba(26, 29, 28, 0.12);
  --border-strong: rgba(26, 29, 28, 0.2);

  --text: var(--graphite-900);
  --text-soft: var(--graphite-500);
  --on-brand: #ffffff;

  --brand: var(--green-700);
  --brand-strong: var(--green-800);
  --accent: var(--green-500);

  --header-bg: rgba(251, 252, 251, 0.8);

  --shadow-sm: 0 1px 2px rgba(20, 39, 31, 0.06), 0 2px 8px rgba(20, 39, 31, 0.05);
  --shadow-md: 0 10px 30px rgba(20, 39, 31, 0.1);
  --shadow-lg: 0 26px 60px rgba(20, 39, 31, 0.16);

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;

  --container: 1200px;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 22px;
  --header-h: 74px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
  --bg: #0e1714;
  --bg-elev: #14201b;
  --bg-muted: #18241f;
  --border: rgba(228, 232, 229, 0.12);
  --border-strong: rgba(228, 232, 229, 0.22);

  --text: #eef2ef;
  --text-soft: #9fb0a7;
  --on-brand: #0e1714;

  --brand: #5fae84;
  --brand-strong: #79c79c;
  --accent: #79c79c;

  --header-bg: rgba(14, 23, 20, 0.78);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 26px 60px rgba(0, 0, 0, 0.55);
}

/* ---------------------------------------------------------------- Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background .4s var(--ease), color .4s var(--ease);
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

/* ---------------------------------------------------------------- Layout */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: clamp(56px, 9vw, 120px); }
.section--alt { background: var(--bg-muted); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }

.grid { display: grid; gap: 24px; }
.grid--gap { gap: 28px; }
.grid--gap-lg { gap: clamp(32px, 5vw, 72px); }
.items-center { align-items: center; }
@media (min-width: 760px) {
  .grid--2 { grid-template-columns: 1fr 1fr; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 500px) and (max-width: 759px) {
  .grid--3, .grid--4 { grid-template-columns: 1fr 1fr; }
}

.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }

/* ---------------------------------------------------------------- Type bits */
.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 16px;
}
.eyebrow--light { color: rgba(255, 255, 255, 0.85); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text-soft); margin-bottom: 18px; line-height: 1.55; }
.section__title { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin-bottom: 18px; }
.section__sub { color: var(--text-soft); font-size: 1.08rem; max-width: 60ch; }
.section__head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section__head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; flex-wrap: wrap; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--brand);
  margin-top: 10px;
}
.link-arrow span { transition: transform .3s var(--ease); }
.link-arrow:hover span { transform: translateX(5px); }

.prose p { margin-bottom: 18px; max-width: 70ch; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 40px 0 16px; }
.prose h3 { font-size: 1.25rem; margin: 28px 0 12px; }
.prose ul.bullets { margin: 0 0 18px; padding-left: 0; }
.prose ul.bullets li { position: relative; padding-left: 26px; margin-bottom: 10px; max-width: 70ch; }
.prose ul.bullets li::before {
  content: ""; position: absolute; left: 4px; top: 10px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--brand);
}
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 600; font-size: .98rem; letter-spacing: .01em;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
  border: 1px solid transparent; will-change: transform;
}
.btn--sm { padding: 10px 18px; font-size: .9rem; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--brand); color: var(--on-brand); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--brand-strong); box-shadow: var(--shadow-md); }
.btn--outline { border-color: var(--border-strong); color: var(--text); }
.btn--outline:hover { border-color: var(--brand); color: var(--brand); }
.btn--ghost { color: var(--text-soft); }
.btn--ghost:hover { color: var(--text); }
.btn--light { background: var(--white); color: var(--green-900); }
.btn--light:hover { background: var(--silver-100); }
.btn--ghost-light { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.btn--ghost-light:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }

/* ---------------------------------------------------------------- Header */
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--brand); color: var(--on-brand);
  padding: 10px 16px; border-radius: 8px; transition: top .2s;
}
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky; top: 0; z-index: 90;
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.site-header__inner { display: flex; align-items: center; gap: 18px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand__logo { height: 30px; width: auto; }
.brand__logo--dark { display: none; }
[data-theme="dark"] .brand__logo--light { display: none; }
[data-theme="dark"] .brand__logo--dark { display: block; }

.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; gap: 2px; }
.primary-nav a {
  display: inline-block; padding: 9px 11px; border-radius: 8px;
  font-size: .9rem; font-weight: 500; color: var(--text-soft);
  white-space: nowrap; transition: color .2s, background .2s;
}
.primary-nav a:hover { color: var(--text); background: var(--bg-muted); }
.primary-nav a.active { color: var(--brand); font-weight: 600; }

.header-tools { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-soft); transition: color .2s, background .2s;
}
.icon-btn:hover { color: var(--text); background: var(--bg-muted); }
.icon-btn svg { width: 20px; height: 20px; }

.i-moon { display: none; }
[data-theme="dark"] .i-sun { display: none; }
[data-theme="dark"] .i-moon { display: block; }

/* Language menu */
.lang { position: relative; }
.lang__btn { width: auto; gap: 6px; padding-inline: 10px; }
.lang__btn span { font-size: .82rem; font-weight: 600; }
.lang__menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow-md);
  min-width: 160px; padding: 6px; opacity: 0; visibility: hidden;
  transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility .2s;
}
.lang[data-open="true"] .lang__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang__menu a { display: block; padding: 9px 12px; border-radius: 8px; font-size: .92rem; }
.lang__menu a:hover { background: var(--bg-muted); }
.lang__menu a[aria-current="true"] { color: var(--brand); font-weight: 600; }

.header-cta { flex-shrink: 0; }
.menu-btn { display: none; flex-direction: column; gap: 5px; }
.menu-btn span { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s, opacity .3s; }

@media (max-width: 1000px) {
  .primary-nav, .header-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .primary-nav { margin-left: 0; }
  .header-tools { margin-left: auto; }
}

/* Mobile nav */
.mobile-nav {
  position: fixed; inset: 0; z-index: 95;
  background: var(--bg); padding: calc(var(--header-h) + 24px) 24px 40px;
  transform: translateY(-100%); transition: transform .45s var(--ease);
  overflow-y: auto; visibility: hidden;
}
.mobile-nav.open { transform: translateY(0); visibility: visible; }
.mobile-nav__inner ul { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav__inner a {
  display: block; padding: 14px 8px; font-family: var(--font-serif);
  font-size: 1.5rem; border-bottom: 1px solid var(--border);
}
.mobile-nav__inner a.active { color: var(--brand); }
.mobile-nav__langs { display: flex; gap: 10px; margin-top: 28px; }
.mobile-nav__langs a {
  border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 18px; font-family: var(--font-sans); font-size: .9rem;
}
.mobile-nav__langs a[aria-current="true"] { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }

/* ---------------------------------------------------------------- Hero */
.hero { position: relative; min-height: clamp(560px, 86vh, 860px); display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(14, 39, 31, 0.86) 0%, rgba(14, 39, 31, 0.55) 45%, rgba(14, 39, 31, 0.2) 100%);
}
.hero__inner { padding-block: 80px; }
.hero__content { max-width: 720px; }
.hero__title { font-size: clamp(2.3rem, 6vw, 4.2rem); margin-bottom: 22px; }
.hero__lead { font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: rgba(255, 255, 255, 0.9); margin-bottom: 32px; max-width: 60ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.page-hero {
  position: relative; color: #fff; overflow: hidden;
  padding-block: clamp(70px, 13vw, 150px); display: flex; align-items: center;
}
.page-hero__media { position: absolute; inset: 0; z-index: -1; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(14, 39, 31, 0.9), rgba(14, 39, 31, 0.55)); }
.page-hero__content { max-width: 760px; }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); margin-bottom: 18px; }
.page-hero p { color: rgba(255, 255, 255, 0.9); font-size: clamp(1.02rem, 1.6vw, 1.2rem); max-width: 60ch; }
.breadcrumb { display: flex; gap: 8px; font-size: .85rem; color: rgba(255, 255, 255, 0.7); margin-bottom: 18px; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { opacity: .6; }

/* ---------------------------------------------------------------- Trust */
.trust { border-bottom: 1px solid var(--border); background: var(--bg-elev); }
.trust__inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; padding-block: 22px; }
.trust__label { font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-soft); }
.trust__logos { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-left: auto; }
.trust__logos li {
  font-family: var(--font-serif); font-size: 1.05rem; color: var(--text-soft);
  padding: 6px 16px; border: 1px solid var(--border); border-radius: 999px;
}

/* ---------------------------------------------------------------- Stats */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.stat { background: var(--bg-elev); padding: 30px 26px; }
.stat__value { display: block; font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 3rem); color: var(--brand); line-height: 1; }
.stat__label { display: block; margin-top: 10px; color: var(--text-soft); font-size: .95rem; }

/* ---------------------------------------------------------------- Cards */
.card {
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 28px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.card__icon {
  width: 52px; height: 52px; border-radius: 13px;
  display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand);
  margin-bottom: 20px;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.card p { color: var(--text-soft); }

/* Checklist */
.checklist { margin: 6px 0 18px; }
.checklist li { position: relative; padding-left: 32px; margin-bottom: 12px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  background: color-mix(in srgb, var(--brand) 15%, transparent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2325503c' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}

/* Media frame */
.media-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.media-frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.media-frame--tall img { aspect-ratio: 3 / 4; }

/* ---------------------------------------------------------------- Banner */
.banner { position: relative; color: #fff; overflow: hidden; }
.banner__media { position: absolute; inset: 0; z-index: -1; }
.banner__media img { width: 100%; height: 100%; object-fit: cover; }
.banner__overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 39, 31, 0.88), rgba(14, 39, 31, 0.4)); }
.banner__inner { padding-block: clamp(70px, 11vw, 130px); }
.banner__content { max-width: 620px; }
.banner__title { font-size: clamp(1.7rem, 3.6vw, 2.8rem); margin-bottom: 18px; }
.banner__content p { color: rgba(255, 255, 255, 0.9); margin-bottom: 26px; }

/* ---------------------------------------------------------------- Posts */
.post { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease); height: 100%; display: flex; flex-direction: column; }
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post__media { display: block; overflow: hidden; }
.post__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s var(--ease); }
.post:hover .post__media img { transform: scale(1.05); }
.post__body { padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.post__meta { font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--brand); }
.post__body h3 { font-size: 1.2rem; }
.post__body h3 a:hover { color: var(--brand); }
.post__body p { color: var(--text-soft); font-size: .96rem; }

/* ---------------------------------------------------------------- CTA */
.cta { background: var(--green-900); color: #fff; }
[data-theme="dark"] .cta { background: var(--bg-elev); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cta__inner { text-align: center; padding-block: clamp(56px, 9vw, 110px); max-width: 680px; margin-inline: auto; }
.cta__title { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 16px; }
.cta__inner p { color: rgba(255, 255, 255, 0.85); margin-bottom: 30px; font-size: 1.1rem; }
[data-theme="dark"] .cta__inner p { color: var(--text-soft); }
.cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------------------------------------------------------------- Timeline */
.timeline { position: relative; max-width: 820px; margin-inline: auto; }
.timeline::before { content: ""; position: absolute; left: 18px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.t-step { position: relative; padding: 0 0 40px 60px; opacity: .55; transition: opacity .4s; }
.t-step.is-active { opacity: 1; }
.t-step::before {
  content: ""; position: absolute; left: 10px; top: 4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--brand); transition: transform .3s;
}
.t-step.is-active::before { transform: scale(1.25); }
.t-step .t-year { font-family: var(--font-serif); font-size: 1.4rem; color: var(--brand); margin-bottom: 4px; }
.t-step h3 { font-size: 1.15rem; margin-bottom: 6px; }
.t-step p { color: var(--text-soft); }

/* ---------------------------------------------------------------- Values / process */
.feature { display: flex; gap: 18px; align-items: flex-start; }
.feature__num { font-family: var(--font-serif); font-size: 1.6rem; color: var(--brand); flex-shrink: 0; line-height: 1; }
.feature h3 { font-size: 1.2rem; margin-bottom: 8px; }
.feature p { color: var(--text-soft); }

/* Quote */
.quote { max-width: 820px; margin-inline: auto; text-align: center; }
.quote blockquote { font-family: var(--font-serif); font-size: clamp(1.4rem, 3vw, 2.1rem); line-height: 1.3; margin-bottom: 24px; }
.quote figcaption { color: var(--text-soft); }
.quote figcaption strong { color: var(--text); display: block; }

/* ---------------------------------------------------------------- Accordion (FAQ) */
.accordion { max-width: 820px; margin-inline: auto; }
.acc-item { border-bottom: 1px solid var(--border); }
.acc-head {
  width: 100%; text-align: left; display: flex; justify-content: space-between;
  align-items: center; gap: 20px; padding: 22px 4px; font-family: var(--font-serif);
  font-size: 1.15rem;
}
.acc-head .acc-icon { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.acc-head .acc-icon::before, .acc-head .acc-icon::after { content: ""; position: absolute; background: var(--brand); border-radius: 2px; transition: transform .3s; }
.acc-head .acc-icon::before { left: 0; top: 8px; width: 18px; height: 2px; }
.acc-head .acc-icon::after { left: 8px; top: 0; width: 2px; height: 18px; }
.acc-item.open .acc-icon::after { transform: scaleY(0); }
.acc-panel { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.acc-panel-inner { padding: 0 4px 22px; color: var(--text-soft); max-width: 70ch; }
.acc-title { display: flex; flex-direction: column; gap: 4px; }
.acc-meta { font-family: var(--font-sans); font-size: .8rem; font-weight: 500; letter-spacing: .03em; text-transform: uppercase; color: var(--text-soft); }
.acc-panel-inner .link-arrow { margin-top: 10px; }

/* ---------------------------------------------------------------- Callout */
.callout { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; padding: clamp(24px, 4vw, 40px); background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.callout h3 { font-size: 1.3rem; margin-bottom: 6px; }
.callout p { color: var(--text-soft); margin: 0; max-width: 52ch; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------------------------------------------------------------- Forms */
.form-card { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 8px; }
.field .req { color: #c0392b; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); background: var(--bg); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent); }
.field.invalid input, .field.invalid textarea { border-color: #c0392b; }
.field .err-msg { display: none; color: #c0392b; font-size: .82rem; margin-top: 6px; }
.field.invalid .err-msg { display: block; }
.form-row { display: grid; gap: 20px; }
@media (min-width: 600px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--text-soft); }
.form-consent input { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; }
.form-success { display: none; padding: 28px; border-radius: var(--radius); background: color-mix(in srgb, var(--brand) 10%, transparent); border: 1px solid var(--brand); }
.form-success.show { display: block; }
.honeypot { position: absolute; left: -9999px; opacity: 0; }

/* Info list (contacts) */
.info-list li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.info-list svg { width: 22px; height: 22px; color: var(--brand); flex-shrink: 0; margin-top: 2px; }
.info-list strong { display: block; }
.info-list a { color: var(--brand); }

.map-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.map-frame iframe { width: 100%; height: 380px; border: 0; display: block; filter: grayscale(0.2); }

/* ---------------------------------------------------------------- Job list */
.job { display: flex; align-items: center; gap: 20px; justify-content: space-between; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elev); margin-bottom: 14px; flex-wrap: wrap; transition: border-color .3s, transform .3s; }
.job:hover { border-color: var(--brand); transform: translateY(-2px); }
.job h3 { font-size: 1.15rem; margin-bottom: 6px; }
.job__meta { display: flex; gap: 16px; color: var(--text-soft); font-size: .9rem; flex-wrap: wrap; }
.tag { font-size: .78rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: var(--bg-muted); color: var(--text-soft); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery a { display: block; border-radius: var(--radius); overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .5s var(--ease); }
.gallery a:hover img { transform: scale(1.06); }
.gallery__item { display: block; border-radius: var(--radius); overflow: hidden; padding: 0; border: 0; background: var(--bg-muted); cursor: zoom-in; }
.gallery__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s var(--ease); display: block; }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---------------------------------------------------------------- Downloads */
.download-list { display: grid; gap: 12px; max-width: 760px; }
.download { display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .2s, transform .2s; }
.download:hover { border-color: var(--brand); transform: translateX(4px); }
.download__icon { display: inline-flex; width: 40px; height: 40px; flex: none; align-items: center; justify-content: center; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); }
.download__icon svg { width: 22px; height: 22px; }
.download__text { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; }
.download__text strong { font-size: .98rem; }
.download__text span { font-size: .82rem; color: var(--text-soft); }
.download__action { font-size: .85rem; font-weight: 600; color: var(--brand); flex: none; }

/* ---------------------------------------------------------------- Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 5vw; background: rgba(12, 22, 18, .92); }
.lightbox.show { display: flex; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox__close { position: absolute; top: 22px; right: 28px; font-size: 2.4rem; line-height: 1; color: #fff; background: none; border: 0; cursor: pointer; }

/* Downloads */
.dl { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elev); margin-bottom: 12px; transition: border-color .3s; }
.dl:hover { border-color: var(--brand); }
.dl svg { width: 26px; height: 26px; color: var(--brand); flex-shrink: 0; }
.dl strong { display: block; }
.dl span { color: var(--text-soft); font-size: .85rem; }
.dl .btn { margin-left: auto; }

/* ---------------------------------------------------------------- Footer */
.site-footer { background: var(--green-900); color: rgba(255, 255, 255, 0.78); }
[data-theme="dark"] .site-footer { background: #0a110e; border-top: 1px solid var(--border); }
.site-footer__top { display: grid; gap: 40px; padding-block: clamp(48px, 7vw, 80px); grid-template-columns: 1fr; }
@media (min-width: 760px) { .site-footer__top { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.site-footer__brand img { height: 34px; margin-bottom: 18px; }
.site-footer__brand p { max-width: 38ch; margin-bottom: 18px; }
.site-footer__addr { font-style: normal; font-size: .92rem; line-height: 1.7; }
.site-footer__addr strong { color: #fff; }
.site-footer__col h3 { font-family: var(--font-sans); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.site-footer__col li { margin-bottom: 10px; }
.site-footer__col a { font-size: .94rem; transition: color .2s; }
.site-footer__col a:hover { color: #fff; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-block: 24px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: .85rem; }

/* ---------------------------------------------------------------- Search overlay */
.search-overlay { position: fixed; inset: 0; z-index: 120; background: rgba(14, 23, 20, 0.55); backdrop-filter: blur(8px); display: flex; align-items: flex-start; justify-content: center; padding: 12vh 20px 20px; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.search-overlay.open { opacity: 1; visibility: visible; }
.search-box { width: 100%; max-width: 640px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; transform: translateY(-12px); transition: transform .3s var(--ease); }
.search-overlay.open .search-box { transform: translateY(0); }
.search-field { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.search-field svg { width: 22px; height: 22px; color: var(--text-soft); flex-shrink: 0; }
.search-field input { flex: 1; border: none; background: none; font-size: 1.1rem; }
.search-field input:focus { outline: none; }
.search-close { font-size: .75rem; font-weight: 600; color: var(--text-soft); border: 1px solid var(--border); border-radius: 6px; padding: 4px 8px; }
.search-results { max-height: 50vh; overflow-y: auto; padding: 8px; }
.search-results a { display: block; padding: 14px 16px; border-radius: 10px; transition: background .15s; }
.search-results a:hover { background: var(--bg-muted); }
.r-title { display: block; font-weight: 600; }
.r-desc { display: block; font-size: .88rem; color: var(--text-soft); }
.search-empty { padding: 24px 16px; color: var(--text-soft); text-align: center; }
.search-hint { padding: 14px 20px; border-top: 1px solid var(--border); font-size: .82rem; color: var(--text-soft); }

/* ---------------------------------------------------------------- Cookie banner */
.cookie { position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 110; max-width: 880px; margin-inline: auto; background: var(--bg-elev); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); transform: translateY(150%); transition: transform .5s var(--ease); }
.cookie.show { transform: translateY(0); }
.cookie__inner { padding: 22px 24px; }
.cookie__text strong { font-family: var(--font-serif); font-size: 1.15rem; display: block; margin-bottom: 6px; }
.cookie__text p { color: var(--text-soft); font-size: .92rem; margin-bottom: 16px; }
.cookie__settings { display: none; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; padding: 16px; background: var(--bg-muted); border-radius: var(--radius); }
.cookie.settings-open .cookie__settings { display: flex; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; }
.switch input { width: 18px; height: 18px; }
.cookie__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 560px) { .cookie__actions { flex-direction: column; } .cookie__actions .btn { width: 100%; } }

/* ---------------------------------------------------------------- Back to top */
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 80; width: 46px; height: 46px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, transform .3s, visibility .3s, background .2s; }
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--brand-strong); }
.to-top svg { width: 22px; height: 22px; }

/* ---------------------------------------------------------------- Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- Misc pages */
.error-page { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.error-page__code { font-family: var(--font-serif); font-size: clamp(5rem, 18vw, 11rem); line-height: 1; color: var(--brand); }
.legal-toc { position: sticky; top: calc(var(--header-h) + 24px); }
.legal-toc a { display: block; padding: 6px 0; color: var(--text-soft); font-size: .92rem; }
.legal-toc a:hover { color: var(--brand); }
@media (max-width: 859px) { .legal-toc { position: static; margin-bottom: 24px; } }
.legal-grid { display: grid; gap: 48px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .legal-grid { grid-template-columns: 240px 1fr; } }
.page-hero--slim { padding-block: clamp(110px, 14vw, 168px) clamp(32px, 5vw, 56px); }
.prose { max-width: 72ch; }
.prose h2 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin: 40px 0 14px; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.15rem; margin: 28px 0 10px; }
.prose p, .prose li { color: var(--text-soft); line-height: 1.7; margin-bottom: 14px; }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 18px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 20px; font-size: .92rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border: 1px solid var(--border); }
.prose th { background: var(--bg-muted); }
.legal-updated { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--border); font-size: .85rem; color: var(--text-soft); }

.split-pad { padding-block: clamp(56px, 9vw, 120px); }
.muted { color: var(--text-soft); }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.maxw-680 { max-width: 680px; }
.maxw-760 { max-width: 760px; }

/* ---------------------------------------------------------------- Page hero */
.page-hero { position: relative; padding-block: clamp(120px, 16vw, 200px) clamp(48px, 7vw, 88px); background: var(--brand-deep); color: #fff; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,38,32,.4), rgba(20,38,32,.78)); z-index: 1; }
.page-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero .eyebrow { color: var(--accent); }
.page-hero__title { font-family: var(--font-serif); font-weight: 600; font-size: clamp(2.1rem, 5.4vw, 3.7rem); line-height: 1.04; margin-bottom: 18px; max-width: 16ch; }
.page-hero__lead { font-size: clamp(1.02rem, 1.6vw, 1.28rem); color: rgba(255,255,255,.86); max-width: 60ch; }
.breadcrumb { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 22px; color: rgba(255,255,255,.66); }
.breadcrumb a { color: rgba(255,255,255,.82); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { opacity: .5; }

/* ---------------------------------------------------------------- Forms */
.form { display: grid; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-row { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field > label { font-size: .86rem; font-weight: 600; letter-spacing: .01em; }
.field .req { color: var(--accent); }
.field input, .field select, .field textarea { width: 100%; padding: 13px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--bg); color: var(--text); font: inherit; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--ring); }
.field--error input, .field--error select, .field--error textarea { border-color: var(--danger); }
.field__error { font-size: .8rem; color: var(--danger); min-height: 0; }
.check { flex-direction: row; align-items: flex-start; gap: 10px; }
.check input { width: 18px; height: 18px; margin-top: 3px; flex: none; }
.check label { font-weight: 400; font-size: .9rem; color: var(--text-soft); }
.form__note { font-size: .82rem; color: var(--text-soft); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 14px 16px; border-radius: var(--radius); font-size: .92rem; display: none; }
.form-status.ok { display: block; background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand-strong); border: 1px solid var(--brand); }
.form-status.err { display: block; background: color-mix(in srgb, var(--danger) 10%, transparent); color: var(--danger); border: 1px solid var(--danger); }

/* ---------------------------------------------------------------- Contact layout */
.grid--contact { display: grid; gap: 48px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 920px) { .grid--contact { grid-template-columns: 1.4fr 1fr; } }
.contact-aside { display: grid; gap: 18px; }
.info-card { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.info-card h3 { font-size: 1.05rem; margin-bottom: 12px; }
.info-list { display: grid; gap: 12px; }
.info-list div { display: flex; gap: 12px; align-items: flex-start; font-size: .94rem; }
.info-list svg { width: 19px; height: 19px; color: var(--brand); flex: none; margin-top: 2px; }
.info-list a { color: var(--text); }
.info-list a:hover { color: var(--brand); }
.map-frame { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 10; background: var(--bg-muted); }
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.2); }
.thanks-mark { width: 84px; height: 84px; border-radius: 50%; background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 24px; }
.thanks-mark svg { width: 40px; height: 40px; }

/* ---------------------------------------------------------------- Form note + success flag */
.form__note--error { color: var(--danger); font-weight: 500; }
.form-success-flag {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 6px;
  padding: 8px 14px; border-radius: 999px; font-size: .86rem; font-weight: 600;
  color: var(--brand-strong); background: color-mix(in srgb, var(--brand) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 40%, transparent);
  opacity: 0; transform: translateY(6px); pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.form-success-flag.show { opacity: 1; transform: translateY(0); }
.form-success-flag svg { width: 16px; height: 16px; }

/* ---------------------------------------------------------------- Modal */
.modal-open { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; padding: 5vw; }
.modal.show { display: flex; }
.modal__backdrop {
  position: absolute; inset: 0; background: rgba(12, 22, 18, .55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: modalFade .3s var(--ease);
}
.modal__dialog {
  position: relative; z-index: 1; width: min(440px, 100%);
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: clamp(28px, 5vw, 44px); text-align: center;
  animation: modalIn .3s var(--ease);
}
.modal__mark {
  width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--brand); background: color-mix(in srgb, var(--brand) 14%, transparent);
}
.modal__mark svg { width: 30px; height: 30px; }
.modal__title { font-family: var(--font-serif); font-weight: 600; font-size: 1.6rem; margin-bottom: 10px; }
.modal__text { color: var(--text-soft); margin-bottom: 24px; }
.modal__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.modal__x {
  position: absolute; top: 12px; right: 16px; width: 36px; height: 36px;
  font-size: 1.6rem; line-height: 1; color: var(--text-soft);
  background: none; border: 0; border-radius: 8px; cursor: pointer; transition: color .2s, background .2s;
}
.modal__x:hover { color: var(--text); background: var(--bg-muted); }
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal.closing .modal__backdrop { animation: modalFade .25s var(--ease) reverse; }
.modal.closing .modal__dialog { animation: modalIn .25s var(--ease) reverse; }
@media (prefers-reduced-motion: reduce) {
  .modal__backdrop, .modal__dialog { animation: none; }
}
