:root {
  --ink: #151b19;
  --paper: #f4f3ef;
  --light-panel: #e9e7dc;
  --brass: #bda781;
  --brass-deep: #9e8c6c;
  /* same hue, darkened until small brass-colored text clears WCAG AA (4.5:1)
     on paper/white/light-panel -- --brass and --brass-deep read beautifully
     on dark backgrounds but fail contrast as small text on light ones. */
  --brass-ink: #6e5b3a;
  --soft: #c9cbc5;
  --muted: #737870;
  --muted-deep: #5c6058;
  --green: #304037;
  --green-soft: #a9b6a8;
  --border: #d8d5cc;
  --hairline: rgb(172 169 158 / 36%);
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Arial, Helvetica, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; background: none; border: 0; }
img { display: block; max-width: 100%; }
a, button, summary, input, textarea {
  outline-offset: 4px;
  -webkit-tap-highlight-color: transparent;
}
a, button, summary { touch-action: manipulation; }
::selection { background: var(--brass); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--brass-ink);
  outline-offset: 3px;
  border-radius: 1px;
}
.feature.dark :focus-visible,
.contact-block :focus-visible,
.hero:not(.light) :focus-visible,
footer :focus-visible,
dialog :focus-visible { outline-color: var(--brass); }

.skip {
  position: fixed;
  top: -70px;
  left: 20px;
  z-index: 999;
  padding: 12px 18px;
  background: var(--paper);
  border: 1px solid var(--ink);
}
.skip:focus { top: 12px; }

/* ---------- header ---------- */

header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 96px;
  padding: 0 4.5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgb(244 243 239 / 88%);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}

.brand { width: 168px; display: block; }
.brand img { width: 100%; height: auto; object-fit: contain; object-position: left center; }

.main-nav { display: flex; gap: 34px; align-items: center; font-size: 14.5px; }
.main-nav > a,
.main-nav summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 6px 0;
  color: var(--muted-deep);
  transition: color 200ms cubic-bezier(0.16, 1, 0.3, 1);
}
.main-nav > a::after,
.main-nav summary::before {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--brass-deep);
  transition: right 260ms cubic-bezier(0.16, 1, 0.3, 1);
}
.main-nav > a:hover,
.main-nav summary:hover { color: var(--ink); }
.main-nav > a:hover::after,
.main-nav summary:hover::before,
.main-nav details[open] summary::before { right: 0; }
.main-nav a[aria-current='page'] { color: var(--ink); }
.main-nav a[aria-current='page']::after { right: 0; background: var(--ink); }
summary::-webkit-details-marker { display: none; }
.main-nav details { position: relative; }
.main-nav summary { display: inline-flex; align-items: center; }
.main-nav summary::after {
  content: '+';
  position: static;
  width: auto;
  height: auto;
  background: none;
  margin-left: 8px;
  color: var(--brass-ink);
  transition: transform 200ms ease;
}
.main-nav details[open] summary::after { content: '\2212'; }

.dropdown {
  position: absolute;
  top: 44px;
  left: -24px;
  padding: 10px;
  background: var(--paper);
  width: 240px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 48px rgb(21 27 25 / 14%);
  animation: dropdown-in 180ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes dropdown-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.dropdown a {
  display: block;
  padding: 10px 12px;
  color: var(--muted-deep);
  transition: background 150ms ease, color 150ms ease;
}
.dropdown a:hover { color: var(--ink); background: var(--light-panel); }

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9em;
  height: 1.9em;
  border-radius: 999px;
  background: rgb(21 27 25 / 8%);
  font-size: 0.8em;
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1), background 200ms ease;
}

.link-icon {
  display: inline-block;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}
a:hover > .link-icon,
a:hover .link-icon { transform: translate(3px, -3px); }

.main-nav > a.nav-cta {
  border: 1px solid var(--brass);
  border-radius: 999px;
  padding: 9px 8px 9px 20px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--ink);
  transition: background 220ms cubic-bezier(0.16, 1, 0.3, 1), border-color 220ms ease;
}
.nav-cta .btn-icon { background: rgb(21 27 25 / 10%); }
.nav-cta:hover { background: var(--brass); }
.nav-cta:hover .btn-icon { background: rgb(21 27 25 / 16%); transform: translate(2px, -2px); }
.nav-cta:active { transform: scale(0.98); }
.main-nav .nav-cta::after,
.main-nav .nav-cta::before { content: none; }

