/* =========================================================
   inceptum.at
   ========================================================= */

:root {
  --bg: #0c0c0d;
  --bg-2: #131315;
  --fg: #ecebe7;
  --fg-dim: #9a9893;
  --fg-faint: #5d5c58;
  --line: rgba(236, 235, 231, 0.12);
  --accent: #c8402c;          /* Siegelrot */
  --accent-soft: rgba(200, 64, 44, 0.14);
  --seal-ink: #f4efe6;

  --header-bg: rgba(12, 12, 13, .72);
  --glow: rgba(200, 64, 44, .10);
  --glow-strong: rgba(200, 64, 44, .12);
  --vignette: rgba(0, 0, 0, .6);
  --sheen: rgba(255, 255, 255, .02);
  --grain: .035;

  color-scheme: dark;

  --font-sans: "Inter", "Helvetica Neue", Helvetica, Arial, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-cjk: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", "SimSun", "Hiragino Mincho ProN", serif;

  --gutter: clamp(20px, 5vw, 72px);
  --maxw: 1240px;
  --ease: cubic-bezier(.22, .8, .2, 1);
}

/* Light theme – per Umschalter oder Systemeinstellung */
:root[data-theme="light"] {
  --bg: #f3efe7;            /* Reispapier */
  --bg-2: #ebe6dc;
  --fg: #1a191b;
  --fg-dim: #57544f;
  --fg-faint: #8b877f;
  --line: rgba(26, 25, 27, 0.13);
  --accent: #b5361f;
  --accent-soft: rgba(181, 54, 31, 0.10);
  --seal-ink: #f7f2e9;

  --header-bg: rgba(243, 239, 231, .78);
  --glow: rgba(181, 54, 31, .08);
  --glow-strong: rgba(181, 54, 31, .09);
  --vignette: rgba(214, 206, 192, .55);
  --sheen: rgba(255, 255, 255, .45);
  --grain: .05;

  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --bg: #f3efe7;            /* Reispapier */
    --bg-2: #ebe6dc;
    --fg: #1a191b;
    --fg-dim: #57544f;
    --fg-faint: #8b877f;
    --line: rgba(26, 25, 27, 0.13);
    --accent: #b5361f;
    --accent-soft: rgba(181, 54, 31, 0.10);
    --seal-ink: #f7f2e9;

    --header-bg: rgba(243, 239, 231, .78);
    --glow: rgba(181, 54, 31, .08);
    --glow-strong: rgba(181, 54, 31, .09);
    --vignette: rgba(214, 206, 192, .55);
    --sheen: rgba(255, 255, 255, .45);
    --grain: .05;

    color-scheme: light;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  transition: background-color .5s var(--ease), color .5s var(--ease);
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

img, svg { display: block; }

h1, h2, h3 { margin: 0; font-weight: 400; letter-spacing: -0.02em; }

p { margin: 0; }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  padding: 10px 14px; background: var(--fg); color: var(--bg); border-radius: 6px;
}
.skip:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }

/* Subtle film grain */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 32px;
  padding: 22px var(--gutter);
  transition: background .4s var(--ease), padding .4s var(--ease), border-color .4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: var(--header-bg);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  padding-top: 14px; padding-bottom: 14px;
  border-color: var(--line);
}

.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.seal { width: 30px; height: 30px; }
.brand-name { font-size: 18px; letter-spacing: .02em; font-weight: 500; }

