/* ==========================================================================
   Kröll Consulting — .com premium 3D showcase
   Obsidian monochrome. Chrome mark. One restrained accent (champagne).
   ========================================================================== */

/* ---------- fonts (local, no CDN) ---------- */
@font-face { font-family: 'Space Grotesk'; font-weight: 700; font-display: swap;
  src: url('../assets/fonts/space-grotesk-700.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-weight: 400; font-display: swap;
  src: url('../assets/fonts/hanken-grotesk-400.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-weight: 500; font-display: swap;
  src: url('../assets/fonts/hanken-grotesk-500.woff2') format('woff2'); }
@font-face { font-family: 'Geist Mono'; font-weight: 400; font-display: swap;
  src: url('../assets/fonts/geist-mono-400.woff2') format('woff2'); }
@font-face { font-family: 'Geist Mono'; font-weight: 500; font-display: swap;
  src: url('../assets/fonts/geist-mono-500.woff2') format('woff2'); }

:root {
  --bg: #080809;            /* obsidian — deliberately darker than the .de charcoal */
  --panel: #0d0d0f;
  --ink: #f2f2ef;
  --dim: rgba(242,242,239,.44);
  --faint: rgba(242,242,239,.16);
  --hairline: rgba(242,242,239,.09);
  --emboss: #151517;        /* dark-on-dark display type */
  --accent: #c8b795;        /* champagne — the ONE restrained accent (KC blue retired here) */
  --display: 'Space Grotesk', sans-serif;
  --body: 'Hanken Grotesk', sans-serif;
  --mono: 'Geist Mono', monospace;
  --pad: clamp(20px, 4.5vw, 72px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { background: var(--bg); scrollbar-color: #2a2a2e var(--bg); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: #0a0a0b; }

a { color: inherit; text-decoration: none; }

/* ==========================================================================
   Stage — fixed WebGL canvas + neutral vignette + static grain
   ========================================================================== */

#gl {
  /* transparent WebGL layer BEHIND all copy (text always readable), above
     the ghost type: ghosts < mark < content */
  position: fixed; inset: 0; z-index: 2;
  width: 100vw; height: 100vh;
  display: block;
  opacity: 0;
  pointer-events: none;
}
body.gl-ready #gl { transition: opacity 1.1s ease .1s; }

.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 42%, transparent 55%, rgba(0,0,0,.45) 100%);
}

/* static film grain — no animation, one composite layer */
.grain {
  position: fixed; inset: 0; z-index: 10; pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-head {
  position: fixed; z-index: 20; inset: 0 0 auto 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px var(--pad) 0;
  pointer-events: none;
}
.site-head > * { pointer-events: auto; }

.brand {
  font-family: var(--display); font-weight: 700;
  font-size: 17px; letter-spacing: .01em;
  display: flex; align-items: baseline; gap: .5em;
}
.brand .slashes {
  background: linear-gradient(150deg, #fdfdfe 5%, #9a9da3 45%, #63666c 62%, #d9dce0 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.head-links { display: flex; align-items: center; gap: 34px; }
.head-link {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--dim);
  position: relative; padding-bottom: 3px;
  transition: color .3s var(--ease-out);
}
.head-link::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.head-link:hover { color: var(--ink); }
.head-link:hover::after { transform: scaleX(1); transform-origin: left; }

/* ==========================================================================
   Sections — page-grid: every section a full or half page
   ========================================================================== */

main { position: relative; }

.page { min-height: 100svh; position: relative; display: flex; }
.page-half { min-height: 50svh; position: relative; display: flex; }

.mono-cap {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--dim);
}
.mono-cap .sl { color: var(--accent); margin-right: .9em; letter-spacing: 0; }

/* copy always above the mark */
.hero-inner, .hero-meta, .scroll-hint, .story-copy,
.leistungen-inner, .prozess-inner, .cta-inner, .foot-inner { position: relative; z-index: 4; }

/* ---------- hero ---------- */

.hero { align-items: flex-end; }
.hero-inner {
  padding: 0 var(--pad) clamp(48px, 9vh, 96px);
  width: 100%;
}
.hero h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(52px, 9.5vw, 158px);
  line-height: .94; letter-spacing: -.025em;
  margin: 18px 0 26px;
}
.hero-sub {
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.6; color: var(--dim);
  max-width: 34em;
}
.hero-sub strong { color: var(--ink); font-weight: 500; }

.hero-meta {
  position: absolute; right: var(--pad); bottom: clamp(52px, 9.5vh, 100px);
  text-align: right; display: flex; flex-direction: column; gap: 8px;
}

.scroll-hint {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--faint);
}
.scroll-hint .line {
  width: 1px; height: 34px;
  background: linear-gradient(to bottom, transparent, var(--dim));
}

/* the hero mark is a toy — one quiet affordance, retired after first grab */
.drag-hint {
  position: absolute; z-index: 4;
  right: calc(var(--pad) + 16px); top: 64%;
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--faint);
  opacity: 0;
  transition: opacity .8s var(--ease-out);
  pointer-events: none;
}
.drag-hint .sl { color: var(--accent); margin-right: .8em; letter-spacing: 0; }
body.gl-ready.hero-active:not(.has-dragged) .drag-hint {
  opacity: 1;
  transition-delay: 2.4s;    /* arrives after the headline has landed */
}
html.reduced-motion .drag-hint { display: none; }

