/* =============================================================
   DAHIDO — v2  ·  Editorial Magazine
   Vertical scroll · Asymmetric grids · Kinetic type
   ============================================================= */

:root {
  --bg:        #ffffff;          /* pure white page */
  --bg-2:      #ffffff;          /* clean white */
  --ink:       #121212;          /* near-black */
  --ink-soft:  #555555;          /* secondary text */
  --rule:      #1d1d1d;          /* hairline ink */
  --rule-soft: #d0d0d0;          /* light rule */
  --moss:      #1a1a1a;          /* near-black accent */
  --moss-deep: #0a0a0a;          /* pure dark for dark sections */
  --moss-tint: #f0f0f0;          /* light grey tint */
  --moss-bright: #d8d8d8;        /* light grey on dark backgrounds */
  --paper:     #e0e0e0;
  --accent:    #1a1a1a;          /* near-black */

  --topbar-h:  68px;
  --side:      clamp(20px, 4.6vw, 72px);
  --gutter:    clamp(16px, 2vw, 28px);

  --serif:     "Fraunces", "Times New Roman", serif;
  --sans:      "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:      "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;

  --ease:      cubic-bezier(0.2, 0.7, 0.15, 1);
}

*,*::before,*::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* (paper grain removed — cleaner pure-white surface) */

img, video { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

button { cursor: pointer; font: inherit; color: inherit; }

::selection { background: var(--moss); color: var(--bg); }


/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 28px;
  height: var(--topbar-h);
  padding: 0 var(--side);
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--rule);
}
.topbar::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 3px;
  background: var(--rule);
}

.topbar__mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .12em;
}
.topbar__mark img {
  width: 26px; height: 26px;
  object-fit: contain;
}

.topbar__nav {
  display: flex;
  gap: clamp(14px, 2.2vw, 36px);
  justify-content: center;
}
.topbar__nav a {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 2px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color .25s var(--ease);
}
.topbar__nav a span {
  font-size: 9.5px;
  color: var(--moss);
  letter-spacing: .14em;
}
.topbar__nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1.5px;
  background: var(--moss);
  transition: right .35s var(--ease);
}
.topbar__nav a:hover,
.topbar__nav a.is-active { color: var(--moss); }
.topbar__nav a:hover::after,
.topbar__nav a.is-active::after { right: 0; }

.topbar__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.topbar__meta .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--moss);
  box-shadow: 0 0 0 2px rgba(26,26,26,.18);
  animation: pulse 2.4s infinite var(--ease);
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 2px rgba(26,26,26,.18); }
  50%     { box-shadow: 0 0 0 6px rgba(26,26,26,0);   }
}

.topbar__menu {
  display: none;
  width: 38px; height: 38px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--rule);
  background: var(--bg-2);
}
.topbar__menu span {
  width: 16px; height: 1.5px;
  background: var(--ink);
  transition: transform .3s var(--ease);
}
.topbar__menu.is-open span:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
.topbar__menu.is-open span:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }


/* ============================================================
   DRAWER (mobile)
   ============================================================ */
.drawer {
  position: fixed;
  inset: var(--topbar-h) 0 auto 0;
  z-index: 45;
  padding: 32px var(--side) 40px;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  transform: translateY(-110%);
  transition: transform .45s var(--ease);
}
.drawer.is-open { transform: translateY(0); }

.drawer nav {
  display: grid;
  gap: 4px;
  border-top: 1px solid var(--rule-soft);
  margin-bottom: 24px;
}
.drawer nav a {
  display: grid;
  grid-template-columns: 36px 1fr 18px;
  align-items: baseline;
  gap: 12px;
  padding: 18px 0;
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--rule-soft);
}
.drawer nav a em {
  font-family: var(--mono);
  font-style: normal;
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--moss);
}
.drawer nav a::after {
  content: "→";
  justify-self: end;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--moss);
}
.drawer__cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 18px;
  margin-bottom: 18px;
  background: var(--moss);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .14em;
}
.drawer__address {
  margin: 0;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--ink-soft);
}


/* ============================================================
   LEFT RAIL (page-number indicator)
   ============================================================ */
.rail {
  position: fixed;
  z-index: 40;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  grid-template-columns: auto;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--moss);
  pointer-events: none;
  transition: color .4s var(--ease);
}
.rail__index {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.02em;
  color: inherit;
  font-style: italic;
  font-weight: 600;
  line-height: 1;
}
.rail__divider {
  width: 24px; height: 1px;
  background: currentColor;
  opacity: .55;
  margin: 2px 0;
}
.rail__name {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 10.5px;
  letter-spacing: .22em;
  color: inherit;
}
.rail__count {
  font-size: 10px;
  color: inherit;
  opacity: .65;
}
.rail__progress {
  position: relative;
  width: 1.5px;
  height: 120px;
  background: rgba(26,26,26,.22);
  margin-top: 8px;
  transition: background .4s var(--ease);
}
.rail__progress i {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 0;
  background: var(--moss);
  transition: height .3s var(--ease), background .4s var(--ease);
}

/* Inverted state on dark sections — rail + stamp turn white */
body.on-dark .rail,
body.on-dark .stamp { color: #ffffff; }
body.on-dark .rail__progress     { background: rgba(255,255,255,.22); }
body.on-dark .rail__progress i   { background: #ffffff; }


/* ============================================================
   RIGHT STAMP (vertical type)
   ============================================================ */
.stamp {
  position: fixed;
  z-index: 40;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 18px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--moss);
  opacity: .75;
  pointer-events: none;
  transition: color .4s var(--ease);
}
.stamp span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}


/* ============================================================
   SHARED — chapter heads, kickers, cta
   ============================================================ */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.kicker i {
  display: inline-block;
  width: 22px; height: 1.5px;
  background: var(--moss);
}
.kicker--right { margin-left: auto; }

