/* ============================================================
   site.css — Anna Paraminski portfolio (pennant edition)
   White · Black · Orange #F7753F · Alte Haas Grotesk
   ============================================================ */
@font-face {
  font-family: 'Alte Haas Grotesk';
  src: url('../fonts/AlteHaasGroteskRegular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root {
  --paper: #ffffff;
  --ink: #0c0c0c;
  --orange: #F7753F;
  --soft: rgba(12,12,12,0.5);
  --rule: rgba(12,12,12,0.14);
  --header-h: 76px;
}

* , *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Alte Haas Grotesk', 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; color: inherit; cursor: pointer; padding: 0; }
::selection { background: var(--orange); color: #fff; }

/* ---------- Header (sticky) ---------- */
header.site {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 200;
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
/* let clicks fall through the empty header bar to pennants below;
   only the actual links stay interactive */
header.site { pointer-events: none; }
header.site .brand, header.site nav.primary a, header.site .nav-toggle { pointer-events: auto; }
header.site.scrolled { border-bottom-color: var(--rule); }

/* hamburger toggle — hidden on desktop, shown on mobile */
.nav-toggle { display: none; }

.brand {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.015em;
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
}
.brand .dot { width: 7px; height: 7px; background: var(--orange); border-radius: 50%; display: inline-block; transform: translateY(-1px); }
.brand .last { font-weight: 400; color: var(--soft); }

nav.primary {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
nav.primary a { position: relative; padding: 8px 2px; color: var(--ink); transition: color .25s ease; }
nav.primary a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 2px;
  height: 1.5px; background: currentColor; transition: right .3s ease;
}
nav.primary a:hover::after, nav.primary a.active::after { right: 0; }
nav.primary a.kontakt { color: var(--orange); }
nav.primary a.kontakt::after { background: var(--orange); }

/* ---------- Page routing ---------- */
.page { display: none; }
.page.active { display: block; }

/* ============================================================
   LANDING — pennant hero
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 800px;
  width: 100%;
  overflow: hidden;
}

/* centered hero title, sits in the white band above the first line */
.hero-title {
  position: absolute;
  top: calc(var(--header-h) + 26px);
  left: 0; right: 0;
  z-index: 4;
  text-align: center;
  pointer-events: none;
  transition: opacity .4s ease, transform .5s cubic-bezier(.2,.7,.2,1);
}
.hero-title h1 {
  margin: 0;
  font-weight: 700;
  font-size: clamp(30px, 4.4vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.hero-title h1 .o { color: var(--orange); }
.hero-title .eyebrow {
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--soft);
  margin: 0 0 16px;
}
.hero-title .lead {
  font-size: 16px; line-height: 1.5; color: var(--ink);
  margin: 18px auto 0; max-width: 46ch; text-wrap: pretty;
}
.hero-title .hint {
  margin-top: 18px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--soft); display: inline-flex; align-items: center; gap: 9px;
}
.hero-title .hint::before, .hero-title .hint::after {
  content: ""; width: 22px; height: 1px; background: var(--orange);
}
/* fade the title away while a chain is hovered so the project name can take center stage */
.hero.has-hover .hero-title { opacity: 0; transform: translateY(-6px); }

/* scroll cue */
.scroll-cue {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  z-index: 4; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--soft); display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none;
}
.scroll-cue .bar { width: 1px; height: 30px; background: var(--rule); position: relative; overflow: hidden; }
.scroll-cue .bar::after {
  content:""; position:absolute; inset:0; background: var(--ink);
  animation: cue 2.1s cubic-bezier(.7,0,.3,1) infinite;
}
@keyframes cue { 0%{transform:translateY(-100%)} 60%,100%{transform:translateY(100%)} }

/* stage */
.pennant-stage {
  position: absolute; inset: 0; z-index: 3;
}
.pennant-stage svg.cords {
  position: absolute; inset: 0; width: 100%; height: 100%;
  overflow: visible; pointer-events: none;
}
.cords .cord {
  fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}
.cords .cord-hit {
  fill: none; stroke: transparent; stroke-width: 42; pointer-events: stroke;
}

/* pennant elements (positioned by JS via transform) */
.pennant {
  position: absolute; top: 0; left: 0;
  transform-origin: 50% 0%;
  will-change: transform;
  pointer-events: auto;
  cursor: pointer;
}
.pennant .flutter {
  width: 100%; height: 100%; position: relative;
  transform-origin: 50% 0%;
  will-change: transform;
}
/* the little knot at the top where it hangs from the cord */
.pennant::before {
  content: ""; position: absolute; top: -3px; left: 50%; transform: translateX(-50%);
  width: 7px; height: 7px; border-radius: 50%; background: var(--ink); z-index: 2;
}

.pennant .face { width: 100%; height: 100%; }
.face.tone-black { background: var(--ink); }
.face.tone-orange { background: var(--orange); }
.face.tone-white { background: var(--paper); box-shadow: inset 0 0 0 2px var(--ink); }

/* image pennants: clip the whole flutter so the slot (filled or empty) is a triangle */
.pennant.is-img .flutter {
  clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
  background: #e9e9e7;
  filter: drop-shadow(0 10px 26px rgba(0,0,0,0.22));
}
.pennant image-slot {
  width: 100%; height: 100%;
  --is-bg: #e9e9e7;
}
.pennant.is-img { box-shadow: none; }

/* sheen / fold shading on every pennant for depth */
.pennant .sheen {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(105deg, rgba(255,255,255,0.32) 0%, rgba(255,255,255,0) 38%, rgba(0,0,0,0.18) 100%);
  mix-blend-mode: soft-light;
}
/* slight lift on the hovered chain's pennants */
.pennant.hot .flutter { filter: drop-shadow(0 14px 32px rgba(0,0,0,0.28)); }

.pennant { transition: opacity .4s ease, filter .4s ease; }
.pennant.dim { opacity: 0.26; filter: grayscale(0.5); }
.pennant.hot { z-index: 6; }

/* big hover title overlay */
.hover-title {
  position: absolute; inset: 0; z-index: 5; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .4s ease;
}
.hover-title.show { opacity: 1; }
.hover-title .ht-inner { text-align: center; transform: translateY(8px); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.hover-title.show .ht-inner { transform: translateY(0); }
.hover-title .ht-kicker {
  font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--orange);
  margin-bottom: 12px;
}
.hover-title h2 {
  font-weight: 700; font-size: clamp(48px, 9vw, 150px); line-height: 0.9;
  letter-spacing: -0.04em; margin: 0; color: var(--ink); text-wrap: balance;
  -webkit-text-stroke: 0;
}
.hover-title .ht-meta { margin-top: 16px; font-size: 14px; letter-spacing: 0.08em; color: var(--soft); }
.hover-title .ht-sub {
  margin: 18px auto 0; max-width: 30ch; font-size: clamp(15px, 1.5vw, 19px);
  line-height: 1.4; color: var(--soft); text-wrap: pretty;
}

/* cursor-follow chip */
.cursor-chip {
  position: fixed; z-index: 240; pointer-events: none; top: 0; left: 0;
  background: var(--orange); color: #fff; padding: 9px 15px; border-radius: 999px;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap;
  transform: translate(-50%, -160%) scale(0.6); opacity: 0; transition: opacity .2s ease, transform .2s ease;
  box-shadow: 0 8px 22px rgba(247,117,63,0.4);
}
.cursor-chip.show { opacity: 1; transform: translate(-50%, -160%) scale(1); }

/* ============================================================
   PROJECT INDEX (below hero) — scattered editorial
   ============================================================ */
.index {
  position: relative;
  max-width: 1300px;
  margin: 0 auto;
  padding: 130px 40px 150px;
}
.index-head {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 1px solid var(--ink); padding-bottom: 18px; margin-bottom: 8px;
}
.index-head .t { font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; }
.index-head .n { font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--soft); }

.proj-row {
  display: grid;
  grid-template-columns: 92px 1fr 200px 200px 56px;
  align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  position: relative;
  transition: padding-left .3s cubic-bezier(.2,.7,.2,1);
}
.proj-row:hover { padding-left: 14px; }
.proj-row .rn { font-size: 13px; letter-spacing: 0.1em; color: var(--soft); }
.proj-row .rt { font-size: clamp(26px, 3.4vw, 46px); font-weight: 700; letter-spacing: -0.025em; line-height: 1; }
.proj-row .rm { font-size: 13px; letter-spacing: 0.04em; color: var(--soft); }
.proj-row .rk {
  justify-self: end; width: 34px; height: 34px; border: 1.5px solid var(--ink); border-radius: 50%;
  display: grid; place-items: center; font-size: 17px; color: var(--ink);
  transition: background .25s ease, color .25s ease;
}
.proj-row:hover .rk { background: var(--orange); border-color: var(--orange); color: #fff; }
.proj-row::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 0; background: var(--orange);
  transition: width .4s cubic-bezier(.2,.7,.2,1);
}
.proj-row:hover::after { width: 100%; }

/* ============================================================
   PROJECT DETAIL — expanding overlay
   ============================================================ */
.expander {
  position: fixed; z-index: 300; background: var(--paper); overflow: hidden;
  pointer-events: none; opacity: 0.001;
}
.expander.opening {
  transition: top .62s cubic-bezier(.7,0,.2,1), left .62s cubic-bezier(.7,0,.2,1),
              width .62s cubic-bezier(.7,0,.2,1), height .62s cubic-bezier(.7,0,.2,1), opacity .2s ease;
}
.expander.open { top: 0 !important; left: 0 !important; width: 100vw !important; height: 100vh !important; pointer-events: auto; opacity: 1; }
.expander.closing {
  transition: top .54s cubic-bezier(.7,0,.2,1), left .54s cubic-bezier(.7,0,.2,1),
              width .54s cubic-bezier(.7,0,.2,1), height .54s cubic-bezier(.7,0,.2,1), opacity .3s ease .24s;
  opacity: 0;
}
.expander-inner { position: absolute; inset: 0; overflow-y: auto; opacity: 0; transition: opacity .35s ease .28s; }
.expander.open .expander-inner { opacity: 1; }

.exp-head {
  position: sticky; top: 0; z-index: 6;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 40px; background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--rule);
}
.exp-head .crumb { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--soft); }
.close-btn { display: flex; align-items: center; gap: 11px; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; }
.close-btn:hover { color: var(--orange); }
.close-btn .x {
  width: 14px; height: 14px; position: relative; display: inline-block;
}
.close-btn .x::before, .close-btn .x::after {
  content:""; position:absolute; top:50%; left:0; width:100%; height:1.5px; background: currentColor;
}
.close-btn .x::before { transform: rotate(45deg); }
.close-btn .x::after { transform: rotate(-45deg); }

