/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
  --bg: #F7F8F6;
  --bg-soft: #eef1ef;
  --surface: #FFFFFF;
  --surface-muted: #F2F5F2;
  --border: #E1E6E2;
  --border-strong: #C9D2CC;
  --text: #242A26;
  --text-muted: #5F6D66; /* ≥4.5:1 on --bg-soft, where section subtitles sit */
  --text-faint: #656F69; /* ≥4.5:1 on --bg, --surface and --surface-muted */
  --sage: #76907F;
  --sage-dark: #55705F;
  --teal: #6B8A93;
  --slate: #7D8C9B;
  --fairway: #63875F;
  --berry: #97717F;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;
}

/* ==========================================================================
   Base
   ========================================================================== */
html { scroll-behavior: smooth; }
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: 'Inter', sans-serif; -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: 'Manrope', sans-serif; margin: 0; color: var(--text); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
section { position: relative; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--sage-dark); outline-offset: 3px; border-radius: 4px;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.container { max-width: 1080px; margin: 0 auto; padding: 0 32px; }
.container--narrow { max-width: 760px; }

/* ==========================================================================
   Site nav — lives only at the top of the hero, in normal document flow.
   No background, not fixed: it scrolls away with the hero and never
   reappears further down the page.
   ========================================================================== */
.site-nav { position: relative; z-index: 5; }
.site-nav-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 30px; padding-bottom: 30px; }
.site-nav-links { display: flex; align-items: center; gap: 24px; }
.site-nav .nav-link { font-size: 15px; font-weight: 500; color: var(--text); transition: color .15s ease; white-space: nowrap; }
.site-nav .nav-link:hover { color: var(--sage-dark); }

/* Hamburger toggle — hidden on desktop, only relevant below 640px */
.nav-toggle {
  display: none; width: 40px; height: 40px; border-radius: 50%;
  align-items: center; justify-content: center; cursor: pointer;
  color: var(--text); background: transparent; border: none; padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle .nav-toggle-x { display: none; }
.site-nav.is-open .nav-toggle .nav-toggle-bars { display: none; }
.site-nav.is-open .nav-toggle .nav-toggle-x { display: block; }

@media (max-width: 640px) {
  .site-nav-inner { padding-top: 20px; padding-bottom: 20px; }
  .nav-toggle { display: flex; }

  .site-nav-links {
    display: none;
    position: absolute; top: 100%; left: 20px; right: 20px;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border); border-radius: var(--r-md);
    padding: 10px; box-shadow: 0 16px 34px rgba(31, 39, 35, 0.14);
  }
  .site-nav.is-open .site-nav-links { display: flex; }
  .site-nav .nav-link {
    font-size: 15px; padding: 12px 14px; border-radius: var(--r-sm);
    white-space: normal;
  }
  .site-nav .nav-link:hover { background: var(--surface-muted); color: var(--sage-dark); }
}

.brand { display: flex; align-items: center; }
.brand-name { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 16px; color: var(--text); letter-spacing: -0.02em; }
.brand-dot { color: var(--sage); }

/* 56px taller than the viewport so the overlapping divider curve starts just
   below the fold — the first screen is 100% video. */
.section-hero {
  background: var(--bg);
  min-height: calc(100vh + 56px); min-height: calc(100svh + 56px);
  display: flex; flex-direction: column;
  padding-bottom: 64px; overflow: hidden;
}
/* width:100% because .container's auto margins would otherwise block flex-item stretch */
.section-hero > .hero-grid { position: relative; z-index: 1; width: 100%; flex: 1; }

/* Full-viewport trailer backdrop, softened by a mist scrim for text legibility.
   The poster frame paints instantly; the video cross-fades on top once it's
   actually decoding, so slow connections never show a black gap. */
.hero-video { position: absolute; inset: 0; z-index: 0; }
.hero-poster,
.hero-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-clip { opacity: 0; transition: opacity 0.6s ease; }
.hero-clip.is-loaded { opacity: 1; }
/* No full scrim — the video stays colorful. A frosted glass panel sits
   behind the headline block for legibility. */
