/* =========================================================
   Knudsen Cattle homepage concept: first light to last light
   Type: Haboro Contrast (display) and Field Gothic / Wide / Condensed (Adobe Fonts)
   ========================================================= */

:root {
  --ink: #1f1610;
  --ink-soft: #4a3d33;
  --bone: #f3ece0;
  --bone-dim: rgba(243, 236, 224, .74);
  --rust: #8e3a1c;
  --rust-hi: #d6764a;
  --olive: #7a7259;
  --gold: #d9a441;
  --tag: #e3b23c;
  --sky: #f1d6bb;              /* updated by main.js as the day passes */
  --display: "haboro-contrast-normal", "Iowan Old Style", Georgia, serif;
  --sans: "field-gothic", "Helvetica Neue", Arial, sans-serif;
  --wide: "field-gothic-wide", "field-gothic", Arial, sans-serif;
  --cond: "field-gothic-condensed", "Arial Narrow", sans-serif;
  --gutter: clamp(16px, 4vw, 64px);
  --maxw: 1360px;
  --r: 2px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
html.lenis { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(16px, 1.1vw, 18px);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ol, ul, figure, dl, dd, address { margin: 0; }
ol, ul { padding: 0; list-style: none; }
address { font-style: normal; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 4px; border-radius: var(--r); }
[data-tone="light"] :focus-visible { outline-color: var(--gold); }
::selection { background: var(--rust); color: var(--bone); }

.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 16px; background: var(--bone); color: var(--ink); transform: translateY(-150%); transition: transform .2s; }
.skip:focus { transform: none; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

[data-tone="dark"] { color: var(--ink); }
[data-tone="light"] { color: var(--bone); }

/* ---------- Type ---------- */
.display { font-family: var(--display); font-weight: 500; letter-spacing: -.012em; line-height: 1; }
.display em { font-style: italic; }
.h2 { font-size: clamp(40px, 5.2vw, 88px); }
.num { font-family: var(--cond); font-weight: 700; letter-spacing: .01em; font-variant-numeric: lining-nums; }
.lede { font-size: clamp(17px, 1.3vw, 21px); line-height: 1.5; max-width: 46ch; color: var(--ink-soft); }
[data-tone="light"] .lede { color: var(--bone-dim); }
.muted { color: var(--ink-soft); max-width: 30ch; }
.kicker {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--wide); font-weight: 500; font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  margin-bottom: clamp(18px, 2.4vw, 30px);
}
.k-time { font-family: var(--cond); font-weight: 600; font-size: 16px; letter-spacing: .04em; color: var(--rust); display: inline-flex; align-items: center; gap: 12px; }
.k-time::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }
[data-tone="light"] .k-time { color: var(--gold); }
.kicker.light { color: var(--bone); }
.text-link { font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; transition: text-underline-offset .3s var(--ease); }
.text-link:hover { text-underline-offset: 3px; }

