:root {
  --ink:#201C19;          /* background          */
  --ink-2:#262019;        /* lifted surface      */
  --ink-3:#1B1815;        /* alt section band    */
  --line:rgba(244,239,231,.09);
  --line-2:rgba(244,239,231,.13);
  --sand:#F4EFE7;         /* primary text        */
  --sand-dim:#B3A99C;     /* muted text          */
  --sand-mute:#857A6F;    /* faint mono labels   */
  --terra:#C56A44;        /* accent              */
  --terra-2:#D98B5E;      /* accent light        */
  --terra-3:#B35E3A;      /* accent hover        */
  --maxw:1180px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  font-family: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--sand);
  background: radial-gradient(130% 90% at 50% -12%, #2C2621 0%, #201C19 56%) fixed, var(--ink);
  -webkit-font-smoothing: antialiased; line-height: 1.65;
  overflow-x: hidden;
}
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px,6vw,80px); }
section { position: relative; z-index: 1; }
a { color: inherit; }

@keyframes gl-pulse { 0%,100%{ transform:scale(1); opacity:1; } 50%{ transform:scale(1.22); opacity:.68; } }

/* ---- cursor glow (follows mouse, behind content) ---- */
.cursor-glow {
  position: fixed; top: 0; left: 0; width: 600px; height: 600px;
  margin: -300px 0 0 -300px; border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(197,106,68,.20), rgba(197,106,68,0) 60%);
  will-change: transform; transition: opacity .4s ease;
}

/* ---- scroll progress ---- */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 100;
  background: var(--terra); transform: scaleX(0); transform-origin: 0 50%;
}

/* ---- nav ---- */
header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  background: rgba(32,28,25,.72);
  border-bottom: 1px solid var(--line);
}
nav { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 18px; }
nav .brand { flex: none; line-height: 0; }
nav .brand img { height: 30px; width: 126px; display: block; }
nav .links { display: flex; align-items: center; gap: clamp(16px,2.4vw,30px); }
nav .links a { text-decoration: none; font-size: .95rem; font-weight: 600; color: var(--sand-dim); transition: color .18s; }
nav .links a:hover { color: var(--sand); }
nav .btn { font-size: .9rem; font-weight: 700; color: #fff; background: var(--terra);
  padding: .55rem 1.05rem; border-radius: 10px; text-decoration: none; transition: background .18s, transform .18s; }
nav .btn:hover { background: var(--terra-3); transform: translateY(-1px); }

/* ---- shared section bits ---- */
.eyebrow { font-family: "JetBrains Mono", monospace; font-weight: 500; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--sand-mute); }
.eyebrow.slash { color: var(--terra); letter-spacing: .16em; }
.eyebrow.slash::before { content: "// "; opacity: .7; }
.eyebrow .num { color: var(--terra); }
h2 { font-size: clamp(1.75rem, 4vw, 2.85rem); font-weight: 700; letter-spacing: -.03em;
  line-height: 1.12; margin: .55rem 0 0; }
.lead { color: var(--sand-dim); max-width: 60ch; margin-top: 1rem; font-size: 1.05rem; }

/* ---- hero ---- */
.hero { padding: clamp(54px,9vh,116px) 0 clamp(48px,7vh,96px); }
.hero-grid { display: flex; align-items: center; gap: clamp(40px,6vw,84px); flex-wrap: wrap; }
.hero-copy { flex: 1 1 460px; max-width: 660px; }
.badge { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px; border-radius: 999px;
  background: rgba(197,106,68,.12); border: 1px solid rgba(197,106,68,.32);
  font-family: "JetBrains Mono", monospace; font-size: .76rem; letter-spacing: .03em; color: #E7B89B; }
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--terra-2);
  animation: gl-pulse 2.6s ease-in-out infinite; }
.hero .eyebrow { margin-top: 1.4rem; display: block; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 800; letter-spacing: -.035em;
  line-height: 1.04; margin: 1rem 0 0; }
.hero h1 .accent { color: var(--terra); }
.hero p.sub { color: var(--sand-dim); font-size: clamp(1.05rem, 1.5vw, 1.2rem); max-width: 54ch; margin-top: 1.4rem; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }
.cta a { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 600;
  font-size: .98rem; padding: .9rem 1.6rem; border-radius: 12px; transition: all .18s ease; }
