/* Könemann Rechtsanwälte — "Die Kurve kriegen"
   White / cool paper / ink, one accent: turnaround green. Cabinet Grotesk + Satoshi + JetBrains Mono.
   Motion = the curve: interactive hero chart, page-long scroll-drawn line, tilt cards, portrait accordion. */

:root {
  --white: #ffffff;
  --paper: #f5f7f6;
  --ink: #101718;
  --ink-2: #34403f;
  --muted: #66706f;
  --line: rgba(16, 23, 24, .12);
  --green: #00a870;
  --green-deep: #06402f;
  --green-soft: rgba(0, 168, 112, .1);
  --max: 1360px;
  --gut: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --head-h: 76px;
  --display: 'Cabinet Grotesk', 'Satoshi', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: 'Satoshi', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17.5px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
main { position: relative; overflow-x: clip; }
::selection { background: var(--green); color: var(--white); }

.container { width: 100%; max-width: calc(var(--max) + 2 * var(--gut)); margin-inline: auto; padding-inline: var(--gut); }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 16px; z-index: 300; background: var(--white); padding: 8px 14px; border-radius: 999px; }
.ph { background: #fff2a8; color: var(--ink); padding: 0 .3em; outline: 1px dashed rgba(16, 23, 24, .4); outline-offset: -1px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.ico { width: 1em; height: 1em; fill: currentColor; flex: none; }
.mono { font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; }
.flag { display: inline-block; flex: none; width: 20px; height: 14px; border-radius: 2px; background: linear-gradient(#111 0 33.4%, #dd0000 33.4% 66.7%, #ffce00 66.7%); box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .25); }

/* ---------- Type ---------- */
.label { display: inline-flex; align-items: center; gap: 12px; }
.label::before { content: ""; width: 10px; height: 10px; background: var(--green); }
.h2 { margin-top: 20px; font-family: var(--display); font-size: clamp(40px, 5.6vw, 88px); font-weight: 800; line-height: .98; letter-spacing: -.035em; text-wrap: balance; }
.h2 .g, .g { color: var(--green); }
.lead { font-size: clamp(17px, 1.3vw, 19.5px); color: var(--ink-2); max-width: 48ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  height: 56px; padding: 0 28px; border-radius: 999px; border: 1.5px solid transparent;
  font-size: 16px; font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn .ico { font-size: 18px; transition: transform .25s var(--ease); }
.btn:hover .ico { transform: translate(3px, -3px); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--green); }
.btn-line { border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--white); }
.btn-white { background: var(--white); color: var(--ink); }
.btn-white:hover { background: var(--ink); color: var(--white); }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo svg { height: 28px; width: auto; display: block; }
.logo small { font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-left: 12px; border-left: 1px solid var(--line); line-height: 1.3; }

/* ---------- Header ---------- */
.site-header { position: fixed; z-index: 100; inset: 0 0 auto 0; height: var(--head-h); transition: background-color .35s var(--ease), box-shadow .35s var(--ease), transform .45s var(--ease); }
.site-header[data-solid] { background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 1px 0 var(--line); }
.site-header[data-hidden] { transform: translateY(-100%); }
.head-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a:not(.btn) { position: relative; padding: 8px 13px; font-size: 15.5px; font-weight: 500; text-decoration: none; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 3px; height: 2px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease-out); }
.nav a:not(.btn):hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }
.nav .btn { height: 46px; padding: 0 20px; margin-left: 10px; font-size: 15px; }
.nav-toggle { display: none; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--ink); color: var(--white); cursor: pointer; position: relative; }
.nav-toggle span, .nav-toggle span::before { position: absolute; left: 15px; right: 15px; height: 1.8px; background: currentColor; transition: transform .3s var(--ease); }
.nav-toggle span { top: 20px; }
.nav-toggle span::before { content: ""; left: 0; right: 0; top: 7px; }
.site-header[data-open] .nav-toggle span { transform: translateY(3.5px) rotate(45deg); }
.site-header[data-open] .nav-toggle span::before { transform: translateY(-7px) rotate(-90deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; padding-top: calc(var(--head-h) + clamp(24px, 5vh, 64px)); background: var(--white); z-index: 1; }
.hero-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; row-gap: 28px; }
.hero h1 { grid-column: 1 / span 8; font-family: var(--display); font-size: clamp(60px, 10.2vw, 168px); font-weight: 800; line-height: .88; letter-spacing: -.045em; }
.hero h1 .g { display: inline-block; }
.hero-aside { grid-column: 9 / span 4; padding-bottom: 10px; }
.hero-aside p { font-size: clamp(17px, 1.35vw, 20px); color: var(--ink-2); }
.hero-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.chart-wrap { position: relative; flex: 1; min-height: clamp(260px, 44vh, 520px); margin-top: clamp(16px, 3vh, 36px); cursor: crosshair; }
.chart { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.axis { position: absolute; left: 0; right: 0; bottom: 10px; height: 18px; pointer-events: none; }
.axis span { position: absolute; transform: translateX(-50%); color: var(--muted); white-space: nowrap; }
.axis span:first-child { transform: none; left: var(--gut) !important; }
.axis span:last-child { transform: translateX(-100%); left: calc(100% - var(--gut)) !important; }
.readout {
  position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none; width: 250px;
  padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .92); box-shadow: 0 0 0 1px var(--line), 0 18px 40px -20px rgba(16, 23, 24, .4);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transform: translate3d(var(--rx, 0), var(--ry, 0), 0); opacity: 0; transition: opacity .25s var(--ease);
}
.readout.on { opacity: 1; }
.readout .mono { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.readout .mono i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.readout.up .mono i { background: var(--green); }
.readout p { margin-top: 6px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.statusbar { position: relative; border-top: 1px solid var(--line); background: var(--paper); }
.statusbar .container { display: flex; align-items: center; gap: 10px 28px; flex-wrap: wrap; min-height: 52px; padding-block: 10px; }
.statusbar .item { display: inline-flex; align-items: center; gap: 9px; color: var(--ink-2); }
.statusbar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(0, 168, 112, .5); animation: pulse 2.4s infinite; }
.statusbar .right { margin-left: auto; color: var(--muted); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(0, 168, 112, .45); } 70% { box-shadow: 0 0 0 8px rgba(0, 168, 112, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 168, 112, 0); } }
.js .hero .in { opacity: 0; transform: translateY(20px); animation: up 1s var(--ease-out) forwards; }
.js .hero .in.i2 { animation-delay: .12s; }
.js .hero .in.i3 { animation-delay: .24s; }
@keyframes up { to { opacity: 1; transform: none; } }

