/* =========================================================
   Webtailored – Website
   ========================================================= */

:root {
  --navy: #0B1D42;
  --navy-deep: #071431;
  --fabric: #14316B;
  --fabric-light: #1D4185;
  --cream: #F6F1E8;
  --paper: #FCF9F3;
  --chalk: #F3EBDD;
  --brass: #C9A46A;
  --brass-light: #E3C58F;
  --brass-ink: #7A5B2A;
  --ink: #0B1D42;
  --ink-soft: #3D4A66;
  --mist: #C5CCDB;
  --error: #A1281C;

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Lexend", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --header-h: 72px;
  --gutter: clamp(16px, 4.2vw, 64px);
  --tape-w: 46px;
  --container: 1240px;
  --radius: 6px;
  --ease-out: cubic-bezier(.22, .8, .24, 1);

  color-scheme: light;
}

@media (max-width: 899.98px) {
  :root { --header-h: 62px; --tape-w: 0px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
  background: var(--navy);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--navy);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
}

img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
p { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 10 4 4; }
button, input, textarea { font: inherit; color: inherit; }

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

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

.skip-link {
  position: fixed;
  left: 16px; top: 12px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--cream);
  color: var(--ink);
  border-radius: var(--radius);
  font-weight: 500;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .2s var(--ease-out);
}
.skip-link:focus { transform: none; }

:focus-visible {
  outline: 2px solid var(--focus, var(--brass-light));
  outline-offset: 3px;
  border-radius: 3px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Type helpers ---------- */
.eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  font-size: .78rem;
  line-height: 1.4;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brass-ink);
}
.eyebrow--brass { color: var(--brass); }

.section-title {
  font-family: var(--serif);
  font-weight: 380;
  font-variation-settings: "SOFT" 60;
  font-size: clamp(2.15rem, 1.4rem + 3.1vw, 3.9rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.section-title em {
  font-style: italic;
  font-weight: 360;
  color: var(--brass-ink);
}

.lead {
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.2rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 34em;
  text-wrap: pretty;
}

/* ---------- Buttons & links ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 26px;
  border: 0;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: .98rem;
  line-height: 1.2;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .35s var(--ease-out), background-color .25s, color .25s, box-shadow .35s var(--ease-out);
}
.btn::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: inherit;
  border: 1.5px dashed currentColor;
  opacity: .38;
  pointer-events: none;
  transition: opacity .25s, inset .35s var(--ease-out);
}
.btn:hover { transform: translateY(-1px); }
.btn:hover::after { opacity: .7; inset: 5px; }
.btn:active { transform: translateY(0) scale(.98); }

.btn--brass {
  background: var(--brass);
  color: var(--navy);
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 10px 24px -14px rgba(0,0,0,.6);
}
.btn--brass:hover { background: var(--brass-light); }

.btn--navy {
  background: var(--navy);
  color: var(--cream);
  box-shadow: 0 12px 26px -16px rgba(11,29,66,.8);
}
.btn--navy:hover { background: #142B5E; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  font-weight: 400;
  color: var(--cream);
  text-decoration: none;
  cursor: pointer;
  background-image: linear-gradient(90deg, currentColor 0 7px, transparent 7px 12px);
  background-size: 12px 1.5px;
  background-repeat: repeat-x;
  background-position: 0 calc(100% - 9px);
}
.link-arrow::after {
  content: "";
  width: 14px; height: 10px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10'%3E%3Cpath d='M1 5h11M8.5 1.5 12 5l-3.5 3.5' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10'%3E%3Cpath d='M1 5h11M8.5 1.5 12 5l-3.5 3.5' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform .3s var(--ease-out);
}
.link-arrow:hover::after { transform: translateX(4px); }
.link-arrow--dark { color: var(--ink); --focus: var(--navy); }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  color: #fff;
  --logo-stitch: var(--navy);
  --logo-halo: var(--navy);
  --logo-cursor-fill: var(--navy);
  --focus: var(--brass-light);
  background: rgba(11, 29, 66, .94);
  transition: background-color .45s var(--ease-out), color .45s var(--ease-out), box-shadow .45s;
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background-image: linear-gradient(90deg, currentColor 0 7px, transparent 7px 13px);
  background-size: 13px 1.5px;
  opacity: .16;
}
.js .site-header[data-theme="scene"] {
  background: linear-gradient(180deg, rgba(7, 20, 49, .92), rgba(7, 20, 49, .55));
}
.js .site-header[data-theme="scene"]::after { opacity: 0; }
.site-header[data-theme="light"] {
  color: var(--navy);
  background: rgba(246, 241, 232, .96);
  --logo-stitch: #fff;
  --logo-halo: var(--cream);
  --logo-cursor-fill: #fff;
  --focus: var(--navy);
  box-shadow: 0 10px 30px -24px rgba(11, 29, 66, .5);
}
.site-header[data-theme="light"]::after { opacity: .28; }

.site-header__inner {
  height: 100%;
  max-width: 1480px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  text-decoration: none;
  color: inherit;
}
.logo-mark .wm-stitch { stroke: var(--logo-stitch); }
.logo-mark .wm-cursor-halo { stroke: var(--logo-halo); }
.logo-mark .wm-cursor { fill: var(--logo-cursor-fill); }
.brand__mark { width: 40px; height: auto; flex: none; }
.brand__word {
  font-family: "Lexend", var(--sans);
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: -.015em;
  line-height: 1;
  text-transform: lowercase;
}

.site-nav__toggle { display: none; }
.site-nav__panel {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
}
.site-nav__list {
  display: flex;
  gap: clamp(8px, 1.6vw, 22px);
}
.site-nav__list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 6px;
  font-weight: 400;
  font-size: .98rem;
  text-decoration: none;
  background-image: linear-gradient(90deg, currentColor 0 5px, transparent 5px 9px);
  background-size: 9px 1.5px;
  background-repeat: repeat-x;
  background-position: 6px calc(100% - 8px);
  background-clip: content-box;
  transition: background-size .3s;
}
.site-nav__list a:not(:hover) { background-image: none; }

.site-header[data-theme="light"] .btn--brass {
  background: var(--navy);
  color: var(--cream);
}
.site-header[data-theme="light"] .btn--brass:hover { background: #142B5E; }
.site-nav__cta { min-height: 44px; padding: 10px 22px; font-size: .94rem; }

@media (max-width: 899.98px) {
  .brand__mark { width: 34px; }
  .brand__word { font-size: 1.08rem; }

  .site-nav__toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    min-width: 44px;
    padding: 0 4px 0 12px;
    border: 0;
    background: none;
    font-weight: 400;
    font-size: .95rem;
    cursor: pointer;
  }
  .site-nav__toggle-icon {
    position: relative;
    width: 22px; height: 12px;
  }
  .site-nav__toggle-icon span {
    position: absolute;
    left: 0; right: 0;
    height: 1.6px;
    background: currentColor;
    border-radius: 2px;
    transition: transform .3s var(--ease-out), top .3s var(--ease-out);
  }
  .site-nav__toggle-icon span:first-child { top: 1px; }
  .site-nav__toggle-icon span:last-child { top: 9px; }
  .site-nav__toggle[aria-expanded="true"] .site-nav__toggle-icon span:first-child { top: 5px; transform: rotate(45deg); }
  .site-nav__toggle[aria-expanded="true"] .site-nav__toggle-icon span:last-child { top: 5px; transform: rotate(-45deg); }

  .site-nav__panel {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 14px var(--gutter) 26px;
    background: var(--navy);
    color: var(--cream);
    box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .6);
    --focus: var(--brass-light);
  }
  .js .site-nav__panel { display: none; }
  .js .site-nav__panel.is-open { display: flex; }
  .site-header[data-theme="light"] .site-nav__panel { background: var(--cream); color: var(--navy); --focus: var(--navy); }
  .site-nav__list { flex-direction: column; gap: 0; }
  .site-nav__list a {
    display: flex;
    min-height: 52px;
    padding: 0;
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 380;
    border-bottom: 1px dashed rgba(127, 140, 170, .45);
  }
  .site-nav__cta { align-self: flex-start; min-height: 48px; }
  .no-js .site-nav__panel { position: static; padding: 0; background: none; box-shadow: none; flex-direction: row; }
  .no-js .site-header { height: auto; position: relative; }
  .no-js .site-header__inner { flex-wrap: wrap; padding-block: 8px; }
}

/* =========================================================
   Scene – tailoring table
   ========================================================= */
.scene {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  color: var(--cream);
  background: var(--navy);
  overflow: hidden;
  --focus: var(--brass-light);
}

.table { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(130% 95% at 38% 30%, #1C418A 0%, #16356F 34%, #10285A 62%, #0B1D42 100%);
}
.table__lamp {
  position: absolute;
  inset: -25%;
  background:
    radial-gradient(34% 30% at 44% 44%, rgba(255, 229, 178, .17), rgba(255, 229, 178, .06) 48%, rgba(255, 229, 178, 0) 72%);
  will-change: transform;
}
.table__weave {
  position: absolute;
  inset: 0;
  opacity: .75;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='280'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85 .14' numOctaves='2' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .34 -.13'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='280'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.14 .85' numOctaves='2' seed='9' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 .05 0 0 0 .5 -.18'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0, 8, 30, .06) 0 1px, transparent 1px 3px);
}
.table__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 95% at 50% 46%, rgba(3, 10, 30, 0) 52%, rgba(3, 10, 30, .58) 100%),
    linear-gradient(180deg, rgba(3, 10, 30, .35), rgba(3, 10, 30, 0) 22%);
}

