/* Halyar, Nov 2026 redesign v6 "Logbuch": warm paper, deep petrol, one signal orange, serif display.
   Loaded after styles.css on every page with body.home. Everything visual hangs on the tokens below. */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/fonts/manrope-var-latin.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/fonts/fraunces-var-latin.woff2") format("woff2"); }

.home {
  --sans: "Manrope", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --h-display: "Fraunces", Georgia, "Times New Roman", serif;
  --h-display-weight: 560;
  --h-display-track: -.035em;
  --h-display-lh: .98;
  --h-radius: 16px;

  /* surfaces */
  --paper: #f7f3ec;
  --ink: #0f2229;
  --muted: #56666c;
  --soft-line: #ddd5c7;
  --line: #0f2229;
  --header-bg: rgba(247,243,236,.96);
  --rule-line: #ddd5c7;
  --surface-alt: #efe9dd;
  --h-card: #fffdf9;
  --h-tint: #efe9dd;
  --accent: #c2410c;
  --accent-strong: #9a3412;
  --h-accent-soft: rgba(194,65,12,.12);
  --h-shadow: rgba(15,34,41,.35);

  /* highlight: the one loud colour */
  --h-hi: #ff6b2c;
  --h-on-hi: #1a0f08;

  /* solid surfaces: nav button, agent chip, last playbook card, lead proof card */
  --h-solid: #0c2a33;
  --h-on-solid: #ffffff;
  --h-solid-kicker: #ff8a4c;
  --h-mark-bg: #ff6b2c;
  --h-mark-fg: #1a0f08;

  /* hero + closing band */
  --h-hero-bg: radial-gradient(70% 80% at 88% 8%, #fff8ee 0%, transparent 62%), #f7f3ec;
  --h-hero-fg: #0f2229;
  --h-hero-muted: #4a5a60;
  --h-hero-accent: #c2410c;
  --h-grid: rgba(15,34,41,.05);
  --h-sail: rgba(15,34,41,.035);
  --h-wave: 15,34,41;
  --h-wave-alpha: .2;
  --h-close-bg: #0c2a33;
  --h-close-fg: #ffffff;
  --h-close-muted: rgba(255,255,255,.76);
  --h-close-accent: #ff8a4c;
  --h-close-grid: rgba(255,255,255,.06);

  /* dark bands */
  --h-dark: #0c2a33;
  --h-dark-fg: #ffffff;
  --h-dark-muted: rgba(255,255,255,.7);
  --h-dark-line: rgba(255,255,255,.14);
  --h-dark-accent: #ff8a4c;

  /* console */
  --h-console-bg: #0b1f26;
  --h-console-line: #1e3640;
  --h-console-text: #e8ebf1;
  --h-console-muted: #8a9aa3;
  --h-console-tilt: 0deg;
  --h-ok: #22c55e;
  --h-wait: #f59e0b;

  color: var(--ink);
  background: var(--paper);
}
@media (prefers-color-scheme: dark) {
  .home {
    --paper: #0a1418; --ink: #f2ede4; --muted: #9aa8ac; --soft-line: #1f3037; --line: #2a3d45; --header-bg: rgba(10,20,24,.96); --rule-line: #1f3037; --surface-alt: #0d191e;
    --h-card: #0f1d22; --h-tint: #0d191e;
    --accent: #ff8a4c; --accent-strong: #ff6b2c; --h-accent-soft: rgba(255,138,76,.16);
    --h-solid: #17414e; --h-dark: #0f2c35;
    --h-hero-bg: radial-gradient(70% 80% at 88% 8%, #12272e 0%, transparent 62%), #0a1418;
    --h-hero-fg: #f2ede4; --h-hero-muted: #a9b5b8; --h-hero-accent: #ff8a4c; --h-grid: rgba(255,255,255,.04); --h-sail: rgba(255,255,255,.03);
    --h-wave: 242,237,228; --h-wave-alpha: .16;
    --h-close-bg: #0f2c35;
  }
}
.home .container { width: min(calc(100% - 2.5rem), 78rem); }
.home [id] { scroll-margin-top: 5.5rem; }
.home p { text-wrap: pretty; }

/* Header */
.home .site-header { position: sticky; top: 0; border-bottom: 1px solid var(--soft-line); background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.home .nav-wrap { width: min(calc(100% - 2.5rem), 78rem); min-height: 4.25rem; }
.home .brand { height: 2.6rem; }
.home .site-nav { gap: 1.6rem; }
.home .site-nav a { font-weight: 600; }
.home .site-nav a:not(.button):not(.lang-switch) { color: var(--muted); transition: color .15s; }
.home .site-nav a:not(.button):not(.lang-switch):hover { color: var(--ink); text-decoration: none; }
.home .button { min-height: 3rem; border-radius: 999px; padding: .75rem 1.4rem; font-size: .98rem; font-weight: 700; transition: background .15s, transform .15s, box-shadow .15s; }
.home .button:hover { transform: translateY(-2px); }
.home .button:not(.h-volt-btn), .home .button:not(.h-volt-btn):hover { border-color: var(--h-solid); color: var(--h-on-solid); background: var(--h-solid); }
.home .site-nav .button { min-height: 2.5rem; padding: .5rem 1.1rem; font-size: .88rem; }
.home .lang-switch { border-radius: 999px; }
.home .nav-toggle { border-color: var(--soft-line); border-radius: 999px; padding: .5rem .9rem; color: var(--ink); }
.h-volt-btn { border-color: var(--h-hi) !important; color: var(--h-on-hi) !important; background: var(--h-hi) !important; box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--h-hi) 60%, transparent); }
.h-volt-btn:hover { box-shadow: 0 16px 40px -12px color-mix(in srgb, var(--h-hi) 80%, transparent); }
.h-volt-btn::after { content: "→"; margin-left: .55rem; transition: transform .15s; }
.h-volt-btn:hover::after { transform: translateX(3px); }
.h-ghost { display: inline-flex; align-items: center; gap: .4rem; min-height: 3rem; padding: .7rem .4rem; color: inherit; font-weight: 700; text-decoration: none; }
.h-ghost:hover { text-decoration: underline; text-underline-offset: .3rem; }

/* Type */
.h-kicker { display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 1.25rem; color: var(--accent); font-family: var(--mono); font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.h-kicker::before { content: ""; width: .55rem; height: .55rem; border-radius: 2px; background: currentColor; }
.home h1, .home h2, .h-manifest-text, .h-big, .h-ip h3 { font-family: var(--h-display); font-weight: var(--h-display-weight); letter-spacing: var(--h-display-track); }
.home h1 { max-width: 12ch; margin-bottom: 1.75rem; font-size: clamp(3.1rem, 7.6vw, 7.25rem); line-height: var(--h-display-lh); }
.home h2 { max-width: 18ch; font-size: clamp(2.3rem, 5vw, 4.5rem); line-height: calc(var(--h-display-lh) + .04); }
.home h2 em { font-style: normal; color: var(--accent); }
.home h3 { font-weight: 700; }
.home .lead { color: var(--muted); font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; }
.h-section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.h-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 6vw, 6rem); align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.h-head h2 { margin-bottom: 0; }
.h-head .lead { margin: 0; }

/* Hero */
.h-hero { position: relative; padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(4.5rem, 9vw, 7.5rem); color: var(--h-hero-fg); background: var(--h-hero-bg); overflow: hidden; isolation: isolate; }
.h-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--h-grid) 1px, transparent 1px), linear-gradient(90deg, var(--h-grid) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%); }
.h-hero-sail { position: absolute; right: -6vw; bottom: -14vw; z-index: -1; width: min(62vw, 56rem); height: auto; color: var(--h-sail); }
.h-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
.h-hero .h-kicker { color: var(--h-hero-accent); }
.h-hero h1 em { font-style: normal; color: var(--h-hero-accent); }
.h-hero .lead { max-width: 35rem; margin-bottom: 2.25rem; color: var(--h-hero-muted); }
.h-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; }
.h-fits { display: flex; flex-wrap: wrap; gap: .4rem; margin: 2.25rem 0 0; padding: 0; list-style: none; color: var(--h-hero-muted); font-size: .8rem; font-weight: 600; }
.h-fits li { padding: .25rem .65rem; border: 1px solid color-mix(in srgb, var(--h-hero-fg) 24%, transparent); border-radius: 999px; }
.h-fits li:first-child { padding-left: 0; border: 0; font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; align-self: center; }