.nav { display: flex; gap: 32px; font-size: 14px; color: var(--fg-dim); }
.nav a { position: relative; transition: color .3s; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav a:hover { color: var(--fg); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.lang { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--fg-faint); }
.lang button {
  appearance: none; background: none; border: 0; padding: 4px 2px; cursor: pointer;
  font: inherit; color: var(--fg-faint); letter-spacing: .06em; transition: color .3s;
}
.lang button:hover { color: var(--fg-dim); }
.lang button[aria-pressed="true"] { color: var(--fg); }

/* Theme toggle */
.theme-toggle {
  appearance: none; background: none; border: 1px solid var(--line); border-radius: 50%;
  width: 34px; height: 34px; padding: 0; cursor: pointer;
  display: grid; place-items: center; color: var(--fg-dim);
  transition: color .3s, border-color .3s, transform .5s var(--ease);
}
.theme-toggle:hover { color: var(--fg); border-color: var(--fg-faint); transform: rotate(-20deg); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .sun { display: none; }
:root[data-theme="light"] .theme-toggle .sun { display: block; }
:root[data-theme="light"] .theme-toggle .moon { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 140px var(--gutter) 120px;
  overflow: hidden;
}
.hero::before { /* soft vignette glow */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 72% 50%, var(--glow), transparent 70%),
    radial-gradient(120% 80% at 50% 120%, var(--vignette), transparent 60%);
}
.hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.hero-inner { position: relative; max-width: var(--maxw); width: 100%; margin: 0 auto; pointer-events: none; }
.hero-inner a { pointer-events: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--fg-dim);
  margin-bottom: 32px;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(44px, 8.2vw, 124px);
  line-height: .98;
}
/* overflow:hidden nur für die Einblend-Animation – Zeilen dürfen nie schmaler als ihr Text sein */
.hero-title .line { display: block; overflow: hidden; padding: 0 .12em .06em 0; margin-right: -.12em; }
.hero-title .line > span { display: inline-block; max-width: 100%; }
.hero-title em { font-style: italic; color: var(--accent); }

.hero-lead {
  margin-top: 36px; max-width: 34em;
  font-size: clamp(16px, 1.35vw, 19px); color: var(--fg-dim);
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 44px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 50px; padding: 0 26px; border-radius: 999px;
  font-size: 15px; letter-spacing: .01em;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s, transform .35s var(--ease);
}
.btn-primary { background: var(--fg); color: var(--bg); }
.btn-primary:hover { background: var(--accent); color: #fff; }
.btn-ghost { border: 1px solid var(--line); color: var(--fg); }
.btn-ghost:hover { border-color: var(--fg-dim); }

.hero-meta {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 36px;
  display: flex; justify-content: space-between; align-items: flex-end;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-faint);
  pointer-events: none;
}
.glyph-caption b { font-family: var(--font-cjk); font-weight: 400; color: var(--fg-dim); margin-right: 6px; letter-spacing: 0; font-size: 14px; }
.scroll-hint { display: flex; align-items: center; gap: 12px; }
.scroll-hint::after {
  content: ""; width: 1px; height: 44px; background: linear-gradient(var(--fg-faint), transparent);
  animation: drip 2.4s var(--ease) infinite;
  transform-origin: top;
}
@keyframes drip {
  0% { transform: scaleY(0); opacity: 1; }
  60% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin: 0 auto;
  padding: clamp(96px, 14vw, 180px) var(--gutter);
}

.kicker {
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 22px;
}
.section h2 {
  font-family: var(--font-serif);
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.06;
  max-width: 20ch;
}

/* ---------- Services ---------- */
.section-head { margin-bottom: clamp(56px, 8vw, 100px); }

.service-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }

.service {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: clamp(40px, 5vw, 64px) 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.service::before { /* hover line */
  content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .9s var(--ease);
}
.service:hover::before { transform: scaleX(1); }

.service-no {
  font-size: 13px; letter-spacing: .14em; color: var(--fg-faint);
  padding-top: 14px; font-variant-numeric: tabular-nums;
}
.service-body { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 56px; align-items: start; }
.service h3 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.2vw, 44px); line-height: 1.1;
  grid-row: span 2;
}
.service p { color: var(--fg-dim); }

.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  font-size: 13px; color: var(--fg-dim);
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
}

