:root {
  --ink: #24312c;
  --ink-soft: #3d4f47;
  --paper: #f4efe6;
  --paper-deep: #e7e0d2;
  --card: #faf7f2;
  --forest: #1f3d34;
  --moss: #3f624f;
  --clay: #8d4332;
  --sky: #2f5563;
  --gold: #8a6a3b;
  --rose: #7d4c56;
  --line: rgba(36, 49, 44, 0.14);
  --shadow: 0 16px 40px rgba(36, 49, 44, 0.08);
  --serif: Palatino, "Palatino Linotype", "Book Antiqua", Georgia, "Liberation Serif", serif;
  --sans: "Segoe UI", "Avenir Next", "Helvetica Neue", "Liberation Sans", sans-serif;
  --header: 4.5rem;
  --radius: 1.25rem;
}

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

html {
  scroll-behavior: smooth;
}

section,
.note,
.adventure,
.project-card,
.frame {
  scroll-margin-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
}

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

a {
  color: var(--sky);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--forest);
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.55rem 0.9rem;
  background: var(--forest);
  color: var(--card);
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

.wrap {
  width: min(72rem, calc(100% - 2.4rem));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 0.4rem;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  margin: 0.2rem 0 0.8rem;
  font-size: clamp(3rem, 7vw, 5.4rem);
}

h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
}

h3 {
  margin: 0;
  font-size: 1.7rem;
}

h4 {
  margin: 0.35rem 0 0.4rem;
  font-size: 1.35rem;
}

p {
  margin: 0;
}

.lede {
  max-width: 40rem;
  color: var(--ink-soft);
  font-size: 1.15rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(244, 239, 230, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header);
  gap: 1rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--forest);
  font-family: var(--serif);
  font-size: 1.35rem;
  text-decoration: none;
}

.wordmark:hover {
  color: var(--clay);
}

.mark {
  width: 2.4rem;
  height: 1.6rem;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: var(--card);
  color: var(--forest);
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  margin-inline: auto;
  background: currentColor;
  border-radius: 2px;
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.05rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  color: var(--ink);
  font-size: 0.95rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--clay);
}

.external::after {
  content: " ↗";
  font-size: 0.75em;
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(36rem, 88vh, 50rem);
  padding: 0 0 1.75rem;
}

.hero-media {
  position: absolute;
  inset: 0;
  display: block;
  height: auto;
}

.hero-still,
.hero-motion {
  position: absolute;
  inset: 0;
}

.hero-still {
  display: block;
  height: 100%;
}

.hero-motion {
  object-position: center center;
}

.hero-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-panel {
  max-width: 42rem;
  padding: 1.35rem 1.4rem 1.5rem;
  background: rgba(31, 61, 52, 0.9);
  color: #f7f3eb;
  border-radius: 1.15rem;
  box-shadow: 0 16px 40px rgba(20, 28, 24, 0.28);
}

.hero-panel .eyebrow {
  color: #f0d0c4;
}

.hero-panel .tagline {
  color: #d7e6db;
}

.hero-panel .lede {
  color: #e7efe9;
}

.hero-panel .button-primary {
  background: #f7f3eb;
  color: var(--forest);
}

.hero-panel .button-primary:hover {
  background: #fff;
  color: #173029;
}

.hero-panel .button-secondary {
  border-color: rgba(247, 243, 235, 0.85);
  color: #f7f3eb;
}

.hero-panel .button-secondary:hover {
  background: #f7f3eb;
  color: var(--forest);
}

.hero h1 {
  font-size: clamp(2.15rem, 10vw, 5.2rem);
}

.hero .tagline,
.hero .lede {
  max-width: 38rem;
}

.tagline {
  margin: 0 0 1rem;
  color: var(--moss);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-style: italic;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}

.button-primary {
  background: var(--forest);
  color: #f7f3eb;
}

.button-primary:hover {
  background: #173029;
  color: #fff;
}

.button-secondary {
  border: 1.5px solid var(--forest);
  color: var(--forest);
  background: transparent;
}

