/*
  Good Hood River: base styles, layout and components.
  Load after tokens.css. Every color, size and space comes from a token.
  Naming: block, block__element, block--modifier.
*/

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + var(--space-8));
}

body {
  margin: 0;
  background: var(--surface-100);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  text-wrap: balance;
}

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

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

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

::selection {
  background: var(--brand-amber);
  color: var(--on-brand);
}

.skip-link {
  position: absolute;
  left: var(--space-3);
  top: -100px;
  z-index: 100;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  background: var(--brand-ink);
  color: var(--brand-cream);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: var(--space-3);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Areas that are always dark use light-on-dark focus and selection. */
.on-ink {
  --focus: var(--brand-amber);
  color: var(--oi-text);
}

/* ---------- Layout ---------- */

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

@media (min-width: 640px) {
  :root {
    --gutter: 24px;
  }
}

.section {
  padding-block: var(--space-16);
}
@media (min-width: 900px) {
  .section {
    padding-block: var(--space-24);
  }
}
.section--alt {
  background: var(--surface-200);
}

/* ---------- Type ---------- */

.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-micro);
  line-height: 16px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-rust);
}
.on-ink .eyebrow {
  color: var(--brand-amber);
}

.lead {
  font-size: var(--text-lead);
  line-height: 28px;
  color: var(--ink-muted);
}

.muted {
  color: var(--ink-muted);
}

.text-gradient {
  background: linear-gradient(90deg, var(--brand-teal), var(--brand-amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Section heading: eyebrow, title, optional lead. */
.sec-head {
  display: grid;
  gap: var(--space-3);
  max-width: 44em;
  margin-bottom: var(--space-12);
}
.sec-head h2 {
  font-weight: 800;
  font-size: var(--text-h2);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.sec-head p {
  font-size: var(--text-lead);
  line-height: 28px;
  color: var(--ink-muted);
}

/* ---------- Button ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--control-height);
  padding: var(--space-3) var(--space-6);
  border: 1.5px solid transparent;
  border-radius: var(--radius-control);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--text-small);
  line-height: 20px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--dur-fast),
    border-color var(--dur-fast),
    transform var(--dur-fast);
}
.btn:active {
  transform: scale(0.98);
}
.btn svg {
  width: 16px;
  height: 16px;
  transition: transform var(--dur-fast);
}
.btn:hover svg {
  transform: translateX(2px);
}
.btn--lg {
  min-height: 52px;
  padding-inline: var(--space-8);
  font-size: var(--text-body-sm);
}

/* Primary: teal fill, ink label. One per view, for the main action. */
.btn--primary {
  background: var(--brand-teal);
  color: var(--on-brand);
}
.btn--primary:hover {
  background: var(--brand-teal-hover);
}

/* Ghost: outline on light surfaces. */
.btn--ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: transparent;
}
.btn--ghost:hover {
  border-color: var(--ink);
}

/* Ghost on ink: outline on dark panels. */
.btn--ghost-ink {
  border-color: var(--oi-line-strong);
  color: var(--oi-text);
  background: transparent;
}
.btn--ghost-ink:hover {
  border-color: var(--oi-text);
}

/* ---------- Chip ---------- */

.chip {
  display: inline-flex;
  align-items: center;
  padding: 2px var(--space-3);
  border-radius: var(--radius-pill);
  font-size: var(--text-micro);
  line-height: 20px;
  font-weight: 600;
}
.chip--teal {
  background: var(--brand-teal);
  color: var(--on-brand);
}
.chip--amber {
  background: var(--brand-amber);
  color: var(--on-brand);
}
.chip--line {
  border: 1px solid var(--line-strong);
  color: var(--ink-muted);
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* ---------- Card ---------- */

.card {
  background: var(--surface-000);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding: calc(env(safe-area-inset-top, 0px) + var(--space-3)) var(--space-3) 0;
}
.site-header__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  max-width: var(--wrap);
  margin-inline: auto;
  padding: var(--space-2) var(--space-2) var(--space-2) var(--space-3);
  border: 1px solid var(--line);
  border-color: color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: var(--radius-lg);
  background: var(--surface-000);
  background: color-mix(in srgb, var(--surface-000) 86%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: var(--shadow-header);
}
.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.site-header__cta {
  min-height: 40px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
}

/* Theme toggle: the icon shown follows the theme in CSS, so it is right before scripts run */
.theme-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  transition:
    background-color var(--dur-fast),
    color var(--dur-fast),
    border-color var(--dur-fast);
}
.theme-toggle:hover {
  border-color: var(--line-strong);
  background: var(--surface-200);
  color: var(--ink);
}
.theme-toggle:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.theme-toggle svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme-toggle__sun {
  display: none;
}
:root[data-theme="dark"] .theme-toggle__sun {
  display: block;
}
:root[data-theme="dark"] .theme-toggle__moon {
  display: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle__sun {
    display: block;
  }
  :root:not([data-theme="light"]) .theme-toggle__moon {
    display: none;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--ink);
  text-decoration: none;
}
.brand img {
  width: 40px;
  height: 40px;
}
.brand span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-label);
  letter-spacing: 0.02em;
}

.site-nav {
  order: 3;
  display: flex;
  gap: var(--space-1);
  width: 100%;
  margin-inline: calc(-1 * var(--space-2));
  overflow-x: auto;
  scrollbar-width: none;
}
.site-nav a {
  flex: none;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-pill);
  color: var(--ink-muted);
  font-size: var(--text-small);
  font-weight: 500;
  text-decoration: none;
  transition:
    background-color var(--dur-fast),
    color var(--dur-fast);
}
.site-nav a:hover {
  background: var(--surface-200);
  color: var(--ink);
}
.site-nav a.is-active {
  color: var(--ink);
  background: var(--surface-200);
}

