/* ============================================================
   TW Projects — Cinematic Redesign · SECTIONS
   ============================================================ */

/* ============================================================
   LIGHT MODE = primary, editorial (Tres-Mares reduction).
   Text fuses with the page: open columns, hairlines, whitespace,
   the 3D recedes to delicate line-work behind big type.
   ============================================================ */
html[data-theme="light"] body { background: #FAFBFD; }
/* soften the frosted glass to a barely-there wash */
html[data-theme="light"] .glass {
  background: rgba(255, 255, 255, 0.34);
  -webkit-backdrop-filter: blur(5px) saturate(115%);
  backdrop-filter: blur(5px) saturate(115%);
  border-color: var(--line);
}
/* de-box the cards → open editorial columns separated by hairlines */
html[data-theme="light"] .ref-card {
  background: transparent;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  border: none; border-top: 1px solid var(--accent-deep);
  border-radius: 0; box-shadow: none;
  padding: 30px 0 0;
}
html[data-theme="light"] .ref-card:hover { transform: translateY(-3px); box-shadow: none; }
html[data-theme="light"] .loop-trust li { background: transparent; border: none; border-top: 1px solid var(--line); padding: 22px 0; }
/* let the section-index ghost numbers read more as layered editorial type */
html[data-theme="light"] .section-index { opacity: 0.06; color: var(--accent-deep); }
/* light mode keeps its blue stars subtle but actually visible */
html[data-theme="light"] .stars { opacity: 0.7; }
/* the atmosphere vignette is gentler on white */
html[data-theme="light"] .atmo::before { opacity: 0.5; }
/* a faint blue galaxy wash so light mode isn't flat white — soft nebula clouds,
   fixed behind all content, deliberately unobtrusive */
html[data-theme="light"] .atmo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(55% 42% at 78% 2%, rgba(46,111,224,0.16), transparent 70%),
    radial-gradient(48% 38% at 10% 24%, rgba(30,58,138,0.12), transparent 70%),
    radial-gradient(70% 55% at 58% 98%, rgba(91,168,255,0.16), transparent 72%),
    radial-gradient(42% 32% at 50% 46%, rgba(58,110,200,0.07), transparent 75%);
}
/* form fields cleaner on white */
html[data-theme="light"] .field input,
html[data-theme="light"] .field textarea { background: rgba(255,255,255,0.6); }

/* Oversized ghost word — large serif type set behind a section so the
   foreground headline overlaps and "merges" with the page (editorial). */
.ghost-word {
  position: absolute; font-family: var(--serif); font-style: italic; font-weight: 400;
  color: var(--accent); opacity: 0.05; pointer-events: none; user-select: none;
  line-height: 0.8; letter-spacing: -0.04em; white-space: nowrap; z-index: 0;
}
html[data-theme="dark"] .ghost-word { opacity: 0.08; }