/* line reveal: each .ln clips its child, with room for descenders */
.ln { display: block; overflow: hidden; padding: .04em .06em .26em 0; margin-bottom: -.22em; }
.ln > span { display: inline-block; }
.reveal-lines .ln > span { transform: translateY(110%); transition: transform 1.1s var(--ease); }
.reveal-lines .ln:nth-child(2) > span { transition-delay: .12s; }
.reveal-lines.in .ln > span { transform: none; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 18px var(--gutter);
  transition: color .5s, background-color .5s, padding .4s;
}
.nav.is-solid { padding-block: 10px; background: color-mix(in srgb, var(--sky) 86%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
body[data-tone="dark"] .nav { color: var(--ink); }
body[data-tone="light"] .nav { color: var(--bone); }
.brand { display: block; position: relative; height: 38px; width: 150px; }
.logo { position: absolute; inset: 0; height: 100%; width: auto; transition: opacity .4s; }
.logo--on-dark { opacity: 0; }
body[data-tone="light"] .logo--on-dark { opacity: 1; }
body[data-tone="light"] .logo--on-light { opacity: 0; }
.nav-links { display: flex; gap: clamp(16px, 2.2vw, 34px); margin-left: auto; font-size: 15px; }
.nav-links a { text-decoration: none; position: relative; padding: 6px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta {
  text-decoration: none; padding: 11px 18px; border-radius: var(--r);
  font-family: var(--wide); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  background: var(--ink); color: var(--bone); transition: background-color .3s;
}
body[data-tone="light"] .nav-cta { background: var(--tag); color: var(--ink); }
.nav-cta:hover { background: var(--rust); color: var(--bone); }
.nav-menu { display: none; width: 44px; height: 44px; position: relative; }
.nav-menu > span:not(.sr) { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform .3s; }
.nav-menu > span:nth-child(1) { top: 18px; }
.nav-menu > span:nth-child(2) { top: 25px; }
.nav-menu[aria-expanded="true"] > span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav-menu[aria-expanded="true"] > span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; z-index: 45; background: var(--ink); color: var(--bone); display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 0 var(--gutter); }
.mobile-menu[hidden] { display: none; }
.mobile-menu a { font-family: var(--display); font-weight: 500; font-size: 40px; text-decoration: none; line-height: 1.2; }

/* ---------- Sun clock ---------- */
.sunclock {
  position: fixed; left: var(--gutter); bottom: 20px; z-index: 40;
  display: flex; align-items: center; gap: 12px;
  padding: 8px 14px 8px 10px; border-radius: var(--r);
  background: rgba(23, 18, 14, .86); color: var(--bone);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; transform: translateY(12px); transition: opacity .6s, transform .6s var(--ease);
}
.sunclock.on { opacity: 1; transform: none; }
.sunclock svg { width: 50px; height: 27px; overflow: visible; }
.sc-arc { fill: none; stroke: rgba(243, 236, 224, .4); stroke-width: 1; stroke-dasharray: 2 3; }
.sc-horizon { stroke: rgba(243, 236, 224, .55); stroke-width: 1; }
.sc-sun { fill: var(--gold); transition: fill .6s; }
.sunclock.night .sc-sun { fill: #e9e4f5; }
.sc-read { display: flex; flex-direction: column; line-height: 1.15; }
.sc-time { font-family: var(--cond); font-weight: 600; font-size: 19px; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.sc-phase { font-family: var(--wide); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; opacity: .85; }

/* =========================================================
   HERO: the gate opens
   ========================================================= */
.hero { position: relative; height: 240vh; }
.hero-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #e9c5a3; }
.hero-frames { position: absolute; inset: 0; transform: scale(calc(1.02 + var(--p, 0) * .18)); transform-origin: 50% 70%; will-change: transform; }
.hf { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.hf--open { opacity: clamp(0, calc((var(--p, 0) - .24) * 5.5), 1); will-change: opacity; }
.hf--seq { opacity: 0; transition: opacity .5s var(--ease); }
.hero.seq-ready .hf--seq { opacity: 1; }
.hero.seq-ready .hf--closed, .hero.seq-ready .hf--open { visibility: hidden; transition: visibility 0s .5s; }
.hero.seq-ready .hero-frames { transform: scale(calc(1.02 + var(--p, 0) * .08 + max(0, var(--p, 0) - .62) * .95)); transform-origin: 50% 66%; }
.hero-veil { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(246, 226, 205, .62) 0%, rgba(246, 226, 205, .22) 34%, rgba(246, 226, 205, 0) 52%, rgba(20, 14, 10, 0) 72%, rgba(20, 14, 10, .45) 100%); }

.hero-copy { position: absolute; left: var(--gutter); right: var(--gutter); top: clamp(92px, 13vh, 140px); color: var(--ink);
  display: grid; grid-template-columns: 1fr minmax(240px, 30ch); column-gap: clamp(24px, 4vw, 64px); align-items: start;
  transform: translateY(calc(var(--p, 0) * -80px)); opacity: calc(1 - var(--p, 0) * 2.6); }
.eyebrow { grid-column: 1 / -1; font-family: var(--wide); font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 20px; opacity: 0; animation: fadeIn 1s var(--ease) forwards .1s; }
.hero-title { font-size: clamp(50px, 8vw, 138px); line-height: .95; max-width: 15ch; }
.hero-title em { color: var(--rust); }
.hero-title .ln > span { transform: translateY(110%); animation: lineUp 1.3s var(--ease) forwards .25s; }
.hero-title .ln:nth-child(2) > span { animation-delay: .42s; }
.hero-lede { grid-column: 2; grid-row: 2; margin-top: .5em; max-width: 32ch; font-size: clamp(16px, 1.25vw, 20px); color: var(--ink-soft); opacity: 0; animation: fadeIn 1.2s var(--ease) forwards .9s; }
@keyframes lineUp { to { transform: none; } }
@keyframes fadeIn { to { opacity: 1; } }

.hero-through { position: absolute; left: 0; right: 0; top: clamp(110px, 18vh, 190px); text-align: center; color: var(--ink);
  font-size: clamp(40px, 6vw, 100px);
  opacity: clamp(0, calc((var(--p, 0) - .62) * 5), 1); transform: translateY(calc((1 - var(--p, 0)) * 30px)); }
.hero-cue { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); white-space: nowrap;
  font-family: var(--wide); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--bone);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .5); opacity: calc(1 - var(--p, 0) * 6); }
.hero-cue::after { content: ""; display: block; width: 1px; height: 34px; margin: 10px auto 0; background: currentColor; transform-origin: top; animation: cue 2s var(--ease-io) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* =========================================================
   STORY
   ========================================================= */
.story { padding: clamp(100px, 13vw, 190px) 0 clamp(80px, 10vw, 160px); position: relative; }
.story-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(40px, 6vw, 110px); align-items: start; }
.story-body { margin-top: clamp(28px, 3.4vw, 48px); display: grid; gap: 20px; max-width: 52ch; color: var(--ink-soft); }
.story-body .big { font-size: clamp(19px, 1.5vw, 24px); line-height: 1.45; color: var(--ink); }
.sig { display: flex; flex-direction: column; margin-top: 12px; padding-top: 18px; border-top: 1px solid rgba(31, 22, 16, .18); font-family: var(--display); font-style: italic; font-size: 26px; color: var(--rust); line-height: 1.1; }
.sig span { font-family: var(--wide); font-style: normal; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); margin-top: 8px; }
.story-collage { position: relative; min-height: clamp(480px, 52vw, 760px); }
.story-collage figure { position: absolute; overflow: hidden; border-radius: var(--r); box-shadow: 0 30px 60px -30px rgba(40, 22, 10, .45); will-change: transform; }
.story-collage img { width: 100%; height: 100%; object-fit: cover; }
.sc-1 { right: 0; top: 0; width: 82%; aspect-ratio: 4 / 3.3; }
.sc-2 { left: 0; top: 52%; width: 50%; aspect-ratio: 4 / 3; outline: 8px solid #efe6d8; }
.sc-2 figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; font-size: 12px; color: var(--bone); background: linear-gradient(transparent, rgba(0, 0, 0, .6)); }
.sc-3 { right: 6%; top: 70%; width: 36%; aspect-ratio: 1; }

