/* ==========================================================================
   Rebost — site styles
   Palette and buttons follow Frontierz: main green, dark green, white; pills.
   Type: Antonia H1 (display) · TT Neoris (body) · system mono (meta)
   ========================================================================== */

@font-face {
  font-family: "Antonia H1";
  src: url("../fonts/antonia/AntoniaH1-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "Antonia H1";
  src: url("../fonts/antonia/AntoniaH1-MediumItalic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: block;
}

@font-face {
  font-family: "TT Neoris";
  src: url("../fonts/neoris/TT_Neoris_Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "TT Neoris";
  src: url("../fonts/neoris/TT_Neoris_Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "TT Neoris";
  src: url("../fonts/neoris/TT_Neoris_Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "TT Neoris";
  src: url("../fonts/neoris/TT_Neoris_DemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Frontierz brand */
  --green: #05D9AB;
  --green-hover: #04C49A;
  --green-light: #AAF1AC;
  --green-soft: #E0F9EE;
  --green-mint: #B0EFD8;
  --green-dark: #103639;
  --green-dark-hover: #1A4A4E;
  --orange: #FF9302;
  --lavender: #8F93F9;
  --black: #0F0B0A;
  --white: #FFFFFF;

  --gray-50: #F8F8F8;
  --gray-100: #F6F7F8;
  --gray-200: #D9D9D9;
  --gray-300: #A0A0A2;
  --gray-400: #606062;
  --gray-500: #56575D;

  --paper: #FFFFFF;
  --paper-soft: #F6F7F8;
  --line: #D9D9D9;
  --surface: #FFFFFF;
  --ink: #0F0B0A;
  --ink-soft: #606062;
  --ink-faint: #56575D;

  --accent: var(--green);
  --accent-hover: var(--green-hover);
  --accent-soft: var(--green-light);
  --accent-text: var(--green-dark);
  --accent-on-dark: var(--green-light);

  --on-dark: #FFFFFF;
  --on-dark-muted: rgba(255, 255, 255, 0.78);
  --on-dark-faint: rgba(255, 255, 255, 0.58);

  /* type */
  --font-display: "Antonia H1", Georgia, serif;
  --font-sans: "TT Neoris", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", Menlo, Consolas, ui-monospace, monospace;

  /* rhythm */
  --container: 72rem;
  --pad-x: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --radius-xs: 7px;
  --radius-pill: 999px;

  --shadow-window:
    2px 2px 9px rgba(15, 11, 10, 0.10),
    0 24px 48px -16px rgba(15, 11, 10, 0.12);
  --shadow-card: 2px 2px 9px rgba(15, 11, 10, 0.10);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

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

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

html.has-gsap {
  scroll-behavior: auto;
}

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

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

.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;
}

html.is-lightbox {
  overflow: hidden;
}

a { color: inherit; }

::selection { background: var(--green-light); color: var(--black); }

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

.section-dark :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--green);
}

/* the paper grain — one fixed veil over everything, very quiet */
.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  background-image: var(--grain);
  background-size: 160px 160px;
  opacity: 0.05;
  mix-blend-mode: multiply;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-synthesis: none;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
  margin: 0;
}

h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); line-height: 1.1; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.12; }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); line-height: 1.3; }

/* Hold the first headline until Antonia is ready so it never paints in Georgia. */
html.js:not(.fonts-ready) .hero h1,
html.js:not(.fonts-ready) .hero-sub,
html.js:not(.fonts-ready) .team-head h1 {
  visibility: hidden;
}

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

.lead {
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 58ch;
}

.mono-note {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}

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

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section { padding-block: var(--section-y); }

.section-head { max-width: 44rem; margin-bottom: 2rem; }
.section-head h2 { margin-bottom: 1rem; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  height: 2.25rem;
  padding: 0 1.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  box-shadow: none;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--green);
  color: var(--black);
}
.btn-primary:hover {
  background: var(--green-hover);
  color: var(--black);
}

.btn-secondary {
  background: var(--green-dark);
  color: var(--white);
}
.btn-secondary:hover { background: var(--green-dark-hover); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--paper-soft); border-color: var(--gray-300); }

.btn .btn-arrow { transition: transform 0.18s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

.text-link {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--green);
  padding-bottom: 1px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.text-link:hover { background: rgba(5, 217, 171, 0.16); border-bottom-color: var(--green-hover); }

.link-plain {
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}

.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 4.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  margin-right: auto;
}

