/* ============================================================
   to-freefinance — modernized editorial stylesheet
   ============================================================ */

:root {
  /* light palette */
  --bg:           #faf6ec;
  --bg-alt:       #f3ede0;
  --paper:        #fbf8f2;
  --ink:          #1c1b1a;
  --ink-soft:     #3b3935;
  --ink-mute:     #6e6960;
  --rule:         #d8d2c3;
  --rule-strong:  #1c1b1a;

  --amber:        #b8702b;
  --amber-deep:   #8b5320;
  --amber-glow:   rgba(184, 112, 43, 0.18);
  --steel:        #3f5160;

  /* shadows for elevation (subtle, warm) */
  --shadow-sm: 0 1px 2px rgba(28, 27, 26, 0.04), 0 2px 6px rgba(28, 27, 26, 0.04);
  --shadow-md: 0 2px 6px rgba(28, 27, 26, 0.05), 0 8px 22px rgba(28, 27, 26, 0.08);
  --shadow-lg: 0 4px 12px rgba(28, 27, 26, 0.06), 0 18px 48px rgba(28, 27, 26, 0.12);

  /* typography */
  --serif:  "Fraunces", "Times New Roman", serif;
  --sans:   "Instrument Sans", "Helvetica Neue", system-ui, sans-serif;
  --mono:   "JetBrains Mono", "Menlo", monospace;

  /* spatial */
  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 4px;
  --radius-lg: 10px;

  /* motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:           #15130f;
    --bg-alt:       #1c1916;
    --paper:        #201d18;
    --ink:          #f0e9d8;
    --ink-soft:     #c8c0ad;
    --ink-mute:     #8a8273;
    --rule:         #3a342a;
    --rule-strong:  #f0e9d8;
    --amber:        #d49060;
    --amber-deep:   #b8702b;
    --amber-glow:   rgba(212, 144, 96, 0.22);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3), 0 2px 6px rgba(0,0,0,0.25);
    --shadow-md: 0 2px 6px rgba(0,0,0,0.35), 0 8px 22px rgba(0,0,0,0.4);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.4), 0 18px 48px rgba(0,0,0,0.5);
  }
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  font-feature-settings: "ss01", "ss02";
  overflow-x: hidden;
}

::selection {
  background: var(--ink);
  color: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
  text-decoration-color: var(--rule);
  text-underline-offset: 0.18em;
  transition: text-decoration-color 0.2s var(--ease), color 0.2s var(--ease);
}
a:hover { text-decoration: underline; text-decoration-color: var(--amber); }

em { font-style: italic; }
strong { font-weight: 600; }

code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: rgba(28, 27, 26, 0.06);
  padding: 0.08em 0.4em;
  border-radius: 2px;
}
@media (prefers-color-scheme: dark) {
  code { background: rgba(240, 233, 216, 0.08); }
}

/* ------------------------------------------------------------
   grain (much subtler than before)
   ------------------------------------------------------------ */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.022;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.1 0 0 0 0 0.1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  .grain { mix-blend-mode: screen; opacity: 0.04; }
}

