/* ══════════════════════════════════════════════════════════════════
   NEXETH — projects.css  v2
   Editorial / Brutalist — exakt nach Screendesign
══════════════════════════════════════════════════════════════════ */

/* ── Reset ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --o:   #ff6b00;
  --dark: #0e0e0e;
  --wh:   #f4f4f0;
  --blk:  #111111;
  --dim:  #666;
  --f:    'G', 'Arial Black', sans-serif;
  --ez:   cubic-bezier(.16,1,.3,1);
}

html {
  scroll-behavior: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--blk) var(--wh);
}

body {
  font-family: var(--f);
  background: var(--wh);
  color: var(--blk);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::-webkit-scrollbar { width: 2px; }
::-webkit-scrollbar-track { background: var(--wh); }
::-webkit-scrollbar-thumb { background: var(--blk); }
::-webkit-scrollbar-thumb:hover { background: rgba(17,17,17,.72); }

/* Grain overlay */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 9800;
  pointer-events: none; opacity: .022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ══════════════════════════════════════════════════════════════════
   CURSOR
══════════════════════════════════════════════════════════════════ */
#cursor {
  position: fixed; z-index: 9900;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--o); pointer-events: none;
  transform: translate(-50%,-50%);
  transition: width .2s var(--ez), height .2s var(--ez), opacity .2s;
  will-change: transform;
}
#cursor.hover { width: 30px; height: 30px; background: rgba(255,107,0,.35); }
#cursor.click { width: 5px; height: 5px; }

/* ══════════════════════════════════════════════════════════════════
   PRELOADER
══════════════════════════════════════════════════════════════════ */
#pre {
  position: fixed; inset: 0; z-index: 9500;
  background: var(--blk);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .7s var(--ez);
}
#pre.done { opacity: 0; pointer-events: none; }
.pre-logo {
  font-size: .7rem; font-weight: 950;
  letter-spacing: .6em; text-transform: uppercase; color: var(--o);
}

/* ══════════════════════════════════════════════════════════════════
   NAV
══════════════════════════════════════════════════════════════════ */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 400;
  padding: 28px 52px;
  display: flex; align-items: center;
  background: rgba(244,244,240,.96);
  backdrop-filter: blur(14px);
  transition: background .4s, padding .3s, backdrop-filter .4s;
}
#nav.scrolled {
  padding-top: 16px; padding-bottom: 16px;
}
#nav.on-white { background: rgba(244,244,240,.96); }

.n-logo {
  flex-shrink: 0; font-size: .76rem; font-weight: 950;
  letter-spacing: .4em; text-transform: uppercase; color: var(--blk);
}
#nav.on-white .n-logo { color: var(--blk); }

.n-links { display: flex; align-items: center; gap: 34px; margin-left: auto; margin-right: 36px; }
.n-actions { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }

.n-a {
  font-size: .68rem; letter-spacing: .24em; text-transform: lowercase;
  color: rgba(17,17,17,.45); transition: color .3s; position: relative;
}
#nav.on-white .n-a { color: rgba(17,17,17,.45); }
.n-a::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1px; background: var(--o); transition: width .3s var(--ez);
}
.n-a:hover, .n-a.active, .n-a--active { color: var(--o); } /* FIX PRJ-02: Markup nutzt .n-a--active */
.n-a:hover::after, .n-a.active::after, .n-a--active::after { width: 100%; }
.n-a--icon { display: flex; align-items: center; color: rgba(17,17,17,.3); transition: color .3s; }
.n-a--icon::after { display: none; }
.n-a--icon:hover { color: var(--o); }
#nav.on-white .n-a--icon { color: rgba(17,17,17,.3); }

/* ══════════════════════════════════════════════════════════════════
   §1 · HERO  — full-screen auto-slider
══════════════════════════════════════════════════════════════════ */
#hero-driver {
  position: relative;
  height: 100svh; min-height: 600px;
}

