/* ──────────────────────────────────────────────────────────────
   layout.css — page shell, masthead, hero, sections, footer
   ────────────────────────────────────────────────────────────── */

.page {
  position: relative;
  z-index: 1;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}

/* Header */
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem 0;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.95rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: var(--text-cream);
  text-decoration: none;
  line-height: 1;
}

.brand em {
  font-style: normal;
  color: var(--gold);
}

/* Host element for the Three.js logo. Fixed pixel size so the canvas
   has a stable aspect ratio and ResizeObserver has something to read. */
.brand-mark {
  position: relative;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  display: inline-block;
}

@media (max-width: 720px) {
  .brand-mark {
    width: 60px;
    height: 60px;
  }
}

.brand-text {
  display: inline-block;
}

.masthead nav ul {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  flex-wrap: wrap;
}

.masthead a:not(.brand) {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber-dark);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.masthead a:not(.brand):hover { color: var(--gold); }

/* Hero (landing layout, not visitenkarte frame) */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding: clamp(2rem, 6vw, 4rem) 0 clamp(3rem, 8vw, 5rem);
  align-items: center;
}

@media (min-width: 880px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem 4rem;
  }
}

.hero-copy .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--amber-dark);
  margin-bottom: 1rem;
}

.hero-copy .eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.55);
  flex-shrink: 0;
}

.hero-copy .eyebrow::after {
  content: '';
  width: 56px;
  height: 1px;
  background: linear-gradient(90deg, rgba(200, 133, 10, 0.55), transparent);
}

.hero-copy h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: 0.02em;
  color: var(--text-cream);
  max-width: 14ch;
}

.hero-copy .lead {
  margin-top: 1.35rem;
  font-size: 1rem;
  max-width: 38ch;
  color: var(--text-dim);
  line-height: 1.75;
}

.hero-copy .lead strong {
  color: var(--gold-muted);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  margin-top: 2rem;
  align-items: center;
}

.hero-meta-line {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(120, 60, 10, 0.28);
  font-size: 13px;
  color: var(--text-subtle);
}

.hero-meta-line span {
  color: var(--text-dim);
}

/* Hero visual — direct echo of the visitenkarte's back side:
   centred logo in concentric rings, brand monogram, italic motto,
   diamond/rule ornaments above and below, all set on a forge-dark
   panel with sparks and an ember glow. */
.hero-visual {
  position: relative;
  min-height: 380px;
  border-radius: 4px;
  background:
    radial-gradient(ellipse 70% 55% at 50% 100%, rgba(210, 70, 5, 0.28) 0%, transparent 65%),
    radial-gradient(ellipse 45% 40% at 12% 10%, rgba(180, 60, 5, 0.18) 0%, transparent 65%),
    linear-gradient(180deg, #0e0b05 0%, #0a0805 100%);
  border: 1px solid var(--border);
  overflow: hidden;
}

.hero-visual-inner {
  position: relative;
  z-index: 3;
  height: 100%;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  padding: 2.25rem 2rem;
  gap: 1.25rem;
}

.hero-emblem {
  position: relative;
  width: 132px;
  height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.25rem 0;
}

.hero-emblem .emblem-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(200, 133, 10, 0.32);
  border-radius: 50%;
}

.hero-emblem .emblem-ring.inner {
  inset: 10px;
  border-color: rgba(200, 133, 10, 0.16);
}

/* Host element for the Three.js hammer logo, now centred in the rings */
.hero-emblem .emblem-mark {
  position: relative;
  width: 78px;
  height: 78px;
  display: block;
}

/* Three.js logo canvas */
.hero-logo-canvas {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 0.8s var(--ease);
  filter: drop-shadow(0 0 14px rgba(245, 158, 11, 0.45));
}

.hero-logo-canvas.is-ready {
  opacity: 1;
}

.hero-visual .monogram {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  color: var(--text-cream);
  letter-spacing: 0.14em;
}

.hero-visual .monogram em {
  font-style: normal;
  color: var(--gold);
}

.hero-visual-motto {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--gold-muted);
  letter-spacing: 0.04em;
  max-width: 22ch;
  line-height: 1.45;
}

.hero-visual-tag {
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-top: 0.1rem;
}

/* Smaller diamond ornament in the masthead replaces the giant
   3D mark (which now lives in the hero). */
.brand-mark.brand-mark-diamond {
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.brand-mark.brand-mark-diamond .diamond {
  width: 9px;
  height: 9px;
}

.brand-mark.brand-mark-diamond .rule {
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 133, 10, 0.55));
}

/* Section scaffolding */
section.block {
  padding-top: clamp(3.5rem, 9vw, 5.5rem);
}

.block-head {
  max-width: 520px;
  margin-bottom: 2.5rem;
}

.block-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-muted);
  margin-bottom: 0.85rem;
}

.block-kicker::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.55);
  flex-shrink: 0;
}

.block-kicker::after {
  content: '';
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, rgba(200, 133, 10, 0.55), transparent);
}

.block-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  color: var(--text-cream);
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.block-desc {
  margin-top: 0.85rem;
  font-size: 0.95rem;
  color: var(--text-dim);
  max-width: 42ch;
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 720px) {
  .process-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
  }
}

/* Footer */
.site-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(120, 60, 10, 0.2);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.site-footer .loc {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--amber-dark);
}

.site-footer .loc::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
  opacity: 0.7;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.45);
}

@media (max-width: 720px) {
  .masthead {
    flex-direction: column;
    align-items: flex-start;
  }
}