.products { display: grid; gap: 12px; grid-column: 2; }
.product {
  position: relative; display: grid; gap: 6px;
  padding: 22px 56px 22px 24px;
  border: 1px solid var(--line); border-radius: 14px;
  background: linear-gradient(180deg, var(--sheen), transparent);
  transition: border-color .4s var(--ease), background .4s var(--ease), transform .4s var(--ease);
}
.product:hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: var(--accent-soft); transform: translateY(-2px); }
.product-name { font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }
.product-name .tld { color: var(--fg-faint); }
.product-desc { font-size: 14px; color: var(--fg-dim); line-height: 1.5; }
.product .arrow {
  position: absolute; right: 22px; top: 22px; font-size: 18px; color: var(--fg-faint);
  transition: color .3s, transform .4s var(--ease);
}
.product:hover .arrow { color: var(--accent); transform: translate(3px, -3px); }

/* ---------- Approach ---------- */
.approach {
  display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 8vw, 120px); align-items: center;
}
.approach-glyph {
  aspect-ratio: 1; width: 100%; max-width: 440px;
  border: 1px solid var(--line); border-radius: 24px;
  display: grid; place-items: center;
  background:
    radial-gradient(70% 70% at 50% 50%, var(--glow-strong), transparent 70%),
    var(--bg-2);
}
.approach-glyph svg { width: 66%; height: 66%; overflow: visible; }
.approach-glyph .stroke {
  fill: none; stroke: var(--fg); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round;
}
.approach-text > p:not(.kicker) { margin-top: 28px; color: var(--fg-dim); max-width: 36em; }
.approach h2 { max-width: 18ch; }

.principles { margin: 56px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.principles > div {
  display: grid; grid-template-columns: 160px 1fr; gap: 24px;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.principles dt { font-weight: 500; }
.principles dd { margin: 0; color: var(--fg-dim); }

/* ---------- Contact ---------- */
.contact { border-top: 1px solid var(--line); }
.contact-title { font-size: clamp(44px, 7vw, 104px) !important; max-width: 12ch !important; }
.contact-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
  margin-top: clamp(56px, 8vw, 96px);
}
.contact-item { display: grid; gap: 10px; align-content: start; }
.contact-item .label { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-faint); }
.contact-item a, .contact-item address { font-size: clamp(18px, 1.6vw, 22px); font-style: normal; }
.contact-item a { background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); justify-self: start; }
.contact-item a:hover { background-size: 100% 1px; }

/* ---------- Footer ---------- */
.site-footer {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  padding: 32px var(--gutter);
  border-top: 1px solid var(--line);
  font-size: 13px; color: var(--fg-faint);
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .seal { width: 22px; height: 22px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a:hover { color: var(--fg); }

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 160px var(--gutter) 120px; }
.legal h1 { font-family: var(--font-serif); font-size: clamp(40px, 6vw, 72px); margin-bottom: 40px; }
.legal h2 { font-size: 20px; font-weight: 500; margin: 40px 0 12px; letter-spacing: 0; }
.legal p, .legal li { color: var(--fg-dim); }
.legal p + p { margin-top: 12px; }
.legal .back { display: inline-block; margin-top: 56px; color: var(--fg); border-bottom: 1px solid var(--accent); }

/* ---------- Initial animation states (only with JS) ---------- */
.js.motion [data-anim="hero"],
.js.motion .reveal { opacity: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .service { grid-template-columns: 1fr; gap: 12px; }
  .service-no { padding-top: 0; }
  .service-body { grid-template-columns: 1fr; }
  .service h3 { grid-row: auto; }
  .products { grid-column: auto; }
  .approach { grid-template-columns: 1fr; }
  .approach-glyph { max-width: 320px; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 720px) {
  .nav { display: none; }
  .site-header { gap: 16px; }
  .hero { padding-top: 120px; justify-content: flex-end; padding-bottom: 140px; }
  .hero-title { font-size: min(12vw, 56px); }
  .principles > div { grid-template-columns: 1fr; gap: 4px; }
  .glyph-caption { display: none; }
  .hero-meta { justify-content: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