.brand img {
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-xs);
}

.site-header .brand img {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-sm);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.9rem;
}

.site-nav a:not(.btn) {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.15s ease;
}
.site-nav a:not(.btn):hover { color: var(--ink); }

.site-nav .nav-github {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.site-nav .nav-github svg {
  flex: none;
  width: 1.05em;
  height: 1.05em;
}

.site-nav .btn { height: 2.25rem; padding: 0 1.5rem; font-size: 1rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.6rem;
  cursor: pointer;
  color: var(--ink);
}

/* a nav that stays a plain row at every width (pages without a menu toggle) */
.site-nav.is-static { display: flex; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .site-nav:not(.is-static) {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--pad-x) 1.25rem;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav:not(.is-static) a:not(.btn) { padding: 0.8rem 0.25rem; border-bottom: 1px solid var(--line); }
  .site-nav:not(.is-static) .btn { margin-top: 1rem; }
}

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */

/* hidden state only applies once JS has announced itself (html.js) —
   with no JS, everything stays visible */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}

html.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

html.js.has-gsap [data-reveal] {
  transition: none;
}

html.js.has-gsap .is-hero-motion,
html.js.has-gsap .is-custom-motion {
  opacity: 1;
  transform: none;
}

html.js.has-gsap .hero-shot.is-hero-motion,
html.js.has-gsap .is-custom-motion > * {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] { opacity: 1; transform: none; transition: none; }
  html.js.has-gsap .hero-shot.is-hero-motion,
  html.js.has-gsap .is-custom-motion > * { opacity: 1; }
  html { scroll-behavior: auto; }
}

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

.hero {
  padding-top: clamp(3.5rem, 8vw, 6.5rem);
  padding-bottom: 0;
  position: relative;
  overflow: clip;
}

.hero-copy {
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.85rem, 7.2vw, 5.5rem);
  line-height: 1.02;
  max-width: 22ch;
}

.hero-sub {
  margin-top: 1.35rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-synthesis: none;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  line-height: 1.28;
  letter-spacing: -0.012em;
  color: var(--ink);
  max-width: 28ch;
  text-wrap: pretty;
}

.hero-sub em {
  font-style: inherit;
  color: inherit;
  position: relative;
  white-space: nowrap;
}

.hero-underline {
  position: absolute;
  left: -1%;
  bottom: -0.16em;
  width: 102%;
  height: 0.26em;
  overflow: visible;
  pointer-events: none;
}

.hero-underline path {
  fill: none;
  stroke: var(--green);
  stroke-width: 4.5;
  stroke-linecap: round;
  stroke-dasharray: 620;
  stroke-dashoffset: 620;
}

.is-in .hero-underline path,
.no-observer .hero-underline path {
  animation: draw-underline 1.1s cubic-bezier(0.6, 0, 0.2, 1) 0.55s forwards;
}

html.has-gsap .hero-underline path {
  animation: none;
  stroke-dasharray: none;
  stroke-dashoffset: 0;
}

@keyframes draw-underline {
  to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-underline path { stroke-dashoffset: 0; animation: none; }
}

/* on very small phones the highlighted phrase may not fit on one line —
   let it wrap and swap the drawn underline for a plain one */
@media (max-width: 420px) {
  .hero-sub em { white-space: normal; text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 2px; text-underline-offset: 0.14em; }
  .hero-underline { display: none; }
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 2.25rem;
}

.hero-fine {
  margin-top: 1.4rem;
}

.hero-fine a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.hero-fine a:hover {
  color: var(--ink);
  border-bottom-color: var(--green);
}

/* hero screenshot */

.hero-stage {
  perspective: 1400px;
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
}

.hero-shot,
html.js .hero-shot,
html.js .hero-shot.is-in {
  transform: rotateX(var(--tilt, 0deg));
  transform-origin: 50% 0%;
  will-change: transform;
}

html.js .hero-shot[data-reveal] {
  /* scroll drives the tilt directly; only fade the opacity in */
  transition-property: opacity;
}

.hero-carousel {
  --hero-dot: 0.48rem;
  --hero-dot-gap: 0.4rem;
}

html.js .hero-carousel.is-ready .hero-board {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) 2.25rem;
  align-items: center;
  column-gap: 0.35rem;
}

.hero-frame { margin: 0; }