body.mark-grab { cursor: grab; }
body.mark-grabbing { cursor: grabbing; user-select: none; -webkit-user-select: none; }

/* ---------- capability story ---------- */

.story { align-items: center; }
.story-inner {
  padding: 0 var(--pad);
  width: 100%;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
}
.story-copy { grid-column: 1 / span 6; }
.story.flip .story-copy { grid-column: 7 / span 6; }

.story h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(40px, 5.6vw, 92px);
  line-height: 1.0; letter-spacing: -.02em;
  margin: 22px 0 26px;
}
.story p {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.65; color: var(--dim);
  max-width: 30em;
}
.story p strong { color: var(--ink); font-weight: 500; }

/* giant emboss word behind each story section, dark-on-dark depth */
.story { overflow: hidden; }
.story .ghost {
  position: absolute; z-index: 0;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(110px, 14.5vw, 300px); line-height: 1;
  color: var(--emboss); letter-spacing: -.03em;
  top: 50%;
  /* --par-x/y: the whisper of pointer parallax (site.js, fine pointers only) */
  transform: translateY(-52%) translate(var(--par-x, 0px), var(--par-y, 0px));
  right: calc(var(--pad) * .5);
  white-space: nowrap;
  user-select: none;
}
.story.flip .ghost { right: auto; left: calc(var(--pad) * .6); }

/* ---------- leistungen — columns grow up from a shared baseline ---------- */

.leistungen { align-items: center; }
.leistungen-inner { padding: 0 var(--pad); width: 100%; }
.leistungen-head h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(40px, 5.6vw, 92px);
  letter-spacing: -.02em; line-height: 1;
  margin: 22px 0 clamp(36px, 7vh, 72px);
}

.lgrid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: clamp(14px, 1.6vw, 28px);
  align-items: end;              /* shared baseline; tops stagger */
}

/* the mask each card rises inside of — released (.grown) after the reveal
   so the hover pop can leave the box */
html.js:not(.reduced-motion) [data-grow]:not(.grown) { overflow: hidden; }

.lcard {
  background: var(--panel);
  border: 1px solid var(--hairline);
  padding: clamp(20px, 1.8vw, 30px) clamp(18px, 1.6vw, 26px) clamp(22px, 2vw, 32px);
  display: flex; flex-direction: column;
}
/* staggered column heights — the skyline read */
.lcol:nth-child(1) .lcard { min-height: clamp(300px, 40vh, 420px); }
.lcol:nth-child(2) .lcard { min-height: clamp(340px, 46vh, 480px); }
.lcol:nth-child(3) .lcard { min-height: clamp(280px, 36vh, 390px); }
.lcol:nth-child(4) .lcard { min-height: clamp(360px, 49vh, 505px); }
.lcol:nth-child(5) .lcard { min-height: clamp(315px, 42vh, 445px); }

