/* ==========================================================================
   NOI Nord-Ostsee Invest KG — style.css
   Editorial, warm-neutral palette with a single terracotta accent.
   System fonts only: no external requests, fast first paint.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Colour */
  --bg: #F3EEE6;
  --bg-sand: #E9E1D3;
  --bg-raised: #FAF7F1;
  --ink: #1D1B19;
  --ink-soft: #5E574E;
  --line: #D0C6B6;
  --line-sand: #B9AD9A;

  --accent: #A8441F;
  --accent-light: #E58B66;

  --dark: #1F1C1A;
  --on-dark: #F0EAE0;
  --on-dark-soft: #ABA397;
  --line-dark: rgba(240, 234, 224, 0.18);

  --danger: #B3261E;
  --success: #3C6A4D;

  /* Typography
     To use a custom editorial typeface, self-host it with @font-face and put
     its name first in --font-display. */
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --container: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --gap: clamp(1rem, 2.4vw, 2rem);
  --section-pad: clamp(4.5rem, 10vw, 9rem);
  --header-h: 80px;
  --header-h-compact: 62px;

  /* Shape & motion */
  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h-compact) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open,
html.has-dialog {
  overflow: hidden;
}

h1, h2, h3, p, ul, ol, dl, dd, figure, address, blockquote {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button, input, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: var(--accent);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

[tabindex="-1"]:focus {
  outline: none;
}

.benefits :focus-visible,
.footer :focus-visible {
  outline-color: var(--accent-light);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

h1 em,
h2 em {
  font-style: italic;
  color: var(--accent);
}

.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-pad);
}

.section--sand {
  background: var(--bg-sand);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 1rem;
}

/* Small label above headings */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.eyebrow__num {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.eyebrow__mark {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--accent);
}

.eyebrow--rule::after {
  content: "";
  width: 3rem;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
}

/* Images: SVG or <img> both fill their frame */
.media {
  position: relative;
  overflow: hidden;
  background: var(--bg-sand);
}

.media svg,
.media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   3. Buttons & links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn .icon-arrow {
  transition: transform 0.25s var(--ease);
}

.btn--primary {
  background: var(--accent);
  color: #FBF8F3;
}

.btn--primary:hover {
  background: var(--ink);
}

.btn:hover .icon-arrow {
  transform: translateX(4px);
}

.btn[disabled] {
  opacity: 0.65;
  cursor: progress;
}

.link-arrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding-block: 0.3rem;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  transition: color 0.25s var(--ease), background-size 0.25s var(--ease);
}

.link-arrow::after {
  content: "→";
  transition: transform 0.25s var(--ease);
}

.link-arrow:hover {
  color: var(--accent);
}

.link-arrow:hover::after {
  transform: translateX(4px);
}

.link-arrow--small {
  margin-top: 1rem;
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   4. Header & navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  transition: height 0.3s var(--ease);
}

