/* Ryplewitz Consulting · website V2. Colours come from brand/colors (copied to assets/brand/colors.css). */
@import url('brand/colors.css?v=2a08da70');

@font-face {
  font-family: 'Jost';
  src: url('brand/fonts/Jost%5Bwght%5D.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --line: rgba(143, 160, 179, 0.16);
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 11vw, 140px);
  --radius: 14px;
  --font: 'Jost', system-ui, sans-serif;
  color-scheme: dark;
}
.theme-light { --line: rgba(4, 13, 22, 0.1); color-scheme: light; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
section { padding-block: var(--section); position: relative; }
section.theme-light, .theme-light { background: var(--color-bg); color: var(--color-text); }
.surface { background: var(--color-surface); }

/* Type */
.eyebrow { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 400; color: var(--color-text-muted); margin: 0 0 16px; }
h1, h2, h3 { font-weight: 200; line-height: 1.08; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(44px, 7.4vw, 92px); }
h2 { font-size: clamp(34px, 4.8vw, 58px); }
h3 { font-size: 22px; font-weight: 400; letter-spacing: 0; }
.lead { font-size: clamp(18px, 1.8vw, 21px); color: var(--color-text-muted); max-width: 62ch; margin: 24px 0 0; }
.accent { color: var(--color-accent-text); }
.muted { color: var(--color-text-muted); }
.section-head { display: grid; gap: 8px; margin-bottom: clamp(40px, 6vw, 72px); max-width: 780px; }

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: 10px; font-size: 16px; font-weight: 400; text-decoration: none; border: 1px solid transparent; transition: transform .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--color-accent); color: var(--navy-900); }
.theme-light .btn.primary { background: var(--navy-900); color: var(--white); }
.btn.ghost { border-color: var(--line); color: var(--color-text); }
.theme-light .btn.ghost { border-color: var(--navy-900); }
.textlink { color: var(--color-accent-text); text-decoration: none; border-bottom: 1px solid currentColor; font-weight: 400; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(4, 13, 22, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.site-header .logo img { height: 36px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { text-decoration: none; font-size: 15px; color: var(--color-text-muted); font-weight: 400; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--color-text); }
.nav .btn { padding: 10px 18px; font-size: 14px; color: var(--navy-900); }
.lang { font-size: 13px; color: var(--color-text-muted); letter-spacing: 0.06em; }
.lang b { color: var(--color-text); font-weight: 400; }
.nav .lang a { font-size: inherit; font-weight: inherit; color: inherit; }
.nav .lang a:hover { color: var(--color-text); }
.burger { display: none; background: none; border: 0; color: var(--color-text); padding: 8px; cursor: pointer; }
.burger span { display: block; width: 22px; height: 1.5px; background: currentColor; margin: 5px 0; }

@media (max-width: 900px) {
  .burger { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 22px; padding: 28px var(--gutter) 36px; background: var(--navy-900); border-bottom: 1px solid var(--line); visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s; }
  .nav.open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s ease, transform .25s ease; }
  .nav a { font-size: 22px; font-weight: 200; color: var(--color-text); }
  .nav a.btn { font-size: 16px; font-weight: 400; color: var(--navy-900); }
}

/* Hero */
.hero { padding-top: clamp(64px, 10vw, 120px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
.hero-mark { width: min(100%, 440px); justify-self: end; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-mark { justify-self: start; width: 220px; order: -1; } }

.page-hero { padding-top: clamp(64px, 9vw, 110px); padding-bottom: clamp(48px, 7vw, 90px); }
.page-hero h1 { overflow-wrap: anywhere; font-size: clamp(42px, 6vw, 76px); }

/* Grids and cards */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card { background: var(--color-surface); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: inherit; border: 1px solid transparent; transition: border-color .2s ease; }
a.card:hover { border-color: var(--line); }
.card .num { font-size: 13px; letter-spacing: 0.14em; color: var(--color-accent-text); font-weight: 400; }
.card p { margin: 0; color: var(--color-text-muted); font-size: 16px; }
.card .more { margin-top: auto; padding-top: 12px; font-size: 14px; color: var(--color-accent-text); font-weight: 400; }

/* Phases */
.phases { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.phase-list { display: grid; gap: 4px; }
.phase { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.phase .idx { font-size: 14px; color: var(--color-text-muted); letter-spacing: 0.1em; padding-top: 6px; }
.phase.active .idx, .phase.active h3 { color: var(--color-accent-text); }
.phase p { margin: 6px 0 0; color: var(--color-text-muted); font-size: 16px; }
@media (max-width: 900px) { .phases { grid-template-columns: 1fr; gap: 32px; } .phases .ring { width: 200px; } }

/* Split with photo */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--navy-800); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.tall { aspect-ratio: 3 / 4; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } .split.reverse > :first-child { order: 0; } }

/* Full-bleed photo band */
.band { position: relative; min-height: min(78vh, 720px); display: flex; align-items: center; padding-block: 0; overflow: hidden; }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,13,22,.92) 0%, rgba(4,13,22,.55) 45%, rgba(4,13,22,0) 75%); }
.band .wrap { position: relative; z-index: 1; width: 100%; }
.band .inner { max-width: 520px; }
@media (max-width: 700px) {
  .band { min-height: 0; flex-direction: column; align-items: stretch; }
  .band img { position: static; height: 360px; object-position: 70% 20%; }
  .band::after { background: linear-gradient(0deg, rgba(4,13,22,1) 0%, rgba(4,13,22,0) 40%); height: 360px; }
  .band .wrap { padding-block: 8px 64px; }
}

/* Placeholders */
.placeholder { text-decoration: none; border: 1px dashed var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 10px; color: var(--color-text-muted); min-height: 220px; justify-content: flex-end; background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(143,160,179,.05) 14px 15px); }
.placeholder .tag { align-self: flex-start; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.placeholder h3 { color: var(--color-text); }

/* Formats */
.formats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.format { padding: 28px 24px 8px 0; display: grid; gap: 8px; align-content: start; }
.format + .format { border-left: 1px solid var(--line); padding-left: 24px; }
.format .meta { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-accent-text); font-weight: 400; }
.format p { margin: 0; color: var(--color-text-muted); font-size: 16px; }
@media (max-width: 900px) { .formats { grid-template-columns: 1fr 1fr; } .format:nth-child(3) { border-left: 0; padding-left: 0; } }
@media (max-width: 560px) { .formats { grid-template-columns: 1fr; } .format + .format { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); } }

/* CTA */
.cta { text-align: left; }
.cta h2 { max-width: 16ch; }
.cta.with-person { display: grid; grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: center; }
.cta-person { margin: 0; justify-self: center; width: min(420px, 100%); display: grid; gap: 22px; text-align: center; }
.cta-mark { position: relative; aspect-ratio: 1; }
.cta-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.cta-ring path { fill: none; stroke: var(--slate-300); stroke-width: 0.5; }
.cta-ring path.mint { stroke: var(--mint-signal); }
.cta-photo { position: absolute; inset: 13%; border-radius: 50%; overflow: hidden; background: #10263a; }
.cta-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 52% 30%; transform: scale(1.15); transform-origin: 52% 35%; }
.cta-person figcaption { display: grid; gap: 2px; }
.cta-person figcaption b { font-weight: 400; font-size: 18px; }
.cta-person figcaption span { color: var(--color-text-muted); font-size: 15px; }
@media (max-width: 800px) {
  .cta.with-person { grid-template-columns: 1fr; gap: 48px; }
  .cta-person { width: min(300px, 100%); }
}