/* ---------- HERO ---------- */
.hero {
  min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding-top: 120px; padding-bottom: 80px;
}
.hero .container { position: relative; }
.hero .pill {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg-2); padding: 8px 16px; border-radius: 100px;
  border: 1px solid var(--line-2); background: var(--glass);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); margin-bottom: 30px;
}
.hero .pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: pulse-dot 2.4s var(--ease) infinite; }
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.hero h1 { font-size: clamp(3rem, 10.5vw, 9.4rem); line-height: 0.9; letter-spacing: -0.045em; font-weight: 500; max-width: 14ch; }
.hero .lede { margin-top: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 42px; }
.scroll-cue {
  position: absolute; left: var(--pad); bottom: 34px; z-index: 3;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--fg-3);
  display: flex; align-items: center; gap: 12px;
}
.scroll-cue::after { content: ""; width: 1px; height: 40px; background: linear-gradient(var(--accent), transparent); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- STATEMENT ---------- */
#statement { text-align: center; padding: clamp(120px, 22vh, 280px) 0; overflow: hidden; }
#statement .container { position: relative; z-index: 1; }
.statement-line {
  font-size: clamp(2.6rem, 8vw, 7rem); line-height: 1.0; letter-spacing: -0.035em; font-weight: 500;
  max-width: 16ch; margin: 0 auto;
}
.statement-sub { margin: 38px auto 0; max-width: 50ch; color: var(--fg-2); font-size: clamp(1.05rem, 1.6vw, 1.4rem); }

/* ---------- LOGO STRIP (auto-scrolling marquee) ---------- */
.logo-strip { padding: clamp(60px, 9vh, 120px) 0; }
.logo-strip-title { text-align: center; color: var(--fg-3); margin-bottom: 40px; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.72rem; }
.logo-marquee {
  position: relative; overflow: hidden;
  border: 1px solid var(--line-2); border-radius: 20px; background: var(--glass-2);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.logo-track { display: flex; width: max-content; animation: logo-scroll 42s linear infinite; }
.logo-marquee:hover .logo-track { animation-play-state: paused; }   /* hold still so you can read/click */
@keyframes logo-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.logo-cell {
  position: relative; overflow: hidden; flex: 0 0 auto;
  width: clamp(170px, 17vw, 226px); height: 118px;
  display: grid; place-items: center; padding: 0 26px;
  border-left: 1px dashed var(--line-2);
  transition: background 0.5s var(--ease);
}
.logo-cell:hover { background: var(--accent-soft); }
.logo-cell img {
  max-width: 132px; max-height: 46px; object-fit: contain;
  filter: grayscale(1) brightness(1.5) invert(1); opacity: 0.55;   /* dark: legible monochrome */
  transition: opacity 0.4s var(--ease), filter 0.4s var(--ease), transform 0.4s var(--ease);
}
/* light: multiply drops white logo backgrounds so badge logos read cleanly, colours muted */
html[data-theme="light"] .logo-cell img { filter: none; mix-blend-mode: multiply; opacity: 0.82; }
/* hover → logo slides up out of view, the stat fades up into its place */
.logo-cell:hover img { opacity: 0; transform: translateY(-2.2em); }
/* beat the higher-specificity light base opacity so the logo fully clears (no overlap) */
html[data-theme="light"] .logo-cell:hover img { opacity: 0; }
.logo-stat {
  position: absolute; inset: 0; display: grid; place-content: center; gap: 3px;
  text-align: center; padding: 0 14px;
  opacity: 0; transform: translateY(1.5em); pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.logo-cell:hover .logo-stat { opacity: 1; transform: none; }
.logo-stat-num { font-family: var(--serif); font-style: italic; font-size: 2.1rem; line-height: 0.9; color: var(--accent); }
.logo-stat-label { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); }
.logo-stat-phrase { font-family: var(--serif); font-style: italic; font-size: 1.15rem; line-height: 1.2; color: var(--accent); }
.logo-cell img.logo-zoom { max-height: 58px; }
@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; flex-wrap: wrap; justify-content: center; }
  .logo-track > [aria-hidden="true"] { display: none; }
}

/* ---------- ANSATZ (approach rows) ---------- */
.approach-rows { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.approach-row {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(20px, 4vw, 60px);
  padding: clamp(30px, 4.5vw, 54px) 0; border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--fg); position: relative;
  transition: padding-left 0.6s var(--ease);
}
.approach-row::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: linear-gradient(90deg, var(--accent-soft), transparent);
  transition: width 0.6s var(--ease); z-index: -1;
}
.approach-row:hover { padding-left: 28px; }
.approach-row:hover::before { width: 100%; }
.approach-num { font-family: var(--serif); font-style: italic; font-size: clamp(2.6rem, 6vw, 4.6rem); color: var(--accent); opacity: 0.4; line-height: 1; transition: opacity 0.5s var(--ease); }
.approach-row:hover .approach-num { opacity: 1; }
.approach-body { display: grid; gap: 14px; }
.approach-body .icon-wrap { width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: 12px; display: grid; place-items: center; color: var(--accent); }
.approach-body .icon-wrap svg { width: 20px; height: 20px; }
.approach-body h3 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 500; letter-spacing: -0.02em; }
.approach-body p { color: var(--fg-2); max-width: 64ch; font-size: 1.02rem; line-height: 1.6; }
.approach-more { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; color: var(--accent); white-space: nowrap; transition: transform 0.5s var(--ease); }
.approach-row:hover .approach-more { transform: translateX(6px); }
@media (max-width: 760px) {
  .approach-row { grid-template-columns: 1fr; gap: 16px; }
  .approach-num { font-size: 2.4rem; }
  .approach-more { justify-self: start; }
}

