/* IT Crowsnest — site styles
   Brand: Fraunces (display) + Inter (text); green, ink and night black. */

:root {
  --night: #0B0F0D;
  --night-2: #121814;
  --ink: #1D1D1F;
  --paper: #F7F6F2;
  --white: #FFFFFF;
  --muted: #55595A;
  --muted-dark: #A7ADA9;
  --line: #E4E2DB;
  --line-dark: rgba(255, 255, 255, 0.12);

  --green: #1E8A44;        /* brand green (graphics, large type) */
  --green-text: #1A783B;   /* green for text on light backgrounds */
  --green-bright: #2FB35A; /* green on dark backgrounds */
  --green-deep: #0F5C2E;
  --green-mint: #8FE3AC;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --radius: 14px;
  --header-h: 4.5rem;
  --page-max: 73.75rem;  /* 1180px at the base size; grows with the type on big screens */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Large monitors: scale the whole design up in proportion (type, spacing, column width,
   logo, lookout, compass) instead of leaving a small column in a sea of space.
   Laptops, tablets and phones are unchanged. */
@media (min-width: 1440px) {
  :root { --page-max: 80rem; }
  html { font-size: clamp(16px, calc(16px + (100vw - 1440px) * 0.0055), 21px); }
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 50;
  text-wrap: balance;
}
h3, .principle h2 { letter-spacing: -0.005em; }
/* Fraunces' f hook collides with a following i dot at heading sizes */
.fi-gap { margin-left: 0.05em; }

h1 em, h2 em {
  font-style: italic;
  font-weight: 500;
  color: var(--green-text);
}

p { margin: 0 0 1em; text-wrap: pretty; }

a { color: var(--green-text); }

:focus-visible {
  outline: 3px solid var(--green-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* the page waits, unseen and black, until its sky is complete: nobody sees one sky become another */
html.sky-loading { background: var(--night); }
.sky-loading body { visibility: hidden; background: var(--night); }
.sky-loading *, .sky-loading *::before, .sky-loading *::after { transition: none !important; }
.sky-loading .hero-art img { animation-play-state: paused; }
.sky { transition: opacity 0.25s ease; }
.sky-refit .sky { opacity: 0; }
.measuring .reveal { transform: none !important; transition: none !important; }
@media print { .sky-loading body { visibility: visible; } }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--white);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-text);
  margin-bottom: 1.1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.95em 1.6em;
  border-radius: 999px;
  background: var(--green-text);
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:hover {
  background: var(--green-deep);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -12px rgba(47, 179, 90, 0.6);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: none;
}
.btn-small { padding: 0.7em 1.2em; font-size: 0.9375rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(11, 15, 13, 0);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), height 0.35s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(11, 15, 13, 0.82);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  box-shadow: 0 1px 0 var(--line-dark);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* the foot of the mast sits on the wordmark's baseline, close beside it */
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  text-decoration: none;
  color: var(--white);
}
.brand-mark { height: 1.875rem; width: auto; }
.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: -0.015em;
  line-height: 1;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  white-space: nowrap;
}
.wordmark span { color: var(--green-bright); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav a:not(.btn) {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}
.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--green-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.site-nav a:not(.btn):hover,
.site-nav a.is-active { color: var(--white); }
.site-nav a:not(.btn):hover::after,
.site-nav a.is-active::after { transform: scaleX(1); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--night);
  color: var(--white);
  /* the section is only as tall as its content, so big screens get no empty band above the headline;
     the top padding leaves just enough sky for the sun or moon above the lookout */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;   /* the principles strip sits at the foot, with no spare room beneath it */
  padding: calc(var(--header-h) + clamp(56px, 9vh, 112px)) 0 clamp(28px, 4vh, 44px);
  isolation: isolate;
}
.hero-sky {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(40% 40% at 10% 100%, rgba(30, 138, 68, 0.14), transparent 70%),
    linear-gradient(180deg, #0B0F0D 0%, #0E1411 100%);
}
/* only dawn keeps a green glow around the lookout; every other sky stays clean behind him */
.hero[data-sky="dawn"] .hero-sky {
  background:
    radial-gradient(60% 70% at 78% 40%, rgba(30, 138, 68, 0.28), transparent 70%),
    radial-gradient(40% 40% at 10% 100%, rgba(30, 138, 68, 0.14), transparent 70%),
    linear-gradient(180deg, #0B0F0D 0%, #0E1411 100%);
}
.hero-sky::after {
  /* faint engraved horizon lines, echoing the hand-drawn mark */
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 9px);
  -webkit-mask-image: linear-gradient(180deg, transparent 45%, #000 100%);
  mask-image: linear-gradient(180deg, transparent 45%, #000 100%);
}

.hero-grid {
  display: grid;
  /* the text takes the room it needs; the lookout keeps just its own width */
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;   /* the foot of the lookout lines up with the bottom of the buttons */
  gap: clamp(32px, 5vw, 96px);
}

/* ---------- Live sky (phase set by script from Midland's local time) ---------- */
.sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.sky > * { position: absolute; transition: opacity 2.5s ease, filter 2.5s ease; }
.sky-day, .sky-dawn, .sky-dusk { inset: 0; opacity: 0; }
/* day: the sky lifts to a richer green, strongest on the sun side and very light behind the text */
.sky-day { background:
  linear-gradient(180deg, rgba(47, 179, 90, 0.05) 0%, transparent 60%); }
/* dawn: warm light high around the rising sun, the sky lifting above and staying quiet below */
.sky-dawn { background:
  radial-gradient(46% 58% at var(--dx, 64%) var(--hz, 30%), rgba(250, 218, 160, 0.07), rgba(236, 206, 156, 0.025) 48%, transparent 78%),
  linear-gradient(180deg, rgba(152, 200, 180, 0.07) 0%, rgba(196, 208, 168, 0.04) 34%, transparent 70%); }
/* dusk: a low ember light around the setting sun, and the sky going quickly to black */
.sky-dusk { background:
  radial-gradient(44% 46% at var(--ux, 60%) var(--uy, 30%), rgba(206, 104, 62, 0.06), rgba(150, 66, 44, 0.022) 52%, transparent 80%),
  linear-gradient(180deg, rgba(70, 60, 80, 0.06) 0%, rgba(150, 80, 54, 0.025) 34%, transparent 66%); }
/* stars (drawn by script at the real size of the section) */
.sky-stars { inset: 0; width: 100%; height: 100%; opacity: 0; }
.sky-stars circle { fill: #EAF6EE; }
.sky-stars .tw { animation: twinkle 4.5s ease-in-out infinite; animation-delay: var(--tw, 0s); }
@keyframes twinkle { 0%, 100% { opacity: var(--o, 0.6); } 50% { opacity: 0.12; } }

/* a thin crescent moon, high on the right */
.sky-moon {
  right: 7%; top: 21%;
  width: 3.4rem; aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: inset -0.75rem 0.4rem 0 0 #EAF6EE;
  rotate: -18deg;
  filter: drop-shadow(0 0 1.1rem rgba(234, 246, 238, 0.35));
  opacity: 0;
}
/* a soft daytime sun in the same spot */
.sky-sun {
  right: calc(7% - 13rem); top: calc(21% - 13rem);
  width: 30rem; aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(250, 255, 251, 0.92) 0 1.5rem, rgba(234, 250, 240, 0.45) 1.75rem, rgba(214, 242, 224, 0.18) 3.2rem, rgba(143, 227, 172, 0.08) 34%, transparent 64%);
  opacity: 0;
}
/* a short, soft corona of fine rays around the sun, turning very slowly */
.sky-rays {
  right: calc(7% - 9rem); top: calc(21% - 9rem);   /* centred on the sun */
  width: 22rem; aspect-ratio: 1;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(234, 250, 240, 0.09) 0deg 0.7deg, transparent 0.7deg 9deg);
  -webkit-mask-image: radial-gradient(circle closest-side, transparent 0 2.3rem, #000 2.9rem, rgba(0, 0, 0, 0.35) 55%, transparent 100%);
  mask-image: radial-gradient(circle closest-side, transparent 0 2.3rem, #000 2.9rem, rgba(0, 0, 0, 0.35) 55%, transparent 100%);
  animation: rays-turn 240s linear infinite;
  opacity: 0;
}
@keyframes rays-turn { to { rotate: 360deg; } }

/* Once the script has measured the lookout (--lh: its height; --lx/--ly: the point just above its pole),
   the sun, rays and moon are sized and placed from it, so the light and the lookout keep the same
   proportions on every screen. */
.hero.sky-anchored .sky-sun {
  right: auto;
  width: calc(var(--lh) * 1.778);
  left: calc(var(--lx) - var(--lh) * 0.889);
  top: calc(var(--ly) - var(--lh) * 0.889);
  background:
    radial-gradient(circle, rgba(255, 243, 208, var(--core, 0.6)) 0 calc(var(--lh) * 0.04), rgba(255, 240, 198, calc(var(--core, 0.6) * 0.82)) calc(var(--lh) * 0.086), rgba(255, 247, 222, 0.66) calc(var(--lh) * 0.089), rgba(246, 240, 206, 0.16) calc(var(--lh) * 0.094), rgba(214, 242, 224, 0.06) calc(var(--lh) * 0.15), transparent calc(var(--lh) * 0.3));
}
.hero.sky-anchored .sky-rays {
  right: auto;
  width: calc(var(--lh) * 1.304);
  left: calc(var(--lx) - var(--lh) * 0.652);
  top: calc(var(--ly) - var(--lh) * 0.652);
  -webkit-mask-image: radial-gradient(circle closest-side, transparent 0 calc(var(--lh) * 0.136), #000 calc(var(--lh) * 0.172), rgba(0, 0, 0, 0.35) 55%, transparent 100%);
  mask-image: radial-gradient(circle closest-side, transparent 0 calc(var(--lh) * 0.136), #000 calc(var(--lh) * 0.172), rgba(0, 0, 0, 0.35) 55%, transparent 100%);
}
/* the moon is just a little smaller than the sun's glowing disc, and sits further right */
.hero.sky-anchored .sky-moon {
  right: auto;
  width: calc(var(--lh) * 0.17);
  left: calc(var(--mx) - var(--lh) * 0.085);
  top: calc(var(--my) - var(--lh) * 0.085);
  box-shadow: inset calc(var(--lh) * -0.037) calc(var(--lh) * 0.02) 0 0 #EAF6EE;
}

/* wispy line-drawn clouds (drawn by script), drifting slowly */
.sky-clouds { inset: 0; width: 100%; height: 100%; opacity: 0; overflow: visible; }
@keyframes cloud-drift { from { transform: translateX(0); } to { transform: translateX(var(--cx, 140px)); } }

/* three crows, never more, over the right of the sky, from about where the dusk sun sits. script.js
   sends each one across on its own straight line: no formation, and never bunched together. */
.sky-birds {
  top: 0; bottom: 0; left: calc(var(--ux, 56%) - var(--lh, 300px) * 0.16); right: 0; opacity: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%); mask-image: linear-gradient(90deg, transparent, #000 12%);
}
.bird { position: absolute; left: -3rem; top: 18%; width: calc(1.6rem * var(--s, 1)); }
.bird svg { display: block; width: 100%; overflow: visible; transform-origin: 50% 60%; animation: bird-flap 6s ease-in-out infinite -1s; }
.bird:nth-child(2) svg { animation: bird-flap-lazy 7.4s ease-in-out infinite -4s; }
.bird:nth-child(3) svg { animation: bird-flap-busy 5.1s ease-in-out infinite -2.5s; }
.bird path { fill: none; stroke: rgba(234, 246, 238, 0.55); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
/* crows do not flap like clockwork: a few beats, then a held glide */
@keyframes bird-flap { 0%, 16%, 32%, 48%, 100% { transform: scaleY(1); } 8%, 24%, 40% { transform: scaleY(0.5); } 60%, 90% { transform: scaleY(0.82); } }
@keyframes bird-flap-lazy { 0%, 20%, 40%, 100% { transform: scaleY(1); } 10%, 30% { transform: scaleY(0.55); } 50%, 92% { transform: scaleY(0.76); } }
@keyframes bird-flap-busy { 0%, 12%, 25%, 37%, 62%, 75%, 100% { transform: scaleY(1); } 6%, 18%, 31%, 68%, 88% { transform: scaleY(0.5); } 44%, 56% { transform: scaleY(0.84); } }

.hero[data-sky="night"] .sky-stars { opacity: 1; }
.hero[data-sky="night"] .sky-fullmoon { opacity: 1; }
.hero[data-sky="dawn"] .sky-dawn { opacity: 1; }
.hero[data-sky="dawn"] .sky-stars { opacity: 0; }
.hero[data-sky="dawn"] .sky-sunrise { opacity: 1; }
.hero[data-sky="dawn"] .sky-moon { opacity: 0; }
.hero[data-sky="dawn"] .sky-clouds { opacity: 1; }
.hero[data-sky="dawn"] .sky-birds { opacity: 1; }
.hero[data-sky="day"] .sky-day { opacity: 1; }
.hero[data-sky="day"] .sky-sun { opacity: 1; }
.hero[data-sky="day"] .sky-rays { opacity: 1; }
.hero[data-sky="day"] .sky-clouds { opacity: 1; }
.hero[data-sky="day"] .sky-birds { opacity: 1; }
.hero[data-sky="dusk"] .sky-dusk { opacity: 1; }
.hero[data-sky="dusk"] .sky-stars { opacity: 0.14; }
.hero[data-sky="dusk"] .sky-moon { opacity: 0; }
.hero[data-sky="dusk"] .sky-clouds { opacity: 1; }
.hero[data-sky="dusk"] .sky-birds { opacity: 0.9; }

/* night: a full moon with its own place in the sky (dusk and dawn keep the crescent) */
.sky-fullmoon {
  width: calc(var(--lh, 300px) * 0.17); height: calc(var(--lh, 300px) * 0.17);
  left: calc(var(--nx, 70%) - var(--lh, 300px) * 0.085); top: calc(var(--ny, 150px) - var(--lh, 300px) * 0.085);
  opacity: 0; overflow: visible;
  filter: sepia(var(--nm-warm, 0)) hue-rotate(calc(var(--nm-warm, 0) * -14deg)) saturate(calc(1 + var(--nm-warm, 0) * 0.7));
}
.sky-fullmoon .disc { fill: #EAF6EE; }
.sky-fullmoon .face { opacity: 0; transition: opacity 2.5s ease; }
.sky-fullmoon .disc, .sky-fullmoon .seas { filter: blur(var(--nm-soft, 0px)); }
.sky-fullmoon .for-open { opacity: var(--nm, 1); }
.hero[data-wx="overcast"] .sky-fullmoon .for-open, .hero[data-wx="rain"] .sky-fullmoon .for-open { opacity: 0; }
.hero[data-wx="overcast"] .sky-fullmoon .face.for-overcast, .hero[data-wx="rain"]:not([data-wx-level="heavy"]) .sky-fullmoon .face.for-rain,
.hero[data-wx="rain"][data-wx-level="heavy"] .sky-fullmoon .face.for-storm { opacity: var(--nm, 1); }
/* the cloud crossing the moon, and the dimming that travels with it, share one slow drift */
.sky-fullmoon .mooncloud { --k: 0.62; }
.sky-fullmoon > .mooncloud { opacity: 0; transition: opacity 2.5s ease; }
.hero[data-wx="overcast"] .sky-fullmoon > .mooncloud.for-overcast, .hero[data-wx="rain"]:not([data-wx-level="heavy"]) .sky-fullmoon > .mooncloud.for-rain,
.hero[data-wx="rain"][data-wx-level="heavy"] .sky-fullmoon > .mooncloud.for-storm { opacity: 1; }
.sky-fullmoon .mooncloud .line { fill: rgba(218, 234, 225, var(--k)); }
.sky-fullmoon .mooncloud .tone { fill: rgba(218, 234, 225, calc(var(--k) * 0.68)); }
.sky-fullmoon .mooncloud .faint { fill: rgba(218, 234, 225, calc(var(--k) * 0.5)); }
.hero[data-sky="night"] .sky-fullmoon .mooncloud { animation: moon-cross 90s ease-in-out infinite alternate; }
.hero.wx-windy[data-sky="night"] .sky-fullmoon .mooncloud { animation-duration: 40s; }
@keyframes moon-cross { from { transform: translateX(-26px); } to { transform: translateX(26px); } }
/* phones and tablets: the moon hangs lower, so it shines plainly (a cloud there would sit below the flag) */
@media (max-width: 980px) {
  .hero .sky-fullmoon > .mooncloud { visibility: hidden; }
  .hero[data-wx] .sky-fullmoon .face { opacity: 0 !important; }
  .hero[data-wx] .sky-fullmoon .face.for-open { opacity: var(--nm, 1) !important; }
}
.sky-fullmoon .air { opacity: var(--nm-air, 0.22); transition: opacity 2.5s ease; }
/* the moon shines in every night sky, as that weather would let it */
.hero[data-wx="overcast"] { --nm: 0.6; --nm-air: 0.62; }
.hero[data-wx="rain"] { --nm: 0.36; --nm-air: 0.6; --nm-soft: 1.2px; }
.hero[data-wx="rain"][data-wx-level="heavy"] { --nm: 0.44; --nm-air: 0.5; --nm-soft: 0.4px; }
.hero[data-wx="snow"] { --nm: 0.62; --nm-air: 0.95; --nm-soft: 0.8px; }
.hero[data-wx="dust"] { --nm: 0.78; --nm-air: 0.7; --nm-warm: 0.85; --nm-soft: 0.5px; }
.hero[data-wx="dust"][data-wx-level="light"] { --nm: 0.86; --nm-air: 0.5; --nm-warm: 0.5; }
/* dawn: the sun coming up on the horizon */
.sky-sunrise {
  width: calc(var(--lh, 300px) * 2); height: var(--lh, 300px); overflow: visible; opacity: 0; max-width: none;
  left: calc(var(--dx, 70%) - var(--lh, 300px)); top: calc(var(--hz, 70%) - var(--lh, 300px));
  filter: opacity(var(--sun-o, 1)) saturate(var(--sun-sat, 1));
}
.hero[data-sky="dawn"] .not-dawn { visibility: hidden; }
.sky-sunrise .dawn-clear { opacity: 0; transition: opacity 2.5s ease; }
.sky-sunrise .dawn-plain { transition: opacity 2.5s ease; }
.hero[data-wx="clear"] .sky-sunrise .dawn-clear { opacity: 1; }
.hero[data-wx="clear"] .sky-sunrise .dawn-plain { opacity: 0; }
.sky-sunrise .dawnbank .line { fill: rgba(255, 236, 200, 0.62); }
.sky-sunrise .dawnbank .tone { fill: rgba(250, 228, 190, 0.42); }
.sky-sunrise .dawnbank .faint { fill: rgba(250, 228, 190, 0.3); }
.hero[data-sky="dawn"] .sky-sunrise .dawnbank { animation: dawn-cross 80s ease-in-out infinite alternate; }
@keyframes dawn-cross { from { transform: translateX(-2.5px); } to { transform: translateX(2.5px); } }
/* dusk: the setting sun, the evening star and the crows coming home */
.sky-sunset, .sky-star { opacity: 0; overflow: visible; max-width: none; }
.sky-sunset { width: var(--lh, 300px); height: var(--lh, 300px); left: calc(var(--ux, 60%) - var(--lh, 300px) * 0.5); top: calc(var(--uy, 30%) - var(--lh, 300px) * 0.5); filter: opacity(var(--sun-o, 1)) saturate(var(--sun-sat, 1)); }
.sky-star { width: calc(var(--lh, 300px) * 0.05); height: calc(var(--lh, 300px) * 0.05); left: calc(var(--mx, 80%) - var(--lh, 300px) * 0.025); top: calc(var(--my, 120px) - var(--lh, 300px) * 0.025); filter: opacity(var(--stars-o, 1)); }
.sky-star path, .sky-star circle { fill: #F4F1E6; }
.hero[data-sky="dusk"] .sky-sunset, .hero[data-sky="dusk"] .sky-star { opacity: 1; }
.sky-sunset .dusk-clear { opacity: 0; transition: opacity 2.5s ease; }
.sky-sunset .dusk-plain { transition: opacity 2.5s ease; }
.hero[data-wx="clear"] .sky-sunset .dusk-clear { opacity: 1; }
.hero[data-wx="clear"] .sky-sunset .dusk-plain { opacity: 0; }
.sky-sunset .rim { fill: rgba(250, 200, 158, 0.6); }
.sky-sunset .line { fill: rgba(236, 168, 128, 0.62); }
.sky-sunset .tone { fill: rgba(226, 150, 112, 0.4); }
.hero[data-sky="dusk"] .duskbars { animation: dusk-drift 90s ease-in-out infinite alternate; }
@keyframes dusk-drift { from { transform: translateX(-2px); } to { transform: translateX(2px); } }
.hero .look-dusk { --ink: 226, 158, 120; --k: 0.5; }
.hero[data-sky="dusk"][data-wx="clear"] .look-dusk { opacity: 1; }
.hero[data-sky="dusk"][data-wx="clear"] .look-clear { opacity: 0; }
.hero[data-sky="dusk"][data-wx="clear"] .look-dusk .cloud { animation: cloud-drift var(--cd, 80s) ease-in-out infinite alternate; animation-delay: var(--cdl, 0s); }
.hero[data-sky="dusk"][data-wx="overcast"] .look { --ink: 206, 176, 158; }
/* a few crows on a clear night too: pale against the sky, dark as they cross the moon */
.hero[data-sky="night"][data-wx="clear"] .sky-birds { opacity: 0.7; mix-blend-mode: difference; }
@media (max-width: 980px) { .hero[data-sky="night"][data-wx="clear"] .sky-birds { opacity: 1; } }
.sky-sunrise .rim { fill: rgba(255, 240, 208, 0.7); }
.sky-sunrise .rays { fill: rgba(250, 224, 172, 0.36); }
.hero[data-sky="dawn"][data-wx="clear"] .look, .hero[data-sky="dawn"][data-wx="overcast"] .look { --ink: 250, 232, 200; }
.sky-fullmoon .seas { fill: rgba(96, 132, 110, 0.34); }
/* a clear night is kept clean: the crowding stars step aside */
.hero[data-sky="night"][data-wx="clear"] .sky-stars [data-extra] { visibility: hidden; }

/* ---------- Live weather (look set by script from Midland's latest NWS report) ----------
   The time of day sets each layer's opacity; the weather multiplies it through these variables,
   so every look works at dawn, day, dusk and night. */
.sky-stars { filter: opacity(var(--stars-o, 1)) brightness(var(--stars-b, 1)); }
.sky-sun   { filter: opacity(var(--sun-o, 1)) saturate(var(--sun-sat, 1)) sepia(var(--sun-sep, 0)) blur(var(--sun-blur, 0px)); }
.sky-rays  { filter: opacity(var(--rays-o, 1)); }
.sky-moon  { filter: opacity(var(--moon-o, 1)) sepia(var(--moon-sep, 0)) blur(var(--moon-blur, 0px)) drop-shadow(0 0 calc(var(--lh, 300px) * 0.055) rgba(234, 246, 238, 0.35)); }
.sky-clouds { filter: opacity(var(--clouds-o, 1)); }
.sky-birds  { filter: opacity(var(--birds-o, 1)); }

.sky-veil, .sky-cold, .sky-dust { inset: 0; opacity: 0; }
.sky-deck { inset: 0; width: 100%; height: 100%; opacity: 0; overflow: visible; }
.sky-precip { inset: 0; width: 100%; height: 100%; opacity: 0; }

/* the cloud deck: engraved banks under a ceiling of fine hatching */

/* each sky's own cloud family, all in the same pen */
.look { opacity: 0; transition: opacity 2.5s ease; --ink: 232, 244, 237; }
.look .line { fill: rgba(var(--ink), var(--k, 0.5)); }
.look .tone { fill: rgba(var(--ink), calc(var(--k, 0.5) * 0.68)); }
.look .faint { fill: rgba(var(--ink), calc(var(--k, 0.5) * 0.5)); }
.look-clear { --k: 0.56; }
.look-overcast { --ink: 214, 226, 219; --k: 0.46; }
.look-rain { --ink: 190, 214, 201; --k: 0.5; }
.look-snow { --ink: 244, 250, 252; --k: 0.62; }
.look-dust { --ink: 238, 210, 166; --k: 0.5; }
.hero.wx-cold .look-clear { --ink: 244, 250, 254; --k: 0.66; }
.hero[data-sky="night"] .sky-deck .look { --k: 0.4; }
.hero[data-wx="clear"] .look-clear, .hero[data-wx="overcast"] .look-overcast, .hero[data-wx="rain"] .look-rain,
.hero[data-wx="snow"] .look-snow, .hero[data-wx="dust"] .look-dust { opacity: 1; }
.look .cloud, .echo-sky .cloud { animation-name: none; }
.hero[data-wx="clear"] .look-clear .cloud, .hero[data-wx="overcast"] .look-overcast .cloud, .hero[data-wx="rain"] .look-rain .cloud,
.hero[data-wx="snow"] .look-snow .cloud, .hero[data-wx="dust"] .look-dust .cloud, .echo-sky .cloud {
  animation: cloud-drift var(--cd, 80s) ease-in-out infinite alternate; animation-delay: var(--cdl, 0s);
}
.echo-sky .line { fill: rgba(255, 255, 255, 0.42); }
.echo-sky .tone { fill: rgba(255, 255, 255, 0.28); }
.echo-sky .faint { fill: rgba(255, 255, 255, 0.2); }
/* overcast: a full deck; the sun is a dim glow behind it, the moon a smudge */
.hero[data-wx="overcast"] { --sun-o: 0.42; --sun-blur: 6px; --rays-o: 0; --stars-o: 0.15; --moon-o: 0.22; --moon-blur: 1.5px; --clouds-o: 0; --birds-o: 0.75; }
.hero[data-wx="overcast"] .sky-deck { opacity: 1; }
.hero[data-wx="overcast"] .sky-day, .hero[data-wx="snow"] .sky-day { filter: opacity(0.5); }
.hero[data-wx="overcast"] .sky-veil { opacity: 1; background: linear-gradient(180deg, rgba(176, 190, 184, 0.13), rgba(176, 190, 184, 0.05) 60%, rgba(176, 190, 184, 0.02)); }
.hero[data-wx="overcast"][data-wx-level="heavy"] .sky-veil { background: linear-gradient(180deg, rgba(196, 212, 204, 0.14), rgba(196, 212, 204, 0.06) 70%, rgba(196, 212, 204, 0.03)); }

/* rain: the banks turn dark and heavy, blotting out the sky behind them; rain falls on a slant */
.hero[data-wx="rain"] { --sun-o: 0.1; --sun-blur: 10px; --rays-o: 0; --stars-o: 0; --moon-o: 0; --clouds-o: 0; --birds-o: 0; }
.hero[data-wx="rain"] .sky-deck { opacity: 1; }
.hero[data-wx="rain"] .sky-veil { opacity: 1; background: linear-gradient(180deg, rgba(8, 18, 14, 0.34), rgba(6, 12, 9, 0.16) 65%, rgba(4, 8, 6, 0.1)); }
.hero[data-wx="rain"] .sky-precip { opacity: 1; }
/* storm: its own thunderheads instead of the rain clouds, a murky green storm light behind them,
   harder rain, and slow distant lightning */
.sky-storm { inset: 0; width: 100%; height: 100%; opacity: 0; overflow: visible; }
/* pen strokes only: the sky shows through every cloud */
.sky-storm .line { fill: rgba(226, 240, 232, 0.5); }
.sky-storm .tone { fill: rgba(214, 234, 222, 0.3); }
.sky-storm .faint { fill: rgba(214, 234, 222, 0.28); }
.sky-storm .bolt { fill: #F2FFF6; opacity: 0; }
.sky-storm .glow { opacity: 0; }
.sky-storm .cell { animation: cloud-drift var(--cd, 70s) ease-in-out infinite alternate; }
.hero[data-wx="rain"][data-wx-level="heavy"] .sky-storm { opacity: 1; }
.hero[data-wx="rain"][data-wx-level="heavy"] .sky-deck { opacity: 0; }
.hero[data-wx="rain"][data-wx-level="heavy"] .sky-veil { background:
  linear-gradient(180deg, rgba(96, 132, 98, 0.32), rgba(70, 104, 78, 0.22) 50%, rgba(40, 62, 48, 0.14)); }
.hero[data-wx="rain"][data-wx-level="heavy"][data-sky="night"] .sky-veil { background:
  linear-gradient(180deg, rgba(72, 102, 82, 0.22), rgba(50, 76, 60, 0.15) 50%, rgba(22, 36, 28, 0.12)); }
/* one gentle swell of light per cloud every 11 seconds: never a strobe, never the whole screen */
.hero[data-wx="rain"][data-wx-level="heavy"] .bolt,
.hero[data-wx="rain"][data-wx-level="heavy"] .glow { animation: storm-light 11s ease-out infinite; animation-delay: var(--bd, 0s); }
@keyframes storm-light { 0% { opacity: 0; } 4% { opacity: 0.95; } 9% { opacity: 0.7; } 24%, 100% { opacity: 0; } }
/* reduced motion: the bolt simply stays drawn, with no light coming and going */
@media (prefers-reduced-motion: reduce) {
  .hero[data-wx="rain"][data-wx-level="heavy"] .bolt { animation: none; opacity: 0.5; }
  .hero[data-wx="rain"][data-wx-level="heavy"] .glow { animation: none; opacity: 0.2; }
}

/* snow: a pale deck, a hushed sun, flakes drifting down */
.hero[data-wx="snow"] { --sun-o: 0.3; --sun-blur: 8px; --sun-sat: 0.2; --rays-o: 0; --stars-o: 0.1; --moon-o: 0.25; --moon-blur: 1.5px; --clouds-o: 0; --birds-o: 0; }
.hero[data-wx="snow"] .sky-deck { opacity: 1; }
.hero[data-wx="snow"] .sky-veil { opacity: 1; background: linear-gradient(180deg, rgba(222, 234, 238, 0.11), rgba(222, 234, 238, 0.04) 70%, transparent); }
.hero[data-wx="snow"] .sky-precip { opacity: 1; }

/* dust: the Permian Basin special. A warm haze rises off the ground, the sun turns into a flat
   pale disc, and fine grit streams across on the wind */
.hero[data-wx="dust"] { --sun-o: 0.9; --sun-sep: 0.9; --sun-sat: 0.7; --rays-o: 0; --stars-o: 0.08; --moon-o: 0.6; --moon-sep: 0.85; --clouds-o: 0; --birds-o: 0; }
.hero[data-wx="dust"] .sky-veil { opacity: 1; background:
  linear-gradient(0deg, rgba(168, 124, 72, 0.34) 0%, rgba(168, 124, 72, 0.22) 45%, rgba(150, 112, 68, 0.14) 100%); }
.hero[data-wx="dust"] .sky-day { filter: opacity(0.25); }
.hero[data-wx="dust"] .sky-dust { opacity: 1; }
.hero[data-wx="dust"] .sky-precip { opacity: 1; }
/* the sky isn't empty on a dusty day: long layers of dust drift aloft, the light clouds stay
   (tinted the color of the dust), and a few crows ride the wind */
.sky-streamers { inset: 0; width: 100%; height: 100%; opacity: 0; overflow: visible; }
.sky-streamers path { fill: rgba(236, 208, 164, 0.46); }
.sky-streamers .streamer { animation: cloud-drift var(--cd, 80s) ease-in-out infinite alternate; animation-delay: var(--cdl, 0s); }
.hero[data-wx="dust"] .sky-streamers { opacity: 1; }
.hero[data-wx="dust"] { --clouds-o: 0.9; --birds-o: 0.6; --core: 0.9; }
.hero[data-wx="dust"] .bird path { stroke: rgba(240, 226, 204, 0.5); }
.hero[data-sky="night"][data-wx="dust"] .sky-streamers { opacity: 0.6; }
.hero[data-wx="dust"][data-wx-level="light"] .sky-streamers { opacity: 0.5; }
.hero.wx-windy .sky-streamers .streamer { animation-duration: calc(var(--cd, 80s) * 0.4); }
/* haze and smoke: the same warm cast, lighter, with no blowing grit */
.hero[data-wx="dust"][data-wx-level="light"] { --sun-o: 0.95; --sun-sep: 0.5; --sun-sat: 0.85; --rays-o: 0.3; --stars-o: 0.35; --moon-sep: 0.5; --moon-o: 0.85; --clouds-o: 0.45; --birds-o: 0.7; }
.hero[data-wx="dust"][data-wx-level="light"] .sky-veil { background: linear-gradient(0deg, rgba(176, 134, 82, 0.15) 0%, rgba(176, 134, 82, 0.07) 50%, rgba(176, 134, 82, 0.03) 100%); }
.hero[data-wx="dust"][data-wx-level="light"] .sky-dust { opacity: 0.45; }
/* slow-rolling billows of dust low in the sky */
.sky-dust {
  left: -50%; right: -50%;
  background:
    radial-gradient(28% 40% at 22% 96%, rgba(204, 160, 102, 0.3), transparent 70%),
    radial-gradient(24% 34% at 50% 88%, rgba(204, 160, 102, 0.2), transparent 70%),
    radial-gradient(30% 44% at 80% 100%, rgba(204, 160, 102, 0.28), transparent 70%),
    radial-gradient(40% 30% at 70% 30%, rgba(190, 148, 96, 0.12), transparent 70%);
  animation: dust-roll 70s ease-in-out infinite alternate;
}
@keyframes dust-roll { from { transform: translateX(-6%); } to { transform: translateX(6%); } }

/* cold: a crisp, pale cast; whiter sun, sharper stars */
.sky-cold { background:
  radial-gradient(90% 65% at 60% 0%, rgba(214, 234, 242, 0.17), transparent 72%),
  linear-gradient(180deg, rgba(214, 234, 242, 0.07), transparent 60%); }
.hero.wx-cold .sky-cold { opacity: 1; }
.hero.wx-cold { --sun-sat: 0.15; --stars-b: 1.4; }
.hero.wx-cold[data-wx="clear"] .sky-day { filter: opacity(0.6); }
/* the cold-weather halo: a thin ring of ice-crystal light around the sun by day and the moon by night */
.sky-halo {
  opacity: 0; border-radius: 50%;
  border: 1px solid rgba(236, 246, 250, 0.26);
  box-shadow: 0 0 calc(var(--lh, 300px) * 0.03) rgba(236, 246, 250, 0.12), inset 0 0 calc(var(--lh, 300px) * 0.035) rgba(236, 246, 250, 0.1);
  -webkit-mask-image: linear-gradient(160deg, #000 30%, rgba(0, 0, 0, 0.35) 90%);
  mask-image: linear-gradient(160deg, #000 30%, rgba(0, 0, 0, 0.35) 90%);
}
.hero.sky-anchored .sky-halo {
  width: calc(var(--lh) * 0.6); aspect-ratio: 1;
  left: calc(var(--lx) - var(--lh) * 0.3); top: calc(var(--ly) - var(--lh) * 0.3);
}
.hero.sky-anchored[data-sky="night"] .sky-halo {
  width: calc(var(--lh) * 0.36);
  left: calc(var(--nx) - var(--lh) * 0.18); top: calc(var(--ny) - var(--lh) * 0.18);
}
.hero.sky-anchored[data-sky="dusk"] .sky-halo {
  width: calc(var(--lh) * 0.36);
  left: calc(var(--mx) - var(--lh) * 0.18); top: calc(var(--my) - var(--lh) * 0.18);
}
.hero.wx-cold[data-wx="clear"] .sky-halo, .hero.wx-cold[data-wx="overcast"] .sky-halo { opacity: 1; }
.hero.wx-cold[data-wx="overcast"] .sky-halo { filter: opacity(0.5); }
.hero.wx-cold[data-sky="dawn"] .sky-halo { filter: opacity(0.4); }
.hero.wx-cold[data-wx="dust"] { --sun-sat: 0.7; }

/* windy: everything in the sky moves quicker and leans harder */
.hero.wx-windy .sky-clouds .cloud { animation-duration: calc(var(--cd, 70s) * 0.4); }
.hero.wx-windy .sky-deck .cloud { animation-duration: calc(var(--cd, 90s) * 0.4); }
.hero.wx-windy .sky-dust { animation-duration: 26s; }
.hero.wx-windy .sky-rays { animation-duration: 120s; }

/* at night the deck is lit only faintly */
.hero[data-sky="night"][data-wx="dust"] .sky-veil { opacity: 0.7; }

.hero .eyebrow { color: var(--green-bright); }

.hero h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.5rem);
  margin-bottom: 0.3em;
}
/* the service and place sit under the headline as its caption */
.hero-place { margin-bottom: 1.5rem; }
.hero-place .place-dot { color: rgba(255, 255, 255, 0.55); padding: 0 0.2em; }
.hero h1 em { color: var(--green-bright); }
/* dawn's lighter sky needs a slightly brighter green to stay easy to read */
.hero[data-sky="dawn"] .eyebrow, .hero[data-sky="dawn"] h1 em { color: #6FD594; }

.lead {
  font-size: clamp(1.0625rem, 1.3vw, 1.175rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  max-width: 39em;
  margin-bottom: 2.2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* the lookout (cropped to its drawn edges) stands as tall as the screen comfortably allows,
   beside the headline, so it fills its column instead of floating at the edge */
.hero-art {
  position: relative;
  justify-self: end;
  height: clamp(260px, calc(100svh - 30rem), 30rem);
  aspect-ratio: 307 / 570;
  max-width: 100%;
}
.hero-art::before {
  /* a soft green glow behind the lookout */
  content: ""; position: absolute; left: 31.6%; top: 46%;
  width: 280%; aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 179, 90, 0.2), transparent 62%);
  pointer-events: none;
}
.hero:not([data-sky="dawn"]) .hero-art::before { display: none; }
.hero:not([data-sky="dawn"]) .hero-art img { filter: none; }
.hero-art img {
  position: relative;
  width: 100%; height: 100%; object-fit: contain; object-position: center bottom;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.5));
  animation: rise 1.4s var(--ease) both 0.2s;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Principles: a ruled strip along the foot of the opening section ---------- */
.principles {
  list-style: none;
  margin: clamp(36px, 5vh, 56px) auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.principle {
  padding: 22px 24px 4px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}
.principle + .principle { padding-left: 24px; border-left: 1px solid var(--line-dark); }
.principle h2 {
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 0.4em;
}
.principle p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
}
.hero[data-sky="dawn"] .principle p { color: rgba(255, 255, 255, 0.88); }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; }

.section-head { max-width: 47.5rem; margin-bottom: 3.5rem; }
.section-head h2,
.growth-head h2,
.about-copy h2,
.contact-copy h2 {
  font-size: clamp(2.1rem, 4.2vw, 3.3rem);
}
.section-intro {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 40em;
}

/* ---------- The engraved sky, carried down the page ---------- */
.contact { position: relative; overflow: hidden; }
.echo-sky { position: absolute; pointer-events: none; overflow: visible; height: auto; }
.echo-sky .crow path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.echo-sky .crow path { stroke-width: 1.5; }
.echo-sky .cloud { animation: cloud-drift var(--cd, 80s) ease-in-out infinite alternate; animation-delay: var(--cdl, 0s); }
.echo-light .crow path { stroke: rgba(255, 255, 255, 0.45); }
/* Contact: high in the section, in the sky above the heading (sky is always above the words, never below) */
.contact .echo-sky { left: max(24px, calc((100% - var(--page-max)) / 2 + 24px)); top: clamp(12px, 2vw, 28px); width: min(36%, 26rem); }
.contact-inner { position: relative; z-index: 1; }
/* the same faint ruled horizon as the opening section, at the foot of the dark and green sections */
.growth::after, .contact::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 9px);
  -webkit-mask-image: linear-gradient(180deg, transparent 50%, #000 100%);
  mask-image: linear-gradient(180deg, transparent 50%, #000 100%);
}
.contact::after { background-image: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 9px); }
@media (max-width: 980px) { .echo-sky { display: none; } }

/* ---------- Services ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px 30px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.card::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--green-bright));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: 0 24px 48px -28px rgba(11, 15, 13, 0.35), 0 0 0 1px rgba(30, 138, 68, 0.18);
}
.card:hover::after { transform: scaleX(1); }

.card-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card-icon .accent { stroke: var(--green); stroke-width: 2.4; }
.card-icon .accent.fill { fill: var(--green); }

.card h3 { font-size: 1.35rem; margin-bottom: 0.5em; }
.card p { color: var(--muted); margin: 0; font-size: 1rem; }

/* ---------- Our approach: compass, chart route, four waypoints ---------- */
.growth {
  background: var(--night);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.growth::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 85% 20%, rgba(30, 138, 68, 0.22), transparent 70%),
    radial-gradient(40% 40% at 0% 100%, rgba(30, 138, 68, 0.12), transparent 70%);
  pointer-events: none;
}
.growth-inner { position: relative; }
/* the heading always leaves room for the compass beside it */
.growth-head { max-width: min(47.5rem, calc(100% - clamp(190px, 22vw, 18.75rem) - 3rem)); margin-bottom: clamp(44px, 6vw, 72px); position: relative; z-index: 1; }
.wp-num { fill: var(--green-mint); font-family: var(--mono); font-size: 20px; font-weight: 500; letter-spacing: 0.08em; text-anchor: middle; }
/* the compass hides on narrow screens; the route chart stays until phone size */
@media (max-width: 900px) {
  .compass { display: none; }
  .growth-head { max-width: 47.5rem; }
}
@media (max-width: 600px) { .route-map { display: none; } }
.growth .eyebrow { color: var(--green-bright); }
.growth h2 em { color: var(--green-bright); }
.growth .section-intro { color: rgba(255, 255, 255, 0.72); margin: 0; }

/* compass rose; its needle settles on the route's heading */
.compass {
  position: absolute;
  right: 1.5rem;
  top: 0;
  width: clamp(190px, 22vw, 18.75rem);
  overflow: visible;
}
.c-ring { fill: none; stroke: rgba(255, 255, 255, 0.22); stroke-width: 0.8; }
.c-ring.faint { stroke: rgba(255, 255, 255, 0.08); }
.c-ticks line { stroke: rgba(255, 255, 255, 0.28); stroke-width: 0.6; }
.c-ticks line.major { stroke: rgba(143, 227, 172, 0.7); stroke-width: 1; }
.c-label { fill: rgba(255, 255, 255, 0.6); font-family: var(--mono); font-size: 9px; text-anchor: middle; dominant-baseline: middle; }
.c-north { fill: var(--green-bright); }
.c-south { fill: rgba(255, 255, 255, 0.22); }
.c-pin { fill: var(--night); stroke: var(--green-mint); stroke-width: 1; }
/* live wind: a mint marker on the rim at the bearing Midland's wind is blowing from */
.c-wind { transform: rotate(var(--wd, 0deg)); opacity: 0; transition: opacity 1.2s var(--ease), transform 2.4s var(--ease); }
.c-wind.is-on { opacity: 1; }
.c-wind-mark { fill: var(--green-mint); }
.c-wind-tick { stroke: var(--green-mint); stroke-width: 1; opacity: 0.7; }
.c-wind-label { fill: rgba(255, 255, 255, 0.55); font-family: var(--mono); font-size: 7.5px; letter-spacing: 0.14em; text-transform: uppercase; text-anchor: middle; }
.c-needle { transform: rotate(38deg); }
.js .c-needle { transform: rotate(-60deg); transition: transform 2.4s cubic-bezier(0.25, 1.4, 0.4, 1) 0.3s; }
.js .compass.is-visible .c-needle { transform: rotate(38deg); }

/* the chart route, drawn as the section arrives */
.route-map { width: 100%; height: auto; overflow: visible; margin-bottom: 8px; }
.route-grid path { stroke: rgba(255, 255, 255, 0.06); stroke-width: 1; fill: none; }
.route-line { fill: none; stroke: var(--green-bright); stroke-width: 2.5; stroke-dasharray: 2 10; stroke-linecap: round; }
.route-mask { fill: none; stroke: #fff; stroke-width: 12; stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .route .route-mask { stroke-dashoffset: 1; }
.js .route.is-visible .route-mask { transition: stroke-dashoffset 2.6s cubic-bezier(0.45, 0, 0.2, 1) 0.2s; stroke-dashoffset: 0; }
.js .waypoint { opacity: 0; transition: opacity 0.6s var(--ease); transition-delay: calc(0.35s + var(--w) * 0.62s); }
.js .route.is-visible .waypoint { opacity: 1; }
.wp-halo { fill: rgba(47, 179, 90, 0.12); stroke: rgba(143, 227, 172, 0.45); stroke-width: 1; }
.wp-dot { fill: var(--green-bright); }
.wp-tick { stroke: rgba(143, 227, 172, 0.6); stroke-width: 1.2; }

/* hovering (or tapping) a waypoint lights it, names it, and lights its WP label below; hovering a stage lights its waypoint */
.wp-hit { fill: transparent; pointer-events: all; cursor: pointer; }
.wp-tip { fill: var(--white); font-family: var(--mono); font-size: 17px; font-weight: 500; letter-spacing: 0.12em; text-anchor: middle; opacity: 0; }
.wp-num, .wp-tip { transition: opacity 0.25s var(--ease); }
.wp-halo, .wp-dot, .wp-tick { transition: fill 0.25s var(--ease), stroke 0.25s var(--ease), filter 0.25s var(--ease); }
.waypoint.is-lit .wp-num { opacity: 0; }
.waypoint.is-lit .wp-tip { opacity: 1; }
.waypoint.is-lit .wp-halo { fill: rgba(47, 179, 90, 0.32); stroke: var(--green-mint); }
.waypoint.is-lit .wp-dot { fill: var(--green-mint); filter: drop-shadow(0 0 8px rgba(143, 227, 172, 0.9)); }
.waypoint.is-lit .wp-tick { stroke: var(--green-mint); }

.stages {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.stage { position: relative; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.stage::before {
  /* a green rule that draws across the top of the stage when its waypoint is lit */
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px;
  background: var(--green-bright);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.stage.is-lit::before { transform: scaleX(1); }
.stage-no { transition: color 0.25s var(--ease), text-shadow 0.25s var(--ease); }
.stage.is-lit .stage-no { color: var(--green-mint); text-shadow: 0 0 12px rgba(143, 227, 172, 0.7); }
.js .stage {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(0.5s + var(--w) * 0.62s);
}
.js .route.is-visible .stage { opacity: 1; transform: none; }
.stage-no {
  display: block; margin-bottom: 14px;
  font-family: var(--mono); font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--green-bright);
}
.stage h3 { font-size: clamp(1.45rem, 2vw, 1.85rem); font-weight: 500; letter-spacing: -0.015em; margin-bottom: 0.45em; }
.stage p { color: rgba(255, 255, 255, 0.74); font-size: 1rem; margin: 0; }


/* ---------- About ---------- */
.about { background: var(--paper); }
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
  align-items: center;
}
.about-seal {
  justify-self: center;
  width: min(100%, 25rem);
  border-radius: 50%;
  box-shadow: 0 40px 80px -40px rgba(15, 92, 46, 0.55);
}
.about-seal img { width: 100%; border-radius: 50%; }
.about-copy p:not(.eyebrow) { color: #3F4341; font-size: 1.0938rem; }
.about-copy p:last-child { margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(143, 227, 172, 0.08), transparent 60%),
    linear-gradient(135deg, #156B34 0%, #0B4A24 100%);
  color: var(--white);
  padding: clamp(80px, 10vw, 128px) 0;
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.contact .eyebrow { color: #D4F5DF; }
.contact-copy p:not(.eyebrow) {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 30em;
  margin: 0;
}
.contact-links { display: grid; gap: 14px; }
.contact-card {
  display: grid;
  gap: 2px;
  padding: 22px 26px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--white);
  text-decoration: none;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
a.contact-card:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateX(4px);
}
.contact-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #D4F5DF;
}
.contact-value {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 500;
  overflow-wrap: anywhere;
}
.contact-note { font-size: 0.9375rem; color: rgba(255, 255, 255, 0.75); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--night);
  color: var(--muted-dark);
  padding: 44px 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;   /* the name, the motto and the copyright all sit on one line of type */
  justify-content: space-between;
  gap: 16px 32px;
}
.site-footer .brand-mark { height: 1.625rem; }
.site-footer .wordmark { font-size: 1.25rem; }
.footer-tag {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  color: rgba(255, 255, 255, 0.7);
}
.footer-tag span { color: var(--green-bright); font-weight: 600; }
.footer-copy { margin: 0; font-size: 0.875rem; }
/* the watch log: Midland's latest conditions, in the same instrument type as the waypoints */
.footer-log p {
  margin: 28px 0 0; padding-top: 18px;
  border-top: 1px solid var(--line-dark);
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  display: flex; flex-wrap: wrap; gap: 6px 18px;
}
.log-label { color: var(--green-bright); }

/* ---------- Scroll reveal (only when JavaScript is running) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .site-nav { gap: 22px; }
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding-top: calc(var(--header-h) + 24px); }   /* the sun sits beside the lookout here, not above it */
  .hero-art { order: -1; height: 280px; justify-self: start; margin-bottom: -8px; }
  .principles { grid-template-columns: repeat(2, 1fr); }
  .principle:nth-child(odd) { border-left: 0; padding-left: 0; }
  .principle { padding-bottom: 22px; }
  .principle:nth-child(n+3) { border-top-color: var(--line-dark); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .stages { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .js .stage { transition-delay: calc(0.15s + var(--w) * 0.15s); }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-seal { width: min(70%, 300px); }
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  /* the lookout sits above the text here, so the crows fly the upper sky beside it */
  .sky-birds { left: 50%; top: 5.5%; bottom: 62.5%; }
}

@media (max-width: 720px) {
  .site-nav a:not(.btn) { display: none; }
  .wordmark { font-size: 1.25rem; }
  .brand-mark { height: 26px; }
  .hero { min-height: auto; }
  .hero-art { height: 220px; }
  .hero-actions .btn { flex: 1 1 auto; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .sky-moon { width: 2.4rem; right: 8%; top: 13%; box-shadow: inset -0.55rem 0.3rem 0 0 #EAF6EE; }
  .sky-sun { right: calc(8% - 13rem); top: calc(13% - 13rem); }
  .sky-rays { right: calc(8% - 9rem); top: calc(13% - 9rem); }
  .bird { width: calc(1.25rem * var(--s, 1)); }
  .hero-place { font-size: 0.75rem; letter-spacing: 0.12em; }
  .principles { grid-template-columns: 1fr; }
  .principle,
  .principle + .principle { border-left: 0; padding: 20px 0; }
  .principle + .principle { border-top-color: var(--line-dark); }
  .card-grid { grid-template-columns: 1fr; }
  .card { padding: 28px 24px; }
  .stages { grid-template-columns: 1fr; row-gap: 36px; }
  .stage-no { display: none; } /* the route chart is hidden on phones, so its WP labels go too */
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 400px) {
  /* smallest phones: a slightly trimmer brand and button */
  .header-inner { gap: 8px; }
  .wordmark { font-size: 1.0625rem; }
  .brand { gap: 5px; }
  .brand-mark { height: 22px; }
  .site-nav .btn-small { padding: 0.55em 0.85em; font-size: 0.8125rem; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .js .stage { opacity: 1; transform: none; transition-delay: 0s; }
  .js .waypoint { opacity: 1; transition-delay: 0s; }
  .js .route .route-mask { stroke-dashoffset: 0; }
  .js .c-needle { transform: rotate(38deg); }
}

@media print {
  .site-header { display: none; }
  .hero, .growth, .contact, .site-footer { background: #fff; color: #000; }
}