/* ---------- Page-long curve ---------- */
.page-curve { position: absolute; left: 0; top: 0; width: 100%; pointer-events: none; z-index: 0; overflow: visible; }
.page-curve .track { fill: none; stroke: rgba(16, 23, 24, .06); stroke-width: 2; }
.page-curve .draw { fill: none; stroke: var(--green); stroke-width: 3; stroke-linecap: round; }
.page-curve .tip { fill: var(--green); }
.page-curve .halo { fill: var(--green); opacity: .18; }
.sec { position: relative; z-index: 1; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(100px, 13vw, 190px); }

/* Kurve: zigzag phases */
.kurve-intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.kurve-intro > div { grid-column: 1 / span 7; }
.kurve-intro .lead { margin-top: 24px; }
.phases { margin-top: clamp(60px, 8vw, 120px); display: grid; gap: clamp(64px, 9vw, 130px); }
.phase { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.phase > div { grid-column: 2 / span 6; }
.phase:nth-child(even) > div { grid-column: 6 / span 6; }
.phase .mono { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.phase .mono b { color: var(--green); font-weight: 600; }
.phase h3 { margin-top: 14px; font-family: var(--display); font-size: clamp(40px, 5.6vw, 88px); font-weight: 800; letter-spacing: -.035em; line-height: .96; }
.phase p { margin-top: 18px; font-size: clamp(17px, 1.3vw, 19.5px); color: var(--ink-2); max-width: 46ch; }

/* ---------- Leistungen: tilt bento ---------- */
.leist-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(36px, 5vw, 64px); }
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-flow: dense; gap: 14px; perspective: 1200px; }
.svc {
  position: relative; grid-column: span 2; min-height: 290px; padding: clamp(24px, 2.4vw, 34px);
  display: flex; flex-direction: column; border-radius: 22px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line);
  transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--ease-out), box-shadow .4s var(--ease);
  overflow: hidden; isolation: isolate;
}
.svc.tilting { transition: transform .08s linear, box-shadow .4s var(--ease); box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -30px rgba(16, 23, 24, .35); }
.svc::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(0, 168, 112, .14), transparent 60%); }
.svc.tilting::after { opacity: 1; }
.svc.big { grid-column: span 4; background: var(--green-deep); color: var(--white); box-shadow: none; }
.svc.big::after { background: radial-gradient(520px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .16), transparent 60%); }
.svc .mono { color: var(--muted); display: flex; justify-content: space-between; }
.svc.big .mono { color: rgba(255, 255, 255, .6); }
.svc h3 { margin-top: auto; padding-top: 36px; font-family: var(--display); font-size: clamp(24px, 2.2vw, 34px); font-weight: 800; letter-spacing: -.025em; line-height: 1.04; hyphens: manual; }
.svc.big h3 { font-size: clamp(32px, 3.4vw, 54px); max-width: 14ch; }
.svc p { margin-top: 12px; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.svc.big p { color: rgba(255, 255, 255, .78); max-width: 52ch; }
.svc .spark { position: absolute; right: clamp(20px, 2.4vw, 34px); top: clamp(48px, 5vw, 70px); width: 46%; height: auto; opacity: .9; }
.svc .spark path { fill: none; stroke: var(--green); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Team: portrait accordion ---------- */
.team-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(36px, 5vw, 64px); }
.slices { display: flex; gap: 10px; height: clamp(460px, 64vh, 640px); }
.slice { position: relative; flex: 1 1 0; min-width: 0; border-radius: 18px; overflow: hidden; background: #2f4a44; cursor: pointer; transition: flex-grow .8s var(--ease-out); outline-offset: 4px; }
.slice.on { flex-grow: 5.2; }
.slice img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transition: transform 1.2s var(--ease-out), filter .6s var(--ease); filter: saturate(.75); }
.slice.on img { filter: none; }
.slice::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 16, 16, .78), rgba(10, 16, 16, 0) 46%); }
.slice .vname { position: absolute; z-index: 2; left: 50%; bottom: 22px; transform: translateX(-50%) rotate(180deg); writing-mode: vertical-rl; color: var(--white); font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -.01em; white-space: nowrap; transition: opacity .3s var(--ease); }
.slice.on .vname { opacity: 0; }
.slice .info { position: absolute; z-index: 2; left: 26px; right: 26px; bottom: 24px; color: var(--white); opacity: 0; transform: translateY(12px); transition: opacity .4s var(--ease), transform .6s var(--ease-out); transition-delay: 0s; }
.slice.on .info { opacity: 1; transform: none; transition-delay: .25s; }
.slice .info .mono { color: rgba(255, 255, 255, .72); display: flex; align-items: center; gap: 8px; }
.slice .info .mono i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.slice .info b { display: block; margin-top: 6px; font-family: var(--display); font-size: clamp(28px, 2.6vw, 42px); font-weight: 800; letter-spacing: -.03em; line-height: 1; white-space: nowrap; }

