/* ============================================================================
   THE BIG MAN — base.css
   Design tokens, reset, typography, layout primitives.
   Palette derived from the studio's brass-and-olive maker's mark.
   ========================================================================== */

:root {
  /* --- Ink & ground ------------------------------------------------------ */
  --ink:        #08080A;   /* deepest black — page ground */
  --ink-2:      #0E0E11;   /* raised panel */
  --ink-3:      #16161A;   /* card */
  --ink-4:      #1F1F24;   /* hairline fills */

  /* --- Cloth & paper ----------------------------------------------------- */
  --bone:       #EFE9DE;   /* primary light text */
  --bone-2:     #D5CCBC;   /* secondary */
  --bone-3:     #A79C89;   /* tertiary / captions */
  --parchment:  #C9BFA9;

  /* --- Accent -------------------------------------------------------------
     Sampled from the maker's mark itself: olive ring, stone field, engraving
     black. There is no gold anywhere in the brand, so there is none here —
     the accent is stone, warmed, with olive underneath it. The variables keep
     their --brass names because every rule in the site already speaks them. */
  --brass:      #BCB196;   /* stone — labels, rules, small caps            */
  --brass-lt:   #DFD6C0;   /* light stone — highlights, hover              */
  --brass-dk:   #7E865F;   /* olive — gradient shadow end                  */

  --olive:      #646B4C;   /* the ring, exactly                            */
  --olive-dk:   #454B33;
  --stone:      #CCC0AA;   /* the field, exactly                           */
  --oxblood:    #5E2222;

  /* --- Type -------------------------------------------------------------- */
  --f-display: "Cormorant Garamond", "Times New Roman", serif;
  --f-deco:    "Italiana", "Cormorant Garamond", serif;
  --f-ui:      "Jost", "Helvetica Neue", Arial, sans-serif;

  /* Fluid type scale — 360px → 1600px viewport */
  --t-xs:   clamp(0.62rem, 0.58rem + 0.16vw, 0.72rem);
  --t-sm:   clamp(0.76rem, 0.72rem + 0.20vw, 0.88rem);
  --t-base: clamp(0.94rem, 0.90rem + 0.24vw, 1.06rem);
  --t-lg:   clamp(1.12rem, 1.02rem + 0.50vw, 1.44rem);
  --t-xl:   clamp(1.50rem, 1.24rem + 1.24vw, 2.40rem);
  --t-2xl:  clamp(2.10rem, 1.60rem + 2.40vw, 4.00rem);
  --t-3xl:  clamp(2.90rem, 1.90rem + 4.60vw, 6.60rem);
  --t-4xl:  clamp(2.90rem, 1.50rem + 6.10vw, 7.60rem);

  /* --- Space ------------------------------------------------------------- */
  --gut:    clamp(1.25rem, 0.80rem + 2.20vw, 3.75rem);
  --sec-y:  clamp(5rem, 3rem + 9vw, 11rem);
  --max:    1560px;
  --max-txt: 62ch;

  /* --- Motion ------------------------------------------------------------ */
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io:   cubic-bezier(0.65, 0, 0.35, 1);
  --ease-out:  cubic-bezier(0.16, 1, 0.30, 1);
  --dur:       0.7s;

  /* --- Lines ------------------------------------------------------------- */
  --rule: 1px solid rgba(188, 177, 150, 0.16);
  --rule-soft: 1px solid rgba(239, 233, 222, 0.08);
}

/* ============================ reset ====================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body, h1, h2, h3, h4, h5, p, figure, blockquote, dl, dd, ul, ol {
  margin: 0;
  padding: 0;
}

/* No markers anywhere — every list on this site carries its own rule or dash. */
ul, ol { list-style: none; }

img, svg, canvas, video { display: block; max-width: 100%; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

button { cursor: pointer; }

a { color: inherit; text-decoration: none; }

::selection {
  background: var(--brass);
  color: var(--ink);
}

/* ============================ page ====================================== */

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--f-ui);
  font-size: var(--t-base);
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.012em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

/* ============================ type ====================================== */

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

.d1 { font-size: var(--t-4xl); }
.d2 { font-size: var(--t-3xl); }
.d3 { font-size: var(--t-2xl); }
.d4 { font-size: var(--t-xl); line-height: 1.12; }