/* =========================================================
   TIMELINE: pinned horizontal fence line
   ========================================================= */
.timeline { position: relative; --tl-gap: clamp(36px, 4vw, 72px); }
.tl-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; }
.tl-track { display: flex; align-items: center; gap: clamp(40px, 5vw, 90px); padding-inline: var(--gutter) 20vw; will-change: transform; }
.tl-intro { flex: 0 0 clamp(300px, 30vw, 460px); }
.tl-intro .h2 { font-size: clamp(40px, 4.4vw, 76px); margin-bottom: 22px; }
.tl-list { display: flex; gap: var(--tl-gap); padding-top: 70px; }
.tl-item { flex: 0 0 clamp(260px, 25vw, 380px); position: relative; }
/* two fence wires per bay, running to the next post */
.tl-item::before, .tl-item::after { content: ""; position: absolute; left: 0; right: calc(-1 * var(--tl-gap)); height: 1px; background: var(--olive); opacity: .55; }
.tl-item::before { top: -48px; }
.tl-item::after { top: -36px; }
.tl-item:last-child::before, .tl-item:last-child::after { right: 0; }
.tl-post { position: absolute; top: -62px; left: 0; width: 10px; height: 52px; background: linear-gradient(90deg, #5b4a37, #8a7458 55%, #5b4a37); border-radius: 2px 2px 0 0; }
.tl-year { font-family: var(--cond); font-weight: 600; font-size: clamp(56px, 5.6vw, 92px); line-height: .85; color: var(--rust); margin-bottom: 16px; letter-spacing: .01em; }
.tl-item figure { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); margin-bottom: 18px; }
.tl-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tl-item:hover img { transform: scale(1.04); }
.tl-item h3 { font-family: var(--display); font-weight: 500; font-size: clamp(24px, 2vw, 32px); line-height: 1.05; margin-bottom: 8px; }
.tl-item p:last-child { color: var(--ink-soft); max-width: 34ch; }

/* =========================================================
   COUNTRY
   ========================================================= */
.country { padding: clamp(100px, 12vw, 180px) 0; }
.country-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; margin-bottom: clamp(40px, 5vw, 70px); }
.country-head .kicker { grid-column: 1 / -1; margin-bottom: 0; }
.compare { position: relative; width: 100%; aspect-ratio: 2000 / 700; min-height: 340px; border-radius: var(--r); overflow: hidden; touch-action: pan-y; user-select: none; }
.compare img, .cmp-b img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cmp-b { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--x)); }
.cmp-handle { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; background: var(--bone); transform: translateX(-1px); pointer-events: none; }
.cmp-handle span { position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--bone); box-shadow: 0 10px 30px rgba(0, 0, 0, .3); transition: transform .3s var(--ease); }
.cmp-handle span::before, .cmp-handle span::after { content: ""; position: absolute; top: 50%; width: 8px; height: 8px; border: solid var(--ink); border-width: 0 0 1.5px 1.5px; }
.cmp-handle span::before { left: 14px; transform: translateY(-50%) rotate(45deg); }
.cmp-handle span::after { right: 14px; transform: translateY(-50%) rotate(-135deg); }
.compare:hover .cmp-handle span { transform: translate(-50%, -50%) scale(1.08); }
.compare:focus-within .cmp-handle span { outline: 2px solid var(--rust); outline-offset: 3px; }
.cmp-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.cmp-tag { position: absolute; top: 18px; padding: 8px 12px; border-radius: var(--r); background: rgba(23, 18, 14, .72); color: var(--bone); font-family: var(--wide); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; pointer-events: none; }
.cmp-tag i { font-style: normal; opacity: .7; margin-left: 6px; }
.cmp-tag--a { left: 18px; }
.cmp-tag--b { right: 18px; }
.country-cols { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(24px, 4vw, 64px); margin-top: clamp(40px, 5vw, 70px); }
.place h3 { font-size: clamp(34px, 3.2vw, 52px); margin: 6px 0 6px; }
.coord { font-family: var(--cond); font-weight: 500; font-size: 16px; letter-spacing: .06em; color: var(--ink-soft); }
.place-kicker { font-family: var(--wide); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--rust); margin-bottom: 24px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 22px 0; border-block: 1px solid rgba(31, 22, 16, .16); margin-bottom: 22px; }
.facts dt { font-family: var(--cond); font-weight: 700; font-size: clamp(38px, 3.4vw, 58px); line-height: 1; color: var(--ink); }
.facts dd { font-size: 14px; color: var(--ink-soft); margin-top: 6px; }
.place > p:last-child { color: var(--ink-soft); max-width: 48ch; }
.span-km { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 30px; }
.span-km span { flex: 1; width: 1px; background: repeating-linear-gradient(180deg, var(--olive) 0 6px, transparent 6px 12px); }
.span-km b { font-family: var(--cond); font-weight: 600; font-size: 18px; letter-spacing: .08em; writing-mode: vertical-rl; transform: rotate(180deg); color: var(--olive); }