@media (min-width: 1120px) {
  .site-header {
    padding-top: calc(env(safe-area-inset-top, 0px) + var(--space-4));
  }
  /* Three columns so the nav sits at the true center, whatever the widths of the brand and actions */
  .site-header__bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    min-height: var(--header-height);
    padding-left: var(--space-4);
    border-radius: var(--radius-pill);
  }
  .site-nav {
    order: 0;
    width: auto;
    margin: 0;
  }
  .site-header__actions {
    justify-self: end;
  }
  .site-nav a {
    padding-inline: var(--space-3);
  }
}
@media (min-width: 1280px) {
  .site-nav a {
    padding-inline: var(--space-4);
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: calc(env(safe-area-inset-top, 0px) + 160px);
  background-color: var(--oi-ground);
  background-image:
    radial-gradient(40rem 40rem at 5% -10%, var(--glow-teal), transparent 60%),
    radial-gradient(32rem 32rem at 100% 45%, var(--glow-amber), transparent 60%);
}
/* Faint grid that fades out from the top-left */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, var(--grid-on-ink) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-on-ink) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 30% 0%, #000, transparent);
  mask-image: radial-gradient(ellipse 80% 70% at 30% 0%, #000, transparent);
}
@media (min-width: 900px) {
  .hero {
    padding-top: calc(env(safe-area-inset-top, 0px) + 168px);
  }
}

.hero__grid {
  display: grid;
  gap: var(--space-12);
  align-items: center;
  padding-bottom: var(--space-12);
}
@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    padding-bottom: var(--space-16);
  }
}

