/* ==========================================================================
   ASP Arges-Surface-Protection GmbH
   Editorial business site: warm neutrals, charcoal type, one terracotta accent.

   1. Tokens
   2. Base & utilities
   3. Buttons & links
   4. Header & navigation
   5. Hero
   6. Media / illustrations
   7. Sections: shared
   8. About
   9. Services
   10. Benefits
   11. Contact & form
   12. Footer
   13. Dialogs
   14. Reveal animation
   15. Reduced motion
   ========================================================================== */


/* 1. Tokens ------------------------------------------------------------- */
:root {
  /* Colour: neutrals + one accent (terracotta, as in red-oxide primer) */
  --paper:        #F3EFE8;
  --paper-2:      #E9E3D7;
  --sand:         #D8CFC0;
  --steel:        #B3ACA0;
  --ink:          #1C1B19;
  --ink-soft:     #4A4741;
  --muted:        #5F5B54;
  --accent:       #B5482A;
  --accent-dark:  #963A20;
  --accent-light: #E3987A;   /* accent on dark backgrounds */
  --error:        #A12A1A;
  --success:      #3E6B4A;

  --line:         rgba(28, 27, 25, 0.16);
  --line-strong:  rgba(28, 27, 25, 0.5);
  --line-light:   rgba(243, 239, 232, 0.22);

  /* Type */
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --font-sans:  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono:  ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  /* Layout */
  --container:  1240px;
  --gutter:     clamp(1.25rem, 4vw, 3rem);
  --section-y:  clamp(4.5rem, 9vw, 8.5rem);
  --header-h:   84px;
  --header-h-compact: 62px;
  --radius:     2px;

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
}


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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
svg, img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
address { font-style: normal; }

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

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 100;
  padding: .7rem 1rem;
  background: var(--ink);
  color: var(--paper);
  font-size: .9rem;
  transform: translateY(-200%);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Small mono label with accent square */
.label {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.label::before {
  content: "";
  flex: none;
  width: .55rem;
  height: .55rem;
  background: var(--accent);
}
.label--light { color: rgba(243, 239, 232, .7); }
.label--light::before { background: var(--accent-light); }

/* SVG colour helpers (used by the inline illustrations) */
.f-paper  { fill: var(--paper); }
.f-light  { fill: var(--paper-2); }
.f-sand   { fill: var(--sand); }
.f-steel  { fill: var(--steel); }
.f-ink    { fill: var(--ink); }
.f-soft   { fill: var(--ink-soft); }
.f-accent { fill: var(--accent); }
.s-paper  { stroke: var(--paper); }
.s-sand   { stroke: var(--sand); }
.s-ink    { stroke: var(--ink); }
.s-soft   { stroke: var(--ink-soft); }
.c-ink    { color: var(--ink); }
.c-soft   { color: var(--ink-soft); }
.art-text {
  fill: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
}


/* 3. Buttons & links ---------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.55rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: none;
  font-size: .92rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--primary { background: var(--accent); color: var(--paper); }
.btn--primary:hover { background: var(--ink); }
.btn--primary[disabled] { opacity: .65; cursor: progress; }

.btn--ghost {
  padding: .7rem 1.15rem;
  border-color: var(--ink);
  color: var(--ink);
  font-size: .84rem;
}
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding-bottom: .2rem;
  border-bottom: 1px solid currentColor;
  font-weight: 600;
  text-decoration: none;
  transition: color .25s ease, gap .3s var(--ease);
}
.link-arrow:hover { color: var(--accent); gap: .85rem; }
.link-arrow--small { margin-top: .6rem; font-size: .85rem; }

.text-link {
  text-decoration-line: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: .25em;
  transition: color .25s ease, text-decoration-color .25s ease;
}
.text-link:hover { color: var(--accent); text-decoration-color: var(--accent); }


/* 4. Header & navigation ------------------------------------------------ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: height .3s var(--ease), background-color .3s ease, border-color .3s ease;
}
.site-header.is-scrolled {
  height: var(--header-h-compact);
  background: rgba(243, 239, 232, .96);
  border-bottom-color: var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 2rem;
}

.logo {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: .8rem;
  text-decoration: none;
}
.logo__mark {
  position: relative;
  padding-right: .6rem;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
}
.logo__mark::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: .12rem;
  width: .4rem;
  height: .4rem;
  background: var(--accent);
}
.logo__text {
  display: flex;
  flex-direction: column;
  padding-left: .8rem;
  border-left: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: .62rem;
  line-height: 1.4;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.logo--light .logo__text { border-left-color: var(--line-light); color: rgba(243, 239, 232, .7); }
.logo--light .logo__mark::after { background: var(--accent-light); }

.nav { display: flex; align-items: center; gap: 2.25rem; }
.nav__list { display: flex; gap: 2rem; }

.nav__link {
  position: relative;
  padding: .4rem 0;
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav__link:hover::after,
.nav__link[aria-current="true"]::after { transform: scaleX(1); }

.nav-toggle {
  position: relative;
  z-index: 3;
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.nav-toggle__bar {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: var(--ink);
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.nav-toggle__bar--a { top: 17px; }
.nav-toggle__bar--b { top: 25px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar--a { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar--b { top: 21px; transform: rotate(-45deg); }

@media (max-width: 899.98px) {
  .nav-toggle { display: inline-block; }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 2;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
    padding: calc(var(--header-h) + 1.5rem) var(--gutter) 2rem;
    background: var(--paper);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .3s ease, transform .3s var(--ease), visibility 0s linear .3s;
  }
  .nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition-delay: 0s;
  }
  .nav__list { flex-direction: column; gap: 0; width: 100%; border-top: 1px solid var(--line); }
  .nav__list li { border-bottom: 1px solid var(--line); }
  .nav__link {
    display: block;
    padding: 1.1rem 0;
    font-family: var(--font-serif);
    font-size: 1.9rem;
    font-weight: 400;
  }
  .nav__link::after { display: none; }
  .nav__link[aria-current="true"] { color: var(--accent); }
  .nav__cta { padding: 1rem 1.5rem; font-size: .92rem; }
}

@media (max-width: 400px) {
  .logo__text { font-size: .56rem; letter-spacing: .08em; padding-left: .6rem; }
  .logo { gap: .6rem; }
}


/* 5. Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(2rem, 5vw, 4.5rem)) 0 clamp(3.5rem, 7vw, 6rem);
}

.hero__grid {
  display: grid;
  align-items: center;
  gap: clamp(2.75rem, 6vw, 4.5rem);
}
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }
}

.hero__title {
  margin: 1.5rem 0 1.75rem;
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  font-weight: 400;
  line-height: .97;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.hero__title em,
.section-title em { font-style: italic; color: var(--accent); }

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

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

.hero__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
  gap: 1.25rem 1.5rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-strong);
}
.hero__facts dt {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__facts dd { margin-top: .25rem; font-weight: 500; line-height: 1.4; }

/* Layered composition */
.hero-art {
  position: relative;
  width: 100%;
  max-width: 34rem;
  margin-inline: auto;
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.hero-art__main {
  position: relative;
  width: 84%;
  margin-left: auto;
}
.hero-art__main::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--ink);
  transform: translate(12px, -12px);
  pointer-events: none;
}