/* Agent run console */
.h-run { position: relative; margin: 0; border: 1px solid rgba(255,255,255,.14); border-radius: 20px; color: var(--h-console-text); background: var(--h-console-bg); box-shadow: 0 50px 100px -30px rgba(5,10,40,.7), 0 0 0 8px color-mix(in srgb, var(--h-hero-fg) 7%, transparent); font-size: .9rem; overflow: hidden; transform: rotate(var(--h-console-tilt)); }
.h-run-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .95rem 1.2rem; border-bottom: 1px solid var(--h-console-line); }
.h-run-title { display: flex; align-items: center; gap: .6rem; font-weight: 700; }
.h-run-title svg { width: 1rem; height: 1.15rem; color: var(--h-hi); }
.h-live { display: inline-flex; align-items: center; gap: .45rem; color: var(--h-console-muted); font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.h-live::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--h-hi); animation: h-pulse 2s infinite; }
.h-run.is-approved .h-live::before { background: var(--h-ok); animation: none; }
@keyframes h-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--h-hi) 60%, transparent); } 70% { box-shadow: 0 0 0 .5rem transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.h-steps { margin: 0; padding: .6rem 1.2rem 1rem; list-style: none; }
.h-step { position: relative; display: grid; grid-template-columns: 1.6rem 1fr auto; gap: .8rem; padding: .8rem 0; opacity: 0; transform: translateY(6px); animation: h-in .5s ease forwards; }
.h-step:nth-child(1) { animation-delay: .2s; } .h-step:nth-child(2) { animation-delay: .7s; } .h-step:nth-child(3) { animation-delay: 1.2s; } .h-step:nth-child(4) { animation-delay: 1.7s; } .h-step:nth-child(5) { animation-delay: 2.2s; }
@keyframes h-in { to { opacity: 1; transform: none; } }
.h-step + .h-step { border-top: 1px dashed var(--h-console-line); }
.h-dot { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: rgba(34,197,94,.14); color: var(--h-ok); font-size: .75rem; font-weight: 700; transition: background .3s, color .3s, border-color .3s; }
.h-step.is-wait .h-dot { background: rgba(245,158,11,.14); color: var(--h-wait); }
.h-step.is-next .h-dot { background: transparent; border: 1px dashed var(--h-console-line); color: var(--h-console-muted); }
.h-run.is-approved .h-step .h-dot { border-color: transparent; background: rgba(34,197,94,.14); color: var(--h-ok); }
.h-step strong { display: block; font-weight: 700; line-height: 1.35; }
.h-step .h-sub { display: block; margin-top: .15rem; color: var(--h-console-muted); font-size: .82rem; line-height: 1.45; }
.h-step.is-next strong { color: var(--h-console-muted); transition: color .3s; }
.h-run.is-approved .h-step.is-next strong { color: inherit; }
.h-time { color: var(--h-console-muted); font-family: var(--mono); font-size: .72rem; padding-top: .2rem; }
.h-run .h-t1 { display: none; }
.h-run.is-approved .h-t0 { display: none; }
.h-run.is-approved .h-t1 { display: inline-flex; animation: h-in .4s ease both; }
.h-approve { grid-column: 2 / 4; margin-top: .7rem; padding: .85rem; border: 1px solid var(--h-console-line); border-radius: 10px; background: rgba(255,255,255,.03); }
.h-approve p { margin: 0 0 .7rem; font-size: .85rem; }
.h-approve-row { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; min-height: 2rem; }
.h-approve-row > * { padding: .35rem .75rem; border: 1px solid var(--h-console-line); border-radius: 7px; color: var(--h-console-muted); background: none; font-size: .78rem; font-weight: 700; line-height: 1.3; }
.h-approve-row button { border-color: var(--h-hi); color: var(--h-on-hi); background: var(--h-hi); cursor: pointer; transition: transform .12s, box-shadow .2s; animation: h-nudge 2.4s 3.4s ease-out 2; }
.h-approve-row button:hover { box-shadow: 0 0 0 4px color-mix(in srgb, var(--h-hi) 28%, transparent); }
.h-approve-row button:active, .h-run.is-pressing .h-approve-row button { transform: scale(.94); }
@keyframes h-nudge { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--h-hi) 70%, transparent); } 60%, 100% { box-shadow: 0 0 0 .7rem transparent; } }
.h-approve-row.h-t1 > span { padding-left: 0; border: 0; color: var(--h-ok); }
.h-run-foot { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 1.2rem; border-top: 1px solid var(--h-console-line); color: var(--h-console-muted); font-family: var(--mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; }

/* Marquee */
.h-marquee { position: relative; padding: 1.15rem 0; color: var(--h-dark-fg); background: var(--h-dark); overflow: hidden; }
.h-marquee-track { display: flex; width: max-content; gap: 0; margin: 0; padding: 0; list-style: none; animation: h-scroll 56s linear infinite; }
.h-marquee:hover .h-marquee-track { animation-play-state: paused; }
.h-marquee li { display: inline-flex; align-items: center; gap: .7rem; padding: 0 1.6rem; font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.h-marquee li::after { content: "→ Agent"; padding: .2rem .55rem; border-radius: 999px; color: var(--h-on-hi); background: var(--h-hi); font-family: var(--mono); font-size: .68rem; font-weight: 700; letter-spacing: .04em; }
@keyframes h-scroll { to { transform: translateX(-50%); } }

/* Manifest */
.h-manifest { padding: clamp(5rem, 10vw, 9rem) 0; }
.h-manifest-text { max-width: 20ch; margin: 0 0 3rem; font-size: clamp(2.2rem, 5.2vw, 5rem); line-height: 1.02; text-wrap: balance; }
.h-manifest-text span { color: color-mix(in srgb, var(--ink) 34%, var(--paper)); }
.h-manifest-text mark { padding: 0 .12em; border-radius: .12em; color: var(--h-mark-fg); background: var(--h-mark-bg); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.h-manifest-foot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; padding-top: 2rem; border-top: 2px solid var(--ink); }
.h-manifest-foot strong { display: block; margin-bottom: .4rem; font-size: 1.15rem; letter-spacing: -.01em; }
.h-manifest-foot p { margin: 0; color: var(--muted); font-size: .97rem; }

/* People (dark band) */
.h-people { color: var(--h-dark-fg); background: var(--h-dark); }
.h-people .lead { color: var(--h-dark-muted); }
.h-people .h-kicker { color: var(--h-dark-accent); }
.h-people h2 em { color: var(--h-dark-accent); }
.h-people-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.h-people-grid article { padding: 2rem 1.75rem; border: 1px solid var(--h-dark-line); border-radius: var(--h-radius); background: rgba(255,255,255,.03); }
.h-people-grid .h-big { display: block; margin-bottom: 1.5rem; color: var(--h-dark-accent); font-size: clamp(2.4rem, 3.6vw, 3.3rem); line-height: 1; }
.h-people-grid h3 { margin-bottom: .5rem; font-size: 1.3rem; letter-spacing: -.02em; }
.h-people-grid p { margin: 0; color: var(--h-dark-muted); font-size: .97rem; }

/* Playbook */
.h-playbook { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.h-playbook li { position: relative; display: flex; flex-direction: column; padding: 1.75rem 1.5rem 1.5rem; border: 1px solid var(--soft-line); border-radius: var(--h-radius); background: var(--h-card); }
.h-playbook li:last-child { color: var(--h-on-solid); border-color: var(--h-solid); background: var(--h-solid); }
.h-playbook li:last-child p { color: var(--h-on-solid); opacity: .85; }
.h-playbook li:last-child .h-num { color: var(--h-solid-kicker); }
.h-playbook .h-num { display: block; margin-bottom: 3rem; color: var(--accent); font-family: var(--mono); font-size: .8rem; font-weight: 700; letter-spacing: .1em; }
.h-playbook h3 { margin-bottom: .6rem; font-size: 1.45rem; letter-spacing: -.03em; }
.h-playbook p { margin: 0; color: var(--muted); font-size: .95rem; }
.h-playbook li:not(:last-child)::after { content: "→"; position: absolute; top: 1.6rem; right: 1.4rem; color: var(--muted); font-size: 1.1rem; }

/* Use cases */
.h-cases-wrap { background: var(--h-tint); }
.h-cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.home .screen-card { display: flex; flex-direction: column; padding: 1.85rem; border: 1px solid var(--soft-line); border-radius: var(--h-radius); background: var(--h-card); transition: border-color .2s, transform .2s, box-shadow .2s; }
.home .screen-card + .screen-card { border-left: 1px solid var(--soft-line); }
.home .screen-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 28px 56px -30px var(--h-shadow); }
.home .screen-card .field-label { margin-bottom: 1.25rem; color: var(--accent); }
.home .screen-card h3 { margin-bottom: .6rem; font-size: 1.55rem; letter-spacing: -.03em; }
.home .screen-card > p { margin: 0 0 1.5rem; color: var(--muted); font-size: .97rem; }
.h-flow { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin: auto 0 0; padding: 1.1rem 0 0; border-top: 1px dashed var(--soft-line); list-style: none; font-size: .78rem; font-weight: 600; }
.h-flow li { padding: .3rem .6rem; border-radius: 6px; background: var(--h-tint); }
.h-flow li.is-agent { color: var(--h-on-solid); background: var(--h-solid); font-weight: 700; }
.h-flow li.is-human { color: var(--h-on-hi); background: var(--h-hi); font-weight: 700; }
.h-flow li + li { position: relative; margin-left: 1.1rem; }
.h-flow li + li::before { content: "→"; position: absolute; left: -1.05rem; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 400; }
.h-note { margin: 1.75rem 0 0; color: var(--muted); font-size: .9rem; }

/* Platform */
.h-guards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--soft-line); border-radius: var(--h-radius); background: var(--soft-line); overflow: hidden; }
.h-guards article { padding: 1.75rem 1.5rem; background: var(--paper); }
.h-guards svg { width: 1.7rem; height: 1.7rem; margin-bottom: 1.5rem; color: var(--accent); }
.h-guards h3 { margin-bottom: .5rem; font-size: 1.15rem; letter-spacing: -.01em; }
.h-guards p { margin: 0; color: var(--muted); font-size: .92rem; }
.h-ip { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: center; margin-top: 1.25rem; padding: clamp(1.75rem, 4vw, 2.75rem); border-radius: var(--h-radius); color: var(--h-on-hi); background: var(--h-hi); }
.h-ip svg { width: clamp(2.5rem, 5vw, 3.5rem); height: auto; }
.h-ip h3 { margin: 0 0 .4rem; font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -.04em; }
.h-ip p { max-width: 52rem; margin: 0; color: color-mix(in srgb, var(--h-on-hi) 80%, transparent); font-size: 1.05rem; }