#hero-sticky {
  position: relative;
  width: 100%; height: 100%;
  overflow: hidden; background: var(--blk);
}

.h-layer {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity .85s cubic-bezier(.4,0,.2,1);
  will-change: opacity;
}
.h-layer.on { opacity: 1; }

.h-layer img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.05);
  transition: transform 9s ease-out;
}
.h-layer.on img { transform: scale(1); }

.h-layer-ov {
  position: absolute; inset: 0;
  background: linear-gradient(
    155deg,
    rgba(0,0,0,.04) 0%,
    rgba(0,0,0,.18) 35%,
    rgba(0,0,0,.65) 68%,
    rgba(0,0,0,.88) 100%
  );
}

.h-body {
  position: absolute; bottom: 64px; left: 7vw;
  z-index: 2; max-width: 70vw;
}
.h-eyebrow {
  font-size: .48rem; letter-spacing: .44em; text-transform: uppercase;
  color: rgba(255,107,0,.85); margin-bottom: 16px;
  display: flex; align-items: center; gap: 0;
}
.h-eyebrow .s { margin: 0 10px; color: rgba(255,255,255,.2); }
.h-title {
  font-size: clamp(2.4rem, 6.5vw, 8.5rem);
  font-weight: 950; line-height: .88;
  letter-spacing: -.04em; text-transform: uppercase;
  color: #fff; text-shadow: 0 4px 60px rgba(0,0,0,.4);
}

#h-dots {
  position: absolute; bottom: 64px; right: 7vw;
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 7px;
}
.h-dot {
  width: 4px; height: 4px; border-radius: 2px;
  background: rgba(255,255,255,.2); transition: background .4s, height .4s var(--ez);
}
.h-dot.on { background: var(--o); height: 22px; }

/* ══════════════════════════════════════════════════════════════════
   §2 · KEYWORDS  — WHITE background
══════════════════════════════════════════════════════════════════ */
#s-words {
  background: var(--wh);
  position: relative;
  z-index: 1;
  overflow: visible;
  min-height: 520vh;
  padding: 0;
}

.words-pin {
  position: relative;
  top: 0;
  height: 100vh;
  min-height: 620px;
  overflow: visible;
  padding: 165px 0 80px 52px;
}

#s-words.words-pin-active .words-pin {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 2;
  width: 100%;
}

#s-words.words-pin-after .words-pin {
  position: absolute;
  top: auto;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
}

.words-grid {
  display: grid;
  grid-template-columns: 1fr 44vw;
  gap: 0;
  align-items: start;
  position: relative; z-index: 3;
  height: 100%;
}

/* Giant stacked words */
.words-stack { position: relative; padding-top: 10%; }

.kw {
  display: block;
  font-size: clamp(3.52rem, 7.7vw, 9.9rem);
  font-weight: 950; line-height: .75;
  letter-spacing: -.04em; text-transform: uppercase;
  color: var(--blk); white-space: nowrap;
  opacity: 0; transform: translateX(-50px);
  transition: none;
}
.kw.in { opacity: 1; transform: translateX(0); }
.kw:nth-child(1) { transition-delay: .00s; }
.kw:nth-child(2) { transition-delay: .07s; }
.kw:nth-child(3) { transition-delay: .14s; }
.kw:nth-child(4) { transition-delay: .21s; }
.kw:nth-child(5) { transition-delay: .28s; }
.kw:nth-child(6) { transition-delay: .35s; }

/* Outlined variant — black stroke, white fill */
.kw--outline {
  color: #ffffff;
  -webkit-text-stroke: 2.5px #000000;
  paint-order: stroke fill;
}

.words-card-col { position: relative; min-height: 1px; }
.words-flight-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: visible;
}
.word-fly-img {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--w, 240px);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  opacity: 0;
  filter: saturate(.92) contrast(1.02);
  box-shadow: 12px 18px 46px rgba(0,0,0,.22);
  transform-origin: center center;
  will-change: transform, opacity;
}