.site-header.is-scrolled,
.site-header.is-nav-open {
  background: var(--bg);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.site-header.is-scrolled .site-header__inner {
  height: var(--header-h-compact);
}

.logo {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.logo__mark {
  font-family: var(--font-display);
  font-size: 2.1rem;
  line-height: 1;
  letter-spacing: -0.03em;
}

.logo__text {
  padding-left: 0.85rem;
  border-left: 1px solid var(--ink);
  font-size: 0.66rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.6vw, 2.5rem);
}

.nav__link {
  position: relative;
  padding-block: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.nav__link::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav__link:hover::after,
.nav__link[aria-current="location"]::after {
  transform: scaleX(1);
}

.nav__cta {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.nav__cta:hover {
  background: var(--ink);
  color: var(--bg);
}

.nav-toggle {
  position: relative;
  z-index: 2;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  margin: 0 -10px 0 auto;
  padding: 0;
  background: none;
  border: 0;
}

.nav-toggle__bar {
  display: block;
  width: 24px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease);
}

.is-nav-open .nav-toggle__bar:nth-child(1) {
  transform: translateY(3.75px) rotate(45deg);
}

.is-nav-open .nav-toggle__bar:nth-child(2) {
  transform: translateY(-3.75px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */
.hero {
  padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 5.5rem));
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.hero__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: center;
}

.hero__copy {
  grid-column: 1 / span 7;
}

.hero__title {
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  font-size: clamp(3rem, 7vw, 6.25rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.hero__lead {
  max-width: 34rem;
  margin-bottom: 2.25rem;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--ink-soft);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
}

/* Layered image composition */
.hero__visual {
  position: relative;
  grid-column: 8 / -1;
  padding-bottom: 3rem;
}

.hero__fig--main {
  width: 84%;
  margin-left: auto;
  aspect-ratio: 4 / 5;
}

.hero__fig--sub {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60%;
  aspect-ratio: 4 / 3;
  border: 10px solid var(--bg);
}

.hero__tag {
  position: absolute;
  top: 1.5rem;
  left: 0;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero__vertical {
  position: absolute;
  top: 6rem;
  left: 0.3rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
  border-top: 1px solid var(--ink);
}

.hero__facts > div {
  padding: 1.25rem 1.5rem 0 0;
}

.hero__facts > div + div {
  padding-left: 1.5rem;
  border-left: 1px solid var(--line);
}

.hero__facts dt,
.contact__label {
  margin-bottom: 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hero__facts dd {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.3;
}

/* --------------------------------------------------------------------------
   6. About
   -------------------------------------------------------------------------- */
.about__head {
  max-width: 62rem;
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
}

.about__head h2 {
  font-size: clamp(2.4rem, 5.4vw, 4.75rem);
}

.about__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: start;
}

.about__media {
  position: relative;
  grid-column: 1 / span 5;
  margin-top: clamp(0rem, 4vw, 3.5rem);
  padding-bottom: 3.5rem;
}

.about__fig--wide {
  aspect-ratio: 5 / 4;
}

.about__fig--detail {
  position: absolute;
  right: -2rem;
  bottom: 0;
  width: 34%;
  aspect-ratio: 1;
  border: 10px solid var(--bg);
}

.about__text {
  grid-column: 7 / -1;
}

.about__text p {
  max-width: 36rem;
  margin-bottom: 1.25rem;
  color: var(--ink-soft);
}

.about__text .about__lead {
  margin-bottom: 1.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  line-height: 1.35;
  color: var(--ink);
}

.statement {
  max-width: 36rem;
  margin-top: 2.5rem;
  padding: 0.25rem 0 0.25rem 1.75rem;
  border-left: 3px solid var(--accent);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  line-height: 1.25;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(3rem, 6vw, 5.5rem);
  border-top: 1px solid var(--ink);
}

.facts__item {
  padding: 1.5rem 1.5rem 0 0;
}

.facts__num {
  margin-bottom: 0.5rem;
  font-size: clamp(2.8rem, 4.8vw, 4.25rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.05em;
}

.facts__item dd {
  max-width: 17rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* --------------------------------------------------------------------------
   7. Services
   -------------------------------------------------------------------------- */
.services__head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.services__head h2 {
  font-size: clamp(2.4rem, 5.4vw, 4.75rem);
}

.services__head > div {
  grid-column: 1 / span 7;
}

.services__head .eyebrow {
  margin-bottom: 1.5rem;
}

.services__intro {
  grid-column: 9 / -1;
  color: var(--ink-soft);
}

.services__layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: start;
}

.feature {
  grid-column: 1 / span 5;
  background: var(--bg);
  border: 1px solid var(--ink);
}

.feature__fig {
  aspect-ratio: 4 / 5;
}

.feature__body {
  padding: 1.75rem 1.75rem 2.25rem;
}

.feature__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  color: var(--accent);
}

.feature__num {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.feature__title {
  margin-bottom: 0.9rem;
  font-size: clamp(2rem, 3.2vw, 2.75rem);
}

.feature__body p {
  color: var(--ink-soft);
}

.service-list {
  grid-column: 7 / -1;
  border-bottom: 1px solid var(--line-sand);
}

.service-list > li {
  border-top: 1px solid var(--line-sand);
}

.service-list > li:first-child {
  border-top-color: var(--ink);
}

.service {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  gap: 0 1rem;
  align-items: start;
  padding: 1.75rem 0;
  transition: background-color 0.3s var(--ease), padding 0.3s var(--ease);
}

.service__num {
  padding-top: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  transition: color 0.3s var(--ease);
}

.service__title {
  margin-bottom: 0.5rem;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  transition: transform 0.3s var(--ease);
}

.service__text {
  max-width: 38rem;
  font-size: 1rem;
  color: var(--ink-soft);
}

.service__icon {
  margin-top: 0.35rem;
  color: var(--ink);
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}

@media (hover: hover) {
  .service:hover {
    padding-inline: 1rem;
    background: var(--bg);
  }

  .service:hover .service__num,
  .service:hover .service__icon {
    color: var(--accent);
  }

  .service:hover .service__title {
    transform: translateX(6px);
  }

  .service:hover .service__icon {
    transform: translateY(-3px);
  }
}

/* --------------------------------------------------------------------------
   8. Benefits (dark, contrasting section)
   -------------------------------------------------------------------------- */
.benefits {
  background: var(--dark);
  color: var(--on-dark);
}

.benefits .eyebrow {
  color: var(--on-dark-soft);
}

.benefits .eyebrow__num,
.benefits h2 em {
  color: var(--accent-light);
}

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: start;
}

.benefits__intro {
  position: sticky;
  top: calc(var(--header-h-compact) + 2rem);
  grid-column: 1 / span 4;
}

.benefits__intro h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(2.4rem, 4.6vw, 4.25rem);
}

.benefits__intro p:not(.eyebrow) {
  max-width: 24rem;
  color: var(--on-dark-soft);
}

.benefits__list {
  display: grid;
  grid-column: 6 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem) var(--gap);
  align-items: start;
}

.benefit {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
}

.benefit:nth-child(even) {
  margin-top: clamp(2rem, 6vw, 5rem);
}

.benefit__num {
  display: block;
  margin-bottom: 1.25rem;
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--accent-light);
}

@supports (-webkit-text-stroke: 1px #000) {
  .benefit__num {
    font-weight: 600;
    color: transparent;
    -webkit-text-stroke: 1px var(--accent-light);
  }
}

.benefit__title {
  margin-bottom: 0.75rem;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
}

.benefit__text {
  max-width: 26rem;
  color: var(--on-dark-soft);
}

/* --------------------------------------------------------------------------
   9. Contact & form
   -------------------------------------------------------------------------- */
.contact__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: start;
}