.lcard-label {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--dim);
}
.lcard-label .sl { color: var(--accent); margin-right: .8em; letter-spacing: 0; }
.lcard h3 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(20px, 1.75vw, 27px); line-height: 1.15;
  letter-spacing: -.01em;
  margin: auto 0 12px;           /* headline sits low; label anchors the top */
  padding-top: 26px;
}
.lcard p:last-child { font-size: 14.5px; line-height: 1.6; color: var(--dim); }

/* reveal initial state (JS animates; reduced-motion + no-JS show it) */
html.js [data-grow]:not(.grown) .lcard { transform: translateY(102%); }
html.js.reduced-motion [data-grow] .lcard { transform: none; }

/* hover: the card pops toward you and lights up — hard edges, quiet warmth.
   Transitions only exist in the .grown state so they never fight the reveal. */
@media (hover: hover) and (pointer: fine) {
  [data-grow].grown .lcard {
    transition: transform .5s var(--ease-out), border-color .5s var(--ease-out),
                background-color .5s var(--ease-out), box-shadow .5s var(--ease-out);
  }
  [data-grow].grown:hover .lcard {
    transform: translateY(-10px);
    background: #131316;
    border-color: rgba(200, 183, 149, .38);
    box-shadow: 0 30px 70px rgba(0, 0, 0, .55);
  }
  [data-grow].grown .lcard h3 { transition: color .5s var(--ease-out); }
  [data-grow].grown:hover .lcard h3 { color: #fff; }
  [data-grow].grown .lcard p:last-child { transition: color .5s var(--ease-out); }
  [data-grow].grown:hover .lcard p:last-child { color: rgba(242, 242, 239, .68); }
}

/* ---------- prozess ---------- */

.prozess { align-items: center; }
.prozess-inner { padding: 0 var(--pad); width: 100%; }
.prozess-head h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(40px, 5.6vw, 92px);
  letter-spacing: -.02em; line-height: 1;
  margin: 22px 0 clamp(36px, 7vh, 72px);
}
.steps {
  list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 2.6vw, 48px);
}
.step {
  border-top: 1px solid var(--hairline);
  padding-top: 22px;
}
.step-num {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .18em; color: var(--accent);
}
.step h3 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(20px, 1.7vw, 26px); letter-spacing: -.01em;
  margin: 14px 0 10px;
}
.step p { font-size: 15.5px; line-height: 1.6; color: var(--dim); }

/* ---------- über mich ---------- */

.about-facts {
  list-style: none;
  margin-top: 30px;
  display: flex; flex-direction: column; gap: 10px;
}
.about-facts li {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--dim);
  border-top: 1px solid var(--hairline);
  padding-top: 10px; max-width: 30em;
}

/* ---------- CTA ---------- */

.cta { align-items: center; justify-content: center; text-align: center; }
.cta-inner { padding: 22vh var(--pad) 0; width: 100%; }
.cta h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(42px, 6.4vw, 108px);
  letter-spacing: -.02em; line-height: 1;
  margin: 20px 0 22px;
}
.cta p { color: var(--dim); font-size: clamp(16px, 1.3vw, 19px); line-height: 1.6; max-width: 34em; margin: 0 auto 40px; }

.pill {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: #0a0a0b;
  font-family: var(--display); font-weight: 700; font-size: 16px;
  letter-spacing: 0;
  padding: 18px 34px;
  border-radius: 999px;             /* the one deliberate pill */
  transition: transform .45s var(--ease-out), background-color .45s var(--ease-out);
}
.pill .arr { transition: transform .35s var(--ease-out); }
.pill:hover { transform: translateY(-2px); background: #fff; }
.pill:hover .arr { transform: translate(3px, -3px); }

.cta .cta-alt {
  margin: 34px auto 0;
  max-width: none;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--faint);
}
.cta-alt a {
  color: var(--dim); padding-bottom: 2px;
  border-bottom: 1px solid var(--faint);
  transition: color .3s var(--ease-out), border-color .3s var(--ease-out);
}
.cta-alt a:hover { color: var(--ink); border-color: var(--dim); }