/* ------------------------------------------------------------
   scroll progress bar
   ------------------------------------------------------------ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  z-index: 200;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--amber-deep), var(--amber));
  transform-origin: left center;
  transition: width 60ms linear;
}

/* ============================================================
   topbar
   ============================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  border-bottom: 1px solid var(--rule);
}

.topbar__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.95rem var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
}

.topnav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 999px;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  transition: background 0.2s var(--ease);
}
.topnav-toggle:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.topnav-toggle__bar {
  display: block;
  width: 0.95rem;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.topbar.is-open .topnav-toggle__bar:nth-child(1) {
  transform: translateY(2.75px) rotate(45deg);
}
.topbar.is-open .topnav-toggle__bar:nth-child(2) {
  transform: translateY(-2.75px) rotate(-45deg);
}

.wordmark {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  font-feature-settings: "ss01";
}
.wordmark__bracket { color: var(--ink-mute); font-weight: 300; }
.wordmark__arrow { color: var(--amber); }

.topnav {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.topnav a { white-space: nowrap; }

.topmeta {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  white-space: nowrap;
}
.meta-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--amber-glow); }
  50% { box-shadow: 0 0 0 6px transparent; }
}

@media (max-width: 1100px) {
  .topnav { gap: 1rem; font-size: 0.68rem; }
}

@media (max-width: 940px) {
  .topbar__inner { grid-template-columns: 1fr auto auto; gap: 1rem; }
  .topnav-toggle { display: inline-flex; }
  .topnav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: color-mix(in srgb, var(--bg) 96%, transparent);
    backdrop-filter: blur(14px) saturate(1.1);
    -webkit-backdrop-filter: blur(14px) saturate(1.1);
    border-bottom: 1px solid var(--rule);
    flex-direction: column;
    gap: 0;
    padding: 0.6rem var(--gutter) 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.32s var(--ease), padding 0.32s var(--ease);
    pointer-events: none;
  }
  .topnav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--rule);
    width: 100%;
    text-align: left;
    font-size: 0.78rem;
  }
  .topnav a:last-child { border-bottom: 0; }
  .topbar.is-open .topnav {
    max-height: 80vh;
    pointer-events: auto;
  }
  .topmeta__text { display: none; }
}

@media (max-width: 480px) {
  .topbar__inner { padding: 0.7rem var(--gutter); gap: 0.7rem; }
  .wordmark { font-size: 1.05rem; }
}

/* ============================================================
   layout helpers
   ============================================================ */
main { position: relative; z-index: 2; }

.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) var(--gutter);
  position: relative;
}

.section--alt {
  background: var(--bg-alt);
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}
.section--alt > * {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section__head {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 2rem;
  row-gap: 0.4rem;
  align-items: baseline;
  margin-bottom: 3rem;
  border-top: 1px solid var(--ink);
  padding-top: 1.4rem;
}

.section__num {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--amber);
  grid-row: 1 / span 2;
  align-self: start;
  padding-top: 0.6rem;
  font-weight: 600;
}

.section__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  font-feature-settings: "ss01";
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.section__title em { font-style: italic; color: var(--ink); }

.section__kicker {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin: 0;
  grid-column: 2;
}

/* ============================================================
   hero — simplified, breathing
   ============================================================ */
.hero {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) var(--gutter) clamp(5rem, 10vw, 8rem);
  position: relative;
  min-height: 82vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__inner {
  max-width: 56rem;
  position: relative;
  z-index: 2;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 2.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4em 0.9em 0.4em 0.6em;
  background: var(--amber-glow);
  border-radius: 999px;
}
.eyebrow__pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  animation: pulse 2.4s ease-in-out infinite;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(2.5rem, 7.4vw, 6.2rem);
  line-height: 0.98;
  letter-spacing: -0.028em;
  margin: 0 0 2rem;
  font-feature-settings: "ss01";
  font-variation-settings: "opsz" 144, "SOFT" 30, "wght" 350;
  animation: title-breathe 12s ease-in-out infinite;
  max-width: 18ch;
}
.hero__title em {
  font-style: italic;
  color: var(--amber);
  font-weight: 350;
  font-variation-settings: "opsz" 144, "SOFT" 60, "wght" 350;
}
@keyframes title-breathe {
  0%, 100% { font-variation-settings: "opsz" 144, "SOFT" 30, "wght" 350; }
  50%      { font-variation-settings: "opsz" 144, "SOFT" 80, "wght" 380; }
}

.hero__lead {
  max-width: 38em;
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 2.5rem;
}

.hero__cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  padding: 0.95em 1.6em;
  border-radius: 999px;
  text-decoration: none !important;
  border: 1px solid var(--ink);
  transition: all 0.25s var(--ease);
  cursor: pointer;
}
.btn--primary {
  background: var(--ink);
  color: var(--bg);
}
.btn--primary:hover {
  background: var(--amber-deep);
  border-color: var(--amber-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--bg);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn__arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease);
}
.btn:hover .btn__arrow { transform: translateY(2px); }

.hero__sub {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  align-items: baseline;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 1rem;
  color: var(--ink-mute);
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  max-width: 50rem;
}
.hero__sub-sig {
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
}