.exp-hero {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px;
  padding: 70px 40px 50px; max-width: 1500px; margin: 0 auto; align-items: end;
}
.exp-hero h2 { font-weight: 700; font-size: clamp(46px, 6.4vw, 104px); line-height: 0.94; letter-spacing: -0.035em; margin: 0; text-wrap: balance; }
.exp-hero .lead { font-size: 18px; line-height: 1.55; color: var(--ink); margin: 0; text-wrap: pretty; }
.meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 26px; }
.meta-grid dt { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--soft); margin: 0 0 4px; }
.meta-grid dd { margin: 0; font-size: 15px; }

.exp-cover { width: 100%; height: 66vh; min-height: 460px; display: block; --is-bg:#ededeb; }

.exp-body { max-width: 1100px; margin: 0 auto; padding: 80px 40px 30px; display: grid; grid-template-columns: 200px 1fr; gap: 64px; }
.exp-body .label { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--soft); }
.exp-body p { font-size: 18px; line-height: 1.62; margin: 0 0 1em; text-wrap: pretty; }
.exp-body p em { font-style: normal; color: var(--orange); }

.process { max-width: 1500px; margin: 0 auto; padding: 60px 40px 120px; }
.process h3 { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--soft); margin: 0 0 28px; font-weight: 400; }
.process-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.process-grid image-slot { display: block; --is-bg:#ededeb; }
.process-grid > *:nth-child(1) { grid-column: span 4; aspect-ratio: 16/10; }
.process-grid > *:nth-child(2) { grid-column: span 2; aspect-ratio: 3/4; }
.process-grid > *:nth-child(3) { grid-column: span 2; aspect-ratio: 1/1; }
.process-grid > *:nth-child(4) { grid-column: span 2; aspect-ratio: 1/1; }
.process-grid > *:nth-child(5) { grid-column: span 2; aspect-ratio: 1/1; }

.exp-foot { border-top: 1px solid var(--rule); padding: 34px 40px; display: flex; justify-content: space-between; font-size: 13px; letter-spacing: 0.04em; color: var(--soft); }
.exp-foot a:hover { color: var(--orange); }

/* ============================================================
   EDITORIAL PROJECT LAYOUT (.ged) — asymmetric, whitespace-led
   ============================================================ */
.ged { max-width: 1520px; margin: 0 auto; padding: 30px 56px 80px; }
.ged-row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 32px;
  row-gap: 28px;
  align-items: start;
  margin-bottom: clamp(72px, 9vw, 156px);
}
.ged-row:last-child { margin-bottom: 40px; }