/* =========================================================
   SADDLE / SKY
   ========================================================= */
.saddle { padding: clamp(40px, 6vw, 90px) 0 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.half { position: relative; overflow: hidden; display: flex; align-items: flex-end; color: var(--bone); }
.half-img { position: absolute; inset: 0; }
.half-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.25 - var(--v, 1) * .25)); will-change: transform; }
.half--saddle .half-img { clip-path: inset(0 calc((1 - var(--v, 1)) * 100%) 0 0); }
.half--sky .half-img { clip-path: inset(0 0 0 calc((1 - var(--v, 1)) * 100%)); }
.half::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(12, 9, 7, .8)); pointer-events: none; }
.half-copy { position: relative; z-index: 1; padding: clamp(28px, 4vw, 64px) clamp(28px, 4vw, 64px) clamp(96px, 8vw, 120px); }
.half-title { font-size: clamp(36px, 3.8vw, 66px); max-width: 12ch; margin-bottom: 24px; }
.ticks { display: grid; gap: 10px; max-width: 40ch; }
.ticks li { position: relative; padding-left: 26px; font-size: 15px; color: var(--bone-dim); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .66em; width: 14px; height: 1px; background: var(--gold); }

/* =========================================================
   LAND
   ========================================================= */
.land { padding: clamp(100px, 12vw, 180px) 0; position: relative; }
.land-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.land-side { position: sticky; top: 110px; }
.two-x { display: flex; align-items: center; gap: 22px; margin: clamp(30px, 4vw, 50px) 0; padding: 22px 0; border-block: 1px solid rgba(31, 22, 16, .18); }
.two-x .num { font-size: clamp(96px, 10vw, 160px); line-height: .8; color: var(--rust); font-weight: 800; }
.two-x p { max-width: 26ch; font-size: 15px; color: var(--ink-soft); }
.practices { border-top: 1px solid rgba(31, 22, 16, .2); }
.practice { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: clamp(26px, 3vw, 40px) 0; border-bottom: 1px solid rgba(31, 22, 16, .2); position: relative; cursor: default; }
.practice h3 { font-family: var(--display); font-weight: 500; font-size: clamp(28px, 2.6vw, 42px); line-height: 1.05; margin-bottom: 10px; transition: color .4s, transform .5s var(--ease); }
.practice p { color: var(--ink-soft); max-width: 46ch; }
.p-num { font-size: 22px; color: var(--olive); padding-top: 4px; font-weight: 600; }
.practice > img { display: none; }
.practice:hover h3 { color: var(--rust); transform: translateX(8px); }
.peek { position: fixed; left: 0; top: 0; width: 300px; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; pointer-events: none; z-index: 30;
  opacity: 0; transform: translate3d(var(--mx, 0), var(--my, 0), 0) scale(.9); transition: opacity .3s, transform .45s var(--ease); box-shadow: 0 30px 60px -20px rgba(40, 22, 10, .5); }