.hero__scroll {
  position: absolute;
  bottom: clamp(1.5rem, 4vw, 3rem);
  right: var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  z-index: 1;
}
.hero__scroll-line {
  display: block;
  width: 1px;
  height: 4rem;
  background: linear-gradient(to bottom, transparent, var(--ink));
}
.hero__scroll-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

@media (max-width: 700px) {
  .hero__scroll { display: none; }
  .eyebrow { font-size: 0.7rem; }
}

/* ============================================================
   prose
   ============================================================ */
.prose p {
  font-size: 1.085rem;
  line-height: 1.7;
  margin: 0 0 1.2em;
  color: var(--ink-soft);
  max-width: 68ch;
}
.prose p:last-child { margin-bottom: 0; }

/* ============================================================
   01 — painlist (modern numbered cards)
   ============================================================ */
.painlist {
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--ink);
}
.painlist li {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 2rem;
  padding: 1.8rem 1.2rem 1.8rem 1.2rem;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
  position: relative;
}
.painlist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--amber);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 0.4s var(--ease);
}
.painlist li:hover {
  background: var(--paper);
}
.painlist li:hover::before { transform: scaleY(1); }
.painlist__num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1;
  color: var(--amber);
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144, "SOFT" 60;
}
.painlist p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 68ch;
}

@media (max-width: 600px) {
  .painlist li { grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.5rem 0.6rem; }
  .painlist__num { font-size: 2rem; }
}

/* ============================================================
   02 — diptych
   ============================================================ */
.diptych {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--ink);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper);
}
.diptych__panel {
  padding: 2.6rem clamp(1.5rem, 3vw, 2.4rem);
  transition: background 0.3s var(--ease);
}
.diptych__panel--is {
  background: var(--paper);
  border-right: 1px solid var(--ink);
}
.diptych__panel--isnt { background: transparent; }
.diptych__panel:hover { background: color-mix(in srgb, var(--paper) 70%, var(--amber-glow)); }

.diptych__panel header { margin-bottom: 1.5rem; }
.diptych__panel h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0.5rem 0 0;
}
.diptych__panel ul { margin: 0; padding: 0; list-style: none; }
.diptych__panel li {
  padding: 1rem 0;
  border-top: 1px solid var(--rule);
  font-size: 0.97rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.diptych__panel li:first-child { padding-top: 0.4rem; border-top: 0; }

.tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25em 0.75em;
  border-radius: 999px;
  display: inline-block;
}
.tag--positive { background: var(--ink); color: var(--bg); }
.tag--negative { background: transparent; color: var(--ink); border: 1px solid var(--ink); }

@media (max-width: 760px) {
  .diptych { grid-template-columns: 1fr; }
  .diptych__panel--is { border-right: 0; border-bottom: 1px solid var(--ink); }
}

/* ============================================================
   03 — architecture diagram
   ============================================================ */
.arch {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 2rem clamp(1rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-sm);
}
.arch__scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--rule) transparent;
}
.arch__scroll::-webkit-scrollbar { height: 6px; }
.arch__scroll::-webkit-scrollbar-thumb { background: var(--rule); border-radius: 3px; }
.arch__scroll::-webkit-scrollbar-track { background: transparent; }

.arch__svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
@media (max-width: 720px) {
  .arch__svg {
    min-width: 720px;
  }
}

.arch__node rect {
  transition: filter 0.3s var(--ease), transform 0.3s var(--ease);
  transform-box: fill-box;
  transform-origin: center;
}
.arch__node:hover rect {
  filter: drop-shadow(0 6px 18px rgba(28,27,26,0.18));
}
.arch__node--bridge rect {
  filter: drop-shadow(0 4px 14px rgba(28,27,26,0.18));
}

.arch__particles circle {
  filter: drop-shadow(0 0 3px rgba(184, 112, 43, 0.4));
}
@media (prefers-color-scheme: dark) {
  .arch__particles circle { filter: drop-shadow(0 0 4px rgba(212, 144, 96, 0.6)); }
}

.arch figcaption {
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule);
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-mute);
  max-width: 70ch;
}