/* FAQ */
.h-faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 6rem); }
.h-faq details { border-bottom: 1px solid var(--soft-line); }
.h-faq details:first-child { border-top: 1px solid var(--soft-line); }
.h-faq summary { display: flex; justify-content: space-between; gap: 1rem; padding: 1.35rem 0; font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em; cursor: pointer; list-style: none; transition: color .15s; }
.h-faq summary:hover { color: var(--accent); }
.h-faq summary::-webkit-details-marker { display: none; }
.h-faq summary::after { content: "+"; color: var(--accent); font-family: var(--mono); font-size: 1.25rem; transition: transform .2s; }
.h-faq details[open] summary::after { transform: rotate(45deg); }
.h-faq details p { margin: 0 0 1.4rem; color: var(--muted); }

/* Close */
.h-close { position: relative; padding: clamp(5.5rem, 11vw, 9rem) 0; color: var(--h-close-fg); text-align: center; background: var(--h-close-bg); overflow: hidden; isolation: isolate; }
.h-close .h-hero-sail { right: auto; left: 50%; bottom: -30%; transform: translateX(-50%); width: min(80vw, 46rem); color: var(--h-close-grid); }
.h-close .h-kicker { justify-content: center; color: var(--h-close-accent); }
.h-close h2 { max-width: 16ch; margin-inline: auto; font-size: clamp(2.6rem, 6.4vw, 5.8rem); }
.h-close .lead { max-width: 38rem; margin: 0 auto 2.25rem; color: var(--h-close-muted); }
.h-close .h-actions { justify-content: center; }
.h-close .h-mail { margin: 1.4rem auto 0; color: var(--h-close-muted); font-size: .92rem; }
.h-close .h-mail a { color: var(--h-close-fg); }