.hero-copy { position: relative; }
.hero-copy::before {
  content: '';
  position: absolute; inset: -36px -40px;
  z-index: -1; border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.section-hero .btn-secondary { background: rgba(255, 255, 255, 0.9); }

/* Scroll cue */
.scroll-cue {
  position: absolute; left: 50%; bottom: 78px; transform: translateX(-50%); z-index: 2; /* 22px above the fold */
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text); background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  animation: cue-bounce 2.2s ease-in-out infinite;
}
@keyframes cue-bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 7px); }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue { animation: none; }
}
@media (max-width: 640px) {
  /* keep the centered hero copy clear of the scroll cue */
  .section-hero > .hero-grid { padding-bottom: 100px; }
  /* Give the text its own inset so it can't overflow the card, independent
     of how far the card itself bleeds out from the container gutter. */
  .hero-copy { padding: 0 18px; }
  .hero-copy::before { inset: -32px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}
.section-featured { background: var(--bg-soft); padding: 20px 0 100px; }
.section-about { background: var(--bg); padding: 100px 0; }
.section-projects { background: var(--bg-soft); padding: 100px 0; }

/* The divider overlaps the hero's bottom edge so its transparent upper half
   shows the video, and the green curve rises out of it — no background gap. */
.divider {
  display: block; width: 100%; height: 56px;
  margin-top: -56px; position: relative; z-index: 1;
  pointer-events: none;
}

/* Readable supporting text on the saturated green sections */
:root { --on-soft: #2E4A39; }
.section-featured .section-head .sub, .section-featured .featured-info-text .blurb,
.section-featured .eyebrow.eyebrow--center, .section-projects .section-head .sub,
.section-featured .tag-list, .section-featured .platform-icon,
.section-featured .platform-label { color: var(--on-soft); }
.section-featured .eyebrow.eyebrow--center .dot { background: var(--on-soft); }

.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { font-weight: 700; font-size: 38px; margin-bottom: 14px; letter-spacing: -0.01em; }
.section-head .sub { font-size: 17px; color: var(--text-muted); max-width: 560px; margin: 0 auto; line-height: 1.65; }
.section-head .sub--wide { max-width: none; white-space: nowrap; }
@media (max-width: 760px) {
  .section-head .sub--wide { white-space: normal; max-width: 480px; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 15px;
  padding: 13px 28px; border-radius: var(--r-pill);
  border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: var(--sage-dark); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--surface-muted); transform: translateY(-1px); }
.btn--small { padding: 9px 20px; font-size: 14px; }
.btn--large { padding: 15px 34px; font-size: 16px; }
.btn-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.steam-badge-row { display: flex; justify-content: center; margin-top: 28px; }
.steam-badge { display: inline-flex; transition: transform .15s ease, opacity .15s ease; }
.steam-badge img { height: 76px; width: auto; display: block; }
.steam-badge:hover { transform: translateY(-1px); opacity: 0.85; }
@media (max-width: 640px) {
  .steam-badge img { height: 60px; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero-grid {
  padding-top: 48px;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center;
}
.hero-copy h1 { font-weight: 700; font-size: 48px; line-height: 1.15; letter-spacing: -0.01em; margin-bottom: 22px; }
.hero-copy .lede { font-size: 17px; line-height: 1.7; margin-bottom: 34px; max-width: 480px; color: var(--text-muted); }
.hero-copy .lede strong { color: var(--text); font-weight: 600; }

.banner-card { padding: 16px; }
.banner-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 18px 6px 6px; flex-wrap: wrap;
}
.banner-title { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 18px; color: var(--text); }

/* ==========================================================================
   Eyebrow label
   ========================================================================== */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted);
}
.eyebrow--center { justify-content: center; margin-bottom: 18px; }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sage); display: inline-block; }

/* ==========================================================================
   Media panels (image placeholders)
   ========================================================================== */
.media-panel {
  position: relative; border-radius: var(--r-md); overflow: hidden;
  background: var(--surface-muted); border: 1px solid var(--border);
}
.media-panel--banner { height: 280px; }
.media-panel--scene { height: 420px; }
.media-panel--portrait { width: 100%; height: 220px; border-radius: var(--r-sm); }
.media-panel img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.media-fill {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; text-align: center; padding: 20px; color: var(--text-faint);
}
.media-fill svg { opacity: .55; }
.media-fill .cap { max-width: 85%; font-size: 13px; font-weight: 500; color: var(--text-faint); }

/* ==========================================================================
   Cards
   ========================================================================== */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 22px 24px;
}
.scene-card { position: relative; padding: 16px; max-width: 900px; margin: 0 auto; }

/* ==========================================================================
   Tags — quiet chips (soft-rounded, not full pill), like a store genre list.
   ========================================================================== */
.tag-list {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 8px;
  list-style: none; margin: 24px 0 0; padding: 0;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase;
  color: var(--text-muted);
}
.tag-list li {
  display: flex; align-items: center; white-space: nowrap;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 7px 13px;
}
@media (max-width: 480px) {
  .tag-list { font-size: 11.5px; gap: 6px; }
  .tag-list li { padding: 6px 10px; }
}

.status-tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted); background: var(--surface-muted); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 4px 10px; margin-bottom: 10px;
}
.status-tag.is-current { color: var(--sage-dark); border-color: var(--sage); }
.status-tag--personal {
  color: var(--sage-dark); background: rgba(118, 144, 127, 0.14);
  border-color: rgba(118, 144, 127, 0.4);
}
.status-tag--pro {
  color: #47566A; background: rgba(125, 140, 155, 0.12);
  border-color: rgba(125, 140, 155, 0.4);
}
.status-tag--flush { margin-bottom: 0; }