/* ============================================================
   04 — bento (Nutzen)
   ============================================================ */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.bento__group-label {
  grid-column: 1 / -1;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding: 1.6rem 0 0.4rem;
  border-bottom: 1px solid var(--rule);
}
.bento__group-label--first { padding-top: 0.4rem; }

.bento__cell {
  grid-column: span 2;
  padding: 1.6rem 1.4rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}
.bento__cell:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--ink-mute);
}

.bento__cell--feature {
  grid-column: span 3;
  grid-row: span 2;
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.bento__cell--feature h4,
.bento__cell--feature p { color: inherit; }
.bento__cell--feature .bento__num { color: var(--amber); }
.bento__cell--feature p { opacity: 0.85; }

.bento__cell--feature-alt {
  background: var(--amber);
  color: #1c1109;
  border-color: var(--amber);
}
.bento__cell--feature-alt .bento__num { color: #1c1109; opacity: 0.6; }
.bento__cell--feature-alt p { color: inherit; opacity: 0.85; }

.bento__cell--wide { grid-column: span 4; }

.bento__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--amber);
  margin-bottom: 0.6rem;
  display: inline-block;
}
.bento__cell h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.15rem;
  margin: 0 0 0.55rem;
  letter-spacing: -0.005em;
  line-height: 1.25;
}
.bento__cell--feature h4 { font-size: clamp(1.3rem, 2vw, 1.7rem); margin-bottom: 0.8rem; }
.bento__cell p {
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(4, 1fr); }
  .bento__cell { grid-column: span 2; }
  .bento__cell--feature { grid-column: span 4; grid-row: auto; }
  .bento__cell--wide { grid-column: span 4; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .bento__cell,
  .bento__cell--feature,
  .bento__cell--wide { grid-column: 1 / -1; }
}

/* ============================================================
   05 — modes
   ============================================================ */
.modes {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: stretch;
  margin-top: 2.5rem;
}
.mode {
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: 2rem clamp(1.2rem, 3vw, 2.2rem);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.mode:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.mode--secondary {
  background: var(--bg);
  border-color: var(--rule);
}

.modes__vs {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 1.4rem;
  color: var(--amber);
  width: 4rem;
  position: relative;
}
.modes__vs::before,
.modes__vs::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 1px;
  background: var(--rule);
  height: calc(50% - 1.5rem);
}
.modes__vs::before { top: 0; }
.modes__vs::after { bottom: 0; }

.mode__label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  display: block;
  margin-bottom: 0.55rem;
}
.mode--secondary .mode__label { color: var(--ink-mute); }
.mode h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.6rem;
  margin: 0 0 0.5rem;
  letter-spacing: -0.015em;
}
.mode__sub {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 0.98rem;
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
}
.mode__body h4 {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 1.4rem 0 0.6rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}
.mode__body h4:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.mode__body ul {
  margin: 0;
  padding: 0 0 0 1.1rem;
  font-size: 0.96rem;
  color: var(--ink-soft);
  line-height: 1.55;
}
.mode__body li { margin-bottom: 0.4rem; }
.mode__fit {
  margin: 1.3rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-size: 0.92rem;
  color: var(--ink-mute);
}
.mode__fit em { color: var(--ink-soft); font-style: italic; }