/* ---------- Vertraulichkeit tiles ---------- */
.trust-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; margin-bottom: clamp(36px, 5vw, 64px); }
.trust-head > div { grid-column: 1 / span 8; }
.trust-head .lead { grid-column: 9 / span 4; align-self: end; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tile { padding: 26px; border-radius: 22px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 40px; min-height: 230px; }
.tile .state { display: flex; align-items: center; gap: 9px; color: var(--green); }
.tile .state i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 2.4s infinite; }
.tile h3 { margin-top: auto; font-family: var(--display); font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tile p { margin-top: 8px; font-size: 15px; color: var(--muted); line-height: 1.5; }
.tile.first { background: var(--ink); color: var(--white); box-shadow: none; }
.tile.first p { color: rgba(255, 255, 255, .66); }
.tile .flag { width: 28px; height: 19px; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; }
.faq-head { grid-column: 1 / span 4; }
.faq-head p { margin-top: 20px; font-size: 14.5px; color: var(--muted); max-width: 34ch; }
.faq-list { grid-column: 6 / span 7; border-top: 1px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; font-family: var(--display); font-size: clamp(19px, 1.6vw, 24px); font-weight: 700; letter-spacing: -.015em; line-height: 1.3; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list .pm { flex: none; width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink); position: relative; transition: background-color .3s, box-shadow .3s; }
.faq-list .pm::before, .faq-list .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.8px; margin: -.9px 0 0 -7px; background: var(--ink); transition: transform .4s var(--ease-out), background-color .3s; }
.faq-list .pm::after { transform: rotate(90deg); }
.faq-list details[open] .pm { background: var(--green); box-shadow: none; }
.faq-list details[open] .pm::before, .faq-list details[open] .pm::after { background: var(--white); }
.faq-list details[open] .pm::after { transform: rotate(0); }
.faq-list .answer { padding: 0 64px 26px 0; color: var(--ink-2); }
.faq-list .answer p + p { margin-top: 10px; }

