:root {
  --cream: #f6f2eb;
  --paper: #fffdf9;
  --ink: #4a3f33;
  --sage: #697060;
  --gold: #b28b55;
  --line: rgba(74, 63, 51, 0.2);
  --serif: "Cormorant Garamond", "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  --sans: "Montserrat", "Avenir Next", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--cream); }
body { margin: 0; color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.65; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.splash {
  position: relative;
  min-height: 100svh;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: clamp(96px, 14vh, 150px) 28px 100px;
  background: #f4eee6;
}

.splash-image {
  position: absolute;
  z-index: -4;
  inset: -4%;
  background: url("assets/hero-dekolistisch.webp") 50% 50% / cover no-repeat;
  transform: scale(1.045);
  animation: drift 18s ease-in-out infinite alternate;
  will-change: transform;
}

.light-wash {
  position: absolute;
  z-index: -3;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(245, 239, 230, 0.08), rgba(248, 244, 238, 0.18) 42%, rgba(248, 244, 238, 0.86) 78%, rgba(248, 244, 238, 0.92)),
    linear-gradient(0deg, rgba(48, 42, 35, 0.15), transparent 32%);
}

.grain {
  position: absolute;
  z-index: -2;
  inset: 0;
  opacity: 0.18;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.monogram {
  position: absolute;
  top: clamp(24px, 5vw, 46px);
  left: clamp(24px, 5vw, 64px);
  width: 72px;
  opacity: 0;
  animation: rise-in 1s 0.1s ease forwards;
}
.monogram img { width: 100%; height: auto; mix-blend-mode: multiply; }

.splash-copy {
  width: min(700px, 100%);
  margin-left: min(35vw, 550px);
  text-align: center;
  text-shadow: 0 1px 18px rgba(255, 253, 249, 0.6);
}

.tagline, .coming-soon { opacity: 0; animation: rise-in 1s ease forwards; }
h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(4.7rem, 9.1vw, 9.4rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.82;
  opacity: 0;
  animation: logo-in 1.2s 0.35s cubic-bezier(.2,.7,.2,1) forwards;
}
.tagline {
  margin: 31px 0 0;
  color: #77695b;
  font-size: clamp(0.66rem, 1vw, 0.82rem);
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  animation-delay: 0.55s;
}
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.brand-wordmark { width: min(100%, clamp(320px, 40vw, 600px)); margin: 0 auto; line-height: 0; opacity: 1; animation: none; text-shadow: none; }
.brand-wordmark svg { display: block; width: 100%; height: auto; overflow: hidden; }
[data-wordmark-motion="pending"] .brand-wordmark svg,
[data-wordmark-motion="writing"] .brand-wordmark svg { opacity: 0; }
[data-wordmark-motion="pending"] .wordmark-ink,
[data-wordmark-motion="writing"] .wordmark-ink { mask: url(#wordmark-pen); }
[data-wordmark-motion] [data-pen-stroke] { visibility: hidden; }
[data-wordmark-motion] .brand-wordmark ~ .tagline,
[data-wordmark-motion] .brand-wordmark ~ .coming-soon { opacity: 0; animation: none; }
.wordmark-finished .brand-wordmark ~ .tagline,
.wordmark-finished .brand-wordmark ~ .coming-soon { opacity: 1; transform: none; animation: none; }
.coming-soon {
  margin: 26px 0 0;
  color: #67594b;
  font-family: var(--serif);
  font-size: clamp(1.125rem, 1.44vw, 1.3125rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.015em;
  animation-delay: 0.85s;
}

.splash-footer {
  position: absolute;
  right: clamp(24px, 5vw, 64px);
  bottom: clamp(22px, 4vw, 42px);
  left: clamp(24px, 5vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--ink);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  animation: rise-in 1s 1s ease forwards;
}
.splash-footer p { position: relative; isolation: isolate; margin: 0; padding: 6px 10px; color: var(--ink); font-size: 0.75rem; }
.splash-footer p::before { content: ""; position: absolute; z-index: -1; inset: -3px -7px; background: rgba(248, 244, 238, .92); filter: blur(8px); }
.splash-footer nav { display: flex; gap: 24px; font-weight: 500; }
.splash-footer a, .footer-contact { text-decoration: none; text-underline-offset: 5px; }
.splash-footer a:hover, .splash-footer a:focus-visible, .footer-contact:hover, .footer-contact:focus-visible { text-decoration: underline; }
.footer-contact { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }

.contact-dialog {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  overflow: auto;
  background: rgba(48, 42, 35, .36);
  backdrop-filter: blur(5px);
}
.contact-dialog[hidden] { display: none; }
.contact-card {
  position: relative;
  width: min(540px, 100%);
  max-height: calc(100svh - 32px);
  overflow: auto;
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid rgba(255,255,255,.7);
  background: rgba(248, 244, 238, .94);
  color: var(--ink);
  box-shadow: 0 30px 90px rgba(55, 45, 35, .24);
  backdrop-filter: blur(18px);
}
.contact-open { overflow: hidden; }
.contact-dialog h2 { max-width: 460px; margin: 0 0 26px; font-family: var(--serif); font-size: clamp(2.2rem, 6vw, 3.35rem); font-weight: 400; line-height: 1.02; }
.dialog-close { position: absolute; top: 18px; right: 20px; width: 42px; height: 42px; border: 0; background: transparent; color: var(--ink); font-family: var(--serif); font-size: 2rem; line-height: 1; cursor: pointer; }
.contact-form { display: grid; gap: 18px; }
.contact-form label { display: grid; gap: 7px; color: #675d53; font-size: .68rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.contact-form input, .contact-form textarea { width: 100%; padding: 10px 0; border: 0; border-bottom: 1px solid rgba(74, 63, 51, .48); border-radius: 0; outline: none; background: transparent; color: var(--ink); font: 1rem/1.5 var(--sans); }
.contact-form textarea { height: 80px; min-height: 80px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
.submit-button { justify-self: start; margin-top: 6px; padding: 12px 18px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font: 500 .72rem/1 var(--sans); letter-spacing: .13em; text-transform: uppercase; cursor: pointer; transition: background .2s, color .2s; }
.submit-button:hover, .submit-button:focus-visible { background: transparent; color: var(--ink); }
.contact-form > p { margin: 6px 0 0; color: #65584b; font-size: .8125rem; line-height: 1.7; }
.contact-form > p a { color: #655c52; text-underline-offset: 3px; }
.contact-email { margin: 24px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: #65584b; font-size: .875rem; }
.contact-email a { display: inline-block; max-width: 100%; color: var(--ink); text-underline-offset: 4px; overflow-wrap: anywhere; user-select: text; }

.legal-page { min-height: 100vh; padding: 90px 24px 60px; background: var(--cream); }
.legal-shell { width: min(700px, 100%); margin: 0 auto; }
.legal-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 72px; }
.legal-brand { width: 68px; }
.legal-brand img { width: 100%; height: auto; mix-blend-mode: multiply; }
.back-link { font-size: 0.74rem; letter-spacing: 0.14em; text-decoration: none; text-transform: uppercase; }
.back-link:hover, .back-link:focus-visible { text-decoration: underline; text-underline-offset: 5px; }
.legal-kicker { margin: 0 0 12px; color: var(--sage); font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; }
.legal-content h1 { margin: 0 0 36px; font-family: var(--serif); font-size: clamp(3.5rem, 8vw, 6rem); font-weight: 400; line-height: 0.95; opacity: 1; animation: none; }
.legal-content h2 { margin: 52px 0 12px; font-family: var(--serif); font-size: 1.575rem; font-weight: 400; line-height: 1.2; }
.legal-content h1 + h2 { margin-top: 0; }
.legal-content p, .legal-content li { color: #655c52; }
.legal-content p:not(.legal-kicker), .legal-content li { line-height: 1.8; overflow-wrap: anywhere; }
.legal-content a { text-underline-offset: 4px; }
.legal-note { margin: 0 0 44px; padding: 20px 22px; border-left: 2px solid var(--gold); background: rgba(255,255,255,.52); }
.legal-footer { display: flex; justify-content: space-between; gap: 24px; margin-top: 96px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .75rem; }
.legal-footer p { margin: 0; }
.legal-footer nav { display: flex; gap: 20px; }

@keyframes drift {
  from { transform: scale(1.045) translate3d(-0.25%, -0.15%, 0); }
  to { transform: scale(1.08) translate3d(0.6%, 0.35%, 0); }
}
@keyframes rise-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes logo-in {
  from { opacity: 0; transform: translateY(18px) scale(.985); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
@media (max-width: 900px) {
  .splash { padding-top: clamp(120px, 24svh, 240px); padding-bottom: max(40px, env(safe-area-inset-bottom)); grid-template-rows: 1fr auto; gap: 72px; align-items: start; }
  .splash-image { background-position: 39% 50%; }
  .light-wash { background: linear-gradient(0deg, rgba(245,239,230,.92), rgba(245,239,230,.86) 12%, rgba(248,244,238,.2) 60%, rgba(248,244,238,.16)); }
  .splash-copy { margin: 0; padding: 34px 20px; text-shadow: none; }
  .splash-copy .brand-wordmark { width: min(75vw, 100%); }
  .splash-copy .tagline { font-size: clamp(.75rem, 1.7vw, .875rem); letter-spacing: .22em; }
  .splash-copy .coming-soon { font-size: clamp(1.1875rem, 2.5vw, 1.3125rem); }
  .splash-footer { position: static; width: 100%; align-items: center; flex-direction: column; gap: 4px; letter-spacing: .1em; text-align: center; }
  .splash-footer p { padding: 0; color: #67594b; }
  .splash-footer p::before { display: none; }
  .splash-footer nav { display: grid; grid-template-columns: repeat(3, 1fr); width: min(100%, 380px); gap: 0; letter-spacing: .06em; }
  .splash-footer nav a, .splash-footer .footer-contact { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 4px; }
}
@media (max-width: 620px) {
  .splash { padding: max(120px, 26svh) 18px max(40px, env(safe-area-inset-bottom)); grid-template-rows: 1fr auto; gap: 72px; align-items: start; }
  .splash-image { background-position: 43% 50%; }
  .monogram { width: 60px; }
  .splash-copy { margin: 0; padding: 16px 12px; }
  .splash-copy h1 { font-size: clamp(3.25rem, 17vw, 5.25rem); }
  .tagline { margin-top: 25px; }
  .coming-soon { margin-top: 22px; }
  .contact-card { padding: 34px 24px 24px; }
  .legal-header { margin-bottom: 32px; }
  .legal-content h2 { font-size: 1.5rem; }
  .legal-footer { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 360px) {
  .splash-footer nav { font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .splash-image { transform: scale(1.045); }
  .wordmark-ink { mask: none !important; }
  .brand-wordmark ~ .tagline, .brand-wordmark ~ .coming-soon { opacity: 1; animation: none; }
}