/* Lists and chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 14px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--color-text); }
.chip.on { border-color: var(--color-accent); color: var(--color-accent-text); }
.checklist { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.checklist li { padding-left: 26px; position: relative; color: var(--color-text-muted); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 14px; height: 1.5px; background: var(--color-accent); }

/* Service detail blocks */
.service { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; padding-block: 56px; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.service:first-of-type { border-top: 0; padding-top: 0; }
@media (max-width: 900px) { .service { grid-template-columns: 1fr; gap: 16px; } }
/* Station: format line, entry badge, result and hint */
.fmt { display: block; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-accent-text); font-weight: 400; }
.fmt a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.fmt a:hover { border-bottom-color: currentColor; }
.station-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; }
.station-meta .chip { font-size: 13px; padding: 4px 12px; }
.station-result { margin: 28px 0 0; padding: 18px 20px; border-left: 2px solid var(--color-accent); background: var(--color-surface); border-radius: 0 var(--radius) var(--radius) 0; color: var(--color-text); }
.station-result b { display: block; font-weight: 400; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: 6px; }
.station-hint { margin: 16px 0 0; font-size: 15px; color: var(--color-text-muted); }

/* Timeline (profile, projects) */
.timeline { display: grid; }
.tl-item { display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding: 26px 0; border-top: 1px solid var(--line); }
.tl-item[hidden] { display: none; }
.tl-item .date { color: var(--color-text-muted); font-size: 15px; }
.tl-item h3 { font-size: 20px; }
.tl-item p { margin: 6px 0 0; color: var(--color-text-muted); font-size: 16px; }
.tl-item .chips { margin-top: 12px; }
.tl-item .chip { font-size: 12px; padding: 3px 10px; }
@media (max-width: 700px) { .tl-item { grid-template-columns: 1fr; gap: 6px; } }

/* Skills */
.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.skills .card h3 { font-size: 18px; }

/* Profile header */
.profile { display: grid; grid-template-columns: 380px 1fr; gap: 64px; align-items: end; }
@media (max-width: 900px) { .profile { grid-template-columns: 1fr; gap: 32px; } .profile .photo { max-width: 360px; } }
.facts { display: grid; grid-template-columns: repeat(3, auto); gap: 32px; margin-top: 36px; justify-content: start; }
.facts b { display: block; font-weight: 200; font-size: 36px; line-height: 1; color: var(--color-accent-text); }
.facts span { font-size: 14px; color: var(--color-text-muted); }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr 1fr; } }

/* Form */
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 14px; color: var(--color-text-muted); }
.form input, .form textarea, .form select { font: inherit; font-size: 16px; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--color-surface); color: var(--color-text); }
.form textarea { min-height: 140px; resize: vertical; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 56px 40px; font-size: 15px; }
.site-footer .cols { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; }
.site-footer img { height: 34px; width: auto; }
.site-footer h4 { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 400; color: var(--color-text-muted); margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; color: var(--color-text-muted); }
.site-footer a:hover { color: var(--color-text); }
.site-footer .legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--color-text-muted); font-size: 14px; }
@media (max-width: 800px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }

@media (max-width: 480px) { .site-footer .cols { grid-template-columns: minmax(0, 1fr); } }
.site-footer .cols > div { min-width: 0; overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ================================================================ Motion (see motion.js) */

/* Reveal on enter */
.motion [data-reveal] > * { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 90ms); }
.motion [data-reveal].in > * { opacity: 1; transform: none; }

/* Hero: centred logo, pinned while the signet zooms; the services grow inside the ring */
.hero-pin { padding: 0; }
.hero-center { width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; gap: clamp(28px, 5vh, 56px); }
.hero-logo { position: relative; width: min(720px, 86vw); }
.hero-logo svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hero-copy { display: grid; justify-items: center; }
.hero-copy h1 { font-size: clamp(34px, 4.6vw, 60px); max-width: 20ch; }
.hero-copy h1 .accent { display: block; }
.hero-copy .lead { margin-inline: auto; }
.hero-copy .btns { justify-content: center; }
.hero-intro { padding-block: 110px 80px; }
.hero-services { padding-block: var(--section); }