.chapter-head {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: baseline;
  gap: 18px;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.chapter-num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(72px, 11vw, 140px);
  line-height: .85;
  letter-spacing: -0.04em;
  color: var(--moss);
}
.chapter-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink);
  align-self: end;
  padding-bottom: 14px;
}
.chapter-rule {
  align-self: end;
  height: 1px;
  background: var(--rule);
  margin-bottom: 22px;
}
.chapter-head--invert .chapter-num   { color: var(--bg); }
.chapter-head--invert .chapter-label { color: var(--bg); }
.chapter-head--invert .chapter-rule  { background: rgba(255,255,255,.45); }

.cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: auto;
  justify-self: start;          /* don't stretch when nested inside a grid */
  padding: 16px 22px 16px 26px;
  background: var(--moss);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.cta i {
  display: inline-flex;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--moss);
  align-items: center;
  justify-content: center;
  font-style: normal;
  transition: transform .35s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.cta:hover            { background: var(--moss-deep); transform: translateY(-2px); }
.cta:hover i          { transform: translateX(4px); }

.cta--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule);
}
.cta--ghost i {
  background: var(--ink);
  color: var(--bg);
}
.cta--ghost:hover {
  background: var(--moss-deep);
  color: var(--bg);
  border-color: var(--moss-deep);
}
.cta--ghost:hover i {
  background: var(--bg);
  color: var(--moss-deep);
}


/* ============================================================
   HERO  (00)
   ============================================================ */
.hero {
  position: relative;
  padding: calc(var(--topbar-h) + 36px) var(--side) 0;
  min-height: 100vh;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  grid-template-rows: auto 1fr auto;
  gap: clamp(28px, 4vw, 56px) clamp(40px, 6vw, 80px);
  align-items: start;
  max-width: 1480px;
  margin: 0 auto;
  min-height: calc(100vh - var(--topbar-h) - 100px);
}

.hero__head {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}

.hero__title {
  grid-column: 1 / 2;
  align-self: center;
  margin: 0;
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(56px, 9vw, 158px);
  line-height: .92;
  letter-spacing: -0.045em;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}
.hero__title .line {
  display: block;
}
.hero__title .line--mute {
  color: var(--ink-soft);
  font-style: italic;
  font-weight: 300;
  padding-left: clamp(60px, 7vw, 110px);
}
.hero__title .line--swap {
  position: relative;
  display: block;
  color: var(--moss);
  font-style: italic;
}
.swap {
  display: inline-grid;
  vertical-align: top;
  overflow: hidden;
  line-height: .92;
  /* breathing room inside the clip — for descenders (g, p), umlauts, italic period overhang */
  padding: .12em .18em .28em 0;
  margin: -.12em -.18em -.28em 0;   /* … and compensate so layout stays the same */
}
.swap em {
  grid-area: 1 / 1;                 /* every word in the same cell — overlays cleanly */
  font-style: italic;
  font-weight: 400;
  white-space: nowrap;
  transform: translateY(130%);
  opacity: 0;
  transition: transform .7s var(--ease), opacity .55s var(--ease);
}
.swap em.is-in {
  transform: translateY(0);
  opacity: 1;
}
.swap em.is-out {
  transform: translateY(-110%);
  opacity: 0;
}

.hero__bottom {
  grid-column: 1 / 2;
  display: grid;
  gap: 20px;
  max-width: 540px;
  padding-bottom: 32px;
}
.hero__lede {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.42;
  color: var(--ink);
}
.hero__lede em {
  font-style: italic;
  color: var(--moss);
}

.hero__cluster {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}
.hero__qualities {
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.hero__qualities li {
  position: relative;
}
.hero__qualities li + li::before {
  content: "·";
  position: absolute;
  left: -12px;
  color: var(--moss);
}

.hero__media {
  grid-column: 2 / 3;
  grid-row: 2 / 4;
  align-self: stretch;
  margin: 0;
  display: grid;
  gap: 12px;
}
.hero__media-frame {
  position: relative;
  border: 1px solid var(--rule);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--ink);
  box-shadow: 12px 12px 0 0 var(--moss);
}
.hero__media-frame video {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: contrast(1.06) saturate(.9);
}
.hero__media figcaption {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.ticker {
  position: relative;
  margin: 36px calc(var(--side) * -1) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--ink);
  color: var(--bg);
  overflow: hidden;
}
.ticker__track {
  display: inline-flex;
  align-items: center;
  gap: 36px;
  padding: 18px 0;
  white-space: nowrap;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(28px, 3.6vw, 48px);
  letter-spacing: -0.02em;
  animation: marquee 32s linear infinite;
}
.ticker__track span:not(:nth-child(even)) { color: var(--bg); }
.ticker__track span:nth-child(even) { color: var(--moss); padding: 0 6px; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* ============================================================
   MANIFEST  (01)
   ============================================================ */
.manifest {
  position: relative;
  padding: clamp(96px, 12vw, 160px) var(--side) clamp(80px, 10vw, 140px);
  background: var(--bg);
  border-top: 1px solid var(--rule);
}

.manifest__intro {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(36px, 5vw, 80px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  max-width: 18ch;
  margin: 0 0 clamp(48px, 6vw, 96px);
}
.manifest__logo-panel {
  position: absolute;
  top: clamp(128px, 12vw, 190px);
  right: var(--side);
  display: grid;
  place-items: center;
  width: min(44vw, 820px);
  min-height: clamp(280px, 25vw, 470px);
  padding: clamp(18px, 3vw, 52px);
}

.manifest__logo-panel img {
  width: min(100%, 620px);
  height: auto;
  object-fit: contain;
}

.logo--cropped {
  clip-path: inset(0 0 11% 0);
}
.manifest__intro em {
  color: var(--moss);
  font-style: italic;
}

.manifest__quote {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 760px;
  margin: 0 0 0 auto;
  padding: 40px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.manifest__quote p {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.32;
  letter-spacing: -0.01em;
}
.manifest__quote em {
  color: var(--moss);
  font-style: italic;
}
.manifest__quote cite {
  font-family: var(--mono);
  font-size: 11px;
  font-style: normal;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.dropcap {
  float: left;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 5.2em;
  line-height: .82;
  margin: 8px 28px 0 0;
  padding-right: 4px;       /* extra gutter — italic "I" leans right at the top */
  color: var(--moss);
}

.manifest__principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 56px);
  margin: clamp(56px, 7vw, 100px) 0 0;
}
.manifest__principles article {
  position: relative;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
.manifest__principles article > span {
  position: absolute;
  top: -14px;
  left: 0;
  background: var(--bg);
  padding-right: 14px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--moss);
}
.manifest__principles h3 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-weight: 450;
  font-size: clamp(24px, 2.3vw, 32px);
  letter-spacing: -0.015em;
}
.manifest__principles p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.manifest__strap {
  margin: clamp(64px, 8vw, 120px) 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 350;
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-align: center;
}
.manifest__strap em {
  color: var(--moss);
}


/* ============================================================
   SERVICES  (02)
   ============================================================ */
.services {
  background: var(--ink);
  color: var(--bg);
  padding: clamp(96px, 12vw, 160px) var(--side) clamp(96px, 12vw, 160px);
  position: relative;
}
.services::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(26,26,26,.32), transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(26,26,26,.20), transparent 55%);
  pointer-events: none;
}
.services > * { position: relative; z-index: 1; }

