/* ============================================================
   TWHY — Website 2026 · VARIANTE B «Index»
   Referenz: roundtwoagency.com (Framer, Switzer + Fragment Mono).
   Übersetzt auf TWHY: Weiss, kleine Grundschrift, Helvetica Neue Regular
   statt Bold-Kapitälchen, Mono-Dateinamen, Bildraster mit Dichte-Schalter,
   Case-Info per «+». Ruhiger, sachlicher, Design-Strategie statt Underground.
   ============================================================ */

:root {
  --bg: #ffffff;
  --ink: #0a0a0a;
  --mid: #6e6e6e;
  --soft: #b4b4b4;
  --line: #e6e6e6;
  --ph: #f2f2f2;
  --ph-line: #cfcfcf;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --g: 14px;                 /* Raster-Abstand */
  --pad: clamp(16px, 2vw, 28px);
  --nav-h: 52px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { font-family: var(--sans); font-size: 13px; line-height: 1.45; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 3px; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--ink); color: #fff; }

.mono { font-family: var(--mono); font-size: 10.5px; letter-spacing: .02em; text-transform: uppercase; }
.mid { color: var(--mid); }
.pad { padding-left: var(--pad); padding-right: var(--pad); }

/* ---------- nav ----------------------------------------------------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.nav .logo { display: inline-flex; color: var(--ink); }
.nav .logo svg { height: 16px; width: auto; }
.nav .clock { font-family: var(--mono); font-size: 11px; letter-spacing: .02em; color: var(--ink); text-align: center; font-variant-numeric: tabular-nums; }
.nav ul { display: flex; gap: clamp(18px, 3vw, 40px); justify-content: flex-end; }
.nav ul a { font-size: 13px; transition: color .2s; }
.nav ul a:hover { color: var(--mid); }
@media (max-width: 700px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav .clock { display: none; }
  .nav ul { gap: 16px; } .nav ul a { font-size: 12px; }
}

/* ---------- hero ---------------------------------------------------- */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding-top: var(--nav-h); padding-bottom: clamp(28px, 4vw, 48px); }
.hero .statement { font-weight: 400; font-size: clamp(30px, 5.4vw, 80px); line-height: 1.04; letter-spacing: -.03em; max-width: 18ch; text-wrap: pretty; }
.hero .statement .w { display: inline-block; opacity: 0; transform: translateY(.35em); animation: wIn .9s var(--ease) forwards; }
@keyframes wIn { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero .statement .w { animation: none; opacity: 1; transform: none; } }
.hero-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; margin-top: clamp(28px, 4vw, 56px); padding-top: 14px; border-top: 1px solid var(--line); }
.hero-row p { max-width: 42ch; color: var(--mid); }
.hero-row .mono { color: var(--ink); }
@media (max-width: 700px) { .hero-row { grid-template-columns: 1fr; gap: 12px; } }