.organic-form {
  display: block;
  max-width: none;
  height: auto;
  object-fit: contain;
  user-select: none;
}

/* Organic black form — right side (behind text) */
#blob-words {
  position: absolute;
  right: -20vw; top: 12vh;
  width: clamp(920px, 76vw, 1560px);
  z-index: 1; pointer-events: none;
  transform: scaleX(-1);
}

/* ══════════════════════════════════════════════════════════════════
   §3 · WALL 1  — DARK background, asymmetric editorial grid
   Row 1: [2-col] [1-col]
   Row 2: [1-col] [1-col] [1-col]
   Row 3: [1-col] [2-col]
══════════════════════════════════════════════════════════════════ */
#s-wall1 {
  background: transparent;
  position: relative; z-index: 4;
}

.wall-tight {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: calc((100vw - 20px) * 4 / 9);
  gap: 5px;
  padding: 0 5px;
}

/* Row 1 left — spans 2 cols
   aspect-ratio 3/2 = exactly same row height as 1-col 3/4 card
   (2col_w = 2×col_w → height = 2col_w × 2/3 = col_w × 4/3 ✓) */
#wall1-grid .wc:nth-child(1) {
  grid-column: span 2;
}
/* Row 3 right — spans 2 cols */
#wall1-grid .wc:nth-child(7) {
  grid-column: span 2;
}

/* shared wall card */
.wc {
  position: relative; overflow: hidden;
  background: #e8e8e4; cursor: none;
}
.wc a { display: block; width: 100%; height: 100%; }
.wc img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(.85) brightness(.88);
  transition: transform .8s var(--ez), filter .7s ease;
}
.wc:hover img { transform: scale(1.07); filter: saturate(1.05) brightness(.98); }
.wc-body {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.5) 58%);
  padding: 36px 10px 15px 20px;
}
.wc-title {
  font-size: clamp(1.35rem, 2.5vw, 2.1rem);
  font-weight: 950; text-transform: uppercase;
  letter-spacing: .04em; line-height: .88; color: #fff;
}
.wc-meta {
  font-size: clamp(.52rem, .78vw, .72rem);
  letter-spacing: .24em; text-transform: uppercase;
  color: #ff4a00; margin-top: 0;
}

/* ══════════════════════════════════════════════════════════════════
   §4 · CTA  — WHITE background, brutalist typography
══════════════════════════════════════════════════════════════════ */
#s-cta {
  background: var(--wh);
  position: relative; overflow: visible;
  padding: 80px 7vw 100px;
  z-index: 1;
}

/* S-curve organic black form — left (behind text) */
#blob-cta {
  position: absolute;
  left: -10vw; top: -14%;
  width: clamp(558px, 48.6vw, 936px);
  z-index: 0; pointer-events: none;
}

.cta-inner {
  position: relative; z-index: 3;
  text-align: right;
}

/* "AUFTRAGSARBEIT BENÖTIGT" — orange eyebrow */
.cta-eyebrow {
  display: block;
  font-size: clamp(.7rem, 1.1vw, 1rem);
  font-weight: 950; letter-spacing: .3em;
  text-transform: uppercase; line-height: 1.2;
  color: var(--o);
  margin-bottom: 6px;
}

/* "GEMEINSAMES / LASS UNS / DEINE WELT / ERSCHAFFEN" — giant solid black */
.cta-line-solid {
  display: block;
  font-size: clamp(3.2rem, 8.5vw, 11rem);
  font-weight: 950; letter-spacing: -.05em;
  text-transform: uppercase; line-height: .86;
  color: var(--blk);
}

/* "ABENTEUER" — huge outlined (black stroke, transparent fill) */
.cta-line-outline-blk {
  display: block;
  font-size: clamp(3.2rem, 8.5vw, 11rem);
  font-weight: 950; letter-spacing: -.05em;
  text-transform: uppercase; line-height: .86;
  color: transparent;
  -webkit-text-stroke: 2.5px var(--blk);
  paint-order: stroke fill;
  margin-bottom: clamp(24px, 4vw, 60px);
}

