/* ============================================================
   Renko Steinkunst — Naturstein-Cinematic / Craft
   GaLaBau & Natursteine · seit 1938 · Stein-Grau + Sandstein
   ============================================================ */

/* --- Self-hosted fonts --- */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/cormorant-400.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-500.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/cormorant-600.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/cormorant-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-600.woff2") format("woff2"); }

/* --- Design Tokens --- */
:root {
  /* Stone-grey brand */
  --c-brand: #4a4540;
  --c-brand-dark: #322e2a;
  --c-brand-light: #6a6258;
  --c-brand-soft: rgba(74, 69, 64, 0.08);

  /* Warm sandstone accent */
  --c-sand: #b89160;
  --c-sand-dark: #8e6c43;
  --c-sand-light: #cdb088;

  /* Paper / Ink */
  --c-paper: #f4efe6;
  --c-paper-warm: #ece4d6;
  --c-paper-deep: #ddd2bf;
  --c-ink: #211f1c;
  --c-ink-mute: rgba(33, 31, 28, 0.64);
  --c-ink-faint: rgba(33, 31, 28, 0.34);
  --c-rule: rgba(33, 31, 28, 0.18);

  /* Charcoal for dark sections */
  --c-charcoal: #23211e;
  --c-charcoal-deep: #16140f;

  /* Aged-parchment cream — text on dark BG */
  --c-cream: #d8cbac;
  --c-cream-mute: rgba(216, 203, 172, 0.78);
  --c-cream-faint: rgba(216, 203, 172, 0.5);

  /* Spacing rhythm */
  --gap-xs: 0.5rem;
  --gap-sm: 0.875rem;
  --gap-md: 1.5rem;
  --gap-lg: 2.5rem;
  --gap-xl: 4rem;
  --gap-2xl: 7rem;

  /* Type */
  --f-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --f-body: "Inter", system-ui, -apple-system, sans-serif;
  --f-ui: "Inter", system-ui, -apple-system, sans-serif;

  /* Sizes */
  --size-hero: clamp(3.2rem, 9vw, 8rem);
  --size-h1: clamp(2.4rem, 5vw, 4.2rem);
  --size-h2: clamp(1.8rem, 3.2vw, 2.8rem);
  --size-h3: clamp(1.2rem, 2vw, 1.6rem);
  --size-eyebrow: 0.76rem;
  --size-body: clamp(1rem, 1.05vw, 1.06rem);
  --size-small: 0.875rem;

  --line-tight: 1.04;
  --line-snug: 1.25;
  --line-normal: 1.6;
  --line-loose: 1.75;
}