/* ---------- case index ---------------------------------------------- */
.index { padding-top: clamp(40px, 6vw, 96px); }
.case { padding-top: 12px; padding-bottom: clamp(48px, 7vw, 110px); border-top: 1px solid var(--line); }
.case-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.case-bar .name { font-size: 13px; }
.case-bar .name b { font-weight: 700; }
.case-bar .name .c { color: var(--mid); }
.case-bar .more { width: 22px; height: 22px; display: inline-grid; place-items: center; margin-left: 6px; font-size: 18px; line-height: 1; color: var(--ink); transition: transform .35s var(--ease); vertical-align: -3px; }
.case.open .case-bar .more { transform: rotate(45deg); }
.dens { display: flex; gap: 8px; }
.dens button { width: 16px; height: 16px; display: grid; gap: 2px; opacity: .3; transition: opacity .2s; }
.dens button.on, .dens button:hover { opacity: 1; }
.dens button i { background: var(--ink); display: block; }
.dens .d2 { grid-template-columns: 1fr 1fr; } .dens .d3 { grid-template-columns: repeat(3, 1fr); } .dens .d4 { grid-template-columns: repeat(4, 1fr); }
.case-info { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.case-info > div { overflow: hidden; }
.case.open .case-info { grid-template-rows: 1fr; }
.case-info .in { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; padding: 18px 0 26px; }
.case-info p { max-width: 58ch; }
.case-info .dz { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; color: var(--mid); line-height: 1.8; }
.case-info .dz span + span::before { content: " / "; }
@media (max-width: 700px) { .case-info .in { grid-template-columns: 1fr; gap: 10px; } }

.grid { display: grid; gap: var(--g); margin-top: 14px; align-items: start; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid.c4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .grid.c3, .grid.c4 { grid-template-columns: repeat(2, 1fr); } .grid.c2 { grid-template-columns: 1fr; } }
.grid figure { display: grid; gap: 6px; }
.grid figure img { width: 100%; background: var(--ph); }
.grid figure.wide { grid-column: span 2; }
.grid.c2 figure.wide { grid-column: span 2; }
@media (max-width: 600px) { .grid.c2 figure.wide { grid-column: span 1; } }
.grid figcaption { font-family: var(--mono); font-size: 10px; letter-spacing: .02em; text-transform: uppercase; color: var(--ink); }
.ph { position: relative; background: var(--ph); border: 1px dashed var(--ph-line); width: 100%; display: flex; align-items: flex-end; }
.ph .ph-in { padding: 12px 14px; }
.ph .ph-in b { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 6px; }
.ph .ph-in p { font-family: var(--mono); font-size: 10.5px; line-height: 1.5; color: var(--mid); max-width: 40ch; }

/* ---------- information --------------------------------------------- */
.info { border-top: 1px solid var(--line); padding-top: 12px; padding-bottom: clamp(48px, 7vw, 110px); }
.info .bar { display: flex; justify-content: space-between; margin-bottom: clamp(28px, 4vw, 56px); }
.info-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; }
.info h2 { font-weight: 400; font-size: clamp(22px, 2.8vw, 40px); line-height: 1.1; letter-spacing: -.02em; max-width: 18ch; margin-bottom: 20px; text-wrap: pretty; }
.info p { max-width: 46ch; color: var(--ink); }
.info p + p { margin-top: 12px; }
.info .lb { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; color: var(--mid); margin-bottom: 8px; }
.list { border-top: 1px solid var(--line); }
.list li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list li .n { font-family: var(--mono); font-size: 10.5px; color: var(--mid); padding-top: 2px; }
.list li b { font-weight: 700; display: block; }
.list li span.s { color: var(--mid); }
.facts li { display: grid; grid-template-columns: 90px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts li .lb { margin: 0; padding-top: 2px; }
.facts { border-top: 1px solid var(--line); }
.portrait { margin-top: 20px; max-width: 320px; }
.portrait img { filter: saturate(.85); }
.portrait figcaption { font-family: var(--mono); font-size: 10px; text-transform: uppercase; margin-top: 6px; }
@media (max-width: 900px) { .info-grid { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- clients ------------------------------------------------- */
.clients { border-top: 1px solid var(--line); padding-top: 12px; padding-bottom: clamp(48px, 7vw, 110px); }
.clients .bar { display: flex; justify-content: space-between; margin-bottom: 24px; }
.client-list { columns: 3; column-gap: 40px; }
.client-list li { break-inside: avoid; padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; }
.client-list li span { color: var(--mid); font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; padding-top: 3px; white-space: nowrap; }
@media (max-width: 900px) { .client-list { columns: 2; } }
@media (max-width: 520px) { .client-list { columns: 1; } }

/* ---------- contact ------------------------------------------------- */
.contact { border-top: 1px solid var(--line); padding-top: 12px; padding-bottom: clamp(48px, 7vw, 110px); }
.contact .bar { display: flex; justify-content: space-between; margin-bottom: clamp(28px, 4vw, 56px); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact h2 { font-weight: 400; font-size: clamp(22px, 2.8vw, 40px); line-height: 1.1; letter-spacing: -.02em; max-width: 18ch; margin-bottom: 20px; }
.contact .big a, .contact .big address { font-style: normal; font-size: clamp(16px, 1.6vw, 22px); line-height: 1.35; display: block; }
.contact .big a:hover { color: var(--mid); }
.contact .big > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
form.f .field { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
form.f label { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; color: var(--mid); padding-top: 3px; }
form.f input, form.f textarea { width: 100%; border: 0; background: transparent; font: inherit; font-size: 14px; color: var(--ink); padding: 0; }
form.f textarea { min-height: 96px; resize: vertical; }
form.f input:focus-visible, form.f textarea:focus-visible { outline: none; }
form.f .field:focus-within { border-bottom-color: var(--ink); }
form.f button { margin-top: 18px; padding: 12px 18px; border: 1px solid var(--ink); font-size: 13px; transition: background .2s, color .2s; }
form.f button:hover { background: var(--ink); color: #fff; }
form.f .note { margin-top: 12px; color: var(--mid); font-size: 11.5px; max-width: 46ch; }
form.f .note a { text-decoration: underline; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- footer -------------------------------------------------- */
.footer { border-top: 1px solid var(--line); padding: 14px var(--pad) 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; font-size: 12px; color: var(--mid); }
.footer ul { display: flex; gap: 20px; flex-wrap: wrap; }
.footer a:hover { color: var(--ink); }

/* ---------- reveal -------------------------------------------------- */
.rv { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }

/* ---------- legal pages (B) ------------------------------------------ */
.legal { padding-top: calc(var(--nav-h) + clamp(40px, 6vw, 80px)); padding-bottom: clamp(60px, 8vw, 120px); display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.legal h1 { font-weight: 400; font-size: clamp(22px, 2.8vw, 40px); line-height: 1.1; letter-spacing: -.02em; max-width: 16ch; }
.legal h2 { font-weight: 700; font-size: 13px; margin: 28px 0 6px; }
.legal h2:first-of-type { margin-top: 0; }
.legal p, .legal li { max-width: 64ch; color: var(--ink); }
.legal p + p { margin-top: 8px; }
.legal a { text-decoration: underline; text-underline-offset: 2px; }
.legal .todo { font-family: var(--mono); font-size: 10.5px; background: var(--ph); border: 1px dashed var(--ph-line); padding: 8px 10px; display: inline-block; color: var(--mid); }
.legal .cta { display: inline-block; margin-top: 24px; padding: 10px 16px; border: 1px solid var(--ink); text-decoration: none; }
.legal .cta:hover { background: var(--ink); color: #fff; }
@media (max-width: 800px) { .legal { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- language switch ------------------------------------------ */
.nav ul a.lang { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; padding: 3px 6px; border: 1px solid var(--line); }
.nav ul a.lang:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- mac display with scrolling homepage ----------------------- */
.mac { display: block; width: 100%; }
.mac .bezel { background: #111; border-radius: 12px 12px 6px 6px; padding: 12px 12px 14px; box-shadow: inset 0 0 0 1px #2a2a2a; }
.mac .screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #fff; border-radius: 3px; container-type: size; }
.mac .screen img { position: absolute; inset: 0 auto auto 0; width: 100%; height: auto; max-width: none; animation: macscroll 22s cubic-bezier(.45,0,.2,1) 1.2s infinite alternate; will-change: transform; }
.mac .base { height: 12px; background: linear-gradient(#d9d9d9, #bdbdbd); border-radius: 0 0 8px 8px; margin: 0 -2%; }
.mac .foot { height: 4px; width: 12%; margin: 0 auto; background: #a8a8a8; border-radius: 0 0 4px 4px; }
@keyframes macscroll { 0%, 4% { transform: translateY(0); } 96%, 100% { transform: translateY(calc(-100% + 100cqh)); } }
@media (prefers-reduced-motion: reduce) { .mac .screen img { animation: none; } }

/* ---------- information split: info / services / agency -------------- */
.info-grid.two { grid-template-columns: 1fr 1fr; }
.info-grid.agency { grid-template-columns: .75fr 1.35fr 1fr; align-items: start; }
.vm2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; }
.vm2 > div p:not(.lb) { max-width: 40ch; }
.info h2.big { font-size: clamp(26px, 3.6vw, 52px); max-width: 16ch; }
.info .portrait { margin-top: 0; max-width: none; }
.info .founder p + p { margin-top: 12px; }
@media (max-width: 900px) {
  .info-grid.two, .info-grid.agency { grid-template-columns: 1fr; }
  .info .portrait { max-width: 320px; }
}
@media (max-width: 600px) { .vm2 { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- MacBook Pro 16 (front view, CSS) ------------------------- */
.mbp { position: relative; width: 100%; padding: 2% 0 3%; }
.mbp .lid { position: relative; width: 82%; margin: 0 auto; background: #0a0a0a; border-radius: 10px 10px 4px 4px; padding: 1.5% 1.5% 2.2%; box-shadow: inset 0 0 0 1px #262626, 0 1px 0 #333; }
.mbp .screen { position: relative; aspect-ratio: 16 / 10.4; overflow: hidden; background: #fff; border-radius: 3px; container-type: size; }
.mbp .screen img { position: absolute; inset: 0 auto auto 0; width: 100%; height: auto; max-width: none; animation: macscroll 40s linear 0s infinite alternate; animation-play-state: paused; will-change: transform; }
.mbp.play .screen img { animation-play-state: running; }
.mbp .notch { position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 10.5%; height: 2.4%; background: #0a0a0a; border-radius: 0 0 7px 7px; z-index: 2; }
.mbp .base { position: relative; height: 0; padding-top: 3.1%; background: linear-gradient(#f0f0f0, #d6d6d6 55%, #bcbcbc); border-radius: 4px 4px 14px 14px; box-shadow: 0 1px 0 #a8a8a8, 0 10px 18px -10px rgba(0,0,0,.35); }
.mbp .base::before { content: ""; position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 13%; height: 36%; background: linear-gradient(#a4a4a4, #d2d2d2); border-radius: 0 0 9px 9px; }
.mbp .base::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: #f8f8f8; }
@media (prefers-reduced-motion: reduce) { .mbp .screen img { animation: none; } }

/* ---------- einheitliches Galerie-Raster ------------------------------
   Kachel 4:5, breite Kachel (span 2) 8:5 → gleiche Zeilenhöhe, gleiche Abstände.
   Bilder füllen die Kachel (object-fit: cover), Platzhalter und MacBooks ebenso. */
.grid { --g: 14px; }
.grid figure > .im > img { aspect-ratio: 4 / 5; width: 100%; height: auto; object-fit: cover; }
.grid figure.wide > .im > img { aspect-ratio: 8 / 5; }
.grid figure > .ph { aspect-ratio: 4 / 5 !important; }
.grid figure.wide > .ph { aspect-ratio: 8 / 5 !important; }
.grid figure > .mbp { aspect-ratio: 8 / 5; padding: 0; display: flex; flex-direction: column; justify-content: center; }
.grid figure.full { grid-column: 1 / -1; }
.grid figure.full > .im > img { aspect-ratio: auto; object-fit: contain; background: #f7f7f7; }
.grid.c3 figure.wide, .grid.c4 figure.wide { grid-column: span 2; }
.grid.c2 figure.wide { grid-column: span 2; }
@media (max-width: 600px) { .grid figure.wide { grid-column: span 2; } .grid.c2 figure.wide { grid-column: span 1; } .grid.c2 figure.wide > .im > img, .grid.c2 figure.wide > .ph, .grid.c2 figure.wide > .mbp { aspect-ratio: 8 / 5; } }

/* ---------- archive (kleiner Einblick) ------------------------------- */
.archive { border-top: 1px solid var(--line); padding-top: 12px; padding-bottom: clamp(48px, 7vw, 110px); }
.archive .bar { display: flex; justify-content: space-between; margin-bottom: 18px; }
.archive .agrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--g); }
.archive .proj { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: var(--g); align-content: start; }
.archive .proj .im { overflow: hidden; }
.archive .proj img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--ph); display: block; }
.archive .proj figcaption { grid-column: span 2; font-size: 12px; line-height: 1.4; }
.archive .proj figcaption b { font-weight: 700; }
.archive .proj figcaption .c { color: var(--mid); }
@media (max-width: 900px) { .archive .agrid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px) { .archive .agrid { grid-template-columns: 1fr 1fr; } }

/* ---------- archive lightbox ------------------------------------------ */
.archive .proj img { cursor: zoom-in; }
.lbx { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(255,255,255,.78); -webkit-backdrop-filter: blur(16px) saturate(.9); backdrop-filter: blur(16px) saturate(.9); }
.lbx.open { display: flex; }
.lbx .card { position: relative; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 80px -30px rgba(0,0,0,.35); max-width: min(92vw, 1100px); display: grid; grid-template-rows: 1fr auto; animation: lbIn .35s var(--ease); }
.lbx .card img { display: block; max-height: 76vh; max-width: 100%; width: auto; height: auto; margin: 0 auto; background: var(--ph); }
.lbx .cap { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 14px 16px; border-top: 1px solid var(--line); font-size: 14px; }
.lbx .cap b { font-weight: 700; } .lbx .cap .c { color: var(--mid); }
.lbx .cap .tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; padding: 6px 10px; border: 1px solid var(--ink); white-space: nowrap; }
.lbx .x { position: absolute; top: -48px; left: 50%; transform: translateX(-50%); width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; font-size: 18px; line-height: 1; cursor: pointer; }
.lbx .lbnav { position: absolute; top: 0; bottom: 0; width: 34%; cursor: pointer; background: none; }
.lbx .lbnav.prev { left: 0; cursor: w-resize; } .lbx .lbnav.next { right: 0; cursor: e-resize; }
.lbx .count { position: absolute; bottom: -34px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 10.5px; color: var(--mid); }
@keyframes lbIn { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .lbx .card { animation: none; } }
@media (max-width: 600px) { .lbx { padding: 16px; } .lbx .card img { max-height: 66vh; } .lbx .cap { flex-wrap: wrap; font-size: 13px; } }

/* ---------- iPhone (vertikales Video) --------------------------------- */
.grid figure > .iph { aspect-ratio: 4 / 5; display: flex; align-items: center; justify-content: center; background: #fff; }
.iph .body { position: relative; height: 94%; aspect-ratio: 9 / 19.5; background: #0a0a0a; border-radius: 9.5% / 4.4%; padding: 3.2%; box-shadow: inset 0 0 0 1px #2a2a2a, 0 1px 0 #444; }
.iph .screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 8% / 3.7%; background: #111; }
.iph .screen video { width: 100%; height: 100%; object-fit: cover; display: block; }
.iph .island { position: absolute; left: 50%; top: 5.2%; transform: translateX(-50%); width: 28%; height: 3.4%; background: #0a0a0a; border-radius: 999px; z-index: 2; }

/* ---------- vertikales Video ohne Rahmen: Originalformat, Zeilenhöhe ---- */
.grid figure > .vid { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ph); }
.grid figure > .vid video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }


/* ---------- sanfter Hover-Zoom auf Bildern (nicht auf Videos/Mockups) ---- */
.im { overflow: hidden; position: relative; display: block; }
.im img { display: block; transition: transform 1.1s cubic-bezier(.16,1,.3,1); will-change: transform; transform-origin: center; }
@media (hover: hover) {
  .grid figure:hover .im img, .archive .proj .im:hover img { transform: scale(1.045); }
}
@media (prefers-reduced-motion: reduce) { .im img { transition: none; } .grid figure:hover .im img, .archive .proj .im:hover img { transform: none; } }

/* ---------- breite Kacheln exakt so hoch wie schmale (2 × 4:5 + Abstand) ---- */
.grid figure { container-type: inline-size; }
.grid figure.wide > .im > img, .grid figure.wide > .ph, .grid figure.wide > .mbp { aspect-ratio: auto; height: calc(62.5cqw - 8.75px); }
@media (max-width: 600px) {
  .grid.c2 figure.wide > .im > img, .grid.c2 figure.wide > .ph, .grid.c2 figure.wide > .mbp { height: auto; aspect-ratio: 8 / 5; }
}

/* ---------- quadratisches Video auf Weiss: ganz zeigen, nicht beschneiden ---- */
.grid figure > .vid.sq video { object-fit: cover; }

/* ---------- breite Video-Kachel ---------------------------------------- */
.grid figure.wide > .vid { aspect-ratio: auto; height: calc(62.5cqw - 8.75px); }
@media (max-width: 600px) { .grid.c2 figure.wide > .vid { height: auto; aspect-ratio: 8 / 5; } }

/* ---------- archive: ein Bild pro Projekt, Hoch- oder Querformat ------- */
.archive .proj { grid-column: span 1; grid-template-columns: 1fr; container-type: inline-size; }
.archive .proj.land { grid-column: span 2; }
.archive .proj figcaption { grid-column: span 1; }
.archive .proj.land img { aspect-ratio: auto; height: calc(62.5cqw - 8.75px); }
@media (max-width: 600px) { .archive .proj.land img { height: auto; aspect-ratio: 8 / 5; } }

/* ---------- lightbox v2: feste 4:5-Bühne, Überblendung, Pfeile -------- */
.lbx .card { width: min(92vw, calc(74vh * 0.8)); max-width: none; grid-template-rows: auto auto; }
.lbx .card .frame { position: relative; width: 100%; aspect-ratio: 4 / 5; background: #f2f2f2; overflow: hidden; }
.lbx .card .frame img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: contain; margin: 0; background: transparent; transition: opacity .28s ease; }
.lbx .card .frame img.fade { opacity: 0; }
.lbx .card .frame img.cover { object-fit: cover; }
.lbx .lbnav { top: 0; bottom: 0; width: 50%; }
.lbx .arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.85); border: 1px solid var(--line); display: grid; place-items: center; font-size: 22px; line-height: 1; color: var(--ink); pointer-events: none; opacity: .0; transition: opacity .2s; }
.lbx .arrow.l { left: 12px; } .lbx .arrow.r { right: 12px; }
.lbx .card:hover .arrow, .lbx.touch .arrow { opacity: 1; }
.lbx .cap { font-size: 13px; }
@media (max-width: 600px) { .lbx .card { width: min(92vw, calc(66vh * 0.8)); } .lbx .arrow { opacity: 1; width: 34px; height: 34px; font-size: 18px; } }

/* ---------- information: eine Lesespalte statt vier Kästchen ----------- */
.vm1 { max-width: 58ch; }
.vm1 p { font-size: 15px; line-height: 1.6; max-width: none; }
.vm1 p + p { margin-top: 16px; }
.vm1 .lb { margin: 28px 0 6px; }
.vm1 .lead { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.45; letter-spacing: -.01em; }

/* ---------- agency: Fakten mit Label oben, breitere Spalten ------------ */
.info-grid.agency { grid-template-columns: .65fr 1.25fr 1.15fr; gap: clamp(28px, 4vw, 56px); }
.facts li { grid-template-columns: 1fr; gap: 6px; padding: 14px 0; }
.facts li .lb { padding-top: 0; }
.facts li p { font-size: 14px; line-height: 1.55; max-width: 44ch; }
.info .founder p { font-size: 15px; line-height: 1.6; max-width: 52ch; }

/* ---------- archive v3: fünf Hochformate in einer Reihe ---------------- */
.archive .agrid { grid-template-columns: repeat(5, 1fr); }
.archive .proj { grid-column: span 1 !important; }
.lbx .card .frame img { object-fit: cover; }
@media (max-width: 900px) { .archive .agrid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .archive .agrid { grid-template-columns: 1fr 1fr; } }

/* ---------- hero: kleine Polaroids der Projekte rechts ----------------- */
.hero { position: relative; }
.polas { position: absolute; right: var(--pad); top: 50%; transform: translateY(-56%); width: min(38vw, 560px); height: min(28vw, 420px); pointer-events: none; }
.pola { position: absolute; width: clamp(88px, 8.6vw, 128px); background: #fff; padding: 5% 5% 15%; box-shadow: 0 14px 30px -14px rgba(0,0,0,.4), 0 1px 2px rgba(0,0,0,.08); transform: rotate(var(--r, 0deg)); pointer-events: auto; opacity: 0; animation: polaIn .9s cubic-bezier(.16,1,.3,1) forwards; animation-delay: var(--d, 0s); transition: transform .5s cubic-bezier(.16,1,.3,1), box-shadow .5s; }
.pola img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; background: var(--ph); }
.pola:hover { transform: rotate(0deg) scale(1.08); z-index: 5; box-shadow: 0 24px 40px -16px rgba(0,0,0,.45); }
@keyframes polaIn { from { opacity: 0; transform: translateY(18px) rotate(var(--r, 0deg)); } to { opacity: 1; transform: translateY(0) rotate(var(--r, 0deg)); } }
@media (prefers-reduced-motion: reduce) { .pola { animation: none; opacity: 1; } }
@media (max-width: 1100px) { .polas { display: none; } }

/* polaroids: feste Ränder, Hairline, damit der Rahmen auf Weiss lesbar ist */
.pola { display: block; padding: 7px 7px 24px; border: 1px solid #e3e3e3; box-shadow: 0 18px 32px -18px rgba(0,0,0,.45), 0 2px 4px rgba(0,0,0,.06); }
.pola img { width: 100%; height: auto; aspect-ratio: 3 / 4; }

/* polaroids v3: ohne Rahmen, nur Bild mit Schlagschatten, nacheinander eingeblendet */
.pola { padding: 0; border: 0; background: none; box-shadow: none; width: clamp(96px, 9.4vw, 140px); }
.pola img { box-shadow: 0 22px 36px -18px rgba(0,0,0,.5), 0 3px 8px rgba(0,0,0,.08); }
.pola:hover img { box-shadow: 0 30px 46px -18px rgba(0,0,0,.5), 0 4px 10px rgba(0,0,0,.08); }

/* archive: sechs Projekte in einer Reihe */
.archive .agrid { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 1100px) { .archive .agrid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .archive .agrid { grid-template-columns: 1fr 1fr; } }

/* ---------- hero: Bildraster 3×3 statt loser Haufen -------------------- */
.polas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: min(27vw, 390px); height: auto; transform: translateY(-50%); }
.pola { position: static; width: auto; transform: none; animation: polaGrid .7s cubic-bezier(.16,1,.3,1) forwards; }
.pola img { box-shadow: 0 14px 26px -16px rgba(0,0,0,.45), 0 2px 6px rgba(0,0,0,.06); transition: transform .5s cubic-bezier(.16,1,.3,1), box-shadow .5s; }
.pola:hover { transform: none; }
.pola:hover img { transform: scale(1.05); box-shadow: 0 22px 36px -16px rgba(0,0,0,.45), 0 3px 8px rgba(0,0,0,.08); }
@keyframes polaGrid { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pola { animation: none; opacity: 1; } }

/* hero-Raster: 4 × 2 */
.polas { grid-template-columns: repeat(4, 1fr); width: min(34vw, 500px); }

/* ---------- Punkt-Cursor ---------------------------------------------- */
html.has-cur, html.has-cur * { cursor: none !important; }
.cur { position: fixed; left: 0; top: 0; width: 12px; height: 12px; border-radius: 50%; background: #0a0a0a; pointer-events: none; z-index: 1000; opacity: 0; mix-blend-mode: difference; background: #fff; transition: width .25s cubic-bezier(.16,1,.3,1), height .25s cubic-bezier(.16,1,.3,1), opacity .2s; will-change: transform; }
.cur.on { opacity: 1; }
.cur.big { width: 34px; height: 34px; }
.cur.down { width: 8px; height: 8px; }

/* ---------- hero: ein Bild, das durch die Projekte rattert ------------- */
.reel { position: absolute; right: var(--pad); top: 50%; transform: translateY(-50%); width: min(24vw, 360px); }
.reel img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; background: var(--ph); box-shadow: 0 24px 40px -22px rgba(0,0,0,.45), 0 2px 6px rgba(0,0,0,.06); }
@media (max-width: 1100px) { .reel { display: none; } }

/* hero-Reel: klein, mittig in der Höhe, 0.4 s */
.reel { width: 80px; top: 44%; }
.reel img { box-shadow: 0 14px 24px -14px rgba(0,0,0,.45), 0 1px 4px rgba(0,0,0,.06); }

/* hero-Reel: 80 % der ursprünglichen Grösse */
.reel { width: min(19.2vw, 288px); }
.reel img { box-shadow: 0 24px 40px -22px rgba(0,0,0,.45), 0 2px 6px rgba(0,0,0,.06); }

/* ---------- kurze Seiten: Fusszeile am unteren Rand -------------------- */
body { min-height: 100svh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
.footer { margin-top: auto; }