.button-secondary:hover {
  background: var(--forest);
  color: #f7f3eb;
}

.band {
  padding: 4.5rem 0;
}

.band-alt {
  background: linear-gradient(180deg, rgba(231, 224, 210, 0.55), rgba(244, 239, 230, 0));
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.section-head .lede {
  margin-top: 0.8rem;
}

.profiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.profile {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.4rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.profile-tek {
  border-top: 4px solid var(--sky);
}

.profile-terra {
  border-top: 4px solid var(--moss);
}

.portrait {
  margin: 0;
  padding: 0.15rem 0.35rem 0;
}

.portrait img {
  display: block;
  width: min(100%, 16.5rem);
  height: auto;
  margin-inline: auto;
}

.role {
  margin-top: 0.35rem;
  color: var(--ink-soft);
  font-style: italic;
}

.interests {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.2rem 0 0;
  padding: 0;
  list-style: none;
}

.interests li,
.chip,
.example-flag {
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--paper-deep);
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.profile .button {
  align-self: flex-start;
  margin-top: auto;
}

.story-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: start;
}

.story-copy {
  display: grid;
  gap: 1rem;
}

.notes {
  display: grid;
  gap: 1rem;
}

.note {
  padding: 1.2rem 1.25rem;
  background: var(--card);
  border-left: 4px solid var(--gold);
  border-radius: 0.4rem 1rem 1rem 0.4rem;
  box-shadow: var(--shadow);
}

.note h3 {
  margin-bottom: 0.45rem;
  font-size: 1.35rem;
}

.card-grid,
.project-grid,
.gallery-grid {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card-grid {
  grid-template-columns: repeat(3, 1fr);
}

.adventure,
.project-card,
.frame {
  height: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.adventure,
.project-card {
  padding: 1.2rem 1.2rem 1.3rem;
}

.adventure h3,
.project-card h4 {
  margin-top: 0.7rem;
}

.adventure p,
.project-card p {
  color: var(--ink-soft);
}

.chip-road { color: var(--clay); background: #f3e4dc; }
.chip-nature { color: var(--moss); background: #e1ece4; }
.chip-romance { color: var(--rose); background: #f4e4e7; }
.chip-food { color: var(--gold); background: #f3ead8; }
.chip-surprise { color: var(--sky); background: #e1ebef; }
.chip-memory { color: var(--forest); background: #e4ebe7; }

.project-groups {
  display: grid;
  gap: 2rem;
}

.project-groups h3 {
  margin-bottom: 0.8rem;
  font-size: 1.55rem;
}

.project-grid {
  grid-template-columns: 1fr 1fr;
}

.project-visual,
.frame-art {
  display: grid;
  place-items: center;
  min-height: 9rem;
  border-radius: 0.85rem;
  color: var(--ink-soft);
  text-align: center;
  padding: 1rem;
}

.project-visual {
  background:
    linear-gradient(135deg, rgba(47, 85, 99, 0.12), rgba(63, 98, 79, 0.16)),
    repeating-linear-gradient(90deg, transparent, transparent 12px, rgba(36, 49, 44, 0.04) 12px, rgba(36, 49, 44, 0.04) 13px);
}

.example-flag {
  display: inline-block;
  margin-bottom: 0.35rem;
  color: var(--clay);
  background: #f6e7e1;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gallery-grid {
  grid-template-columns: repeat(4, 1fr);
}

.frame {
  overflow: hidden;
  margin: 0;
}

.frame-art {
  min-height: 12rem;
  border-radius: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.55), transparent 35%),
    linear-gradient(160deg, #e7d3c0, #c9d5cc 55%, #d5e1e4);
}

.frame:nth-child(2) .frame-art { background: linear-gradient(160deg, #d5e0ea, #e7dcc8); }
.frame:nth-child(3) .frame-art { background: linear-gradient(160deg, #d7e4d8, #eadfce); }
.frame:nth-child(4) .frame-art { background: linear-gradient(200deg, #ead8cf, #d5ddd8); }
.frame:nth-child(5) .frame-art { background: linear-gradient(160deg, #e4d7c4, #d4e0dc); }
.frame:nth-child(6) .frame-art { background: linear-gradient(180deg, #d9e3df, #e8d9cc); }

.frame figcaption {
  padding: 0.85rem 1rem 1rem;
}

.frame figcaption span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.site-footer {
  margin-top: 2rem;
  padding: 2.5rem 0 11rem;
  background: var(--forest);
  color: #e7efe9;
}

.to-top {
  position: fixed;
  z-index: 12;
  right: max(1.15rem, env(safe-area-inset-right));
  bottom: max(1.15rem, env(safe-area-inset-bottom));
  width: 8.25rem;
  height: 8.25rem;
  border-radius: 50%;
  line-height: 0;
}

.to-top.is-ready:not(.is-visible) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(0.7rem) scale(0.94);
}

.compass,
.compass picture,
.compass img {
  display: block;
  width: 100%;
  height: 100%;
}

.compass {
  position: relative;
}

.compass-map,
.compass-spin,
.compass-arrows {
  position: absolute;
  inset: 0;
}

.compass-spin {
  transform-origin: 50% 50%;
}

.to-top.is-spinning .compass-spin {
  animation: compass-spin 2s cubic-bezier(0.14, 0.6, 0.18, 1) forwards;
}

.to-top.is-locked .compass-spin {
  animation: compass-lock 0.55s ease-out;
}

.compass-snake {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  overflow: visible;
  pointer-events: none;
  opacity: 0;
}

.snake-crawl {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 389.61 692.65;
}

.snake-body {
  stroke: #2f5230;
  stroke-width: 30;
  filter: drop-shadow(0 1px 1px rgba(20, 28, 18, 0.55));
}

.snake-belly {
  stroke: #e6d4a4;
  stroke-width: 10;
}

.to-top.is-slithering .compass-snake {
  animation: snake-fade 2.6s linear forwards;
}

.to-top.is-slithering .snake-crawl {
  animation: snake-crawl 2.6s linear forwards;
}

@keyframes snake-crawl {
  from { stroke-dashoffset: 389.61; }
  to { stroke-dashoffset: -692.65; }
}

@keyframes snake-fade {
  0% { opacity: 0; }
  8% { opacity: 1; }
  84% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes compass-lock {
  0% { filter: brightness(1); }
  28% { filter: brightness(1.32); }
  100% { filter: brightness(1); }
}

@keyframes compass-spin {
  0% { transform: rotate(0deg); }
  68% { transform: rotate(690deg); }
  86% { transform: rotate(744deg); }
  100% { transform: rotate(720deg); }
}

@media (prefers-reduced-motion: no-preference) {
  .to-top.is-ready {
    transition: opacity 240ms ease, transform 240ms ease, visibility 240ms ease;
  }

  .to-top.is-visible:hover {
    transform: translateY(-3px) scale(1.04);
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 1.5rem;
  align-items: start;
}

.footer-name {
  font-family: var(--serif);
  font-size: 1.5rem;
}

.tagline-quiet,
.copyright,
.site-footer a {
  color: #d5e3da;
}

.footer-links {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.copyright {
  margin: 0;
}

.missing {
  padding: 5rem 0 6rem;
}

.missing h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  max-width: 16ch;
}

.missing p {
  max-width: 36rem;
  margin: 0.5rem 0 1.4rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .card-grid,
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid,
  .story-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 0.35rem 1.2rem 1rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(36, 49, 44, 0.08);
  }

  body.nav-open .site-nav {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }

  .site-nav a {
    display: inline-block;
    padding: 0.45rem 0;
  }

  .profiles,
  .card-grid,
  .project-grid,
  .gallery-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 34rem;
  }

  .to-top {
    width: 7.275rem;
    height: 7.275rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .to-top:hover {
    transform: none;
  }

  .hero-motion {
    display: none;
  }
}