.hero-art__plate {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48%;
  border: 8px solid var(--paper);
}

.hero-art__tag {
  position: absolute;
  right: 0;
  bottom: clamp(1.25rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding: .85rem 1.1rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.4;
}
.hero-art__tag strong { font-weight: 500; }
.hero-art__tag span { color: var(--accent-light); }

.hero-art__rule {
  position: absolute;
  top: 0;
  left: 0;
  display: none;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
@media (min-width: 960px) {
  .hero-art__rule { display: block; }
}


/* 6. Media / illustrations ---------------------------------------------- */
.media {
  position: relative;
  overflow: hidden;
  background: var(--sand);
}
.media svg { width: 100%; height: 100%; }
.media--poster { aspect-ratio: 4 / 5; }
.media--plate  { aspect-ratio: 4 / 3; }
.media--wide   { aspect-ratio: 16 / 13; }
.media--layers { aspect-ratio: 520 / 250; }


/* 7. Sections: shared --------------------------------------------------- */
.section { padding-block: var(--section-y); }

.section-title {
  margin-top: 1.25rem;
  font-family: var(--font-serif);
  font-size: clamp(2.3rem, 4.8vw, 4.2rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.split-head { display: grid; gap: 1.5rem 3rem; }
.split-head__text { max-width: 26rem; color: var(--ink-soft); }
@media (min-width: 900px) {
  .split-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; }
  .split-head__text { justify-self: end; }
}


/* 8. About -------------------------------------------------------------- */
.about__grid { display: grid; gap: 3rem var(--gutter); }

.about__head { max-width: 46rem; }

.about__media { position: relative; align-self: start; }

.statement {
  position: relative;
  width: calc(100% - 1.5rem);
  margin: -2rem 0 0 1.5rem;
  padding: 1.5rem 1.75rem;
  background: var(--accent);
  color: var(--paper);
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-style: italic;
  line-height: 1.3;
}

.about__body { display: grid; gap: 1.25rem; align-content: start; color: var(--ink-soft); }
.lead {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.1vw, 1.7rem);
  line-height: 1.4;
  letter-spacing: -.01em;
  color: var(--ink);
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 1.25rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-strong);
}
.facts dt {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--accent);
}
.facts dd { margin-top: .5rem; font-size: .85rem; line-height: 1.45; color: var(--muted); }