.home .site-footer { border-top: 0; }
.home .site-footer .brand { height: 2.2rem; }
.h-footnote { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .82rem; }

/* Sub pages */
.h-hero--page { padding: clamp(4rem, 8vw, 7rem) 0 clamp(4rem, 8vw, 6.5rem); }
.h-hero--page h1 { max-width: 14ch; font-size: clamp(2.9rem, 6.6vw, 6rem); }
.h-hero--page .lead { max-width: 40rem; }
.h-hero--page .h-hero-sail { width: min(44vw, 34rem); bottom: -10vw; }
.h-section--flush { padding-top: 0; }
.h-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.h-split h2 { margin-bottom: 1.5rem; }
.h-chores { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--soft-line); }
.h-chores li { display: grid; grid-template-columns: 2.5rem 1fr; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--soft-line); }
.h-chores li > span { padding-top: .2rem; color: var(--accent); font-family: var(--mono); font-size: .8rem; font-weight: 700; }
.h-chores strong { display: block; font-size: 1.15rem; letter-spacing: -.01em; }
.h-chores p { margin: .25rem 0 0; color: var(--muted); font-size: .97rem; }
.h-people .h-chores, .h-people .h-chores li { border-color: var(--h-dark-line); }
.h-people .h-chores li > span { color: var(--h-dark-accent); }
.h-people .h-chores p { color: var(--h-dark-muted); }
.h-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.h-tile { padding: 1.75rem 1.5rem; border: 1px solid var(--soft-line); border-radius: var(--h-radius); background: var(--h-card); }
.h-tile .h-num { display: block; margin-bottom: 2.5rem; color: var(--accent); font-family: var(--mono); font-size: .8rem; font-weight: 700; }
.h-tile h3 { margin-bottom: .6rem; font-size: 1.45rem; letter-spacing: -.03em; }
.h-tile p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Inquiry form */
.h-section--form { background: var(--h-tint); }
.h-form-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.home .form-file { border: 1px solid var(--soft-line); border-radius: 20px; background: var(--h-card); box-shadow: 0 40px 80px -40px rgba(15,23,42,.35); overflow: hidden; }
.home .form-file::before { content: none; }
.home .form-header { padding: 1.75rem 1.75rem 0; border-bottom: 0; }
.home .form-header h2 { font-size: 2rem; letter-spacing: -.035em; }
.home .form-body { gap: 1.1rem 1rem; padding: 1.5rem 1.75rem 0; }
.home .form-field, .home .form-field:nth-child(odd) { padding: 0; border: 0; }
.home .form-field label { margin-bottom: .45rem; color: var(--muted); font-family: var(--sans); font-size: .85rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.home .form-field input:not([type="checkbox"]), .home .form-field textarea { padding: .8rem .95rem; border: 1px solid var(--soft-line); border-radius: 10px; background: var(--paper); transition: border-color .15s, box-shadow .15s; }
.home .form-field input:focus, .home .form-field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--h-accent-soft); }
.home .form-field textarea { min-height: 9rem; }
.home .form-field label.choice-row { color: var(--muted); font-weight: 400; }
.home .choice-row input { accent-color: var(--accent); }
.home .form-actions { padding: 1.5rem 1.75rem 1.75rem; }
.home .form-actions .button { width: 100%; }
.home .form-status { font-family: var(--sans); font-size: .9rem; }
.home .form-status.error { color: #e5484d; }

/* Logbuch details */
.home h1 em, .home h2 em { font-style: italic; }
.h-hero { border-bottom: 1px solid var(--soft-line); }
.h-run { border-color: transparent; box-shadow: 0 40px 80px -36px rgba(12,42,51,.55), 0 0 0 8px rgba(12,42,51,.06); }
.h-people-grid .h-big, .h-ip h3 { letter-spacing: -.03em; }
.h-manifest-text mark { border-radius: .08em; }
.home .button:not(.h-volt-btn), .home .button:not(.h-volt-btn):hover { border-color: var(--ink); color: var(--paper); background: var(--ink); }

/* Animated swell lines behind hero and closing band (canvas added by home.js) */
.h-bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity 1.4s ease; }
.h-bg.is-on { opacity: 1; }
.h-hero:has(.h-bg)::after { opacity: 0; }
.h-close { --h-wave: 255,255,255; --h-wave-alpha: .13; }