.hero h1 {
  margin-top: var(--space-6);
  font-weight: 800;
  font-size: var(--text-display);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--oi-text);
}
.hero__lead {
  max-width: 34em;
  margin-top: var(--space-6);
  font-size: var(--text-lead);
  line-height: 28px;
  color: var(--oi-muted);
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

/* Badge with orbit rings and the stack it works in */
.orbit {
  position: relative;
  justify-self: center;
  width: min(100%, 26rem);
  aspect-ratio: 1;
}
.orbit::before,
.orbit::after {
  content: "";
  position: absolute;
  border: 1px solid var(--oi-line);
  border-radius: 50%;
}
.orbit::before {
  inset: 0;
}
.orbit::after {
  inset: 9%;
}
.orbit__badge {
  position: absolute;
  inset: 16%;
  width: 68%;
  height: 68%;
  filter: drop-shadow(0 24px 48px rgb(0 0 0 / 0.45));
}
.orbit__chip {
  position: absolute;
  padding: 6px 14px;
  border: 1px solid var(--oi-line);
  border-radius: var(--radius-pill);
  background: var(--oi-panel);
  color: var(--oi-text);
  font-size: var(--text-small);
  font-weight: 600;
}
.orbit__chip:nth-of-type(1) {
  top: 6%;
  left: 0;
}
.orbit__chip:nth-of-type(2) {
  top: 24%;
  right: -2%;
}
.orbit__chip:nth-of-type(3) {
  bottom: 16%;
  left: -3%;
}
.orbit__chip:nth-of-type(4) {
  bottom: 4%;
  right: 12%;
}
@media (max-width: 959px) {
  .orbit {
    width: min(80%, 20rem);
    order: -1;
  }
}

/* ---------- Horizon (brand graphic) ---------- */

.horizon {
  display: block;
  position: relative;
  height: 84px;
  overflow: hidden;
}
@media (min-width: 640px) {
  .horizon {
    height: 120px;
  }
}
.horizon__band,
.horizon__river {
  position: absolute;
  inset-inline: 0;
}
.horizon__band {
  top: 53.33%;
  height: 13.34%;
  background: var(--band);
}
.horizon__river {
  top: 66.67%;
  bottom: 0;
  background: var(--brand-teal);
}
.horizon__ripple {
  position: absolute;
  height: 6px;
  border-radius: 3px;
  background: var(--surface-100);
}
.horizon svg {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 100%;
  width: auto;
  max-width: none;
}
.horizon .sun {
  fill: var(--brand-amber);
}
.horizon .hill {
  fill: var(--brand-rust);
}
.horizon .band {
  fill: var(--band);
}
.horizon .river {
  fill: var(--brand-teal);
}
.horizon .ripple {
  fill: var(--surface-100);
}

/* ---------- Service card ---------- */

.services {
  display: grid;
  gap: var(--space-6);
}
@media (min-width: 900px) {
  .services {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.svc {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-8) var(--space-6);
  transition:
    transform 300ms var(--ease-out),
    box-shadow 300ms var(--ease-out),
    border-color 300ms var(--ease-out);
}
.svc:hover,
.case:hover {
  transform: translateY(-4px);
  border-color: var(--line-accent);
  box-shadow: var(--shadow-card);
}
.svc h3 {
  font-size: var(--text-title);
  line-height: 28px;
  font-weight: 700;
}
.svc p {
  color: var(--ink-muted);
}
.svc ul {
  display: grid;
  gap: var(--space-2);
  margin-top: auto;
  padding: var(--space-4) 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  font-size: var(--text-small);
  line-height: 20px;
  color: var(--ink-muted);
}
.svc li {
  display: flex;
  gap: var(--space-2);
}
.svc li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--line-strong);
}

/* Icon mark: a filled disc behind a 24px stroke icon */
.mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-pill);
}
.mark svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--on-brand);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mark--teal {
  background: var(--brand-teal);
}
.mark--amber {
  background: var(--brand-amber);
}
.mark--rust {
  background: var(--brand-rust);
}
.mark--rust svg {
  stroke: var(--brand-cream);
}

/* ---------- Delivery: practices + follow-the-sun clock ---------- */

.delivery {
  display: grid;
  gap: var(--space-12);
  align-items: start;
}
@media (min-width: 900px) {
  .delivery {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  }
}

.practices {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--line);
}
.practices li {
  display: grid;
  gap: var(--space-1);
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--line);
}
.practices strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-label);
  line-height: 24px;
}
.practices span {
  color: var(--ink-muted);
  font-size: var(--text-body-sm);
  line-height: 22px;
}