/* ==========================================================================
   Featured section — description on the left; platforms + Steam wishlist
   CTA grouped together on the right as one self-contained "get it" block.
   ========================================================================== */
.featured-info {
  display: grid; grid-template-columns: 6fr 4fr; align-items: center; gap: 32px;
  max-width: 900px; margin: 40px auto 0;
}
.featured-info-text { text-align: center; }
.featured-info-text .blurb {
  font-size: 16px; line-height: 1.75; color: var(--text-muted);
  margin: 0;
}
.featured-info-cta {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding-left: 32px; border-left: 1px solid var(--border);
}

.platform-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-faint);
}
.platform-row { display: flex; justify-content: center; gap: 10px; }
.platform-icon {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-muted);
}

@media (max-width: 760px) {
  .featured-info { grid-template-columns: 1fr; gap: 24px; }
  .featured-info-cta { padding-left: 0; border-left: none; padding-top: 24px; border-top: 1px solid var(--border); }
}

/* ==========================================================================
   About section
   ========================================================================== */
.about-grid { display: grid; grid-template-columns: 280px 1fr; gap: 64px; align-items: start; }

.portrait-card { text-align: center; max-width: 280px; }
.portrait-name { margin-top: 18px; font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 16px; color: var(--text); }
.portrait-role { margin-top: 6px; font-size: 12.5px; color: var(--text-muted); letter-spacing: 0.04em; text-transform: uppercase; }

.about-bio h2 { font-weight: 700; font-size: 34px; margin-bottom: 8px; letter-spacing: -0.01em; }
.about-bio .tagline { font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 16px; color: var(--sage-dark); margin-bottom: 16px; }
.about-bio .intro { font-size: 16px; line-height: 1.75; color: var(--text-muted); margin-bottom: 28px; max-width: 600px; }

/* ==========================================================================
   Social icons
   ========================================================================== */
.social-row { display: flex; gap: 22px; flex-wrap: wrap; }
.social-icon { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.social-icon .ring {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center; background: var(--surface);
  transition: border-color .15s ease, background .15s ease;
}
.social-icon .lbl { font-size: 11.5px; font-weight: 600; color: var(--text-muted); }
.social-icon:hover .ring { border-color: var(--sage); background: var(--surface-muted); }
.social-icon:hover .ring svg { stroke: var(--sage-dark); }

/* ==========================================================================
   Timeline
   ========================================================================== */
.timeline { display: grid; gap: 0; position: relative; }
.timeline-item { --accent: var(--border-strong); display: grid; grid-template-columns: 56px 1fr; gap: 20px; }

/* Curvy trail (desktop): cards alternate sides, an SVG path built by
   js/main.js snakes between them and draws itself on scroll. */
.trail-svg {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none; display: none; overflow: visible;
}
.trail-base {
  fill: none; stroke: var(--border-strong);
  stroke-width: 2; stroke-dasharray: 3 9; stroke-linecap: round;
}
.trail-progress {
  fill: none; stroke: var(--sage);
  stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
}
/* Waypoint dots: white core, colored ring — always visible so every game
   reads as a stop on the trail. Reaching one (is-reached, set by
   js/main.js as the progress line arrives) fills it solid and gives it a
   confident pop, rather than that being the only visible state. */
.trail-dot {
  fill: var(--surface); stroke-width: 3;
  opacity: 0.9; transform: scale(0.8);
  transform-origin: center; transform-box: fill-box;
  transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), opacity .3s ease, fill .3s ease;
}
.trail-dot.is-reached { opacity: 1; transform: scale(1); }
.trail-stub { stroke-width: 1.5; opacity: 0.55; }
@media (prefers-reduced-motion: reduce) {
  .trail-dot { transition: none; opacity: 1; transform: none; }
}
.timeline-item--ridge { --accent: var(--sage); }
.timeline-item--aaa { --accent: var(--slate); }
.timeline-item--pga { --accent: var(--fairway); }
.timeline-item--nw { --accent: var(--teal); }
.timeline-item--fb { --accent: var(--berry); }

.timeline-rail { display: flex; flex-direction: column; align-items: center; }
.timeline-dot {
  width: 12px; height: 12px; border-radius: 50%; background: var(--accent);
  border: 2px solid var(--bg-soft); box-shadow: 0 0 0 1px var(--accent);
  margin-top: 6px;
}
.timeline-dot--current { animation: dot-pulse 2.6s ease-out infinite; }
@keyframes dot-pulse {
  0%   { box-shadow: 0 0 0 1px var(--accent), 0 0 0 0 rgba(118, 144, 127, 0.35); }
  70%  { box-shadow: 0 0 0 1px var(--accent), 0 0 0 10px rgba(118, 144, 127, 0); }
  100% { box-shadow: 0 0 0 1px var(--accent), 0 0 0 0 rgba(118, 144, 127, 0); }
}
.timeline-line { width: 1px; flex: 1; background: var(--border-strong); margin-top: 6px; }