/* ---------- CORE SYSTEM (Kreislauf) ---------- */
#core-system .loop-wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(30px, 5vw, 70px); align-items: center; margin-top: 40px; }
.loop-stage { position: relative; }
.loop-svg { width: 100%; height: auto; overflow: visible; }
.loop-center-glow { fill: url(#loop-center-grad); animation: loop-breathe 5s var(--ease) infinite; }
@keyframes loop-breathe { 0%,100% { opacity: 0.7; } 50% { opacity: 1; } }
.loop-ring { fill: none; stroke: var(--line-2); stroke-width: 1.5; }
.loop-dash { fill: none; stroke: var(--accent); stroke-width: 1; stroke-dasharray: 3 10; opacity: 0.5; animation: loop-spin 60s linear infinite; transform-origin: 320px 260px; }
@keyframes loop-spin { to { stroke-dashoffset: -260; } }
.loop-trace { fill: none; stroke: var(--accent-bright); stroke-width: 2.5; stroke-linecap: round; opacity: 0.9; filter: drop-shadow(0 0 6px var(--accent)); }
.loop-flash { fill: none; stroke: var(--accent-bright); stroke-width: 2; opacity: 0; }
.loop-center-lbl { fill: var(--fg-3); font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; text-anchor: middle; }
.loop-center-num { fill: var(--fg); font-family: var(--serif); font-style: italic; font-size: 54px; text-anchor: middle; }
.loop-station .halo { fill: var(--accent); opacity: 0.0; transition: opacity 0.4s var(--ease); }
.loop-station .node { fill: var(--bg-overlay); stroke: var(--line-2); stroke-width: 1.5; transition: stroke 0.4s var(--ease); }
.loop-station .ic { stroke: var(--accent); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.loop-station .lbl { fill: var(--fg); font-size: 15px; font-weight: 500; text-anchor: middle; }
.loop-station .sub { fill: var(--fg-3); font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; text-anchor: middle; }
.loop-station { cursor: pointer; outline: none; }
.loop-station:hover .halo, .loop-station:focus-visible .halo { opacity: 0.16; }
.loop-station:hover .node, .loop-station:focus-visible .node { stroke: var(--accent); }
.loop-traveler .chip { fill: var(--accent); filter: drop-shadow(0 0 10px var(--accent)); }
.loop-traveler .tic { stroke: #04122e; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.loop-tip {
  position: absolute; z-index: 5; width: max-content; max-width: 240px; padding: 13px 16px;
  background: var(--glass-2); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--line-2); border-radius: 12px; font-size: 0.88rem; line-height: 1.5; color: var(--fg);
  pointer-events: none; transform: translate(-50%, -120%); transition: opacity 0.2s ease;
}
.loop-caption { text-align: center; margin-top: 18px; color: var(--fg-3); font-size: 0.9rem; }
.loop-caption .num { color: var(--accent); font-family: var(--mono); }
.loop-trust { list-style: none; display: grid; gap: 22px; }
.loop-trust li { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; padding: 22px 24px; }
.loop-trust .tic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.loop-trust .tic svg { width: 18px; height: 18px; }
.loop-trust strong { display: block; font-size: 1.08rem; font-weight: 500; margin-bottom: 4px; }
.loop-trust p { color: var(--fg-2); font-size: 0.95rem; }
@media (max-width: 880px) { #core-system .loop-wrap { grid-template-columns: 1fr; } }
/* the hover tooltip gets squished to a sliver near the diagram edges on phones —
   the stations carry visible labels + subs anyway, so drop it on small screens */
@media (max-width: 760px) { .loop-tip { display: none !important; } }

/* ---------- WARUM (USP) ---------- */
#warum .usp { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px, 6vw, 90px); align-items: start; }
.usp-list { list-style: none; display: grid; gap: 0; }
.usp-list li {
  display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: baseline;
  padding: 24px 0; border-bottom: 1px solid var(--line); font-size: clamp(1.1rem, 1.8vw, 1.5rem); font-weight: 450; letter-spacing: -0.01em;
  transition: padding-left 0.5s var(--ease), color 0.4s var(--ease);
}
.usp-list li:first-child { border-top: 1px solid var(--line); }
.usp-list li:hover { padding-left: 14px; }
.usp-list .num { font-family: var(--mono); font-size: 0.82rem; color: var(--accent); letter-spacing: 0.1em; }
@media (max-width: 820px) { #warum .usp { grid-template-columns: 1fr; } }

/* ---------- REFERENZEN ---------- */
.ref-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.ref-card { padding: 32px; border-radius: 18px; transition: transform 0.6s var(--ease), border-color 0.6s var(--ease); }
.ref-card:hover { transform: translateY(-5px); border-color: var(--line-2); }
.ref-card.full { grid-column: 1 / -1; }
.ref-head { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.ref-logo { width: 64px; height: 64px; border-radius: 14px; background: var(--bg-base); border: 1px solid var(--line); display: grid; place-items: center; flex-shrink: 0; }
.ref-logo img { max-width: 44px; max-height: 30px; object-fit: contain; filter: grayscale(1) brightness(1.4) invert(1); opacity: 0.85; }
html[data-theme="light"] .ref-logo img { filter: none; mix-blend-mode: multiply; opacity: 0.9; }
.ref-meta h3 { font-size: 1.4rem; font-weight: 500; }
.ref-meta .kind { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-top: 4px; }
.ref-card .bullets { list-style: none; display: grid; gap: 14px; }
.ref-card .bullets li { color: var(--fg-2); font-size: 0.98rem; line-height: 1.55; padding-left: 22px; position: relative; }
.ref-card .bullets li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--accent); }
.ref-card .bullets strong { color: var(--fg); font-weight: 500; }
/* Ref cards are now links to case studies */
a.ref-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
a.ref-card .bullets { flex: 1; margin-bottom: 4px; }
.ref-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.ref-stat { display: flex; flex-direction: column; gap: 3px; }
.ref-stat-num { font-family: var(--serif); font-style: italic; font-size: 1.9rem; line-height: 0.9; color: var(--accent); }
.ref-stat-lbl { font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); }
.ref-stat-phrase { font-family: var(--serif); font-style: italic; font-size: 1.18rem; line-height: 1.1; color: var(--accent); }
.ref-more { font-size: 0.85rem; font-weight: 500; color: var(--fg-2); white-space: nowrap; transition: color 0.3s var(--ease); }
.ref-more span { display: inline-block; transition: transform 0.4s var(--ease); }
a.ref-card:hover .ref-more { color: var(--accent-bright); }
a.ref-card:hover .ref-more span { transform: translateX(4px); }
@media (max-width: 760px) { .ref-grid { grid-template-columns: 1fr; } .ref-card.full { grid-column: auto; } }

/* ---------- PROZESS (timeline) ---------- */
.timeline { position: relative; padding-left: clamp(40px, 7vw, 90px); }
.timeline-line { position: absolute; left: clamp(16px, 3vw, 38px); top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline-progress { position: absolute; top: 0; left: 0; width: 100%; height: 0; background: linear-gradient(var(--accent-bright), var(--accent)); box-shadow: 0 0 12px var(--accent); transition: height 0.1s linear; }
.phase { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 50px); padding: clamp(28px, 5vw, 56px) 0; position: relative; }
.phase-num { font-family: var(--serif); font-style: italic; font-size: clamp(2.4rem, 5vw, 4rem); color: var(--accent); line-height: 1; position: relative; }
.phase-num::before { content: ""; position: absolute; left: calc(-1 * clamp(40px, 7vw, 90px) - 0px); top: 50%; transform: translate(-50%, -50%); width: 14px; height: 14px; border-radius: 50%; background: var(--bg-base); border: 2px solid var(--accent); box-shadow: 0 0 14px var(--accent); }
.phase-body h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 500; margin-bottom: 12px; }
.phase-body p { color: var(--fg-2); max-width: 60ch; line-height: 1.6; }

/* ---------- TEAM ---------- */
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px, 5vw, 64px); }
.member-photos { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; margin-bottom: 26px; }
.member-photos .ph { border-radius: 16px; overflow: hidden; background: var(--bg-overlay); transition: transform 0.6s var(--ease); }
/* img scale is driven by the scroll zoom-parallax (motion.js); container handles hover lift */
.member-photos .ph picture { display: block; width: 100%; height: 100%; }
.member-photos .ph img { width: 100%; height: 100%; object-fit: cover; display: block; transform-origin: center; will-change: transform; transition: transform 0.45s var(--ease); }
.member-photos .ph.main { aspect-ratio: 4/5; }
.member-photos .side { display: grid; grid-template-rows: 1fr 1fr; gap: 12px; }
.member-photos .side .ph { aspect-ratio: 1; }
.member:hover .ph.main { transform: translateY(-5px); }
.member .role { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.member h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 500; }
.member .degree { color: var(--fg-3); font-size: 0.92rem; margin: 6px 0 18px; }
.member p { color: var(--fg-2); line-height: 1.65; }
.member .hobbies, .member .hobbys { margin-top: 18px; font-size: 0.9rem; color: var(--fg-3); }
.member .hobbies span, .member .hobbys span { color: var(--accent); }
@media (max-width: 760px) { .team-grid { grid-template-columns: 1fr; } }