/* Landing page hero: copy + console */
.h-hero--lp h1 { max-width: 13ch; font-size: clamp(2.9rem, 6.2vw, 5.6rem); }
.h-fits a { color: inherit; text-decoration: none; }
.h-fits li:has(a) { transition: border-color .15s, color .15s; }
.h-fits li:has(a):hover { border-color: var(--h-hero-accent); color: var(--h-hero-accent); }

/* Proof: real projects */
.h-proof-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; }
.h-proof-card { display: flex; flex-direction: column; padding: 2rem 1.75rem 1.75rem; border: 1px solid var(--soft-line); border-radius: var(--h-radius); background: var(--h-card); }
.h-proof-card .field-label { margin-bottom: 1.5rem; color: var(--accent); }
.h-proof-card h3 { margin-bottom: 1.25rem; font-size: 1.5rem; letter-spacing: -.03em; line-height: 1.12; }
.h-proof-card > p:not(.field-label) { margin: 0 0 1.5rem; color: var(--muted); font-size: .97rem; }
.h-proof-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; margin-top: auto; padding-top: 1.1rem; border-top: 1px dashed var(--soft-line); }
.h-status { display: inline-flex; align-items: center; gap: .5rem; color: var(--muted); font-family: var(--mono); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.h-status::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: var(--h-hi); }
.h-proof-foot .h-more { margin-top: 0; }
.h-proof-card.is-lead { border-color: var(--h-solid); color: var(--h-on-solid); background: var(--h-solid); }
.h-proof-card.is-lead .field-label { color: var(--h-solid-kicker); }
.h-proof-card.is-lead > p:not(.field-label), .h-proof-card.is-lead .h-status { color: var(--h-dark-muted); }
.h-proof-card.is-lead .h-proof-foot { border-color: var(--h-dark-line); }
.h-more { display: inline-flex; gap: .4rem; margin-top: 1.25rem; color: var(--accent); font-size: .9rem; font-weight: 700; text-decoration: none; }
.h-more:hover { text-decoration: underline; text-underline-offset: .25rem; }
.h-proof-card.is-lead .h-more { color: var(--h-solid-kicker); }
.home .screen-card .h-more { margin-top: 1.1rem; }
.h-section--tint { background: var(--h-tint); }

