:root {
  --paper: #f4efe7;
  --sand: #d9c8b2;
  --cream: #fbf8f3;
  --taupe: #98836c;
  --ink: #1f211e;
  --muted: #65645e;
  --line: rgba(31, 33, 30, .2);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.55; }
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.site-header { height: 88px; padding: 0 clamp(24px, 5vw, 76px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(244,239,231,.95); position: sticky; top: 0; z-index: 30; backdrop-filter: blur(14px); }
.wordmark { font: 700 25px/1 var(--serif); letter-spacing: -.04em; }
.wordmark span { color: var(--taupe); }
nav { display: flex; gap: 34px; align-items: center; font-size: 13px; text-transform: uppercase; letter-spacing: .14em; }
nav a { position: relative; padding: 11px 0; }
nav a::after { content: ""; position: absolute; left: 0; bottom: 4px; width: 0; height: 1px; background: currentColor; transition: width .25s ease; }
nav a:hover::after, nav a.active::after { width: 100%; }
.nav-contact { border: 1px solid var(--ink); padding: 11px 18px; }
.nav-contact::after { display: none; }
.menu-toggle { display: none; border: 0; background: none; color: inherit; text-transform: uppercase; letter-spacing: .14em; }

.section-pad { padding: clamp(78px, 10vw, 144px) clamp(24px, 7vw, 108px); }
.eyebrow, .section-label, .mini-label { margin: 0 0 24px; font-size: 11px; text-transform: uppercase; letter-spacing: .2em; color: var(--muted); }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.035em; }
h1 em, h2 em { font-weight: 400; color: var(--taupe); }
h2 { font-size: clamp(38px, 5.2vw, 72px); line-height: 1.04; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: 0 23px; font-size: 12px; text-transform: uppercase; letter-spacing: .15em; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-dark { color: var(--cream); background: var(--ink); }
.button-light { color: var(--ink); background: var(--cream); }
.text-link { display: inline-flex; gap: 10px; align-items: center; padding-bottom: 4px; border-bottom: 1px solid var(--ink); font-size: 13px; text-transform: uppercase; letter-spacing: .12em; }

.hero { min-height: calc(100vh - 88px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr); position: relative; overflow: hidden; }
.hero-copy { padding: clamp(80px, 11vw, 150px) 6vw 80px 7vw; align-self: center; }
.hero h1 { margin-bottom: 34px; font-size: clamp(68px, 8.5vw, 132px); line-height: .86; }
.hero-intro { max-width: 570px; color: var(--muted); font-size: clamp(18px, 2vw, 24px); }
.hero-actions { display: flex; gap: 28px; align-items: center; margin-top: 45px; flex-wrap: wrap; }
.hero-portrait { position: relative; background: var(--sand); padding: 8vh 5vw 5vh; display: flex; flex-direction: column; justify-content: center; }
.portrait-frame { aspect-ratio: 4/5; overflow: hidden; }
.portrait-frame img { height: 100%; object-fit: cover; object-position: center 30%; filter: saturate(.8); }
.portrait-caption { margin: 22px 0 0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.portrait-caption span { font-family: var(--serif); font-size: 24px; text-transform: none; letter-spacing: -.02em; }
.hero-index { position: absolute; left: 24px; bottom: 20px; color: var(--taupe); font-family: var(--serif); }

.statement { background: var(--cream); }
.statement-grid { display: grid; grid-template-columns: 1.5fr .7fr; gap: 10vw; align-items: end; }
.statement-grid h2 { margin-bottom: 0; }
.statement-grid > div p { color: var(--muted); font-size: 18px; }
.statement-grid .text-link { margin-top: 20px; }

.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-top: 65px; padding-bottom: 65px; }
.numbers article { padding: 10px 35px; border-left: 1px solid var(--line); }
.numbers article:first-child { border-left: 0; padding-left: 0; }
.numbers strong { display: flex; align-items: center; min-height: clamp(42px, 5vw, 72px); font: 400 clamp(42px, 5vw, 72px)/1 var(--serif); }
.numbers strong.number-languages { font-size: clamp(32px, 3.6vw, 52px); letter-spacing: -.04em; white-space: nowrap; }
.numbers p { max-width: 240px; margin: 18px 0 0; color: var(--muted); font-size: 13px; }

.feature-project { display: grid; grid-template-columns: .75fr 1.25fr; gap: 7vw; align-items: center; background: #84725f; color: var(--cream); }
.feature-copy p:not(.section-label) { max-width: 500px; color: rgba(255,255,255,.75); }
.feature-copy .section-label { color: rgba(255,255,255,.65); }
.feature-copy .button { margin-top: 24px; }
.feature-image { position: relative; overflow: hidden; }
.feature-image img { aspect-ratio: 4/3; object-fit: cover; transition: transform .7s ease; }
.feature-image:hover img { transform: scale(1.025); }
.feature-image span { position: absolute; right: 18px; bottom: 18px; padding: 10px 14px; background: rgba(31,33,30,.8); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }

.next-step { text-align: center; background: var(--cream); }
.next-step h2 { max-width: 1050px; margin: 0 auto 42px; }
footer { padding: 45px clamp(24px, 7vw, 108px); display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: end; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
footer div { display: flex; flex-direction: column; }
footer p { margin: 0; text-align: right; }

.page-hero { min-height: 62vh; padding: clamp(90px, 12vw, 165px) 7vw 80px; display: grid; grid-template-columns: 1.3fr .7fr; gap: 8vw; align-items: end; border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 850px; margin: 0; font-size: clamp(66px, 9vw, 132px); line-height: .9; }
.profile-hero h1 { line-height: 1.12; letter-spacing: -.025em; }
.profile-hero h1 em { display: block; }
.page-lead { max-width: 460px; color: var(--muted); font-size: 20px; }

.profile-intro { display: grid; grid-template-columns: .8fr 1.2fr; gap: 9vw; background: var(--cream); }
.profile-photo img { max-height: 780px; object-fit: cover; object-position: center 28%; filter: saturate(.78); }
.profile-text { align-self: center; }
.profile-text h2 { max-width: 700px; }
.profile-text > p:not(.section-label) { max-width: 720px; color: var(--muted); font-size: 18px; }
blockquote { margin: 42px 0 0; padding: 24px 0 0; border-top: 1px solid var(--line); font: italic 28px/1.35 var(--serif); }

.career { background: var(--paper); }
.timeline { margin-top: 50px; border-top: 1px solid var(--ink); }
.timeline article { display: grid; grid-template-columns: 230px 1fr; gap: 6vw; padding: 38px 0; border-bottom: 1px solid var(--line); }
.timeline h3 { margin-bottom: 9px; font: 400 27px/1.2 var(--serif); }
.timeline p { margin-bottom: 0; color: var(--muted); }
.timeline .time { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }

.competencies { display: grid; grid-template-columns: .65fr 1.35fr; gap: 8vw; background: #84725f; color: var(--cream); }
.competencies .section-label { color: rgba(255,255,255,.65); }
.skill-list { display: flex; flex-wrap: wrap; align-content: center; gap: 12px; }
.skill-list span { padding: 13px 17px; border: 1px solid rgba(255,255,255,.35); border-radius: 100px; font-size: 13px; }

.case-study { background: var(--cream); scroll-margin-top: 88px; }
.case-heading { display: grid; grid-template-columns: .6fr 1fr; column-gap: 6vw; margin-bottom: 65px; }
.case-heading .section-label { grid-column: 1 / -1; }
.case-heading h2 { margin: 0; }
.case-heading > p:last-child { align-self: end; color: var(--muted); font-size: 18px; }
.compare { --position: 50%; position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--sand); }
.compare > img, .compare-after, .compare-after img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.compare-after { clip-path: inset(0 calc(100% - var(--position)) 0 0); }
.compare::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--position); width: 2px; transform: translateX(-1px); background: var(--cream); pointer-events: none; z-index: 2; }
.compare:focus-within { outline: 2px solid var(--taupe); outline-offset: 4px; }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 5; }
.compare-handle { position: absolute; left: var(--position); top: 50%; transform: translate(-50%,-50%); width: 52px; height: 52px; border-radius: 50%; background: var(--cream); display: grid; place-items: center; z-index: 4; box-shadow: 0 4px 20px rgba(0,0,0,.18); }
.compare-label { position: absolute; top: 18px; z-index: 3; padding: 7px 10px; background: rgba(31,33,30,.76); color: white; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.before-label { right: 18px; }
.after-label { left: 18px; }
.compare-help { margin: 12px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.case-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6vw; margin-top: 70px; }
.case-details article { border-top: 1px solid var(--ink); padding-top: 23px; }
.case-details h3 { font: 400 26px/1.2 var(--serif); }
.case-details p:last-child { color: var(--muted); }

.external-story { display: grid; grid-template-columns: .7fr 1.3fr; gap: 8vw; align-items: center; background: #84725f; color: var(--cream); }
.external-copy .section-label { color: rgba(255,255,255,.65); }
.external-copy p:not(.section-label) { color: rgba(255,255,255,.75); }
.video-placeholder { position: relative; overflow: hidden; }
.video-placeholder img { aspect-ratio: 16/9; object-fit: cover; filter: brightness(.58) saturate(.7); }
.video-placeholder > div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.video-placeholder p { margin: 14px 0 0; font-family: var(--serif); font-size: 24px; }
.play { width: 60px; height: 60px; margin: auto; border: 1px solid white; border-radius: 50%; display: grid; place-items: center; padding-left: 4px; }

.process { background: var(--paper); }
.process > h2 { max-width: 900px; }
.process ol { list-style: none; margin: 70px 0 0; padding: 0; border-top: 1px solid var(--ink); }
.process li { display: grid; grid-template-columns: 100px 1fr; gap: 5vw; padding: 30px 0; border-bottom: 1px solid var(--line); }
.process li > span { font: italic 22px var(--serif); color: var(--taupe); }
.process h3 { margin-bottom: 6px; font: 400 28px var(--serif); }
.process li p { margin: 0; color: var(--muted); }

.brand-strip { padding: 45px 7vw; border-top: 1px solid var(--line); background: var(--cream); }
.brand-row { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 32px; align-items: center; }
.brand-row > div { height: 100px; position: relative; display: flex; align-items: center; justify-content: center; }
.brand-row img { display: block; width: 160px; max-width: 100%; height: auto; flex-shrink: 0; }
.brand-row svg { display: block; width: 285px; max-width: 100%; height: 80px; overflow: hidden; }
.brand-row .brand-ev svg { height: 60px; }
.brand-row .brand-itx img { width: 125px; max-width: 80%; }
.brand-row .brand-sparkasse svg { width: 285px; }
.brand-row small { position: absolute; top: 100%; left: 0; right: 0; text-align: center; font-size: 10px; color: var(--muted); }
.career-logo { display: block; width: auto; max-width: 260px; height: 76px; object-fit: contain; object-position: left; margin: 0 0 22px; }
.career-logo.career-logo-wide { width: 300px; max-width: 100%; height: 76px; overflow: hidden; }
.references { background: var(--cream); scroll-margin-top: 88px; }
.reference-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; align-items: end; margin-bottom: 55px; }
.reference-intro h2 { margin-bottom: 0; }
.reference-intro > p { max-width: 540px; color: var(--muted); font-size: 18px; }
.reference-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 55px 35px; }
.reference-price { display: flex; flex-direction: column; gap: 6px; margin: 20px 0; padding: 18px 0; border-block: 1px solid var(--line); }
.reference-price span { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.reference-price strong { font: 400 clamp(26px,3vw,36px)/1.2 var(--serif); }
.price-note { color: var(--muted); font-size: 13px; margin-top: 28px; }
.reference-card { min-width: 0; background: var(--paper); }
.reference-card figure { margin: 0; }
.reference-card figure img { aspect-ratio: 4/3; object-fit: contain; background: var(--sand); }
.reference-card figure img.image-edge-to-edge { aspect-ratio: 4/3; height: auto; object-fit: cover; object-position: center; background: transparent; display: block; }
.reference-card figure { position: relative; }
.image-note { position: absolute; right: 10px; bottom: 48px; padding: 5px 8px; background: rgba(251,248,243,.94); color: var(--ink); font-size: 10px; }
.reference-card figcaption { padding: 12px 24px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.reference-body { padding: 28px; }
.reference-body h3 { font: 400 clamp(27px,3vw,40px)/1.1 var(--serif); letter-spacing: -.025em; margin-bottom: 16px; }
.reference-body .mini-label { margin-bottom: 12px; }
.success-label { display: inline-block; font-size: 10px; text-transform: uppercase; letter-spacing: .13em; border: 1px solid #8b927e; padding: 6px 9px; color: #46523b; }
.reference-body dl { margin: 12px 0 22px; }
.reference-body dl > div { display: grid; grid-template-columns: 1fr 1.25fr; gap: 15px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.reference-body dt { color: var(--muted); }
.reference-body dd { margin: 0; text-align: right; }
.reference-body > p:last-child { color: var(--muted); font-size: 15px; margin-bottom: 0; }
.more-references { margin-top: 65px; padding: 40px; background: var(--paper); border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 35px; }
.more-references h2 { grid-column: 1 / -1; font-size: clamp(32px,4vw,52px); line-height: 1.12; margin: 0 0 8px; }
.more-references h3 { font: 400 25px/1.2 var(--serif); margin-bottom: 10px; }
.more-references div p { color: var(--muted); font-size: 14px; }
.reveal { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .brand-row { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .reference-intro, .more-references { grid-template-columns: 1fr; gap: 25px; }
  .reference-grid { gap: 30px 20px; }
  .reference-body { padding: 22px; }
  .reference-body dl > div { grid-template-columns: 1fr; gap: 4px; }
  .reference-body dd { text-align: left; }
  .site-header { height: 74px; }
  .menu-toggle { display: block; }
  nav { position: absolute; top: 74px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 18px 24px 28px; background: var(--paper); border-bottom: 1px solid var(--line); }
  nav.open { display: flex; }
  nav a { padding: 15px 0; }
  .nav-contact { margin-top: 10px; text-align: center; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 80px 24px 70px; }
  .hero h1 { font-size: clamp(62px, 18vw, 102px); }
  .hero-portrait { padding: 50px 24px; }
  .portrait-frame { max-height: 72vh; }
  .statement-grid, .feature-project, .page-hero, .profile-intro, .competencies, .case-heading, .external-story { grid-template-columns: 1fr; }
  .statement-grid, .page-hero, .case-heading { gap: 35px; }
  .numbers { grid-template-columns: 1fr 1fr; }
  .numbers article { border-left: 0; border-top: 1px solid var(--line); padding: 30px 18px 30px 0; }
  .numbers article:nth-child(even) { border-left: 1px solid var(--line); padding-left: 25px; }
  .page-hero { min-height: 55vh; }
  .timeline article { grid-template-columns: 1fr; gap: 12px; }
  .case-details { grid-template-columns: 1fr; gap: 30px; }
  .compare { aspect-ratio: 4/3; }
  footer { grid-template-columns: 1fr; gap: 25px; }
  footer p { text-align: left; }
}

@media (max-width: 560px) {
  .brand-row { grid-template-columns: 1fr; gap: 16px; }
  .brand-row > div { height: 86px; }
  .reference-grid { grid-template-columns: 1fr; }
  .more-references { padding: 28px 22px; }
  .brand-row img { max-width: 100%; }
  .brand-strip { padding-left: 24px; padding-right: 24px; }
  .section-pad { padding-left: 24px; padding-right: 24px; }
  h2 { font-size: 42px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .numbers { grid-template-columns: 1fr; }
  .numbers article, .numbers article:nth-child(even) { border-left: 0; padding-left: 0; }
  .page-hero { padding-left: 24px; padding-right: 24px; }
  .page-hero h1 { font-size: 62px; }
  .process li { grid-template-columns: 52px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