.clock {
  padding: var(--space-8) var(--space-6);
}
.clock h3 {
  font-size: var(--text-title-sm);
  line-height: 26px;
  font-weight: 700;
}
.clock > p {
  margin-top: var(--space-2);
  font-size: var(--text-small);
  line-height: 20px;
  color: var(--ink-muted);
}
.clock__chart {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-6);
}
.clock__row {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: var(--space-4);
  align-items: center;
}
@media (min-width: 640px) {
  .clock__row {
    grid-template-columns: 8rem minmax(0, 1fr);
  }
}
.clock__who {
  font-size: var(--text-small);
  font-weight: 600;
  line-height: 20px;
}
.clock__who small {
  display: block;
  color: var(--ink-muted);
  font-size: var(--text-micro);
  font-weight: 400;
}
.clock__track {
  position: relative;
  height: 28px;
  border-radius: var(--radius-pill);
  background: var(--surface-200);
}
/* Bars are placed on a 24-hour Pacific-time track with --from and --to, in hours. */
.clock__bar {
  position: absolute;
  inset-block: 0;
  left: calc(var(--from) / 24 * 100%);
  width: calc((var(--to) - var(--from)) / 24 * 100%);
  display: grid;
  place-items: center;
  border-radius: var(--radius-pill);
  color: var(--on-brand);
  font-size: var(--text-micro);
  font-weight: 600;
}
.clock__bar--or {
  background: var(--brand-teal);
}
.clock__bar--in {
  background: var(--brand-amber);
}
.clock__axis {
  position: relative;
  height: 28px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}
.clock__axis span {
  position: absolute;
  top: 6px;
  left: calc(var(--at) / 24 * 100%);
  transform: translateX(-50%);
}
.clock__axis span::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  width: 1px;
  height: 6px;
  background: var(--line-strong);
}
.clock__tz {
  font-size: var(--text-micro);
  color: var(--ink-muted);
  text-align: center;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
  font-size: var(--text-caption);
  line-height: 18px;
  color: var(--ink-muted);
}
.legend span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.legend i {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

/* ---------- Case study ---------- */

.work {
  display: grid;
  gap: var(--space-6);
}
@media (min-width: 800px) {
  .work {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.case {
  transition:
    transform 300ms var(--ease-out),
    box-shadow 300ms var(--ease-out),
    border-color 300ms var(--ease-out);
  display: grid;
  gap: var(--space-4);
  align-content: start;
  padding: var(--space-8) var(--space-6);
}
@media (min-width: 640px) {
  .case {
    padding: var(--space-8);
  }
}
.case h3 {
  font-size: var(--text-title);
  line-height: 28px;
  font-weight: 700;
}
.case p {
  color: var(--ink-muted);
}

/* ---------- Team ---------- */

.team {
  display: grid;
  gap: var(--space-8);
  padding: var(--space-8) var(--space-6);
}
@media (min-width: 860px) {
  .team {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    align-items: center;
    gap: var(--space-12);
    padding: var(--space-12);
  }
}
.team h3 {
  font-size: var(--text-title-lg);
  line-height: 30px;
  font-weight: 700;
}
.team__intro p {
  max-width: 36em;
  margin-top: var(--space-4);
  color: var(--ink-muted);
}
.team__intro .chip-row {
  margin-top: var(--space-6);
}
.team__hubs {
  display: grid;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
.team__hub {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: var(--space-4);
  align-items: center;
  padding: var(--space-4) var(--space-6) var(--space-4) var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-100);
}
.team__pin {
  display: grid;
  grid-row: span 2;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-teal);
  color: var(--on-brand);
}
.team__hub:nth-child(2) .team__pin {
  background: var(--brand-amber);
}
.team__pin svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.team__place {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-label);
}
.team__role {
  color: var(--ink-muted);
  font-size: var(--text-small);
}

/* ---------- Contact ---------- */

.contact {
  background-color: var(--oi-ground);
  background-image: radial-gradient(36rem 30rem at 100% 100%, var(--glow-teal), transparent 60%);
}
.contact__inner {
  display: grid;
  gap: var(--space-12);
  align-items: center;
}
@media (min-width: 860px) {
  .contact__inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }
}
.contact h2 {
  margin-top: var(--space-3);
  font-weight: 800;
  font-size: var(--text-h2-contact);
  line-height: 1.05;
  color: var(--oi-text);
}
.contact p {
  max-width: 32em;
  margin-top: var(--space-4);
  font-size: var(--text-lead);
  line-height: 28px;
  color: var(--oi-muted);
}

