*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --accent: #c8a96e;
  --dark:   #111;
  --bg:     #e8e6e3;
}
html { scroll-behavior: auto; }
html, body { background: var(--bg); overflow-x: hidden; }
body { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; color: var(--dark); }

/* ── Header ── */
#site-header {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%);
  width: calc(100% - 48px); max-width: 1040px; z-index: 300;
  border-radius: 999px; overflow: hidden;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(32px) saturate(180%) brightness(110%);
  -webkit-backdrop-filter: blur(32px) saturate(180%) brightness(110%);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55), 0 25px 60px rgba(0,0,0,0.25), 0 6px 16px rgba(0,0,0,0.15);
  transition: background 0.5s ease, box-shadow 0.5s ease;
}
#site-header.scrolled { background: rgba(255,255,255,0.12); box-shadow: inset 0 1px 0 rgba(255,255,255,0.55), 0 32px 72px rgba(0,0,0,0.32); }
.header-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; height: 52px; padding: 0 28px; }
.header-logo { font-size: 15px; font-weight: 600; letter-spacing: -0.02em; color: rgba(255,255,255,0.92); text-decoration: none; }
.header-nav { display: flex; align-items: center; gap: 6px; position: absolute; left: 50%; transform: translateX(-50%); }
.header-nav a { font-size: 13px; font-weight: 400; letter-spacing: -0.01em; color: rgba(255,255,255,0.62); text-decoration: none; padding: 6px 12px; border-radius: 999px; transition: color 0.25s ease; white-space: nowrap; }
.header-nav a:hover { color: rgba(255,255,255,0.95); }
.header-cta { padding: 8px 20px; border-radius: 999px; font-size: 12.5px; font-weight: 500; color: rgba(255,255,255,0.90); text-decoration: none; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.22); transition: background 0.25s ease; white-space: nowrap; }
.header-cta:hover { background: rgba(255,255,255,0.22); }
.header-burger { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 36px; height: 36px; background: none; border: none; cursor: pointer; padding: 4px; }
.header-burger span { display: block; width: 18px; height: 1.5px; background: rgba(255,255,255,0.8); border-radius: 2px; }
@media (max-width: 760px) { .header-nav, .header-cta { display: none; } .header-burger { display: flex; } }

/* ── Shared hero/scroll-section styles ── */
.scroll-section { position: relative; height: 300vh; }
.animation-wrapper {
  position: sticky; top: 0; height: 100vh; height: var(--app-height, 100svh);
  width: 100%; overflow: hidden; background: #000;
}
.anim-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.vignette {
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: linear-gradient(to top, rgba(0,0,0,.65) 0%, transparent 50%), linear-gradient(to bottom, rgba(0,0,0,.20) 0%, transparent 35%);
}
.flash-overlay { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 3; }

.text-layer { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.panel { position: absolute; bottom: 0; left: 0; right: 0; padding: 0 8vw 9vh; opacity: 0; transform: translateY(20px); will-change: opacity, transform; }
.panel__tag { font-size: clamp(9px,1vw,12px); letter-spacing: .25em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.panel__title { font-size: clamp(32px,5.8vw,82px); font-weight: 800; line-height: 1.04; color: #fff; text-shadow: 0 2px 48px rgba(0,0,0,.45); max-width: 12ch; }
.panel__sub { margin-top: 16px; font-size: clamp(13px,1.2vw,17px); line-height: 1.72; color: rgba(255,255,255,.75); max-width: 44ch; }
.panel__btn {
  display: inline-block; margin-top: 28px; padding: 13px 34px;
  border: 1.5px solid var(--accent); color: var(--accent);
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; pointer-events: auto; transition: background .2s, color .2s;
}
.panel__btn:hover { background: var(--accent); color: var(--dark); }

#intro-text { position: absolute; inset: 0; z-index: 4; pointer-events: none; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 9vh; }
#intro-tagline { margin-top: 14px; font-size: clamp(11px, 1.1vw, 15px); letter-spacing: .32em; text-transform: uppercase; color: var(--accent); opacity: 0; transition: opacity 0.6s ease; }

.scroll-hint {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,.45); font-size: 9px; letter-spacing: .22em; text-transform: uppercase;
  z-index: 5; pointer-events: none; transition: opacity .4s;
}
.hint-line { width: 1px; height: 44px; background: linear-gradient(to bottom, transparent, rgba(200,169,110,.7)); animation: grow 2s ease-in-out infinite; }
@keyframes grow { 0% { transform: scaleY(0); transform-origin: top; opacity: 0; } 60% { transform: scaleY(1); transform-origin: top; opacity: 1; } 100% { transform: scaleY(1); transform-origin: top; opacity: 0; } }

.no-webgl .anim-canvas { display: none; }
.no-webgl-msg {
  display: none; position: absolute; inset: 0; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 40%, #201a10 0%, #000 70%);
  color: rgba(255,255,255,.5); font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
}
.no-webgl .no-webgl-msg { display: flex; }

/* ── Fixed UI ── */
#bar { position: fixed; bottom: 0; left: 0; height: 2px; background: var(--accent); width: 0; z-index: 200; pointer-events: none; }
#dots { position: fixed; right: 22px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 9px; z-index: 200; pointer-events: none; }
.dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,0.28); transition: background .3s, transform .3s; }
.dot.on { background: var(--accent); transform: scale(1.8); }

/* ── Content sections ── */
.section { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 12vh 8vw; }
.s-craft  { background: var(--bg); }
.s-praxis { background: #141414; color: #fff; }
.s-law    { background: #f3f1ed; }
.s-inner  { max-width: 960px; width: 100%; }
.s-tag    { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.s-title  { font-size: clamp(26px,4vw,56px); font-weight: 800; line-height: 1.1; margin-bottom: 22px; }
.s-body   { font-size: clamp(14px,1.2vw,18px); line-height: 1.8; opacity: .7; max-width: 56ch; }
.s-praxis .s-body { opacity: .6; }
.grid  { display: grid; grid-template-columns: repeat(auto-fit,minmax(230px,1fr)); gap: 24px; margin-top: 48px; }
.card  { border: 1px solid rgba(200,169,110,.25); padding: 30px 24px; transition: border-color .25s, transform .25s; }
.card:hover { border-color: var(--accent); transform: translateY(-4px); }
.card-icon  { font-size: 24px; margin-bottom: 12px; }
.card-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.card-text  { font-size: 13px; line-height: 1.72; opacity: .68; }
.s-praxis .card { border-color: rgba(255,255,255,.08); }
.s-praxis .card:hover { border-color: var(--accent); }

/* ── Footer note (dev-only comparison banner) ── */
#compare-banner {
  position: fixed; left: 12px; bottom: 12px; z-index: 400;
  font-size: 10px; letter-spacing: .08em; color: rgba(255,255,255,.55);
  background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.12);
  padding: 6px 10px; border-radius: 6px; pointer-events: none;
}

@media (max-width: 768px) {
  .panel { padding: 0 6vw 12vh; }
  .grid  { grid-template-columns: 1fr; }
  .section { padding: 10vh 6vw; }
}