/* ---------- Tape measure (scroll progress) ---------- */
.tape {
  --cm: 30px;
  position: absolute;
  z-index: 1;
  left: 0; top: 0; bottom: 0;
  width: var(--tape-w);
  pointer-events: none;
  display: none;
}
.js .scene.is-cinematic .tape,
.scene.is-static .tape { display: block; }
.tape__track {
  position: absolute;
  left: 8px;
  top: 50%;
  width: 32px;
  height: calc(var(--cm) * 150);
  transform: translateY(calc(var(--cm) * -6));
  will-change: transform;
}
.tape__strip {
  position: absolute;
  inset: 0;
  border-radius: 2px;
  background-color: #EADFC4;
  background-image:
    linear-gradient(90deg, rgba(0,0,0,.08), rgba(255,255,255,.25) 30%, rgba(0,0,0,0) 60%, rgba(0,0,0,.1)),
    repeating-linear-gradient(180deg, #13244A 0 1.2px, transparent 1.2px var(--cm)),
    repeating-linear-gradient(180deg, transparent 0 calc(var(--cm) / 2), rgba(19, 36, 74, .75) calc(var(--cm) / 2) calc(var(--cm) / 2 + 1px), transparent calc(var(--cm) / 2 + 1px) var(--cm)),
    repeating-linear-gradient(180deg, rgba(19, 36, 74, .4) 0 1px, transparent 1px calc(var(--cm) / 10));
  background-size: 100% 100%, 13px 100%, 8px 100%, 5px 100%;
  background-position: 0 0, right top, right top, right top;
  background-repeat: no-repeat;
  box-shadow: 0 0 0 1px rgba(110, 90, 50, .25), 6px 0 18px -6px rgba(0, 0, 0, .6);
}
.tape__cap {
  position: absolute;
  left: -2px; right: -2px;
  top: -10px; height: 12px;
  border-radius: 2px 2px 1px 1px;
  background: linear-gradient(90deg, #8A6A35, #E3C58F 45%, #A8854A);
}
.tape__num {
  position: absolute;
  left: 3px;
  top: calc(var(--cm) * var(--n, 0));
  transform: translateY(-50%);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 9px;
  line-height: 1;
  color: #13244A;
  font-variant-numeric: tabular-nums;
}
.tape__num--ten { color: #9A2A1F; font-weight: 600; }
.tape__labels { position: absolute; inset: 0; }
.tape__label {
  position: absolute;
  left: 44px;
  top: calc(var(--cm) * var(--at, 0));
  transform: translateY(-50%) rotate(-90deg) translateX(50%);
  transform-origin: left center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--chalk);
  opacity: .7;
  white-space: nowrap;
}
.tape__needle {
  position: absolute;
  left: 2px;
  top: 50%;
  width: 52px;
  height: 2px;
  margin-top: -1px;
  background: linear-gradient(90deg, rgba(201,164,106,0), var(--brass) 20%, var(--brass));
  box-shadow: 0 1px 3px rgba(0,0,0,.45);
}
.tape__needle::after {
  content: "";
  position: absolute;
  right: -7px; top: -5px;
  border: 6px solid transparent;
  border-left: 8px solid var(--brass);
  border-right: 0;
}

@media (max-width: 899.98px) {
  .tape {
    --cm: 24px;
    left: 0; right: 0; top: auto; bottom: 0;
    width: auto;
    height: 46px;
  }
  .tape__track {
    left: 50%; top: auto; bottom: 8px;
    width: calc(var(--cm) * 150);
    height: 26px;
    transform: translateX(calc(var(--cm) * -6));
  }
  .tape__strip {
    background-image:
      linear-gradient(180deg, rgba(0,0,0,.08), rgba(255,255,255,.25) 30%, rgba(0,0,0,0) 60%, rgba(0,0,0,.1)),
      repeating-linear-gradient(90deg, #13244A 0 1.2px, transparent 1.2px var(--cm)),
      repeating-linear-gradient(90deg, transparent 0 calc(var(--cm) / 2), rgba(19, 36, 74, .75) calc(var(--cm) / 2) calc(var(--cm) / 2 + 1px), transparent calc(var(--cm) / 2 + 1px) var(--cm)),
      repeating-linear-gradient(90deg, rgba(19, 36, 74, .4) 0 1px, transparent 1px calc(var(--cm) / 10));
    background-size: 100% 100%, 100% 11px, 100% 7px, 100% 4px;
    background-position: 0 0, left bottom, left bottom, left bottom;
    box-shadow: 0 0 0 1px rgba(110, 90, 50, .25), 0 -6px 16px -6px rgba(0, 0, 0, .6);
  }
  .tape__cap { top: -2px; bottom: -2px; left: -10px; right: auto; width: 12px; height: auto; background: linear-gradient(180deg, #8A6A35, #E3C58F 45%, #A8854A); }
  .tape__num { left: calc(var(--cm) * var(--n, 0)); top: 3px; transform: translateX(-50%); font-size: 8px; }
  .tape__label {
    left: calc(var(--cm) * var(--at, 0));
    top: -24px;
    transform: translateX(-50%);
    font-size: 13px;
  }
  .tape__needle {
    left: 50%; top: auto; bottom: 0;
    width: 2px; height: 44px;
    margin: 0 0 0 -1px;
    background: linear-gradient(0deg, rgba(201,164,106,0), var(--brass) 20%, var(--brass));
  }
  .tape__needle::after { right: auto; left: -5px; top: -7px; border: 6px solid transparent; border-top: 8px solid var(--brass); border-bottom: 0; }
}

/* ---------- Intro (cinematic only) ---------- */
.scene__intro {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: min(88vw, 640px);
  transform: translate(-50%, -42%);
  text-align: center;
  display: none;
  pointer-events: none;
}
.scene.is-cinematic .scene__intro { display: block; }
.scene__intro-kicker {
  font-weight: 500;
  font-size: .76rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brass-light);
}
.scene__intro-line {
  margin-top: 14px;
  font-family: var(--serif);
  font-weight: 340;
  font-variation-settings: "SOFT" 80;
  font-size: clamp(1.8rem, 1.1rem + 2.8vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -.015em;
  color: var(--chalk);
  text-wrap: balance;
}
.scene__intro-line em { font-style: italic; color: var(--brass-light); }
.scene__intro-cue {
  margin-top: 26px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: .88rem;
  color: var(--mist);
}

/* ---------- Scene layout ---------- */
.scene__grid {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  max-width: 1520px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  column-gap: clamp(28px, 4.5vw, 84px);
  padding: calc(var(--header-h) + clamp(28px, 6vh, 64px)) var(--gutter) clamp(36px, 6vh, 64px) calc(var(--gutter) + var(--tape-w) + 10px);
}

.scene__copy { position: relative; z-index: 2; max-width: 34rem; }
.scene__eyebrow { color: var(--brass-light); max-width: 26em; }
.scene__title {
  margin-top: 18px;
  font-family: var(--serif);
  font-weight: 360;
  font-variation-settings: "SOFT" 70;
  font-size: clamp(2.45rem, 1.1rem + 3.7vw, 4.9rem);
  line-height: 1.06;
  letter-spacing: -.025em;
  color: #FBF6EC;
}
.scene__title .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0 .04em .16em;
  margin: 0 -.04em -.16em;
}
.scene__title .w > span { display: inline-block; }
.scene__title em {
  font-style: italic;
  font-weight: 340;
  color: var(--brass-light);
}
.scene__seam {
  width: min(100%, 26rem);
  height: auto;
  margin-top: 10px;
  overflow: visible;
}
.scene__seam-line { stroke: var(--chalk); }
.seam-cursor-halo { stroke: var(--navy); }
.seam-cursor { fill: var(--navy); stroke: var(--chalk); }
.scene__lead {
  margin-top: 18px;
  max-width: 29em;
  font-size: clamp(1rem, .95rem + .3vw, 1.15rem);
  line-height: 1.6;
  color: #D5DAE6;
  text-wrap: pretty;
}
.scene__actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
}

.scene__slot {
  position: relative;
  width: min(100%, calc((100svh - var(--header-h) - 150px) * 1.5385));
  aspect-ratio: 800 / 520;
  justify-self: end;
}

/* ---------- Website made of fabric ---------- */
.work {
  position: absolute;
  inset: 0;
  container-type: inline-size;
  transform-origin: 50% 50%;
}
.work__chalk, .work__fx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.work__chalk { z-index: 0; }
.work__fx { z-index: 5; }
.chalk-line { fill: none; stroke: var(--chalk); stroke-width: 3.1; stroke-linecap: round; stroke-linejoin: round; }
.chalk-curve { fill: none; stroke: var(--chalk); stroke-width: 2.6; stroke-linecap: round; opacity: .85; }
.chalk-dots { fill: none; stroke: var(--chalk); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 0 7; opacity: .8; }
.chalk-marks { fill: none; stroke: var(--chalk); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }

.piece {
  position: absolute;
  left: calc(var(--x) / 800 * 100%);
  top: calc(var(--y) / 520 * 100%);
  width: calc(var(--w) / 800 * 100%);
  height: calc(var(--h) / 520 * 100%);
  z-index: 2;
}
.piece__shadow, .piece__fabric, .piece__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.piece__shadow {
  box-shadow: 0 2.4cqw 4cqw -1.2cqw rgba(2, 8, 26, .62), 0 .5cqw 1.2cqw rgba(2, 8, 26, .35);
  opacity: .22;
}
.piece__fabric {
  background-color: #1B3D7E;
  background-image:
    radial-gradient(90% 120% at 30% 10%, rgba(255, 236, 200, .07), rgba(255, 236, 200, 0) 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8 .16' numOctaves='2' seed='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .3 -.11'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(160deg, #22488F, #183873);
  background-size: auto, 220px 220px, auto;
  box-shadow: inset 0 0 0 1px rgba(3, 10, 30, .55), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.piece__svg { overflow: visible; }

.stitch { fill: none; stroke: #F1E8D8; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 7 6; }
.thread { fill: none; stroke: var(--chalk); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 9 5; opacity: .5; }
.quilt { fill: none; stroke: var(--chalk); stroke-width: 1.3; stroke-dasharray: 5 4; opacity: .18; }
.chevron { fill: none; stroke: var(--chalk); stroke-width: 1.4; stroke-linejoin: round; opacity: .32; }
.img-hill { fill: #102A5E; stroke: var(--chalk); stroke-width: 1.8; stroke-dasharray: 6 4.5; stroke-linecap: round; stroke-opacity: .7; }
.img-hill--back { fill: #183A79; stroke-opacity: .45; }
.img-sun { fill: rgba(201, 164, 106, .22); stroke: var(--brass); stroke-width: 2; stroke-dasharray: 5 4; stroke-linecap: round; }
.img-frame { fill: none; stroke: rgba(3, 10, 30, .55); stroke-width: 1; }
.card-img { fill: rgba(243, 235, 221, .07); stroke: rgba(243, 235, 221, .28); stroke-width: 1; }

.t-brand { font-family: var(--sans); font-weight: 600; font-size: 15px; fill: var(--chalk); letter-spacing: -.01em; }
.t-nav { font-family: var(--sans); font-weight: 400; font-size: 13px; fill: var(--chalk); opacity: .82; }
.t-cta { font-family: var(--sans); font-weight: 500; font-size: 11.5px; fill: var(--brass-light); }
.mini-cta { fill: none; stroke: var(--brass); stroke-width: 1.5; }
.mini-w { fill: var(--chalk); stroke: var(--chalk); }
.mini-stitch { fill: none; stroke: #1E427F; }
.mini-halo { fill: none; stroke: #1E427F; }
.mini-cursor { fill: #1E427F; stroke: var(--chalk); }
.t-kicker { font-family: var(--sans); font-weight: 500; font-size: 10.5px; letter-spacing: 1.8px; text-transform: uppercase; fill: var(--brass-light); }
.t-emb { font-family: var(--serif); font-weight: 420; font-size: 62px; letter-spacing: -1px; font-variation-settings: "SOFT" 100; }
.t-emb--fill { fill: url(#satin); }
.t-emb--line { fill: none; stroke: #FFF6E6; stroke-width: 1.1; stroke-dasharray: 2.6 1.8; stroke-linecap: round; }
.mini-btn { fill: var(--brass); }
.t-btn { font-family: var(--sans); font-weight: 500; font-size: 12px; fill: var(--navy); }
.t-card { font-family: var(--serif); font-weight: 420; font-size: 23px; fill: var(--chalk); letter-spacing: -.3px; }
.t-link { font-family: var(--sans); font-weight: 500; font-size: 11.5px; fill: var(--brass-light); }
.t-quote { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 150px; fill: var(--brass); opacity: .85; }

/* Woven garment label */
.tag {
  position: absolute;
  z-index: 4;
  left: calc(604 / 800 * 100%);
  top: calc(494 / 520 * 100%);
  width: calc(164 / 800 * 100%);
  height: calc(50 / 520 * 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .2cqw;
  transform: rotate(-2.5deg);
  background-color: #F3EBDD;
  background-image: repeating-linear-gradient(90deg, rgba(122, 91, 42, .08) 0 1px, transparent 1px 3px);
  border-radius: 1px;
  box-shadow: 0 .6cqw 1.4cqw -.4cqw rgba(2, 8, 26, .55);
  color: var(--navy);
}
.tag::before, .tag::after {
  content: "";
  position: absolute;
  top: 12%; bottom: 12%;
  width: 0;
  border-left: 1.5px dashed rgba(122, 91, 42, .75);
}
.tag::before { left: 5%; }
.tag::after { right: 5%; }
.tag__word { font-family: "Lexend", var(--sans); font-weight: 700; font-size: 1.9cqw; letter-spacing: -.02em; line-height: 1; }
.tag__sub { font-family: var(--serif); font-style: italic; font-size: 1.25cqw; line-height: 1; color: var(--brass-ink); }

/* ---------- Cinematic mode (JS + motion) ---------- */
.scene.is-cinematic { height: 100vh; height: 100svh; min-height: 520px; }
.scene.is-cinematic .scene__grid { position: static; min-height: 0; height: 100%; }
.scene.is-cinematic .scene__slot { position: static; }
.scene.is-cinematic .work { inset: auto; z-index: 3; }
.scene.is-cinematic .piece { will-change: transform; }
.scene.is-cinematic .piece__shadow { will-change: opacity; }
.needle, .chalk-tip { pointer-events: none; }

/* =========================================================
   Sections
   ========================================================= */
.section { position: relative; padding-block: clamp(88px, 12vw, 168px); }
.section--cream { background: var(--cream); color: var(--ink); --focus: var(--navy); }
.section--navy {
  background-color: var(--navy);
  color: var(--cream);
  --focus: var(--brass-light);
  background-image:
    radial-gradient(80% 60% at 70% 0%, rgba(32, 70, 140, .35), rgba(32, 70, 140, 0) 70%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .05) 0 1px, transparent 1px 3px);
}
.section--navy .lead { color: var(--mist); }
.section--navy .section-title em { color: var(--brass-light); }

/* Pinking-shear edge + stitch line */
.pinking {
  position: absolute;
  left: 0; right: 0;
  top: -9px;
  height: 10px;
  background: conic-gradient(from 135deg at 50% 0, var(--cream) 90deg, rgba(0, 0, 0, 0) 0) 0 0 / 18px 9px repeat-x;
  pointer-events: none;
}
.pinking::after {
  content: "";
  position: absolute;
  left: var(--gutter); right: var(--gutter);
  top: 30px;
  height: 2px;
  background-image: linear-gradient(90deg, var(--stitch-color, rgba(11, 29, 66, .32)) 0 9px, transparent 9px 16px);
  background-size: 16px 2px;
  border-radius: 2px;
}
.pinking--navy { background: conic-gradient(from 135deg at 50% 0, var(--navy) 90deg, rgba(0, 0, 0, 0) 0) 0 0 / 18px 9px repeat-x; --stitch-color: rgba(243, 235, 221, .26); }

/* ---------- Leistungen ---------- */
.services__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(48px, 7vw, 120px);
  align-items: start;
}
.services__head { position: sticky; top: calc(var(--header-h) + 48px); }
.services__head .section-title { margin-top: 18px; }
.services__head .lead { margin-top: 22px; }
.services__head .link-arrow { margin-top: 26px; }

.service-list { counter-reset: svc; }
.service {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 36px);
  padding-block: clamp(30px, 4vw, 44px);
  background-image: linear-gradient(90deg, rgba(11, 29, 66, .34) 0 9px, transparent 9px 16px);
  background-size: 16px 1.6px;
  background-repeat: repeat-x;
  background-position: 0 0;
}
.service:last-child { padding-bottom: 0; }
.swatch { width: 72px; height: 72px; filter: drop-shadow(0 8px 10px rgba(11, 29, 66, .18)); transform: rotate(-3deg); }
.service:nth-child(2) .swatch { transform: rotate(2deg); }
.service:nth-child(3) .swatch { transform: rotate(-1.5deg); }
.service:nth-child(4) .swatch { transform: rotate(3deg); }
.swatch__cloth { fill: var(--fabric); }
.swatch__stitch { fill: none; stroke: var(--chalk); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 5 4; }
.swatch__thin { fill: none; stroke: var(--chalk); stroke-width: 1; stroke-dasharray: 2 3; opacity: .55; }
.swatch__button { fill: var(--brass); stroke: #8A6A35; stroke-width: 1.2; }
.swatch__hole { fill: #6E5124; }
.swatch__thread { fill: none; stroke: var(--chalk); stroke-width: 2.2; stroke-linecap: round; }
.service__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--brass-ink);
  line-height: 1;
}
.service__title {
  margin-top: 10px;
  font-family: var(--serif);
  font-weight: 420;
  font-variation-settings: "SOFT" 50;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  line-height: 1.15;
  letter-spacing: -.012em;
}
.service__body > p:not([class]) { margin-top: 12px; max-width: 36em; color: var(--ink-soft); text-wrap: pretty; }

/* ---------- Ablauf ---------- */
.process__head { max-width: 46rem; }
.process__head .section-title { margin-top: 18px; }
.process__head .lead { margin-top: 22px; }
.process__body { position: relative; margin-top: clamp(48px, 7vw, 88px); --tape-h: 46px; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Desktop: the chapter holds still while the tape unrolls */
.process.is-held {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-block: calc(var(--header-h) + 36px) 56px;
}
.process.is-held > .container { width: min(var(--container), 100% - 2 * var(--gutter)); }

.measure {
  position: relative;
  height: var(--tape-h);
  margin-inline: -8px;
  --grow: 1;
}
.measure__tape {
  position: absolute;
  inset: 0;
  border-radius: 2px;
  background-color: #EADFC4;
  background-image:
    linear-gradient(180deg, rgba(0,0,0,.06), rgba(255,255,255,.28) 30%, rgba(0,0,0,0) 60%, rgba(0,0,0,.1)),
    repeating-linear-gradient(90deg, #13244A 0 1.4px, transparent 1.4px 10%),
    repeating-linear-gradient(90deg, rgba(19, 36, 74, .8) 0 1px, transparent 1px 1%),
    repeating-linear-gradient(90deg, transparent 0 5%, rgba(19, 36, 74, .8) 5% calc(5% + 1px), transparent calc(5% + 1px) 10%);
  background-size: 100% 100%, 100% 18px, 100% 8px, 100% 13px;
  background-position: 0 0, 0 0, 0 0, 0 0;
  background-repeat: no-repeat;
  box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .8), 0 0 0 1px rgba(110, 90, 50, .3);
  clip-path: inset(-24px calc((1 - var(--grow)) * 100%) -24px -24px);
}
.measure__tape::before {
  content: "";
  position: absolute;
  left: -12px; top: -3px; bottom: -3px;
  width: 14px;
  border-radius: 2px;
  background: linear-gradient(180deg, #8A6A35, #E3C58F 45%, #A8854A);
}
.measure__num {
  position: absolute;
  left: calc(var(--at) * 1%);
  bottom: 6px;
  transform: translateX(-50%);
  font-weight: 500;
  font-size: .72rem;
  line-height: 1;
  color: #13244A;
  font-variant-numeric: tabular-nums;
}
.measure__num[style*="--at:0"] { transform: translateX(4px); }
.measure__num[style*="--at:100"] { transform: translateX(calc(-100% - 4px)); }

/* brass tip at the leading end of the tape, travels with the scroll */
.measure__edge {
  position: absolute; top: 0; bottom: 0; width: 0;
  left: calc(var(--grow) * 100%);
  pointer-events: none;
}
.measure__tip {
  position: absolute;
  left: -4px; top: -3px; bottom: -3px;
  width: 13px;
  border-radius: 2px;
  background: linear-gradient(180deg, #8A6A35, #E3C58F 45%, #A8854A);
  box-shadow: 3px 2px 6px rgba(0, 0, 0, .35);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
}
.step { position: relative; padding-top: 44px; }

/* Dressmaker's pin: head above the tape, shaft through it, tip back out */
.step__pin {
  position: absolute;
  left: 8px; top: calc(-1 * (var(--tape-h) + 24px));
  width: 44px; height: 84px;
  overflow: visible;
  transform-origin: 22px 42px;
  transform: rotate(var(--pin-base, 0deg)) rotate(var(--tilt, 0deg));
  transition: transform .62s cubic-bezier(.34, 1.56, .64, 1), opacity .22s ease-out;
}
.pin__shaft { fill: none; stroke: #CBD2DC; stroke-width: 1.8; stroke-linecap: round; }
.pin__shine { fill: none; stroke: #F8FAFD; stroke-width: .6; stroke-linecap: round; opacity: .85; }
.pin__shadow { stroke: rgba(3, 9, 24, .34); fill: rgba(3, 9, 24, .3); }
.pin__hole { fill: rgba(19, 36, 74, .55); }

.step > :not(.step__pin) { transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.process.is-scrubbed .step:not(.is-reached) .step__pin {
  opacity: 0;
  transform: rotate(var(--pin-base, 0deg)) translate(-4px, -36px) rotate(-18deg);
}
.process.is-scrubbed .step:not(.is-reached) > :not(.step__pin) { opacity: .26; transform: translateY(12px); }

.step__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--brass);
}
.step__title {
  margin-top: 8px;
  font-family: var(--serif);
  font-weight: 420;
  font-variation-settings: "SOFT" 50;
  font-size: clamp(1.45rem, 1.2rem + .8vw, 1.85rem);
  line-height: 1.15;
  letter-spacing: -.012em;
  color: #FBF6EC;
}
.step > p:last-child { margin-top: 12px; color: var(--mist); text-wrap: pretty; }

/* ---------- Kontakt ---------- */
.contact__wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(36px, 5vw, 56px); }
.contact__intro { max-width: 44rem; }
.contact__intro .section-title { margin-top: 18px; }
.contact__intro .lead { margin-top: 22px; }

.pattern-card {
  position: relative;
  padding: clamp(28px, 4vw, 52px);
  background: var(--paper);
  border-radius: 4px;
  box-shadow: 0 1px 0 rgba(11, 29, 66, .06), 0 30px 60px -36px rgba(11, 29, 66, .45);
}
.pattern-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1.5px dashed rgba(122, 91, 42, .4);
  border-radius: 2px;
  pointer-events: none;
}

/* The request as one sentence with blanks */
.letter { padding: clamp(32px, 5.5vw, 76px) clamp(24px, 6vw, 88px); }
.letter__fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.letter__salutation {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.7rem, 1.2rem + 1.7vw, 2.5rem);
  line-height: 1.2;
  color: var(--brass-ink);
}
.letter__sentence {
  margin-top: 18px;
  font-family: var(--serif);
  font-weight: 380;
  font-variation-settings: "SOFT" 50;
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.2rem); /* same size as .lead */
  line-height: 2.2;
  letter-spacing: -.01em;
  color: var(--ink);
}
.blank { display: inline-block; max-width: 100%; }
.blank--end { white-space: nowrap; }
.blank--end .blank__input { max-width: calc(100% - .4em); margin-right: 0; padding-right: .02em; }
.blank__input {
  width: 9ch; min-width: 3ch; max-width: 100%;
  margin: 0 .06em;
  padding: 0 .12em .04em;
  font: inherit;
  font-style: italic;
  color: var(--brass-ink);
  background-color: transparent;
  background-image: linear-gradient(90deg, var(--brass) 0 9px, transparent 9px 15px);
  background-size: 15px 2px;
  background-repeat: repeat-x;
  background-position: 0 100%;
  border: 0;
  border-radius: 3px;
  transition: background-color .2s var(--ease-out);
}
.blank__input::placeholder { color: #687086; opacity: 1; font-style: italic; }
.blank__input:hover { background-color: rgba(201, 164, 106, .1); }
.blank__input:focus { outline: none; }
.blank__input:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 4px;
  background-color: rgba(201, 164, 106, .12);
  background-image: linear-gradient(90deg, var(--navy) 0 9px, transparent 9px 15px);
}
.blank__input[aria-invalid="true"] { background-image: linear-gradient(90deg, var(--error) 0 9px, transparent 9px 15px); }
.blank-measure {
  position: absolute; visibility: hidden; white-space: pre; pointer-events: none;
  left: -9999px; top: 0;
}

.letter__errors { display: grid; gap: 6px; margin-top: 16px; }
.field__error { font-size: .92rem; font-weight: 400; color: var(--error); }
.letter__foot { margin-top: clamp(26px, 4vw, 40px); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.letter__note { font-size: .9rem; color: var(--ink-soft); max-width: 30rem; }

.contact__meta {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px clamp(32px, 6vw, 88px);
  align-items: start;
}
.contact__facts { display: grid; gap: 10px; }
.contact__facts li {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 12px;
  padding-bottom: 10px;
  background-image: linear-gradient(90deg, rgba(11, 29, 66, .25) 0 5px, transparent 5px 9px);
  background-size: 9px 1px;
  background-repeat: repeat-x;
  background-position: 0 100%;
}
.contact__fact-label { font-family: var(--serif); font-style: italic; color: var(--brass-ink); }
.contact__direct { font-family: var(--serif); font-size: 1.25rem; line-height: 1.55; text-wrap: pretty; }
.contact__direct a { text-decoration-thickness: 1px; text-underline-offset: 4px; }
.contact__direct a:hover { color: var(--brass-ink); }
.contact__phone { white-space: nowrap; }
.placeholder-note { font-family: var(--sans); font-size: .82rem; color: var(--ink-soft); }

.form-success { display: grid; gap: 12px; padding-block: 12px; }
.form-success[hidden] { display: none; }
.form-success:focus, main:focus { outline: none; }
.form-success__seam { width: 160px; stroke: var(--brass-ink); }
.form-success__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -.01em;
}
.form-success__note { font-size: .88rem; color: var(--ink-soft); }
.form-success__again { justify-self: start; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  padding-top: clamp(80px, 9vw, 120px);
  padding-bottom: 36px;
  background: var(--navy);
  color: var(--cream);
  --logo-stitch: var(--navy);
  --logo-halo: var(--navy);
  --logo-cursor-fill: var(--navy);
  --focus: var(--brass-light);
}
.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr);
  gap: 40px;
  align-items: start;
}
.brand--footer .brand__mark { width: 52px; }
.brand--footer .brand__word { font-size: 1.45rem; }
.site-footer__claim { margin-top: 16px; max-width: 22em; color: var(--mist); }
.site-footer__nav { display: flex; gap: clamp(32px, 6vw, 80px); }
.site-footer__nav a, .site-footer__contact a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  font-weight: 400;
}
.site-footer__nav a:hover, .site-footer__contact a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-style: dashed; }
.site-footer__contact p { color: var(--mist); }
.site-footer__contact .placeholder-note { color: var(--mist); }
.site-footer__base {
  margin-top: 56px;
  padding-top: 22px;
  font-size: .86rem;
  color: var(--mist);
  background-image: linear-gradient(90deg, rgba(243, 235, 221, .22) 0 7px, transparent 7px 13px);
  background-size: 13px 1.5px;
  background-repeat: repeat-x;
  background-position: var(--gutter) 0;
  background-clip: content-box;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 899.98px) {
  .scene__grid {
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    row-gap: 32px;
    /* tape (46px) plus at least 48px of open blue below the preview */
    padding: calc(var(--header-h) + 22px) var(--gutter) 94px;
  }
  .scene__copy { max-width: 36rem; }
  .scene__title { font-size: clamp(2.3rem, 1.4rem + 4.6vw, 3.6rem); margin-top: 12px; line-height: 1.08; }
  .scene__seam { width: min(80%, 20rem); margin-top: 6px; }
  .scene__lead { margin-top: 12px; font-size: 1rem; }
  .scene__actions { margin-top: 20px; gap: 6px 22px; }
  .scene__slot {
    justify-self: center;
    width: min(100%, calc((100svh - 590px) * 1.5385));
    min-width: min(100%, 220px);
  }

  .services__grid, .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .services__head { position: static; }

  .measure { position: absolute; left: 0; top: 0; bottom: 0; width: 40px; height: auto; margin: 0; }
  .measure__tape {
    background-image:
      linear-gradient(90deg, rgba(0,0,0,.06), rgba(255,255,255,.28) 30%, rgba(0,0,0,0) 60%, rgba(0,0,0,.1)),
      repeating-linear-gradient(180deg, #13244A 0 1.4px, transparent 1.4px 10%),
      repeating-linear-gradient(180deg, rgba(19, 36, 74, .8) 0 1px, transparent 1px 1%),
      repeating-linear-gradient(180deg, transparent 0 5%, rgba(19, 36, 74, .8) 5% calc(5% + 1px), transparent calc(5% + 1px) 10%);
    background-size: 100% 100%, 16px 100%, 7px 100%, 11px 100%;
    background-position: 0 0, right 0, right 0, right 0;
    clip-path: inset(-24px -24px calc((1 - var(--grow)) * 100%) -24px);
  }
  .measure__tape::before { left: -3px; right: -3px; top: -12px; bottom: auto; width: auto; height: 14px; background: linear-gradient(90deg, #8A6A35, #E3C58F 45%, #A8854A); }
  .measure__num { left: 5px; bottom: auto; top: calc(var(--at) * 1%); transform: translateY(-50%); font-size: .66rem; }
  .measure__num[style*="--at:0"] { transform: translateY(4px); }
  .measure__num[style*="--at:100"] { transform: translateY(calc(-100% - 4px)); }
  .measure__edge { left: 0; right: 0; bottom: auto; width: auto; height: 0; top: calc(var(--grow) * 100%); }
  .measure__tip { left: -3px; right: -3px; top: -4px; bottom: auto; width: auto; height: 13px; background: linear-gradient(90deg, #8A6A35, #E3C58F 45%, #A8854A); box-shadow: 2px 3px 6px rgba(0, 0, 0, .35); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 44px; padding-left: 76px; }
  .step { padding-top: 0; }
  .step__pin { --pin-base: 90deg; left: -72px; top: -24px; }

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

  .site-footer__inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

@media (max-width: 899.98px) and (min-width: 600px) {
  .site-footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 479.98px) {
  .scene__eyebrow { font-size: .7rem; letter-spacing: .12em; }
  .service { grid-template-columns: 56px minmax(0, 1fr); gap: 18px; }
  .swatch { width: 56px; height: 56px; }
  .contact__facts li { grid-template-columns: 5.2rem 1fr; }
}

@media (max-width: 899.98px) {
  .chalk-line { stroke-width: 5.2; }
  .chalk-curve { stroke-width: 4.4; }
  .chalk-dots { stroke-width: 4.4; stroke-dasharray: 0 11; }
  .chalk-marks { stroke-width: 3.8; }
  .stitch { stroke-width: 2.8; stroke-dasharray: 8 7; }
}

@media (max-width: 899.98px) and (max-height: 700px) {
  .scene.is-cinematic .scene__lead,
  .scene.is-cinematic .scene__actions .link-arrow { display: none; }
  .scene.is-cinematic .scene__slot { width: min(100%, calc((100svh - 450px) * 1.5385)); }
}

/* Static composition (no JS, reduced motion, short screens) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* =========================================================
   Contact letter: choice, lined idea field
   ========================================================= */
.blank__select-wrap { position: relative; display: inline-block; max-width: calc(100% - .4em); }
.blank__select { -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 1.15em; max-width: 100%; box-sizing: border-box; }
.blank__select-wrap::after {
  content: "";
  position: absolute; right: .32em; top: 50%;
  width: .3em; height: .3em;
  border-right: 2px solid var(--brass-ink); border-bottom: 2px solid var(--brass-ink);
  transform: translateY(-75%) rotate(45deg);
  pointer-events: none;
}
.blank__select option { font-family: var(--sans); font-style: normal; font-size: 1rem; color: var(--ink); background: var(--paper); }
.blank--lines { display: inline; white-space: normal; }
.blank__area {
  display: inline-block;
  width: calc(100% - .4em);
  min-height: 2lh;
  vertical-align: top;
  resize: none;
  overflow: hidden;
  line-height: inherit;
  /* a dashed seam under every line */
  background-image:
    linear-gradient(to bottom, var(--paper) calc(100% - 2px), transparent calc(100% - 2px)),
    linear-gradient(90deg, var(--brass) 0 9px, transparent 9px 15px);
  background-size: 100% 1lh, 15px 1lh;
  background-repeat: repeat, repeat;
  background-position: 0 0, 0 0;
}
.blank__area:focus-visible {
  background-image:
    linear-gradient(to bottom, #F6EEDF calc(100% - 2px), transparent calc(100% - 2px)),
    linear-gradient(90deg, var(--navy) 0 9px, transparent 9px 15px);
}

/* Language switch: set apart from the menu by a hairline, globe + code */
.lang-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding-left: clamp(18px, 2vw, 26px);
  color: inherit;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-decoration: none;
  opacity: .78;
  transition: opacity .2s;
}
.lang-switch::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 1px; height: 22px;
  translate: 0 -50%;
  background: currentColor;
  opacity: .35;
}
.lang-switch:hover { opacity: 1; }
.lang-switch:hover .lang-switch__code { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--brass); }
.lang-switch__icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.lang-switch__name {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.site-nav__panel .lang-switch { margin-left: calc(-1 * clamp(6px, 1vw, 20px)); }
@media (max-width: 899.98px) {
  .site-nav__panel .lang-switch {
    align-self: flex-start;
    margin-left: 0;
    padding-left: 0;
    font-size: .95rem;
    letter-spacing: 0;
  }
  .site-nav__panel .lang-switch::before,
  .site-nav__panel .lang-switch__code { display: none; }
  .site-nav__panel .lang-switch__name { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
}
.site-footer__copy { margin-top: 10px; text-align: center; font-size: .85rem; color: var(--mist); }

/* =========================================================
   Legal pages (Impressum, Datenschutz)
   ========================================================= */
.legal { padding-block: calc(var(--header-h) + clamp(48px, 8vw, 96px)) clamp(72px, 10vw, 128px); }
.legal__inner { max-width: 46rem; }
.legal__back { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; text-decoration: none; color: inherit; }
.legal__back:hover { text-decoration: underline; text-underline-offset: 4px; }
.legal h1 { margin-top: 14px; font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 1.6rem + 3vw, 3.8rem); line-height: 1.05; letter-spacing: -.02em; }
.legal h2 { margin-top: 44px; font-family: var(--serif); font-weight: 450; font-size: clamp(1.3rem, 1.15rem + .6vw, 1.6rem); line-height: 1.2; }
.legal p, .legal li { margin-top: 12px; color: var(--ink-soft); text-wrap: pretty; }
.legal ul { margin-top: 8px; padding-left: 1.2em; list-style: disc; }
.legal li { margin-top: 6px; }
.legal address { margin-top: 18px; font-style: normal; font-family: var(--serif); font-size: 1.3rem; line-height: 1.5; color: var(--ink); }
.legal a { color: var(--ink); text-underline-offset: 3px; }
.legal dl { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 13.5rem) minmax(0, 1fr); gap: 10px 20px; }
.legal dt { font-weight: 500; color: var(--ink); hyphens: auto; overflow-wrap: break-word; }
.legal dd { margin: 0; color: var(--ink-soft); }
.legal-footer { padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); background: var(--navy); color: var(--mist); font-size: .92rem; }
.legal-footer .container { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.legal-footer a { color: #FBF6EC; text-underline-offset: 3px; display: inline-flex; min-height: 44px; align-items: center; }
@media (max-width: 599.98px) { .legal dl { grid-template-columns: minmax(0, 1fr); gap: 2px; } .legal dd { margin-bottom: 10px; } }
.blank--end .blank__select { padding-right: 1.15em; max-width: none; }
.blank__select-wrap { max-width: calc(100% - .4em); }

/* Footer: only the legal links and contact */
.site-footer__simple { padding-block: clamp(36px, 5vw, 56px) calc(clamp(36px, 5vw, 56px) + env(safe-area-inset-bottom)); }
.site-footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px clamp(24px, 4vw, 48px); }
.site-footer__links a { display: inline-flex; align-items: center; min-height: 44px; color: #FBF6EC; text-decoration: none; }
.site-footer__links a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--brass); }
.site-footer--simple { background: var(--navy); padding-block: clamp(20px, 3vw, 32px) 0; }

/* E-mail line under the letter */
.contact__mail { font-family: var(--serif); font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); line-height: 1.5; color: var(--ink-soft); text-wrap: pretty; }
.contact__mail a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: var(--brass); overflow-wrap: anywhere; }
.contact__mail a:hover { color: var(--brass-ink); }
.legal--full { min-height: 100vh; min-height: 100svh; }

/* Contact form: honeypot, bot check, sending and error states */
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.letter__check:not(:empty) { margin-top: 18px; }
.letter__form .btn:disabled { opacity: .7; cursor: progress; }
.form-error { margin-top: 16px; font-size: .95rem; color: var(--error); text-wrap: pretty; }
.form-error a { color: inherit; text-underline-offset: 3px; }

/* =========================================================
   404: torn seam graphic
   ========================================================= */
.tear { display: block; width: min(100%, 30rem); height: auto; margin: 0 0 clamp(20px, 4vw, 36px) -8px; overflow: visible; }
.tear__left { transform: rotate(-1.2deg); transform-origin: 0 50%; transform-box: fill-box; }
.tear__right { transform: rotate(1.6deg) translateY(2px); transform-origin: 100% 50%; transform-box: fill-box; }
.tear__end { transform-box: fill-box; }
.tear__end--l { transform-origin: 0 0; }
.tear__end--r { transform-origin: 100% 0; }

@media (prefers-reduced-motion: no-preference) {
  .tear__left { animation: tear-left .9s var(--ease-out) both; }
  .tear__right { animation: tear-right .9s var(--ease-out) both; }
  .tear__end--l { animation: tear-sway-l 2.6s .5s var(--ease-out) both; }
  .tear__end--r { animation: tear-sway-r 2.6s .6s var(--ease-out) both; }
}
@keyframes tear-left { from { transform: none; } }
@keyframes tear-right { from { transform: translateX(-10px); } }
@keyframes tear-sway-l { 0% { transform: rotate(-14deg); } 35% { transform: rotate(9deg); } 65% { transform: rotate(-4deg); } 100% { transform: none; } }
@keyframes tear-sway-r { 0% { transform: rotate(14deg); } 35% { transform: rotate(-9deg); } 65% { transform: rotate(4deg); } 100% { transform: none; } }