.cta .primary { background: var(--terra); color: #fff; }
.cta .primary:hover { background: var(--terra-3); transform: translateY(-2px); }
.cta .primary .arrow { font-family: "JetBrains Mono", monospace; }
.cta .ghost { color: var(--sand); border: 1px solid rgba(244,239,231,.22); }
.cta .ghost:hover { border-color: var(--terra-2); color: var(--terra-2); }

.hero-art { flex: 1 1 340px; max-width: 440px; display: flex; justify-content: center; }
.hero-art svg {
  width: 100%; height: auto; max-width: 420px; padding: 28px; border-radius: 24px;
  background-color: #262019;
  background-image: radial-gradient(rgba(244,239,231,.06) 1px, transparent 1px);
  background-size: 22px 22px;
  border: 1px solid rgba(244,239,231,.09);
  box-shadow: 0 30px 60px -32px rgba(0,0,0,.6), inset 0 1px 0 rgba(244,239,231,.05);
}
.hero-art .pulse { transform-box: fill-box; transform-origin: center; animation: gl-pulse 2.8s ease-in-out infinite; }

/* ---- services ---- */
.services { padding: clamp(64px,11vh,128px) 0; background: var(--ink-3);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 2.6rem; }
.card {
  position: relative; overflow: hidden; padding: 1.6rem 1.5rem 1.7rem;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 16px;
  transition: transform .2s ease, border-color .2s ease;
}
.card::before { /* mouse-follow spotlight */
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .25s;
  background: radial-gradient(240px circle at var(--cx,50%) var(--cy,50%), rgba(197,106,68,.16), transparent 70%);
}
.card:hover { transform: translateY(-3px); border-color: rgba(217,139,94,.45); }
.card:hover::before { opacity: 1; }
.card .icon { width: 42px; height: 42px; display: block; margin-bottom: .9rem; position: relative; }
.card .card-num { position: absolute; top: 1.4rem; right: 1.5rem;
  font-family: "JetBrains Mono", monospace; font-size: .82rem; color: var(--terra); letter-spacing: .06em; }
.card h3 { font-size: 1.2rem; font-weight: 700; margin: .7rem 0 .5rem; letter-spacing: -.01em; position: relative; }
.card p { color: var(--sand-dim); font-size: .98rem; position: relative; }

/* ---- vorgehen / process ---- */
.process { padding: clamp(64px,11vh,128px) 0; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(30px,4vw,56px); margin-top: 2.8rem; }
.step-num { font-family: "JetBrains Mono", monospace; font-size: clamp(2.1rem,4.4vw,3.1rem);
  font-weight: 500; color: rgba(197,106,68,.9); line-height: 1; }
.step h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; margin: .7rem 0 .5rem; }
.step p { color: var(--sand-dim); font-size: .98rem; max-width: 40ch; }

/* ---- approach / ansatz ---- */
.approach { padding: clamp(64px,11vh,128px) 0; background: var(--ink-3);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; margin-top: 2.6rem; }
.principle h4 { font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; }
.principle .icon { width: 38px; height: 38px; display: block; margin-bottom: .7rem; }
.principle p { color: var(--sand-dim); margin-top: .5rem; font-size: .96rem; }

/* ---- contact ---- */
.contact { padding: clamp(56px,9vh,110px) 0 clamp(64px,11vh,128px); }
.contact-card { background: var(--ink-2); border: 1px solid rgba(197,106,68,.25); border-radius: 26px;
  padding: clamp(40px,7vw,80px); display: flex; flex-direction: column; align-items: center; gap: 1.1rem;
  text-align: center; box-shadow: 0 30px 70px -42px rgba(0,0,0,.7); }
.contact-card h2 { max-width: 20ch; }
.contact-card .lead { margin-top: 0; }
.mailbtn { display: inline-flex; align-items: center; gap: .55rem; margin-top: .4rem;
  font-weight: 600; font-size: 1.05rem; text-decoration: none; color: #fff;
  background: var(--terra); padding: 1rem 1.9rem; border-radius: 12px; transition: background .18s, transform .18s; }
.mailbtn:hover { background: var(--terra-3); transform: translateY(-2px); }
.contact-card .note { font-family: "JetBrains Mono", monospace; font-size: .78rem; color: var(--sand-mute); letter-spacing: .02em; margin: 0; }

/* ---- footer ---- */
footer { border-top: 1px solid var(--line); }
footer .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding-top: 28px; padding-bottom: 28px; font-family: "JetBrains Mono", monospace; font-size: .78rem; color: var(--sand-dim); }
footer a { text-decoration: none; }
footer a:hover { color: var(--terra-2); }

/* ============================================================
   FANCY SCROLL CHOREOGRAPHY
   ============================================================ */

/* ---- reveal: blurred rise (no-JS shows everything) ---- */
html.js .reveal { opacity: 0; transform: translateY(38px) scale(.975); filter: blur(7px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1), filter .7s ease;
  transition-delay: var(--rd, 0ms); will-change: opacity, transform; }
html.js .reveal.in { opacity: 1; transform: none; filter: none; }

/* ---- hero headline: word-by-word de-blur reveal ---- */
.split { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 800; letter-spacing: -.035em;
  line-height: 1.04; margin: 1rem 0 0; }
.split .accent { color: var(--terra); }
html.js .split .word { display: inline-block; overflow: hidden; vertical-align: top; }
html.js .split .word > span { display: inline-block;
  transform: translateY(110%) rotate(4deg); filter: blur(8px); opacity: 0;
  animation: word-rise .9s cubic-bezier(.2,.7,.2,1) forwards;
  animation-delay: calc(var(--i) * 65ms + 180ms); }
