/* ==========================================================================
   WE-ü creative studio
   Palette: Nebel #EBEBEB · Russ #211F1C · Nachtblau #1F3048 · Eisblau #8DAFC2 · heat accent Orange #FC5424
   ========================================================================== */

:root {
  --nebel: #EBEBEB;
  --blau: #1F3048;
  --hellblau: #8DAFC2;
  --orange: #FC5424;
  --russ: #211F1C;
  --russ-soft: #2B2925;
  --nebel-dim: rgba(235, 235, 235, .62);
  --russ-dim: rgba(33, 31, 28, .58);

  /* One family, ZT Hakimi: hierarchy comes from weight + size */
  --display: "ZT Hakimi", "Helvetica Neue", Arial, sans-serif;
  --text: "ZT Hakimi", "Helvetica Neue", Arial, sans-serif;
  --w-display: 900;   /* Black: section titles, case titles, mail */
  --w-label: 800;     /* Extra Bold: floating titles on the stage */
  --w-heading: 700;   /* Bold: project titles */
  --w-ui: 500;        /* Medium: navigation, meta, buttons */
  --w-body: 400;      /* Regular: running text */
  --w-light: 300;     /* Light: statements, leads, captions */

  --gutter: clamp(16px, 2.4vw, 40px);
  --col-gap: clamp(12px, 1.6vw, 28px);

  --fs-small: 0.8125rem;   /* 13 */
  --fs-body: 1.0625rem;    /* 17 */
  --fs-lead: clamp(1.2rem, 1.5vw, 1.45rem);
  --fs-h3: clamp(1.25rem, 1.6vw, 1.6rem);
  --fs-label: clamp(1.5rem, 2.9vw, 3rem);
  --fs-title: clamp(3.25rem, 9.6vw, 10.5rem);
  --fs-statement: clamp(1.9rem, 4vw, 4.25rem);

  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--nebel);
  color: var(--russ);
  font-family: var(--text);
  font-size: var(--fs-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; border-radius: 2px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* letters split for the bubble lens */
/* extra room above/below so accents (Ü) stay inside the box the heat gradient is clipped to; margins cancel it out in layout */
.ch { display: inline-block; padding-block: .3em; margin-block: -.3em; transform-origin: 50% 62%; will-change: transform; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; align-content: center; gap: 18px;
  background: var(--nebel);
}
.loader { pointer-events: none; overflow: hidden; }
.loader__mark { display: block; height: clamp(110px, 15vw, 200px); width: auto; color: var(--russ); overflow: visible; }

/* ---------- Bubble lens ---------- */
.bubble {
  position: fixed; left: 0; top: 0; z-index: 90;
  width: 92px; height: 92px; margin: -46px 0 0 -46px;
  border-radius: 50%;
  pointer-events: none;
  display: grid; place-items: center;
  isolation: isolate;
  color: var(--nebel);
  transform: scale(0); opacity: 0;
}
/* liquid glass lens, same recipe as the pill */
.bubble__glass {
  position: absolute; inset: 0; z-index: -1; border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(10px) saturate(1.6);
  backdrop-filter: blur(10px) saturate(1.6);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, .75),
    inset 0 -1px 1px rgba(255, 255, 255, .2),
    inset 0 0 0 1px rgba(255, 255, 255, .25),
    inset 0 0 22px rgba(255, 255, 255, .12),
    0 12px 30px rgba(0, 0, 0, .22);
}
.bubble__glass::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(70% 50% at 35% 22%, rgba(255,255,255,.38), rgba(255,255,255,0) 70%);
}
.liquid .bubble__glass {
  -webkit-backdrop-filter: url(#liquid-eye) blur(1px) saturate(1.7) brightness(1.06);
  backdrop-filter: url(#liquid-eye) blur(1px) saturate(1.7) brightness(1.06);
}
.bubble__eye {
  width: 40px; height: auto; overflow: visible;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35));
}
@media (hover: none) { .bubble { display: none; } }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 20px var(--gutter);
  font-size: var(--fs-small);
  color: var(--russ);
  transition: color .5s var(--ease);
}
.site-header[data-tone="light"] { color: var(--nebel); }
.site-header__brand { display: block; justify-self: start; line-height: 0; position: relative; z-index: 2; }
.pill { will-change: transform, opacity; }
.site-header__logo { display: block; height: clamp(40px, 4vw, 56px); width: auto; overflow: visible; }
.site-header__clock { justify-self: end; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .site-header { grid-template-columns: 1fr; justify-items: center; padding-top: 12px; }
  .site-header__brand, .site-header__clock { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: fixed; inset: 0; z-index: 1;
  height: 100svh;
  overflow: hidden;
}
.hero__mark {
  position: absolute; left: 50%; top: 50%;
  width: min(100vw, 110svh); aspect-ratio: 840 / 720;
  transform: translate(-50%, -50%);
}
@media (orientation: portrait) { .hero__mark { width: min(128vw, 110svh); } }
.hero__canvas, .hero__fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__fallback { object-fit: contain; opacity: 0; }
.no-webgl .hero__fallback { opacity: 1; }

.hero__index {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(10px, 1.4vw, 16px);
  pointer-events: none;
}
.float-label {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center;
  padding: .3em .78em .34em;
  border-radius: 999px;
  font-family: var(--display);
  font-size: var(--fs-label);
  line-height: 1; letter-spacing: -.005em;
  white-space: nowrap;
  pointer-events: auto;
}
.float-label__glass {
  position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  background: rgba(235, 235, 235, .34);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  backdrop-filter: blur(14px) saturate(1.5);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, .75),
    inset 0 -1px 1px rgba(255, 255, 255, .2),
    inset 0 0 0 1px rgba(255, 255, 255, .26),
    inset 0 0 22px rgba(255, 255, 255, .12),
    0 14px 36px rgba(33, 31, 28, .16);
}
.float-label__glass::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(170deg, rgba(255,255,255,.34) 0%, rgba(255,255,255,0) 44%),
              radial-gradient(120% 140% at 50% 120%, rgba(255,255,255,.16), rgba(255,255,255,0) 60%);
  pointer-events: none;
}
.float-label sup {
  font-family: var(--text); font-size: .3em; font-weight: 500;
  vertical-align: top; margin-left: .2em; position: relative; top: .25em;
}