.mailbox {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-8) var(--space-6);
  border: 1px solid var(--oi-line);
  border-radius: var(--radius-lg);
  background: var(--oi-panel);
}
.mailbox__label {
  font-size: var(--text-micro);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--oi-subtle);
}
.mailbox__addr {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.125rem, 2.4vw, 1.5rem);
  color: var(--oi-text);
  overflow-wrap: anywhere;
  user-select: all;
}
.mailbox__note {
  font-size: var(--text-caption);
  line-height: 18px;
  color: var(--oi-subtle);
}

/* ---------- Footer ---------- */

.site-footer {
  overflow: hidden;
  border-top: 1px solid var(--oi-line);
  background: var(--oi-ground-deep);
  color: var(--oi-subtle);
  font-size: var(--text-caption);
  line-height: 20px;
}
.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-8);
  padding-block: var(--space-12) var(--space-8);
}
.site-footer .brand {
  color: var(--oi-text);
}
.site-footer__about {
  max-width: 24rem;
  margin-top: var(--space-4);
  font-size: var(--text-body-sm);
  line-height: 22px;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  font-size: var(--text-body-sm);
}
.site-footer nav a {
  color: var(--oi-subtle);
  text-decoration: none;
}
.site-footer nav a:hover {
  color: var(--oi-text);
}
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  padding-block: var(--space-6);
  border-top: 1px solid var(--oi-line);
}
/* Oversized outlined wordmark that bleeds off the bottom edge */
.wordmark {
  margin-bottom: -0.22em;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 10.5vw;
  line-height: 1;
  letter-spacing: -0.04em;
  text-align: center;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px var(--oi-line);
  user-select: none;
}

/* ---------- Motion ---------- */

.rise {
  animation: rise var(--dur-rise) var(--ease-out) both;
  animation-delay: var(--delay, 0ms);
}
/* Slide only: content is fully visible from the first frame, even before the animation runs. */
@keyframes rise {
  from {
    transform: translateY(14px);
  }
  to {
    transform: none;
  }
}

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

/* ---------- Light hero: copy and badge on white, the Gorge landscape, then the focus areas ---------- */

.hero--light {
  padding-top: calc(env(safe-area-inset-top, 0px) + 136px);
  background: var(--surface-000);
  color: var(--ink);
}
@media (min-width: 900px) {
  .hero--light {
    padding-top: calc(env(safe-area-inset-top, 0px) + 152px);
  }
}
.hero--light::before {
  bottom: auto;
  height: min(620px, 60%);
  -webkit-mask-image: radial-gradient(ellipse 85% 100% at 30% 0%, #000, transparent);
  mask-image: radial-gradient(ellipse 85% 100% at 30% 0%, #000, transparent);
  background-image:
    linear-gradient(to right, var(--grid-on-light) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-on-light) 1px, transparent 1px);
}
.hero--light h1 {
  color: var(--ink);
  font-size: clamp(2.5rem, 5.2vw, 4rem);
}
.hero--light .hero__lead {
  color: var(--ink-muted);
}

.hero__split {
  display: grid;
  gap: var(--space-12);
  align-items: center;
  padding-bottom: var(--space-8);
}
@media (min-width: 960px) {
  .hero__split {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  }
}

.hero__visual {
  position: relative;
  display: grid;
  justify-items: center;
}

/* The orbit on a light ground: dashed outer ring, quiet chips, one highlighted */
.orbit--light {
  width: min(100%, 21rem);
}
.orbit--light::before {
  border: 1px dashed var(--line-strong);
  opacity: 0.55;
}
.orbit--light::after {
  border-color: var(--line);
}
.orbit--light .orbit__badge {
  filter: drop-shadow(0 18px 32px rgb(47 39 42 / 0.22));
}
.orbit--light .orbit__chip {
  border-color: var(--line);
  background: var(--surface-000);
  color: var(--ink);
  box-shadow: var(--shadow-card);
  font-size: var(--text-caption);
}
.orbit--light .orbit__chip:nth-of-type(1) {
  border-color: var(--brand-ink);
  background: var(--brand-ink);
  color: var(--brand-cream);
}
@media (max-width: 959px) {
  .orbit--light {
    width: min(78%, 18rem);
  }
}

/* Feature card: one service under the badge */
.feature-card {
  position: relative;
  z-index: 1;
  width: min(100%, 23rem);
  margin-top: calc(-1 * var(--space-4));
  padding: var(--space-4) 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-000);
  background: color-mix(in srgb, var(--surface-000) 90%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-card);
}
.feature-card__label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-small);
}
.feature-card__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-teal);
  box-shadow: 0 0 0 4px var(--glow-teal);
}
.feature-card__text {
  margin-top: 6px;
  color: var(--ink-muted);
  font-size: var(--text-caption);
  line-height: 18px;
}
.feature-card__detail {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
  color: var(--text-teal);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.01em;
}