.services .chapter-num   { color: var(--moss-bright); }
.services .chapter-label { color: var(--bg); }
.services .chapter-rule  { background: rgba(255,255,255,.35); }

.services__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: end;
  margin-bottom: clamp(56px, 7vw, 96px);
}
.services__head h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(44px, 6.4vw, 108px);
  line-height: .94;
  letter-spacing: -0.04em;
}
.services__head h2 em {
  color: var(--moss-bright);
  font-style: italic;
}
.services__head p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(245,242,236,.62);
  max-width: 38ch;
}

/* The asymmetric grid */
.services__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: var(--gutter);
}
.svc {
  position: relative;
  padding: 32px;
  border: 1px solid rgba(245,242,236,.18);
  background: rgba(245,242,236,.025);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  cursor: pointer;
  transition: background .4s var(--ease), border-color .4s var(--ease), transform .5s var(--ease);
}
.svc::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,26,26,0) 0%, rgba(26,26,26,.18) 100%);
  opacity: 0;
  transition: opacity .5s var(--ease);
  pointer-events: none;
}
.svc:hover {
  background: rgba(245,242,236,.06);
  border-color: rgba(245,242,236,.34);
}
.svc:hover::after { opacity: 1; }
.svc.is-open {
  background: var(--moss);
  border-color: var(--moss);
}
.svc.is-open::after { opacity: 0; }

.svc__num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(48px, 5vw, 72px);
  line-height: 1;
  color: var(--moss-bright);
  transition: color .4s var(--ease);
}
.svc.is-open .svc__num { color: var(--bg); }

.svc h3 {
  margin: 12px 0 6px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 2.3vw, 34px);
  letter-spacing: -0.015em;
}
.svc__tag {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(245,242,236,.6);
}
.svc.is-open .svc__tag { color: rgba(245,242,236,.8); }

.svc__line {
  margin: 24px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.32;
  color: rgba(245,242,236,.85);
}
.svc__line em {
  font-style: italic;
  color: var(--moss-bright);
  transition: color .4s var(--ease);
}
.svc.is-open .svc__line em { color: var(--bg); }

.svc__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .55s var(--ease), margin-top .55s var(--ease);
  margin-top: 0;
}
.svc__body p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(245,242,236,.78);
}
.svc__body p + p { margin-top: 14px; }
.svc.is-open .svc__body {
  max-height: 420px;
  margin-top: 18px;
}

/* uniform 3-per-row grid — last two cards fill the final row */
.svc--01, .svc--02, .svc--03 { grid-column: span 4; }
.svc--04, .svc--05             { grid-column: span 6; }

/* Handwerkerservice: same rhythm — 3-per-row, last two fill final row */
.svc-hw                              { grid-column: span 4; }
.svc-hw:nth-child(7),
.svc-hw:nth-child(8)                 { grid-column: span 6; }


/* ============================================================
   SERVICES TABS + HANDWERKERSERVICE
   ============================================================ */
.services__tabs {
  display: flex;
  gap: 0;
  margin-bottom: clamp(48px, 6vw, 80px);
  border-bottom: 1px solid rgba(245,242,236,.22);
}
.services__tab {
  position: relative;
  padding: 14px 32px;
  background: transparent;
  border: none;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(245,242,236,.45);
  cursor: pointer;
  transition: color .3s var(--ease);
}
.services__tab::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -1px;
  height: 2px;
  background: var(--moss-bright);
  transition: right .35s var(--ease);
}
.services__tab:hover { color: rgba(245,242,236,.75); }
.services__tab.is-active {
  color: var(--bg);
}
.services__tab.is-active::after { right: 0; }

.services__panel {
  display: none;
}
.services__panel.is-active {
  display: block;
}

/* Handwerkerservice card grid is defined above with svc--01–05 */
.handwerker__closing {
  margin: clamp(40px, 5vw, 72px) 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 350;
  font-size: clamp(22px, 2.4vw, 36px);
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--moss-bright);
}


/* ============================================================
   WIESO  (03)
   ============================================================ */
.wieso {
  background: var(--moss-deep);
  color: var(--bg);
  padding: clamp(96px, 12vw, 160px) var(--side);
  position: relative;
}
.wieso::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.06), transparent 50%);
  pointer-events: none;
}
.wieso > * { position: relative; z-index: 1; }

.wieso__layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto auto;
  gap: clamp(40px, 5vw, 80px);
}