/* "STARTE DEINE / REISE JETZT" — outlined black, hover fills */
.cta-line-action {
  display: block;
  font-size: clamp(2.4rem, 6.2vw, 8rem);
  font-weight: 950; letter-spacing: -.05em;
  text-transform: uppercase; line-height: .86;
  color: transparent;
  -webkit-text-stroke: 2px var(--blk);
  paint-order: stroke fill;
  cursor: none;
  margin-top: 10px;
  transition: color .4s var(--ez), -webkit-text-stroke-color .4s var(--ez);
}
.cta-line-action:hover {
  color: var(--blk);
}

/* Bottom row: note + arrow */
.cta-sub-bottom {
  display: flex; align-items: flex-end; justify-content: flex-end;
  gap: 8px; margin-top: 36px;
}
.cta-sub-note {
  font-size: clamp(.62rem, .9vw, .85rem);
  font-weight: 950; letter-spacing: .22em;
  text-transform: uppercase; line-height: 1.8;
  color: var(--o); text-align: right;
  transform: translateY(-48px);
}
.cta-down-arrow {
  display: flex; flex-direction: column; align-items: center;
  flex-shrink: 0; animation: downBounce 1.9s ease-in-out infinite;
  margin-left: 4px; margin-right: -7vw;
}
.cta-down-arrow img {
  width: clamp(46px, 6vw, 92px);
  max-width: none;
}
@keyframes downBounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(10px); } }

/* ══════════════════════════════════════════════════════════════════
   §5 · WALL 2  — DARK background, masonry grid with row+col spans
══════════════════════════════════════════════════════════════════ */
#s-wall2 {
  background: transparent;
  position: relative; z-index: 4;
}

/* 3-column grid — exactly 2 tile sizes, same row height guaranteed:
     1x1 (1-col, 3:4):  h = W/3 × 4/3 = 4W/9
     2x1 (2-col, 3:2):  h = 2W/3 × 2/3 = 4W/9  ← identical row height ✓ */
.wall2-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: calc((100vw - 20px) * 4 / 9);
  grid-auto-flow: row dense;
  gap: 5px;
  padding: 0 5px;
}

/* Reset any previous overrides */
.wall2-masonry .wc { min-height: unset; }
.wall2-masonry .wc > a { position: static; }

/* 2x1 — 2 cols × 1 row, landscape */
.wall2-masonry .wc--2x1 { grid-column: span 2; }

/* 1x1 — 1 col × 1 row, portrait */
.wall2-masonry .wc--1x1 { grid-column: span 1; }

/* exactly 2 tile sizes */

.show-more-row { text-align: center; padding: 52px 0 60px; background: transparent; }
.show-more-btn {
  font-family: var(--f); font-size: .56rem; font-weight: 950;
  letter-spacing: .55em; text-transform: uppercase;
  color: rgba(17,17,17,.35); background: none;
  border: 1px solid rgba(17,17,17,.15); padding: 14px 52px;
  cursor: none; transition: color .3s, border-color .3s;
}
.show-more-btn:hover { color: var(--o); border-color: var(--o); }
.show-more-btn.hidden { display: none; }

/* ══════════════════════════════════════════════════════════════════
   §6 · SAY HI  — WHITE background
══════════════════════════════════════════════════════════════════ */
#s-sayhi {
  background: var(--wh);
  padding: 100px 7vw 80px;
  position: relative; overflow: hidden;
}

.sayhi-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; align-items: start;
}

.sayhi-big {
  font-size: clamp(7rem, 16vw, 22rem);
  font-weight: 950; line-height: .8;
  letter-spacing: -.05em; text-transform: uppercase;
  color: var(--blk); margin-bottom: 36px;
}
.sayhi-big .hi-outline {
  display: block;
  color: transparent;
  letter-spacing: .05em;
  -webkit-text-stroke: 3px var(--blk);
}

