@font-face {
  font-family: Montserrat;
  src: url('/assets/fonts/montserrat-latin.woff') format('woff');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #141820;
  --slate: #515e76;
  --deep-slate: #424d63;
  --wing-slate: #808da6;
  --surface: #f8f8fb;
  --orange: #f94d0f;
  --line: rgb(81 94 118 / 20%);
  --gutter: clamp(20px, 5vw, 72px);
  font-family: Montserrat, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--deep-slate);
  outline-offset: 5px;
}
.page { width: min(1200px, calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 124px; }
.brand { display: flex; align-items: center; min-height: 44px; flex: 0 0 auto; }
.brand img { width: 188px; }
.header-nav { display: flex; align-items: center; gap: 32px; }
.header-nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: 14px; font-weight: 500; color: var(--slate); }
.header-nav a:hover, .text-link:hover, .site-footer a:hover { color: var(--ink); text-decoration: underline; }
.skip-link { position: fixed; left: 20px; top: -80px; z-index: 10; padding: 16px 20px; border: 1px solid var(--line); background: white; }
.skip-link:focus { top: 12px; }

.hero { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 24px; min-height: 596px; padding: 32px 0 84px; }
.hero-copy { position: relative; z-index: 1; }
h1, h2, h3, p { margin: 0; }
.hero h1 { font-size: clamp(42px, 4.65vw, 68px); font-weight: 650; line-height: 1.08; letter-spacing: -.052em; }
.hero h1 span { color: var(--slate); }
.hero-copy > p { max-width: 465px; margin-top: 28px; color: var(--slate); font-size: 18px; line-height: 1.65; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 28px; margin-top: 32px; }
.button { display: inline-flex; justify-content: center; align-items: center; flex: 0 0 auto; gap: 18px; min-height: 52px; padding: 14px 24px; border: 1px solid transparent; border-radius: 8px; background: var(--orange); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; line-height: 1.4; transition: background-color .16s ease; }
.button:hover { background-color: #ed490e; }
.button:disabled { cursor: default; opacity: .65; }
.arrow { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.text-link { display: inline-flex; gap: 12px; align-items: center; min-height: 44px; color: var(--slate); font-size: 14px; font-weight: 500; }
.hero-actions .text-link { text-decoration: none; }
.hero-art { position: relative; isolation: isolate; width: 100%; }
.hero-art::before { content: ''; position: absolute; inset: -10% -3%; z-index: -1; background: url('/assets/folded-surface.png') center / cover; mask-image: radial-gradient(ellipse, #000 20%, transparent 70%); }
.hero-art img { width: 100%; }

.section { border-top: 1px solid var(--line); padding-block: 80px; scroll-margin-top: 32px; }
.section h2 { font-size: clamp(32px, 3.1vw, 44px); font-weight: 650; line-height: 1.16; letter-spacing: -.04em; }
.section-intro { margin-top: 16px; color: var(--slate); font-size: 17px; line-height: 1.65; }
.demo-placeholder { display: flex; align-items: center; gap: 36px; min-height: 180px; margin-top: 32px; padding: 24px 32px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.demo-placeholder > img { width: 130px; flex: 0 0 auto; }
.demo-description h3 { font-size: 22px; font-weight: 600; letter-spacing: -.035em; line-height: 1.35; }
.demo-description p { margin-top: 6px; color: var(--slate); font-size: 16px; line-height: 1.6; }
.demo-availability { margin-left: auto; font-size: 14px; font-weight: 500; color: var(--slate); white-space: nowrap; }
.demo-link { margin-top: 16px; }
.launch-section { display: grid; grid-template-columns: 1fr 1.12fr; gap: 64px; padding-block: 80px 88px; }
.launch-copy .section-intro { max-width: 380px; }
.launch-form { min-width: 0; }
.email-label { display: block; margin-bottom: 10px; font-size: 14px; font-weight: 500; color: var(--slate); }
.email-row { display: flex; align-items: stretch; gap: 10px; }
input[type='email'] { min-width: 0; width: 100%; min-height: 52px; padding: 14px 16px; border: 1px solid rgb(81 94 118 / 40%); border-radius: 8px; background: var(--paper); color: var(--ink); font-size: 16px; }
input::placeholder { color: var(--slate); opacity: .85; }
.consent-label { display: flex; align-items: flex-start; gap: 12px; margin-top: 18px; color: var(--slate); font-size: 13px; line-height: 1.65; cursor: pointer; }
input[type='checkbox'] { width: 18px; height: 18px; flex: 0 0 auto; margin: 2px 0 0; accent-color: var(--deep-slate); cursor: pointer; }
.privacy-link { display: inline-flex; align-items: center; min-height: 36px; margin-left: 30px; color: var(--slate); font-size: 13px; }
.form-note { margin-top: 8px; color: var(--slate); font-size: 12px; line-height: 1.7; }
.form-status { color: var(--deep-slate); font-size: 13px; line-height: 1.6; }
.form-status:not(:empty) { margin-top: 16px; padding-left: 12px; border-left: 2px solid var(--slate); }
.form-status[data-state='error'] { color: var(--ink); border-color: var(--orange); }

.site-footer { border-top: 1px solid var(--line); padding: 24px 0 28px; color: var(--slate); font-size: 13px; line-height: 1.5; }
.footer-main, .footer-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; }
.footer-main a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.footer-email { font-weight: 500; overflow-wrap: anywhere; }
.footer-links { display: flex; align-items: center; gap: 28px; }
.footer-meta { margin-top: 16px; font-size: 12px; }
.footer-meta span { min-width: 0; }

.legal-page { min-height: 100svh; display: flex; flex-direction: column; }
.legal-copy { flex: 1; width: 100%; max-width: 780px; padding: 48px 0 88px; overflow-wrap: anywhere; }
.home-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--slate); font-size: 14px; }
.legal-copy h1 { margin-top: 28px; font-size: clamp(30px, 4vw, 48px); font-weight: 650; line-height: 1.18; letter-spacing: -.045em; }
.legal-intro { font-size: 18px; line-height: 1.65; color: var(--slate); margin-top: 20px; }
.legal-date { font-size: 13px; color: var(--slate); margin-top: 14px; }
.legal-copy section { margin-top: 36px; }
.legal-copy h2 { font-size: 21px; font-weight: 600; line-height: 1.45; letter-spacing: -.025em; }
.legal-copy section p, .legal-copy address { font-size: 15px; color: var(--slate); line-height: 1.8; margin-top: 14px; }
.legal-copy address { font-style: normal; }
.error-copy { min-height: calc(100svh - 280px); padding-block: 88px; }
.error-copy h1 { font-size: clamp(36px, 5vw, 68px); letter-spacing: -.045em; line-height: 1.15; }
.error-copy p { font-size: 18px; color: var(--slate); margin-block: 24px; line-height: 1.65; }

@media (min-width: 1600px) {
  .hero { min-height: 640px; }
}
@media (max-width: 1000px) {
  .site-header { min-height: 104px; }
  .hero { min-height: 540px; gap: 16px; padding-bottom: 64px; }
  .hero h1 { font-size: clamp(38px, 4.6vw, 48px); }
  .hero-copy > p { font-size: 16px; }
  .hero-actions { gap: 12px 20px; }
  .launch-section { gap: 40px; grid-template-columns: 1fr 1.15fr; }
  .email-row .button { padding-inline: 18px; }
}
@media (max-width: 700px) {
  .site-header { gap: 16px; min-height: 94px; }
  .brand img { width: 140px; }
  .header-nav { gap: 20px; }
  .header-nav a { font-size: 12px; }
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 52px 0 56px; }
  .hero h1 { font-size: clamp(40px, 8.8vw, 58px); }
  .hero-copy > p { max-width: 400px; margin-top: 24px; }
  .hero-actions { margin-top: 28px; gap: 12px 24px; }
  .hero-art { width: min(85%, 360px); justify-self: center; }
  .section { padding-block: 56px; }
  .section h2 { font-size: 32px; }
  .section-intro { font-size: 16px; margin-top: 14px; }
  .demo-placeholder { gap: 20px; padding: 24px; flex-wrap: wrap; }
  .demo-placeholder > img { width: 76px; }
  .demo-description { flex: 1; min-width: 150px; }
  .demo-description h3 { font-size: 18px; }
  .demo-description p { font-size: 14px; }
  .demo-availability { margin-left: 96px; font-size: 13px; }
  .launch-section { grid-template-columns: 1fr; gap: 32px; }
  .launch-copy .section-intro { max-width: 100%; }
  .footer-links { gap: 22px; }
  .legal-copy { padding-top: 24px; padding-bottom: 56px; }
}
@media (max-width: 450px) {
  .brand img { width: 108px; }
  .header-nav { gap: 14px; }
  .header-nav a { font-size: 12px; }
  .site-header { gap: 10px; min-height: 84px; }
  .hero { padding-top: 44px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 12px; }
  .button { min-height: 52px; }
  .hero-art { width: 86%; }
  .email-row { flex-direction: column; gap: 12px; }
  .email-row .button { width: 100%; }
  .demo-placeholder { padding: 24px 20px; gap: 18px 16px; }
  .demo-placeholder > img { width: 56px; }
  .demo-description { min-width: 150px; }
  .demo-description h3 { font-size: 17px; }
  .demo-availability { margin-left: 72px; }
  .footer-main { align-items: flex-start; flex-direction: column; gap: 0; }
  .footer-meta { align-items: flex-start; flex-direction: column; gap: 8px; margin-top: 20px; }
  .site-footer { font-size: 13px; padding-top: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Shape theme: deck lighting and connected, single-family facets from the banner. */
.hero-surface { background: #fff url('/assets/closing-fold.png') center top / 100% 850px no-repeat; }
.shape-home .site-header { min-height: 110px; }
.shape-home .brand img { width: 178px; }
.header-actions { display: flex; align-items: center; gap: 32px; }
.language-nav { display: flex; gap: 4px; padding-left: 24px; border-left: 1px solid var(--line); }
.language-nav a { display: inline-flex; min-width: 38px; min-height: 44px; justify-content: center; align-items: center; font-size: 13px; color: var(--slate); text-decoration: none; }
.language-nav a[aria-current] { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 7px; }
.shape-home .hero { grid-template-columns: 1.35fr 1fr; gap: 54px; min-height: 530px; padding: 40px 0 48px; }
.shape-home .hero h1 { font-size: clamp(44px, 5.25vw, 76px); line-height: 1.07; font-weight: 650; letter-spacing: -.055em; }
html[lang='de'] .shape-home .hero h1 { font-size: clamp(40px, 4.8vw, 68px); }
.shape-home .hero-copy > p { max-width: 530px; font-size: 18px; line-height: 1.7; margin-top: 28px; }
.hero-cta { margin-top: 32px; }
.shape-home .hero-art { width: 100%; max-width: 420px; justify-self: end; }
/* Original pitch-deck shadow, including its 50-unit padding on every side. */
.shape-home .hero-art::before { display: block; inset: -8.72425% -7.39741%; background: url('/assets/ternfoldlogo_bird_shadow.svg') center / 100% 100% no-repeat; mask-image: none; pointer-events: none; }
.demo-band { position: relative; isolation: isolate; padding: 238px 0 84px; scroll-margin-top: -170px; }
.demo-folds { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.demo-content { color: var(--paper); }
.demo-content h2 { font-size: clamp(36px, 3.6vw, 52px); line-height: 1.2; font-weight: 600; letter-spacing: -.04em; max-width: 750px; }
.demo-content > p:not(.demo-status) { font-size: 18px; line-height: 1.7; margin-top: 18px; max-width: 630px; }
.demo-status { display: table; max-width: 100%; border: 1px solid rgb(255 255 255 / 65%); border-radius: 8px; padding: 15px 22px; margin-top: 32px; font-size: 14px; line-height: 1.6; color: #fff; }
.demo-content .text-link { color: #fff; margin-top: 16px; }
.demo-content a:focus-visible { outline-color: #fff; }
.launch-surface { background: url('/assets/directional-light.png') center / cover; scroll-margin-top: 20px; }
.shape-home .launch-section { padding-block: 88px; border: 0; grid-template-columns: 1fr 1.08fr; gap: 70px; }
.launch-copy h2 { font-size: clamp(30px, 2.8vw, 40px); line-height: 1.2; font-weight: 600; letter-spacing: -.04em; }
.shape-home .launch-copy .section-intro { max-width: 450px; }
.button-slate { background: var(--deep-slate); color: #fff; }
.button-slate:hover { background: var(--ink); }
.shape-home .site-footer { padding-block: 24px; }
@media (max-width: 1100px) {
  .header-actions { gap: 20px; }
  .language-nav { padding-left: 16px; }
  .shape-home .hero { gap: 32px; }
  .shape-home .hero-copy > p { font-size: 16px; }
  .shape-home .launch-section { gap: 40px; }
}
@media (max-width: 800px) {
  .shape-home .header-nav { gap: 20px; }
  .shape-home .header-nav a { font-size: 12px; }
  .shape-home .brand img { width: 150px; }
  .shape-home .hero { min-height: 510px; gap: 24px; }
  .shape-home .hero h1 { font-size: 46px; }
  html[lang='de'] .shape-home .hero h1 { font-size: 41px; }
  .shape-home .hero-art { max-width: 320px; }
  .demo-band { padding-top: 190px; padding-bottom: 72px; scroll-margin-top: -140px; }
  .shape-home .launch-section { gap: 32px; padding-block: 64px; }
}
@media (max-width: 700px) {
  .hero-surface { background-size: auto 1050px; }
  .shape-home .site-header { min-height: 96px; gap: 18px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 10px; }
  .shape-home .brand img { width: 134px; }
  .header-actions { gap: 12px; }
  .header-nav a[href='#launch'] { display: none; }
  .language-nav { padding-left: 10px; gap: 0; }
  .language-nav a { min-width: 34px; font-size: 12px; }
  .shape-home .hero { grid-template-columns: 1fr; padding: 48px 0 32px; gap: 38px; }
  .shape-home .hero h1 { font-size: clamp(44px, 9.1vw, 64px); }
  html[lang='de'] .shape-home .hero h1 { font-size: clamp(38px, 8.2vw, 56px); }
  .shape-home .hero-copy > p { max-width: 490px; margin-top: 24px; }
  .shape-home .hero-art { width: min(76%, 300px); justify-self: center; }
  .demo-band { padding: 210px 0 58px; scroll-margin-top: -100px; }
  .demo-folds { object-fit: fill; }
  .demo-content h2 { font-size: 36px; max-width: 450px; }
  .demo-content > p:not(.demo-status) { font-size: 16px; max-width: 400px; }
  .demo-status { margin-top: 26px; font-size: 13px; padding: 13px 16px; }
  .shape-home .launch-section { grid-template-columns: 1fr; padding-block: 56px; gap: 32px; }
  .launch-copy h2 { font-size: 32px; }
}
@media (max-width: 370px) {
  .shape-home .brand img { width: 110px; }
  .shape-home .site-header { gap: 8px; }
  .header-actions { gap: 6px; }
  .language-nav { padding-left: 6px; }
  .shape-home .hero h1 { font-size: 40px; }
  html[lang='de'] .shape-home .hero h1 { font-size: 36px; }
  .demo-content h2 { font-size: 32px; }
}

.hero h1 .phrase { white-space: nowrap; }

/* Preserve each complete 640px canvas, including the wingtips. */
.hero-bird-video, .hero-alpha-canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; pointer-events: none; }
.shape-home .hero-art::before { display: none; }
.hero-art.is-playing > img, .hero-art.has-alpha-video > img { visibility: hidden; }
.hero-art.is-playing .hero-bird-video.is-active, .hero-art.has-alpha-video .hero-alpha-canvas { opacity: 1; }
.hero-alpha-source { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .hero-art.is-playing > img, .hero-art.has-alpha-video > img { visibility: visible; }
  .hero-art.is-playing .hero-bird-video.is-active, .hero-art.has-alpha-video .hero-alpha-canvas { opacity: 0; }
}

/* A small, separate contact flow keeps the landing page quiet. */
.demo-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; margin-top: 28px; }
.demo-actions .demo-status { margin: 0; }
.demo-preview { text-decoration: none; transition: background-color .16s ease; }
.demo-preview:hover { background: rgb(255 255 255 / 12%); }
.demo-preview:focus-visible { outline-color: #fff; }
.demo-request-link { min-height: 44px; padding: 8px 0; border: 0; background: transparent; color: #fff; font-size: 14px; font-weight: 500; line-height: 1.6; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.demo-request-link:hover { text-decoration-thickness: 2px; }
.demo-request-link:focus-visible { outline-color: #fff; }
.demo-request-link:disabled { opacity: .65; cursor: default; }
.demo-dialog { box-sizing: border-box; width: min(620px, calc(100% - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 44px 36px 30px; overflow-y: auto; border: 1px solid rgb(81 94 118 / 18%); border-radius: 16px; background: var(--paper); color: var(--ink); box-shadow: 0 24px 90px rgb(20 24 32 / 18%); }
.demo-dialog::backdrop { background: rgb(20 24 32 / 55%); backdrop-filter: blur(5px); }
html:has(.demo-dialog[open]) { overflow: hidden; }
.dialog-close { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 8px; background: transparent; color: var(--slate); }
.dialog-close:hover { background: #f0f1f4; }
.demo-dialog h2 { font-size: clamp(26px, 4vw, 32px); line-height: 1.25; letter-spacing: -.035em; font-weight: 600; padding-right: 12px; }
.demo-request-intro { margin-top: 12px; font-size: 15px; line-height: 1.7; color: var(--slate); }
.demo-request-form { display: grid; gap: 18px; margin-top: 26px; }
.demo-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.demo-request-form label { display: block; min-width: 0; font-size: 13px; line-height: 1.6; font-weight: 500; }
.demo-request-form label span { color: var(--slate); font-weight: 400; }
.demo-request-form input, .demo-request-form textarea { display: block; box-sizing: border-box; width: 100%; min-width: 0; margin-top: 7px; padding: 12px 14px; border: 1px solid rgb(81 94 118 / 35%); border-radius: 8px; color: var(--ink); background: #fff; font: inherit; font-size: 16px; line-height: 1.5; }
.demo-request-form textarea { resize: vertical; min-height: 100px; }
.demo-request-form textarea:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.demo-privacy { font-size: 12px; line-height: 1.7; color: var(--slate); }
.demo-privacy a { color: inherit; text-underline-offset: 3px; }
.demo-request-form > .button { justify-self: start; }
.demo-request-form .form-status:empty { display: none; }
.demo-request-form .form-status:not(:empty) { margin: 0; }
@media (max-width: 560px) {
  .demo-dialog { padding: 44px 24px 24px; }
  .demo-field-row { grid-template-columns: 1fr; gap: 18px; }
  .demo-request-form > .button { width: 100%; }
}

.form-trap { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip-path: inset(50%); white-space: nowrap; }
.form-verification { min-width: 0; max-width: 100%; }
.form-verification:empty { display: none; }

/* Supporters: original partner artwork, quietly placed between hero and demo. */
.supporters-strip { display: flex; flex-direction: column; align-items: center; gap: 22px; padding-block: 12px 20px; }
.supporters-label { margin: 0; color: var(--slate); font-size: 12px; font-weight: 500; line-height: 1.5; }
.supporters-logos { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 28px clamp(36px, 5vw, 72px); max-width: 100%; }
.supporter-link { display: flex; align-items: center; min-height: 44px; max-width: 100%; border-radius: 3px; }
.supporter-link:focus-visible { outline-offset: 8px; }
.supporter-logo { display: block; max-width: 100%; height: auto; }
.supporter-logo-exist { width: 212px; mix-blend-mode: multiply; }
.supporter-logo-triathlon { width: 218px; }
@media (max-width: 560px) {
  .supporters-strip { padding-block: 16px 12px; gap: 20px; }
  .supporters-logos { flex-direction: column; gap: 24px; }
  .supporter-logo-exist { width: 196px; }
  .supporter-logo-triathlon { width: 204px; }
}