/* ---------- FINAL CTA + FORM ---------- */
.final-cta { text-align: center; padding: clamp(110px, 18vh, 220px) 0; }
.final-cta .headline { max-width: 20ch; margin: 18px auto 0; }
.final-cta .lede { margin: 26px auto 0; }

/* ---------- Datenhoheit trust band ---------- */
.trust-band { padding: clamp(30px, 4vw, 52px); border-radius: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.trust-band .headline { margin-top: 16px; }
.trust-band .lede { margin-top: 18px; }
.trust-points { list-style: none; display: grid; gap: 16px; align-self: center; }
.trust-points li { color: var(--fg-2); line-height: 1.6; padding-left: 26px; position: relative; }
.trust-points li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--accent); }
.trust-points strong { color: var(--fg); font-weight: 500; }
.trust-points a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.trust-points a:hover { border-color: var(--accent); }
@media (max-width: 820px) { .trust-band { grid-template-columns: 1fr; } }

/* ---------- KI-Check band ---------- */
.check-band { padding: clamp(30px, 4vw, 52px); border-radius: 22px; display: flex; align-items: center; justify-content: space-between; gap: clamp(24px, 4vw, 48px); flex-wrap: wrap; }
.check-band .headline { margin-top: 14px; max-width: 18ch; }
.check-band .lede { margin-top: 16px; max-width: 52ch; }
.check-band .btn { flex-shrink: 0; }
@media (max-width: 720px) { .check-band { flex-direction: column; align-items: flex-start; } }
.contact-form { max-width: 620px; margin: 50px auto 0; text-align: left; }
.form-fields { display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); }
.field input, .field textarea {
  font-family: var(--sans); font-size: 1rem; color: var(--fg);
  background: var(--glass); border: 1px solid var(--line-2); border-radius: 12px; padding: 14px 16px;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.hp { position: absolute; left: -9999px; opacity: 0; }
#cf-submit {
  margin-top: 8px; display: inline-flex; align-items: center; gap: 0.55em; justify-content: center;
  background: var(--accent); color: #04122e; border: none; cursor: pointer;
  font-family: var(--sans); font-size: 1rem; font-weight: 500; padding: 1em 1.6em; border-radius: 100px;
  box-shadow: 0 0 0 1px var(--accent), 0 18px 50px -16px var(--accent); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
html[data-theme="light"] #cf-submit { color: #fff; }
#cf-submit:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 26px 70px -18px var(--accent); }
#cf-submit:disabled { opacity: 0.6; cursor: default; }
.status { font-size: 0.9rem; margin-top: 4px; min-height: 1.2em; }
.status.err { color: #ff8a8a; }
.form-success { text-align: center; padding: 30px 0; }
.form-success-icon { color: var(--accent); margin-bottom: 18px; }
.form-success-icon svg { width: 64px; height: 64px; }
.form-success-check { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw-check 0.8s var(--ease) forwards 0.2s; }
@keyframes draw-check { to { stroke-dashoffset: 0; } }
.form-success-title { font-size: 1.6rem; font-weight: 500; margin-bottom: 8px; }
.form-success-sub { color: var(--fg-2); max-width: 40ch; margin: 0 auto 22px; }
.form-success-reset { background: transparent; border: 1px solid var(--line-2); color: var(--fg); padding: 0.7em 1.3em; border-radius: 100px; cursor: pointer; font-family: var(--sans); transition: border-color 0.3s var(--ease); }
.form-success-reset:hover { border-color: var(--accent); }
.secondary-link { text-align: center; margin-top: 30px; color: var(--fg-3); font-size: 0.95rem; }
.secondary-link a { color: var(--accent); text-decoration: none; }
.secondary-link a:hover { text-decoration: underline; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- FOOTER ---------- */
footer.site { padding: clamp(70px, 10vh, 130px) 0 50px; border-top: 1px solid var(--line); margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-col .brand-mark { margin-bottom: 16px; }
.footer-col .brand-mark img { width: 28px; height: 28px; }
.footer-tag { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--fg-2); max-width: 22ch; line-height: 1.3; }
.footer-col h4 { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 18px; font-weight: 500; }
.footer-col ul { list-style: none; display: grid; gap: 12px; }
.footer-col ul a { color: var(--fg-2); text-decoration: none; font-size: 0.95rem; transition: color 0.3s var(--ease); }
.footer-col ul a:hover { color: var(--accent); }
.footer-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 60px; padding-top: 26px; border-top: 1px solid var(--line); color: var(--fg-3); font-size: 0.85rem; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