.ged-fig { margin: 0; }
.ged-fig img {
  width: 100%; height: auto; display: block;
  background: #ededeb;
}
.ged-fig:not(.hand) img { cursor: zoom-in; }
.ged-fig:not(.hand) { position: relative; }
.ged-fig:not(.hand)::after {
  content: ""; position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(12,12,12,0.62) center/16px 16px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='16.5' y1='16.5' x2='21' y2='21'/%3E%3Cline x1='11' y1='8' x2='11' y2='14'/%3E%3Cline x1='8' y1='11' x2='14' y2='11'/%3E%3C/svg%3E");
  opacity: 0; transform: scale(0.8); transition: opacity .25s ease, transform .25s ease;
  pointer-events: none; backdrop-filter: blur(2px);
}
.ged-fig:not(.hand):hover::after { opacity: 1; transform: scale(1); }

/* ---------- Lightbox (plan zoom) ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(246,244,239,0.0);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease, background .3s ease;
  overflow: hidden; touch-action: none;
}
.lightbox.show { opacity: 1; pointer-events: auto; background: rgba(18,18,18,0.92); }
.lightbox img {
  max-width: 94vw; max-height: 92vh; display: block;
  transform-origin: 0 0;
  user-select: none; -webkit-user-drag: none;
  box-shadow: 0 30px 90px rgba(0,0,0,0.5);
  cursor: zoom-in;
  image-rendering: auto;
}
/* will-change only while panning (constant scale) — keeps drag smooth without
   caching a low-res bitmap that would blur the zoomed image */