.mobile-toggle {
  display: none;
  border: 0;
  font-size: 14px;
  padding: 10px 0;
  color: var(--ink);
  transition: opacity 200ms ease;
}
.mobile-toggle:hover { opacity: 0.7; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, 42%) 1fr;
  min-height: min(760px, calc(100svh - 96px));
  background: var(--ink);
}
.mobile-copy { display: none; }
.hero.light { background: var(--light-panel); }
.hero.green { background: var(--green); }

.hero-copy {
  container-type: inline-size;
  padding: clamp(40px, 6vw, 92px) clamp(28px, 5vw, 84px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: var(--paper);
}
.hero.light .hero-copy,
.hero.green .hero-copy { color: var(--paper); }
.hero.light .hero-copy { color: var(--ink); }

.eyebrow {
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--brass);
  display: block;
  margin-bottom: clamp(20px, 3vw, 34px);
}
.hero.light .eyebrow,
.section-head .eyebrow,
.content-intro .eyebrow,
.feature:not(.dark) .eyebrow { color: var(--brass-ink); }

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 9.5cqi, 76px);
  line-height: 1.14;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0 0 clamp(18px, 3vw, 32px);
  white-space: nowrap;
}
.hero h1 em {
  display: block;
  font-style: italic;
  font-weight: 400;
  color: var(--brass);
  padding-bottom: 0.16em;
}
.hero.light h1 em { color: #86704d; }

.hero p {
  max-width: 440px;
  color: var(--soft);
  font-size: clamp(16px, 1.1vw, 19px);
  line-height: 1.75;
  margin: 0 0 clamp(28px, 4vw, 40px);
}
.hero.light p { color: var(--muted-deep); }
.hero.green p { color: var(--green-soft); }

.button {
  padding: 8px 8px 8px 26px;
  display: inline-flex;
  gap: clamp(20px, 3vw, 36px);
  align-items: center;
  border: 1px solid var(--brass);
  border-radius: 999px;
  font-size: 14.5px;
  white-space: nowrap;
  transition: background 220ms cubic-bezier(0.16, 1, 0.3, 1), color 220ms ease, border-color 220ms ease, transform 150ms ease;
}
.button .btn-icon { background: rgb(244 243 239 / 14%); }
.button:hover { background: var(--brass); color: var(--ink); border-color: var(--brass); }
.button:hover .btn-icon { background: rgb(21 27 25 / 14%); transform: translate(2px, -2px); }
.button:active { transform: scale(0.97); }
.button.light { background: var(--brass); color: var(--ink); }
.button.light .btn-icon { background: rgb(21 27 25 / 10%); }
.button.light:hover { background: #c9b48e; }
.hero.light .button:not(.light) { color: var(--ink); }
.hero.light .button:not(.light) .btn-icon { background: rgb(21 27 25 / 8%); }

.text-link {
  position: relative;
  padding: 0 0 6px;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.text-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  opacity: 0.35;
  transition: opacity 200ms ease;
}
.text-link:hover::after { opacity: 1; }

.hero-media { position: relative; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }

/* continuous scroll-tied parallax on hero photography -- pure CSS scroll-driven
   animation, no scroll listener. Gated behind feature support and motion
   preference so it's additive, never required for the page to look right. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-media img {
      transform: scale(1.08) translateY(0%);
      animation: hero-parallax linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
    @keyframes hero-parallax {
      from { transform: scale(1.08) translateY(-3%); }
      to { transform: scale(1.08) translateY(3%); }
    }
  }
}

.image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--ink);
  color: var(--paper);
  padding: 14px clamp(18px, 2.4vw, 28px);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 2;
}

.home .hero { grid-template-columns: 1fr; min-height: calc(100svh - 96px); max-height: 980px; }
.home .hero-media { position: absolute; inset: 0; z-index: 0; }
.home .hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #07120fe6 0%, #14221bab 38%, #0002 72%);
}
.home .hero-copy { position: relative; z-index: 1; width: min(680px, 62%); min-height: 640px; }
.home .image-caption { background: transparent; left: auto; right: clamp(24px, 3vw, 40px); bottom: clamp(24px, 3vw, 40px); }

/* ---------- utility strip (below hero) ---------- */

.utility-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 4.5%;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted-deep);
}
.utility-label { text-transform: uppercase; white-space: nowrap; }
.utility-motto { font-family: var(--serif); font-size: 16px; letter-spacing: 0; white-space: nowrap; }
.utility-brand { text-transform: uppercase; white-space: nowrap; text-align: right; }

/* ---------- sections, generic ---------- */

.section { padding: clamp(56px, 9vw, 100px) 7%; }
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 50px;
  align-items: flex-end;
  margin-bottom: clamp(34px, 5vw, 50px);
}
.section-head p { max-width: 380px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.section h2, .feature h2, .contact-block h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 58px);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.12;
  margin: 16px 0 0;
  text-wrap: balance;
}
.content-intro h2 { text-wrap: balance; }