/* Landscape band; the focus cards overlap its lower edge */
.hero__land {
  position: relative;
  margin-top: var(--space-8);
  background: var(--surface-100);
}
.hero__focus {
  position: relative;
  z-index: 1;
  margin-top: calc(-1 * clamp(36px, 4.5vw, 64px));
}
.focus {
  display: grid;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 900px) {
  .focus {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.focus > li {
  display: flex;
}
.focus-card {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-000);
  box-shadow: var(--shadow-card);
  transition:
    transform 300ms var(--ease-out),
    border-color 300ms var(--ease-out);
}
.focus-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-teal), var(--brand-amber));
  opacity: 0;
  transition: opacity 300ms var(--ease-out);
}
.focus-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-accent);
}
.focus-card:hover::before {
  opacity: 1;
}
.focus-card__index {
  color: var(--text-teal);
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.focus-card h3 {
  font-size: var(--text-title-sm);
  line-height: 26px;
  font-weight: 700;
}
.focus-card p {
  color: var(--ink-muted);
  font-size: var(--text-body-sm);
  line-height: 22px;
}
.focus-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: var(--space-2);
  color: var(--text-teal);
  font-size: var(--text-small);
  font-weight: 600;
  text-decoration: none;
}
.focus-card__link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.focus-card__link svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Scene (Columbia River Gorge) ---------- */

/* Sized by its own aspect ratio so it never crops Mt. Hood on wide screens; on phones it keeps a
   minimum height and crops from the sides instead. */
.scene {
  display: block;
  width: 100%;
  aspect-ratio: 1440 / 460;
  min-height: 280px;
  pointer-events: none;
}
.scene svg {
  width: 100%;
  height: 100%;
}
.scene-sun {
  fill: var(--scene-sun);
}
.scene-far {
  fill: var(--scene-far);
}
.scene-far-2 {
  fill: var(--scene-far-2);
}
.scene-far-peak {
  fill: var(--scene-far-peak);
}
.scene-far-snow {
  fill: var(--scene-far-snow);
}
.scene-snow {
  fill: var(--scene-snow);
}
.scene-snow-shade {
  fill: var(--scene-snow-shade);
}
.scene-forest-far {
  fill: var(--scene-forest-far);
}
.scene-forest {
  fill: var(--scene-forest);
}
.scene-river-light {
  fill: var(--scene-river-light);
}
.scene-hill-deep {
  fill: var(--scene-hill-deep);
}
.scene-sail {
  fill: var(--scene-sail);
}
.scene-sail-2 {
  fill: var(--scene-sail-2);
}
.scene-board {
  fill: var(--scene-board);
}
.scene-birds {
  stroke: var(--scene-birds);
  opacity: 0.7;
}
.scene-orchard {
  stroke: var(--scene-orchard);
  opacity: 0.6;
}
.scene-mast {
  stroke: var(--scene-board);
  stroke-width: 1.2;
  stroke-linecap: round;
}
.scene-kite-line {
  fill: none;
  stroke: var(--scene-board);
  stroke-width: 0.6;
  opacity: 0.45;
}
.scene-wake {
  fill: none;
  stroke: var(--scene-river-light);
  stroke-width: 1.4;
  stroke-linecap: round;
  opacity: 0.75;
}

/* Header placed in normal flow (design system examples) */
.site-header--static {
  position: static;
  padding: 0;
}

/* ---------- Pages: heading band ---------- */