.lightbox.dragging img { will-change: transform; }
.lightbox.zoomed img { cursor: grab; }
.lightbox.zoomed.dragging img { cursor: grabbing; }
.lb-close {
  position: fixed; top: 22px; right: 26px; z-index: 2;
  display: flex; align-items: center; gap: 11px;
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: #fff;
}
.lb-close .x { width: 15px; height: 15px; position: relative; display: inline-block; }
.lb-close .x::before, .lb-close .x::after {
  content: ""; position: absolute; top: 50%; left: 0; width: 100%; height: 1.5px; background: #fff;
}
.lb-close .x::before { transform: rotate(45deg); }
.lb-close .x::after { transform: rotate(-45deg); }
.lb-hint {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 2;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.6);
  pointer-events: none;
}
.lb-cap {
  position: fixed; bottom: 22px; left: 26px; z-index: 2;
  font-size: 12px; letter-spacing: 0.04em; color: rgba(255,255,255,0.85);
}
.lb-cap b { color: #fff; font-weight: 700; }
@media (max-width: 860px) { .lb-hint { display: none; } }
.ged-cap {
  margin-top: 12px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--soft);
  max-width: 46ch;
}
.ged-cap .abb { color: var(--orange); letter-spacing: 0.12em; white-space: nowrap; font-size: 12px; padding-top: 1px; }
.ged-cap b { color: var(--ink); font-weight: 700; }

/* title block */
.ged-title { align-items: end; }
.ged-title .hand { grid-column: 1 / 9; }
.ged-title .hand img { width: 100%; height: auto; mix-blend-mode: multiply; }
.ged-title .meta { grid-column: 10 / 13; align-self: end; }
.ged-title .meta .kick { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--soft); margin: 0 0 18px; }
.ged-title .meta dl { margin: 0; display: grid; gap: 16px; }
.ged-title .meta dt { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--soft); margin-bottom: 3px; }
.ged-title .meta dd { margin: 0; font-size: 14px; line-height: 1.35; }

/* concept text column */
.ged-text .kick { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--orange); margin: 0 0 18px; }
.ged-text p { font-size: 17px; line-height: 1.62; margin: 0 0 1em; text-wrap: pretty; }
.ged-text .ged-lead { font-size: 20px; line-height: 1.4; color: var(--ink); margin-bottom: 1.1em; }
.ged-text .ged-lead em { font-style: italic; }
.ged-text .steps { margin-top: 22px; }

