/* tayger.de v3
   One typeface across the whole site: Anybody (Tyler Finck, OFL), variable on two axes.
   The width axis carries the identity: 150 for display, 100 for reading, 75 for labels.
   Light and dark share one token set; colour lives only in the two shader canvases. */

@font-face{
  font-family:'Anybody';
  font-style:normal;
  font-weight:100 900;
  font-stretch:50% 150%;
  font-display:swap;
  src:url('assets/fonts/anybody.woff2') format('woff2-variations');
}

/* ---------- tokens: light is the base, dark only overrides values ---------- */
:root{
  color-scheme:light;
  --bg:#ffffff;
  --bg-2:#f4f4f4;          /* image beds and quiet panels */
  --fg:#000000;
  --fg-2:#181818;          /* body copy */
  --muted:#6d6d6d;
  --line:rgba(0,0,0,.14);
  --line-strong:rgba(0,0,0,.28);
  --band:#000000;          /* the contact band */
  --band-veil-a:.6;
  --band-veil-b:.8;

  --font:'Anybody',ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;

  --ease:cubic-bezier(.19,1,.22,1);
  --dur:.8s;
  --dur-l:1.25s;

  --max:1078px;
  --gutter:clamp(20px,4vw,48px);
  --section:clamp(80px,10vw,132px);
  --pill:75px;
}