.callout {
  margin-top: 2rem;
  padding: 1.6rem 1.8rem;
  border-left: 3px solid var(--amber);
  background: var(--paper);
  border-radius: var(--radius);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.callout p { margin: 0; }
.callout--note {
  background: var(--bg);
  border-left-color: var(--ink);
  margin-top: 3rem;
}
.callout--note strong {
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  font-size: 1.05em;
  color: var(--ink);
}

@media (max-width: 900px) {
  .modes { grid-template-columns: 1fr; gap: 1.2rem; }
  .modes__vs {
    width: 100%;
    height: 3rem;
    font-size: 1.15rem;
  }
  .modes__vs::before, .modes__vs::after {
    top: 50%; bottom: auto; left: 0; width: calc(50% - 1.5rem); height: 1px;
  }
  .modes__vs::after { left: auto; right: 0; }
}

/* ============================================================
   06 — timeline (roadmap)
   ============================================================ */
.timeline {
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
}

.tl-phase {
  display: grid;
  grid-template-columns: 1.5rem 14rem 1fr;
  column-gap: 2.5rem;
  padding: 2rem 0 2.4rem;
  position: relative;
}
.tl-phase__rail {
  grid-column: 1;
  grid-row: 1 / -1;
  width: 1px;
  background: var(--rule);
  margin-left: 0.6rem;
  position: relative;
}
.tl-phase::before {
  content: "";
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  margin-top: 0.85rem;
  margin-left: 0.25rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 2px solid var(--amber);
  box-shadow: 0 0 0 4px var(--bg-alt);
  z-index: 1;
}
.tl-phase:first-child::before {
  background: var(--amber);
}

.tl-phase__head {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.3rem;
}
.tl-phase__num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 3rem;
  line-height: 1;
  color: var(--amber);
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144, "SOFT" 60;
}
.tl-phase__time {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.tl-phase__body {
  grid-column: 3;
  max-width: 60ch;
}
.tl-phase__body h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.5rem;
  margin: 0 0 0.6rem;
  letter-spacing: -0.01em;
}
.tl-phase__body p {
  margin: 0 0 0.8rem;
  color: var(--ink-soft);
  line-height: 1.65;
}
.tl-phase__deliverable {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.96rem;
  color: var(--ink) !important;
  margin-top: 1rem !important;
  padding: 0.7rem 1rem;
  background: color-mix(in srgb, var(--amber-glow) 100%, transparent);
  border-radius: var(--radius);
  display: inline-block;
}
.tl-phase__deliverable span {
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin-right: 0.6em;
}

@media (max-width: 980px) {
  .tl-phase { grid-template-columns: 1.5rem 11rem 1fr; column-gap: 1.5rem; }
}
@media (max-width: 760px) {
  .tl-phase {
    grid-template-columns: 1.5rem 1fr;
    column-gap: 1rem;
  }
  .tl-phase__head {
    grid-column: 2;
    flex-direction: row;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
  }
  .tl-phase__body { grid-column: 2; margin-top: 0.6rem; }
  .tl-phase__num { font-size: 2.2rem; }
}

/* ============================================================
   features (Section 05)
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.features-col {
  padding: 1.8rem clamp(1rem, 2.5vw, 2.2rem);
}
.features-col + .features-col {
  border-left: 1px solid var(--rule);
}
.features-col__h {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 1.6rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--rule);
}
.features-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.features-list li {
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--rule);
  position: relative;
  transition: padding-left 0.3s var(--ease);
}
.features-list li:last-child { border-bottom: 0; }
.features-list li::before {
  content: "";
  position: absolute;
  left: -0.4rem;
  top: 1.65rem;
  width: 0;
  height: 1.5px;
  background: var(--amber);
  transition: width 0.3s var(--ease);
}
.features-list li:hover { padding-left: 1.2rem; }
.features-list li:hover::before { width: 0.9rem; }

.features-list h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.12rem;
  margin: 0 0 0.45rem;
  letter-spacing: -0.005em;
  line-height: 1.25;
}
.features-list p {
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

@media (max-width: 760px) {
  .features-grid { grid-template-columns: 1fr; }
  .features-col + .features-col {
    border-left: 0;
    border-top: 1px solid var(--ink);
  }
}

/* ============================================================
   pakete (Section 07) — tiers + add-ons
   ============================================================ */
.tiers {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0 3.5rem;
  align-items: stretch;
}
.tier {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.tier:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--ink-mute);
}
.tier--featured {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  position: relative;
}
.tier--featured::after {
  content: "Empfohlen";
  position: absolute;
  top: -0.7rem;
  right: 1.4rem;
  background: var(--amber);
  color: #1c1109;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.3em 0.7em;
  border-radius: 999px;
}

.tier > header { margin-bottom: 1.2rem; }
.tier__label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: block;
  margin-bottom: 0.55rem;
}
.tier__label--accent { color: var(--amber); }
.tier h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.45rem;
  margin: 0 0 0.55rem;
  letter-spacing: -0.01em;
}
.tier__pitch {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 0.98rem;
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.45;
}
.tier--featured .tier__pitch { color: inherit; opacity: 0.85; }