/* --- Reset & base --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-paper);
  color: var(--c-ink);
  font-family: var(--f-body);
  font-size: var(--size-body);
  line-height: var(--line-normal);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  background-image:
    radial-gradient(rgba(33,31,28,0.022) 1px, transparent 1px),
    radial-gradient(rgba(33,31,28,0.014) 1px, transparent 1px);
  background-position: 0 0, 13px 13px;
  background-size: 26px 26px, 26px 26px;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--c-sand-dark); }
::selection { background: var(--c-sand); color: var(--c-charcoal); }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 500;
  line-height: var(--line-tight);
  letter-spacing: -0.01em;
  margin: 0 0 var(--gap-md);
  color: var(--c-ink);
}
.h-hero { font-size: var(--size-hero); font-weight: 400; letter-spacing: -0.025em; }
.h-1 { font-size: var(--size-h1); }
.h-2 { font-size: var(--size-h2); }
.h-3 { font-size: var(--size-h3); }
p { margin: 0 0 var(--gap-md); }
.eyebrow {
  font-family: var(--f-ui);
  font-size: var(--size-eyebrow);
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: var(--c-sand-dark);
  font-weight: 600;
  display: inline-block;
  margin-bottom: var(--gap-sm);
}
.eyebrow.ink { color: var(--c-ink-mute); }
em, .italic { font-style: italic; }
.serif-it { font-family: var(--f-display); font-style: italic; font-weight: 400; }
.drop-cap::first-letter {
  font-family: var(--f-display);
  font-size: 4.2em;
  float: left;
  line-height: 0.82;
  margin: 0.06em 0.1em 0 0;
  color: var(--c-sand-dark);
  font-weight: 500;
}

/* --- Layout containers --- */
.shell { max-width: 1280px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
.shell-tight { max-width: 860px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
.shell-wide { max-width: 1480px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
section { padding: var(--gap-2xl) 0; }
section.tight { padding: var(--gap-xl) 0; }

/* --- Rule lines --- */
.rule { border-top: 1px solid var(--c-rule); margin: 0; }
.rule-thick { border-top: 2px solid var(--c-ink); margin: 0; }
.rule-haircline { height: 1px; background: var(--c-rule); position: relative; }
.rule-haircline::after {
  content: ""; position: absolute; left: 0; top: 50%; height: 1px; background: var(--c-sand);
  width: 0; transition: width 1.2s cubic-bezier(.2,.7,.2,1);
}
.in-view .rule-haircline::after { width: 100%; }

/* --- Navigation --- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 239, 230, 0.9);
  backdrop-filter: saturate(150%) blur(11px);
  -webkit-backdrop-filter: saturate(150%) blur(11px);
  border-bottom: 1px solid var(--c-rule);
}
.nav-inner {
  max-width: 1480px; margin: 0 auto;
  padding: 0.75rem clamp(1.25rem, 4vw, 2.5rem);
  display: flex; align-items: center; justify-content: space-between; gap: var(--gap-md);
}
.nav-brand { display: inline-flex; align-items: center; gap: 13px; }
.nav-logo { height: 42px; width: auto; flex-shrink: 0; transition: transform .35s; }
.nav-brand:hover .nav-logo { transform: scale(1.05) rotate(-1.5deg); }
.nav-wordmark { display: flex; flex-direction: column; line-height: 1.05; }
.nav-wordmark strong {
  font-family: var(--f-display); font-weight: 600; font-size: 1.18rem; color: var(--c-brand);
  letter-spacing: 0.01em;
}
.nav-wordmark .sub {
  font-family: var(--f-ui); font-size: 0.62rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--c-ink-mute); margin-top: 1px;
}
.nav-menu { display: flex; gap: var(--gap-md); align-items: center; }
.nav-menu a {
  font-family: var(--f-ui); font-size: 0.85rem; font-weight: 500;
  color: var(--c-ink); padding: 0.4rem 0; position: relative; letter-spacing: 0.01em;
}
.nav-menu a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px;
  height: 1.5px; background: var(--c-sand); transition: right .3s;
}
.nav-menu a:hover::after, .nav-menu a.active::after { right: 0; }
.nav-cta {
  font-family: var(--f-ui); font-size: 0.82rem; font-weight: 600;
  padding: 0.55rem 1.1rem; background: var(--c-sand-dark);
  color: var(--c-paper) !important; border-radius: 999px;
  transition: background .25s, transform .25s;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--c-brand); transform: translateY(-1px); }

.nav-burger { display: none; flex-direction: column; gap: 4px; padding: 8px; cursor: pointer; background: transparent; border: 0; }
.nav-burger span { width: 22px; height: 1.6px; background: var(--c-ink); display: block; transition: transform .3s, opacity .3s; }
.nav-mobile {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  background: var(--c-paper); border-bottom: 1px solid var(--c-rule);
  padding: var(--gap-md) clamp(1.25rem, 4vw, 2.5rem);
}
.nav-mobile.open { display: block; }
.nav-mobile a { display: block; padding: 0.65rem 0; font-family: var(--f-ui); font-size: 1rem; border-bottom: 1px solid var(--c-rule); }
.nav-mobile a:last-child { border-bottom: 0; }
@media (max-width: 940px) {
  .nav-menu { display: none; }
  .nav-burger { display: flex; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 0.9rem 1.6rem;
  font-family: var(--f-ui); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: 999px; transition: all .25s; cursor: pointer; border: 0;
}
.btn-primary { background: var(--c-sand-dark); color: var(--c-paper); }
.btn-primary:hover { background: var(--c-brand); color: var(--c-paper); transform: translateY(-2px); box-shadow: 0 12px 30px -12px rgba(74,69,64,0.5); }
.btn-ghost { background: transparent; color: var(--c-ink); border: 1px solid var(--c-ink); }
.btn-ghost:hover { background: var(--c-ink); color: var(--c-paper); }
.btn-light { background: var(--c-cream); color: var(--c-charcoal); }
.btn-light:hover { background: #fff; transform: translateY(-2px); }
.btn-outline-light { background: transparent; color: var(--c-cream); border: 1px solid var(--c-cream-mute); }
.btn-outline-light:hover { background: var(--c-cream); color: var(--c-charcoal); }
.btn .arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translateX(4px); }

/* --- Footer --- */
.footer {
  background: var(--c-charcoal);
  color: var(--c-cream);
  padding: var(--gap-2xl) 0 var(--gap-md);
  margin-top: 0;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: var(--gap-xl); align-items: start; }
.footer-brand h3 { font-size: 1.7rem; color: var(--c-cream); margin-bottom: var(--gap-sm); font-weight: 600; }
.footer-brand p { color: var(--c-cream-mute); font-style: italic; font-size: 0.95rem; }
.footer-logo { height: 56px; width: auto; margin-bottom: var(--gap-md); filter: brightness(1.05); }
.footer-col h4 {
  font-family: var(--f-ui); font-size: 0.72rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--c-sand-light); margin-bottom: var(--gap-md); font-weight: 600;
}
.footer-col a, .footer-col p {
  display: block; padding: 0.28rem 0; margin: 0;
  font-family: var(--f-body); font-size: 0.9rem; color: var(--c-cream-mute); line-height: 1.6;
}
.footer-col a:hover { color: var(--c-sand-light); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--gap-md);
  padding-top: var(--gap-md); margin-top: var(--gap-xl);
  border-top: 1px solid rgba(216,203,172,0.16);
  font-family: var(--f-ui); font-size: 0.76rem; color: var(--c-cream-faint); letter-spacing: 0.04em;
}
.footer-bottom a { color: var(--c-cream-mute); }
.footer-bottom a:hover { color: var(--c-sand-light); }
.footer-notrack { color: var(--c-cream-faint); font-size: 0.74rem; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; gap: var(--gap-lg); } }