.hero__foot {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 24px;
  display: flex; justify-content: space-between; align-items: end; gap: 24px;
  font-size: var(--fs-small);
}
.hero__lead { max-width: 30ch; }
.hero__hint { color: var(--russ-dim); }

@media (max-width: 760px) {
  .float-label { font-size: 1.75rem; }
}

/* ---------- Word reveal (pinned mask) ---------- */
.reveal { position: relative; }
.reveal__stage {
  position: relative; height: 100svh; overflow: hidden;
  background: var(--to, var(--russ));
}
.reveal__svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.reveal__cover { fill: var(--from, var(--nebel)); }
.reveal__word { font-family: var(--display); font-weight: 700; }

/* ---------- Shared section bits ---------- */
.section-head {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--col-gap);
  align-items: end;
  padding: clamp(96px, 12vw, 180px) var(--gutter) clamp(56px, 7vw, 110px);
}
.section-title {
  grid-column: 1 / span 8;
  font-family: var(--display); font-weight: 700;
  font-size: var(--fs-title); line-height: .82; letter-spacing: -.012em;
  white-space: nowrap;
}
.section-intro {
  grid-column: 9 / span 4;
  font-size: var(--fs-lead); line-height: 1.35;
  max-width: 34ch;
}
@media (max-width: 900px) {
  .section-title, .section-intro { grid-column: 1 / -1; }
  .section-intro { margin-top: 24px; }
}

/* ---------- Projekte (Russ) ---------- */
.work { background: var(--russ); color: var(--nebel); padding-bottom: clamp(80px, 12vw, 200px); }
.work .section-intro { color: var(--nebel-dim); }

.work__list {
  display: grid; grid-template-columns: repeat(12, 1fr);
  column-gap: var(--col-gap); row-gap: clamp(72px, 10vw, 160px);
  padding: 0 var(--gutter);
}
.project--a { grid-column: 1 / span 7; }
.project--b { grid-column: 9 / span 4; margin-top: 40%; }
.project--c { grid-column: 3 / span 5; }
.project--d { grid-column: 8 / span 5; margin-top: 24%; }
@media (max-width: 900px) {
  .project--a, .project--b, .project--c, .project--d { grid-column: 1 / -1; margin-top: 0; }
}