.wieso__erasure {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  display: grid;
  gap: clamp(18px, 2vw, 30px);
}
.erase {
  position: relative;
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(34px, 5vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.erase .strike,
.erase .reveal { display: block; }
.erase .strike {
  position: relative;
  color: rgba(245,242,236,.42);
  white-space: nowrap;
  width: max-content;
  max-width: 100%;
}
.erase .strike::after {
  content: "";
  position: absolute;
  top: 50%; left: 0;
  width: 0;
  height: 3px;
  background: var(--bg);
  transform: translateY(-50%);
  transition: width .9s var(--ease);
}
.erase .reveal {
  font-style: italic;
  color: var(--bg);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  transition-delay: .5s;
}
.erase.struck .strike::after { width: 100%; }
.erase.struck .reveal { opacity: 1; transform: translateY(0); }

.wieso__video {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
  margin: 0;
  display: grid;
  gap: 10px;
  align-content: start;
}
.wieso__video video {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid rgba(245,242,236,.18);
  filter: contrast(1.05) saturate(.85);
}
.wieso__video figcaption {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  color: rgba(245,242,236,.55);
  text-transform: uppercase;
}

.wieso__creed {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 40px);
}
.wieso__creed article {
  border-top: 1px solid rgba(245,242,236,.25);
  padding-top: 20px;
}
.wieso__creed span {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--bg);
  opacity: .7;
  margin-bottom: 14px;
}
.wieso__creed h3 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 1.8vw, 26px);
  letter-spacing: -0.01em;
}
.wieso__creed p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(245,242,236,.7);
}

.wieso__closing {
  grid-column: 1 / -1;
  grid-row: 3 / 4;
  margin: clamp(32px, 4vw, 56px) 0 0;
  padding-top: clamp(32px, 4vw, 56px);
  border-top: 1px solid rgba(245,242,236,.25);
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.02em;
}
.wieso__closing em {
  font-style: italic;
  color: var(--bg);
  text-decoration: underline;
  text-decoration-color: rgba(245,242,236,.4);
  text-underline-offset: 6px;
}


/* ============================================================
   VERTRAUEN  (05)
   ============================================================ */
.trust {
  padding: clamp(96px, 12vw, 160px) var(--side);
  background: var(--bg);
}

.trust__lead {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: end;
  margin-bottom: clamp(56px, 7vw, 96px);
  padding-bottom: clamp(40px, 5vw, 72px);
  border-bottom: 1px solid var(--rule);
}
.trust__lead h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(40px, 5.4vw, 88px);
  line-height: .98;
  letter-spacing: -0.035em;
}
.trust__lead h2 em {
  color: var(--moss);
  font-style: italic;
}
.trust__lead p {
  margin: 0 0 28px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.trust__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
}
.trust__cards article {
  position: relative;
  padding: clamp(28px, 3vw, 44px);
  background: var(--bg-2);
  border: 1px solid var(--rule);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 20px;
  min-height: 320px;
  cursor: pointer;
  transition:
    transform .5s var(--ease),
    background .45s var(--ease),
    border-color .45s var(--ease),
    color .45s var(--ease);
}
.trust__cards article:hover {
  transform: translateY(-6px);
  background: var(--moss-deep);
  border-color: var(--moss-deep);
  color: #ffffff;
}
.trust__cards article:nth-child(even) {
  transform: translateY(28px);
}
.trust__cards article:nth-child(even):hover {
  transform: translateY(22px);
}
.trust__cards header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.trust__cards header > span:first-child {
  font-family: var(--serif);
  font-style: italic;
  font-size: 44px;
  font-weight: 400;
  color: var(--moss);
  line-height: 1;
  transition: color .45s var(--ease);
}
.trust__cards article:hover header > span:first-child {
  color: var(--moss-bright);
}
.badge {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 6px 10px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--ink);
  transition: color .45s var(--ease), border-color .45s var(--ease);
}
.trust__cards article:hover .badge {
  color: #ffffff;
  border-color: rgba(255,255,255,.55);
}
.trust__cards h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 2.2vw, 30px);
  letter-spacing: -0.015em;
  align-self: end;
  transition: color .45s var(--ease);
}
.trust__cards article:hover h3 { color: #ffffff; }
.trust__cards p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  transition: color .45s var(--ease);
}
.trust__cards article:hover p { color: rgba(255,255,255,.82); }

.trust__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--moss);
  transition: color .45s var(--ease), gap .35s var(--ease);
}
.trust__more i {
  display: inline-block;
  font-style: normal;
  transition: transform .35s var(--ease);
}
.trust__cards article:hover .trust__more { color: var(--moss-bright); gap: 14px; }
.trust__cards article:hover .trust__more i { transform: translateX(4px); }
.trust__cards article:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 4px;
}

/* ============================================================
   MODAL  (trust card detail panel)
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  visibility: hidden;
}
.modal.is-open {
  pointer-events: auto;
  visibility: visible;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8,12,9,.55);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  opacity: 0;
  transition: opacity .5s var(--ease);
  cursor: pointer;
}
.modal.is-open .modal__backdrop { opacity: 1; }

.modal__panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(720px, 94vw);
  background: #ffffff;
  padding: clamp(48px, 6vw, 80px) clamp(28px, 4vw, 72px);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(100%);
  transition: transform .6s var(--ease);
  box-shadow: -24px 0 80px rgba(0,0,0,.18);
  display: grid;
  align-content: start;
  gap: 0;
}
.modal.is-open .modal__panel { transform: translateX(0); }

/* Custom scrollbar inside modal */
.modal__panel::-webkit-scrollbar { width: 4px; }
.modal__panel::-webkit-scrollbar-thumb { background: var(--rule-soft); border-radius: 4px; }

