/* design/home-preview/css/base.css
   Purpose: tokens, self-hosted fonts, reset, nav, type scale, buttons, footer — shared by every section.
   NOT for: section layouts (hero-work.css, sections.css). Single source of the palette = styleguide.html.
   WHY self-hosted fonts: no third-party request before first paint, no Google Fonts cookie banner question. */
@font-face { font-family: "Fraunces"; src: url("/assets/home/fonts/fraunces-normal.woff2") format("woff2");
  font-weight: 300 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/assets/home/fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Raleway"; src: url("/assets/home/fonts/raleway-normal.woff2") format("woff2");
  font-weight: 400 600; font-style: normal; font-display: swap; }

:root {
  --ink: #1b1a19; --ink-2: #242221; --stone: #2e2b29; --line: rgba(239,232,223,.14);
  --gold: #9a8a78; --gold-hi: #c9b79f; --cream: #efe8df; --mute: #a59d93; --error: #e3a58f;
  --serif: "Fraunces", Georgia, serif; --sans: "Raleway", system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1); --gutter: clamp(1rem, 4vw, 4rem);
  --section: clamp(5rem, 3rem + 8vw, 11rem);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--ink); color: var(--cream); font-family: var(--sans); -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { background: var(--ink); line-height: 1.6; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; color: var(--gold-hi); }
ol, ul { list-style: none; }
::selection { background: var(--gold); color: var(--ink); }

/* Film grain over everything: a static SVG noise tile, no blend mode, so it is one composited layer and costs no scroll work. */
body::after { content: ""; position: fixed; inset: 0; z-index: 40; pointer-events: none; opacity: .06;
  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='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 50; padding: .8rem 1.2rem; background: var(--gold); color: var(--ink); }
.skip:focus { top: 1rem; }

.nav { position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; gap: 2rem;
  padding: 1.1rem var(--gutter); background: linear-gradient(var(--ink) 30%, transparent); transition: background .4s; }
.nav--solid { background: rgba(27,26,25,.94); }
.nav__logo { flex: none; }
.nav__logo img { height: 40px; width: auto; }
.nav__links { display: none; gap: 2.2rem; margin-left: auto; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; }
.nav__links a { position: relative; color: var(--mute); transition: color .3s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav__links a:hover { color: var(--cream); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__call { margin-left: auto; padding: .6rem 1rem; border: 1px solid var(--gold); color: var(--gold-hi);
  font-size: .78rem; letter-spacing: .1em; white-space: nowrap; transition: background .3s, color .3s; }
.nav__call:hover { background: var(--gold); color: var(--ink); }
.nav__call span { display: none; }

.eyebrow { font-size: .72rem; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); }
.title { font-family: var(--serif); font-weight: 300; font-size: clamp(2.2rem, 1rem + 4vw, 4.6rem);
  line-height: 1.02; letter-spacing: -.015em; margin-top: 1rem; font-variation-settings: "opsz" 144; }
.lead { max-width: 34rem; margin-top: 1.6rem; color: var(--mute); font-size: 1.05rem; line-height: 1.8; }
.num { font-family: var(--serif); font-size: .95rem; color: var(--gold); letter-spacing: .08em; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 1rem 1.8rem; border: 0; cursor: pointer;
  font: 500 .76rem/1.2 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--cream); background: none;
  transition: background .35s var(--ease), color .35s, border-color .35s, transform .35s var(--ease); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-hi); transform: translateY(-2px); }
.btn--gold:active { transform: translateY(0); }
.btn--line { border: 1px solid rgba(239,232,223,.3); }
.btn--line:hover { border-color: var(--gold-hi); color: var(--gold-hi); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 4px; }

.reveal { opacity: 0; transform: translateY(28px); animation: rise 1.1s var(--ease) forwards; animation-delay: calc(var(--d) * 110ms + 150ms); }
@keyframes rise { to { opacity: 1; transform: none; } }
/* Scroll-in for later sections; motion.js adds .in. Without JS (.motion missing) everything is simply visible. */
.motion [data-in] { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.motion [data-in].in { opacity: 1; transform: none; }

.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 2.4rem var(--gutter);
  border-top: 1px solid var(--line); color: var(--mute); font-size: .82rem; }
.footer a, .contact address a { color: var(--gold-hi); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__call { margin-left: 1rem; }
  .nav__call span { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { animation: none; opacity: 1; transform: none; }
  .motion [data-in] { opacity: 1; transform: none; transition: none; }
}