.deco {
  font-family: var(--f-deco);
  letter-spacing: 0.06em;
  font-weight: 400;
}

.italic { font-style: italic; }

/* Eyebrow — the small tracked label above every section heading. */
.eyebrow {
  font-family: var(--f-ui);
  font-size: var(--t-xs);
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--brass);
  display: flex;
  align-items: center;
  gap: 0.9em;
}
.eyebrow::before {
  content: "";
  width: clamp(20px, 4vw, 54px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brass));
  flex: none;
}
.eyebrow.is-centred { justify-content: center; }
.eyebrow.is-centred::after {
  content: "";
  width: clamp(20px, 4vw, 54px);
  height: 1px;
  background: linear-gradient(90deg, var(--brass), transparent);
  flex: none;
}

.lede {
  font-size: var(--t-lg);
  line-height: 1.55;
  color: var(--bone-2);
  font-weight: 200;
  max-width: var(--max-txt);
}

.muted { color: var(--bone-3); }
.small {
  font-size: var(--t-sm);
  letter-spacing: 0.05em;
  line-height: 1.6;
}
.tracked {
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: var(--t-xs);
}

/* Brass foil sweep for hero words. */
.foil {
  background: linear-gradient(
    100deg,
    var(--brass-dk) 0%, var(--brass) 22%, var(--brass-lt) 38%,
    #FFF8E6 46%, var(--brass-lt) 54%, var(--brass) 72%, var(--brass-dk) 100%
  );
  background-size: 280% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: foil-sweep 7s var(--ease-io) infinite;
}
@keyframes foil-sweep {
  0%, 12%  { background-position: 240% 50%; }
  62%,100% { background-position: -60% 50%; }
}

/* ============================ layout ==================================== */

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gut);
}
.wrap-narrow { max-width: 1080px; }

.section { padding-block: var(--sec-y); position: relative; }
.section--tight { padding-block: calc(var(--sec-y) * 0.6); }

.grid { display: grid; gap: var(--gut); }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.g-12 { grid-template-columns: repeat(12, 1fr); }

.flex { display: flex; }
.between { justify-content: space-between; }
.centre { align-items: center; }
.wrap-f { flex-wrap: wrap; }

.stack > * + * { margin-top: var(--s, 1.4rem); }

.hr {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg,
    transparent, rgba(188,177,150,0.28) 18%,
    rgba(188,177,150,0.28) 82%, transparent);
}

@media (max-width: 900px) {
  .g-3, .g-4 { grid-template-columns: repeat(2, 1fr); }
  .g-12 { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 560px) {
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
}

/* ============================ texture =================================== */

/* Film grain — a fixed, animated noise plate over the whole document.
   Keeps large flat blacks from banding and gives everything a printed feel. */
.grain {
  position: fixed;
  inset: -150%;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.030;
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'>\
<filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/>\
<feColorMatrix type='saturate' values='0'/></filter>\
<rect width='240' height='240' filter='url(%23n)'/></svg>");
  animation: grain-shift 0.7s steps(4) infinite;
  will-change: transform;
}
@keyframes grain-shift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-3%, 2%); }
  50%  { transform: translate(2%, -3%); }
  75%  { transform: translate(-2%, -2%); }
  100% { transform: translate(3%, 1%); }
}

/* Vignette — pulls the eye to centre on dark sections. */
.vignette {
  position: fixed;
  inset: 0;
  z-index: 8999;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 45%,
    transparent 42%, rgba(0,0,0,0.42) 100%);
}

/* ============================ a11y ====================================== */

.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 {
  position: fixed;
  top: 0.5rem; left: 0.5rem;
  z-index: 10000;
  padding: 0.7rem 1.1rem;
  background: var(--brass);
  color: var(--ink);
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease);
  font-size: var(--t-xs);
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.skip:focus-visible { transform: none; }

:focus-visible {
  outline: 1px solid var(--brass);
  outline-offset: 4px;
}

/* Anyone who asks for less motion gets a still, fully legible site. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .grain { animation: none; }
  .reveal, .split-word > span, .rule-draw {
    opacity: 1 !important;
    transform: none !important;
  }
  .reveal-clip, .menu { clip-path: none !important; }
}