.modal__close {
  position: sticky;
  top: 0;
  justify-self: end;
  width: 44px; height: 44px;
  margin-right: -8px;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 2;
  transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.modal__close span {
  position: absolute;
  width: 16px; height: 1.5px;
  background: var(--ink);
  transition: background .3s var(--ease);
}
.modal__close span:nth-child(1) { transform: rotate(45deg); }
.modal__close span:nth-child(2) { transform: rotate(-45deg); }
.modal__close:hover {
  background: var(--moss-deep);
  border-color: var(--moss-deep);
  transform: rotate(90deg);
}
.modal__close:hover span { background: #fff; }

.modal__head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-top: -28px;          /* tuck under the sticky close */
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}
.modal__num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(36px, 4vw, 52px);
  color: var(--moss);
  line-height: 1;
}
.modal__path {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.modal__title {
  margin: 0 0 28px;
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.modal__intro {
  margin: 0 0 44px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.5;
  color: var(--ink);
}

.modal__sections {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
}
.modal__sec {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.modal__sec::before {
  counter-increment: msec;
  content: counter(msec, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--moss);
  padding-top: 4px;
}
.modal__sections { counter-reset: msec; }
.modal__sec h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-weight: 450;
  font-size: clamp(20px, 1.8vw, 26px);
  letter-spacing: -0.01em;
}
.modal__sec p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.modal__foot {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}

@media (max-width: 600px) {
  .modal__panel { width: 100vw; }
  .modal__sec { grid-template-columns: 1fr; gap: 8px; }
  .modal__sec::before { padding-top: 0; }
}


/* ============================================================
   KONTAKT  (06)
   ============================================================ */
.contact {
  background: var(--moss);
  color: var(--bg);
  padding: clamp(96px, 12vw, 160px) var(--side);
}

.contact .chapter-num   { color: var(--bg); }
.contact .chapter-label { color: var(--bg); }
.contact .chapter-rule  { background: rgba(245,242,236,.4); }

.contact__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.contact__lead h2 {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(40px, 5.4vw, 84px);
  line-height: .96;
  letter-spacing: -0.035em;
}
.contact__answer {
  margin: 0 0 40px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.contact__address {
  display: grid;
  gap: 4px;
  margin: 0 0 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(245,242,236,.32);
  font-style: normal;
  font-family: var(--mono);
  font-size: 13.5px;
  letter-spacing: .04em;
}
.contact__address .lbl {
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(245,242,236,.65);
  margin-bottom: 8px;
}
.contact__signal {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
}
.contact__signal li {
  padding: 8px 14px;
  border: 1px solid rgba(245,242,236,.35);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.form {
  display: grid;
  gap: 22px;
  padding: clamp(28px, 3vw, 44px);
  background: rgba(245,242,236,.06);
  border: 1px solid rgba(245,242,236,.22);
}
.form__index {
  margin: 0 0 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(245,242,236,.6);
}
.field {
  position: relative;
  display: block;
}
.field input,
.field textarea {
  width: 100%;
  padding: 22px 0 10px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(245,242,236,.35);
  color: var(--bg);
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: -0.005em;
  resize: vertical;
  outline: none;
  transition: border-color .3s var(--ease);
}
.field textarea { min-height: 96px; line-height: 1.45; }
.field span {
  position: absolute;
  top: 18px;
  left: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(245,242,236,.65);
  transition: transform .3s var(--ease), color .3s var(--ease), font-size .3s var(--ease);
  pointer-events: none;
}
.field input:focus + span,
.field input:not(:placeholder-shown) + span,
.field textarea:focus + span,
.field textarea:not(:placeholder-shown) + span {
  transform: translateY(-18px);
  font-size: 9.5px;
  color: var(--bg);
}
.field input:focus,
.field textarea:focus {
  border-bottom-color: var(--bg);
}

.form__submit {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: auto;
  justify-self: start;
  margin-top: 12px;
  padding: 16px 22px 16px 26px;
  background: var(--bg);
  color: var(--moss-deep);
  border: 0;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.form__submit i {
  display: inline-flex;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--moss);
  color: var(--bg);
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-size: 13px;
  transition: transform .35s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.form__submit:hover {
  background: var(--moss-deep);
  color: var(--bg);
}
.form__submit:hover i {
  transform: translateX(4px);
  background: var(--bg);
  color: var(--moss-deep);
}
.form__status {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: rgba(245,242,236,.75);
  min-height: 1.2em;
}


/* ============================================================
   FOOTER  (07)
   ============================================================ */
.foot {
  background: var(--bg);
  border-top: 1px solid var(--rule);
  padding: clamp(80px, 10vw, 140px) var(--side) 40px;
  overflow: hidden;
}

.foot__type {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  margin: 0 0 clamp(48px, 6vw, 88px);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.foot__type a {
  display: grid;
  place-items: center;
  padding: 4px 0;
  font-family: var(--sans);
  font-style: normal;
  font-weight: 900;
  font-size: clamp(80px, 14vw, 220px);
  line-height: .9;
  letter-spacing: -0.045em;
  color: var(--ink);
  border-right: 1px solid var(--rule);
  transition: color .35s var(--ease), background .35s var(--ease);
}
.foot__type a:last-child { border-right: 0; }
.foot__type a:hover {
  color: var(--bg);
  background: var(--moss);
}

.foot__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: clamp(28px, 4vw, 72px);
  padding-bottom: 56px;
  border-bottom: 1px solid var(--rule);
}

.foot__brand {
  display: grid;
  justify-items: start;
  align-content: start;
  max-width: 640px;
}

.foot__logo {
  width: clamp(220px, 24vw, 380px);
  max-width: 100%;
  height: auto;
  margin-bottom: clamp(22px, 3vw, 38px);
  object-fit: contain;
}

.foot__claim {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(26px, 2.6vw, 36px);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.foot__brand address {
  font-family: var(--mono);
  font-style: normal;
  font-size: 13px;
  letter-spacing: .03em;
  color: var(--ink-soft);
  line-height: 1.65;
}

.foot__nav {
  display: grid;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.foot__nav a {
  padding: 8px 0;
  border-bottom: 1px solid var(--rule-soft);
  transition: padding-left .3s var(--ease), color .3s var(--ease);
}
.foot__nav a:hover {
  padding-left: 14px;
  color: var(--moss);
}

.foot__legal details {
  border-bottom: 1px solid var(--rule-soft);
  padding: 14px 0;
}
.foot__legal summary {
  cursor: pointer;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.foot__legal summary::-webkit-details-marker { display: none; }
.foot__legal summary::after {
  content: "+";
  font-family: var(--mono);
  color: var(--moss);
}
.foot__legal details[open] summary::after { content: "−"; }
.foot__legal p {
  margin: 12px 0 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 50ch;
}

.foot__base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.foot__base a {
  color: var(--ink);
  transition: color .25s var(--ease);
}
.foot__base a:hover { color: var(--moss); }


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1100px) {
  .topbar__nav a { font-size: 11px; }
  .topbar__nav a span { display: none; }

  .hero__inner { grid-template-columns: 1fr; gap: 32px; min-height: 0; }
  .hero__title { grid-column: 1; }
  .hero__bottom { grid-column: 1; }
  .hero__media { grid-column: 1; grid-row: auto; }
  .hero__media-frame { aspect-ratio: 16 / 10; box-shadow: 8px 8px 0 0 var(--moss); }

  .manifest__logo-panel {
    position: relative;
    top: auto;
    right: auto;
    width: min(100%, 620px);
    min-height: 0;
    margin: 0 0 clamp(36px, 6vw, 72px) auto;
    padding: 0;
  }

  .services__grid { grid-template-columns: repeat(6, 1fr); }
  .svc--01 { grid-column: span 6; }
  .svc--02 { grid-column: span 3; }
  .svc--03 { grid-column: span 3; }
  .svc--04 { grid-column: span 6; }
  .svc--05 { grid-column: span 6; }

  .technik__layout { grid-template-columns: 1fr 1fr; }
  .technik__copy   { grid-column: 1 / -1; grid-row: auto; }
  .technik__list   { grid-column: 1 / 2; grid-row: auto; }
  .technik__img    { grid-column: 2 / 3; grid-row: auto; }

  .wieso__layout { grid-template-columns: 1fr; }
  .wieso__video { grid-column: 1; grid-row: auto; max-width: 480px; }

  .trust__lead { grid-template-columns: 1fr; align-items: start; }
  .trust__cards { grid-template-columns: repeat(2, 1fr); }
  .trust__cards article:nth-child(even) { transform: none; }
  .trust__cards article:nth-child(even):hover { transform: translateY(-6px); }
  .trust__cards article:nth-child(3) { grid-column: 1 / -1; }

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

  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__legal { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --topbar-h: 60px; }

  body { font-size: 15px; }

  .topbar { grid-template-columns: auto 1fr auto; gap: 12px; padding: 0 20px; }
  .topbar__mark span { display: none; }
  .topbar__nav, .topbar__meta { display: none; }
  .topbar__menu { display: inline-flex; grid-column: 3; }

  .rail { display: none; }
  .stamp { display: none; }

  .hero { padding-top: calc(var(--topbar-h) + 28px); }
  .hero__head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .kicker--right { margin-left: 0; }
  .hero__title { font-size: clamp(56px, 16vw, 84px); }
  .hero__title .line--mute { padding-left: 30px; }
  .hero__cluster { flex-direction: column; align-items: flex-start; }
  .hero__media { display: none; }

  .manifest__logo-panel { display: none; }

  .ticker__track { font-size: 26px; padding: 14px 0; gap: 22px; }

  .manifest__intro { font-size: clamp(32px, 8vw, 48px); }
  .manifest__logo-panel {
    width: 100%;
    margin: 0 0 36px;
  }
  .manifest__principles { grid-template-columns: 1fr; gap: 20px; }
  .manifest__strap { font-size: clamp(26px, 7vw, 36px); }

  .services__head { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .svc { padding: 26px; }
  .svc--01, .svc--02, .svc--03, .svc--04, .svc--05,
  .svc-hw { grid-column: 1; }
  .svc__body { max-height: none; margin-top: 18px; }   /* always open on mobile */
  .svc__body p { color: rgba(245,242,236,.78); }

  .services__tab { padding: 12px 18px; font-size: 10.5px; }

  .wieso__creed { grid-template-columns: 1fr; gap: 24px; }
  .erase { font-size: clamp(30px, 9vw, 44px); }
  .erase .strike { white-space: normal; }

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

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

  .foot__type { grid-template-columns: repeat(3, 1fr); }
  .foot__type a:nth-child(3) { border-right: 0; }
  .foot__type a { font-size: clamp(64px, 22vw, 120px); }
  .foot__grid { grid-template-columns: 1fr; }
  .foot__base { flex-direction: column; gap: 10px; align-items: flex-start; }
}

/* === Mobile layout repair === */
@media (max-width: 760px) {
  :root {
    --side: clamp(20px, 6vw, 30px);
  }

  .topbar {
    height: var(--topbar-h);
    border-bottom-width: 1px;
  }

  .topbar::after {
    display: none;
  }

  .topbar__mark img {
    width: 30px;
    height: 30px;
  }

  .drawer {
    padding: 24px var(--side) 30px;
  }

  .drawer nav a {
    min-width: 0;
    font-size: 22px;
  }

  .chapter-head {
    grid-template-columns: auto minmax(0, auto) minmax(36px, 1fr);
    gap: 12px;
    margin-bottom: 34px;
  }

  .chapter-num {
    font-size: clamp(58px, 18vw, 84px);
  }

  .chapter-label {
    padding-bottom: 9px;
    font-size: 10px;
    letter-spacing: .18em;
  }

  .chapter-rule {
    margin-bottom: 16px;
  }

  .hero,
  .manifest,
  .services,
  .technik,
  .wieso,
  .trust,
  .contact,
  .foot {
    padding-left: var(--side);
    padding-right: var(--side);
  }

  .hero__inner,
  .hero__title,
  .hero__bottom,
  .hero__lede,
  .hero__media,
  .manifest__intro,
  .manifest__logo-panel,
  .manifest__quote,
  .manifest__principles,
  .manifest__strap,
  .services__head,
  .services__grid,
  .technik__layout,
  .technik__flow,
  .technik__list,
  .wieso__layout,
  .trust__lead,
  .trust__cards,
  .contact__layout,
  .foot__grid {
    width: 100%;
    max-width: calc(100vw - var(--side) - var(--side));
    min-width: 0;
  }

  p,
  h1,
  h2,
  h3,
  li,
  address {
    overflow-wrap: anywhere;
  }

  .hero {
    min-height: 0;
    padding-top: calc(var(--topbar-h) + 28px);
  }

  .hero__inner {
    display: grid;
    gap: 28px;
    min-height: 0;
    min-width: 0;
    width: 100%;
  }

  .hero__inner > *,
  .hero__bottom,
  .hero__lede {
    min-width: 0;
    max-width: 100%;
  }

  .hero__head {
    display: none;
  }

  .hero__title {
    width: 100%;
    max-width: 100%;
    font-size: clamp(42px, 13vw, 58px);
    line-height: .98;
    letter-spacing: -0.035em;
    overflow-wrap: anywhere;
  }

  .swap {
    display: grid;
    width: 100%;
    max-width: 100%;
  }

  .swap em {
    white-space: normal;
  }

  .hero__title .line--mute {
    padding-left: 28px;
  }

  .hero__bottom {
    max-width: none;
    padding-bottom: 8px;
  }

  .hero__lede {
    font-size: 17px;
    line-height: 1.45;
  }

  .cta {
    max-width: 100%;
    min-height: 52px;
    padding: 12px 12px 12px 22px;
    font-size: 11px;
    letter-spacing: .13em;
  }

  .hero__qualities {
    width: 100%;
    gap: 10px;
    font-size: 9.5px;
    letter-spacing: .12em;
  }

  .hero__qualities li + li::before {
    left: -8px;
  }

  .hero__media-frame {
    aspect-ratio: 4 / 5;
    box-shadow: none;
  }

  [data-parallax-target] {
    transform: none !important;
  }

  .ticker {
    display: none;
  }

  .manifest {
    padding-top: 64px;
    padding-bottom: 70px;
  }

  .manifest__intro {
    max-width: 100%;
    margin-bottom: 28px;
    font-size: clamp(30px, 8.5vw, 40px);
    line-height: 1.08;
  }

  .manifest__logo-panel {
    width: min(100%, 330px);
    margin: 0 auto 34px;
    padding: 0;
  }

  .manifest__logo-panel img {
    width: 100%;
  }

  .manifest__quote {
    max-width: none;
    margin: 0;
    padding: 28px 0;
  }

  .manifest__quote p {
    font-size: clamp(22px, 7vw, 30px);
    line-height: 1.22;
  }

  .dropcap {
    font-size: 4em;
    margin: 4px 18px 0 0;
  }

  .manifest__principles {
    margin-top: 48px;
  }

  .manifest__principles article {
    padding-top: 26px;
  }

  .manifest__strap {
    margin-top: 46px;
    text-align: left;
  }

  .services {
    padding-top: 66px;
    padding-bottom: 72px;
  }

  .services__head {
    gap: 18px;
    margin-bottom: 34px;
  }

  .services__head h2 {
    font-size: clamp(38px, 12vw, 58px);
    line-height: 1;
  }

  .services__grid {
    display: grid;
    gap: 14px;
  }

  .svc {
    min-height: 0;
    padding: 22px;
    cursor: default;
  }

  .svc__num {
    font-size: 42px;
  }

  .svc h3 {
    font-size: 26px;
  }

  .svc__line {
    margin-top: 18px;
  }

  .technik {
    padding-top: 64px;
    padding-bottom: 72px;
  }

  .technik__layout,
  .technik__copy,
  .technik__list,
  .technik__img {
    grid-column: 1 / -1;
    grid-row: auto;
    min-width: 0;
    width: 100%;
  }

  .technik__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .technik__copy h2 {
    font-size: clamp(38px, 12vw, 58px);
    line-height: 1;
  }

  .technik__copy p {
    max-width: none;
  }

  .technik__flow {
    max-width: none;
  }

  .technik__list li {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 14px;
    padding: 20px 0;
  }

  .t-text {
    font-size: clamp(21px, 6.5vw, 28px);
    line-height: 1.22;
  }

  .technik__img {
    max-height: none;
    order: 3;
  }

  .technik__img img,
  .technik__img video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  .wieso {
    padding-top: 64px;
    padding-bottom: 0;
  }

  .wieso__layout,
  .wieso__erasure,
  .wieso__creed,
  .wieso__video,
  .wieso__closing {
    grid-column: 1 / -1;
    grid-row: auto;
    min-width: 0;
  }

  .wieso__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .erase {
    width: 100%;
    max-width: 100%;
    font-size: clamp(28px, 9vw, 38px);
    overflow-wrap: anywhere;
  }

  .erase .strike,
  .erase .reveal {
    width: 100%;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .erase .strike {
    display: none;
  }

  .erase .reveal {
    display: block;
    opacity: 1;
    transform: none;
    color: var(--bg);
  }

  .wieso__video {
    max-width: none;
    width: 100%;
    margin: 0;
  }

  .wieso__video video {
    width: 100%;
    aspect-ratio: 16 / 10;
  }

  .wieso__video figcaption {
    padding: 0 0 24px;
  }

  .wieso__creed {
    gap: 0;
  }

  .wieso__creed article {
    padding: 22px 0;
    border-top-color: rgba(245,242,236,.22);
  }

  .wieso__closing {
    margin-top: 0;
    padding-top: 28px;
    font-size: clamp(26px, 8vw, 34px);
  }

  .trust {
    padding-top: 64px;
    padding-bottom: 72px;
  }

  .trust__lead {
    gap: 22px;
    margin-bottom: 34px;
    padding-bottom: 34px;
  }

  .trust__lead h2 {
    font-size: clamp(38px, 11vw, 56px);
  }

  .trust__cards {
    gap: 14px;
  }

  .trust__cards article {
    min-height: 0;
    padding: 24px;
  }

  .contact {
    padding-top: 64px;
    padding-bottom: 72px;
  }

  .contact__lead h2 {
    font-size: clamp(38px, 11vw, 56px);
  }

  .form {
    padding: 24px;
  }

  .modal:not(.is-open) .modal__panel {
    display: none;
  }

  [data-reveal],
  [data-rise],
  .chapter-head .chapter-num,
  .chapter-head .chapter-label,
  .chapter-head .chapter-rule {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }

  .foot {
    padding-top: 58px;
    padding-bottom: 34px;
  }

  .foot__type {
    display: none;
  }

  .foot__grid {
    gap: 34px;
    padding-bottom: 34px;
  }

  .foot__logo {
    width: min(100%, 340px);
    margin-bottom: 24px;
  }

  .foot__claim {
    font-size: clamp(28px, 8vw, 36px);
  }

  .foot__nav a {
    padding: 14px 0;
  }

  /* Keep the phone layout aligned and the display type intact. */
  .topbar {
    padding-inline: var(--side);
  }

  p,
  address {
    overflow-wrap: break-word;
  }

  h1,
  h2,
  h3,
  li {
    overflow-wrap: normal;
    word-break: normal;
  }

  /* Mobile hero: quiet full-bleed motion behind fully legible copy. */
  .hero {
    isolation: isolate;
    min-height: 0;
    padding-top: calc(var(--topbar-h) + 24px);
    padding-bottom: clamp(32px, 8vw, 42px);
    background: var(--bg);
  }

  .hero__inner {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-width: 100%;
    min-height: 0;
  }

  .hero__title,
  .hero__bottom {
    position: relative;
    z-index: 1;
  }

  .hero__title {
    font-size: clamp(46px, 15.5vw, 66px);
    line-height: .91;
    letter-spacing: -0.045em;
    margin-top: clamp(36px, 10vw, 56px);
    overflow-wrap: normal;
    word-break: normal;
  }

  .hero__title .line--mute {
    padding-left: clamp(20px, 7vw, 28px);
  }

  .swap {
    min-width: 0;
    overflow: hidden;
  }

  .swap em {
    min-width: 0;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
  }

  .hero__bottom {
    width: 100%;
    max-width: 100%;
    margin-top: clamp(56px, 15vw, 84px);
    padding: 0;
    gap: 18px;
  }

  .hero__lede {
    max-width: 100%;
    font-size: clamp(16px, 4.3vw, 17px);
    line-height: 1.5;
  }

  .hero__cluster {
    width: 100%;
    gap: 18px;
  }

  .hero .cta {
    width: 100%;
    max-width: 420px;
    justify-content: space-between;
  }

  .hero__qualities {
    justify-content: space-between;
    gap: 8px;
    max-width: 420px;
  }

  .hero__media {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 0;
    width: auto;
    max-width: none;
    height: auto;
    margin: 0;
    overflow: hidden;
    pointer-events: none;
  }

  .hero__media-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .hero__media-frame video {
    width: 100%;
    max-width: none;
    height: 100%;
    object-fit: cover;
    object-position: 60% center;
    opacity: .08;
    filter: grayscale(1) contrast(.86) brightness(1.08);
  }

  .hero__media figcaption {
    display: none;
  }

  .services__tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
  }

  .services__tab {
    min-width: 0;
    width: 100%;
    padding: 12px 4px;
    font-size: clamp(9px, 2.6vw, 10.5px);
    letter-spacing: .02em;
    text-align: center;
    white-space: nowrap;
  }
}


/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */

/* ── Generic reveal ── */
[data-reveal] {
  opacity: 0;
  transition:
    opacity 1s var(--ease),
    transform 1s var(--ease),
    filter 1s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal="up"], [data-reveal=""] { transform: translateY(40px); }
[data-reveal="down"]                  { transform: translateY(-40px); }
[data-reveal="left"]                  { transform: translateX(-56px); }
[data-reveal="right"]                 { transform: translateX(56px); }
[data-reveal="scale"]                 { transform: scale(.94); }
[data-reveal="blur"]                  { transform: translateY(22px); filter: blur(8px); }

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

/* ── Chapter head choreography (number → label → rule) ── */
.chapter-head .chapter-num {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1s var(--ease), transform 1.1s var(--ease);
}
.chapter-head .chapter-label {
  opacity: 0;
  transition: opacity 1s var(--ease) .18s;
}
.chapter-head .chapter-rule {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.15s var(--ease) .28s;
}
.chapter-head.is-visible .chapter-num   { opacity: 1; transform: none; }
.chapter-head.is-visible .chapter-label { opacity: 1; }
.chapter-head.is-visible .chapter-rule  { transform: scaleX(1); }

/* ── Big headline & display copy: rise-into-view ── */
.hero__title .line,
.manifest__intro,
.manifest__strap,
.services__head h2,
.technik__copy h2,
.trust__lead h2,
.contact__lead h2 {
  --rise-delay: 0ms;
}
[data-rise] {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 1.05s var(--ease), transform 1.15s var(--ease);
  transition-delay: var(--rise-delay, 0ms);
}
[data-rise].is-visible {
  opacity: 1;
  transform: none;
}

/* ── Parallax on media (video / image) ── */
[data-parallax-target] {
  will-change: transform;
  transform: translate3d(0, var(--parallax-y, 0px), 0) scale(var(--parallax-scale, 1.08));
}

/* ── Erasure block: already in CSS, just ensure base hidden state ── */
.erase .reveal { will-change: transform, opacity; }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .swap em:not(:first-child) { display: none; }
  .ticker__track { animation: none; }
  [data-reveal], [data-rise] { opacity: 1; transform: none; filter: none; }
  .chapter-head .chapter-num,
  .chapter-head .chapter-label,
  .chapter-head .chapter-rule { opacity: 1; transform: none; }
  [data-parallax-target] { transform: none; }
}