@keyframes word-rise { to { transform: none; filter: blur(0); opacity: 1; } }

/* ---- hero "living graph": self-draw + flowing energy ---- */
html.js .hero-graph .bracket {
  stroke-dasharray: 330; stroke-dashoffset: 330;
  animation: gl-draw 1.5s cubic-bezier(.6,.1,.2,1) .25s forwards; }
html.js .hero-graph .bracket:nth-of-type(2) { animation-delay: .42s; }
@keyframes gl-draw { to { stroke-dashoffset: 0; } }
html.js .hero-graph .node {
  transform: scale(0); transform-box: fill-box; transform-origin: center;
  animation: node-pop .6s cubic-bezier(.3,1.5,.5,1) forwards; }
html.js .hero-graph .node:nth-of-type(1) { animation-delay: 1.0s; }
html.js .hero-graph .node:nth-of-type(2) { animation-delay: 1.12s; }
html.js .hero-graph .node:nth-of-type(3) { animation-delay: 1.24s; }
html.js .hero-graph .node:nth-of-type(4) { animation-delay: 1.36s; }
@keyframes node-pop { 0% { transform: scale(0); } 70% { transform: scale(1.3); } 100% { transform: scale(1); } }
.hero-graph .flow line {
  stroke-dasharray: 3 13; stroke-linecap: round;
  animation: gl-flow 1.4s linear infinite; opacity: .85; }
.hero-graph .flow line:nth-child(2) { animation-delay: .35s; }
.hero-graph .flow line:nth-child(3) { animation-delay: .7s; }
.hero-graph .flow line:nth-child(4) { animation-delay: 1.05s; }
@keyframes gl-flow { to { stroke-dashoffset: -32; } }
.hero-graph { animation: gl-float 7s ease-in-out infinite; }
@keyframes gl-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---- service cards: 3D holographic tilt ---- */
.grid { perspective: 1100px; }
.card { transform-style: preserve-3d; transition: transform .25s cubic-bezier(.2,.7,.2,1), border-color .2s ease, box-shadow .25s ease; }
.card.tilt:hover { border-color: rgba(217,139,94,.55); box-shadow: 0 26px 50px -30px rgba(0,0,0,.75); }
.card .icon, .card .card-num, .card h3, .card p { transform: translateZ(28px); }
.card h3 { transform: translateZ(38px); }
.card .icon { transition: transform .25s ease; }
.card.tilt:hover .icon { transform: translateZ(46px) scale(1.06); }
.card .sheen { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  opacity: 0; transition: opacity .25s ease;
  background: linear-gradient(105deg, transparent 35%, rgba(244,239,231,.10) 48%, transparent 60%);
  background-size: 220% 220%; background-position: var(--sx,0%) var(--sy,0%); }
.card.tilt:hover .sheen { opacity: 1; }

/* ---- vorgehen: timeline that draws with scroll ---- */
.steps { position: relative; }
.steps-line { position: absolute; pointer-events: none; z-index: 0;
  background: rgba(244,239,231,.12); border-radius: 99px; opacity: 0; transition: opacity .4s ease; }
.steps-line.ready { opacity: 1; }
.steps-line-fill { display: block; width: 100%; height: 100%; transform-origin: left center;
  background: linear-gradient(90deg, var(--terra), var(--terra-2)); border-radius: inherit;
  box-shadow: 0 0 16px rgba(197,106,68,.6); }
.steps-line.vertical .steps-line-fill { transform-origin: top center;
  background: linear-gradient(180deg, var(--terra), var(--terra-2)); }
.step { position: relative; padding-top: 30px; }
.step-dot { position: absolute; top: 5px; left: 0; width: 14px; height: 14px; border-radius: 50%;
  background: var(--ink-3); border: 2px solid rgba(244,239,231,.25); z-index: 2;
  transition: background .35s ease, border-color .35s ease, box-shadow .35s ease, transform .35s ease; }
.step.lit .step-dot { background: var(--terra); border-color: var(--terra-2);
  box-shadow: 0 0 0 5px rgba(197,106,68,.18), 0 0 18px rgba(197,106,68,.7); transform: scale(1.15); }
.step .step-num { transition: color .35s ease, text-shadow .35s ease; }
.step.lit .step-num { color: var(--terra); text-shadow: 0 6px 26px rgba(197,106,68,.4); }

@media (max-width: 720px) {
  nav .links a.navlink { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, html.js .reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
  .cursor-glow { display: none; }
  .badge .dot, .hero-graph, .hero-art .pulse, .hero-graph .flow line { animation: none; }
  html.js .split .word > span { animation: none; transform: none; filter: none; opacity: 1; }
  html.js .hero-graph .bracket { animation: none; stroke-dashoffset: 0; }
  html.js .hero-graph .node { animation: none; transform: none; }
}