/* Motion version: one pinned stage with two layers */
.motion .hero-pin { height: 200vh; }
.motion .hero-pin .pin-inner { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.motion .hero-intro { position: absolute; inset: 0; justify-content: center; padding-block: 72px 0; }
.motion .hero-intro { will-change: transform, opacity; }
/* No will-change on the signet: it must be re-rasterised at every scale to stay sharp. */
.motion .hero-services { position: absolute; left: 0; right: 0; top: 50%; padding: 0; opacity: 0; pointer-events: none; transform-origin: 50% 50%; }
.motion .hero-services .section-head { margin-bottom: clamp(24px, 4vh, 48px); }
.motion .hero-services.live { pointer-events: auto; }
@media (max-width: 640px) {
  .hero-services .grid-4 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-services .card { padding: 16px; gap: 6px; }
  .hero-services .card h3 { font-size: 16px; }
  .hero-services .card p { font-size: 13px; line-height: 1.45; }
  .hero-services .card .more { display: none; }
  .hero-services h2 { font-size: 30px; }
}

.scroll-hint { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--color-text-muted); display: grid; justify-items: center; gap: 10px; }
.scroll-hint i { width: 1px; height: 36px; background: linear-gradient(var(--color-accent), transparent); animation: hint 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes hint { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-height: 700px) { .scroll-hint { display: none; } }
html:not(.motion) .scroll-hint { display: none; }

/* Header logo docks in once the hero logo has faded */
.motion .has-hero .site-header .logo { opacity: 0; transform: translateY(6px); transition: opacity .45s ease, transform .45s ease; pointer-events: none; }
.motion .has-hero.docked .site-header .logo { opacity: 1; transform: none; pointer-events: auto; }

/* Phases: sticky ring, steps light up */
/* The heading stays under the header while the ring scrolls; --phead is its measured height (motion.js). */
.phases-pin .section-head { position: sticky; top: 72px; z-index: 3; max-width: none; background: var(--color-surface); padding-block: 20px; margin-block: -20px clamp(20px, 4vw, 52px); margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.phases-pin .section-head .eyebrow { margin-bottom: 4px; }
.phases-pin .phases { align-items: start; }
.phases-pin .ring-col { position: sticky; top: calc(72px + var(--phead, 150px) + 24px); }
.phases-pin .phase { min-height: 44vh; align-content: start; transition: opacity .4s ease; }
.motion .phases-pin .phase { opacity: .35; }
.motion .phases-pin .phase.active { opacity: 1; }
.phases-pin .phase:last-child { min-height: 30vh; }
.ring-steps .seg { stroke: #8FA0B3; opacity: .22; transition: opacity .6s ease, stroke .6s ease; }
.ring-steps .lbl { fill: #8FA0B3; opacity: .35; transition: opacity .6s ease, fill .6s ease; }
.ring-steps .r { opacity: 0; transform: scale(.92); transform-origin: 22.5px 24px; transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); fill: #FFFFFF; }
.ring-steps[data-step="1"] .s1, .ring-steps[data-step="2"] .s1, .ring-steps[data-step="3"] .s1, .ring-steps[data-step="4"] .s1,
.ring-steps[data-step="2"] .s2, .ring-steps[data-step="3"] .s2, .ring-steps[data-step="4"] .s2,
.ring-steps[data-step="3"] .s3, .ring-steps[data-step="4"] .s3 { opacity: 1; stroke: #FFFFFF; }
.ring-steps[data-step="3"] .s3, .ring-steps[data-step="4"] .s3 { stroke: #00FFC2; }
.ring-steps[data-step="1"] .l1, .ring-steps[data-step="2"] .l2, .ring-steps[data-step="3"] .l3, .ring-steps[data-step="4"] .l4 { opacity: 1; fill: #FFFFFF; }
.ring-steps[data-step="3"] .l3 { fill: #00FFC2; }
.ring-steps[data-step="4"] .r { opacity: 1; transform: none; }
@media (max-width: 900px) {
  .phases-pin .section-head { padding-block: 14px; margin-top: -14px; }
  .phases-pin .ring-col { top: calc(72px + var(--phead, 110px)); z-index: 2; background: var(--color-surface); padding-block: 12px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .phases-pin .ring-col svg { width: 150px !important; }
  .ring-steps .lbl { display: none; }
  .phases-pin .phase { min-height: 38vh; }
}

/* Word reveal */
[data-words] .w { transition: opacity .15s linear; }

/* Scale-in (case studies) */
[data-scale-in] { transform-origin: 50% 0; will-change: transform; }

/* Photo parallax */
.band img[data-parallax] { will-change: transform; }
.photo img[data-parallax] { will-change: transform; }

/* Leistungen: sticky titles */
@media (min-width: 901px) { .service > div:first-child { position: sticky; top: 110px; align-self: start; } }

/* Principles: line draws in */
.rule-list .phase { border-top: 0; position: relative; }
.rule-list .phase::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); }
.rule-list .phase::after { content: ""; position: absolute; left: 0; top: 0; height: 1px; width: 100%; background: var(--color-accent); transform: scaleX(0); transform-origin: left; transition: transform 1.1s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 140ms); }
.rule-list.in .phase::after, .reduced-motion .rule-list .phase::after { transform: scaleX(1); }

/* Services: which phases a service covers */
.phase-strip { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 13px; color: var(--color-text-muted); }
.phase-strip .segs { display: flex; gap: 3px; }
.phase-strip i { width: 18px; height: 4px; border-radius: 2px; background: var(--line); }
.phase-strip i.on { background: var(--color-accent); }

/* /leistungen: phase timeline with services placed on it */
.phase-timeline, .pt-lanes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 28px; }
.pt-step { position: relative; padding-top: 30px; }
.pt-step::before { content: ""; position: absolute; top: 5px; left: 0; right: -28px; height: 1px; background: var(--line); }
.pt-step:last-child::before { right: 0; }
.pt-step::after { content: ""; position: absolute; top: 0; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--color-bg); border: 1px solid var(--color-accent); }
.pt-step .idx { font-size: 13px; letter-spacing: 0.14em; color: var(--color-accent-text); }
.pt-step h3 { margin: 6px 0 8px; }
.pt-step p { margin: 0; color: var(--color-text-muted); font-size: 15px; }
.pt-lanes { margin-top: 36px; position: relative; }
.pt-lanes-label { position: absolute; top: -22px; left: 0; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-text-muted); }
.pt-lane { grid-row: 1; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--color-accent); color: var(--color-text); text-decoration: none; font-size: 15px; transition: background .2s ease; }
.pt-lane:hover { background: rgba(0, 255, 194, 0.08); }
@media (max-width: 900px) {
  .phase-timeline { grid-template-columns: 1fr; gap: 0; }
  .pt-step { padding: 0 0 28px 30px; }
  .pt-step::before { top: 11px; bottom: 0; left: 5px; right: auto; width: 1px; height: auto; }
  .pt-step:last-child::before { display: none; }
  .pt-lanes { grid-template-columns: 1fr; gap: 10px; margin-top: 44px; }
  .pt-lane { grid-column: auto !important; grid-row: auto; }
}

/* /leistungen: what AI-native development changes per phase */
.change-table { display: grid; margin-bottom: 40px; }
.ct-row { display: grid; grid-template-columns: 180px 1fr 1fr; gap: 28px; padding-block: 20px; border-top: 1px solid var(--line); }
.ct-head { border-top: 0; padding-block: 0 12px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-text-muted); }
.ct-head > :last-child { color: var(--color-accent-text); }
.ct-phase { font-size: 19px; }
.ct-then { color: var(--color-text-muted); }
.ct-tag { display: none; }
@media (max-width: 760px) {
  .ct-head { display: none; }
  .ct-row { grid-template-columns: 1fr; gap: 8px; }
  .ct-tag { display: block; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: 2px; }
  .ct-now .ct-tag { color: var(--color-accent-text); }
}

/* Horizontal scroll track */
.hscroll { padding: 0; }
.hscroll .hs-sticky { padding-block: var(--section); }
.hscroll.active .hs-sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding-block: 0; }
.hs-track { display: flex; gap: 20px; padding-inline: var(--gutter); will-change: transform; }
.hs-card { flex: 0 0 min(560px, 44vw); background: var(--color-surface); border-radius: var(--radius); padding: 36px; display: grid; gap: 14px; align-content: start; min-height: 320px; }
.hs-card .big { font-size: 72px; font-weight: 200; line-height: 1; color: var(--color-accent-text); }
.hs-card p { margin: 0; color: var(--color-text-muted); }
@media (max-width: 899px) { .hs-track { flex-direction: column; } .hs-card { flex-basis: auto; min-height: 0; } }