/* document link (PDF) inside concept text */
.doc-link-line { margin-top: 4px; }
.doc-link {
  display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px;
  padding: 14px 18px; border: 1px solid var(--rule);
  text-decoration: none; color: var(--ink);
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
}
.doc-link:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); transform: translateY(-1px); }
.doc-link .doc-link-label { font-size: 17px; line-height: 1.4; }
.doc-link .doc-link-label em { font-style: italic; }
.doc-link .doc-link-note {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange);
  white-space: nowrap;
}
.doc-link .doc-link-note::before {
  content: ""; width: 13px; height: 13px; flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3h7v7'/%3E%3Cpath d='M21 3l-9 9'/%3E%3Cpath d='M21 14v5a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3h7v7'/%3E%3Cpath d='M21 3l-9 9'/%3E%3Cpath d='M21 14v5a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5'/%3E%3C/svg%3E") center/contain no-repeat;
}
.doc-link:hover .doc-link-note { color: var(--orange); }

/* big number watermark */
.ged-bignum {
  font-size: clamp(80px, 16vw, 230px);
  font-weight: 700; line-height: 0.8; letter-spacing: -0.04em;
  color: var(--ink); margin: 0;
}
.ged-bignum .o { color: var(--orange); }

/* column placement helpers used inside .ged-row */
.c1-6 { grid-column: 1 / 7; }
.c1-7 { grid-column: 1 / 8; }
.c1-5 { grid-column: 1 / 6; }
.c1-8 { grid-column: 1 / 9; }
.c1-12 { grid-column: 1 / 13; }
.c2-12 { grid-column: 2 / 13; }
.c2-11 { grid-column: 2 / 12; }
.c3-11 { grid-column: 3 / 12; }
.c4-10 { grid-column: 4 / 11; }
.c7-12 { grid-column: 7 / 13; }
.c8-12 { grid-column: 8 / 13; }
.c6-12 { grid-column: 6 / 13; }
.c9-13 { grid-column: 9 / 13; }
.c7-13 { grid-column: 7 / 13; }
.offset-lg { margin-top: clamp(48px, 8vw, 130px); }
.offset-md { margin-top: clamp(28px, 5vw, 80px); }

/* chapter divider inside editorial layout */
.ged-chapter {
  grid-column: 1 / 13;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 24px;
  border-top: 1px solid var(--ink);
  padding-top: 18px;
  margin-bottom: 8px;
}
.ged-chapter .cn { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--orange); }
.ged-chapter h3 { margin: 0; font-weight: 700; font-size: clamp(22px, 2.6vw, 36px); letter-spacing: -0.02em; }

/* ============================================================
   ÜBER MICH
   ============================================================ */