.hero-viewport {
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

.hero-viewport img {
  width: 100%;
  height: auto;
}

.hero-arrow,
.hero-dots {
  display: none;
}

html.js .hero-carousel.is-ready .hero-arrow {
  appearance: none;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 3rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 0.18s ease, transform 0.18s ease;
}

html.js .hero-carousel.is-ready .hero-arrow svg {
  display: block;
  width: 1.15rem;
  height: 1.9rem;
}

html.js .hero-carousel.is-ready .hero-arrow:hover { color: var(--ink); }
html.js .hero-carousel.is-ready .hero-arrow--prev:hover { transform: translateX(-2px); }
html.js .hero-carousel.is-ready .hero-arrow--next:hover { transform: translateX(2px); }
html.js .hero-carousel.is-ready .hero-arrow:active { transform: none; color: var(--green); }

html.js .hero-carousel.is-ready .hero-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--hero-dot-gap);
  grid-column: 2;
  margin-top: 1.05rem;
  min-height: 1.15rem;
}

.hero-dot {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  position: relative;
  width: var(--hero-dot);
  height: 1.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: width 0.55s cubic-bezier(0.34, 1.45, 0.48, 1);
}

.hero-dot[aria-current="true"] {
  width: calc(var(--hero-dot) * 5 + var(--hero-dot-gap) * 4);
}

.hero-dot::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: var(--hero-dot);
  translate: 0 -50%;
  border-radius: var(--radius-pill);
  background: var(--gray-200);
  transition: background 0.28s ease;
}

.hero-dot:hover::before { background: var(--gray-300); }

.hero-dot[aria-current="true"]::before {
  background: var(--green);
}

html.js .hero-carousel.is-ready .hero-viewport {
  position: relative;
  aspect-ratio: 2000 / 1303;
  overflow: hidden;
}

html.js .hero-carousel.is-ready .hero-viewport img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

html.js .hero-carousel.is-ready .hero-viewport img.is-current {
  opacity: 1;
  z-index: 1;
}

html.js .hero-carousel.is-ready .hero-viewport img.is-leaving {
  opacity: 0;
}

html.has-gsap .hero-carousel.is-ready .hero-viewport img {
  transition: none;
  opacity: 0;
}

.hero-carousel:focus { outline: none; }
.hero-carousel:focus-visible .hero-frame {
  outline: 2px solid var(--green-dark);
  outline-offset: 3px;
}

@media (max-width: 860px) {
  html.js .hero-carousel.is-ready .hero-board {
    grid-template-columns: minmax(0, 1fr);
    column-gap: 0;
  }
  html.js .hero-carousel.is-ready .hero-arrow { display: none; }
  html.js .hero-carousel.is-ready .hero-dots { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html.js .hero-arrow,
  .hero-dot {
    transition: none;
  }
  html.js .hero-carousel.is-ready .hero-viewport img {
    transition: none;
  }
}

.hero .detail-cards {
  margin-top: 1.75rem;
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

/* --------------------------------------------------------------------------
   Window frame for screenshots
   -------------------------------------------------------------------------- */

.window {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-window);
  overflow: hidden;
}

.window img { width: 100%; }

.window-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  background: var(--paper-soft);
  border-bottom: 1px solid var(--line);
}

.window-bar .dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--line);
}

.window-bar .dot:first-child { background: var(--green); }

.window-bar .window-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  margin-left: 0.5rem;
}

/* frameless variant — for shots that carry their own chrome */
.window.is-bare { border-radius: var(--radius-lg); }

/* --------------------------------------------------------------------------
   Product tour
   -------------------------------------------------------------------------- */

.part-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: var(--accent-text);
}

.app-reel-viewport {
  user-select: none;
  -webkit-user-select: none;
}

html.js .app-reel.is-ready .app-reel-viewport {
  position: relative;
  aspect-ratio: 2000 / 1303;
  overflow: hidden;
}

html.js .app-reel.is-ready .app-reel-viewport img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

html.js .app-reel.is-ready .app-reel-viewport img.is-current {
  opacity: 1;
  z-index: 1;
}

html.js .app-reel.is-ready .app-reel-viewport img.is-leaving {
  opacity: 0;
}

html.has-gsap .app-reel.is-ready .app-reel-viewport img {
  transition: none;
  opacity: 0;
}

.tour-copy-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-synthesis: none;
  letter-spacing: -0.015em;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.2;
  color: var(--ink);
}

.tour-copy-body {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.0625rem;
  line-height: 1.65;
  max-width: 42ch;
}