.contact__info {
  grid-column: 1 / span 5;
}

.contact__info h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(2.4rem, 4.6vw, 4.25rem);
}

.contact__intro {
  max-width: 30rem;
  margin-bottom: 2.5rem;
  color: var(--ink-soft);
}

.contact__block {
  padding: 1.25rem 0 1.5rem;
  border-top: 1px solid var(--ink);
}

.contact__info address {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-style: normal;
  line-height: 1.25;
}

.contact__mail {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
  transition: text-decoration-thickness 0.2s var(--ease), color 0.2s var(--ease);
}

.contact__mail:hover {
  color: var(--accent);
  text-decoration-thickness: 2px;
}

.contact__meta {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.contact__formwrap {
  grid-column: 7 / -1;
  margin-top: clamp(0rem, 3vw, 2.5rem);
  padding: clamp(1.5rem, 3.5vw, 3rem);
  background: var(--bg-raised);
  border: 1px solid var(--ink);
  box-shadow: 12px 12px 0 var(--bg-sand);
}

.form__title {
  margin-bottom: 2rem;
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
}

.form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1.75rem;
}

.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}

.field label {
  margin-bottom: 0.2rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.field label small {
  font-size: inherit;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: none;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.7rem 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  font-size: 1.02rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field textarea {
  min-height: 8rem;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
  box-shadow: 0 1px 0 var(--accent);
}

.field--error input,
.field--error textarea {
  border-bottom-color: var(--danger);
  box-shadow: 0 1px 0 var(--danger);
}

.field__error {
  min-height: 0;
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: var(--danger);
}

.field__error:empty {
  display: none;
}

.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 0.5rem;
}

.form__note {
  flex: 1 1 14rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.form__note a {
  text-decoration-color: var(--accent);
  text-underline-offset: 0.18em;
}

.form__status {
  margin-top: 1.25rem;
  font-size: 0.95rem;
}

.form__status:not(:empty) {
  padding: 0.9rem 1rem;
  background: var(--bg-sand);
  border-left: 3px solid var(--ink);
}

.form__status.is-success {
  border-left-color: var(--success);
}

.form__status.is-error {
  border-left-color: var(--danger);
}

/* --------------------------------------------------------------------------
   10. Footer
   -------------------------------------------------------------------------- */
.footer {
  position: relative;
  overflow: hidden;
  padding-top: clamp(3.5rem, 7vw, 6rem);
  background: var(--dark);
  color: var(--on-dark);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr 1fr;
  gap: 2.5rem var(--gap);
}

.footer__name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.footer__about {
  max-width: 26rem;
  margin-top: 1rem;
  font-size: 0.98rem;
  color: var(--on-dark-soft);
}

.footer__heading {
  margin-bottom: 1.1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
}

.footer__list {
  display: grid;
  gap: 0.6rem;
}

.footer__address {
  font-style: normal;
  line-height: 1.7;
}

.footer a {
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.footer a:hover {
  color: var(--accent-light);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-block: 1.5rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.85rem;
  color: var(--on-dark-soft);
}

.footer__wordmark {
  font-family: var(--font-display);
  font-size: clamp(9rem, 28vw, 26rem);
  line-height: 0.72;
  letter-spacing: -0.05em;
  text-align: center;
  white-space: nowrap;
  color: rgba(240, 234, 224, 0.05);
  transform: translateY(8%);
  user-select: none;
}

/* --------------------------------------------------------------------------
   11. Legal dialogs
   -------------------------------------------------------------------------- */
.dialog {
  width: min(40rem, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--ink);
  overflow: hidden;
}

.dialog[open] {
  display: flex;
  flex-direction: column;
}

.dialog::backdrop {
  background: rgba(29, 27, 25, 0.6);
}

.dialog__inner {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: inherit;
}

.dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--line);
}

.dialog__title {
  font-size: 1.8rem;
}

.dialog__close {
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-size: 1.5rem;
  line-height: 1;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.dialog__close:hover {
  background: var(--ink);
  color: var(--bg);
}

.dialog__body {
  padding: 1.25rem 1.5rem 1.75rem;
  overflow-y: auto;
  font-size: 0.98rem;
}

.dialog__body h3 {
  margin: 1.4rem 0 0.35rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
}

.dialog__body h3:first-child {
  margin-top: 0;
}

.dialog__body p {
  color: var(--ink-soft);
}

.dialog__body a {
  color: var(--accent);
}

.dialog__meta {
  margin-top: 1.75rem;
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   12. Reveal-on-scroll (only active when JavaScript is available)
   -------------------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--delay, 0ms);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   13. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .hero__copy { grid-column: 1 / span 7; }
  .hero__visual { grid-column: 8 / -1; }
  .about__fig--detail { right: -1rem; }
  .services__intro { grid-column: 8 / -1; }
  .benefits__list { grid-column: 5 / -1; }
  .benefits__intro { grid-column: 1 / span 4; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1.2fr 1fr; }
}

@media (max-width: 900px) {
  /* Mobile navigation */
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    padding: calc(var(--header-h) + 2rem) var(--gutter) 2rem;
    overflow-y: auto;
    background: var(--bg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
  }

  .site-header.is-nav-open .nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__list > li {
    border-bottom: 1px solid var(--line);
  }

  .nav__list > li:last-child {
    margin-top: 2rem;
    border-bottom: 0;
  }

  .nav__link {
    display: block;
    padding: 1.1rem 0;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: -0.01em;
  }

  .nav__link::after {
    display: none;
  }

  .nav__cta {
    display: block;
    padding: 1rem;
    text-align: center;
    font-size: 1rem;
  }

  /* Stack the editorial grids */
  .hero__copy,
  .hero__visual,
  .about__media,
  .about__text,
  .services__head > div,
  .services__intro,
  .feature,
  .service-list,
  .benefits__intro,
  .benefits__list,
  .contact__info,
  .contact__formwrap {
    grid-column: 1 / -1;
  }

  .hero__visual {
    width: 100%;
    max-width: 34rem;
    margin-top: 3rem;
  }

  .about__media {
    max-width: 34rem;
    margin-top: 0;
    margin-bottom: 2.5rem;
  }

  .about__fig--detail {
    right: 1rem;
  }

  .services__head {
    row-gap: 1.5rem;
  }

  .feature {
    margin-bottom: 2.5rem;
  }

  .feature__fig {
    aspect-ratio: 1;
  }

  .benefits__intro {
    position: static;
    margin-bottom: 3.5rem;
  }

  .contact__formwrap {
    margin-top: 3.5rem;
  }

  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 68px;
    --header-h-compact: 58px;
  }

  .logo__mark { font-size: 1.85rem; }

  .hero__facts,
  .facts {
    grid-template-columns: 1fr;
  }

  .hero__facts > div,
  .hero__facts > div + div {
    padding: 1rem 0;
    border-left: 0;
  }

  .hero__facts > div + div {
    border-top: 1px solid var(--line);
  }

  .facts__item {
    padding: 1.25rem 0;
  }

  .facts__item + .facts__item {
    border-top: 1px solid var(--line);
  }

  .about__fig--detail {
    right: 0.5rem;
    width: 38%;
  }

  .service {
    grid-template-columns: 2.5rem minmax(0, 1fr) auto;
    gap: 0 0.5rem;
  }

  .service__icon {
    width: 24px;
    height: 24px;
  }

  .benefits__list {
    grid-template-columns: 1fr;
  }

  .benefit:nth-child(even) {
    margin-top: 0;
  }

  .form__row {
    grid-template-columns: 1fr;
  }

  .contact__formwrap {
    box-shadow: 6px 6px 0 var(--bg-sand);
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   14. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    animation-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