.page-head {
  position: relative;
  isolation: isolate;
  padding: calc(env(safe-area-inset-top, 0px) + 168px) 0 var(--space-12);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--surface-000);
}
@media (min-width: 1120px) {
  .page-head {
    padding-top: calc(env(safe-area-inset-top, 0px) + 152px);
  }
}
.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, var(--grid-on-light) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-on-light) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 100% at 20% 0%, #000, transparent);
  mask-image: radial-gradient(ellipse 80% 100% at 20% 0%, #000, transparent);
}
.page-head h1 {
  max-width: 18em;
  margin-top: var(--space-3);
  font-weight: 800;
  font-size: clamp(2.25rem, 4.6vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.page-head__lead {
  max-width: 40em;
  margin-top: var(--space-4);
  color: var(--ink-muted);
  font-size: var(--text-lead);
  line-height: 28px;
}
.page-head--article h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
}
.section--tight {
  padding-block: var(--space-12) var(--space-16);
}
@media (min-width: 900px) {
  .section--tight {
    padding-block: var(--space-16) var(--space-24);
  }
}
.wrap--prose {
  max-width: calc(720px + 2 * var(--gutter));
}

.crumbs a {
  color: var(--text-teal);
  font-size: var(--text-small);
  font-weight: 600;
  text-decoration: none;
}
.crumbs a::before {
  content: "← ";
}
.crumbs a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Article list ---------- */

.articles {
  display: grid;
  gap: var(--space-6);
}
@media (min-width: 800px) {
  .articles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.article-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-8) var(--space-6);
  transition:
    transform 300ms var(--ease-out),
    box-shadow 300ms var(--ease-out),
    border-color 300ms var(--ease-out);
}
@media (min-width: 640px) {
  .article-card {
    padding: var(--space-8);
  }
}
.article-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-accent);
  box-shadow: var(--shadow-card);
}
.article-card h3 {
  font-size: var(--text-title);
  line-height: 28px;
  font-weight: 700;
}
.article-card__link {
  color: inherit;
  text-decoration: none;
}
/* The whole card is clickable through the title link */
.article-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.article-card__link:focus-visible {
  outline: none;
}
.article-card:has(.article-card__link:focus-visible) {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.article-card p {
  color: var(--ink-muted);
}
.article-card .article-card__meta {
  display: flex;
  gap: var(--space-2);
  margin-top: auto;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

/* ---------- Article ---------- */

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-6);
  color: var(--ink-muted);
  font-size: var(--text-small);
}
.prose {
  padding-block: var(--space-12) var(--space-16);
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.75;
}
.prose > * + * {
  margin-top: var(--space-6);
}
.prose h2 {
  margin-top: var(--space-12);
  font-size: var(--text-title-lg);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.prose h2 + * {
  margin-top: var(--space-4);
}
.prose p,
.prose li {
  color: var(--ink-muted);
}
.prose strong {
  color: var(--ink);
  font-weight: 600;
}
.prose a {
  color: var(--text-teal);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.prose ul {
  display: grid;
  gap: var(--space-3);
  padding-left: 1.25em;
}
.prose li::marker {
  color: var(--brand-teal);
}
.prose :not(pre) > code {
  padding: 0.1em 0.4em;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-200);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.875em;
}
.prose pre {
  position: relative;
  overflow-x: auto;
  padding: var(--space-6);
  border-radius: var(--radius-md);
  background: var(--oi-ground);
  color: var(--oi-text);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.65;
}
.prose pre::after {
  content: attr(data-lang);
  position: absolute;
  top: var(--space-2);
  right: var(--space-3);
  color: var(--oi-subtle);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.prose__table {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-body-sm);
}
.prose caption {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: var(--text-caption);
  text-align: left;
}
.prose th,
.prose td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--line);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.prose th:first-child,
.prose td:first-child {
  text-align: left;
}
.prose th {
  background: var(--surface-200);
  color: var(--ink);
  font-weight: 600;
}
.prose tbody tr:last-child td {
  border-bottom: 0;
  color: var(--ink);
  font-weight: 600;
}

