/* Erato — shared tokens & components
   Palette is sampled from the renders: linen walls, oak, stone, espresso. */
:root {
  --linen: #F4EFE7;
  --linen-deep: #EAE2D5;
  --sand: #D8CAB5;
  --oak: #9A6B43;
  --espresso: #2A231D;
  --ink-soft: #5E544A;
  --paper: #FFFDF9;
  --line: rgb(42 35 29 / .14);

  --serif: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --gutter: clamp(16px, 4vw, 56px);

  --z-stage: 0;
  --z-ui: 20;
  --z-nav: 40;
  --z-review: 100;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--linen);
  color: var(--espresso);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--oak); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 999; padding: .7rem 1rem;
  background: var(--espresso); color: var(--paper); text-decoration: none;
  transform: translateY(-150%); transition: transform .2s;
}
.skip-link:focus { transform: none; }

.icon {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ------------------------------------------------------------ type */
/* Wordmark is a PLACEHOLDER until the new Erato identity is delivered. */
.wordmark {
  font: 500 1.35rem/1 var(--serif);
  letter-spacing: .42em;
  margin-right: -.42em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.eyebrow {
  margin: 0;
  font: 500 .72rem/1.3 var(--sans);
  letter-spacing: .24em;
  text-transform: uppercase;
}
.display {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.012em;
}
.display em { font-style: italic; }
.status { display: inline-flex; align-items: center; gap: .8rem; }
.status::before { content: ""; width: 32px; height: 1px; background: currentColor; opacity: .55; }

/* ------------------------------------------------------------ nav */
.site-nav {
  position: fixed; inset: 0 0 auto; z-index: var(--z-nav);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: max(14px, env(safe-area-inset-top)) var(--gutter) 14px;
  color: var(--espresso);
  pointer-events: none;
}
.site-nav > * { pointer-events: auto; }
.site-nav--light { color: var(--paper); }
.site-nav__left { justify-self: start; }
.site-nav__right { justify-self: end; }

.nav-link {
  display: inline-flex; align-items: center; gap: .6rem; min-height: 44px;
  font: 500 .74rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none;
}
.nav-link .icon { width: 16px; height: 16px; }
.nav-link__short { display: none; }

.btn-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 44px; padding: 0 1.3rem; border-radius: 999px;
  border: 1px solid currentColor; background: transparent;
  font: 500 .74rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  transition: background .3s var(--ease-out), color .3s var(--ease-out), border-color .3s var(--ease-out);
}
.btn-pill:hover { background: var(--espresso); border-color: var(--espresso); color: var(--paper); }
.btn-pill--solid { background: var(--espresso); border-color: var(--espresso); color: var(--paper); }
.btn-pill--solid:hover { background: var(--oak); border-color: var(--oak); }
.site-nav--light .btn-pill,
.on-image .btn-pill {
  background: rgb(255 253 249 / .12);
  border-color: rgb(255 253 249 / .55);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.site-nav--light .btn-pill:hover,
.on-image .btn-pill:hover { background: var(--paper); border-color: var(--paper); color: var(--espresso); }

/* ------------------------------------------------------------ closing: notify + contact */
.closing {
  position: relative; z-index: 1;
  padding: clamp(88px, 14vw, 180px) var(--gutter) 28px;
  background: var(--linen);
}
.closing__grid {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(56px, 8vw, 128px);
  align-items: start;
}
.closing__title { font-size: clamp(2.8rem, 6.4vw, 5.6rem); margin: 1.4rem 0 1.5rem; }
.closing__lede { margin: 0; max-width: 34ch; color: var(--ink-soft); font-size: 1.08rem; }

.notify { margin-top: 2.6rem; max-width: 520px; }
.notify__label { display: block; color: var(--ink-soft); margin-bottom: .4rem; }
.notify__row {
  display: flex; align-items: center; gap: .8rem;
  border-bottom: 1px solid var(--espresso);
}
.notify__row input {
  flex: 1; min-width: 0; min-height: 56px; border: 0; background: transparent; outline: 0;
  font: 400 1.1rem var(--sans); color: inherit;
}
.notify__row input::placeholder { color: var(--ink-soft); opacity: .8; }
.notify__row:focus-within { border-bottom-color: var(--oak); box-shadow: 0 1px 0 var(--oak); }
.notify__submit {
  display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; padding: 0 .2rem;
  font: 500 .74rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
}
.notify__submit .icon { transition: transform .35s var(--ease-out); }
.notify__submit:hover .icon { transform: translateX(5px); }
.notify__submit[disabled] { opacity: .45; cursor: progress; }
.notify__msg { min-height: 1.6em; margin: .8rem 0 0; font-size: .95rem; color: var(--ink-soft); }
.notify__msg.is-error { color: #8A2F1D; }

.contact-title { margin-bottom: 1.2rem; color: var(--ink-soft); }
.contact-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.contact-list li { border-bottom: 1px solid var(--line); }
.contact-list a {
  display: grid; grid-template-columns: 22px 1fr 18px; align-items: center; gap: 1.1rem;
  min-height: 72px; padding: 1rem 0; text-decoration: none;
}
.contact-list .k { display: block; font: 500 .68rem/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.contact-list .v { display: block; margin-top: .25rem; font: 400 1.3rem/1.25 var(--serif); }
.contact-list .go { opacity: .35; transition: transform .35s var(--ease-out), opacity .35s; }
.contact-list a:hover .go { opacity: 1; transform: translateX(4px); }

.site-foot {
  max-width: 1240px; margin: clamp(88px, 10vw, 150px) auto 0; padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1.6rem;
  font-size: .82rem; color: var(--ink-soft);
}
.site-foot p { margin: 0; }

/* The Fixer signature — fixed spec, colours adapted to the Erato palette */
.fixer-credit { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; color: var(--ink-soft); text-decoration: none; transition: color .25s var(--ease-out); }
.fixer-credit:hover, .fixer-credit:hover .fixer-credit__name { color: var(--espresso); }
.fixer-credit:hover .fixer-credit__mark { opacity: 1; }
.fixer-credit__mark { flex: none; opacity: .7; transition: opacity .25s var(--ease-out); }
.fixer-credit__by { font-family: Arial, Helvetica, sans-serif; font-size: .62rem; font-weight: 400; letter-spacing: .13em; text-transform: uppercase; white-space: nowrap; }
.fixer-credit__name { display: inline-flex; align-items: baseline; font-size: .9rem; line-height: 1; color: var(--espresso); }
.fixer-credit__the { font-family: Arial, Helvetica, sans-serif; font-weight: 400; }
.fixer-credit__fixer { font-family: "Arial Black", "Arial Bold", Arial, Helvetica, sans-serif; font-weight: 900; letter-spacing: -.01em; }

/* ------------------------------------------------------------ reveal */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ------------------------------------------------------------ review switch (concepts only, removed in final) */
.review-switch {
  position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); z-index: var(--z-review);
  display: flex; gap: 4px; padding: 4px; border-radius: 999px; transform: translateX(-50%);
  background: rgb(42 35 29 / .84); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgb(42 35 29 / .25);
}
.review-switch a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  color: var(--paper); opacity: .72; text-decoration: none; white-space: nowrap;
  font: 500 .68rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
}
.review-switch a:hover { opacity: 1; }
.review-switch a[aria-current="page"] { background: var(--paper); color: var(--espresso); opacity: 1; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 760px) {
  .nav-link__long { display: none; }
  .nav-link__short { display: inline; }
  .wordmark { font-size: 1.15rem; letter-spacing: .34em; margin-right: -.34em; }
  .site-nav .btn-pill { padding: 0 .95rem; font-size: .66rem; letter-spacing: .14em; }
  .closing__grid { grid-template-columns: 1fr; }
  .site-foot { flex-direction: column; align-items: flex-start; padding-bottom: 72px; }
  .review-switch { left: auto; right: 12px; transform: none; }
  .review-switch a { padding: 0 14px; }
  .review-switch__long { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