.peek.on { opacity: 1; transform: translate3d(var(--mx, 0), var(--my, 0), 0) scale(1); }
.peek img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   HERD
   ========================================================= */
.herd { padding-bottom: clamp(100px, 12vw, 180px); }
.herd-window { height: 140vh; position: relative; }
.hw-inner { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  clip-path: inset(calc((1 - var(--w, 0)) * 18%) calc((1 - var(--w, 0)) * 22%)); }
.hw-inner img { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.3 - var(--w, 0) * .3)); }
.herd-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: center; margin-top: clamp(60px, 8vw, 120px); }
.spec { margin-top: 34px; border-top: 1px solid rgba(31, 22, 16, .25); max-width: 560px; }
.spec div { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 14px 0; border-bottom: 1px solid rgba(31, 22, 16, .25); }
.spec dt { font-family: var(--wide); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; padding-top: 5px; color: var(--ink-soft); }
.spec dd { font-size: 16px; }
.herd-note { margin-top: 26px; max-width: 52ch; color: var(--ink-soft); }
.herd-note a { color: var(--ink); font-weight: 500; text-underline-offset: 5px; }
.tag-wrap { display: grid; place-items: center; padding-top: 30px; }
.eartag { position: relative; width: min(330px, 80vw); aspect-ratio: 3 / 4; transform-origin: 50% 9%; transform: rotate(var(--swing, 0deg)); color: var(--ink); filter: drop-shadow(0 30px 40px rgba(60, 35, 10, .35)); }
.tag-shape { position: absolute; inset: 0; width: 100%; height: 100%; }
.tag-shape path { fill: var(--tag); }
.eartag::before { content: ""; position: absolute; left: 50%; top: -60px; width: 2px; height: 82px; background: var(--ink-soft); transform: translateX(-50%); }
.tag-body { position: absolute; inset: 34% 9% 8%; display: flex; flex-direction: column; justify-content: space-between; text-align: center; }
.tag-top { font-family: var(--wide); font-weight: 600; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; border-bottom: 2px solid var(--ink); padding-bottom: 8px; }
.tag-num { font-family: var(--cond); font-size: clamp(50px, 4.8vw, 70px); font-weight: 800; line-height: .9; white-space: nowrap; }
.tag-num small { font-size: .36em; margin-left: 4px; font-weight: 600; }
.tag-what { font-size: 14px; font-weight: 500; line-height: 1.35; }
.tag-call { display: block; text-decoration: none; background: var(--ink); color: var(--tag); padding: 12px; border-radius: 8px; font-family: var(--wide); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; transition: background-color .3s; }
.tag-call b { display: block; font-family: var(--cond); font-size: 26px; letter-spacing: .04em; font-weight: 700; margin-top: 2px; }
.tag-call:hover { background: var(--rust); color: var(--bone); }