.project__media {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--russ-soft);
  clip-path: inset(0 0 0 0);
}
.project--b .project__media, .project--c .project__media { aspect-ratio: 4 / 5; }
.project__meta {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 16px;
  padding-top: 16px; font-size: var(--fs-small);
}
.project__title { font-family: var(--display); font-size: clamp(1.5rem, 2vw, 2rem); line-height: 1.05; font-weight: 700; }
.project__info { grid-column: 1; color: var(--nebel-dim); }
.project__year { grid-column: 2; grid-row: 1; align-self: center; color: var(--nebel-dim); font-variant-numeric: tabular-nums; }

.art { position: absolute; inset: 0; transition: transform 1.2s var(--ease); }
.project__link:hover .art, .free-card__link:hover .art { transform: scale(1.035); }

/* ---------- Placeholder artworks (bis echte Bilder folgen) ---------- */
.art--lumen { background: #2E2B27; }
.art--lumen .art__l {
  position: absolute; left: 5%; bottom: -12%;
  font-family: var(--display); font-size: 110cqh; line-height: .8; color: var(--nebel);
}
.art--lumen { container-type: size; }
.art--lumen .art__dot {
  position: absolute; right: 14%; top: 18%; width: 24%; aspect-ratio: 1; border-radius: 50%;
  background: var(--blau);
}
.art--lumen .art__caption, .art--raemi .art__caption, .art--honig .art__caption {
  position: absolute; right: 6%; bottom: 7%; font-size: 11px; line-height: 1.35; text-align: right; color: var(--nebel-dim);
}

.art--seefeld {
  background: var(--blau); container-type: size;
  display: flex; flex-direction: column; justify-content: center; padding: 0 8%;
}
.art--seefeld span {
  font-family: var(--display); font-size: 21cqw; line-height: .86; color: transparent;
  -webkit-text-stroke: 1px rgba(235,235,235,.7);
}
.art--seefeld span:nth-child(3) { color: var(--nebel); -webkit-text-stroke: 0; }

.art--nord { background: var(--nebel); color: var(--russ); container-type: size; }
.art--nord .art__big { position: absolute; left: 6%; top: 4%; font-family: var(--display); font-size: 46cqw; line-height: .8; }
.art--nord .art__big--alt { top: auto; bottom: 4%; left: auto; right: 6%; color: var(--orange); }
.art--nord .art__small { position: absolute; left: 7%; bottom: 7%; font-size: 11px; line-height: 1.35; }

.art--raemi { background: #F3F3F1; }
.art--raemi .art__grid {
  position: absolute; inset: 8%;
  background-image: linear-gradient(rgba(33,31,28,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(33,31,28,.14) 1px, transparent 1px);
  background-size: calc(100% / 12) calc(100% / 8);
}
.art--raemi .art__block { position: absolute; left: 8%; top: 8%; width: 42%; height: 62%; background: var(--russ); }
.art--raemi .art__caption { color: var(--russ-dim); }

.art--foehn { background: var(--russ); container-type: size; overflow: hidden; }
.art--foehn .art__heat {
  position: absolute; inset: -20%;
  background: radial-gradient(circle at 40% 60%, #FC5424 0%, #E9573F 14%, #C3CFC6 30%, #6F9AAE 44%, #4F6E8E 58%, transparent 74%);
  filter: blur(18px);
}
.art--foehn .art__word { position: absolute; left: 6%; bottom: 2%; font-family: var(--display); font-size: 40cqw; line-height: .9; color: var(--nebel); }

.art--24h { background: var(--nebel); container-type: size; }
.art--24h .art__bars {
  position: absolute; left: 8%; right: 8%; top: 10%; height: 58%;
  background: repeating-linear-gradient(90deg, var(--russ) 0 calc(100% / 24 - 3px), transparent calc(100% / 24 - 3px) calc(100% / 24));
  -webkit-mask: linear-gradient(180deg, #000 0 30%, rgba(0,0,0,.25) 100%);
  mask: linear-gradient(180deg, #000 0 30%, rgba(0,0,0,.25) 100%);
}
.art--24h .art__word { position: absolute; left: 7%; bottom: 4%; font-family: var(--display); font-size: 28cqw; line-height: .9; color: var(--orange); }

.art--honig { background: #E9E2D2; }
.art--honig .art__ring {
  position: absolute; left: 50%; top: 44%; aspect-ratio: 1; border-radius: 50%;
  translate: -50% -50%; border: 1px solid var(--russ);
}
.art--honig .art__ring:nth-child(1) { width: 64%; }
.art--honig .art__ring:nth-child(2) { width: 44%; background: #F2B53A; border: 0; }
.art--honig .art__ring:nth-child(3) { width: 18%; background: var(--russ); border: 0; }
.art--honig .art__caption { color: var(--russ); }

.art--stahl {
  background: var(--russ); container-type: size;
  display: flex; align-items: center; justify-content: space-between; padding: 0 6%;
}
.art--stahl span {
  font-family: var(--display); font-size: 34cqh; line-height: 1; color: var(--nebel);
  transform: scaleX(1.9); display: inline-block;
}

/* ---------- Freie Arbeiten (Nachtblau) ---------- */
.free { background: var(--blau); color: var(--nebel); overflow: hidden; }
.free__pin { height: 100svh; display: flex; align-items: center; }
.free__track {
  display: flex; align-items: center; gap: clamp(24px, 4vw, 72px);
  padding: 0 var(--gutter);
  will-change: transform;
}
.free__intro { flex: 0 0 auto; width: min(64vw, 900px); }
.free__intro .section-title { font-size: clamp(4rem, 10vw, 11rem); white-space: normal; }
.free__intro .section-intro { margin-top: 32px; color: rgba(235,235,235,.78); }

.free-card { flex: 0 0 auto; width: clamp(280px, 30vw, 460px); }
.free-card__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; clip-path: inset(0); }
.free-card__title { font-family: var(--display); font-size: clamp(1.5rem, 2vw, 2rem); line-height: 1.05; margin-top: 16px; }
.free-card__info { font-size: var(--fs-small); color: rgba(235,235,235,.78); margin-top: 2px; }

@media (max-width: 900px) {
  .free__pin { height: auto; display: block; padding: 96px 0 96px; }
  .free__track { flex-direction: column; align-items: stretch; gap: 64px; }
  .free__intro, .free-card { width: 100%; }
}

/* ---------- Über mich (Nebel) ---------- */
.about { background: var(--nebel); padding-bottom: clamp(80px, 10vw, 160px); }
.about .section-head { padding-bottom: clamp(40px, 5vw, 72px); }
.about__statement {
  padding: 0 var(--gutter);
  font-family: var(--display); font-size: var(--fs-statement); line-height: 1.02;
  max-width: 22ch;
}
.about__statement .w { opacity: .14; }

.about__grid {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--col-gap);
  padding: clamp(80px, 10vw, 160px) var(--gutter) 0;
}
.about__portrait { grid-column: 1 / span 4; }
.about__portrait-frame {
  aspect-ratio: 2 / 3; background: var(--russ); overflow: hidden;
  clip-path: inset(0);
}
.about__portrait-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.about__portrait figcaption { font-size: var(--fs-small); color: var(--russ-dim); margin-top: 12px; }
.about__text { grid-column: 6 / span 4; font-size: var(--fs-lead); line-height: 1.4; }
.about__text p + p { margin-top: 1em; }
.about__services { grid-column: 11 / span 2; font-size: var(--fs-small); }
.about__services h3 { font-weight: 500; color: var(--russ-dim); margin-bottom: 12px; font-size: var(--fs-small); }
.about__services li { padding: 12px 0 16px; border-top: 1px solid rgba(33,31,28,.14); }
.about__services strong { display: block; font-size: var(--fs-lead); font-weight: var(--w-heading); letter-spacing: -.01em; line-height: 1.2; }
.about__services span { display: block; margin-top: 4px; line-height: 1.35; }
@media (max-width: 900px) {
  .about__portrait { grid-column: 1 / span 8; }
  .about__text { grid-column: 1 / -1; margin-top: 40px; }
  .about__services { grid-column: 1 / -1; margin-top: 40px; }
}

/* ---------- Kontakt ---------- */
.contact {
  background: var(--nebel);
  padding: clamp(80px, 10vw, 160px) var(--gutter) 28px;
  border-top: 1px solid rgba(33,31,28,.14);
}
.contact__lead { font-size: var(--fs-lead); color: var(--russ-dim); }
.contact__mail {
  display: inline-block; margin-top: 8px;
  font-family: var(--display); font-size: clamp(3rem, 10.5vw, 12rem); line-height: .9;
  letter-spacing: -.01em;
}
.contact__row {
  display: grid; grid-template-columns: 1fr auto; gap: 24px;
  margin-top: clamp(72px, 9vw, 140px); font-size: var(--fs-small); align-items: end;
}
.contact__links { display: flex; gap: 20px; font-weight: 500; }
@media (max-width: 600px) {
  .contact__mail { font-size: 11.6vw; white-space: nowrap; }
  .contact__row { grid-template-columns: 1fr; gap: 10px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .art { transition: none; }
  .about__statement .w { opacity: 1; }
}

/* floating labels: inner span carries the gooey reveal + drift */
.float-label__in { display: inline-block; will-change: transform; }

/* ---------- Heat-map glow hover ---------- */
.heat-on .ch {
  background-image: radial-gradient(circle var(--r, 0px) at var(--hx, 50%) var(--hy, 50%),
    #FC5424 0%, #E9573F 16%, #C3CFC6 34%, #6F9AAE 54%, #4F6E8E 74%, var(--base) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 calc(var(--g, 0) * .16em) rgba(252, 84, 36, calc(var(--g, 0) * .5)));
}

.reveal + section { margin-top: -1px; }


/* ==========================================================================
   Stage + panels: the homepage stays put, sections grow out of their titles
   ========================================================================== */
.scroll-space { height: 100svh; }
.clip-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.clip-word { font-family: var(--display); font-weight: 700; }

.panel {
  position: fixed; inset: 0; z-index: 5;
  overflow: hidden;
  visibility: hidden;
  background: var(--panel-bg, var(--russ));
  color: var(--nebel);
}
.panel[data-panel="0"] { --panel-bg: var(--russ); }
.panel[data-panel="1"], .panel[data-panel="3"] { --panel-bg: var(--blau); }
.panel[data-panel="2"] { --panel-bg: var(--hellblau); color: var(--russ); }
.panel__content { position: absolute; top: 0; left: 0; right: 0; will-change: transform, opacity; }

.work, .free, .about, .contact { background: transparent; }

/* Über mich on Russ */
.about { color: var(--nebel); }
.about__portrait-frame { background: var(--russ-soft); }
.about__portrait figcaption, .about__services h3 { color: var(--nebel-dim); }
.about__services li { border-top-color: rgba(235,235,235,.16); }

/* Kontakt on Nachtblau */
.contact {
  min-height: 100svh; border-top: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--nebel);
}
.contact__lead { color: rgba(235,235,235,.78); }

.curtain {
  position: fixed; inset: 0; z-index: 95;
  background: var(--nebel); opacity: 0; pointer-events: none;
}

/* ---------- Liquid glass pill ---------- */
.site-header { pointer-events: none; }
.site-header > * { pointer-events: auto; }

.pill {
  position: relative; isolation: isolate;
  display: flex; align-items: center; gap: 2px;
  padding: 5px;
  border-radius: 999px;
  font-size: var(--fs-small);
}
.pill__glass {
  position: absolute; inset: 0; z-index: -2;
  border-radius: inherit;
  background: rgba(255, 255, 255, .10);
  -webkit-backdrop-filter: blur(12px) saturate(1.6);
  backdrop-filter: blur(12px) saturate(1.6);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, .7),
    inset 0 -1px 1px rgba(255, 255, 255, .18),
    inset 0 0 0 1px rgba(255, 255, 255, .22),
    inset 0 0 18px rgba(255, 255, 255, .10),
    0 10px 30px rgba(33, 31, 28, .14);
}
.pill__glass::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(170deg, rgba(255,255,255,.32) 0%, rgba(255,255,255,0) 42%),
              radial-gradient(120% 140% at 50% 120%, rgba(255,255,255,.14), rgba(255,255,255,0) 60%);
  pointer-events: none;
}
.liquid .pill__glass {
  -webkit-backdrop-filter: url(#liquid) blur(2px) saturate(1.7) brightness(1.05);
  backdrop-filter: url(#liquid) blur(2px) saturate(1.7) brightness(1.05);
}
.pill__active {
  position: absolute; top: 5px; bottom: 5px; left: 0; width: 0; z-index: -1;
  border-radius: 999px;
  background: rgba(33, 31, 28, .08);
  box-shadow: inset 0 0 0 1px rgba(33, 31, 28, .06);
  opacity: 0;
}
.site-header[data-tone="light"] .pill__active {
  background: rgba(255, 255, 255, .16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
}
.pill__mark {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
}
.pill__mark svg { height: 17px; width: auto; display: block; }
.pill__link { padding: 8px 14px; border-radius: 999px; font-weight: 500; white-space: nowrap; }

@media (max-width: 760px) {
  .pill { font-size: 11px; }
  .pill__link { padding: 8px 7px; }
  .pill__mark { width: 30px; height: 30px; }
  .pill__mark svg { height: 15px; }
}

/* Über mich on Eisblau carries dark type */
.about { color: var(--russ); }
.about__portrait-frame { background: var(--russ); }
.about__portrait figcaption, .about__services h3 { color: var(--russ-dim); }
.about__services li { border-top-color: rgba(33,31,28,.18); }
.art--foehn .art__heat { filter: blur(18px) saturate(1.1); }


/* ==========================================================================
   Case view — each project opens in its client's colours
   ========================================================================== */
.art--photo { width: 100%; height: 100%; object-fit: cover; display: block; }

.case {
  --case-bg: #3F0D12; --case-fg: #F1F0CC; --case-dim: rgba(241, 240, 204, .64); --case-band: #817F4B;
  position: fixed; inset: 0; z-index: 40;
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--case-bg); color: var(--case-fg);
  -webkit-overflow-scrolling: touch;
}
.case[hidden] { display: none; }
.case__close {
  position: fixed; right: var(--gutter); bottom: 24px; z-index: 2;
  font: 500 var(--fs-small)/1 var(--text); color: var(--case-fg);
  padding: 12px 18px; border-radius: 999px; cursor: pointer;
  background: rgba(241, 240, 204, .08);
  border: 1px solid rgba(241, 240, 204, .28);
  -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4);
}
.case__inner { padding: clamp(110px, 12vw, 180px) 0 0; }
.case__head {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--col-gap);
  padding: 0 var(--gutter) clamp(56px, 7vw, 110px);
}
.case__kicker { grid-column: 1 / -1; font-size: var(--fs-small); color: var(--case-dim); margin-bottom: 12px; }
.case__title {
  grid-column: 1 / -1;
  font-family: var(--display); font-weight: 700;
  font-size: var(--fs-title); line-height: .82; letter-spacing: -.012em;
}
.case__lead { grid-column: 1 / span 6; margin-top: clamp(28px, 3vw, 48px); font-size: var(--fs-lead); line-height: 1.38; max-width: 40ch; }
.case__facts { grid-column: 8 / span 5; margin: clamp(28px, 3vw, 48px) 0 0; font-size: var(--fs-small); }
.case__facts div { display: grid; grid-template-columns: 9em 1fr; gap: 16px; padding: 10px 0; border-top: 1px solid rgba(241, 240, 204, .18); }
.case__facts dt { color: var(--case-dim); }
.case__facts dd { margin: 0; }

.case__img { margin: 0; overflow: hidden; }
.case__img img { display: block; width: 100%; height: auto; }
.case__img figcaption { font-size: var(--fs-small); color: var(--case-dim); padding: 12px var(--gutter) 0; }
.case__img--full { padding: 0 var(--gutter); margin-bottom: clamp(64px, 8vw, 140px); }
.case__img--full figcaption { padding-left: 0; }

.case__palette {
  display: grid; grid-template-columns: repeat(5, 1fr);
  margin: 0 var(--gutter) clamp(64px, 8vw, 140px);
}
.case__palette div {
  background: var(--c); color: var(--case-fg);
  aspect-ratio: 3 / 4; padding: 14px;
  display: flex; flex-direction: column; justify-content: space-between;
  font-size: var(--fs-small);
  box-shadow: inset 0 0 0 1px rgba(241, 240, 204, .12);
}
.case__palette div.is-light { color: #3F0D12; }
.case__palette span:last-child { font-variant-numeric: tabular-nums; opacity: .8; }

.case__row {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--col-gap); align-items: end;
  padding: 0 var(--gutter); margin-bottom: clamp(64px, 8vw, 140px);
}
.case__img--wide { grid-column: 1 / span 8; }
.case__img--wide figcaption { padding-left: 0; }
.case__note { grid-column: 10 / span 3; font-size: var(--fs-lead); line-height: 1.38; }

/* Officina Cahé: Peperoncino, Giallo Catanzaro, Terra, Crema */
.case--officina { --case-bg: #6E1C14; --case-fg: #F1EDDA; --case-dim: rgba(241, 237, 218, .64); --case-band: #F2DA2C; }
.case--officina .case__palette div.is-light { color: #6E1C14; }
.case--officina .case__close { background: rgba(110, 28, 20, .86); }
.case--officina .case__band .case__img figcaption { color: rgba(110, 28, 20, .78); }
.case__palette--4 { grid-template-columns: repeat(4, 1fr); }
.case__brand {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--col-gap);
  padding: 0 var(--gutter); margin-bottom: clamp(64px, 8vw, 140px);
}
.case__brand figcaption { padding-left: 0; }
.case__mark, .case__wordmark { aspect-ratio: 1; display: grid; place-items: center; }
.case__mark { background: #D7261E; }
.case__mark img { width: 56%; height: auto; }
.case__wordmark { background: #F1EDDA; color: #D7261E; }
.case__wordmark svg { width: 74%; height: auto; }
.case__row--story .case__note { grid-column: 1 / span 9; font-size: clamp(1.45rem, 2.6vw, 2.75rem); line-height: 1.16; letter-spacing: -.02em; }
.case__pair {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--col-gap);
  padding: 0 var(--gutter); margin-bottom: clamp(64px, 8vw, 140px);
}
.case__pair figcaption { padding-left: 0; }
@media (max-width: 760px) {
  .case__brand, .case__pair { grid-template-columns: 1fr; }
  .case__palette.case__palette--4 { grid-template-columns: repeat(2, 1fr); }
  .case__row--story .case__note { grid-column: 1 / -1; margin-top: 0; }
}

.case__band { background: var(--case-band); padding: clamp(64px, 8vw, 140px) 0 1px; }
.case__band .case__img figcaption { color: rgba(241, 240, 204, .82); }

/* Website excerpts: browser and phone frames */
.case__web { padding: clamp(80px, 10vw, 160px) 0 0; }
.case__web-head {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px;
  padding: 0 var(--gutter); margin-bottom: clamp(40px, 5vw, 80px);
}
.case__web-title { grid-column: 1 / span 7; font-size: var(--fs-statement); line-height: 1.02; letter-spacing: -.03em; font-weight: var(--w-heading); }
.case__web-text { grid-column: 9 / span 4; align-self: end; font-size: var(--fs-lead); line-height: 1.38; font-weight: var(--w-light); }
.case__web-disclaimer { grid-column: 9 / span 4; margin-top: 20px; font-size: var(--fs-small); line-height: 1.45; color: var(--case-dim); font-weight: var(--w-light); font-style: italic; }
.case__shot { padding: 0 var(--gutter); margin-bottom: clamp(24px, 3vw, 40px); overflow: visible; }
.case__phone-fig { overflow: visible; }
.case__shot figcaption { padding-left: 0; }
.case__shot--lead { margin-bottom: clamp(48px, 6vw, 96px); }
.case__browser {
  border-radius: clamp(8px, 1vw, 14px); overflow: hidden;
  background: #2A080C;
  box-shadow: 0 0 0 1px rgba(241, 240, 204, .12), 0 30px 80px rgba(0, 0, 0, .35);
}
.case__bar {
  display: flex; align-items: center; gap: 6px;
  height: clamp(26px, 2.4vw, 36px); padding: 0 14px;
  font-size: 11px; color: var(--case-dim); letter-spacing: .08em;
}
.case__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(241, 240, 204, .22); }
.case__bar span { margin: 0 auto; transform: translateX(-24px); }
.case__web-grid {
  display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(16px, 2vw, 32px);
  padding: 0 var(--gutter); margin-bottom: clamp(48px, 6vw, 96px);
}
.case__web-grid .case__shot { padding: 0; }
.case__phones {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: end;
  padding: 0 var(--gutter); margin-bottom: clamp(64px, 8vw, 140px);
}
.case__phone-fig { grid-column: span 3; }
.case__phone-fig:nth-child(2) { margin-bottom: clamp(40px, 6vw, 96px); }
.case__phone-fig figcaption { padding-left: 0; }
.case__phone {
  border-radius: clamp(22px, 2.6vw, 40px); overflow: hidden;
  padding: clamp(5px, .5vw, 8px); background: #2A080C;
  box-shadow: 0 0 0 1px rgba(241, 240, 204, .14), 0 30px 80px rgba(0, 0, 0, .35);
}
.case__phone img { border-radius: clamp(17px, 2.1vw, 32px); }
.case__phones .case__note { grid-column: 9 / span 4; align-self: center; }
@media (max-width: 760px) {
  .case__web-title, .case__web-text { grid-column: 1 / -1; }
  .case__web-text { margin-top: 20px; }
  .case__web-disclaimer { grid-column: 1 / -1; }
  .case__web-grid { grid-template-columns: 1fr; }
  .case__phone-fig { grid-column: span 6; }
  .case__phones .case__note { grid-column: 1 / -1; margin-top: 32px; }
}

.case__foot { padding: clamp(80px, 10vw, 160px) var(--gutter) clamp(96px, 10vw, 140px); }
.case__back {
  font-family: var(--display); font-weight: 700; font-size: clamp(2.5rem, 7vw, 7rem); line-height: .9;
  color: var(--case-fg); background: none; border: 0; padding: 0; cursor: pointer; text-align: left;
}

@media (max-width: 900px) {
  .case__lead, .case__facts, .case__img--wide, .case__note { grid-column: 1 / -1; }
  .case__note { margin-top: 24px; }
  .case__palette { grid-template-columns: repeat(3, 1fr); }
  .case__palette div { aspect-ratio: 1; }
  .case__facts div { grid-template-columns: 7em 1fr; }
}


/* ==========================================================================
   Typography — ZT Hakimi
   Black for titles, Extra Bold for the stage, Bold for project names,
   Medium for UI, Regular for text, Light for statements and captions.
   ========================================================================== */
body { font-weight: var(--w-body); font-kerning: normal; }

.section-title, .case__title {
  font-weight: var(--w-display);
  font-size: var(--fs-title); line-height: .86; letter-spacing: -.035em;
}
.free__intro .section-title { font-size: clamp(3.25rem, 8vw, 9rem); line-height: .88; }
.section-title { white-space: normal; }

.float-label { font-weight: var(--w-label); letter-spacing: -.02em; }
.float-label sup { font-weight: var(--w-ui); letter-spacing: 0; }

.project__title, .free-card__title {
  font-weight: var(--w-heading); font-size: var(--fs-h3); line-height: 1.1; letter-spacing: -.015em;
}
.project__info, .free-card__info { font-weight: var(--w-body); }
.project__year { font-weight: var(--w-ui); }

.section-intro, .case__lead, .about__text { font-weight: var(--w-body); letter-spacing: -.005em; }
.about__statement { font-weight: var(--w-light); line-height: 1.08; letter-spacing: -.025em; max-width: 24ch; }
.case__note, .contact__lead { font-weight: var(--w-light); letter-spacing: -.01em; }

.contact__mail, .case__back { font-weight: var(--w-display); letter-spacing: -.035em; }

.site-header, .pill, .pill__link, .contact__links, .about__services h3,
.case__kicker, .case__close, .case__palette, .case__facts dd, .hero__lead { font-weight: var(--w-ui); }
.site-header__clock { font-variant-numeric: tabular-nums; }
.hero__hint, .case__facts dt { font-weight: var(--w-body); }

figcaption, .case__img figcaption { font-weight: var(--w-light); font-style: italic; letter-spacing: .005em; }

/* placeholder artworks keep their poster weight */
.art__l, .art--seefeld span, .art__big, .art--foehn .art__word, .art--24h .art__word, .art--stahl span {
  font-weight: var(--w-display); letter-spacing: -.03em;
}