/* Project details */
.tl-details { margin-top: 14px; }
.tl-details summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 400; color: var(--color-accent-text); }
.tl-details summary::-webkit-details-marker { display: none; }
.tl-details summary::before { content: "+"; display: inline-grid; place-items: center; width: 20px; height: 20px; border: 1px solid currentColor; border-radius: 50%; font-size: 14px; line-height: 1; transition: transform .3s ease; }
.tl-details[open] summary::before { transform: rotate(45deg); }
.tl-details summary .less { display: none; }
.tl-details[open] summary .less { display: inline; }
.tl-details[open] summary .more-l { display: none; }
.tl-body { padding: 18px 0 6px; display: grid; gap: 14px; max-width: 70ch; }
.tl-body p { color: var(--color-text); opacity: .86; }
.tl-body h4 { margin: 6px 0 0; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 400; color: var(--color-text-muted); }
.tl-body .checklist { margin-top: 0; }
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .tl-details::details-content { height: 0; overflow: clip; transition: height .45s cubic-bezier(.2,.7,.2,1), content-visibility .45s allow-discrete; }
  .tl-details[open]::details-content { height: auto; }
}
.chip-btn { font: inherit; cursor: pointer; background: none; }
.chip-btn[aria-pressed="true"] { border-color: var(--color-accent); color: var(--color-accent-text); }
.fade-in { animation: fadeIn .5s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Team card hover */
.team-card .photo img { transition: transform .8s cubic-bezier(.2,.7,.2,1); transform: scale(1.06); }
.team-card:hover .photo img { transform: scale(1); }

/* Profile facts (qualitative) */
.facts b { font-size: 26px; }

/* ================================================================ Case study mockup (Baustellendokumentation) */
.flow { display: grid; grid-template-columns: minmax(250px, 300px) minmax(120px, 170px) minmax(0, 1fr); gap: clamp(16px, 2.5vw, 32px); align-items: center; }
.flow.compact { grid-template-columns: minmax(210px, 250px) minmax(0, 1fr); gap: 0; }
.flow.compact .steps { display: none; }
.flow.compact .report { margin-left: -36px; margin-top: 64px; }
@media (max-width: 980px) {
  .flow { grid-template-columns: 1fr; justify-items: center; }
  .flow .report { width: 100%; max-width: 560px; }
  .flow.compact { grid-template-columns: 1fr; }
  .flow.compact .report { margin: -80px 0 0; }
}
.flow-caption { margin-top: 16px; font-size: 13px; color: var(--color-text-muted); }

/* Phone */
.phone { width: 100%; max-width: 300px; aspect-ratio: 9 / 18.5; background: #0B1017; border-radius: 42px; padding: 10px; box-shadow: 0 30px 60px rgba(4,13,22,.35), inset 0 0 0 1.5px #2A3441; position: relative; z-index: 2; }
.phone-screen { height: 100%; border-radius: 33px; overflow: hidden; background: #0E141B; display: flex; flex-direction: column; font-family: -apple-system, 'Helvetica Neue', system-ui, sans-serif; }
.phone-notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 84px; height: 24px; background: #0B1017; border-radius: 14px; z-index: 3; }
.chat-head { padding: 44px 14px 10px; background: #17212B; display: flex; align-items: center; gap: 10px; color: #E9EDF1; }
.chat-head .avatar-s { width: 30px; height: 30px; border-radius: 50%; background: var(--navy-900); display: grid; place-items: center; flex: none; }
.chat-head .avatar-s img { width: 22px; height: 22px; }
.chat-head b { display: block; font-size: 13px; font-weight: 600; }
.chat-head span { font-size: 10.5px; color: #8FA0B3; }
.chat { flex: 1; padding: 12px 10px; display: flex; flex-direction: column; gap: 7px; background: #0E141B; overflow: hidden; }
.bubble { max-width: 82%; padding: 7px 10px; border-radius: 12px; font-size: 11.5px; line-height: 1.4; color: #E9EDF1; }
.bubble.in { background: #1E2A36; align-self: flex-start; border-top-left-radius: 4px; }
.bubble.out { background: #0F5E4E; align-self: flex-end; border-top-right-radius: 4px; }
.bubble .meta { display: block; text-align: right; font-size: 9px; color: rgba(233,237,241,.55); margin-top: 2px; }
.bubble.photos { padding: 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; width: 70%; }
.bubble.photos .ph { aspect-ratio: 1; border-radius: 8px; overflow: hidden; }
.bubble.voice { display: flex; align-items: center; gap: 8px; width: 74%; }
.voice .play { width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.15); display: grid; place-items: center; flex: none; }
.voice .play::before { content: ""; border-left: 7px solid #E9EDF1; border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; margin-left: 2px; }
.voice .wave { flex: 1; height: 18px; display: flex; align-items: center; gap: 2px; }
.voice .wave i { flex: 1; background: rgba(233,237,241,.7); border-radius: 1px; }
.voice small { font-size: 9.5px; color: rgba(233,237,241,.7); }
.bubble.done { display: flex; gap: 6px; align-items: flex-start; }
.bubble.done svg { flex: none; margin-top: 1px; }

/* Construction photo illustration */
.ph svg { width: 100%; height: 100%; display: block; }

/* Processing steps */
.steps { display: grid; gap: 10px; position: relative; justify-items: stretch; }
.steps::before { content: ""; position: absolute; left: 50%; top: -20px; bottom: -20px; width: 1px; background: linear-gradient(transparent, var(--mint-600), transparent); z-index: 0; }
.step { position: relative; z-index: 1; background: var(--color-bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; text-align: center; }
.step b { display: block; font-weight: 400; font-size: 14px; }
.step span { font-size: 12px; color: var(--color-text-muted); }
.step .n { font-size: 11px; letter-spacing: .12em; color: var(--color-accent-text); }
@media (min-width: 981px) {
  .steps::before { left: -20px; right: -20px; top: 50%; bottom: auto; height: 1px; width: auto; background: linear-gradient(90deg, transparent, var(--mint-600), transparent); }
}

/* Report card (web app, light) */
.report { background: #FFFFFF; color: var(--navy-900); border-radius: 16px; box-shadow: 0 30px 70px rgba(4,13,22,.28); overflow: hidden; font-family: 'Jost', system-ui, sans-serif; font-weight: 400; position: relative; z-index: 1; border: 1px solid rgba(4,13,22,.08); }
.report-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 18px; background: var(--paper); border-bottom: 1px solid rgba(4,13,22,.08); font-size: 12px; color: var(--slate-500); }
.report-top .crumb b { color: var(--navy-900); font-weight: 500; }
.pill-s { font-size: 11px; padding: 3px 10px; border-radius: 999px; background: #FFF1D6; color: #7A4B00; white-space: nowrap; }
.report-body { padding: 18px 18px 16px; display: grid; gap: 14px; }
.report h4 { margin: 0; font-size: 19px; font-weight: 400; line-height: 1.25; letter-spacing: -.005em; }
.report .when { font-size: 12px; color: var(--slate-500); margin-top: 4px; }
.weather { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: var(--paper); font-size: 12.5px; }
.weather svg { flex: none; }
.weather small { display: block; font-size: 10.5px; color: var(--slate-500); }
.r-section h5 { margin: 0 0 6px; font-size: 10.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--slate-500); }
.r-section ul { margin: 0; padding-left: 16px; font-size: 13px; line-height: 1.5; }
.r-section li::marker { color: var(--mint-600); }
.r-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.r-photos .ph { aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; }
.todo { display: grid; gap: 6px; }
.todo-item { display: grid; grid-template-columns: 16px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid rgba(4,13,22,.1); border-radius: 10px; font-size: 12.5px; }
.todo-item .box { width: 14px; height: 14px; border: 1.5px solid var(--slate-500); border-radius: 4px; }
.todo-item small { display: block; font-size: 10.5px; color: var(--slate-500); }
.todo-item .add { font-size: 11px; color: var(--mint-deep); border: 1px solid var(--mint-600); border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.transcript { border-top: 1px solid rgba(4,13,22,.08); padding-top: 12px; }
.transcript summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; }
.transcript summary::-webkit-details-marker { display: none; }
.transcript summary span { color: var(--slate-500); font-size: 11.5px; }
.transcript summary::after { content: "+"; font-size: 15px; color: var(--mint-deep); margin-left: 8px; }
.transcript[open] summary::after { content: "–"; }
.transcript p { margin: 8px 0 0; font-size: 12.5px; line-height: 1.55; color: #3A4756; font-style: italic; }
.report-actions { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 18px; border-top: 1px solid rgba(4,13,22,.08); }
.report-actions span { font-size: 12px; padding: 7px 14px; border-radius: 8px; border: 1px solid rgba(4,13,22,.15); }
.report-actions span.primary { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.flow.compact .report .r-photos, .flow.compact .report .transcript, .flow.compact .report-actions { display: none; }

/* Staged reveal of the flow */
.motion .flow[data-reveal] > * { transition-delay: calc(var(--i, 0) * 260ms); }
.motion .flow .chat > * { opacity: 0; transform: translateY(8px); transition: opacity .45s ease, transform .45s ease; }
.motion .flow.in .chat > * { opacity: 1; transform: none; }
.motion .flow.in .chat > *:nth-child(2) { transition-delay: .35s; }
.motion .flow.in .chat > *:nth-child(3) { transition-delay: .7s; }
.motion .flow.in .chat > *:nth-child(4) { transition-delay: 1.05s; }
.motion .flow.in .chat > *:nth-child(5) { transition-delay: 1.4s; }
.motion .flow.in .chat > *:nth-child(6) { transition-delay: 2.6s; }
.motion .flow .steps .step { opacity: .35; transition: opacity .5s ease, border-color .5s ease; }
.motion .flow.in .steps .step { opacity: 1; border-color: var(--mint-600); }
.motion .flow.in .steps .step:nth-child(1) { transition-delay: 1.8s; }
.motion .flow.in .steps .step:nth-child(2) { transition-delay: 2.1s; }
.motion .flow.in .steps .step:nth-child(3) { transition-delay: 2.4s; }
.motion .flow .report-body > * { opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s ease; }
.motion .flow.in .report-body > * { opacity: 1; transform: none; }
.motion .flow.in .report-body > *:nth-child(1) { transition-delay: 2.7s; }
.motion .flow.in .report-body > *:nth-child(2) { transition-delay: 2.85s; }
.motion .flow.in .report-body > *:nth-child(3) { transition-delay: 3.0s; }
.motion .flow.in .report-body > *:nth-child(4) { transition-delay: 3.15s; }
.motion .flow.in .report-body > *:nth-child(5) { transition-delay: 3.3s; }
.motion .flow.in .report-body > *:nth-child(6) { transition-delay: 3.45s; }

/* Feature case study (home) */
.case-feature { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.case-feature .tag-line { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--color-accent-text); font-weight: 400; }
.case-feature h3 { font-size: clamp(30px, 3.4vw, 44px); font-weight: 200; line-height: 1.1; margin: 12px 0 16px; }
@media (max-width: 980px) { .case-feature { grid-template-columns: 1fr; } }

/* Case study detail */
.facts-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; border-top: 1px solid var(--line); padding-top: 24px; margin-top: 40px; }
.facts-row div { display: grid; gap: 4px; }
.facts-row span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--color-text-muted); }
.facts-row b { font-weight: 300; font-size: 17px; }
@media (max-width: 800px) { .facts-row { grid-template-columns: 1fr 1fr; } }
.story { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; padding-block: 40px; border-top: 1px solid var(--line); }
.story:first-child { border-top: 0; }
.story p { margin: 0 0 12px; max-width: 68ch; }
@media (max-width: 800px) { .story { grid-template-columns: 1fr; gap: 12px; } }
.composer { display: flex; align-items: center; gap: 8px; padding: 8px 10px 18px; background: #0E141B; }
.composer span { flex: 1; font-size: 11px; color: #6E7B88; background: #1E2A36; border-radius: 16px; padding: 7px 12px; }
.composer i { width: 28px; height: 28px; border-radius: 50%; background: #0F5E4E; flex: none; position: relative; }
.composer i::before { content: ""; position: absolute; left: 11px; top: 7px; width: 6px; height: 10px; border: 1.5px solid #E9EDF1; border-radius: 4px; }
.transcript summary { justify-content: flex-start; gap: 8px; }
.transcript summary .dur { margin-left: auto; }
/* Compact chat: anchored at the bottom like a real messenger */
.chat { justify-content: flex-end; gap: 5px; padding: 8px 9px; }
.bubble { padding: 6px 9px; font-size: 11px; }
.bubble.photos { width: 58%; }
.bubble.voice { padding-block: 5px; }
.voice .wave { height: 14px; }
.step span:not(.n) { display: block; line-height: 1.45; margin-top: 4px; }

/* Legal pages: calm reading layout */
.legal { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; max-width: 860px; overflow-wrap: anywhere; }
.legal-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 28px; background: var(--color-surface); border-radius: var(--radius); }
.legal-facts span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--color-text-muted); }
.legal-facts p { margin: 8px 0 0; }
@media (max-width: 760px) { .legal-facts { grid-template-columns: 1fr; } }
.legal-body { max-width: 72ch; }
.legal-body p { color: var(--color-text-muted); margin: 0 0 14px; }
.legal-body a, .legal-facts a { color: var(--color-accent-text); text-decoration: none; border-bottom: 1px solid currentColor; }
.legal-h2 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 200; margin: 48px 0 18px; }
.legal-body > .legal-h2:first-child { margin-top: 0; }
.legal-h3 { font-size: 18px; font-weight: 400; margin: 28px 0 10px; }
.legal-body .checklist { margin: 0 0 18px; }

/* ================================================================ Case study story (scroll-driven) */
.story-pin { display: none; padding: 0; background: var(--navy-800); }
.motion .story-pin { display: block; height: 540vh; }
.motion .flow-static { display: none; }
.story-pin .pin-inner { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.sp-intro { position: absolute; left: 0; right: 0; top: 18vh; text-align: center; display: grid; justify-items: center; will-change: opacity, transform; }
.sp-intro h2 { max-width: 18ch; }
.sp-caption { position: absolute; left: 0; right: 0; display: grid; justify-items: center; pointer-events: none; }
.sp-cap { grid-area: 1 / 1; max-width: 640px; padding-inline: var(--gutter); text-align: center; opacity: 0; transform: translateY(10px); transition: opacity .4s ease, transform .4s ease; }
.sp-cap.on { opacity: 1; transform: none; }
.sp-cap .n { display: block; font-size: 12px; letter-spacing: .16em; color: var(--color-accent-text); }
.sp-cap b { display: block; font-weight: 300; font-size: clamp(20px, 2.2vw, 26px); margin: 4px 0; }
.sp-cap .d { display: block; font-size: 14.5px; color: var(--color-text-muted); line-height: 1.5; }
.sp-phone, .sp-report { position: absolute; left: 0; top: 0; transform-origin: 50% 50%; }
.sp-phone { width: 300px; }
.sp-phone .phone { max-width: none; width: 300px; }
.sp-report { width: min(540px, calc(100vw - 32px)); transform-origin: 50% 0; }
.sp-report .report { box-shadow: 0 40px 90px rgba(0,0,0,.45); }
.sp-link { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.sp-note { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; margin: 0; font-size: 12px; color: var(--color-text-muted); }

/* Chat grows like a real messenger: hidden messages take no space, new ones pop in at the bottom. */
.sp-phone .chat > :not(.show) { display: none; }
.sp-phone .chat > .show { animation: pop .35s cubic-bezier(.2,.7,.2,1) both; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
/* Report sections build up in place (space reserved, so the card does not jump). */
.sp-report .report-body > * { opacity: 0; transform: translateY(8px); transition: opacity .35s ease, transform .35s ease; }
.sp-report .report-body > .show { opacity: 1; transform: none; }
.sp-report .report-actions { display: none; }

/* App window bar: makes clear the result lives in the project software */
.app-bar { display: flex; align-items: center; gap: 8px; padding: 9px 14px; background: var(--navy-900); color: #fff; font-size: 12px; }
.app-bar img { width: 18px; height: 18px; }
.app-bar b { font-weight: 500; }
.app-bar span { color: var(--slate-300); margin-left: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Phones: shorter Bautenstand in the story so it can be shown larger */
@media (max-width: 899px) {
  .sp-report .r-section:has(.r-photos), .sp-report .transcript { display: none; }
}

/* ================================================================ Home teaser: scroll-driven chat and Bautenstand */
.motion .case-feature:has(.case-pin) { align-items: start; }
.motion .case-pin { height: 260vh; }
.motion .case-stick { position: sticky; top: 72px; height: calc(100vh - 72px); display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 981px) { .motion .case-text { position: sticky; top: calc(50vh - 150px); } }
.motion .flow.scrolly .chat > * { opacity: 1; transform: none; transition: none; }
.motion .flow.scrolly .chat > :not(.show) { display: none; }
.motion .flow.scrolly .chat > .show { animation: pop .35s cubic-bezier(.2,.7,.2,1) both; }
.motion .flow.scrolly .report { opacity: var(--rep-op, 0); transform: translate(calc((1 - var(--rep-in, 0)) * -60px), calc((1 - var(--rep-in, 0)) * 24px)) scale(calc(.9 + .1 * var(--rep-in, 0))); transform-origin: 0 50%; }
.motion .flow.scrolly .report-body > * { opacity: 0; transform: translateY(8px); transition: opacity .35s ease, transform .35s ease; transition-delay: 0s; }
.motion .flow.scrolly .report-body > .show { opacity: 1; transform: none; }
@media (max-width: 980px) {
  .motion .case-stick { top: 64px; height: calc(100vh - 64px); }
  .motion .case-stick .flow.compact { transform: scale(var(--fit, 1)); transform-origin: 50% 50%; }
}
/* Teaser: phone and Bautenstand side by side, no overlap (the report text must stay readable) */
.flow.compact.scrolly { grid-template-columns: minmax(200px, 230px) minmax(0, 1fr); gap: 18px; align-items: center; }
.flow.compact.scrolly .report { margin: 0; }
@media (max-width: 980px) {
  .flow.compact.scrolly { grid-template-columns: 1fr; gap: 14px; }
  .flow.compact.scrolly .phone { max-width: 240px; }
}
.flow.compact.scrolly .todo-item { grid-template-columns: 16px 1fr; } .flow.compact.scrolly .todo-item .add { display: none; }
.flow.compact .r-section:has(.r-photos) { display: none; }

/* Case study 2: lifecycle, one document that changes with the project (motion.js drives [data-lifecycle]) */
.lc { background: var(--navy-800); padding-block: 40px var(--section); }
.lc-rail { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.lc-rail li { padding-top: 12px; border-top: 2px solid var(--line); font-size: 14px; color: var(--color-text-muted); display: grid; gap: 2px; transition: border-color .3s ease, color .3s ease; }
.lc-rail li span { font-size: 11px; letter-spacing: .14em; }
.lc-rail li b { font-weight: 300; }
.lc-rail li.done { border-top-color: rgba(0, 255, 194, .35); color: var(--color-text); }
.lc-rail li.on { border-top-color: var(--mint-signal); color: var(--color-text); }
.lc-rail li.on span { color: var(--mint-signal); }
.lc-stage { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.lc-caps { display: grid; gap: 28px; }
.lc-cap .n { font-size: 13px; letter-spacing: .14em; color: var(--color-accent-text); }
.lc-cap h3 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 300; margin: 8px 0 10px; }
.lc-cap p { color: var(--color-text-muted); margin: 0; max-width: 38ch; font-size: 17px; line-height: 1.6; }
.lc-hint { display: none; margin: 0; font-size: 13px; letter-spacing: .06em; color: var(--color-text-muted); }
.lc-doc { background: var(--paper); color: var(--navy-900); border-radius: var(--radius); padding: 26px 32px; box-shadow: 0 30px 70px rgba(0,0,0,.4); }
.lc-dochead { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid rgba(4,13,22,.1); margin-bottom: 10px; }
.lc-kind { font-size: 22px; font-weight: 300; }
.lc-dochead > b { font-weight: 400; font-size: 14px; color: var(--slate-500); text-align: right; }
.lc-swap { display: inline-grid; }
.lc-sum b .lc-swap { justify-items: end; }
.lc-swap > * { grid-area: 1 / 1; transition: opacity .35s ease, transform .35s ease; }
.lc-swap > :not(.on) { opacity: 0; transform: translateY(6px); }
.lc-dochead > b .lc-swap { justify-items: end; }
.lc-fold { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .5s cubic-bezier(.2,.7,.2,1), opacity .4s ease; }
.lc-fold > div { overflow: hidden; min-height: 0; }
.lc-fold:not(.on) { grid-template-rows: 0fr; opacity: 0; }
.lc-meta { display: grid; grid-template-columns: 110px 1fr; gap: 4px 12px; font-size: 14px; padding-bottom: 6px; }
.lc-meta span { color: var(--slate-500); }
.lc-meta b { font-weight: 400; justify-self: start; padding: 0 6px; margin-left: -6px; border-radius: 4px; transition: background .4s ease; }
.lc-meta b.hl { background: rgba(0,168,132,.14); }
.lc-lbl { margin: 10px 0 2px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--slate-500); }
.lc-pos { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; font-size: 14px; padding: 7px 0; border-bottom: 1px solid rgba(4,13,22,.06); transition: opacity .35s ease, transform .35s ease; }
.lc-pos:not(.on) { opacity: 0; transform: translateX(-10px); }
.lc-pos span:first-child { color: var(--slate-500); }
.lc-pos b, .lc-sum b, .lc-calc b, .lc-inv b { font-weight: 400; font-variant-numeric: tabular-nums; }
.lc-pos.new { background: rgba(0,168,132,.14); border-radius: 6px; padding-inline: 8px; margin: 4px -8px 0; border-bottom: 0; }
.lc-pos.new span:first-child { color: var(--mint-deep); }
.lc-sum { display: flex; justify-content: space-between; gap: 12px; padding-top: 10px; font-size: 15px; }
.lc-sum b { font-weight: 500; }
.lc-sum s { color: var(--slate-500); font-weight: 300; margin-right: 8px; }
.lc-inv { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; font-size: 14px; padding: 8px 10px; margin-top: 6px; border: 1px solid rgba(4,13,22,.1); border-radius: 8px; transition: opacity .35s ease, transform .35s ease; }
.lc-inv span:nth-child(2) { color: var(--slate-500); }
.lc.live .lc-inv:not(.on) { opacity: 0; transform: translateY(8px); }
.lc-calc div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(4,13,22,.08); font-size: 15px; }
.lc-calc .total { border-bottom: 0; font-size: 18px; }
.lc-calc .total b { font-weight: 500; }
.lc-rates { display: grid; grid-template-columns: 3fr 3fr 3fr 2fr; gap: 4px; padding-bottom: 4px; }
.lc-rates i { font-style: normal; white-space: nowrap; height: 34px; border-radius: 6px; background: rgba(4,13,22,.06); border: 1.5px solid transparent; display: flex; justify-content: space-between; align-items: center; padding: 0 10px; gap: 6px; font-size: 12px; color: var(--slate-500); transition: background .4s ease, color .4s ease, border-color .4s ease; }
.lc-rates i em { font-style: normal; }
.lc-rates i.paid { background: var(--mint-600); color: #fff; }
.lc-rates i.due { background: transparent; border-color: var(--mint-600); color: var(--mint-deep); }
.lc-stamps { display: flex; flex-wrap: wrap; gap: 10px; padding: 12px 0 4px; }
.stamp { font-size: 12px; letter-spacing: .06em; padding: 6px 12px; border: 1.5px solid var(--mint-600); color: var(--mint-deep); border-radius: 6px; transform: rotate(-2deg); }
.stamp.plain { border-color: rgba(4,13,22,.2); color: var(--slate-500); transform: none; }

/* Static (reduced motion): all steps as a list, final document alongside */
.lc:not(.live) .lc-rail { display: none; }
@media (min-width: 901px) { .lc:not(.live) .lc-doc { position: sticky; top: 110px; } }

/* Live: pinned while scrolling, one caption at a time */
.lc.live { padding: 0; }
.lc.live .lc-track { height: 560vh; }
.lc.live .lc-pin > .wrap { width: 100%; }
.lc.live .lc-pin { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-top: 72px; overflow: hidden; }
.lc.live .lc-caps { display: grid; gap: 0; }
.lc.live .lc-cap { grid-area: 1 / 1; transition: opacity .4s ease, transform .4s ease; }
.lc.live .lc-cap:not(.on) { opacity: 0; transform: translateY(12px); pointer-events: none; }
.lc.live .lc-hint { display: block; grid-area: 2 / 1; margin-top: 28px; }
.lc.live .lc-stage { align-items: center; }
@media (max-width: 900px) {
  .lc-stage { grid-template-columns: 1fr; gap: 24px; }
  .lc-rail { margin-bottom: 20px; gap: 4px; }
  .lc-rail li b { display: none; }
  .lc-doc { padding: 18px 18px; }
  .lc-kind { font-size: 18px; }
  .lc-dochead { flex-direction: column; align-items: flex-start; gap: 2px; }
  .lc-dochead > b { white-space: nowrap; font-size: 13px; }
  .lc-dochead > b .lc-swap { justify-items: start; }
  .lc-meta { grid-template-columns: 1fr; gap: 0; }
  .lc-meta span:not(:first-child) { margin-top: 4px; }
  .lc-pos, .lc-inv, .lc-sum, .lc-calc div { font-size: 13px; }
  .lc-pos { padding: 5px 0; }
  .lc-inv { grid-template-columns: 1fr auto; } .lc-inv span:nth-child(2) { display: none; }
  .lc-rates i { font-size: 11px; padding: 0 6px; } .lc-rates i em { display: none; }
  .lc.live .lc-pin { justify-content: flex-start; padding-top: 88px; }
  .lc.live .lc-cap p { font-size: 15px; }
  .lc.live .lc-hint { display: none; }
  .lc .flow-caption { display: none; }
}

/* Projects: case study cards with a cut-out of their graphic, badge in the history */
.case-card { padding: 0; overflow: hidden; gap: 0; }
.case-card > :not(.case-thumb) { margin-inline: 28px; }
.case-card .num { margin-top: 24px; }
.case-card h3 { margin-block: 10px 8px; }
.case-card .more { margin-bottom: 28px; }
.case-thumb { height: 190px; background: var(--navy-900); position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.case-thumb.chat { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 16px 12%; background: radial-gradient(120% 90% at 50% 0%, #12304a 0%, var(--navy-900) 70%); }
.case-thumb .b { max-width: 72%; font-size: 12px; line-height: 1.35; padding: 7px 10px; border-radius: 10px; }
.case-thumb .b.in { align-self: flex-start; background: #1d2b3a; color: var(--slate-300); border-top-left-radius: 3px; }
.case-thumb .b.out { align-self: flex-end; background: #005c4b; color: #e9fff8; border-top-right-radius: 3px; }
.case-thumb .b.ok { color: var(--mint-signal); }
.case-thumb .b.voice { display: flex; align-items: center; gap: 8px; }
.case-thumb .b.voice i { width: 0; height: 0; border-left: 7px solid #e9fff8; border-block: 5px solid transparent; }
.case-thumb .b.voice em { width: 70px; height: 10px; background: repeating-linear-gradient(90deg, rgba(233,255,248,.8) 0 2px, transparent 2px 5px); }
.case-thumb.doc { display: grid; place-items: end center; background: radial-gradient(120% 90% at 50% 0%, #12304a 0%, var(--navy-900) 70%); }
.case-thumb .sheet { width: 74%; background: var(--paper); color: var(--navy-900); border-radius: 10px 10px 0 0; padding: 16px 18px 18px; display: grid; gap: 6px; transform: translateY(14px); box-shadow: 0 -10px 40px rgba(0,0,0,.35); }
.case-thumb .sheet .h { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; padding-bottom: 6px; border-bottom: 1px solid rgba(4,13,22,.1); }
.case-thumb .sheet small { font-size: 10px; color: var(--slate-500); }
.case-thumb .sheet .r { display: grid; grid-template-columns: 20px 1fr auto; font-size: 11px; color: var(--navy-900); }
.case-thumb .sheet .r i { font-style: normal; color: var(--slate-500); }
.case-thumb .sheet .r b { font-weight: 400; }
.case-thumb .sheet .rates { display: grid; grid-template-columns: 3fr 3fr 3fr 2fr; gap: 3px; margin-top: 4px; }
.case-thumb .sheet .rates i { height: 8px; border-radius: 3px; }
.case-thumb .sheet .rates .p { background: var(--mint-600); }
.case-thumb .sheet .rates .d { border: 1.5px solid var(--mint-600); }
.case-badge { display: inline-block; vertical-align: middle; margin-left: 10px; font-size: 12px; font-weight: 400; letter-spacing: .04em; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--color-accent); color: var(--color-accent-text); text-decoration: none; }
.case-badge:hover { background: rgba(0, 255, 194, .08); }

/* Case study 3: example conversation and the path through the platform */
.ki-flow { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.ki-chat { background: var(--navy-900); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 12px; }
.ki-msg { font-size: 15px; line-height: 1.55; padding: 12px 16px; border-radius: 12px; max-width: 92%; }
.ki-msg.user { justify-self: end; background: #1d2b3a; border-top-right-radius: 4px; }
.ki-msg.bot { justify-self: start; color: var(--color-text); padding-inline: 0; }
.ki-step { display: flex; align-items: baseline; gap: 10px; font-size: 13px; color: var(--color-text-muted); padding-left: 12px; border-left: 2px solid var(--color-accent); }
.ki-step span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--color-accent-text); white-space: nowrap; }
.ki-card { margin-top: 12px; background: var(--paper); color: var(--navy-900); border-radius: 10px; padding: 14px 16px; display: grid; gap: 4px; }
.ki-card b { font-weight: 400; }
.ki-card span { font-size: 13px; color: var(--slate-500); }
.ki-actions { display: flex; gap: 8px; margin-top: 8px; }
.ki-actions em { font-style: normal; font-size: 13px; padding: 6px 14px; border-radius: 8px; border: 1px solid rgba(4,13,22,.15); }
.ki-actions em.yes { background: var(--mint-600); border-color: var(--mint-600); color: #fff; }
.ki-arch { display: grid; justify-items: center; }
.ki-node { border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; display: grid; gap: 4px; text-align: center; background: var(--navy-900); }
.ki-node b { font-weight: 400; }
.ki-node span { font-size: 13px; color: var(--color-text-muted); }
.ki-node.top { min-width: 60%; }
.ki-node.hub { width: 100%; border-color: var(--color-accent); box-shadow: 0 0 0 4px rgba(0,255,194,.06); }
.ki-node.hub b { color: var(--color-accent-text); }
.ki-line { display: block; width: 1px; height: 28px; background: var(--color-accent); }
.ki-targets { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; position: relative; padding-top: 0; }
.ki-targets .ki-node { padding: 12px; }
.ki-targets .ki-node.on { border-color: rgba(0,255,194,.4); }
.ki-targets .ki-node.plan { border-style: dashed; }
.ki-targets .ki-node.plan b { color: var(--color-text-muted); }
@media (max-width: 900px) {
  .ki-flow { grid-template-columns: 1fr; gap: 32px; }
  .ki-targets { grid-template-columns: 1fr; }
}
.case-thumb.hub { display: grid; justify-items: center; align-content: center; gap: 0; padding: 0 8%; background: radial-gradient(120% 90% at 50% 0%, #12304a 0%, var(--navy-900) 70%); }
.case-thumb.hub .c, .case-thumb.hub .s, .case-thumb.hub .n { font-size: 12px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; background: var(--navy-900); text-align: center; }
.case-thumb.hub .s { border-color: var(--color-accent); color: var(--color-accent-text); display: grid; }
.case-thumb.hub .s small { font-size: 10px; color: var(--slate-300); }
.case-thumb.hub .l { display: block; width: 1px; height: 16px; background: var(--color-accent); }
.case-thumb.hub .row { display: flex; gap: 6px; }
.case-thumb.hub .n { font-size: 11px; color: var(--slate-300); }
.case-thumb.hub .n.plan { border-style: dashed; }

/* Team page: careers teaser with a card for the open position */
.grow { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.job-card { max-width: 520px; justify-self: end; width: 100%; background: var(--navy-900); border-color: var(--line); }
a.job-card:hover { border-color: var(--color-accent); }
.case-thumb.job-chips { position: relative; display: grid; place-items: center; background: radial-gradient(120% 90% at 50% 0%, #12304a 0%, var(--navy-900) 70%); }
.case-thumb.job-chips .ring { position: absolute; width: 280px; height: 280px; right: -120px; top: 20px; opacity: .6; }
.case-thumb.job-chips .ring path { fill: none; stroke: var(--slate-500); stroke-width: .6; }
.case-thumb.job-chips .ring path.mint { stroke: var(--mint-signal); }
.case-thumb.job-chips .cl { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; width: 84%; }
.case-thumb.job-chips .cl span { font-size: 12px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--slate-300); background: rgba(4, 13, 22, .6); }
.case-thumb.job-chips .cl span.hi { border-color: var(--mint-signal); color: var(--mint-signal); }
@media (max-width: 900px) { .grow { grid-template-columns: 1fr; gap: 32px; } .job-card { justify-self: start; } }

/* Careers: application as a short e-mail */
.grow.apply { align-items: start; }
.apply-mail { display: grid; gap: 22px; text-decoration: none; color: inherit; max-width: 500px; width: 100%; justify-self: end; }
.am-win { background: var(--paper); color: var(--navy-900); border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 70px rgba(0,0,0,.4); transition: transform .3s ease; }
.apply-mail:hover .am-win { transform: translateY(-4px); }
.am-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: #e6eaee; font-size: 13px; color: var(--slate-500); }
.am-bar i { width: 10px; height: 10px; border-radius: 50%; background: #c9d1d9; }
.am-bar span { margin-left: 8px; }
.am-row { display: flex; gap: 12px; padding: 10px 20px; border-bottom: 1px solid rgba(4,13,22,.08); font-size: 14px; }
.am-row span { width: 56px; color: var(--slate-500); flex: none; }
.am-body { padding: 18px 20px 8px; display: grid; gap: 8px; font-size: 14px; }
.am-body p { margin: 0; }
.am-body .sk { display: block; height: 8px; border-radius: 4px; background: rgba(4,13,22,.08); }
.am-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 16px 20px 20px; }
.am-foot .att { font-size: 12px; padding: 5px 10px; border-radius: 6px; background: rgba(0,168,132,.12); color: var(--mint-deep); }
.am-foot .att::before { content: "📎 "; }
.am-foot .send { margin-left: auto; font-size: 13px; padding: 7px 16px; border-radius: 8px; background: var(--mint-600); color: #fff; }
.am-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 8px; }
.am-steps li { display: grid; gap: 4px; font-size: 13px; color: var(--color-text-muted); }
.am-steps li span { font-size: 11px; letter-spacing: .14em; color: var(--color-accent-text); }
.am-steps li:last-child { color: var(--color-text); }
@media (max-width: 900px) { .apply-mail { justify-self: start; } .am-steps { grid-template-columns: 1fr 1fr; } }