.tour-chapters {
  display: flex;
  flex-direction: column;
  margin: 0;
}

.tour-chapter {
  display: grid;
  grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
  padding-block: clamp(2.25rem, 5vw, 3.25rem);
  border-top: 1px solid rgba(15, 11, 10, 0.10);
}

.tour-chapter:first-child {
  padding-top: 0;
  border-top: 0;
}

.tour-chapter-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
  position: sticky;
  top: 6rem;
  min-width: 0;
}

.tour-chapter-copy .tour-copy-body { padding-top: 0.15rem; }

.tour-film {
  display: flex;
  gap: 0.45rem;
  width: 100%;
  max-width: 42ch;
}

.tour-film button {
  flex: 1 1 0;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: var(--radius-xs);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.5;
}

.tour-film button:hover { opacity: 0.85; }

.tour-film button[aria-current="true"] {
  opacity: 1;
  outline: 3px solid var(--green-dark);
  outline-offset: 2px;
}

.tour-film button[aria-current="true"]:hover { opacity: 1; }

.tour-film img {
  width: 100%;
  height: auto;
  aspect-ratio: 2000 / 1303;
  object-fit: cover;
  object-position: top left;
}

.tour-chapter-shot { margin: 0; min-width: 0; }

.tour-shot-open {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: zoom-in;
  border-radius: var(--radius-lg);
}

.tour-shot-open:focus { outline: none; }
.tour-shot-open:focus-visible {
  outline: 2px solid var(--green-dark);
  outline-offset: 3px;
}

html:not(.js) .tour-shot-open {
  cursor: default;
  pointer-events: none;
}

/* Rooms frost as they leave — only then, so the in-focus shot stays sharp. */
html.js .tour-chapter.is-away .tour-chapter-shot {
  transform: scale(var(--tour-scale, 1)) translateY(var(--tour-rise, 0px));
  opacity: var(--tour-fade, 1);
  transform-origin: 50% 12%;
}

html.js .tour-chapter.is-away .tour-chapter-shot .window {
  position: relative;
  box-shadow:
    var(--shadow-window),
    0 0 0 3px rgba(16, 54, 57, calc(var(--tour-ring, 0) * 0.4));
}

html.js .tour-chapter.is-away .tour-chapter-shot .window::after {
  content: "";
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  opacity: var(--tour-fog, 0);
  pointer-events: none;
  z-index: 2;
}

html.js .tour-chapter.is-away .tour-chapter-shot img {
  filter:
    blur(var(--tour-blur, 0px))
    saturate(var(--tour-sat, 1))
    brightness(var(--tour-bright, 1));
}

html.js .tour-chapter.is-away .tour-chapter-copy {
  opacity: var(--tour-fade, 1);
  filter: blur(calc(var(--tour-blur, 0px) * 0.4));
}

@media (max-width: 860px) {
  .tour-chapter {
    grid-template-columns: 1fr;
    gap: 0.7rem;
    padding-block: 1.75rem;
  }
  .tour-chapter-copy {
    display: contents;
    position: static;
  }
  .part-num { order: 1; }
  .tour-copy-title { order: 2; }
  .tour-copy-body { order: 3; }
  .tour-chapter-shot { order: 4; margin-top: 0.35rem; }
  .tour-film {
    order: 5;
    max-width: none;
  }
  .tour-chapter:first-child {
    padding-top: 1.75rem;
    border-top: 1px solid rgba(15, 11, 10, 0.10);
  }
  html.js .tour-chapter.is-away .tour-chapter-copy {
    filter: none;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.js .app-reel.is-ready .app-reel-viewport img { transition: none; }
  html.js .tour-chapter.is-away .tour-chapter-shot,
  html.js .tour-chapter.is-away .tour-chapter-copy {
    transform: none;
    opacity: 1;
    filter: none;
  }
  html.js .tour-chapter.is-away .tour-chapter-shot img { filter: none; }
  html.js .tour-chapter.is-away .tour-chapter-shot .window { box-shadow: var(--shadow-window); }
  html.js .tour-chapter.is-away .tour-chapter-shot .window::after { display: none; }
}

/* --------------------------------------------------------------------------
   Screenshot lightbox
   -------------------------------------------------------------------------- */

.shot-lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--paper);
  overscroll-behavior: contain;
}

.shot-lightbox[open] {
  display: grid;
  place-items: center;
}