@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    color-scheme:dark;
    --bg:#0a0a0a;
    --bg-2:#151515;
    --fg:#ffffff;
    --fg-2:#e6e6e6;
    --muted:#8d8d8d;
    --line:rgba(255,255,255,.16);
    --line-strong:rgba(255,255,255,.34);
    --band:#000000;
    --band-veil-a:.42;
    --band-veil-b:.68;
  }
}
:root[data-theme="dark"]{
  color-scheme:dark;
  --bg:#0a0a0a;
  --bg-2:#151515;
  --fg:#ffffff;
  --fg-2:#e6e6e6;
  --muted:#8d8d8d;
  --line:rgba(255,255,255,.16);
  --line-strong:rgba(255,255,255,.34);
  --band:#000000;
  --band-veil-a:.42;
  --band-veil-b:.68;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{
  margin:0;
  background:var(--bg);
  color:var(--fg);
  font-family:var(--font);
  font-variation-settings:'wdth' 100,'wght' 400;
  font-size:17px;
  line-height:1.62;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
  transition:background-color .5s var(--ease),color .5s var(--ease);
}
img{display:block;max-width:100%;height:auto}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
h1,h2,h3,p,figure{margin:0}
::selection{background:var(--fg);color:var(--bg)}
:focus-visible{outline:1px solid currentColor;outline-offset:4px}

.wrap{max-width:var(--max);margin:0 auto;padding-left:var(--gutter);padding-right:var(--gutter)}
.bleed{padding-left:var(--gutter);padding-right:var(--gutter)}

.skip{position:absolute;left:-999px;top:8px;z-index:100;background:var(--fg);color:var(--bg);padding:8px 16px;font-size:12px}
.skip:focus{left:8px}

/* label: the condensed end of the width axis */
.label{
  font-size:11px;
  font-variation-settings:'wdth' 75,'wght' 500;
  letter-spacing:.2em;
  text-transform:uppercase;
  color:var(--muted);
}

/* ---------- Header ---------- */
.site-header{
  position:fixed;inset:0 0 auto 0;z-index:20;
  height:64px;
  display:grid;grid-template-columns:1fr auto 1fr;align-items:center;
  padding:0 var(--gutter);
  color:var(--fg);
  transition:color var(--dur) var(--ease);
}
.site-header.on-dark{color:#fff}
.brand{
  justify-self:start;
  font-size:19px;
  font-variation-settings:'wdth' 132,'wght' 500;
  letter-spacing:-.01em;
  transition:font-variation-settings var(--dur) var(--ease);
}
.brand:hover{font-variation-settings:'wdth' 150,'wght' 500}
.head-mid{display:flex;align-items:center;gap:16px;justify-self:center}
.lang{display:flex;gap:14px;font-size:11px;font-variation-settings:'wdth' 88,'wght' 500;letter-spacing:.12em}
.lang button{opacity:.42;transition:opacity .4s ease}
.lang button[aria-pressed="true"],.lang button:hover{opacity:1}
.theme{
  font-size:10px;font-variation-settings:'wdth' 75,'wght' 500;
  letter-spacing:.16em;text-transform:uppercase;
  opacity:.6;transition:opacity .4s ease;
  border:1px solid currentColor;border-radius:var(--pill);
  padding:4px 11px;line-height:1.2;
}
.theme:hover{opacity:1}
.menu{
  display:flex;gap:clamp(14px,2.4vw,28px);justify-self:end;
  font-size:11px;font-variation-settings:'wdth' 88,'wght' 500;
  letter-spacing:.12em;text-transform:uppercase;
}
.menu a{position:relative}
.menu a::after{
  content:"";position:absolute;left:0;right:100%;bottom:-5px;height:1px;background:currentColor;
  transition:right var(--dur) var(--ease);
}
.menu a:hover::after,.menu a:focus-visible::after{right:0}

/* ---------- Hero ---------- */
.hero{
  position:relative;
  min-height:100dvh;
  display:grid;
  grid-template-rows:1fr auto;
  align-items:center;
  padding-top:calc(64px + 2vh);
  background:#050505;
  color:#fff;
  overflow:hidden;
  isolation:isolate;
}
.shader{position:absolute;inset:0;z-index:0}
.shader canvas{display:block;width:100%;height:100%}
.shader.fallback{
  background:
    radial-gradient(60% 80% at 20% 30%,rgba(160,224,171,.5),transparent 60%),
    radial-gradient(50% 70% at 75% 40%,rgba(255,172,46,.55),transparent 60%),
    radial-gradient(60% 60% at 55% 85%,rgba(165,45,37,.7),transparent 65%),
    #050505;
  filter:blur(40px) saturate(1.1);
  transform:scale(1.15);
  animation:drift 26s var(--ease) infinite alternate;
}
@keyframes drift{to{transform:scale(1.26) rotate(6deg)}}
/* the hero is a lake now, so its no-WebGL fallback is water, not the warm field */
.hero .shader.fallback{
  background:
    radial-gradient(60% 80% at 25% 30%,rgba(64,88,104,.55),transparent 60%),
    radial-gradient(55% 70% at 75% 45%,rgba(38,56,68,.6),transparent 62%),
    radial-gradient(60% 60% at 55% 85%,rgba(18,28,36,.75),transparent 65%),
    #0a1015;
}
body:not(.shader-on) .hero .shader::after{
  content:"";position:absolute;inset:0;
  background:radial-gradient(85% 75% at 50% 45%,rgba(0,0,0,.16),rgba(0,0,0,.55));
  pointer-events:none;
}

.display{
  position:relative;z-index:1;
  font-variation-settings:'wdth' 150,'wght' 400;
  line-height:.86;
  letter-spacing:-.005em;
  text-shadow:0 2px 60px rgba(0,0,0,.4);
  font-size:clamp(3rem,12.6vw,11.4rem); /* pre-fit default; script solves the exact fit */
  pointer-events:none; /* the cursor belongs to the shader underneath */
}
.display .line{
  display:block;overflow:hidden;white-space:nowrap;
  /* Die Maske klemmte die Oberlaengen ab. Gemessen bei 200px Schrift: die Tinte
     von T, l, d, F steht 17.1px UEBER der Zeilenbox (line-height .86). Bis
     .letters-free kam, standen die Buchstaben gekappt da und sprangen dann auf
     volle Hoehe -- das war das Ausploppen nach dem Eintritt. Dasselbe Mittel wie
     unten an den Spans: Platz schaffen, Lage per negativem Aussenabstand halten. */
  padding-top:.12em;margin-top:-.12em;
}
.display .line > span{
  display:inline-block;
  transition:transform 1.4s var(--ease);
  padding-bottom:.08em;margin-bottom:-.08em;
}
.display .line:nth-child(2) > span{transition-delay:.13s}
/* the entrance is opt-in: without JS the headline must simply be readable */
.entrance .display .line > span{transform:translateY(108%)}
.is-ready .display .line > span{transform:none}
/* the mask is only needed for the entrance */
.letters-free .display .line{overflow:visible}

/* the water headline replaces the DOM one only once it has painted a frame */
.display{transition:opacity .18s linear}
.water-on .display{opacity:0}
@media (prefers-reduced-motion:reduce){.water-on .display{opacity:1}}


.hero-foot{
  position:relative;z-index:1;
  display:flex;justify-content:space-between;align-items:flex-end;gap:20px;
  padding-bottom:clamp(20px,3.4vw,40px);
}
.hero-foot .label{color:rgba(255,255,255,.62)}
.badge{width:88px;height:88px;flex:none;color:#fff}
.badge svg{width:100%;height:100%;animation:spin 16s linear infinite}
.badge text{font-family:var(--font);font-size:10px;font-variation-settings:'wdth' 80,'wght' 500;letter-spacing:.16em;fill:currentColor}
@keyframes spin{to{transform:rotate(360deg)}}

/* ---------- Manifesto ---------- */
.manifesto{padding:var(--section) 0}
.manifesto h2{
  font-variation-settings:'wdth' 118,'wght' 300;
  font-size:clamp(1.9rem,5vw,4.4rem);
  line-height:1.06;
  letter-spacing:-.02em;
  max-width:20ch;
}

/* ---------- Section heads ---------- */
.section-head{display:flex;align-items:baseline;gap:20px;margin-bottom:clamp(32px,4vw,56px)}
.section-head h2{
  font-variation-settings:'wdth' 140,'wght' 400;
  font-size:clamp(1.6rem,3.6vw,2.9rem);
  line-height:1;
  letter-spacing:-.02em;
}

/* ---------- Projects: exactly four marks, always four on screen ---------- */
.projects{padding:0}
.projects-label{
  max-width:var(--max);margin:0 auto clamp(16px,2vw,24px);
  padding-left:var(--gutter);padding-right:var(--gutter);
}
.strip{
  position:relative;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  display:flex;align-items:center;
}
.strip-window{
  flex:1;min-width:0;overflow:hidden;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);
  mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);
}
.strip-track{display:flex;width:max-content;animation:slide 30s linear infinite}
.strip.paused .strip-track{animation-play-state:paused}
@keyframes slide{from{transform:translateX(0)}to{transform:translateX(-50%)}}
/* each mark takes a quarter of the viewport, so the four never crowd or repeat on screen */
.strip-item{
  width:var(--item-w,25vw);flex:none;
  display:flex;align-items:center;justify-content:center;gap:13px;
  padding:24px 16px;
  color:var(--fg);
  opacity:.55;
  transition:opacity var(--dur) var(--ease);
  white-space:nowrap;
}
.strip-item:hover,.strip-item:focus-visible{opacity:1}
.strip-item svg{width:28px;height:28px;flex:none}
.strip-item .name{
  font-size:clamp(1rem,1.5vw,1.25rem);
  font-variation-settings:'wdth' 115,'wght' 500;
  letter-spacing:-.01em;
}
.strip-pause{
  flex:none;width:42px;height:42px;margin:0 18px;
  border:1px solid var(--line);border-radius:50%;
  display:grid;place-items:center;color:var(--muted);
  transition:color .4s ease,border-color .4s ease;
}
.strip-pause:hover{color:var(--fg);border-color:var(--line-strong)}
.strip-pause svg{width:11px;height:11px;fill:currentColor}

/* ---------- Services: deliberately quieter, and placed after the work ---------- */
.services{padding:var(--section) 0}
.services .section-head h2{font-size:clamp(1.15rem,2vw,1.55rem);font-variation-settings:'wdth' 118,'wght' 400}
.services .section-head{margin-bottom:clamp(24px,3vw,36px)}
.grid-services{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(18px,2.4vw,30px) clamp(24px,3vw,40px)}
.service h3{
  font-size:15px;
  font-variation-settings:'wdth' 108,'wght' 500;
  line-height:1.25;
  padding-bottom:10px;
  border-bottom:1px solid var(--line);
  margin-bottom:10px;
}
.service p{color:var(--muted);font-size:14px;line-height:1.5;max-width:32ch}

/* ---------- Studio ---------- */
.studio{padding:var(--section) 0;border-top:1px solid var(--line)}
.studio .grid{display:grid;grid-template-columns:5fr 7fr;gap:clamp(28px,5vw,68px);align-items:end}
.studio img{width:100%;aspect-ratio:2/3;object-fit:cover;filter:grayscale(1) contrast(1.05)}
.studio h2{
  font-variation-settings:'wdth' 125,'wght' 400;
  font-size:clamp(1.6rem,3.2vw,2.6rem);
  letter-spacing:-.02em;line-height:1.1;margin-bottom:26px;
}
.studio p{color:var(--fg-2);max-width:52ch}
.studio p+p{margin-top:15px}
.studio .who{margin-top:36px}

/* ---------- Contact: the second shader ---------- */
.contact{
  position:relative;
  background:var(--band);color:#fff;
  padding:var(--section) 0;
  overflow:hidden;isolation:isolate;
}
.contact .shader::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(0,0,0,var(--band-veil-a)),rgba(0,0,0,var(--band-veil-b)));
  pointer-events:none;
}
.contact .wrap{position:relative;z-index:1}
.contact h2{
  font-variation-settings:'wdth' 150,'wght' 400;
  font-size:clamp(2.3rem,6.4vw,5.4rem);
  line-height:.92;
  letter-spacing:-.03em;
  padding-bottom:.09em;
}
.contact p{color:rgba(255,255,255,.72);max-width:46ch;margin-top:26px}
.pills{display:flex;flex-wrap:wrap;gap:12px;margin-top:44px}
.pill{
  display:inline-flex;align-items:center;
  padding:12px 33px;
  border:1px solid rgba(255,255,255,.32);
  border-radius:var(--pill);
  font-size:15px;line-height:1.15;color:#fff;
  font-variation-settings:'wdth' 105,'wght' 500;
  transition:border-color var(--dur) var(--ease),font-variation-settings var(--dur) var(--ease),transform .2s ease;
  white-space:nowrap;
}
.pill:hover,.pill:focus-visible{border-color:rgba(255,255,255,.92);font-variation-settings:'wdth' 118,'wght' 500}
.pill:active{transform:scale(.98)}
.pill.icon{width:60px;height:60px;padding:0;justify-content:center;border-radius:50%}
.pill.icon svg{width:23px;height:23px}
.pill.icon:hover,.pill.icon:focus-visible{border-color:rgba(255,255,255,.92);transform:translateY(-2px)}
.pill.light{border-color:var(--line-strong);color:var(--fg)}
.pill.light:hover{border-color:var(--fg)}

