/* ==========================================================================
   Quality Fiber — immersive edition
   Photography-led. Fixed left rail. Full-bleed sections. No frameworks.
   ========================================================================== */

/* ---------------- fonts ---------------- */
@font-face {
  font-family: 'Bricolage';
  src: url('../fonts/bricolage-latin.woff2') format('woff2');
  font-weight: 500 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'InterTight';
  src: url('../fonts/intertight-latin.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Editorial';
  src: url('../fonts/instrumentserif-italic-latin.woff2') format('woff2');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+2122, U+FEFF, U+FFFD;
}

/* ---------------- tokens ---------------- */
:root {
  /* deep green / clay / bone — no yellow anywhere */
  --ink:      #070B09;
  --ink-2:    #0E1613;
  --forest:   #10261C;
  --moss:     #1C4232;
  --sage:     #93A69A;

  --bone:     #F3F0E7;
  --bone-2:   #E8E3D5;
  --bone-3:   #D8D2C0;

  --clay:     #D2653C;
  --clay-2:   #BD5330;
  --clay-soft:#F2D9CD;

  --fg:        var(--ink);
  --fg-muted:  #5D6B63;
  --bg:        var(--bone);

  --rail: 92px;                       /* fixed left nav width */
  --gut:  clamp(1.25rem, 3.5vw, 4rem);
  --max:  1500px;

  --ease:  cubic-bezier(.22,1,.36,1);
  --ease2: cubic-bezier(.16,1,.3,1);
}

/* ---------------- reset ---------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
html, body { overflow-x: clip; }

body {
  font-family: 'InterTight', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  padding-left: var(--rail);
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }

:focus-visible { outline: 2px solid var(--clay); outline-offset: 4px; }
::selection { background: var(--clay); color: var(--bone); }

.icn { width: 1.1em; height: 1.1em; flex: none; }

/* ---------------- type ---------------- */
h1, h2, h3, h4, .disp {
  font-family: 'Bricolage', 'InterTight', sans-serif;
  font-weight: 600;
  line-height: .95;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.d1 { font-size: clamp(3rem, 1.2rem + 7.6vw, 8.5rem); font-weight: 700; }
.d2 { font-size: clamp(2.2rem, 1.2rem + 4.2vw, 5rem); }
.d3 { font-size: clamp(1.6rem, 1.2rem + 1.7vw, 2.6rem); }
h1 { font-size: clamp(2.6rem, 1.2rem + 6vw, 7rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 1.2rem + 3.6vw, 4.2rem); }
h3 { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.8rem); }

/* italic serif used only for small editorial accents */
.ed { font-family: 'Editorial', Georgia, serif; font-style: italic; letter-spacing: -.01em; }

.lede {
  font-size: clamp(1.05rem, .98rem + .4vw, 1.3rem);
  line-height: 1.6;
  color: var(--fg-muted);
  max-width: 46ch;
}

/* small caps label with a rule */
.label {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--clay);
}
.label::before {
  content: '';
  width: 2.2rem;
  height: 1px;
  background: currentColor;
  opacity: .7;
}

.num {
  font-family: 'Editorial', Georgia, serif;
  font-style: italic;
  font-size: .95rem;
  letter-spacing: 0;
  opacity: .75;
}

/* ---------------- layout ---------------- */
.shell { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.sec   { padding-block: clamp(4rem, 2rem + 7vw, 9rem); }
.sec--flush { padding-block: 0; }
/* full-bleed sections that still need breathing room on one side.
   Note the spaces around the `+`: CSS math is invalid without them and the
   whole declaration gets dropped — which is exactly how these started life,
   as inline styles reading clamp(4rem,2rem+6vw,8rem) that never applied. */
.sec--lead  { padding-block: clamp(4rem, 2rem + 6vw, 8rem) 0; }
.sec--trail { padding-block: 0 clamp(4rem, 2rem + 6vw, 8rem); }
.dark  { background: var(--ink); color: var(--sage); }
.dark h1, .dark h2, .dark h3 { color: var(--bone); }
.forest{ background: var(--forest); color: var(--sage); }
.forest h2, .forest h3 { color: var(--bone); }

.sec-head { display: grid; gap: 1.4rem; max-width: 62ch; margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: 1.05rem 1.9rem;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bone);
  background: var(--clay);
  border-radius: 2px;
  transition: background .3s var(--ease), transform .3s var(--ease), color .3s;
}
.btn:hover { background: var(--clay-2); transform: translateY(-2px); }
.btn .icn { transition: transform .3s var(--ease); }
.btn:hover .icn { transform: translateX(4px); }

.btn--line {
  background: transparent;
  color: currentColor;
  box-shadow: inset 0 0 0 1px currentColor;
}
.btn--line:hover { background: var(--fg); color: var(--bg); box-shadow: none; }
.dark .btn--line:hover, .forest .btn--line:hover { background: var(--bone); color: var(--ink); }

/* underline-on-hover text link */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding-bottom: .35rem;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .45s var(--ease2);
}
.tlink:hover { background-size: 100% 1px; }

/* No scroll-reveal: content is never hidden behind JS that might not run.
   Motion on this page comes from the hero cross-fade, ticker, counters and
   hover states — all of which degrade to a perfectly readable static page. */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.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: absolute; top: -60px; left: 1rem; z-index: 300; background: var(--ink); color: var(--bone); padding: .7rem 1.2rem; }
.skip:focus { top: 1rem; }

@media (max-width: 900px) { body { padding-left: 0; } }