.tier ul {
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
  flex: 1;
}
.tier ul li {
  padding: 0.75rem 0;
  border-top: 1px solid var(--rule);
  font-size: 0.94rem;
  line-height: 1.5;
  color: var(--ink-soft);
  position: relative;
  padding-left: 1.4rem;
}
.tier ul li::before {
  content: "›";
  position: absolute;
  left: 0;
  top: 0.75rem;
  color: var(--amber);
  font-family: var(--mono);
}
.tier ul li:first-child { border-top: 0; padding-top: 0.4rem; }
.tier ul li:first-child::before { top: 0.4rem; }

.tier--featured ul li { color: inherit; opacity: 0.92; border-top-color: rgba(240, 233, 216, 0.18); }
.tier--featured ul li::before { color: var(--amber); }

.tier__fit {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-size: 0.86rem;
  color: var(--ink-mute);
  font-family: var(--mono);
  letter-spacing: 0.04em;
}
.tier__fit em {
  color: var(--ink-soft);
  font-style: italic;
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0;
}
.tier--featured .tier__fit {
  border-top-color: rgba(240, 233, 216, 0.18);
  color: rgba(240, 233, 216, 0.6);
}
.tier--featured .tier__fit em { color: rgba(240, 233, 216, 0.85); }

.addons__h {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 2rem 0 1.5rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.addons__h span {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 0.92rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-soft);
}
.addons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.addon {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.4rem;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.addon:hover {
  border-color: var(--amber);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.addon h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.08rem;
  margin: 0 0 0.5rem;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.addon p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

@media (max-width: 980px) {
  .tiers { grid-template-columns: 1fr; }
  .tier--featured::after { right: 1.2rem; }
  .addons { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .addons { grid-template-columns: 1fr; }
}

/* ============================================================
   tech grid
   ============================================================ */
.techgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.techcol {
  padding: 1.8rem 1.5rem;
  background: var(--bg);
  transition: background 0.3s var(--ease);
}
.techcol:hover { background: var(--paper); }
.techcol h4 {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 0.8rem;
}
.techcol p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

@media (max-width: 880px) { .techgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .techgrid { grid-template-columns: 1fr; } }

/* ============================================================
   contact
   ============================================================ */
.section--contact { padding-bottom: clamp(5rem, 10vw, 8rem); }
.contact { max-width: 60ch; }
.contact__lead {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  line-height: 1.4;
  margin: 0 0 2.5rem;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 96, "SOFT" 50;
}
.contact__details {
  margin: 0 0 2.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--ink);
}
.contact__details > div {
  padding: 1.2rem 1.2rem 1.2rem 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 6rem 1fr;
  align-items: baseline;
}
.contact__details dt {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.contact__details dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.05rem;
}
.contact__details a { text-decoration: underline; text-decoration-color: var(--amber); }
.contact__sig {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
}

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

/* ============================================================
   footer
   ============================================================ */
.foot {
  border-top: 1px solid var(--ink);
  padding: 2.5rem 0;
  background: var(--bg-alt);
}
.foot__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.foot__col--right { text-align: right; }
.foot__brand {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.05rem;
  margin: 0 0 0.3rem;
}
.foot__small {
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--ink-mute);
  margin: 0;
}
.foot__small a {
  text-decoration: underline;
  text-decoration-color: var(--rule);
}
@media (max-width: 700px) {
  .foot__inner { grid-template-columns: 1fr; }
  .foot__col--right { text-align: left; }
}

/* ============================================================
   page-load animations
   ============================================================ */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.eyebrow,
.hero__title,
.hero__lead,
.hero__cta,
.hero__sub {
  opacity: 0;
  animation: rise 0.95s var(--ease-out) forwards;
}
.eyebrow      { animation-delay: 0.1s; }
.hero__title  { animation-delay: 0.25s; }
.hero__lead   { animation-delay: 0.55s; }
.hero__cta    { animation-delay: 0.7s; }
.hero__sub    { animation-delay: 0.85s; }

.section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.section.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
  .section { opacity: 1; transform: none; }
  .hero__title { animation: none; }
}