/* =========================================================
   PEOPLE
   ========================================================= */
.people { padding: clamp(100px, 12vw, 180px) 0 clamp(80px, 10vw, 140px); overflow: hidden; }
.people-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; margin-bottom: clamp(40px, 5vw, 80px); }
.people-head .kicker { grid-column: 1 / -1; margin-bottom: 0; }
.people .lede, .people .values p { color: #3a2a1c; }
.people .k-time { color: #6e2a12; }
.portraits { display: grid; grid-template-columns: 1.05fr .8fr 1.25fr; gap: clamp(14px, 2vw, 28px); align-items: end; }
.portrait { position: relative; overflow: hidden; border-radius: var(--r); }
.portrait img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.portrait:hover img { transform: scale(1.03); }
.p-kara { aspect-ratio: 4 / 5; }
.p-jarrod { aspect-ratio: 4 / 4.6; margin-bottom: 9%; }
.p-team { aspect-ratio: 4 / 3.1; }
.portrait figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 50px 18px 16px; color: var(--bone); background: linear-gradient(transparent, rgba(15, 10, 6, .8)); display: flex; flex-direction: column; }
.portrait b { font-family: var(--display); font-weight: 500; font-size: 26px; line-height: 1.05; }
.portrait figcaption span { font-size: 12px; opacity: .88; margin-top: 4px; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 50px); margin-top: clamp(60px, 7vw, 110px); }
.values > div { border-top: 1.5px solid var(--ink); padding-top: 18px; }
.values h3 { font-family: var(--display); font-weight: 500; font-size: clamp(26px, 2.4vw, 38px); margin-bottom: 10px; line-height: 1.05; }
.values p { max-width: 36ch; }
.alongside { margin: clamp(60px, 7vw, 100px) 0; padding: 22px 0; border-block: 1px solid rgba(31, 22, 16, .3); display: flex; gap: 30px; align-items: baseline; flex-wrap: wrap; }
.alongside-h { font-family: var(--wide); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; flex: 0 0 auto; }
.alongside ul { display: flex; flex-wrap: wrap; gap: 8px 0; }
.alongside li { font-family: var(--display); font-size: clamp(18px, 1.5vw, 22px); padding: 0 18px; border-left: 1px solid rgba(31, 22, 16, .35); line-height: 1.2; }
.alongside li:first-child { border-left: 0; padding-left: 0; }
.careers { position: relative; border-radius: var(--r); overflow: hidden; min-height: 560px; display: flex; align-items: flex-end; color: var(--bone); }
.careers figure { position: absolute; inset: 0; }
.careers figure img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transition: transform 1.6s var(--ease); }
.careers:hover figure img { transform: scale(1.03); }
.careers::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(14, 10, 7, .84) 0%, rgba(14, 10, 7, .45) 45%, rgba(14, 10, 7, 0) 75%); }
.careers-copy { position: relative; z-index: 2; padding: clamp(28px, 4vw, 64px); max-width: 620px; }
.careers-title { font-size: clamp(38px, 4.2vw, 70px); margin-bottom: 20px; }
.careers-copy > p:not(.display):not(.kicker) { color: var(--bone-dim); margin-bottom: 28px; }
.btn { display: inline-block; padding: 15px 24px; border-radius: var(--r); background: var(--bone); color: var(--ink); text-decoration: none; font-family: var(--wide); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; transition: background-color .3s, color .3s; }
.btn:hover { background: var(--tag); }

/* =========================================================
   JOURNAL
   ========================================================= */