.sources {
  margin-top: var(--space-16) !important;
  padding-top: var(--space-8);
  border-top: 1px solid var(--line);
}
.sources h2 {
  margin-top: 0;
  font-size: var(--text-label);
}
.sources ul {
  font-size: var(--text-body-sm);
}
.article-cta {
  display: grid;
  gap: var(--space-6);
  margin-top: var(--space-12) !important;
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  background-color: var(--oi-ground);
  background-image: radial-gradient(24rem 18rem at 100% 100%, var(--glow-teal), transparent 60%);
}
.article-cta h2 {
  margin-top: 0;
  color: var(--oi-text);
}
.article-cta p {
  margin-top: var(--space-2);
  color: var(--oi-muted);
}
.more-title {
  margin-bottom: var(--space-6);
  font-size: var(--text-title-lg);
  font-weight: 800;
}

/* ---------- Playbooks ---------- */

.playbooks {
  display: grid;
  gap: var(--space-8);
  align-items: start;
}
@media (min-width: 1000px) {
  .playbooks {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: var(--space-12);
  }
  .playbooks__form {
    position: sticky;
    top: 120px;
  }
}
.playbooks__list {
  display: grid;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}
.playbooks__form {
  scroll-margin-top: 120px;
}
.playbook {
  display: grid;
  gap: var(--space-3);
  justify-items: start;
  padding: var(--space-6);
}
@media (min-width: 640px) {
  .playbook {
    padding: var(--space-8);
  }
}
.playbook__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  width: 100%;
}
.playbook__kind {
  color: var(--text-teal);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.playbook h2 {
  font-size: var(--text-title);
  line-height: 28px;
  font-weight: 700;
}
.playbook p {
  color: var(--ink-muted);
}
.playbook__covers {
  display: grid;
  gap: var(--space-1) var(--space-6);
  margin: var(--space-1) 0 var(--space-3);
  padding: 0;
  color: var(--ink-muted);
  font-size: var(--text-body-sm);
  list-style: none;
}
@media (min-width: 640px) {
  .playbook__covers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.playbook__covers li {
  display: flex;
  gap: var(--space-2);
}
.playbook__covers li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--brand-teal);
}

/* ---------- Form ---------- */

.lead-form {
  display: block;
  padding: var(--space-8) var(--space-6);
  box-shadow: var(--shadow-float);
}
@media (min-width: 640px) {
  .lead-form {
    padding: var(--space-8);
  }
}
.lead-form h2 {
  font-size: var(--text-title-lg);
  line-height: 30px;
  font-weight: 800;
}
.lead-form__intro {
  margin-top: var(--space-2);
  color: var(--ink-muted);
  font-size: var(--text-body-sm);
}
.lead-form__form {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-6);
}
.field {
  display: grid;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.field-row {
  display: grid;
  gap: var(--space-4);
}
@media (min-width: 520px) {
  .field-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.field label,
.field legend {
  color: var(--ink);
  font-size: var(--text-small);
  font-weight: 600;
}
.field legend {
  margin-bottom: 6px;
}
.field__optional {
  color: var(--ink-muted);
  font-weight: 400;
}
.field input:not([type="checkbox"]) {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  background: var(--surface-000);
  color: var(--ink);
  font: inherit;
  transition:
    border-color var(--dur-fast),
    box-shadow var(--dur-fast);
}
.field input:not([type="checkbox"])::placeholder {
  color: var(--ink-muted);
  opacity: 0.7;
}
.field input:not([type="checkbox"]):focus {
  outline: none;
  border-color: var(--brand-teal);
  box-shadow: 0 0 0 3px var(--glow-teal);
}
.field input:not([type="checkbox"]):user-invalid {
  border-color: var(--text-rust);
}
.check {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: 2px 0;
  color: var(--ink);
  font-size: var(--text-body-sm);
  cursor: pointer;
}
.check input {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--brand-teal);
}
.check--consent {
  color: var(--ink-muted);
  font-size: var(--text-caption);
  line-height: 18px;
}
.lead-form__trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.lead-form__error {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--text-rust);
  border-radius: var(--radius-control);
  color: var(--ink);
  font-size: var(--text-small);
}
.lead-form__submit {
  justify-content: center;
  width: 100%;
}
.lead-form__done {
  display: grid;
  gap: var(--space-4);
  justify-items: start;
}
.lead-form__done:focus {
  outline: none;
}
.lead-form__done p {
  color: var(--ink-muted);
}
.lead-form__check {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand-teal);
  color: var(--on-brand);
}
.lead-form__check svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lead-form__downloads {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