.cv { max-width: 1180px; margin: 0 auto; padding: calc(var(--header-h) + 90px) 40px 140px; }
.cv-head { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; margin-bottom: 110px; }
.cv-head .eyebrow { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--soft); margin: 0 0 14px; }
.cv-head h1 { font-weight: 700; font-size: clamp(48px, 6.4vw, 104px); line-height: 0.94; letter-spacing: -0.035em; margin: 0; }
.cv-head h1 .o { color: var(--orange); }
.cv-portrait { width: 230px; aspect-ratio: 3/4; display: block; margin-bottom: 22px; --is-bg:#ededeb; }
#page-ueber .cv-portrait { width: 340px; height: 453px; aspect-ratio: auto; }
.cv-head p { font-size: 18px; line-height: 1.6; max-width: 48ch; margin: 0; text-wrap: pretty; }

/* portrait as <img> */
img.cv-portrait { object-fit: cover; }

/* Baustelle photo gallery */
.studio-mark { margin: 28px 0 0; }
.studio-mark img { width: 240px; height: auto; display: block; mix-blend-mode: multiply; }
.bs-eindruck-head { max-width: 1180px; margin: 40px auto 0; padding: 44px 40px 0; border-top: 1px solid var(--rule); }
.bs-eindruck-head h2 { font-weight: 700; font-size: clamp(24px, 3vw, 40px); letter-spacing: -0.02em; margin: 0 0 6px; }
.bs-eindruck-head p { color: var(--soft); font-size: 15px; margin: 0; max-width: none; }
.bs-gallery {
  max-width: 1180px; margin: 56px auto 28px; padding: 0 40px;
  display: grid; grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(36px, 4.4vw, 84px); row-gap: clamp(52px, 6.5vw, 120px);
  align-items: start;
}
.bs-gallery figure { margin: 0; }
/* natural aspect ratio — never cropped on the sides, like the editorial project pages */
.bs-gallery img { width: 100%; height: auto; display: block; background: #ededeb; }
.bs-gallery figcaption { margin-top: 10px; font-size: 13px; line-height: 1.4; color: var(--soft); letter-spacing: 0.01em; }

/* parallax frames: vertical slack only, so content drifts up/down and is never cropped on the sides.
   The exact ratio is set per image from its natural dimensions in JS; these are just fallbacks. */
.bs-gallery .plx-frame { position: relative; overflow: hidden; background: #ededeb; }
.bs-gallery .plx-frame.tall { aspect-ratio: 3/4; }
.bs-gallery .plx-frame.wide { aspect-ratio: 16/10; }
.bs-gallery .plx-frame.med { aspect-ratio: 4/3; }
.bs-gallery .plx-frame.sq { aspect-ratio: 1/1; }
.bs-gallery .plx-frame img { position: absolute; left: 0; top: -16%; width: 100%; height: auto; aspect-ratio: auto !important; will-change: transform; }

.cv-row { display: grid; grid-template-columns: 230px 1fr; gap: 64px; padding: 44px 0; border-top: 1px solid var(--rule); align-items: start; }
.cv-row h2 { font-weight: 700; font-size: clamp(24px, 2.6vw, 38px); letter-spacing: -0.02em; margin: 0; line-height: 1; }
.cv-list { display: grid; gap: 26px; }
.cv-item { display: grid; grid-template-columns: 190px 1fr; gap: 30px; align-items: baseline; }
.cv-item .when { font-size: 14px; color: var(--soft); letter-spacing: 0.02em; }
.cv-item .what { font-size: 18px; line-height: 1.45; }
.cv-item .what .role { display: block; font-size: 14px; color: var(--soft); margin-top: 4px; }

.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 56px; }
.skill-block .label { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--orange); margin-bottom: 8px; }
.skill-block .val { font-size: 18px; line-height: 1.45; }

.langs { display: grid; gap: 14px; }
.lang-row { display: grid; grid-template-columns: 1fr 210px 150px; align-items: center; font-size: 17px; }
.lang-row .lvl { color: var(--soft); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.lang-row .bar { height: 1px; background: var(--rule); position: relative; }
.lang-row .bar::after { content:""; position:absolute; inset:-1px auto auto 0; height:3px; background: var(--orange); width: var(--p,50%); }

/* profile / motivation intro (Über mich) */
.cv-head .profil p { font-size: 18px; line-height: 1.6; margin: 0 0 14px; max-width: 48ch; text-wrap: pretty; }
.cv-head .profil p:last-child { margin-bottom: 0; }
.cv-head .profil p:first-child { font-size: 21px; line-height: 1.45; }
.cv-head .profil .o { color: var(--orange); }

/* links & notes inside cv/baustelle items */
.cv-item .what a { color: var(--orange); }
.cv-item .what a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cv-item .what .note { display: block; font-size: 14px; color: var(--soft); margin-top: 4px; }
.cv-item .what .note.accent { color: var(--orange); }

/* phase list (Bachelorarbeit) */
.phases { display: grid; gap: 0; margin: 6px 0 0; border-top: 1px solid var(--rule); }
.phase { display: grid; grid-template-columns: 150px 1fr; gap: 28px; padding: 22px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.phase .pn { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange); }
.phase .pt { font-size: 22px; letter-spacing: -0.01em; margin: 0 0 4px; }
.phase .pw { font-size: 13px; color: var(--soft); margin: 0 0 8px; letter-spacing: 0.02em; }
.phase p { font-size: 16px; line-height: 1.55; margin: 0; max-width: 60ch; text-wrap: pretty; }

/* steps / chapters row */
.steps { display: flex; flex-wrap: wrap; gap: 10px 12px; margin-top: 20px; }
.step-chip { display: inline-flex; align-items: baseline; gap: 8px; font-size: 14px; letter-spacing: 0.01em; padding: 9px 15px; border: 1px solid var(--rule); border-radius: 999px; }
.step-chip .sn { color: var(--orange); font-size: 11px; letter-spacing: 0.12em; }

/* ============================================================
   KONTAKT
   ============================================================ */
.kontakt-overlay {
  position: fixed; inset: 0; z-index: 180;
  display: flex; align-items: center; justify-content: center;
  padding: calc(var(--header-h) + 56px) 40px 64px;
  opacity: 0; pointer-events: none;
  transition: opacity .4s ease;
  background:
    radial-gradient(135% 95% at 16% 6%, rgba(208,186,140,0.55), rgba(238,228,202,0) 58%),
    radial-gradient(125% 105% at 90% 96%, rgba(178,152,106,0.5), rgba(238,228,202,0) 54%),
    rgba(242,233,209,0.965);
}
.kontakt-overlay::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 200px rgba(120,96,52,0.26);
}
.kontakt-overlay.show { opacity: 1; pointer-events: auto; }
.kontakt-inner {
  position: relative; max-width: 1180px; margin: 0 auto; width: 100%;
  transform-origin: 50% 0%;
  opacity: 0;
  transform: translateY(-22px) scale(0.985);
  transition: opacity .42s ease, transform .5s cubic-bezier(.2,.7,.2,1);
}
.kontakt-overlay.show .kontakt-inner {
  opacity: 1;
  transform: translateY(0) scale(1);
}
@media (prefers-reduced-motion: reduce) {
  .kontakt-inner { transition: opacity .3s ease; transform: none; }
  .kontakt-overlay.show .kontakt-inner { transform: none; }
}
.kontakt-close {
  position: absolute; top: calc(var(--header-h) + 20px); right: 40px; z-index: 2;
  display: flex; align-items: center; gap: 11px;
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--soft);
}
.kontakt-close:hover { color: var(--orange); }
.kontakt-close .x { width: 14px; height: 14px; position: relative; display: inline-block; }
.kontakt-close .x::before, .kontakt-close .x::after { content: ""; position: absolute; top: 50%; left: 0; width: 100%; height: 1.5px; background: currentColor; }
.kontakt-close .x::before { transform: rotate(45deg); }
.kontakt-close .x::after { transform: rotate(-45deg); }
.kontakt-inner { position: relative; max-width: 1180px; margin: 0 auto; width: 100%; }
.kontakt-overlay .eyebrow { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--soft); margin: 0 0 18px; }
.kontakt-overlay h1 { font-weight: 700; font-size: clamp(48px, 8vw, 132px); line-height: 0.92; letter-spacing: -0.04em; margin: 0 0 50px; text-wrap: balance; }
.kontakt-overlay h1 .o { color: var(--orange); }
.kontakt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; border-top: 1px solid var(--ink); padding-top: 40px; }
.kontakt-grid .col .label { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--soft); margin-bottom: 14px; }
.kontakt-grid .col a, .kontakt-grid .col p { font-size: clamp(19px, 1.8vw, 26px); line-height: 1.35; margin: 0 0 8px; display: block; }
.kontakt-grid .col a { position: relative; width: max-content; }
.kontakt-grid .col a::after { content:""; position:absolute; left:0; bottom:-2px; height:1.5px; width:0; background: var(--orange); transition: width .3s ease; }
.kontakt-grid .col a:hover { color: var(--orange); }
.kontakt-grid .col a:hover::after { width:100%; }

