:root {
  --canvas: #efeeeb;
  --ink: #0a0a0a;
  --muted: #6b6862;
  --line: rgba(10, 10, 10, .14);
  --accent: #d12424;
  --paper: #f7f2e8;
  --sumi: #15120f;
  --font-display: "Funnel Display", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-kanji: "Yuji Syuku", serif;
  --pad: clamp(16px, 3vw, 48px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }
body {
  margin: 0;
  background: var(--canvas); color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(.9375rem, 1.111vw, 1rem); line-height: 1.55; letter-spacing: -.01em;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

/* ---------- icons (../Images/icons/sprite.svg) ---------- */
:root { --sw-accent: var(--accent); }
.icon {
  width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em;
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .4s var(--ease);
}
.wave { display: inline-flex; align-items: center; gap: .5em; }
.btn:hover .icon, .footer-big:hover .icon { transform: translate(3px, 0); }
.footer-big { gap: .25em; }
.footer-big .icon { width: .7em; height: .7em; stroke-width: 2.2; }

h1, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.accent { color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow {
  display: block;
  font-family: var(--font-mono); font-size: .75rem; font-weight: 500; letter-spacing: .06em;
  color: var(--muted); text-transform: uppercase;
}

/* ---------- letter wave on hover (same as the main site) ---------- */
.wave-inner { display: inline-flex; overflow: hidden; line-height: 1.25; }
.wave .ch {
  display: inline-block; white-space: pre;
  transition: transform .45s var(--ease);
  transition-delay: calc(var(--i) * 18ms);
  text-shadow: 0 1.25em 0 currentColor;
}
.wave:hover .ch, .wave:focus-visible .ch { transform: translateY(-1.25em); }

/* ---------- nav (same as the main site) ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--pad);
  font-family: var(--font-mono); font-size: .8rem; font-weight: 500; letter-spacing: .04em;
}
.logo { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; letter-spacing: .12em; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { text-transform: uppercase; }

main { padding: 0 var(--pad); }

/* ---------- intro ---------- */
.intro {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap;
  padding: clamp(28px, 6vh, 72px) 0 28px;
}
.title {
  font-size: clamp(3.4rem, 11vw, 10.5rem); font-weight: 800;
  letter-spacing: -.055em; line-height: .85; margin-top: 10px;
  animation: rise 1.1s var(--ease) both;
}
@keyframes rise { from { transform: translateY(30%); opacity: 0; } }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.4rem); line-height: 1.25; max-width: 26rem; }

/* ---------- feelings ---------- */
.feelings {
  display: flex; flex-direction: column; gap: 10px;
  padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  font-family: var(--font-mono); font-size: .75rem; font-weight: 500; text-transform: uppercase; letter-spacing: .05em;
  border: 1px solid var(--ink); border-radius: 999px; padding: 8px 16px;
  transition: background .3s, color .3s, border-color .3s;
}
.pill:hover, .pill.active { background: var(--ink); color: var(--canvas); }
.pill-accent { border-color: var(--accent); color: var(--accent); }
.pill-accent:hover, .pill-accent.active { background: var(--accent); color: #fff; }
.pill:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.pill:disabled { opacity: .45; cursor: default; }

/* ---------- stage: paper, ink stone, brush ---------- */
.stage { position: relative; margin: clamp(80px, 11vh, 130px) 0 28px; }
.paper {
  position: relative; overflow: hidden;
  min-height: clamp(360px, 42vw, 560px);
  margin-right: clamp(70px, 9vw, 130px);
  border-radius: 6px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .28 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at 30% 20%, #fbf8f1, transparent 70%),
    var(--paper);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 30px 60px -34px rgba(60, 40, 20, .45);
}
.ink { position: absolute; inset: 0; width: 100%; height: 100%; }
.kanji {
  position: absolute; left: 4%; top: 50%; translate: 0 -50%;
  font-family: var(--font-kanji); font-size: clamp(9rem, 26vw, 22rem); line-height: 1;
  color: var(--accent); opacity: 0; transition: opacity 1.6s ease;
  pointer-events: none; user-select: none;
}
.kanji.show { opacity: .08; }
.kanji-meaning {
  position: absolute; left: 20px; top: 16px;
  font-family: var(--font-mono); font-size: .7rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); opacity: 0; transition: opacity .8s ease;
}
.kanji-meaning.show { opacity: 1; }
.source {
  position: absolute; left: 0; right: 0; bottom: clamp(20px, 3vw, 34px); text-align: center;
  font-family: var(--font-mono); font-size: .8rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); opacity: 0; transform: translateY(6px); transition: opacity .8s ease, transform .8s var(--ease);
}
.source.show { opacity: 1; transform: none; }