.timeline-card {
  margin-bottom: 14px; padding: 16px;
  display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: start;
  border-top: 3px solid var(--accent);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.timeline-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(31, 39, 35, 0.06);
  border-color: var(--accent);
}
.timeline-item:last-child .timeline-card { margin-bottom: 0; }

/* Cards linking out to a store page get a stronger hover cue and a small
   external-link glyph next to the title, so it's clear they're clickable. */
.timeline-card--linked { cursor: pointer; }
.timeline-card--linked:hover {
  box-shadow: 0 14px 30px rgba(31, 39, 35, 0.1);
}
.timeline-card--linked:hover .card-link-icon { opacity: 1; transform: translate(0, 0); }
.card-link-icon {
  display: inline-block; width: 13px; height: 13px; margin-left: 2px;
  opacity: 0; transform: translate(-2px, 2px);
  transition: opacity .15s ease, transform .15s ease;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M10 14 21 3'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M10 14 21 3'/%3E%3C/svg%3E") center / contain no-repeat;
  vertical-align: middle;
}
@media (prefers-reduced-motion: reduce) {
  .card-link-icon { transition: none; }
}

.timeline-thumb { height: 112px; border-radius: var(--r-sm); }
.timeline-thumb .media-fill { gap: 6px; padding: 12px; }
.timeline-thumb .cap { font-size: 11.5px; }

.timeline-card .card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 4px;
}
.timeline-card .card-date { font-size: 13px; font-weight: 600; color: var(--text-faint); }
.timeline-card h3 { font-weight: 700; font-size: 19px; margin-bottom: 8px; }
.timeline-card p { font-size: 14.5px; line-height: 1.65; color: var(--text-muted); }

@media (max-width: 640px) {
  .timeline-card { grid-template-columns: 1fr; }
  .timeline-thumb { height: 150px; }
}

/* Desktop trail: alternate cards left/right as postcard "stops" (thumb on
   top), the SVG path snakes between them. Placed after the base card rules
   so these overrides win the cascade. */
@media (min-width: 901px) {
  .section-projects .container--narrow { max-width: 1000px; }
  .timeline-item { display: block; position: relative; }
  .timeline-item .timeline-rail { display: none; }
  .timeline-card {
    width: calc(50% - 76px); margin-bottom: 48px;
    grid-template-columns: 1fr;
    position: relative; z-index: 1;
  }
  .timeline-item:nth-child(even) .timeline-card { margin-left: auto; }
  .timeline-item:last-child .timeline-card { margin-bottom: 0; }
  .timeline-thumb { height: 150px; }
}
@media (prefers-reduced-motion: reduce) {
  .timeline-dot--current { animation: none; }
  .timeline-card, .timeline-card:hover { transform: none; transition: none; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--bg); border-top: 1px solid var(--border);
  padding: 26px 0; text-align: center;
}
.footer p { font-size: 13px; color: var(--text-faint); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  /* explicit width (not auto) avoids a grid quirk where margin:auto
     centering shrinks the card to its narrowest definite-width content —
     the name text — squeezing the square photo into a tall sliver */
  .about-grid > .portrait-card { width: 100%; margin: 0 auto; }
  .timeline-item { grid-template-columns: 56px 1fr; }
  /* The fixed 420px height made a portrait-shaped box on narrow screens,
     so object-fit:cover zoomed in and cropped the "Tribes of the Ridge"
     logo off both sides. Size by the source image's own ~2.1:1 aspect
     ratio instead, so width shrinks and height follows proportionally. */
  .media-panel--scene { height: auto; aspect-ratio: 21 / 10; }
}
@media (max-width: 480px) {
  /* longhand — the shorthand would wipe .nav's vertical padding */
  .container { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 640px) {
  /* The glass card is sized by its content — at narrow widths the default
     desktop type scale wraps the headline to 3 lines and stretches the card
     to near-full viewport height, hiding the video behind it. Tighten the
     scale so more of the hero video stays visible above and below the card. */
  .hero-copy h1 { font-size: 30px; line-height: 1.22; margin-bottom: 16px; }
  .hero-copy .lede { font-size: 14px; line-height: 1.6; margin-bottom: 26px; }
}

/* ==========================================================================
   Scroll-reveal
   ========================================================================== */
/* Hidden state only applies once js/main.js has stamped .js on <html> —
   without JS the page stays fully visible. */
.js .reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1);
  transition-delay: var(--reveal-delay, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal--d1 { --reveal-delay: .1s; }
.reveal--d2 { --reveal-delay: .2s; }
.reveal--d3 { --reveal-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}
