/* VCleaning: tokens, type, buttons, navigation, footer, motion */

:root {
  --kalk: #f4f2ec;
  --kalk-2: #efece5;
  --linned: #e7e3da;
  --papir: #fbfaf7;
  --blaek: #111513;
  --blaek-2: #454b47;
  --blaek-3: #7a807b;
  --mos: #1f2b25;
  --mos-2: #28372f;
  --salvie: #b8c5b1;
  --salvie-lys: #dfe6da;
  --messing: #b08d57;
  --messing-lys: #d9c29a;
  --line: rgba(17, 21, 19, 0.09);
  --line-2: rgba(17, 21, 19, 0.16);

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Geist", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;

  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --gutter: clamp(1rem, 4vw, 3.5rem);
  --max: 1400px;
  --r-xl: 2rem;
  --r-lg: 1.5rem;
  --r-md: 1rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
  margin: 0;
  background: var(--kalk);
  color: var(--blaek);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 90;
  pointer-events: none;
  opacity: 0.035;
  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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--salvie); color: var(--blaek); }
:focus-visible { outline: 2px solid var(--messing); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
.display, .h2, .h3 { font-family: var(--serif); font-weight: 400; margin: 0; }
.display { line-height: 0.9; letter-spacing: -0.03em; }
.h2 { font-size: clamp(2.6rem, 6vw, 5.5rem); line-height: 0.97; letter-spacing: -0.022em; }
.h3 { font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.02; letter-spacing: -0.015em; }
.display em, .h2 em, .h3 em { font-style: italic; }
.vel { font-style: italic; color: var(--messing); }
.on-dark .vel { color: var(--messing-lys); }
.lede { font-size: clamp(1.0625rem, 1.35vw, 1.25rem); color: var(--blaek-2); max-width: 34em; margin: 0; }
.mono { font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  justify-self: start; width: max-content; max-width: 100%;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  background: rgba(17, 21, 19, 0.04);
  box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--mono);
  font-size: 0.6875rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blaek-2);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--messing); }
.on-dark .eyebrow { background: rgba(244, 242, 236, 0.06); box-shadow: inset 0 0 0 1px rgba(244, 242, 236, 0.12); color: rgba(244, 242, 236, 0.72); }

/* Pending facts: visible in preview until David confirms them */
.pending { border-bottom: 1px dashed var(--messing); color: var(--messing); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--blaek); --fg: var(--kalk);
  display: inline-flex; align-items: center; gap: 0.9rem;
  padding: 0.45rem 0.45rem 0.45rem 1.4rem;
  border: 0; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-size: 0.96875rem; font-weight: 500;
  cursor: pointer; white-space: nowrap;
  transition: transform 0.5s var(--ease), background-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn__icon {
  display: grid; place-items: center;
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: rgba(244, 242, 236, 0.12);
  transition: transform 0.6s var(--ease), background-color 0.6s var(--ease);
}
.btn:hover .btn__icon { transform: translate(3px, -1px) scale(1.06); background: var(--messing); }
.btn svg { width: 15px; height: 15px; }
.btn--ghost { --bg: transparent; --fg: var(--blaek); box-shadow: inset 0 0 0 1px var(--line-2); padding: 0.75rem 1.3rem; }
.btn--ghost:hover { --bg: rgba(17, 21, 19, 0.04); }
.btn--light { --bg: var(--kalk); --fg: var(--blaek); }
.btn--light .btn__icon { background: rgba(17, 21, 19, 0.07); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 1rem; left: 50%; z-index: 60;
  transform: translateX(-50%);
  width: min(calc(100% - 1.5rem), 1120px);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.45rem 0.45rem 0.45rem 1.3rem;
  border-radius: 999px;
  background: rgba(244, 242, 236, 0.74);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: inset 0 0 0 1px var(--line), 0 12px 40px -22px rgba(17, 21, 19, 0.3);
}
.nav__logo img { height: 2rem; width: auto; }
.nav__links { display: none; gap: 0.15rem; }
.nav__links a { padding: 0.5rem 0.85rem; border-radius: 999px; font-size: 0.9375rem; color: var(--blaek-2); transition: background-color 0.4s var(--ease), color 0.4s var(--ease); }
.nav__links a:hover { background: rgba(17, 21, 19, 0.05); color: var(--blaek); }
.nav__right { display: flex; align-items: center; gap: 0.5rem; }
.nav__tel { display: none; padding: 0.5rem 0.8rem; font-family: var(--mono); font-size: 0.8125rem; color: var(--blaek-2); }
.nav__tel:hover { color: var(--blaek); }
.nav__cta { display: none; }
.burger { position: relative; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%; background: var(--blaek); cursor: pointer; }
.burger span { position: absolute; left: 50%; top: 50%; width: 16px; height: 1.5px; background: var(--kalk); transition: transform 0.6s var(--ease); }
.burger span:first-child { transform: translate(-50%, -4px); }
.burger span:last-child { transform: translate(-50%, 3px); }
.menu-open .burger span:first-child { transform: translate(-50%, 0) rotate(45deg); }
.menu-open .burger span:last-child { transform: translate(-50%, 0) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 55;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 7rem var(--gutter) 2.5rem;
  background: rgba(244, 242, 236, 0.92);
  backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.6s var(--ease), visibility 0s linear 0.6s;
}
.menu-open .menu { opacity: 1; visibility: visible; transition: opacity 0.6s var(--ease); }
.menu__link {
  font-family: var(--serif); font-size: clamp(2.75rem, 12vw, 4.5rem); line-height: 1.06; letter-spacing: -0.02em;
  opacity: 0; transform: translateY(2.5rem);
  transition: transform 0.9s var(--ease-out), opacity 0.9s var(--ease-out);
}
.menu-open .menu__link { opacity: 1; transform: none; }
.menu-open .menu__link:nth-child(2) { transition-delay: 0.06s; }
.menu-open .menu__link:nth-child(3) { transition-delay: 0.12s; }
.menu-open .menu__link:nth-child(4) { transition-delay: 0.18s; }
.menu-open .menu__link:nth-child(5) { transition-delay: 0.24s; }
.menu__meta { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-family: var(--mono); font-size: 0.875rem; color: var(--blaek-2); }