@media (prefers-reduced-motion: no-preference) {
  .shot-lightbox[open] {
    animation: shot-lightbox-in 0.22s ease;
  }
}

@keyframes shot-lightbox-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.shot-lightbox::backdrop {
  background: rgba(16, 54, 57, 0.82);
}

.shot-lightbox-close {
  appearance: none;
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--paper);
  cursor: pointer;
  transition: color 0.18s ease;
}

.shot-lightbox-close svg { display: block; }
.shot-lightbox-close:hover { color: var(--green); }
.shot-lightbox-close:focus { outline: none; }
.shot-lightbox-close:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.shot-lightbox-board {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, auto) 2.5rem;
  align-items: center;
  justify-content: center;
  column-gap: 0.45rem;
  width: 100%;
  height: 100%;
  padding: 3.25rem 0.5rem 1rem;
  box-sizing: border-box;
}

.shot-lightbox-board[data-count="1"] {
  grid-template-columns: minmax(0, auto);
}

.shot-lightbox-prev,
.shot-lightbox-next {
  appearance: none;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 3rem;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  transition: color 0.18s ease, transform 0.18s ease;
}

.shot-lightbox-prev svg,
.shot-lightbox-next svg {
  display: block;
  width: 1.15rem;
  height: 1.9rem;
}

.shot-lightbox-prev:hover,
.shot-lightbox-next:hover { color: var(--paper); }
.shot-lightbox-prev:hover { transform: translateX(-2px); }
.shot-lightbox-next:hover { transform: translateX(2px); }
.shot-lightbox-prev:active,
.shot-lightbox-next:active { transform: none; color: var(--green); }
.shot-lightbox-prev:focus,
.shot-lightbox-next:focus { outline: none; }
.shot-lightbox-prev:focus-visible,
.shot-lightbox-next:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.shot-lightbox-prev[hidden],
.shot-lightbox-next[hidden] {
  display: none;
}

.shot-lightbox-frame {
  margin: 0;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  justify-self: center;
  line-height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: none;
}

.shot-lightbox-frame img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, calc(100vw - 6.5rem));
  max-height: calc(100vh - 4.5rem);
  max-height: calc(100dvh - 4.5rem);
  border-radius: var(--radius-lg);
  user-select: none;
  -webkit-user-select: none;
}

.shot-lightbox-board[data-count="1"] .shot-lightbox-frame img {
  max-width: min(100%, calc(100vw - 1.5rem));
}

@media (max-width: 640px) {
  .shot-lightbox-board {
    grid-template-columns: 1.5rem minmax(0, auto) 1.5rem;
    column-gap: 0.15rem;
    padding: 3.25rem 0.2rem 0.85rem;
  }
  .shot-lightbox-board[data-count="1"] {
    grid-template-columns: minmax(0, auto);
  }
  .shot-lightbox-frame img {
    max-width: min(100%, calc(100vw - 3.6rem));
  }
  .shot-lightbox-board[data-count="1"] .shot-lightbox-frame img {
    max-width: min(100%, calc(100vw - 0.8rem));
  }
  .shot-lightbox-prev,
  .shot-lightbox-next { width: 1.5rem; }
  .shot-lightbox-prev svg,
  .shot-lightbox-next svg {
    width: 0.95rem;
    height: 1.55rem;
  }
  .shot-lightbox-close {
    top: 0.45rem;
    right: 0.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shot-lightbox-prev,
  .shot-lightbox-next,
  .shot-lightbox-close {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Dark band
   -------------------------------------------------------------------------- */

.section-dark {
  background: var(--green-dark);
  color: var(--paper);
  position: relative;
  overflow: clip;
}

.section-dark::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 70%;
  background: radial-gradient(60% 90% at 50% 0%, rgba(5, 217, 171, 0.22), transparent 70%);
  pointer-events: none;
}

.section-dark h2 { color: var(--paper); }
.section-dark .lead { color: var(--on-dark-muted); }

.section-dark .text-link { color: var(--paper); }
.section-dark .text-link:hover { background: rgba(5, 217, 171, 0.18); }

/* --------------------------------------------------------------------------
   Sweated details
   -------------------------------------------------------------------------- */

#details {
  padding-top: clamp(2.25rem, 5vw, 3.5rem);
}

#details .section-head {
  text-align: center;
  margin-inline: auto;
  margin-top: clamp(2rem, 4.5vw, 3.25rem);
  margin-bottom: 0;
}