/* ---------- footer ---------- */
footer.site { border-top: 1px solid var(--ink); padding: 30px 40px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; letter-spacing: 0.06em; color: var(--soft); }
footer.site .o { color: var(--orange); }
.footer-legal { display: inline-flex; gap: 22px; }
.legal-link {
  font: inherit; letter-spacing: 0.06em; color: var(--soft); position: relative; padding: 2px 0;
  transition: color .25s ease;
}
.legal-link::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--orange); transition: right .3s ease; }
.legal-link:hover { color: var(--ink); }
.legal-link:hover::after { right: 0; }

/* ---------- legal modal ---------- */
.legal-overlay {
  position: fixed; inset: 0; z-index: 420;
  background: rgba(18,18,18,0.0);
  display: flex; align-items: center; justify-content: center; padding: 40px 24px;
  opacity: 0; pointer-events: none; transition: opacity .3s ease, background .3s ease;
}
.legal-overlay.show { opacity: 1; pointer-events: auto; background: rgba(18,18,18,0.5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.legal-modal {
  position: relative; background: var(--paper); color: var(--ink);
  width: min(680px, 100%); max-height: 86vh; overflow-y: auto;
  padding: 56px 56px 48px; border: 1px solid var(--ink);
  transform: translateY(14px) scale(0.985); transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.legal-overlay.show .legal-modal { transform: none; }
.legal-close {
  position: sticky; top: 0; float: right; margin: -16px -16px 0 0;
  display: flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--soft);
}
.legal-close:hover { color: var(--orange); }
.legal-close .x { width: 14px; height: 14px; position: relative; display: inline-block; }
.legal-close .x::before, .legal-close .x::after { content: ""; position: absolute; top: 50%; left: 0; width: 100%; height: 1.5px; background: currentColor; }
.legal-close .x::before { transform: rotate(45deg); }
.legal-close .x::after { transform: rotate(-45deg); }
.legal-kick { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--soft); margin: 0 0 10px; }
.legal-doc h2 { font-weight: 700; font-size: clamp(32px, 4vw, 52px); letter-spacing: -0.03em; margin: 0 0 32px; line-height: 1; }
.legal-block { padding: 20px 0; border-top: 1px solid var(--rule); }
.legal-block:first-of-type { border-top: 0; padding-top: 0; }
.legal-block h3 { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange); margin: 0 0 8px; font-weight: 700; }
.legal-block p { font-size: 16px; line-height: 1.6; margin: 0; text-wrap: pretty; }
.legal-block a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--orange); }
.legal-block a:hover { color: var(--orange); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  header.site { padding: 0 22px; height: 62px; }
  :root { --header-h: 62px; }
  .hero-title { top: calc(var(--header-h) + 14px); padding: 0 22px; }
  .hover-title h2 { font-size: clamp(40px, 13vw, 90px); }
  .index { padding: 80px 22px 90px; }
  .proj-row { grid-template-columns: 1fr 46px; gap: 8px; padding: 22px 0; }
  .proj-row .rn, .proj-row .rm { display: none; }
  .exp-hero { grid-template-columns: 1fr; padding: 40px 22px; gap: 24px; }
  .exp-body { grid-template-columns: 1fr; padding: 40px 22px; gap: 16px; }
  .process { padding: 30px 22px 80px; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .process-grid > * { grid-column: span 1 !important; aspect-ratio: 4/3 !important; }
  /* editorial layout collapses to a single column on mobile */
  .ged { padding: 20px 22px 60px; }
  .ged-row { grid-template-columns: 1fr; row-gap: 20px; margin-bottom: 56px; }
  .ged-row > * { grid-column: 1 / -1 !important; margin-top: 0 !important; }
  .ged-title .meta { align-self: start; }
  .ged-bignum { font-size: 120px; }
  .cv { padding: calc(var(--header-h) + 50px) 22px 80px; }
  .cv-head, .cv-row { grid-template-columns: 1fr; gap: 22px; margin-bottom: 50px; }
  .cv-item { grid-template-columns: 1fr; gap: 4px; }
  .skills-grid { grid-template-columns: 1fr; }
  .lang-row { grid-template-columns: 1fr auto; }
  .lang-row .bar { display: none; }
  .kontakt-grid { grid-template-columns: 1fr; gap: 28px; }
  .kontakt-close { right: 22px; }
  .phase { grid-template-columns: 1fr; gap: 6px; }
  .bs-eindruck-head { padding-left: 22px; padding-right: 22px; }
  .studio-mark img { width: 200px; }
  .bs-gallery { padding: 0 22px; gap: 14px; }
  .bs-gallery figure { grid-column: 1 / -1 !important; margin-top: 0 !important; }
  /* hamburger button */
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center;
    gap: 5px; width: 28px; height: 28px;
  }
  .nav-toggle span {
    display: block; width: 100%; height: 2px; background: var(--ink); border-radius: 2px;
    transition: transform .3s ease, opacity .2s ease;
  }
  header.site.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  header.site.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  header.site.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* nav links collapse into a drop-down sheet */
  nav.primary {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 4px 22px 14px;
    font-size: 14px; letter-spacing: 0.1em;
    background: color-mix(in srgb, var(--paper) 94%, transparent);
    backdrop-filter: blur(12px) saturate(1.2);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
    border-bottom: 1px solid var(--rule);
    transform: translateY(-10px); opacity: 0; pointer-events: none;
    transition: opacity .26s ease, transform .26s ease;
  }
  header.site.nav-open nav.primary { transform: none; opacity: 1; pointer-events: auto; }
  nav.primary a { padding: 15px 2px; border-bottom: 1px solid var(--rule); }
  nav.primary a:last-child { border-bottom: 0; }
  /* closed menu must not capture taps over the hero — only clickable while open.
     selector matches the global `header.site nav.primary a` specificity so it wins. */
  header.site nav.primary a { pointer-events: none; }
  header.site.nav-open nav.primary a { pointer-events: auto; }
  footer.site { flex-direction: column; gap: 12px; padding: 22px; text-align: center; }
  .legal-modal { padding: 40px 24px 32px; }
}