@media (max-width: 599.98px) {
  .facts { grid-template-columns: 1fr; }
  .facts > div { display: grid; grid-template-columns: 3.5rem 1fr; align-items: baseline; gap: 0 .75rem; }
  .facts dd { margin-top: 0; }
}

@media (min-width: 900px) {
  .about__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); row-gap: clamp(3rem, 6vw, 5rem); }
  .about__head  { grid-column: 1 / span 8; }
  .about__media { grid-column: 1 / span 6; }
  .about__body  { grid-column: 8 / span 5; }
  .statement {
    position: absolute;
    left: 0;
    bottom: -2.5rem;
    width: 78%;
    margin: 0;
  }
}


/* 9. Services ----------------------------------------------------------- */
.services { background: var(--paper-2); }

.services__layout {
  display: grid;
  gap: 2.5rem var(--gutter);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
@media (min-width: 960px) {
  .services__layout { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}

.service-num {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .3s ease;
}

.icon {
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

/* Featured service */
.feature {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  background: var(--paper);
  border: 1px solid var(--line-strong);
}
.feature__top { display: flex; align-items: center; justify-content: space-between; }
.feature__top .icon { color: var(--accent); }
.feature__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.02em;
}
.feature__text { max-width: 36rem; color: var(--ink-soft); }
.feature .media { margin-top: .5rem; }

.layers { border-top: 1px solid var(--line); }
.layers li {
  display: grid;
  grid-template-columns: 1rem 10.5rem minmax(0, 1fr);
  align-items: center;
  gap: .9rem;
  padding: .7rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .9rem;
}
.layers strong { font-weight: 600; }
.layers span { color: var(--muted); }
.sw { display: block; width: .9rem; height: .9rem; border: 1px solid var(--line-strong); }
.sw--top    { background: var(--steel); }
.sw--mid    { background: var(--sand); }
.sw--primer { background: var(--accent); border-color: var(--accent); }
.sw--steel  { background: var(--ink); border-color: var(--ink); }

@media (max-width: 599.98px) {
  .layers li { grid-template-columns: 1rem minmax(0, 1fr); gap: .1rem .9rem; }
  .layers li span { grid-column: 2; }
}

/* Numbered rows */
.service-list { border-top: 1px solid var(--line-strong); align-self: start; }

.service-row {
  position: relative;
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr) auto;
  gap: 0 1rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line-strong);
  transition: background-color .3s ease;
}
.service-row::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}
.service-row:hover { background: rgba(28, 27, 25, .035); }
.service-row:hover::after { transform: scaleX(1); }
.service-row:hover .service-num { color: var(--accent); }

.service-row .service-num { padding-top: .5rem; }
.service-row h3 {
  margin-bottom: .4rem;
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.01em;
}
.service-row p { max-width: 30rem; font-size: .95rem; color: var(--ink-soft); }
.service-row .icon { margin-top: .25rem; color: var(--ink-soft); transition: color .3s ease, transform .4s var(--ease); }
.service-row:hover .icon { color: var(--accent); transform: translateY(-3px); }

/* Further activities */
.services__more {
  display: grid;
  margin-top: var(--gutter);
  border: 1px solid var(--line-strong);
  background: var(--paper);
}
.more__head {
  display: flex;
  gap: 1.25rem;
  padding: 1.75rem;
  border-bottom: 1px solid var(--line-strong);
}
.more__head h3 {
  margin-bottom: .9rem;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.01em;
}
.more__head .icon { color: var(--accent); }
.more__head .service-num { padding-top: .5rem; }

