/* ==========================================================================
   Harmecs Lab – Startseite
   Plain CSS, no build step. Colours/fonts are CSS variables (see :root).
   ========================================================================== */

@font-face {
  font-family: "HL Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "HL Caslon";
  src: url("../fonts/libre-caslon-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "HL Playfair";
  src: url("../fonts/playfair-var.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #1d2333;
  --text: #555b66;
  --text-soft: #6d737e;
  --nav: #4a505c;
  --line: #e3e5e8;
  --dot: #bfc3ca;
  --bg: #ffffff;
  --bg-alt: #f7f7f8;

  --serif: "HL Caslon", "Libre Caslon Text", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --serif-logo: "HL Playfair", "Playfair Display", "Libre Caslon Text", Georgia, serif;
  --sans: "HL Inter", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --header-h: 72px;
  --pad: clamp(20px, 3.6vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

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

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 3px; font-size: 13px;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons / links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-weight: 500; font-size: 11.5px; letter-spacing: .17em; text-transform: uppercase;
  border: 1px solid var(--navy); border-radius: 3px; padding: 15px 26px; line-height: 1; white-space: nowrap;
  transition: background-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: #2a3248; box-shadow: 0 6px 16px rgba(29, 35, 51, .22); transform: translateY(-1px); }
.btn-primary:focus-visible { outline-color: var(--navy); outline-offset: 3px; }
.btn span { font-size: 1.15em; letter-spacing: 0; transition: transform .2s; }
.btn:hover span { transform: translateX(3px); }

.link-caps {
  font-size: 11.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--navy);
  display: inline-flex; gap: 10px; align-items: center; padding-bottom: 3px; border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.link-caps span { font-size: 1.15em; letter-spacing: 0; transition: transform .2s; }
.link-caps:hover { border-color: var(--navy); }
.link-caps:hover span { transform: translateX(3px); }


.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.placeholder { background: #fff6d3; padding: 1px 6px; border-radius: 2px; color: #6b5800; }

/* ---------- Top strip ---------- */
.topbar { background: var(--bg-alt); border-bottom: 1px solid #eff0f2; font-size: 11px; letter-spacing: .06em; color: var(--text-soft); }
.topbar-inner { height: 30px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar nav { display: flex; gap: 18px; }
.topbar a { color: var(--text-soft); transition: color .2s; }
.topbar a:hover { color: var(--navy); }

/* ---------- Header (3-column grid: brand | centred nav | CTA) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97);
  -webkit-backdrop-filter: saturate(1.4) blur(8px); backdrop-filter: saturate(1.4) blur(8px);
  transition: box-shadow .25s, border-color .25s; border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { box-shadow: 0 4px 22px rgba(29,35,51,.08); border-bottom-color: var(--line); }
.header-inner { height: var(--header-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--navy); justify-self: start; }
.brand-mark { width: 44px; height: 44px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--serif-logo); font-weight: 500; font-size: 24px; letter-spacing: .07em; line-height: .95; }
.brand-sub { font-family: var(--sans); font-weight: 400; font-size: 8.5px; letter-spacing: .78em; margin-top: 5px; padding-left: 1px; color: var(--navy); }
.main-nav { justify-self: center; }
.main-nav ul { display: flex; gap: clamp(22px, 2.6vw, 40px); }
.main-nav a:not(.btn) { font-size: 12px; font-weight: 400; letter-spacing: .17em; text-transform: uppercase; color: var(--nav); padding: 8px 0; position: relative; transition: color .2s; }
.main-nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: .17em; bottom: 2px; height: 1px; background: var(--navy); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.main-nav a:not(.btn):hover, .main-nav a[aria-current] { color: var(--navy); }
.main-nav a:not(.btn):hover::after { transform: scaleX(1); }
.main-nav .nav-legal, .btn-nav-mobile { display: none; }
.header-cta { justify-self: end; padding: 13px 22px; font-size: 11px; }
.nav-toggle { display: none; justify-self: end; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 3px; background: #fff; padding: 0; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--navy); transition: transform .25s, opacity .2s, top .25s; }
.nav-toggle span:nth-child(1) { top: 14px; } .nav-toggle span:nth-child(2) { top: 20px; } .nav-toggle span:nth-child(3) { top: 26px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: clamp(26px, 3vw, 44px) 0 clamp(40px, 4vw, 60px); }
.hero-title {
  font-family: var(--serif); font-weight: 400; color: var(--navy); text-align: center;
  font-size: clamp(25px, 3.05vw, 43px); line-height: 1.18; letter-spacing: -.012em; text-wrap: balance;
  margin-bottom: clamp(30px, 3.4vw, 48px);
}
@media (min-width: 900px) { .hero-title { white-space: nowrap; } }

/* ---------- Timeline ---------- */
.timeline { position: relative; --dot-y: 12px; }
.tl-track { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.tl-item { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 clamp(4px, .4vw, 8px); cursor: pointer; }
.tl-item::before { content: ""; position: absolute; top: calc(var(--dot-y) - .5px); left: 0; right: 0; height: 1px; background: var(--line); transition: background-color .3s; }
.tl-item:first-child::before { left: 50%; } .tl-item:last-child::before { right: 50%; }
.tl-item.is-passed::before { background: rgba(29,35,51,.35); }
.tl-dot { position: relative; z-index: 1; width: 11px; height: 11px; margin-top: calc(var(--dot-y) - 5.5px); border-radius: 50%; background: var(--dot); border: 0; padding: 0; transition: background-color .25s, transform .25s, box-shadow .25s; }
.tl-dot::after { content: ""; position: absolute; inset: -14px; }
.tl-dot:hover { background: #8d929c; }
.tl-item.is-active .tl-dot { background: var(--navy); transform: scale(1.1); box-shadow: 0 0 0 4px #fff, 0 0 0 5.5px var(--navy); }
.tl-label { margin-top: 18px; font-size: 11px; font-weight: 500; letter-spacing: .21em; text-transform: uppercase; color: var(--text-soft); padding-left: .21em; transition: color .25s; }
.tl-icon { width: 40px; height: 40px; margin-top: 22px; fill: none; stroke: #8a8f99; stroke-width: 1.15; stroke-linecap: round; stroke-linejoin: round; transition: stroke .25s, transform .3s; }
.tl-title { margin-top: 16px; font-family: var(--sans); font-size: 12.5px; font-weight: 500; letter-spacing: .15em; line-height: 1.6; text-transform: uppercase; color: var(--navy); padding-left: .15em; min-height: 3.2em; }
.tl-desc { margin-top: 8px; font-size: 13px; line-height: 1.6; color: var(--text-soft); max-width: 210px; transition: color .25s; }
.tl-item:not(.is-active) .tl-title, .tl-item:not(.is-active) .tl-desc { opacity: .86; }
.tl-item.is-active .tl-label { color: var(--navy); }
.tl-item.is-active .tl-icon { stroke: var(--navy); transform: translateY(-2px); }
.tl-item.is-active .tl-desc { color: var(--text); }
.tl-arrow { position: absolute; top: calc(var(--dot-y) - 22px); z-index: 3; width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1px solid #eef0f2; box-shadow: 0 2px 10px rgba(29,35,51,.12); display: grid; place-items: center; padding: 0; transition: box-shadow .2s, transform .2s; }
.tl-arrow svg { width: 22px; height: 22px; fill: none; stroke: var(--navy); stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.tl-arrow:hover { box-shadow: 0 4px 16px rgba(29,35,51,.2); transform: scale(1.05); }
.tl-prev { left: 0; } .tl-next { right: 0; }
@media (min-width: 901px) { .tl-track { margin-inline: 64px; } }

/* ---------- Service detail panel ---------- */
.sp-wrap { position: relative; margin-top: clamp(26px, 2.8vw, 38px); background: #fbfbfc; border: 1px solid var(--line); border-radius: 4px; padding: clamp(20px, 2.4vw, 30px) clamp(20px, 2.8vw, 40px) 46px; overflow: hidden; }
.sp-progress { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: transparent; }
.sp-progress span { display: block; height: 100%; width: 0; background: var(--navy); opacity: .55; }
.sp-progress span.is-running { animation: sp-fill var(--autoplay-ms, 8s) linear forwards; }
.sp-progress.is-paused span { animation-play-state: paused; }
@keyframes sp-fill { from { width: 0; } to { width: 100%; } }
.sp-stack { display: grid; }
.sp { grid-area: 1 / 1; display: grid; grid-template-columns: 1.45fr 1fr 1fr; gap: clamp(20px, 3.4vw, 52px); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .45s ease, transform .45s ease, visibility 0s .45s; }
.sp.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .45s ease .1s, transform .45s ease .1s, visibility 0s; }
.sp-no { font-size: 11px; letter-spacing: .22em; color: var(--text-soft); }
.sp-title { margin-top: 6px; font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2vw, 28px); color: var(--navy); line-height: 1.2; }
.sp-intro { margin-top: 10px; font-size: 14.5px; line-height: 1.7; max-width: 62ch; }
.sp-note { margin-top: 10px; font-size: 12.5px; color: var(--text-soft); font-style: italic; }
.sp-col h4 { margin: 0 0 12px; font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--navy); padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.sp-col ul { display: grid; gap: 8px; }
.sp-col li { position: relative; padding-left: 16px; font-size: 13.5px; line-height: 1.55; color: var(--text); }
.sp-col li::before { content: ""; position: absolute; left: 1px; top: .6em; width: 5px; height: 5px; background: var(--navy); transform: rotate(45deg); }
.pause-btn { position: absolute; right: 14px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 0; padding: 6px 8px; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-soft); border-radius: 3px; transition: color .2s; }
.pause-btn:hover { color: var(--navy); }
.pause-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pause-btn .i-play { display: none; fill: currentColor; stroke: none; }
.pause-btn[aria-pressed="true"] .i-pause { display: none; }
.pause-btn[aria-pressed="true"] .i-play { display: inline; }
.no-autoplay .pause-btn, .no-autoplay .sp-progress { display: none; }

/* ---------- Projects + slider ---------- */
.projects { background: var(--bg-alt); padding: clamp(36px, 4vw, 56px) 0 clamp(40px, 4.4vw, 64px); border-top: 1px solid #f0f1f3; }
.projects-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(20px, 2.2vw, 30px); }
.section-title { font-family: var(--serif); font-weight: 400; color: var(--navy); font-size: clamp(25px, 2.3vw, 34px); line-height: 1.2; letter-spacing: -.008em; }
.section-sub { margin-top: 8px; color: var(--text-soft); font-size: 15px; }
.link-caps { font-size: 11.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--navy); display: inline-flex; gap: 10px; align-items: center; padding-bottom: 3px; border-bottom: 1px solid transparent; transition: border-color .2s; }
.link-caps span { font-size: 1.15em; letter-spacing: 0; transition: transform .2s; }
.link-caps:hover { border-color: var(--navy); } .link-caps:hover span { transform: translateX(3px); }

.slider { --gap: 18px; --n: 4; position: relative; }
.cards { display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 10px 2px 16px; margin: -10px -2px 0; overscroll-behavior-x: contain; }
.cards::-webkit-scrollbar { display: none; }
.card { flex: 0 0 calc((100% - var(--gap) * (var(--n) - 1)) / var(--n)); scroll-snap-align: start; position: relative; background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 20px 22px 18px; display: flex; flex-direction: column; min-height: 288px; transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s, border-color .3s; }
.card:hover, .card:focus-within { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(29,35,51,.09); border-color: #d6d9de; }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.card-cat { font-size: 10px; font-weight: 500; letter-spacing: .17em; text-transform: uppercase; color: var(--text-soft); line-height: 1.3; padding-top: 4px; }
.card-cat i { display: block; width: 24px; height: 1px; background: #9aa0aa; margin-top: 9px; }
.card-logo { width: 64px; height: 64px; flex: none; margin: -4px -4px 0 0; }
.card-name { margin-top: 18px; font-family: var(--serif); font-weight: 400; font-size: 18px; letter-spacing: .07em; text-transform: uppercase; color: var(--navy); line-height: 1.3; }
.card-desc { margin-top: 10px; font-size: 13.5px; line-height: 1.6; color: var(--text-soft); }
.card-foot { margin-top: auto; padding-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.card-link { font-size: 10.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--navy); display: inline-flex; gap: 8px; align-items: center; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: 4px; }
.card-link span { font-size: 1.15em; letter-spacing: 0; transition: transform .2s; }
.card:hover .card-link span { transform: translateX(4px); }
.card-link:focus-visible { outline: none; }
.card:has(.card-link:focus-visible) { outline: 2px solid var(--navy); outline-offset: 3px; }

.badge { display: inline-block; font-size: 9.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; padding: 4px 8px; border-radius: 2px; line-height: 1.2; white-space: nowrap; }
.badge-live { background: #e6f0ea; color: #24573c; }
.badge-dev { background: #eceef1; color: #4b515c; }
.badge-info { background: #fff; color: #5d636e; border: 1px dashed #b4b9c1; }

.slider-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 8px; position: relative; }
.sl-arrow { width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 1px solid #eceef0; box-shadow: 0 2px 8px rgba(29,35,51,.1); display: grid; place-items: center; padding: 0; transition: box-shadow .2s, transform .2s, opacity .2s; }
.sl-arrow svg { width: 20px; height: 20px; fill: none; stroke: var(--navy); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.sl-arrow:hover { box-shadow: 0 4px 14px rgba(29,35,51,.18); transform: scale(1.05); }
.sl-dots { display: flex; gap: 8px; }
.sl-dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: #c3c7ce; position: relative; transition: background-color .25s, width .25s, border-radius .25s; }
.sl-dots button::after { content: ""; position: absolute; inset: -8px; }
.sl-dots button[aria-current="true"] { background: var(--navy); width: 22px; border-radius: 4px; }
.pause-btn-sm { position: absolute; right: 0; bottom: auto; top: 50%; transform: translateY(-50%); }
.slider.no-scroll .slider-controls .sl-arrow, .slider.no-scroll .sl-dots { display: none; }

.status-block { margin-top: clamp(30px, 3.4vw, 48px); }
.block-title { font-family: var(--serif); font-weight: 400; font-size: 20px; color: var(--navy); }
.block-sub { margin-top: 6px; font-size: 14px; color: var(--text-soft); max-width: 70ch; }
.table-wrap { margin-top: 14px; overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 4px; }
.status-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 560px; }
.status-table th, .status-table td { text-align: left; padding: 11px 16px; border-bottom: 1px solid #eff0f2; vertical-align: top; }
.status-table thead th { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-soft); font-weight: 500; background: #fbfbfc; }
.status-table tbody tr:last-child th, .status-table tbody tr:last-child td { border-bottom: 0; }
.status-table tbody th { font-family: var(--serif); font-weight: 400; letter-spacing: .06em; color: var(--navy); white-space: nowrap; }
.status-table tbody th a:hover { text-decoration: underline; }

/* ---------- Generic sections ---------- */
.section { padding: clamp(40px, 4.6vw, 68px) 0; }
.eyebrow { font-size: 11.5px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 12px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.prose { margin-top: 14px; max-width: 60ch; font-size: 15.5px; line-height: 1.7; }
.text-link { color: var(--navy); border-bottom: 1px solid var(--line); transition: border-color .2s; } .text-link:hover { border-color: var(--navy); }
.section-head { max-width: 920px; margin-bottom: clamp(22px, 2.6vw, 36px); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 44px); }
.step { border-top: 1px solid var(--navy); padding-top: 18px; }
.step-no { font-family: var(--serif); font-size: 14px; color: var(--text-soft); letter-spacing: .1em; }
.step h3 { font-family: var(--serif); font-weight: 400; font-size: 21px; color: var(--navy); margin: 10px 0 8px; }
.step p { font-size: 15px; line-height: 1.65; max-width: 38ch; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 44px); margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.principles li { font-size: 14px; line-height: 1.6; } .principles strong { color: var(--navy); font-weight: 600; }
.about { background: var(--bg-alt); border-top: 1px solid #f0f1f3; }
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 5vw, 90px); align-items: start; }
.team { margin-top: 24px; }
.person { margin-top: 12px; display: flex; align-items: center; gap: 14px; }
.person strong { display: block; color: var(--navy); font-weight: 600; } .person span:not(.avatar) { font-size: 13px; color: var(--text-soft); }
.avatar { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--navy); display: grid; place-items: center; font-family: var(--serif); color: var(--navy); font-size: 14px; letter-spacing: .06em; flex: none; background: #fff; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.facts div { background: #fff; padding: 18px 20px; }
.facts dt { font-size: 10.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--text-soft); }
.facts dd { margin-top: 6px; font-family: var(--serif); font-size: 19px; color: var(--navy); }
.about-mark { margin: 22px auto 0; opacity: .9; width: 104px; height: 104px; }
.faq { background: #fff; }
.faq-grid { display: grid; grid-template-columns: .8fr 1.6fr; gap: clamp(24px, 5vw, 80px); align-items: start; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item summary { cursor: pointer; list-style: none; padding: 16px 36px 16px 0; font-family: var(--serif); font-size: 17px; color: var(--navy); position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-family: var(--sans); font-size: 20px; font-weight: 300; transition: transform .25s; }
.faq-item[open] summary::after { content: "–"; }
.faq-a { padding: 0 36px 18px 0; font-size: 14.5px; line-height: 1.7; }
.faq-a a { color: var(--navy); border-bottom: 1px solid var(--line); }
.contact { background: var(--bg-alt); border-top: 1px solid #f0f1f3; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 90px); align-items: start; }
.contact-list { margin-top: 20px; display: grid; gap: 12px; }
.contact-list dt { font-size: 10.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--text-soft); }
.contact-list dd { margin-top: 2px; font-size: 15px; }
.form { display: grid; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: clamp(20px, 2.6vw, 30px); }
.field { display: grid; gap: 6px; }
.field label { font-size: 10.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--text-soft); }
.field input, .field select, .field textarea { font: inherit; font-size: 15px; color: var(--navy); background: #fff; border: 1px solid #d9dce1; border-radius: 3px; padding: 10px 13px; width: 100%; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 104px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(29,35,51,.12); }
.field [aria-invalid="true"] { border-color: #a4443f; }
.field-error { color: #a4443f; font-size: 12.5px; }
.form .btn { justify-self: start; cursor: pointer; }
.form-note { font-size: 12.5px; color: var(--text-soft); line-height: 1.55; }
.form-note a { border-bottom: 1px solid var(--line); } .form-note.is-ok { color: #2f6b4b; }

/* ---------- Sub pages ---------- */
.subpage { padding-bottom: clamp(40px, 4.6vw, 64px); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--text-soft); padding: 20px 0 0; letter-spacing: .04em; }
.breadcrumb a:hover { color: var(--navy); } .breadcrumb [aria-current] { color: var(--navy); }
.proj-hero { display: grid; grid-template-columns: auto 1fr; gap: clamp(18px, 3vw, 36px); align-items: center; margin: 22px 0 8px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.proj-emblem { width: clamp(88px, 9vw, 120px); height: auto; }
.proj-title { font-family: var(--serif); font-weight: 400; color: var(--navy); font-size: clamp(30px, 3.4vw, 46px); line-height: 1.12; letter-spacing: .02em; }
.proj-tagline { margin-top: 10px; font-size: 17px; line-height: 1.55; color: var(--text); max-width: 62ch; }
.proj-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.page-head { padding: 22px 0 8px; margin-bottom: 8px; }
.proj-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 5vw, 72px); align-items: start; margin-top: 4px; }
.proj-main section { margin-top: 26px; }
.proj-main h2, .proj-aside h2, .notice h2 { font-family: var(--serif); font-weight: 400; font-size: 22px; color: var(--navy); margin-bottom: 8px; }
.proj-main p { margin-top: 8px; max-width: 68ch; font-size: 15.5px; line-height: 1.75; }
.check { display: grid; gap: 8px; margin-top: 8px; max-width: 68ch; }
.check li { position: relative; padding-left: 20px; font-size: 15px; line-height: 1.6; }
.check li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; background: var(--navy); transform: rotate(45deg); }
.notice { margin-top: 28px; padding: 16px 20px; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--navy); border-radius: 3px; max-width: 74ch; }
.notice-strong { background: #f7f7f8; }
.notice h2 { font-size: 18px; } .notice p, .notice li { font-size: 14.5px; line-height: 1.65; margin-top: 6px; }
.notice ul { display: grid; gap: 6px; padding-left: 18px; list-style: disc; }
.notice a { border-bottom: 1px solid var(--line); }
.proj-aside { position: sticky; top: calc(var(--header-h) + 20px); margin-top: 26px; }
.proj-aside .facts { grid-template-columns: 1fr; }
.proj-aside .facts div { padding: 12px 16px; display: grid; grid-template-columns: 128px 1fr; gap: 10px; align-items: baseline; }
.proj-aside .facts dd { font-size: 15px; margin: 0; }
.aside-note { margin-top: 12px; font-size: 13px; color: var(--text-soft); } .aside-note a { border-bottom: 1px solid var(--line); }
.proj-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); }
.proj-pager a { display: grid; gap: 4px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 4px; background: #fff; transition: border-color .2s, transform .2s; }
.proj-pager a:hover { border-color: #c4c8cf; transform: translateY(-2px); }
.proj-pager a:last-child { text-align: right; }
.proj-pager span { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-soft); }
.proj-pager strong { font-family: var(--serif); font-weight: 400; color: var(--navy); letter-spacing: .05em; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 20px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 16px; font-size: 12px; letter-spacing: .06em; color: var(--text); transition: all .2s; }
.chip:hover { border-color: #b8bdc5; } .chip.is-on { background: var(--navy); color: #fff; border-color: var(--navy); }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); overflow: visible; padding: 4px 0 0; margin: 0; scroll-snap-type: none; }
.cards-grid .card { flex: none; }
.cards-grid .card[hidden] { display: none; }
.legal-wrap { max-width: 1100px; }
.legal-grid { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); margin-top: 12px; align-items: start; }
.legal-grid:not(:has(.toc)) { grid-template-columns: minmax(0, 1fr); }
.toc { position: sticky; top: calc(var(--header-h) + 20px); font-size: 13px; }
.toc h2 { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-soft); font-family: var(--sans); font-weight: 500; margin-bottom: 8px; }
.toc ol { counter-reset: t; display: grid; gap: 2px; }
.toc li { counter-increment: t; } .toc a { display: block; padding: 4px 0; color: var(--text); } .toc a::before { content: counter(t) ". "; color: var(--text-soft); } .toc a:hover { color: var(--navy); }
.legal { max-width: 74ch; counter-reset: h; }
.legal h2 { font-family: var(--serif); font-weight: 400; font-size: 21px; color: var(--navy); margin: 30px 0 8px; scroll-margin-top: calc(var(--header-h) + 16px); }
.legal h2:first-child { margin-top: 0; }
.legal.has-numbers h2 { counter-increment: h; } .legal.has-numbers h2::before { content: counter(h) ". "; color: var(--text-soft); }
.legal p { margin-top: 8px; font-size: 15px; line-height: 1.75; }
.legal a { color: var(--navy); border-bottom: 1px solid var(--line); } .legal a:hover { border-color: var(--navy); }
.legal .stand { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-soft); }
.narrow { max-width: 680px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c9ccd3; padding: clamp(34px, 3.6vw, 48px) 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: clamp(20px, 3vw, 48px); }
.footer-logo { display: inline-flex; align-items: center; gap: 12px; font-family: var(--serif-logo); font-size: 19px; letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.footer-brand address { margin-top: 14px; font-style: normal; font-size: 13.5px; line-height: 1.7; color: #a9aeb9; }
.footer-brand address a:hover, .site-footer li a:hover { color: #fff; }
.site-footer h2 { font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: #fff; margin-bottom: 12px; }
.site-footer ul { display: grid; gap: 7px; } .site-footer li a { font-size: 13.5px; color: #c0c4cd; transition: color .2s; }
.footer-bottom { margin-top: 30px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: #a3a8b3; }
.footer-bottom a:hover { color: #fff; }
.site-footer :focus-visible { outline-color: #fff; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1239px) and (min-width: 941px) {
  .header-inner { gap: 14px; }
  .brand-name { font-size: 21px; } .brand-mark { width: 40px; height: 40px; }
  .main-nav ul { gap: clamp(14px, 1.6vw, 22px); }
  .main-nav a:not(.btn) { font-size: 10.5px; letter-spacing: .09em; }
  .header-cta { padding: 12px 14px; font-size: 10px; letter-spacing: .11em; gap: 7px; }
}
@media (max-width: 1199px) { .slider { --n: 3; } }
@media (max-width: 1100px) and (min-width: 901px) {
  .tl-track { margin-inline: 56px; }
  .tl-label { font-size: 9.5px; letter-spacing: .14em; padding-left: .14em; }
  .tl-title { font-size: 11px; letter-spacing: .09em; padding-left: .09em; }
  .tl-desc { font-size: 12.5px; }
}
@media (max-width: 940px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .header-cta { display: none; }
  .nav-toggle { display: block; }
  .main-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 18px 30px rgba(29,35,51,.1); padding: 8px var(--pad) 24px; display: none; justify-self: stretch; }
  .main-nav.is-open { display: block; animation: nav-in .22s ease; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li { border-bottom: 1px solid #eff0f2; }
  .main-nav a:not(.btn) { display: block; padding: 15px 0; font-size: 13px; }
  .main-nav a:not(.btn)::after { display: none; }
  .main-nav .nav-legal { display: flex; flex-direction: row; gap: 18px; margin-top: 14px; }
  .nav-legal li { border: 0; } .main-nav .nav-legal a:not(.btn) { padding: 4px 0; font-size: 11px; color: var(--text-soft); }
  .btn-nav-mobile { display: inline-flex; margin-top: 18px; }
  .site-header { position: sticky; }
  .proj-grid { grid-template-columns: 1fr; } .proj-aside { position: static; }
}
@keyframes nav-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .slider { --n: 2; }
  .tl-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 8px; margin-inline: calc(-1 * var(--pad)); padding-inline: calc(50vw - min(150px, 38vw)); scroll-behavior: smooth; }
  .tl-track::-webkit-scrollbar { display: none; }
  .tl-item { flex: 0 0 min(300px, 76vw); scroll-snap-align: center; padding: 0 22px; }
  .tl-desc { max-width: 28ch; }
  .tl-arrow { width: 38px; height: 38px; top: calc(var(--dot-y) - 19px); } .tl-prev { left: -4px; } .tl-next { right: -4px; }
  .sp { grid-template-columns: 1fr; gap: 18px; }
  .projects-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .steps, .principles { grid-template-columns: 1fr; gap: 22px; }
  .about-grid, .contact-grid, .faq-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .legal-grid { grid-template-columns: 1fr; } .toc { position: static; }
}
@media (max-width: 640px) {
  :root { --header-h: 62px; }
  .topbar-inner > span { display: none; } .topbar nav { margin-inline: auto; }
  .brand-mark { width: 38px; height: 38px; } .brand-name { font-size: 21px; }
  .tl-arrow { display: none; }
  .slider { --n: 1; --gap: 14px; }
  .card { flex-basis: 84%; }
  .cards-grid .card { flex-basis: auto; }
  .pause-btn-sm { position: static; transform: none; }
  .slider-controls { flex-wrap: wrap; }
  .proj-hero { grid-template-columns: 1fr; text-align: left; }
  .proj-pager { grid-template-columns: 1fr; } .proj-pager a:last-child { text-align: left; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .proj-aside .facts div { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .tl-track { scroll-behavior: auto; }
}