#details .section-head h2 { margin-bottom: 0; }

.faces {
  width: 100%;
  overflow-x: clip;
  overflow-y: visible;
  padding-block: 2.25rem 0;
}

.faces-track {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.55rem;
  width: max-content;
  min-width: 100%;
  margin-inline: auto;
}

.face {
  position: relative;
  flex: none;
  z-index: 0;
}

.face:nth-child(odd) { translate: 0 10px; }

.face img {
  display: block;
  width: clamp(3.75rem, 5.4vw, 5.75rem);
  height: clamp(3.75rem, 5.4vw, 5.75rem);
  max-width: none;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 50%;
  border: 3px solid var(--paper);
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.face-tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 1.2rem);
  z-index: 2;
  width: max-content;
  max-width: 22rem;
  padding: 0.48rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--green-dark);
  color: var(--paper);
  font-size: 0.8125rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
  text-align: center;
  box-shadow: var(--shadow-card);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.face-tip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  translate: -50% 0;
  border: 6px solid transparent;
  border-top-color: var(--green-dark);
}

.face:nth-child(-n+2) .face-tip {
  left: 0;
  transform: translate(0, 8px);
}
.face:nth-child(-n+2) .face-tip::after { left: 1.5rem; translate: 0; }

.face:nth-last-child(-n+2) .face-tip {
  left: auto;
  right: 0;
  transform: translate(0, 8px);
}
.face:nth-last-child(-n+2) .face-tip::after { left: auto; right: 1.5rem; translate: 0; }

.face.is-shown { z-index: 4; }

.face.is-shown .face-tip,
.face:nth-child(-n+2).is-shown .face-tip,
.face:nth-last-child(-n+2).is-shown .face-tip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.face:nth-child(-n+2).is-shown .face-tip { transform: translate(0, 0); }
.face:nth-last-child(-n+2).is-shown .face-tip { transform: translate(0, 0); }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .face:hover,
  .face.is-shown { z-index: 4; }
  .face:hover img,
  .face.is-shown img {
    transform: translateY(-8px) scale(1.16);
    border-color: var(--green);
    box-shadow: 0 8px 22px -8px rgba(15, 11, 10, 0.35);
  }
  .face:hover .face-tip,
  .face:nth-child(-n+2):hover .face-tip,
  .face:nth-last-child(-n+2):hover .face-tip {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  .face:nth-child(-n+2):hover .face-tip { transform: translate(0, 0); }
  .face:nth-last-child(-n+2):hover .face-tip { transform: translate(0, 0); }
}

@media (hover: hover) and (prefers-reduced-motion: reduce) {
  .face:hover { z-index: 4; }
  .face:hover .face-tip { opacity: 1; transform: translate(-50%, 0); }
  .face:nth-child(-n+2):hover .face-tip { transform: translate(0, 0); }
  .face:nth-last-child(-n+2):hover .face-tip { transform: translate(0, 0); }
}

@media (max-width: 860px) {
  #details { padding-top: 1.15rem; }
  .faces { padding-block: 0.35rem 0; }
  .face-tip { display: none; }
  #details .section-head { margin-top: calc(1.85rem + 10px); }
  #details .letter { margin-top: 1.85rem; }
}