/* ---------- Footer ---------- */
.site-footer{font-size:11px;line-height:1.4;color:var(--muted);padding:36px 0 44px}
.site-footer .row{display:flex;flex-wrap:wrap;gap:8px 28px;justify-content:space-between;align-items:center}
.site-footer nav{display:flex;gap:24px}
.site-footer a:hover{color:var(--fg)}
.site-footer .head-mid{display:none}

/* ---------- Legal pages ---------- */
.legal{padding:calc(64px + var(--section)) 0 var(--section)}
.legal h1{font-variation-settings:'wdth' 140,'wght' 300;font-size:clamp(2rem,5.4vw,4.6rem);line-height:1.02;letter-spacing:-.025em;margin-bottom:56px}
.legal h2{font-size:17px;font-variation-settings:'wdth' 112,'wght' 500;margin:44px 0 10px}
.legal p,.legal address{font-style:normal;color:var(--fg-2);max-width:68ch}
.legal p+p{margin-top:11px}
.legal .muted{color:var(--muted);font-size:15px}
.legal a{border-bottom:1px solid var(--line)}
.legal .note{margin-bottom:36px}

/* ---------- Reveals ---------- */
.reveal{opacity:0;transform:translateY(26px);transition:opacity var(--dur-l) var(--ease),transform var(--dur-l) var(--ease)}
.reveal.in{opacity:1;transform:none}
.stagger > *{opacity:0;transform:translateY(22px);transition:opacity 1s var(--ease),transform 1s var(--ease)}
.stagger.in > *{opacity:1;transform:none}
.stagger.in > *:nth-child(2){transition-delay:.05s}
.stagger.in > *:nth-child(3){transition-delay:.1s}
.stagger.in > *:nth-child(4){transition-delay:.15s}
.stagger.in > *:nth-child(5){transition-delay:.2s}
.stagger.in > *:nth-child(6){transition-delay:.25s}

