/* Self-hosted fonts (weight 400 only; DM Sans is the variable file, optical size is automatic) */
@font-face{font-family:"DM Mono";font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/dm-mono-latin-ext.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"DM Mono";font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/dm-mono-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"DM Sans";font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/dm-sans-latin-ext.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"DM Sans";font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/dm-sans-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

/* ==========================================================================
   Design tokens: edit colours, fonts, type scale and layout here.
   ========================================================================== */
:root{
  color-scheme:dark;

  /* Fixed colours: the same in both themes (photo sections, CTA) */
  --dark:#111;
  --light:#efefef;
  --orange:#ff3b21;

  /* Theme colours (dark is the default, light overrides below) */
  --bg:var(--dark);
  --fg:var(--light);
  --accent:var(--orange);
  --line:rgba(239,239,239,.28);
  --header-bg:rgba(17,17,17,.82);
  --fig-bg:#1b1b1b; /* placeholder behind partner portraits */

  /* Fonts (loaded from Google Fonts in index.html, weight 400 only) */
  --mono:"DM Mono",ui-monospace,SFMono-Regular,Menlo,monospace;
  --sans:"DM Sans",system-ui,-apple-system,"Segoe UI",sans-serif;

  /* Type scale (mobile) */
  --body:1.125rem;
  --lead:clamp(1.5rem,1rem + 2.2vw,2.25rem);
  --h-hero:clamp(2rem,10vw,4rem);
  --h-section:clamp(2.75rem,10vw,5.5rem);
  --h-state:clamp(1.75rem,6vw,2.5rem);
  --h-item:clamp(2.5rem,4.4vw,5rem);

  /* Layout */
  --gutter:clamp(1.25rem,5vw,3.5rem);
  --measure:34rem;
  --section:clamp(5rem,14vw,10rem);
}

/* Light theme: --dark/--light/--orange stay fixed for photo sections and the CTA */
:root[data-theme="light"]{
  color-scheme:light;
  --bg:#f4f2ee;
  --fg:var(--dark);
  --accent:#cc2410; /* darker red for text contrast on light */
  --line:rgba(17,17,17,.28);
  --header-bg:rgba(244,242,238,.85);
  --fig-bg:#e2dfd8;
}

/* Type scale (desktop) */
@media (min-width:900px){
  :root{--body:1.25rem;--h-hero:clamp(4.5rem,9vw,11rem);--h-section:clamp(4rem,7.5vw,9rem)}
}

/* ==========================================================================
   Base and components
   ========================================================================== */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:5rem}