.more__cols { display: grid; }
.more__col { padding: 1.75rem; }
.more__col + .more__col { border-top: 1px solid var(--line); }
.more__col h4 {
  margin-bottom: .5rem;
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.more__col p { max-width: 24rem; color: var(--ink-soft); }

@media (min-width: 600px) {
  .more__cols { grid-template-columns: 1fr 1fr; }
  .more__col + .more__col { border-top: 0; border-left: 1px solid var(--line); }
}
@media (min-width: 900px) {
  .services__more { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .more__head { border-bottom: 0; border-right: 1px solid var(--line-strong); }
}


/* 10. Benefits ---------------------------------------------------------- */
.benefits { background: var(--ink); color: var(--paper); }
.benefits .section-title em { color: var(--accent-light); }
.benefits .split-head__text { color: rgba(243, 239, 232, .72); }

.benefits__list {
  display: grid;
  gap: 0 2rem;
  margin-top: clamp(3rem, 6vw, 5rem);
}
.benefit {
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--line-light);
}
.benefit__num {
  display: block;
  margin-bottom: 1.25rem;
  font-family: var(--font-serif);
  font-size: clamp(4.2rem, 8vw, 6.5rem);
  font-style: italic;
  line-height: .9;
  letter-spacing: -.04em;
  color: var(--accent-light);
}
.benefit h3 {
  margin-bottom: .75rem;
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.01em;
}
.benefit p { max-width: 24rem; font-size: .95rem; color: rgba(243, 239, 232, .74); }

@media (min-width: 600px) {
  .benefits__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .benefits__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .benefit:nth-child(even) { margin-top: 3.5rem; }
}


/* 11. Contact & form ---------------------------------------------------- */
.contact__grid { display: grid; gap: 3.5rem var(--gutter); align-items: start; }
@media (min-width: 960px) {
  .contact__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}

.contact__intro { max-width: 28rem; margin-top: 1.25rem; color: var(--ink-soft); }

.details {
  margin-top: 2.25rem;
  border-top: 1px solid var(--line-strong);
}
.details > div {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: .25rem 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.details dt {
  padding-top: .2rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.details dd { font-weight: 500; overflow-wrap: anywhere; }
.details address { font-weight: 500; }

.steps { display: grid; gap: .9rem; margin-top: 2rem; counter-reset: step; }
.steps li { display: flex; align-items: baseline; gap: .9rem; font-size: .95rem; color: var(--ink-soft); }
.steps span {
  flex: none;
  width: 1.6rem;
  height: 1.6rem;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--ink);
}

.form-wrap {
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
  background: #FAF8F4;
  border: 1px solid var(--ink);
}

.form { display: grid; gap: 1.5rem; }
.form__row { display: grid; gap: 1.5rem 2rem; }
@media (min-width: 640px) {
  .form__row { grid-template-columns: 1fr 1fr; }
}

.field { display: flex; flex-direction: column; gap: .15rem; }
.field > label {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.req { color: var(--accent); }
.opt { text-transform: none; letter-spacing: .04em; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
  width: 100%;
  padding: .7rem .1rem .75rem;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  font-size: 1rem;
  outline: 0;
  transition: border-color .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.field textarea { min-height: 9rem; resize: vertical; line-height: 1.55; }
.field input:focus,
.field textarea:focus {
  border-bottom-color: var(--accent);
  box-shadow: 0 1px 0 var(--accent);
  background: rgba(181, 72, 42, .04);
}

.field.has-error input,
.field.has-error textarea {
  border-bottom-color: var(--error);
  box-shadow: 0 1px 0 var(--error);
}
.field__error { min-height: 1.25rem; font-size: .82rem; line-height: 1.4; color: var(--error); }

.check { display: flex; align-items: flex-start; gap: .75rem; }
.check input {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  margin: .25rem 0 0;
  accent-color: var(--accent);
}
.check label { font-size: .88rem; line-height: 1.5; color: var(--ink-soft); }
.check a { text-decoration: underline; text-underline-offset: .2em; }
.check a:hover { color: var(--accent); }
.field--check .field__error { padding-left: 1.85rem; }

.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.form__note { font-size: .82rem; color: var(--muted); }

.form__status {
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--ink);
  background: var(--paper-2);
  font-size: .95rem;
  line-height: 1.5;
}
.form__status:empty { display: none; }
.form__status--success { border-left-color: var(--success); background: rgba(62, 107, 74, .1); }
.form__status--error   { border-left-color: var(--error);   background: rgba(161, 42, 26, .08); }


/* 12. Footer ------------------------------------------------------------ */
.site-footer {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 2rem;
  background: var(--ink);
  color: rgba(243, 239, 232, .76);
  font-size: .95rem;
}
.site-footer a { text-decoration: none; transition: color .25s ease; }
.site-footer a:hover { color: var(--accent-light); }
.site-footer .logo { color: var(--paper); }
.site-footer :focus-visible { outline-color: var(--accent-light); }

.footer__grid { display: grid; gap: 2.5rem 2rem; }
@media (min-width: 640px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .footer__grid { grid-template-columns: 1.7fr 1fr 1.4fr 1fr; }
}

.footer__brand p { max-width: 24rem; margin-top: 1.25rem; line-height: 1.6; }

.footer__title {
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(243, 239, 232, .55);
}
.footer__col ul { display: grid; gap: .55rem; }
.footer__col address { line-height: 1.65; }
.footer__col p { margin-top: .75rem; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 2rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-light);
  font-size: .82rem;
  color: rgba(243, 239, 232, .55);
}


/* 13. Dialogs ----------------------------------------------------------- */
.dialog {
  width: min(34rem, calc(100% - 2rem));
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
}
.dialog::backdrop { background: rgba(28, 27, 25, .6); }
.dialog h2 {
  margin-bottom: 1rem;
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 400;
  letter-spacing: -.02em;
}
.dialog p { color: var(--ink-soft); }
.dialog p + p { margin-top: .9rem; }
.dialog__close { margin-top: 1.75rem; }


/* 14. Reveal animation -------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}


/* 15. Reduced motion ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
    animation-duration: .01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