/* ---------- Kontakt: green field ---------- */
.kontakt { position: relative; z-index: 1; background: var(--green); color: var(--ink); overflow: hidden; padding-block: clamp(96px, 12vw, 170px) clamp(64px, 8vw, 110px); }
.kontakt .label::before { background: var(--ink); }
.kontakt h2 { margin-top: 22px; font-family: var(--display); font-size: clamp(56px, 10vw, 170px); font-weight: 800; letter-spacing: -.045em; line-height: .88; max-width: 12ch; position: relative; z-index: 1; }
.rise { position: absolute; right: -2%; top: 8%; width: 70%; height: auto; z-index: 0; pointer-events: none; }
.rise path { fill: none; stroke: var(--white); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: var(--len, 2000); stroke-dashoffset: var(--len, 2000); transition: stroke-dashoffset 2.4s var(--ease-out); }
.rise.drawn path { stroke-dashoffset: 0; }
.rise circle { fill: var(--white); opacity: 0; transition: opacity .4s 2s; }
.rise.drawn circle { opacity: 1; }
.k-grid { position: relative; z-index: 1; margin-top: clamp(48px, 7vw, 96px); display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; border-top: 2px solid var(--ink); }
.k-grid > div { padding: 22px 24px 0 0; }
.k-grid > div + div { padding-left: 24px; border-left: 1px solid rgba(16, 23, 24, .25); }
.k-grid dt { color: rgba(16, 23, 24, .7); }
.k-grid dd { margin-top: 10px; font-size: 17.5px; font-weight: 500; line-height: 1.5; }
.k-grid .big { font-family: var(--display); font-size: clamp(26px, 2.6vw, 40px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.k-grid a { text-decoration: none; }
.kontakt .ph { background: rgba(255, 255, 255, .78); }
.k-actions { position: relative; z-index: 1; margin-top: 44px; display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }
.k-server { display: inline-flex; align-items: center; gap: 10px; }

/* ---------- Footer ---------- */
.site-footer { position: relative; z-index: 1; background: var(--white); padding: 34px 0 42px; }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 18px 36px; flex-wrap: wrap; }
.foot-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 28px; font-size: 14.5px; color: var(--muted); }
.foot-meta a { text-decoration: none; }
.foot-meta a:hover { color: var(--ink); }
.foot-server { display: inline-flex; align-items: center; gap: 9px; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease-out); }
.js .reveal[data-in] { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; }
.js .reveal.d2 { transition-delay: .16s; }
.js .reveal.d3 { transition-delay: .24s; }