.index-strip {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4.5%;
  border-bottom: 1px solid var(--border);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted-deep);
  overflow: auto;
  white-space: nowrap;
}
.index-strip a { transition: color 150ms ease; }
.index-strip a:hover { color: var(--brass-ink); }

/* ---------- service grid ---------- */

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 24px; }
.service-card { display: block; transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1); }
.service-card:hover { transform: translateY(-4px); }
.service-card .photo { aspect-ratio: 1.25; overflow: hidden; background: #d5d5ce; }
.service-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1); }
.service-card:hover img { transform: scale(1.06); }
.card-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  font-size: 18px;
  transition: border-color 200ms ease;
}
.service-card:hover .card-label { border-color: var(--brass); }
.card-label small {
  color: var(--brass-ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-right: 12px;
}
.card-label .link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8em;
  height: 1.8em;
  border-radius: 999px;
  background: var(--light-panel);
  flex-shrink: 0;
}
.service-card:hover .link-icon { background: var(--brass); }

/* ---------- feature blocks ---------- */

.feature { display: grid; grid-template-columns: 1fr 1fr; background: var(--light-panel); }
.feature-img { display: block; width: 100%; height: 100%; min-height: 480px; overflow: hidden; }
.feature-img img { width: 100%; height: 100%; object-fit: cover; }
.feature-copy { padding: clamp(48px, 7vw, 84px) clamp(32px, 8vw, 13%); align-self: center; }
.feature-copy h2 { text-wrap: balance; }
.feature-copy p { color: var(--muted-deep); margin: 24px 0; max-width: 46ch; }
.feature.dark { background: var(--ink); color: var(--paper); }
.feature.dark p { color: var(--soft); }
.feature.dark .eyebrow { color: var(--brass); }

/* ---------- standard intro ---------- */

.content-intro { display: grid; grid-template-columns: 1fr 1.2fr; gap: 8%; padding: clamp(56px, 9vw, 100px) 9%; }
.content-intro h2 { font: 400 clamp(32px, 4vw, 56px)/1.14 var(--serif); letter-spacing: -0.015em; margin: 18px 0; }
.body-copy p { color: var(--muted-deep); margin: 0 0 22px; line-height: 1.85; }

/* ---------- legal pages (Impressum, Datenschutz) ---------- */

.legal-content .body-copy { max-width: 760px; margin: 0 auto; }
.legal-content .body-copy h2 {
  font: 400 22px/1.3 var(--serif);
  color: var(--ink);
  margin: 44px 0 16px;
  letter-spacing: normal;
  text-wrap: initial;
}
.legal-content .body-copy h2:first-child { margin-top: 0; }
.legal-content p { font-size: 15px; }
.legal-content p a { text-decoration: underline; text-underline-offset: 3px; transition: opacity 150ms ease; }
.legal-content p a:hover { opacity: 0.6; }

/* ---------- gallery ---------- */

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; gap: 22px; }
.gallery figure { margin: 0; transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1); }
.gallery a { display: block; overflow: hidden; background: #e4e3dc; }
.gallery img { width: 100%; aspect-ratio: 1.4; object-fit: cover; transition: transform 550ms cubic-bezier(0.16, 1, 0.3, 1); }
.gallery a:hover img { transform: scale(1.05); }
.gallery figure:has(a:hover) { transform: translateY(-3px); }
.gallery figcaption { font-size: 12px; color: var(--muted); padding: 10px 0; letter-spacing: 0.02em; }
/* :not(:last-child) matters: a spanning tile with nothing after it to
   backfill the gap beside it leaves a permanent hole even with dense
   packing -- so the last item in the grid never becomes a lead tile. */
.gallery figure:nth-child(7n + 1):not(:last-child) { grid-column: span 2; grid-row: span 2; }
.gallery figure:nth-child(7n + 1):not(:last-child) img { aspect-ratio: 1.4; height: 100%; }

/* ---------- specs (Oltremateria) ---------- */

.specs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.specs-grid .photo { aspect-ratio: 1.3; overflow: hidden; margin-bottom: 20px; }
.specs-grid img { width: 100%; height: 100%; object-fit: cover; }
.specs-grid h3 { font: 400 24px var(--serif); margin: 0 0 10px; }
.specs-grid p { font-size: 14.5px; color: var(--muted-deep); margin: 0; line-height: 1.7; }

/* ---------- values ---------- */

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 46px;
  padding: clamp(38px, 5vw, 56px) 7%;
  border-block: 1px solid var(--border);
}
.values > div { display: flex; flex-direction: column; align-items: flex-start; }
.values span {
  display: block;
  font-family: var(--serif);
  font-size: clamp(40px, 4.2vw, 58px);
  line-height: 1;
  color: var(--light-panel);
  -webkit-text-stroke: 1px var(--brass-deep);
  font-weight: 400;
  margin: 0 0 clamp(8px, 1.1vw, 12px);
}
.values h3 {
  font: 400 26px/1.2 var(--serif);
  margin: 0 0 6px;
  min-height: 2.4em;
  display: flex;
  align-items: flex-start;
  text-wrap: balance;
}
.values p { font-size: 14.5px; color: var(--muted-deep); line-height: 1.65; }