body{margin:0;background:var(--bg);color:var(--fg);font:400 var(--body)/1.55 var(--sans);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
img{display:block;max-width:100%;height:auto}
a{color:inherit}
h1,h2,h3{font-family:var(--mono);font-weight:400;margin:0}
p{margin:0 0 1.1em}
.accent{color:var(--accent)}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip{position:absolute;left:var(--gutter);top:-4rem;background:var(--fg);color:var(--bg);padding:.6rem 1rem;z-index:100;font-family:var(--mono)}
.skip:focus{top:1rem}

/* Header */
.site-header{position:fixed;inset:0 0 auto 0;z-index:50;display:flex;justify-content:space-between;align-items:center;padding:1rem var(--gutter);transition:background .3s,backdrop-filter .3s}
.site-header.is-scrolled{background:var(--header-bg);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
.site-header.menu-open{background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none;transition:none} /* no fade: while backdrop-filter is still active, the fixed .nav is sized to the header instead of the viewport */
.site-header{color:var(--fg)} /* body's inherited colour is already resolved, so the header must apply its own --fg */
.site-header:not(.is-scrolled):not(.menu-open){--fg:var(--light)} /* over the hero photo */
:root[data-theme="light"] .site-header:is(.is-scrolled,.menu-open) .brand img{filter:invert(1)}
.brand{position:relative;z-index:60}
.brand img{width:clamp(7.5rem,32vw,10.5rem);transition:width .35s ease}
.menu-btn{position:relative;z-index:60;display:none;font:400 .9rem var(--mono);letter-spacing:.06em;text-transform:uppercase;color:var(--fg);background:none;border:1px solid var(--fg);padding:.55rem .9rem;cursor:pointer}
.js .menu-btn{display:block}
.nav ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:.4rem 1.75rem}
.nav a,.theme-btn{font:400 .85rem var(--mono);letter-spacing:.06em;text-transform:uppercase;text-decoration:none}
.theme-btn{display:flex;color:inherit;background:none;border:0;padding:0;cursor:pointer}
.theme-btn svg{width:1.5em;height:1.5em}
.theme-btn .i-moon,:root[data-theme="light"] .theme-btn .i-sun{display:none}
:root[data-theme="light"] .theme-btn .i-moon{display:block} /* shows the theme you switch to */
.theme-li{display:none}
.js .theme-li{display:list-item}
.nav a:hover,.theme-btn:hover{color:var(--accent)}
.js .nav{position:fixed;inset:0;display:none;background:var(--bg);padding:6rem var(--gutter) 2rem;align-items:center}
.js .nav.open{display:flex}
.js .nav ul{flex-direction:column;gap:1.4rem}
.js .theme-li{align-self:flex-start}
.js .nav a,.js .theme-btn{font-size:clamp(1.6rem,7vw,2.25rem);letter-spacing:0}
@media (min-width:900px){
  .site-header{padding-block:1.75rem;transition:background .3s,backdrop-filter .3s,padding .35s ease}
  .site-header.is-scrolled{padding-block:1rem}
  .brand img{width:clamp(15rem,17vw,24rem)}
  .site-header.is-scrolled .brand img{width:9.5rem}
  .js .menu-btn{display:none}
  .js .nav{position:static;display:block;background:none;padding:0}
  .js .nav ul{flex-direction:row;gap:1.75rem}
  .js .theme-li{align-self:center}
  .js .nav a,.js .theme-btn{font-size:.85rem;letter-spacing:.06em}
}

/* Hero */
.hero{color:var(--light);position:relative;min-height:100svh;display:grid;place-items:center;padding:6rem var(--gutter) 4rem;isolation:isolate;overflow:hidden}
.hero picture{position:absolute;inset:0;z-index:-2} /* out of the grid flow, so the h1 stays the only grid item */
.hero-img{width:100%;height:100%;object-fit:cover;object-position:50% 40%}
.hero h1{font-size:var(--h-hero);line-height:1.18;text-transform:uppercase;text-align:center;border:3px solid var(--light);padding:.55em .8em;max-width:100%;overflow-wrap:normal;text-wrap:balance}
@media (min-width:700px){.hero h1{padding:.6em 1.1em}}
@media (min-width:900px){.hero h1{border-width:clamp(5px,.6vw,10px);padding:.45em .8em;line-height:1.12}}

/* Generic */
section{padding:var(--section) var(--gutter)}
.wrap{max-width:70rem;margin-inline:auto}
.eyebrow{font:400 clamp(.8125rem,.75rem + .35vw,1.0625rem)/1.2 var(--mono);text-transform:uppercase;letter-spacing:.1em;margin:0 0 1.5rem;opacity:.85}
.lead{font-size:var(--lead);line-height:1.22;font-weight:400;letter-spacing:-.005em}
.prose{max-width:var(--measure)}
.prose p{margin-bottom:1.2em}
h2.title{font-size:var(--h-section);line-height:1.2;margin-bottom:clamp(2rem,6vw,3.5rem);text-wrap:balance}

/* Intro */
.intro{padding-top:calc(var(--section)*.8)}
.intro .lead{max-width:24em;margin-inline:auto;font-size:clamp(1.625rem,1rem + 2.8vw,2.375rem)}
.intro .lead + .lead{margin-top:1.4em}
@media (min-width:900px){
  .intro{min-height:100svh;display:grid;place-items:center;padding-block:6rem}
  .intro .wrap{width:100%;max-width:84rem}
  .intro .lead{font-size:clamp(2rem,2.7vw,3.5rem);max-width:24em}
}

/* Mandate */
.mandate-card{position:relative;max-width:max(22rem,calc(var(--h-section)*5.9));margin:0 auto clamp(4rem,10vw,8rem);isolation:isolate;color:var(--light)}
.mandate-card img{width:100%;aspect-ratio:2/3;object-fit:cover}
.mandate-card .over{position:absolute;inset:0;z-index:1;display:flex;flex-direction:column;justify-content:space-between;align-items:center;text-align:center;padding:clamp(1.25rem,3vw,2rem) 1rem}
.mandate-card .eyebrow{margin:0;opacity:1}
.mandate-card h2{font-size:var(--h-section);line-height:1.05;white-space:nowrap}
.mandate-card h2 span{display:block}
/* card widens with the heading: "Strategic" is 9 chars of mono (~5.4em) plus padding */
@media (min-width:760px){.mandate-card{max-width:max(30rem,calc(var(--h-section)*5.9))}}
@media (min-width:900px){.mandate-card{max-width:max(36rem,calc(var(--h-section)*5.9))}}
.mandate-text{max-width:62rem;margin-inline:auto}
.mandate-text .lead{max-width:none}
.mandate-text .prose{max-width:40rem;margin:clamp(2.5rem,6vw,4rem) auto 0}

/* Territories */
.territories{overflow-x:clip}
/* mobile: painting first, then eyebrow, headline and text */
.t-intro{display:flex;flex-direction:column}
.t-img{order:-1;margin:1.5rem calc(var(--gutter)*-1) 3rem}
.t-img img{width:100%}
/* states: bordered rows with a number, borders collapse into one grid, hover tints softly */
.states{list-style:none;margin:clamp(4rem,10vw,7rem) 0 0;padding:0;counter-reset:s}
.state{margin-top:-1px;padding:clamp(1.5rem,3vw,2.5rem);border:1px solid var(--line);counter-increment:s}
.state::before{content:"0" counter(s);display:block;font:400 .85rem var(--mono);letter-spacing:.1em;margin-bottom:1rem;opacity:.7}
.state:hover{background:color-mix(in srgb,var(--fg) 10%,transparent)}
.state h3{font-size:var(--h-state);line-height:1.2;margin-bottom:1.1rem}
.state p{margin:0}
@media (min-width:900px){
  .territories .wrap{max-width:none}
  /* full browser width: text column left (aligned with a 96rem column), image runs to the right window edge */
  .t-intro{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:clamp(2rem,5vw,6rem);margin-inline:calc(var(--gutter)*-1);padding-left:max(var(--gutter),calc((100% + 2*var(--gutter) - 96rem)/2))}
  .t-img{order:0;margin:0}
  .t-img picture{display:block;height:100%}
  .t-img img{height:100%;object-fit:cover}
  .states{max-width:96rem;margin:clamp(6rem,10vw,9rem) auto 0}
  .state{display:grid;grid-template-columns:4rem minmax(0,5fr) minmax(0,6fr);column-gap:2rem;align-items:start;padding-block:clamp(2.5rem,4vw,3.5rem)}
  .state::before{grid-column:1;margin:.5em 0 0}
  .state h3{grid-column:2;margin:0}
  .state p{grid-column:3;max-width:var(--measure)}
}

/* Working with us */
.w-head{display:flex;flex-direction:column}
.w-img{order:-1;margin:0 calc(var(--gutter)*-1) clamp(3rem,8vw,5rem)}
.w-img img{width:100%;aspect-ratio:16/9;object-fit:cover}
@media (min-width:900px){
  .working .wrap{max-width:none}
  /* image starts at the section top and runs to the right window edge */
  .w-head{display:grid;grid-template-columns:minmax(0,1fr) 43vw;margin-right:calc(var(--gutter)*-1);margin-bottom:clamp(4rem,8vw,9rem)}
  .w-img{order:0;margin:calc(var(--section)*-1) 0 0}
  .w-img img{aspect-ratio:4/3}
  .w-head .title{margin:0 0 0 8vw}
  .w-head .eyebrow{margin-left:8vw}
  .working .cols{margin-inline:auto;max-width:var(--measure)}
  .working .cols .lead{font-size:var(--body);line-height:inherit;margin-bottom:1.4em}
}

/* Partners */
.partners-list{display:grid;gap:clamp(4rem,10vw,7rem)}
.partner{display:grid;gap:1.1rem}
.partner figure{margin:0 0 .65rem;max-width:18rem}
.partner figure img{width:100%;background:var(--fig-bg)}
.partner h3{font-size:var(--h-state);line-height:1.2}
.partner .links{display:flex;flex-wrap:wrap;gap:.75rem;margin:1.8rem 0 0}
.btn,.action{text-transform:uppercase;text-decoration:none;transition:background .2s,color .2s}
.btn{display:inline-block;font:400 .85rem var(--mono);letter-spacing:.06em;color:var(--accent);border:1px solid var(--accent);padding:.7rem 1.3rem}
.btn:hover,.btn:focus-visible{background:var(--accent);color:var(--light)}
@media (min-width:760px){
  .partner{grid-template-columns:minmax(12rem,18rem) 1fr;grid-template-rows:1fr auto auto 1fr;column-gap:clamp(2rem,6vw,5rem);align-items:start} /* name + copy sit in the middle rows, so they are centered against the photo */
  .partner figure{grid-column:1;grid-row:1 / -1;margin:0}
  .partner h3,.partner .prose{width:min(100%,var(--measure));justify-self:center} /* name and copy share one block, centered in the space beside the photo */
  .partner h3{grid-column:2;grid-row:2}
  .partner .prose{grid-column:2;grid-row:3}
  .partner:nth-child(even){grid-template-columns:1fr minmax(12rem,18rem)}
  .partner:nth-child(even) figure{grid-column:2}
  .partner:nth-child(even) h3,.partner:nth-child(even) .prose{grid-column:1}
}
/* desktop: photo takes 4 of 12 columns, name and copy are centered in the remaining 8 and keep their full measure */
@media (min-width:900px){
  .partners .wrap{max-width:none}
  .partners .eyebrow,.partners .title{text-align:center}
  .partners .title{white-space:nowrap;margin-bottom:clamp(5rem,9vw,10rem)}
  .partners-list{gap:clamp(5rem,10vw,10rem)}
  .partners-list .partner{grid-template-columns:minmax(0,4fr) minmax(0,8fr);column-gap:2rem;row-gap:clamp(1rem,1.6vw,1.5rem)}
  .partners-list .partner:nth-child(even){grid-template-columns:minmax(0,8fr) minmax(0,4fr)}
  .partner figure{max-width:none}
}

/* Track record */
.record .lead{max-width:none;margin-bottom:1.6em}
@media (min-width:900px){
  .record .wrap{max-width:none}
  .record .eyebrow,.record .lead{max-width:70rem;margin-inline:auto}
  .record .title.full{white-space:nowrap;margin-inline:calc(var(--gutter)*-1);padding-inline:var(--gutter);font-size:calc((100vw - 2 * var(--gutter)) / 16.8);text-align:center;margin-bottom:clamp(5rem,10vw,10rem)}
  .record .eyebrow{text-align:center}
}
.logo-wall{color:var(--light);position:relative;isolation:isolate;overflow:hidden}
.logo-wall .bg{position:absolute;inset:0;z-index:-2}
.logo-wall .bg picture{display:block;height:100%}
.logo-wall .bg img{width:100%;height:100%;object-fit:cover;object-position:50% 20%}
@media (min-width:900px){.logo-wall .wrap{max-width:none}}
.logos{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:clamp(1.25rem,4vw,3.5rem) clamp(.75rem,3vw,3rem);align-items:center}
.logos li{aspect-ratio:1;display:grid;place-items:center}
.logos img{width:85%;height:85%;object-fit:contain}
@media (min-width:600px){.logos{grid-template-columns:repeat(6,1fr)}}
@media (min-width:900px){
  .logos{margin-inline:calc(var(--gutter)*-1);padding-inline:var(--gutter)}
  .logos img{width:68%;height:68%}
}
@media (min-width:1000px){.logos{grid-template-columns:repeat(8,1fr)}}
@media (min-width:1700px){.logos{grid-template-columns:repeat(10,1fr)}}

/* CTA */
.cta{background:var(--orange);color:var(--dark);text-align:center;min-height:100svh;display:grid;place-items:center;padding-block:clamp(6rem,16vw,10rem)}
.cta .wrap{width:100%}
.cta :focus-visible{outline-color:var(--dark)}
.cta .lead{font-size:clamp(2rem,1.2rem + 4vw,4.5rem);line-height:1.1;margin-bottom:.6em}
.cta p.note{max-width:var(--measure);margin:0 auto 3rem;font-size:clamp(1.125rem,1rem + .6vw,1.5rem)}
.action{display:block;font:400 var(--h-hero)/1.2 var(--mono);color:var(--dark);border:3px solid var(--dark);padding:.5em 1.3em}
.action:hover,.action:focus-visible{background:var(--dark);color:var(--orange)}
@media (min-width:521px){.action{display:inline-block}}
@media (min-width:900px){.action{font-size:clamp(3rem,5vw,6rem);border-width:5px}}

/* Footer */
footer{padding:3rem var(--gutter) 3rem;border-top:1px solid var(--line)}
footer .wrap{max-width:none;display:flex;flex-wrap:wrap;gap:1.5rem 2.5rem;justify-content:space-between;align-items:center}
footer ul{list-style:none;margin:0;padding:0;display:flex;gap:1.5rem;font:400 .85rem var(--mono)}
footer a{text-decoration:none}
footer small{font:400 .8rem var(--mono);opacity:.7}

/* Legal pages (impressum.html, datenschutz.html) */
.legal{padding:clamp(2rem,6vw,4rem) var(--gutter) var(--section)}
.legal .wrap{max-width:44rem}
.legal .back{display:inline-block;font:400 .85rem var(--mono);letter-spacing:.06em;text-transform:uppercase;text-decoration:none;margin-bottom:clamp(3rem,8vw,6rem)}
.legal h1{font-size:var(--h-state);line-height:1.2;margin-bottom:2rem}
.legal h2{font:400 .95rem/1.3 var(--mono);letter-spacing:.06em;text-transform:uppercase;margin:2.5rem 0 .8rem}
.legal a:not(.back){color:var(--accent)}
.legal code{font-family:var(--mono);font-size:.9em}

/* Reveal */
.js .reveal{opacity:0;transform:translateY(18px);transition:opacity .7s ease,transform .7s ease}
.js .reveal.in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .js .reveal{opacity:1;transform:none;transition:none}
}