/* ---------- Legal pages ---------- */
.legal-page .site-header { background: rgba(255, 255, 255, .92); box-shadow: 0 1px 0 var(--line); }
.legal-hero { padding: calc(var(--head-h) + 80px) 0 52px; border-bottom: 1px solid var(--line); background: var(--paper); }
.legal { padding: clamp(48px, 7vw, 96px) 0 clamp(72px, 9vw, 130px); }
.legal-body { max-width: 780px; }
.legal-body h2 { margin: 46px 0 12px; font-family: var(--display); font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { margin: 26px 0 8px; font-size: 18px; font-weight: 700; }
.legal-body p, .legal-body li { color: var(--ink-2); }
.legal-body p + p { margin-top: 12px; }
.legal-body ul { list-style: disc; padding-left: 1.2em; margin-top: 10px; }
.legal-back { margin-top: 46px; }
.legal-back .btn { color: var(--white); }
.legal-stand { margin-top: 22px; font-size: 14px; color: var(--muted); }
.legal-cta { height: 46px; padding: 0 20px; font-size: 15px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc, .svc.big { grid-column: span 1; }
  .svc.big { grid-column: span 2; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .k-grid { grid-template-columns: 1fr 1fr; }
  .k-grid > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .k-grid > div:nth-child(n+3) { margin-top: 24px; }
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-block; }
  .nav {
    position: absolute; left: 12px; right: 12px; top: calc(var(--head-h) - 6px);
    flex-direction: column; align-items: stretch; gap: 2px; padding: 12px; border-radius: 20px; background: var(--white);
    box-shadow: 0 0 0 1px var(--line), 0 30px 60px -28px rgba(16, 23, 24, .45);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
  }
  .site-header[data-open] { background: var(--white); }
  .site-header[data-open] .nav { opacity: 1; visibility: visible; transform: none; transition: opacity .25s var(--ease), transform .25s var(--ease); }
  .nav a:not(.btn) { padding: 14px 12px; font-size: 18px; }
  .nav a:not(.btn)::after { right: auto; width: 24px; left: 12px; bottom: 8px; }
  .nav .btn { margin: 8px 0 0; height: 54px; }

  .hero h1, .hero-aside { grid-column: 1 / -1; }
  .page-curve { display: none; }
  .kurve-intro > div, .phase > div, .phase:nth-child(even) > div { grid-column: 1 / -1; }
  .phase { padding-left: 22px; border-left: 3px solid var(--green); }

  .slices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); height: auto; gap: 12px; }
  .slice { aspect-ratio: 3 / 4; flex: none; }
  .slice.lead { grid-column: 1 / -1; aspect-ratio: 4 / 5; }
  .slice .vname { display: none; }
  .slice .info { opacity: 1; transform: none; left: 16px; right: 16px; bottom: 16px; }
  .slice .info b { font-size: 20px; white-space: normal; }
  .slice.lead .info b { font-size: 30px; }
  .slice img { filter: none; }

  .trust-head > div, .trust-head .lead { grid-column: 1 / -1; }
  .trust-head .lead { margin-top: 20px; }
  .faq-head, .faq-list { grid-column: 1 / -1; }
  .team-head, .leist-head { flex-direction: column; align-items: flex-start; }
  .rise { width: 60%; right: -4%; top: 3%; opacity: .7; }
}

@media (max-width: 760px) {
  :root { --head-h: 64px; }
  body { font-size: 16.5px; }
  .logo svg { height: 24px; }
  .logo small { display: none; }
  .hero h1 { font-size: clamp(52px, 15.4vw, 96px); }
  .hero-actions .btn { flex: 1 1 100%; }
  .chart-wrap { min-height: 260px; }
  .axis span:nth-child(2), .axis span:nth-child(3) { display: none; }
  .readout { width: 210px; }
  .statusbar .right { display: none; }
  .bento { grid-template-columns: 1fr; }
  .svc, .svc.big { grid-column: auto; min-height: 0; }
  .svc h3 { padding-top: 28px; }
  .svc .spark { position: static; width: 70%; margin-top: 20px; }
  .tiles { grid-template-columns: 1fr; }
  .tile { min-height: 0; gap: 24px; }
  .faq-list .answer { padding-right: 0; }
  .k-grid { grid-template-columns: 1fr; }
  .k-grid > div, .k-grid > div + div { padding: 18px 0 0; border-left: 0; margin-top: 0; }
  .k-grid > div + div { margin-top: 18px; border-top: 1px solid rgba(16, 23, 24, .25); }
  .k-grid dd { overflow-wrap: anywhere; }
  .k-actions .btn { width: 100%; }
  .rise { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .js .hero .in, .js .reveal { opacity: 1; transform: none; animation: none; transition: none; }
  .page-curve { display: none; }
  .svc, .slice, .slice img { transition: none; }
  .rise path { stroke-dashoffset: 0; transition: none; }
  .rise circle { opacity: 1; transition: none; }
  .statusbar .dot, .tile .state i { animation: none; }
}