.letter {
  max-width: 68ch;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  margin-inline: auto;
  padding: clamp(2.25rem, 4.5vw, 3.4rem) clamp(1.6rem, 4vw, 3rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.letter-body p {
  color: var(--ink-soft);
  font-size: 1.0625rem;
  line-height: 1.75;
  text-wrap: pretty;
  max-width: 62ch;
  margin-inline: auto;
}

.letter-body p + p { margin-top: 1.15rem; }

.letter-sign {
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.letter-close {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-synthesis: none;
  color: var(--ink);
}

.letter-name {
  margin-top: 0.2rem;
  font-weight: 600;
  color: var(--ink);
}

.letter-sign .text-link {
  display: inline-block;
  margin-top: 0.7rem;
}

.detail-cards {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.8rem);
  align-items: start;
}

.detail-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.45rem 1.55rem;
  box-shadow: var(--shadow-card);
}

.detail-card:nth-child(1) { rotate: -1.1deg; }
.detail-card:nth-child(2) { rotate: 0.7deg; margin-top: 1.2rem; }
.detail-card:nth-child(3) { rotate: -0.5deg; }
.detail-card:nth-child(4) { rotate: 1.2deg; margin-top: 0.9rem; }

.detail-card h3 { margin-top: 0; }

.detail-lead {
  margin-top: 0.55rem;
  color: var(--ink);
  font-weight: 500;
  font-size: 1.02rem;
  line-height: 1.4;
}

.detail-card p {
  margin-top: 0.55rem;
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.6;
}

@media (max-width: 1000px) {
  .detail-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-card:nth-child(2),
  .detail-card:nth-child(4) { margin-top: 0; }
}

@media (max-width: 860px) {
  .detail-cards { gap: 0.65rem; }
  .detail-card {
    min-width: 0;
    padding: 0.85rem 0.8rem 0.8rem;
    border-radius: var(--radius-md);
  }
  .detail-card:nth-child(1),
  .detail-card:nth-child(2),
  .detail-card:nth-child(3),
  .detail-card:nth-child(4) {
    rotate: 0deg;
    margin-top: 0;
  }
  .detail-card h3 {
    font-size: 0.92rem;
    line-height: 1.25;
  }
  .detail-card p {
    margin-top: 0.28rem;
    font-size: 0.78rem;
    line-height: 1.4;
  }
}

/* --------------------------------------------------------------------------
   Open source
   -------------------------------------------------------------------------- */

.source-title {
  font-size: clamp(2.2rem, 4.2vw, 3.5rem);
  font-synthesis: none;
}

.source-title em {
  font-style: italic;
  font-weight: 500;
  font-synthesis: none;
  color: var(--accent-on-dark);
}

.clone {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  width: fit-content;
  max-width: 100%;
}

.clone code {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.clone-dollar {
  color: var(--accent-on-dark);
  margin-right: 0.5em;
  user-select: none;
}

.clone-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--paper);
  background: var(--green-dark-hover);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-pill);
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
  flex: none;
}

.clone-copy:hover {
  background: var(--green);
  color: var(--green-dark);
  border-color: var(--green);
}

.source-links {
  list-style: none;
  margin: 2rem 0 3rem 0;
  padding: 0;
}

.source-links li { border-top: 1px solid rgba(255, 255, 255, 0.14); }
.source-links li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.14); }

.source-links a {
  display: grid;
  grid-template-columns: minmax(0, 14rem) minmax(0, 1fr) auto;
  gap: 1.2rem;
  align-items: baseline;
  padding: 1.05rem 0.4rem;
  text-decoration: none;
  transition: background-color 0.16s ease;
}

.source-links a:hover { background: rgba(255, 255, 255, 0.06); }

.sl-name {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1rem;
}

.sl-note {
  color: var(--on-dark-faint);
  font-size: 0.92rem;
}

.sl-arrow {
  color: var(--accent-on-dark);
  font-size: 1rem;
  transition: translate 0.16s ease;
}

.source-links a:hover .sl-arrow { translate: 3px -2px; }

@media (max-width: 640px) {
  .source-links a { grid-template-columns: minmax(0, 1fr) auto; }
  .sl-note { display: none; }
  .clone { flex-wrap: wrap; }
}

/* --------------------------------------------------------------------------
   Download
   -------------------------------------------------------------------------- */

#download { background: var(--paper-soft); }

.dl {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 1.5rem;
  align-items: stretch;
}

.dl-main {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1.15rem;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-card);
}

.dl-meta {
  font-variant-numeric: tabular-nums;
}

.dl-primary {
  width: 100%;
  margin-top: auto;
  height: 3.25rem;
  font-size: 1rem;
  padding: 0 2rem;
  border-radius: var(--radius-pill);
}

.dl-hint {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 36ch;
  text-wrap: pretty;
}

.dl-others {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.15rem 0.85rem 0.85rem;
}

.dl-others-label {
  padding: 0 0.7rem 0.85rem;
}

.dl-others a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: baseline;
  gap: 0.75rem;
  min-height: 3rem;
  padding: 0.85rem 0.7rem;
  text-decoration: none;
  border-top: 1px solid var(--line);
  transition: transform 0.18s ease;
}

.dl-others a[hidden] { display: none; }

.dl-os {
  font-family: var(--font-display);
  font-weight: 500;
  font-synthesis: none;
  color: var(--ink);
}

.dl-arch { color: var(--ink-faint); }

.dl-file-arrow {
  color: var(--accent-text);
  justify-self: end;
  transition: translate 0.16s ease;
}