/* Footer industries */
.h-branches { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin: 0; padding: 1.25rem 0 0; border-top: 1px solid var(--soft-line); color: var(--muted); font-size: .88rem; list-style: none; }
.h-branches li:first-child { font-family: var(--mono); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; align-self: center; }
.h-branches a { color: inherit; text-decoration: none; }
.h-branches a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: .25rem; }

@media (max-width: 1100px) { .h-proof-grid { grid-template-columns: 1fr 1fr; } .h-proof-card.is-lead { grid-column: 1 / -1; } }
@media (max-width: 700px) { .h-proof-grid { grid-template-columns: 1fr; } }


/* Scroll reveal: gentler than the base rule, staggered inside grids */
.home.js-reveal .reveal:not(.is-visible), .js-reveal .home .reveal:not(.is-visible) { transform: translateY(1.25rem); }
.home .reveal { transition-duration: .6s; }
.home .reveal:nth-child(2) { transition-delay: .07s; }
.home .reveal:nth-child(3) { transition-delay: .14s; }
.home .reveal:nth-child(4) { transition-delay: .21s; }

/* Responsive */
@media (max-width: 1100px) {
  .h-tiles, .h-playbook, .h-guards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .home .site-nav { gap: 0; border-bottom-color: var(--soft-line); }
  .home .site-nav a { border-top-color: var(--soft-line); }
  .home .site-nav .button, .home .site-nav .lang-switch { border-radius: 0; }
  .home .button { justify-content: center; }
  .h-hero-grid, .h-head, .h-faq, .h-split, .h-form-layout { grid-template-columns: 1fr; }
  .h-head { align-items: start; gap: 1.25rem; }
  .h-run { transform: none; }
  .h-cases, .h-people-grid, .h-manifest-foot { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .home .container, .home .nav-wrap { width: calc(100% - 2rem); }
  .home h1 { font-size: clamp(2.7rem, 13vw, 3.7rem); }
  .h-playbook, .h-guards, .h-tiles { grid-template-columns: 1fr; }
  .home .form-body { grid-template-columns: 1fr; padding-inline: 1.25rem; }
  .home .form-header, .home .form-actions { padding-inline: 1.25rem; }
  .h-playbook .h-num { margin-bottom: 1.5rem; }
  .h-step { grid-template-columns: 1.6rem 1fr; }
  .h-time { display: none; }
  .h-approve { grid-column: 2 / 3; }
  .h-actions .button { width: 100%; }
  .h-run-foot span:last-child { display: none; }
  .h-ip { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .h-step { opacity: 1; transform: none; animation: none; }
  .h-live::before, .h-marquee-track, .h-approve-row button { animation: none; }
}

/* Legal and utility pages keep their base layout, only the type scale is calmer */
.home .legal h1 { font-size: clamp(2.6rem, 5vw, 4rem); }
.home .legal h2 { max-width: none; font-size: 1.9rem; line-height: 1.1; letter-spacing: -.02em; }
.home .section, .home .page-hero { border-bottom-color: var(--soft-line); }