.sayhi-desc {
  font-size: .82rem; font-weight: 300;
  line-height: 1.75; color: #555; max-width: 360px; margin-bottom: 32px;
}
.sayhi-links { display: flex; flex-direction: column; gap: 11px; }
.sayhi-link {
  font-size: .52rem; letter-spacing: .34em; text-transform: uppercase;
  color: #999; display: flex; align-items: center; gap: 9px; transition: color .3s;
}
.sayhi-link::before { content: '—'; color: var(--o); font-weight: 950; }
.sayhi-link:hover { color: var(--blk); }

/* Form */
.sayhi-form { display: flex; flex-direction: column; }
.sf { position: relative; padding-bottom: 24px; }
.sf label {
  display: block; font-size: .48rem; letter-spacing: .3em;
  text-transform: uppercase; color: #999; margin-bottom: 7px;
}
.sf input, .sf textarea {
  width: 100%; background: transparent; border: none;
  border-bottom: 1px solid rgba(17,17,17,.15);
  color: var(--blk); font-family: var(--f); font-size: .88rem;
  font-weight: 300; padding: 8px 0; resize: none;
  outline: none; transition: border-color .3s; cursor: none;
}
.sf input:focus, .sf textarea:focus { border-color: var(--o); }
.sf textarea { min-height: 90px; }
.sf::after {
  content: ''; position: absolute; bottom: 24px; left: 0;
  width: 0; height: 1px; background: var(--o); transition: width .32s var(--ez);
}
.sf:focus-within::after { width: 100%; }

.sayhi-submit { display: flex; align-items: center; gap: 18px; margin-top: 24px; }
.sh-btn {
  font-family: var(--f); font-size: .54rem; font-weight: 950;
  letter-spacing: .44em; text-transform: uppercase;
  color: var(--wh); background: var(--blk);
  border: none; padding: 14px 32px; cursor: none; transition: background .3s;
}
.sh-btn:hover { background: var(--o); }
.sh-note { font-size: .52rem; letter-spacing: .16em; color: #999; }

/* ══════════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════════ */
#pf {
  background: var(--wh); border-top: 1px solid rgba(17,17,17,.08);
  padding: 26px 7vw; display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.pf-copy  { font-size: .46rem; letter-spacing: .22em; text-transform: uppercase; color: #aaa; }
.pf-links { display: flex; gap: 26px; }
.pf-links a { font-size: .46rem; letter-spacing: .22em; text-transform: uppercase; color: #aaa; transition: color .3s; }
.pf-links a:hover { color: var(--blk); }
.pf-badge { font-size: .44rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,107,0,.4); }

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════════ */
@media (max-width: 1023px) {
  .words-grid { grid-template-columns: 1fr; }
  .words-card-col { display: block; }
  .words-pin { padding: 125px 0 80px 32px; }
  #blob-words { right: -42vw; width: clamp(760px, 118vw, 1180px); }
  #blob-cta { left: -32vw; width: clamp(450px, 77.4vw, 738px); }
  .cta-inner { text-align: right; }
  .sayhi-layout { grid-template-columns: 1fr; gap: 52px; }
}
@media (max-width: 767px) {
  #nav { padding: 20px 24px; }
  .n-links { display: none; }
  .n-actions { margin-left: auto; }
  .h-body  { left: 24px; bottom: 40px; max-width: 88vw; }
  #s-words { min-height: 520vh; }
  .words-pin { padding: 70px 0 0 24px; min-height: 100vh; }
  .kw { font-size: clamp(2.64rem, 12.1vw, 5.5rem); }
  .wall-tight  { grid-template-columns: 1fr 1fr; }
  .wall2-masonry { grid-template-columns: repeat(2, 1fr); }
  .wall2-masonry .wc--2x1 { grid-column: span 2; }
  #s-cta  { padding: 80px 24px 100px; }
  #s-sayhi{ padding: 80px 24px; }
  .sayhi-big { font-size: clamp(4.5rem, 20vw, 12rem); }
}