.dl-others a:hover { transform: translateX(3px); }
.dl-others a:hover .dl-file-arrow { translate: 0 3px; }

.dl-after {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  padding-top: 0.25rem;
  color: var(--ink-faint);
  font-size: 0.92rem;
  line-height: 1.55;
}

.dl-after a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.dl-after a:hover {
  color: var(--ink);
  border-bottom-color: var(--green);
}

@media (max-width: 820px) {
  .dl { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Privacy
   -------------------------------------------------------------------------- */

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.privacy-col {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.9rem 1.8rem;
  background: var(--surface);
}

.privacy-col.is-stays {
  border-color: rgba(5, 217, 171, 0.45);
  background: var(--green-soft);
}

.privacy-col h3 {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 1.15rem;
  margin-bottom: 1.2rem;
}

.privacy-col h3 svg {
  flex: none;
  color: var(--accent-text);
  margin-top: 0.15em;
}

.privacy-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.privacy-col:nth-child(2) { --reveal-delay: 0.1s; }

.privacy-col li {
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  line-height: 1.55;
}

.privacy-col.is-stays li { border-top-color: rgba(5, 217, 171, 0.22); }

.privacy-col li .li-sub {
  display: block;
  color: var(--ink-faint);
  font-size: 0.85rem;
}

.privacy-close {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1.5rem;
  justify-content: space-between;
}

.privacy-close .statement {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  font-style: italic;
  font-weight: 500;
  font-synthesis: none;
  color: var(--ink);
}

@media (max-width: 820px) {
  .privacy-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq-list {
  border-top: 1px solid var(--line);
  max-width: 50rem;
}

.faq-list details { border-bottom: 1px solid var(--line); }

.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0.25rem;
  font-weight: 600;
  font-size: 1.08rem;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--accent-text);
  transition: rotate 0.25s ease;
  flex: none;
}

.faq-list details[open] summary::after { rotate: 45deg; }

.faq-list .faq-body {
  padding: 0 0.25rem 1.5rem;
  color: var(--ink-soft);
  max-width: 60ch;
}

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

.site-footer {
  background: var(--green-dark);
  color: var(--on-dark-muted);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 22rem;
}

.footer-brand .brand { color: var(--paper); }

.footer-brand .brand img {
  width: 6.5rem;
  height: 6.5rem;
  border-radius: var(--radius-md);
}

.footer-brand p { color: var(--on-dark-faint); font-size: 0.95rem; }

.footer-cols { display: flex; gap: clamp(2.5rem, 6vw, 5.5rem); flex-wrap: wrap; }

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-faint);
  margin: 0 0 1rem;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }

.footer-col a {
  color: var(--on-dark);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.15s ease;
}

.footer-col a:hover { color: var(--accent-on-dark); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  padding-top: 1.75rem;
  color: var(--on-dark-faint);
  font-size: 0.85rem;
}

.footer-bottom a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.footer-bottom a:hover {
  color: var(--accent-on-dark);
  border-bottom-color: var(--accent-on-dark);
}

/* --------------------------------------------------------------------------
   Team one-pager
   -------------------------------------------------------------------------- */

.page-team main {
  max-width: 46rem;
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--pad-x) 4rem;
}

.page-team .team-head { margin-bottom: 2.75rem; }
.page-team .team-head h1 { font-size: clamp(2.1rem, 5vw, 3.1rem); margin-bottom: 1rem; }

.team-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: tstep;
}

.team-steps li {
  counter-increment: tstep;
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1.1rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
}

.team-steps li::before {
  content: counter(tstep);
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 500;
  font-synthesis: none;
  color: var(--accent-text);
  line-height: 1.1;
}

.team-steps li p { color: var(--ink); }
.team-steps li p .sub { color: var(--ink-soft); }

.team-notes { margin-top: 2.75rem; }
.team-notes h2 { font-size: 1.3rem; margin-bottom: 1rem; }

.team-notes ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }

.team-notes li {
  color: var(--ink-soft);
  font-size: 0.97rem;
  line-height: 1.6;
  padding-left: 1.2rem;
  position: relative;
}

.team-notes li::before { content: "—"; position: absolute; left: 0; color: var(--green-hover); }

.team-foot {
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
}

@media print {
  .site-header, .site-footer, .team-foot .btn, .grain, .no-print { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .page-team main { padding: 0; max-width: none; }
  a { text-decoration: none; color: inherit; }
}