/* Mobile action bar */
.actionbar {
  position: fixed; left: 0.75rem; right: 0.75rem; bottom: 0.75rem; z-index: 50;
  display: grid; grid-template-columns: auto 1fr; gap: 0.5rem;
  padding: 0.4rem;
  border-radius: 999px;
  background: rgba(17, 21, 19, 0.9);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transform: translateY(150%);
  transition: transform 0.7s var(--ease);
}
.actionbar.is-on { transform: none; }
.actionbar a { display: grid; place-items: center; padding: 0.8rem 1.2rem; border-radius: 999px; font-size: 0.9375rem; font-weight: 500; }
.actionbar a:first-child { color: var(--kalk); box-shadow: inset 0 0 0 1px rgba(244, 242, 236, 0.18); }
.actionbar a:last-child { background: var(--kalk); color: var(--blaek); }

/* ---------- Double bezel ---------- */
.bezel { padding: 0.5rem; border-radius: var(--r-xl); background: rgba(17, 21, 19, 0.035); box-shadow: inset 0 0 0 1px var(--line); }
.bezel__core { position: relative; overflow: hidden; border-radius: calc(var(--r-xl) - 0.5rem); background: var(--linned); box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5); }
.on-dark .bezel { background: rgba(244, 242, 236, 0.04); box-shadow: inset 0 0 0 1px rgba(244, 242, 236, 0.08); }

/* ---------- Sections ---------- */
.section { padding: clamp(5.5rem, 12vw, 10rem) 0; }
.section__head { display: grid; gap: 1.5rem; margin-bottom: clamp(3rem, 6vw, 5rem); }
.on-dark { background: var(--mos); color: var(--kalk); border-radius: clamp(1.5rem, 3vw, 2.75rem); margin: 0 clamp(0.5rem, 1.2vw, 1rem); }
.on-dark .lede { color: rgba(244, 242, 236, 0.68); }

/* ---------- Footer ---------- */
.footer { padding: clamp(4rem, 8vw, 6rem) 0 calc(2rem + 4.5rem); }
.footer__logo { width: 100%; height: auto; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.footer__grid { display: grid; gap: 2rem; padding-top: 2rem; border-top: 1px solid var(--line); font-size: 0.9375rem; color: var(--blaek-2); }
.footer__grid h4 { margin: 0 0 0.75rem; font-family: var(--mono); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blaek-3); }
.footer__grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.footer__grid a:hover { color: var(--blaek); }
.footer__legal { margin-top: 3rem; font-family: var(--mono); font-size: 0.75rem; color: var(--blaek-3); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(2.5rem); filter: blur(6px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out), filter 1s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; filter: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }

@media (min-width: 768px) {
  .footer { padding-bottom: 2rem; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .actionbar { display: none; }
}
@media (min-width: 1080px) {
  .nav__links, .nav__cta { display: flex; }
  .nav__tel { display: inline-block; }
  .burger { display: none; }
  .section__head { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; gap: 4rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; transition-delay: 0s !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
  html { scroll-behavior: auto; }
}