/* ---------- contact block + grid ---------- */

.contact-block {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(48px, 7vw, 85px) 7%;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}
.contact-block h2 { margin-bottom: 0; }
.contact-block .eyebrow { color: var(--brass); }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 42px; }
.contact-grid > div { padding-top: 22px; border-top: 1px solid var(--border); }
.contact-grid h3 { font-size: 12px; font-weight: 400; letter-spacing: 0.09em; text-transform: uppercase; color: var(--brass-ink); margin: 0 0 14px; }
.contact-grid p { font-size: 19px; line-height: 1.7; margin: 0 0 14px; }
.contact-grid a:not(.text-link) { position: relative; }
.contact-grid a:not(.text-link)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  opacity: 0.3;
  transition: opacity 200ms ease;
}
.contact-grid a:not(.text-link):hover::after { opacity: 1; }

/* ---------- partner logos ---------- */

.partners-section {
  background: #fff;
  border-top: 1px solid var(--border);
}
.partner-logos { display: flex; gap: 44px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.partner-logos img { max-width: 148px; max-height: 82px; object-fit: contain; }

/* ---------- next page / footer ---------- */

.next-page {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 7%;
  background: var(--light-panel);
  border-top: 1px solid var(--border);
  transition: background 240ms ease;
}
.next-page:hover { background: #ded9c8; }
.next-page:hover .next-page-title .link-icon { transform: translate(4px, -4px); }
.next-page-label { display: block; font: 11px var(--sans); letter-spacing: 0.09em; color: var(--muted-deep); margin-bottom: 10px; white-space: nowrap; }
.next-page-title {
  display: flex;
  align-items: center;
  gap: 22px;
  font: 400 clamp(20px, 2.4vw, 27px) var(--serif);
}
.next-page-title .link-icon { font-size: 0.6em; }

footer { padding: 56px 7% 24px; background: #12160f; color: #bdc0b7; }
.footer-main { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr; gap: 44px; margin-bottom: 50px; }
.footer-brand img { width: 170px; margin: 0 0 22px; }
.footer-main p, .footer-main a { font-size: 14px; }
.footer-main a { display: block; width: max-content; max-width: 100%; margin-bottom: 8px; position: relative; }
.footer-main a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -1px;
  height: 1px;
  background: currentColor;
  transition: right 220ms cubic-bezier(0.16, 1, 0.3, 1);
}
.footer-main a:hover::after { right: 0; }
.footer-main .eyebrow { color: var(--brass); margin-bottom: 18px; }
.footer-bottom { padding-top: 20px; border-top: 1px solid rgb(255 255 255 / 14%); display: flex; justify-content: space-between; font-size: 12px; gap: 20px; flex-wrap: wrap; }
.footer-bottom a { margin-left: 22px; transition: opacity 150ms ease; }
.footer-bottom a:hover { opacity: 0.7; }

/* ---------- lightbox dialog ---------- */

dialog {
  background: #151917;
  color: #fff;
  border: 1px solid #7d8175;
  width: min(1150px, 95vw);
  max-height: 94vh;
  padding: 52px 22px 20px;
  overscroll-behavior: contain;
  animation: dialog-in 220ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes dialog-in {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}
dialog::backdrop { background: rgb(0 0 0 / 80%); }
dialog img { max-height: 72vh; object-fit: contain; margin: auto; }
.dialog-close {
  position: absolute;
  right: 16px;
  top: 12px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: #fff;
  font-size: 22px;
  transition: background 180ms ease;
}
.dialog-close:hover { background: rgb(255 255 255 / 12%); }
.dialog-caption { margin: 16px 0 0; font-size: 14px; text-align: center; }
.dialog-nav { display: flex; gap: 14px; justify-content: center; margin-top: 14px; }
.dialog-nav button {
  color: #fff;
  border: 1px solid #858c7d;
  border-radius: 999px;
  padding: 6px 20px;
  transition: background 180ms ease, border-color 180ms ease;
}
.dialog-nav button:hover { background: rgb(255 255 255 / 10%); border-color: #b3b8a8; }

/* ---------- page theme variants ---------- */

.page-oltremateria .hero-copy { color: var(--paper); }

/* ---------- scroll reveal ---------- */

/* .reveal starts hidden only once html.js confirms JS (and the observer that
   reveals it) actually runs -- without this gate, a JS failure would leave
   every section permanently invisible instead of just unanimated. */
html.js .reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 950ms cubic-bezier(0.16, 1, 0.3, 1), transform 950ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--reveal-i, 0) * 80ms);
}
html.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

/* hero entrance, on load */
html.js .hero-copy > * { opacity: 0; animation: hero-in 800ms cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.hero-copy > *:nth-child(1) { animation-delay: 60ms; }
.hero-copy > *:nth-child(2) { animation-delay: 140ms; }
.hero-copy > *:nth-child(3) { animation-delay: 220ms; }
.hero-copy > *:nth-child(4) { animation-delay: 300ms; }
@keyframes hero-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .reveal, .hero-copy > * { opacity: 1 !important; transform: none !important; }
}

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .main-nav { gap: 18px; }
  .hero-copy { padding-right: 8%; }
  .section { padding: clamp(48px, 8vw, 70px) 5%; }
  .content-intro { padding: 60px 6%; gap: 6%; }
  .main-nav > a.nav-cta { gap: 12px; padding: 8px 6px 8px 16px; }
  .brand { width: 148px; }
}