/* ---------- Responsive ---------- */
@media (max-width:900px){
  .grid-services{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:767px){
  .hero{padding-top:calc(58px + 2vh)}
  .site-header{height:58px;grid-template-columns:1fr auto;gap:12px}
  .site-header .head-mid{display:none}
  .menu{gap:14px;font-size:10px;letter-spacing:.1em}
  /* two links carry the whole page on a phone; the other sections are one scroll away */
  .menu a[href="#services"],.menu a[href="#studio"]{display:none}
  .badge{width:64px;height:64px}
  .grid-services{grid-template-columns:1fr;gap:20px}
  .strip-item{padding:20px 14px;gap:11px}
  .strip-item svg{width:25px;height:25px}
  .pill.icon{width:54px;height:54px}
  .studio .grid{grid-template-columns:1fr}
  .studio img{max-width:300px}
  .site-footer .row{flex-direction:column;align-items:flex-start}
  .site-footer .head-mid{display:flex;margin-top:10px;color:var(--muted)}
  .hero-foot{align-items:center}
}

@media (prefers-reduced-motion:reduce){
  .display .line > span{transform:none;transition:none}
  .reveal,.stagger > *{opacity:1;transform:none;transition:none}
  .badge svg{animation:none}
  .shader.fallback{animation:none}
  .strip-track{animation:none}
  .strip-window{overflow-x:auto}
  .pill,.menu a::after,.brand,.strip-item{transition:none}
}