/* --- Scroll-Reveal entrance --- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal[data-delay="100"] { transition-delay: 100ms; }
.reveal[data-delay="200"] { transition-delay: 200ms; }
.reveal[data-delay="300"] { transition-delay: 300ms; }
.reveal[data-delay="400"] { transition-delay: 400ms; }
.reveal[data-delay="500"] { transition-delay: 500ms; }

/* --- Section header --- */
.section-head { text-align: center; margin-bottom: var(--gap-xl); }
.section-head .ornament { display: inline-block; width: 42px; height: 1px; background: var(--c-sand); margin: 0 var(--gap-sm); vertical-align: middle; }
.section-head h2 { margin: 0 auto; max-width: 24ch; }
.section-head p { font-family: var(--f-display); font-style: italic; font-size: 1.2rem; color: var(--c-ink-mute); max-width: 56ch; margin: var(--gap-sm) auto 0; }

/* --- Scroll-progress bar --- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--c-sand-dark), var(--c-sand));
  transform-origin: left center; transform: scaleX(0); z-index: 100; pointer-events: none;
}

/* --- Demo notice pill --- */
.demo-notice {
  position: fixed; left: 16px; bottom: 16px; z-index: 90;
  background: rgba(35,33,30,0.92); color: var(--c-cream);
  font-family: var(--f-ui); font-size: 0.7rem; letter-spacing: 0.04em;
  padding: 0.5rem 0.85rem; border-radius: 999px;
  border: 1px solid rgba(216,203,172,0.22);
  backdrop-filter: blur(6px); max-width: 78vw; line-height: 1.3;
}
.demo-notice strong { color: var(--c-sand-light); }

/* --- Mobile sticky CTA --- */
.sticky-cta {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  background: var(--c-sand-dark); color: var(--c-paper);
  padding: 0.85rem var(--gap-md);
  align-items: center; justify-content: space-between; gap: var(--gap-sm);
  box-shadow: 0 -8px 28px -12px rgba(0,0,0,0.4);
}
.sticky-cta .label { font-family: var(--f-display); font-style: italic; font-size: 1.05rem; }
.sticky-cta a { background: var(--c-paper); color: var(--c-charcoal); padding: 0.5rem 1rem; border-radius: 999px; font-family: var(--f-ui); font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }
@media (max-width: 940px) {
  .sticky-cta { display: flex; }
  body { padding-bottom: 64px; }
  .demo-notice { bottom: 72px; }
}

:focus-visible { outline: 2px solid var(--c-sand-dark); outline-offset: 3px; }

/* --- Reduce motion (global guard; component file extends) --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-progress { transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
@media print { .nav, .footer, .scroll-progress, .demo-notice, .sticky-cta { display: none; } }