@media (max-width: 860px) {
  header { height: 78px; padding: 0 6%; }
  .brand { width: 138px; }
  .mobile-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: var(--paper);
    padding: 24px 6% 30px;
    border-bottom: 1px solid var(--border);
    align-items: stretch;
    max-height: calc(100svh - 78px);
    overflow: auto;
    box-shadow: 0 18px 40px rgb(0 0 0 / 12%);
  }
  .main-nav.is-open { display: flex; flex-direction: column; gap: 16px; }
  .dropdown { position: static; box-shadow: none; border: 0; padding: 10px 0 0 16px; width: auto; }
  .main-nav .nav-cta { width: max-content; }

  .hero, .home .hero { display: flex; flex-direction: column; min-height: auto; max-height: none; }
  .hero-copy, .home .hero-copy { padding: 44px 7% 40px; width: 100%; min-height: 0; }
  .hero h1 { font-size: 52px; white-space: normal; }
  .desktop-copy { display: none; }
  .mobile-copy { display: inline; }
  .hero p { max-width: 100%; }
  .hero-media { min-height: 340px; }
  .home .hero-media { position: relative; min-height: 420px; }
  .home .hero-media::after { background: linear-gradient(0deg, #07120fb0, transparent 55%); }
  .home .image-caption { left: clamp(20px, 6vw, 32px); right: auto; bottom: 20px; }

  .utility-strip { padding: 14px 6%; }
  .utility-motto, .utility-brand { display: none; }

  .index-strip {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    padding: 20px 6%;
    overflow: visible;
    white-space: normal;
  }
  .index-strip-brand { display: none; }
  .index-strip-motto {
    order: 1;
    font-family: var(--serif);
    font-size: 16px;
    text-transform: none;
    letter-spacing: normal;
    color: var(--ink);
  }
  .index-strip-link { order: 2; }
  .service-grid { grid-template-columns: 1fr 1fr; gap: 26px 16px; }
  .card-label { font-size: 15px; }
  .card-label small { display: none; }
  .feature { grid-template-columns: 1fr; }
  .feature-img { min-height: 0; height: 340px; }
  .feature-copy { padding: 46px 7%; }
  .content-intro { grid-template-columns: 1fr; padding: 56px 7%; gap: 22px; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 16px; }
  .gallery figure:nth-child(7n + 1) { grid-column: auto; grid-row: auto; }
  .gallery figure:nth-child(5n + 1) { grid-column: span 2; }
  .specs-grid { grid-template-columns: 1fr; gap: 40px; }
  .values { grid-template-columns: 1fr; gap: 30px; padding: 40px 7%; }
  .values h3 { min-height: 0; }
  .contact-block { display: block; padding: 52px 7%; }
  .contact-block .button { margin-top: 30px; }
  .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; }
  .footer-bottom a { margin: 0 20px 0 0; }
  .next-page { flex-direction: column; align-items: flex-start; gap: 4px; }
  .next-page-title { font-size: 20px; }
  .partner-logos { justify-content: center; gap: 28px 56px; }
}