.journal { padding: clamp(100px, 12vw, 170px) 0; }
.journal-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: clamp(40px, 5vw, 70px); flex-wrap: wrap; }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 36px); }
.post a { display: block; text-decoration: none; }
.post figure { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); margin-bottom: 18px; }
.post img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.post a:hover img { transform: scale(1.05); }
.post-date { font-family: var(--wide); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.post h3 { font-family: var(--display); font-weight: 500; font-size: clamp(24px, 2vw, 32px); line-height: 1.08; margin-bottom: 10px; }
.post a:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.post p:last-child { color: var(--bone-dim); font-size: 15px; }

/* =========================================================
   LAST LIGHT + FOOTER
   ========================================================= */
.lastlight { position: relative; padding-top: clamp(80px, 10vw, 140px); overflow: hidden; }
.stars { position: absolute; inset: 0 0 40% 0; pointer-events: none; opacity: var(--stars, 0); }
.stars::before, .stars::after { content: ""; position: absolute; width: 2px; height: 2px; border-radius: 50%; top: 0; left: 0;
  box-shadow: 8vw 12vh #fff, 17vw 4vh rgba(255,255,255,.7), 26vw 22vh #fff, 33vw 9vh rgba(255,255,255,.5), 41vw 30vh rgba(255,255,255,.8), 48vw 6vh #fff, 55vw 18vh rgba(255,255,255,.6), 62vw 3vh rgba(255,255,255,.9), 69vw 26vh #fff, 76vw 11vh rgba(255,255,255,.6), 84vw 21vh #fff, 91vw 7vh rgba(255,255,255,.7), 96vw 28vh rgba(255,255,255,.5), 4vw 33vh rgba(255,255,255,.6), 22vw 40vh rgba(255,255,255,.4), 58vw 36vh rgba(255,255,255,.5), 80vw 38vh rgba(255,255,255,.45); animation: twinkle 4s ease-in-out infinite; }
.stars::after { transform: translate(3vw, 5vh); animation-delay: 2s; opacity: .7; }
@keyframes twinkle { 50% { opacity: .35; } }
.ll-photo { position: relative; width: 100%; aspect-ratio: 2000 / 700; min-height: 300px; }
.ll-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 80%; }
.ll-photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, #141016 0%, rgba(20, 16, 22, 0) 30%, rgba(20, 16, 22, 0) 70%, #141016 100%); }
.ll-copy { position: relative; z-index: 2; text-align: center; margin-bottom: clamp(70px, 8vw, 120px); }
.ll-title { font-size: clamp(38px, 5.8vw, 100px); line-height: 1.02; }
.ll-title em { color: var(--gold); }
.ll-ctas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: clamp(40px, 5vw, 70px) auto 0; max-width: 1100px; background: rgba(243, 236, 224, .16); border: 1px solid rgba(243, 236, 224, .16); border-radius: var(--r); overflow: hidden; text-align: left; }
.ll-cta { display: grid; gap: 6px; padding: 26px 26px 24px; background: #141016; text-decoration: none; transition: background-color .4s; }
.ll-cta:hover { background: #251b1b; }
.ll-for { font-family: var(--wide); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.ll-cta b { font-family: var(--display); font-weight: 500; font-size: 30px; line-height: 1.05; }
.ll-cta:hover b { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.ll-cta i { font-style: normal; font-size: 14px; color: var(--bone-dim); }

.footer { position: relative; z-index: 2; background: #0f0c10; padding: clamp(60px, 7vw, 100px) 0 clamp(90px, 8vw, 110px); color: var(--bone-dim); font-size: 15px; }
.f-top { display: grid; grid-template-columns: auto 1fr; gap: clamp(30px, 6vw, 120px); align-items: center; padding-bottom: clamp(40px, 5vw, 64px); border-bottom: 1px solid rgba(243, 236, 224, .12); }
.f-logo img { width: clamp(200px, 20vw, 280px); }
.f-statement { font-family: var(--display); font-size: clamp(22px, 2.2vw, 34px); line-height: 1.2; color: var(--bone); max-width: 28ch; justify-self: end; }
.f-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding: clamp(40px, 5vw, 64px) 0; }
.f-col { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.f-h { font-family: var(--wide); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.f-col a { text-decoration: none; color: var(--bone); }
.f-col a:hover { text-decoration: underline; text-underline-offset: 4px; }
.f-sub { font-size: 13px; margin-top: 10px; }
.f-base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid rgba(243, 236, 224, .12); font-size: 13px; }
.f-coords { font-family: var(--cond); font-size: 15px; letter-spacing: .06em; }
.f-social { display: flex; gap: 22px; }
.f-social a { text-decoration: none; }
.f-social a:hover { color: var(--bone); text-decoration: underline; text-underline-offset: 4px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .hero-copy { grid-template-columns: 1fr; }
  .hero-lede { grid-column: 1; grid-row: auto; margin-top: 20px; max-width: 40ch; }
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .nav-menu { display: block; }
  .portraits { grid-template-columns: 1fr 1fr; }
  .p-team { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .p-jarrod { margin-bottom: 0; }
  .f-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .story-grid, .country-head, .people-head, .land-grid, .herd-grid { grid-template-columns: 1fr; }
  .story-collage { min-height: 120vw; }
  .country-cols { grid-template-columns: 1fr; }
  .span-km { flex-direction: row; padding: 0; }
  .span-km span { height: 1px; width: auto; background: repeating-linear-gradient(90deg, var(--olive) 0 6px, transparent 6px 12px); }
  .span-km b { writing-mode: horizontal-tb; transform: none; }
  .split { grid-template-columns: 1fr; min-height: 0; }
  .half { min-height: 92vh; }
  .land-side { position: static; }
  .practice { grid-template-columns: 44px 1fr; }
  .practice > img { display: block; grid-column: 2; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r); margin-top: 8px; }
  .peek { display: none; }
  .posts, .values, .ll-ctas { grid-template-columns: 1fr; }
  .compare { aspect-ratio: 4 / 5; }
  .hw-inner { clip-path: inset(calc((1 - var(--w, 0)) * 12%) calc((1 - var(--w, 0)) * 8%)); }
  .f-top { grid-template-columns: 1fr; }
  .f-statement { justify-self: start; }
}
@media (max-width: 760px) {
  .timeline { height: auto !important; padding: 90px 0; }
  .tl-pin { position: static; height: auto; display: block; }
  .tl-track { flex-direction: column; align-items: stretch; transform: none !important; padding: 0; gap: 30px; }
  .tl-intro { flex: none; padding-inline: var(--gutter); }
  .tl-list { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: 70px var(--gutter) 10px; scrollbar-width: none; }
  .tl-list::-webkit-scrollbar { display: none; }
  .tl-item { flex-basis: 78vw; scroll-snap-align: start; }
  .hero-title { font-size: clamp(42px, 12.2vw, 72px); }
  .hero-lede { display: none; }
  .hf { object-position: 50% 60%; }
  .sunclock { bottom: 14px; padding: 6px 10px 6px 8px; }
  .sunclock svg { width: 40px; }
  .sc-time { font-size: 16px; }
  .nav { gap: 12px; }
  .brand { width: 120px; height: 30px; }
  .nav-cta { padding: 10px 12px; }
  .careers { min-height: 620px; }
  .careers::before { background: linear-gradient(180deg, rgba(14, 10, 7, .1) 0%, rgba(14, 10, 7, .86) 55%); }
  .cmp-tag { top: 12px; padding: 7px 10px; }
  .cmp-tag i { display: none; }
  .cmp-tag--a { left: 12px; }
  .cmp-tag--b { right: 12px; }
  .portrait figcaption { padding: 40px 12px 12px; }
  .portrait b { font-size: 20px; }
  .portrait figcaption span { font-size: 11px; }
  .spec div { grid-template-columns: 1fr; gap: 4px; }
  .alongside li { padding: 0 12px; }
  .f-cols { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
  .f-base { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero { height: 100vh; }
  .hero-frames { transform: none; }
  .hf--open, .hero-through, .hero-cue { display: none; }
  .reveal, .reveal-lines .ln > span, .hero-title .ln > span { opacity: 1; transform: none; }
  .tl-pin { position: static; height: auto; display: block; padding: 90px 0; }
  .tl-track { flex-direction: column; align-items: stretch; padding: 0; gap: 30px; }
  .tl-intro { flex: none; padding-inline: var(--gutter); }
  .tl-list { overflow-x: auto; padding: 70px var(--gutter) 10px; }
  .herd-window { height: auto; }
  .hw-inner { position: relative; height: 70vh; clip-path: none; }
  .hw-inner img { transform: none; }
}