/* ---------- footer ---------- */

.site-foot {
  align-items: flex-end;
  border-top: 1px solid var(--hairline);
}
.foot-inner {
  width: 100%;
  padding: clamp(40px, 7vh, 72px) var(--pad) 34px;
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 28px;
}
.foot-brand { grid-column: 1 / span 5; }
.foot-brand .brand { font-size: 19px; }
.foot-brand p { margin-top: 14px; color: var(--dim); font-size: 15px; line-height: 1.6; max-width: 24em; }

.foot-col { grid-column: span 3; }
.foot-col:last-child { grid-column: 10 / span 3; }
.foot-col .mono-cap { margin-bottom: 16px; }
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.foot-col a, .foot-col span {
  font-size: 14.5px; color: var(--dim);
  transition: color .3s var(--ease-out);
}
.foot-col a:hover { color: var(--ink); }

.foot-base {
  grid-column: 1 / -1;
  margin-top: clamp(28px, 5vh, 52px);
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
  display: flex; justify-content: space-between; gap: 16px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--faint);
}

/* ==========================================================================
   Reveal states (JS animates from these; without JS everything is visible)
   ========================================================================== */

html.js [data-rise] { opacity: 0; transform: translateY(26px); }
html.js.reduced-motion [data-rise] { opacity: 1; transform: none; }

/* SplitText masking guard: hide split targets until the split has run */
html.js [data-split] { visibility: hidden; }
html.js [data-split].split-ready, html.js.reduced-motion [data-split] { visibility: visible; }

/* ==========================================================================
   No-WebGL fallback — static chrome-gradient mark in the hero
   ========================================================================== */

.static-mark { display: none; }
body.no-webgl .static-mark {
  display: block;
  position: absolute; z-index: 0;
  top: 8vh; right: var(--pad);
  font-family: var(--display); font-weight: 700;
  font-size: clamp(200px, 30vw, 520px); line-height: 1;
  background: linear-gradient(155deg, #fdfdfe 0%, #b9bcc2 38%, #5e6167 62%, #cfd2d7 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none; pointer-events: none;
}
body.no-webgl #gl, body.no-webgl .vignette { display: none; }

/* ==========================================================================
   Legal pages
   ========================================================================== */

.legal main { max-width: 760px; margin: 0 auto; padding: 20vh var(--pad) 12vh; }
.legal h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(38px, 5vw, 64px); letter-spacing: -.02em;
  margin: 16px 0 48px;
}
.legal h2 {
  font-family: var(--display); font-weight: 700; font-size: 21px;
  margin: 44px 0 12px;
}
.legal p { color: var(--dim); line-height: 1.7; font-size: 16px; margin-bottom: 14px; }
.legal p strong { color: var(--ink); font-weight: 500; }
.legal a { color: var(--ink); border-bottom: 1px solid var(--faint); }
.legal a:hover { border-color: var(--dim); }
.legal .back {
  display: inline-block; margin-top: 56px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--dim); border: 0;
}
.legal .back:hover { color: var(--ink); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1180px) {
  .lgrid { grid-template-columns: repeat(2, 1fr); }
  .lcol:nth-child(n) .lcard { min-height: 0; }
  .lcard h3 { margin-top: 0; padding-top: 20px; }
  .leistungen { padding: 14vh 0; }
}

@media (max-width: 640px) {
  .lgrid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .story-copy, .story.flip .story-copy { grid-column: 1 / -1; }
  .story .ghost, .story.flip .ghost {
    right: auto; left: 50%; transform: translate(-50%, -52%);
    opacity: .7;
  }
  .steps { grid-template-columns: 1fr 1fr; gap: 20px; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-col, .foot-col:last-child { grid-column: span 6; }
  .hero-meta { display: none; }
  .hero-inner { padding-bottom: 140px; }
  .head-links .head-link.studio { display: none; }
  .drag-hint { display: none; }   /* would sit on the hero copy; touch finds the toy by itself */
  .foot-base { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  #gl, body.gl-ready #gl { transition: none; }
  .pill, .head-link::after { transition: none; }
}