.hanko {
  position: absolute; right: clamp(16px, 3vw, 36px); bottom: clamp(16px, 3vw, 30px);
  width: clamp(48px, 5.5vw, 66px); aspect-ratio: 1;
  border-radius: 8px; background: var(--accent);
  opacity: 0; transform: scale(1.6) rotate(-14deg);
  mix-blend-mode: multiply;
}
.hanko span {
  position: absolute; inset: 14%;
  background: var(--paper);
  -webkit-mask: url("../Images/logo's/sua-wilhelm-sw-site.svg") center / contain no-repeat;
  mask: url("../Images/logo's/sua-wilhelm-sw-site.svg") center / contain no-repeat;
}
.hanko.show { animation: stamp .55s cubic-bezier(.3, 1.4, .5, 1) forwards; }
@keyframes stamp {
  0% { opacity: 0; transform: scale(1.6) rotate(-14deg); }
  60% { opacity: .95; transform: scale(.94) rotate(-5deg); }
  100% { opacity: .9; transform: scale(1) rotate(-6deg); }
}

.suzuri {
  position: absolute; right: 0; bottom: 18px;
  width: clamp(58px, 7vw, 96px); aspect-ratio: .62;
  border-radius: 14px 14px 18px 18px;
  background: linear-gradient(160deg, #3a3633, #1a1816 60%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .08), 0 18px 30px -14px rgba(0, 0, 0, .5);
}
.suzuri span {
  position: absolute; left: 14%; right: 14%; top: 10%; height: 34%;
  border-radius: 50% / 40%;
  background: radial-gradient(ellipse at 40% 35%, #3b3834, #050404 70%);
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, .7);
}

.brush {
  position: absolute; pointer-events: none;
  filter: drop-shadow(10px 18px 10px rgba(40, 25, 10, .28));
}

/* ---------- actions ---------- */
.actions { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; padding-bottom: clamp(48px, 8vh, 96px); }
.btn {
  font-family: var(--font-mono); font-size: .8rem; font-weight: 500; text-transform: uppercase; letter-spacing: .04em;
  padding: 12px 22px; border-radius: 999px;
  background: var(--ink); color: var(--canvas); border: 1px solid var(--ink);
  transition: background .3s, color .3s, opacity .3s;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--canvas); }
.btn:disabled { opacity: .4; cursor: default; pointer-events: none; }
.voice-controls { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.voice-credit { font-family: var(--font-mono); font-size: .7rem; color: var(--muted); }
.voice-credit a { text-decoration: underline; }
#voice[aria-pressed="true"] { background: var(--ink); color: var(--canvas); }
@media (max-width: 800px) { .voice-controls { margin-left: 0; } }
.status { font-family: var(--font-mono); font-size: .75rem; color: var(--muted); }

/* ---------- footer (same as the main site) ---------- */
.footer { background: var(--ink); color: var(--canvas); padding: clamp(60px, 8vw, 120px) var(--pad) 28px; }
.footer-line { font-size: clamp(1.4rem, 3vw, 2.6rem); letter-spacing: -.03em; color: #bfbab2; }
.footer-big {
  display: inline-flex; max-width: 100%; margin: 32px 0 80px;
  font-size: clamp(1.6rem, 6.4vw, 7rem); font-weight: 800; letter-spacing: -.05em; line-height: 1.05;
}
.footer-big:hover { color: var(--accent); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  font-family: var(--font-mono); font-size: .75rem; color: #918e89;
  border-top: 1px solid rgba(239, 238, 235, .15); padding-top: 20px;
}
.footer-bottom a:hover { color: var(--canvas); }

@media (max-width: 800px) {
  .nav-mail { display: none; }
  .nav-links { gap: 18px; }
  .paper { margin-right: 0; min-height: 420px; }
  .suzuri { right: 10px; bottom: auto; top: -70px; width: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hanko.show { opacity: .9; transform: rotate(-6deg); }
}
