/* ============================================================
   ASPIAN — v2 brand tokens
   Direction: light, warm, editorial — inspired by Made Agency
   and Novoa Health references. Soft periwinkle accent per
   client-supplied colour swatch (#98BAFA).
   Headings: Hanken Grotesk (sub for Proto Grotesk, licensed)
   Body: Inter (sub for Akzidenz Grotesk Pro, licensed)
   Accent/italic moments: Fraunces (editorial serif italic)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500&family=Fraunces:ital,opsz,wght@0,9..144,600;0,9..144,700;1,9..144,600;1,9..144,700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --paper: #FAFAF8;
  --paper-warm: #F3F1EC;
  --ink: #1A1A1A;
  --slate: #5C5B57;
  --sky: #98BAFA;
  --sky-deep: #6F5EC7;
  --sky-tint: #EBF1FE;
  --line: rgba(26, 26, 26, 0.10);
  --line-soft: rgba(26, 26, 26, 0.06);

  --font-display: 'Fraunces', Georgia, serif;
  --font-accent: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-logo: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --container: 1240px;
  --gutter: clamp(1.5rem, 5vw, 4rem);
  --radius: 20px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  overflow-x: hidden;
  max-width: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}
em.accent {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 700;
  color: var(--sky-deep);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sky-deep);
  display: inline-block;
  margin-bottom: 1.1rem;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { position: relative; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--sky-deep);
  outline-offset: 3px;
}

/* ============================================================
   Soft placeholder art — stands in for real photography
   ============================================================ */
.photo-placeholder {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, var(--sky-tint) 0%, var(--paper-warm) 60%, var(--sky) 130%);
}
.photo-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.5), transparent 55%),
    radial-gradient(circle at 75% 80%, rgba(77,114,217,0.18), transparent 50%);
}
.photo-placeholder .ph-label {
  position: absolute;
  bottom: 14px;
  left: 14px;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(26,26,26,0.45);
  background: rgba(255,255,255,0.6);
  padding: 4px 10px;
  border-radius: 999px;
}

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 248, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
  transition: opacity 0.3s ease, visibility 0s linear 0s;
  padding: 0 var(--gutter);
}
body.nav-collapsed .nav {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 0;
  max-width: var(--container);
  margin: 0 auto;
}
.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.55rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.logo .accent-dot { color: var(--sky-deep); }

/* ============================================================
   Splash — canvas dot-particles converge into the Aspian
   wordmark, hold briefly, then dissolve to reveal the page.
   ============================================================ */
.splash {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9999;
  background: var(--paper);
  transition: opacity 0.6s ease;
}
.splash.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.splash-canvas {
  display: block;
  width: 100%;
  height: 100%;
}
body.splashing {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .splash { display: none; }
  body.splashing { overflow: visible; }
}

/* ============================================================
   Ambient particle field — lives behind the hero copy and
   drifts continuously for as long as the homepage is open.
   ============================================================ */
.hero {
  position: relative;
}
.hero-canvas {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.hero-inner {
  position: relative;
  z-index: 1;
}
@media (prefers-reduced-motion: reduce) {
  .hero-canvas { display: none; }
}
.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-item-dropdown {
  position: relative;
}
.nav-dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-family: var(--font-logo);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}
.nav-dropdown-toggle:hover { color: var(--sky-deep); }
.nav-dropdown-toggle svg { width: 10px; height: 10px; transition: transform 0.2s ease; }
.nav-item-dropdown.is-open .nav-dropdown-toggle svg { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(26,26,26,0.1);
  padding: 0.5rem;
  min-width: 200px;
  display: none;
  flex-direction: column;
  z-index: 60;
}
.nav-item-dropdown.is-open .nav-dropdown-menu { display: flex; }
.nav-dropdown-menu a {
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  white-space: nowrap;
}
.nav-dropdown-menu a:hover { background: var(--sky-tint); color: var(--sky-deep); }
.nav-links a {
  font-family: var(--font-logo);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--sky-deep); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--sky);
  color: var(--ink);
}
.btn-primary:hover { background: var(--sky-deep); color: #fff; }
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--sky-deep); color: var(--sky-deep); }

/* Floating circular toggle — lives OUTSIDE .nav so it's never
   trapped by the header's backdrop-filter containing block.
   Visible on mobile always, and on desktop once scrolled. */
.floating-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--sky-deep);
  border: none;
  box-shadow: 0 8px 24px rgba(111, 94, 199, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 105;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s, background 0.2s ease, transform 0.2s ease;
}
.floating-toggle:hover { background: var(--ink); transform: translateY(-2px); }
body.nav-collapsed .floating-toggle,
body.menu-open .floating-toggle {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.25s ease;
}
body.menu-open .floating-toggle {
  opacity: 0;
  pointer-events: none;
}
@media (max-width: 860px) {
  .floating-toggle {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  body.menu-open .floating-toggle {
    opacity: 0;
    pointer-events: none;
  }
  .nav-links { display: none; }
}

.hamburger {
  width: 24px;
  height: 18px;
  position: relative;
  display: inline-block;
}
.hamburger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Mobile menu overlay — direct child of <body>, not nested in
   .nav, so position:fixed always resolves against the real
   viewport regardless of any filter/backdrop-filter ancestors. */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0s linear 0.5s;
}
body.menu-open .mobile-menu-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.25s ease;
}

.mobile-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(92vw, 800px);
  background: rgba(12, 12, 24, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: -12px 0 48px rgba(0, 0, 0, 0.35);
  padding: 25px 40px 32px min(100px, 12vw);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}
body.menu-open .mobile-menu-panel {
  transform: translateX(0);
}

.mobile-close {
  position: absolute;
  top: 25px;
  right: 40px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--sky-deep);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-size: 1.3rem;
  opacity: 0;
  transform: scale(0) rotate(0.001deg);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}
body.menu-open .mobile-close {
  opacity: 1;
  transform: scale(1) rotate(0.001deg);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) 0.9s, opacity 0.3s ease 0.9s;
}

.mobile-links {
  list-style: none;
  margin: 0;
  padding: 0;
  margin-top: 5rem;
}
.mobile-links li { opacity: 0; }
body.menu-open .mobile-links li { animation: fadeInUp 1s both; }
body.menu-open .mobile-links li:nth-child(1) { animation-delay: 0.3s; }
body.menu-open .mobile-links li:nth-child(2) { animation-delay: 0.45s; }
body.menu-open .mobile-links li:nth-child(3) { animation-delay: 0.6s; }
body.menu-open .mobile-links li:nth-child(4) { animation-delay: 0.75s; }
body.menu-open .mobile-links li:nth-child(5) { animation-delay: 0.9s; }
body.menu-open .mobile-links li:nth-child(6) { animation-delay: 1.05s; }
body.menu-open .mobile-links li:nth-child(7) { animation-delay: 1.2s; }
body.menu-open .mobile-links li:nth-child(8) { animation-delay: 1.35s; }
body.menu-open .mobile-links li:nth-child(9) { animation-delay: 1.5s; }
body.menu-open .mobile-links li:nth-child(10) { animation-delay: 1.65s; }
body.menu-open .mobile-links li:nth-child(11) { animation-delay: 1.8s; }
body.menu-open .mobile-links li:nth-child(12) { animation-delay: 1.95s; }
body.menu-open .mobile-links li:nth-child(13) { animation-delay: 2.1s; }
body.menu-open .mobile-links li:nth-child(n+14) { animation-delay: 2.25s; }
.mobile-links a { font-size: 1.15rem; }
.mobile-submenu-item { display: flex; flex-direction: column; }
.mobile-submenu-toggle {
  background: none;
  border: none;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.7rem;
  color: #fff;
  text-align: left;
  padding: 0.5rem 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.mobile-submenu-caret {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--sky);
  transition: transform 0.25s ease;
}
.mobile-submenu-item.is-open .mobile-submenu-caret { transform: rotate(45deg); }
.mobile-submenu {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.2rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.mobile-submenu-item.is-open .mobile-submenu {
  max-height: 500px;
}
.mobile-submenu li { opacity: 1; }
.mobile-submenu a {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.68);
  padding: 0.4rem 0;
  display: block;
}
.mobile-submenu a:hover { color: var(--sky); }
@media (max-height: 700px) {
  .mobile-links { margin-top: 3rem; }
  .mobile-links a { font-size: 1rem; padding: 0.35rem 0; }
}
.mobile-links > li > a {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.7rem;
  color: #fff;
  display: inline-block;
  padding: 0.5rem 0;
  transition: color 0.2s ease;
}
.mobile-links > li > a:hover { color: var(--sky); }
.mobile-meta {
  opacity: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
body.menu-open .mobile-meta { animation: fadeInUp 1s both; animation-delay: 1.65s; }
.mobile-meta span,
.mobile-meta a {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.85rem;
}
body.menu-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .mobile-menu-overlay,
  .mobile-menu-panel,
  .mobile-close,
  .mobile-links li,
  .mobile-meta {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: clamp(4rem, 11vw, 7rem) var(--gutter) clamp(2.5rem, 6vw, 4rem);
  background: linear-gradient(180deg, var(--sky-tint) 0%, var(--paper) 55%);
}
.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
}
h1.hero-title {
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.06;
  font-weight: 400;
  max-width: 18ch;
}
.hero-sub {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--ink);
  max-width: 40ch;
  margin: 1.6rem 0 1.1rem;
}
.hero-body {
  color: var(--slate);
  max-width: 48ch;
  font-size: 1rem;
  margin-bottom: 2.2rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: start;
}
.hero-text { padding-top: 1rem; }
.hero-media { display: flex; flex-direction: column; gap: 1.4rem; }

.hero-photo-wrap {
  position: relative;
  width: min(100%, 340px);
}
.hero-photo {
  aspect-ratio: 0.86;
  border-radius: 6px;
  overflow: hidden;
}
.photo-placeholder-bw {
  aspect-ratio: 0.86;
  border-radius: 6px;
  background: linear-gradient(145deg, #2A2A2A 0%, #6B6B6B 45%, #B8B8B8 75%, #E8E8E4 100%);
  filter: grayscale(1) contrast(1.05);
}

.spin-badge {
  position: absolute;
  top: -34px;
  right: -34px;
  width: 128px;
  height: 128px;
}
.spin-badge svg { width: 100%; height: 100%; }
.spin-badge text {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  fill: var(--sky-deep);
  text-transform: uppercase;
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .spin-badge { animation: none; }
}

.hero-mono-body {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--ink);
  max-width: 34ch;
  margin: 0;
}
.hero-arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--sky-deep);
  transition: gap 0.2s ease;
}
.hero-arrow-link:hover { gap: 0.8em; }

.scroll-indicator {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.4rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  z-index: 40;
}
.scroll-indicator span:first-child {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.scroll-plus {
  font-size: 0.9rem;
  color: var(--sky-deep);
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo-wrap { width: min(100%, 280px); }
  .scroll-indicator { display: none; }
}

/* ============================================================
   Image strip — Novoa-style horizontal gallery
   ============================================================ */
.image-strip {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0 var(--gutter) clamp(3rem, 6vw, 4.5rem);
  scrollbar-width: none;
}
.image-strip::-webkit-scrollbar { display: none; }
.image-strip .tile {
  flex: 0 0 auto;
  width: clamp(180px, 22vw, 280px);
  height: clamp(220px, 26vw, 340px);
}
.image-strip .tile:nth-child(odd) { margin-top: 1.5rem; }

/* ============================================================
   Section base
   ============================================================ */
.section {
  padding: clamp(4rem, 8vw, 6.5rem) var(--gutter);
}
.section-warm { background: var(--paper-warm); }
.slate-text { color: var(--slate); }

.section-inner {
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.section-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  max-width: 24ch;
}

/* ============================================================
   Edge / About — two column with image
   ============================================================ */
.edge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.edge-grid .photo-placeholder { height: 420px; }
.edge-images {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 520px;
}
.edge-grid h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  margin-bottom: 1.2rem;
}
.edge-body p { font-size: 1.02rem; color: var(--slate); margin-top: 0; }
@media (max-width: 820px) {
  .edge-grid { grid-template-columns: 1fr; }
  .edge-grid .photo-placeholder { height: 280px; order: -1; }
  .edge-images { height: auto; flex-direction: row; }
  .edge-images > div { height: 220px; }
}

/* ============================================================
   Services — soft cards
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-col {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-top: 3px solid var(--sky);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.service-col:hover {
  border-top-color: var(--sky-deep);
  transform: translateY(-3px);
}
.service-col h3 {
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: var(--sky-deep);
}
.service-item { margin-bottom: 1.4rem; }
.service-item:last-child { margin-bottom: 0; }
.service-item strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 0.3rem;
}
.service-item span {
  color: var(--slate);
  font-size: 0.92rem;
}
@media (max-width: 760px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Process / phases — soft cards
   ============================================================ */
.phases {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
}
.phase {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 2.4rem;
}
.phase-number {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--sky-deep);
  letter-spacing: 0.08em;
  margin-bottom: 1.3rem;
  display: block;
  text-transform: uppercase;
}
.phase h3 {
  font-size: 1.4rem;
  margin-bottom: 0.9rem;
  max-width: 20ch;
}
.phase p { margin-top: 0; margin-bottom: 1.5rem; color: var(--slate); }
.phase ul { list-style: none; margin: 0; padding: 0; }
.phase li {
  padding: 0.7rem 0;
  border-top: 1px solid var(--line-soft);
  font-size: 0.94rem;
}
.phase li:first-child { border-top: none; }
.phase li strong { font-weight: 500; }
@media (max-width: 760px) {
  .phases { grid-template-columns: 1fr; }
}

/* ============================================================
   Portfolio grid
   ============================================================ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.portfolio-grid .tile { height: 280px; }
.portfolio-grid .tile:first-child {
  grid-column: span 2;
  height: 280px;
}
@media (max-width: 820px) {
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .portfolio-grid .tile:first-child { grid-column: span 2; }
}
@media (max-width: 560px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-grid .tile:first-child { grid-column: span 1; }
}

.portfolio-filters {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.filter-pill {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--slate);
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-pill:hover { border-color: var(--sky-deep); color: var(--sky-deep); }
.filter-pill.is-active {
  background: var(--sky-deep);
  border-color: var(--sky-deep);
  color: #fff;
}

.portfolio-grid-full {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.portfolio-project { transition: opacity 0.3s ease, transform 0.3s ease; display: block; }
.portfolio-project:hover { transform: translateY(-4px); }
.portfolio-project.is-hidden {
  display: none;
}
.portfolio-project-meta {
  margin-top: 0.9rem;
}
.portfolio-project-category {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--slate);
}
.photo-placeholder-bw {
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, #3A3A3A 0%, #8C8C8C 55%, #D8D8D4 100%);
  filter: grayscale(1);
  position: relative;
}
.photo-placeholder-bw .ph-label {
  position: absolute;
  bottom: 14px;
  left: 14px;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
@media (max-width: 700px) {
  .portfolio-grid-full { grid-template-columns: 1fr; }
}

/* ============================================================
   Advantage — editorial quote block
   ============================================================ */
.advantage-inner { max-width: 760px; }
.advantage-inner p.lead {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.45;
  margin: 0 0 1.3rem;
}

/* ============================================================
   Philosophy + longevity
   ============================================================ */
.phil-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
}
.phil-grid h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 1.2rem; }
.longevity-box {
  background: var(--sky-tint);
  border-radius: var(--radius);
  padding: 2rem;
}
.longevity-box .eyebrow { margin-bottom: 0.9rem; }
.longevity-box p { margin: 0; font-size: 0.98rem; color: var(--ink); }
@media (max-width: 760px) {
  .phil-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Testimonial
   ============================================================ */
.testimonial {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.testimonial blockquote {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  line-height: 1.5;
  margin: 0 0 1.5rem;
  color: var(--ink);
}
.testimonial cite {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--slate);
}

/* ============================================================
   Close / CTA
   ============================================================ */
.close-section {
  text-align: center;
  background: linear-gradient(160deg, #14183A 0%, var(--ink) 65%);
  color: var(--paper);
  border-radius: var(--radius);
  margin: 0 var(--gutter);
  padding: clamp(3.5rem, 8vw, 6rem) var(--gutter);
}
.close-inner { max-width: 640px; margin: 0 auto; }
.close-inner h2 {
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  margin-bottom: 1.3rem;
  color: var(--paper);
}
.close-inner .eyebrow { color: var(--sky); }
.close-inner p { color: rgba(250,250,248,0.7); margin-bottom: 2.1rem; font-size: 1.02rem; }
.close-meta {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: rgba(250,250,248,0.55);
  letter-spacing: 0.04em;
}

/* ============================================================
   Footer
   ============================================================ */
.trust-marquee-section {
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.logo-marquee {
  overflow: hidden;
  width: 100%;
  margin-top: 2rem;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logo-marquee-track {
  display: flex;
  align-items: center;
  gap: clamp(3rem, 6vw, 5rem);
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
}
.marquee-logo {
  height: 80px;
  width: auto;
  object-fit: contain;
  opacity: 0.55;
  filter: grayscale(1);
  transition: opacity 0.25s ease, filter 0.25s ease;
  flex-shrink: 0;
}
.marquee-logo:hover {
  opacity: 1;
  filter: grayscale(0);
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-marquee-track { animation: none; }
  .logo-marquee { overflow-x: auto; }
}

/* ============================================================
   Tool pages — shared calculator/quiz UI components
   ============================================================ */
.tool-panel {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.tool-field { margin-bottom: 1.4rem; }
.tool-field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--paper);
  resize: vertical;
  min-height: 120px;
}
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.7rem;
  margin-bottom: 1.6rem;
}
.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--ink);
  cursor: pointer;
}
.checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--sky-deep);
  cursor: pointer;
}
.tool-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--slate);
  margin-bottom: 0.5rem;
}
.tool-field input[type="text"],
.tool-field input[type="number"],
.tool-field select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--paper);
}
.tool-field input[type="range"] {
  width: 100%;
  accent-color: var(--sky-deep);
}
.tool-field .tool-range-value {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--sky-deep);
  margin-left: 0.5rem;
}
.tool-results {
  margin-top: 2rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.2rem;
}
.tool-result-card {
  background: var(--sky-tint);
  border-radius: 10px;
  padding: 1.1rem 1.2rem;
}
.tool-result-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 0.4rem;
  display: block;
}
.tool-result-value {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 600;
  color: var(--ink);
}
.tool-quiz-question { margin-bottom: 1.8rem; }
.tool-quiz-question p {
  font-family: var(--font-body);
  font-weight: 500;
  margin: 0 0 0.8rem;
}
.tool-quiz-options { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.tool-quiz-option {
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.tool-quiz-option.is-selected {
  background: var(--sky-deep);
  border-color: var(--sky-deep);
  color: #fff;
}
.tool-score-ring {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
}
.automation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.automation-node {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.4rem;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
  text-align: left;
  font-family: var(--font-body);
}
.automation-node:hover { border-color: var(--sky-deep); transform: translateY(-2px); }
.automation-node.is-active { border-color: var(--sky-deep); background: var(--sky-tint); }
.automation-node h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.automation-node span { font-size: 0.82rem; color: var(--slate); }
.automation-detail {
  background: var(--sky-tint);
  border-radius: var(--radius);
  padding: 1.6rem;
  display: none;
}
.automation-detail.is-visible { display: block; }
.automation-detail ul { margin: 0.8rem 0 0; padding-left: 1.2rem; }
.automation-detail li { margin-bottom: 0.5rem; }
canvas.tool-chart { width: 100%; height: 280px; }

/* ============================================================
   Case study pages
   ============================================================ */
.case-hero-image {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.case-hero-image img { width: 100%; height: auto; display: block; }
.case-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.case-body p {
  font-size: 1.05rem;
  color: var(--slate);
  margin: 0 0 1.4rem;
}
.case-body p:last-child { margin-bottom: 0; }
.case-sidebar {
  position: sticky;
  top: 100px;
}
.case-sidebar-block { margin-bottom: 2rem; }
.case-sidebar-block h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 0.6rem;
}
.case-sidebar-block p { margin: 0; font-size: 0.98rem; color: var(--ink); }
.case-sidebar-block ul { list-style: none; margin: 0; padding: 0; }
.case-sidebar-block li { font-size: 0.98rem; color: var(--ink); margin-bottom: 0.3rem; }
.case-view-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--sky-deep);
}
.case-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--slate);
  margin-bottom: 2rem;
}
.case-back-link:hover { color: var(--sky-deep); }
@media (max-width: 820px) {
  .case-layout { grid-template-columns: 1fr; }
  .case-sidebar { position: static; display: flex; flex-wrap: wrap; gap: 2rem; }
}

.nav-item-megamenu { position: relative; }
.nav-megamenu {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  left: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(26,26,26,0.12);
  padding: 1.5rem;
  width: 820px;
  max-width: calc(100vw - 40px);
  display: none;
  grid-template-columns: 1fr 260px;
  gap: 1.5rem;
  z-index: 60;
}
.nav-item-megamenu.is-open .nav-megamenu { display: grid; }
.megamenu-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  align-content: start;
}
.megamenu-cta {
  background: var(--ink);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.megamenu-cta .eyebrow {
  color: var(--sky);
  margin-bottom: 0;
}
.megamenu-cta a.btn {
  background: var(--sky-deep);
  color: #fff;
  text-align: center;
  justify-content: center;
}
.megamenu-cta a.btn:hover { background: var(--sky); color: var(--ink); }
.megamenu-item {
  display: block;
  padding: 1rem 1.1rem;
  border-radius: 10px;
  transition: background 0.15s ease;
}
.megamenu-item:hover { background: var(--sky-tint); }
.megamenu-item strong {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--ink);
  margin-bottom: 0.25rem;
}
.megamenu-item span {
  font-size: 0.84rem;
  color: var(--slate);
}
@media (max-width: 1100px) {
  .nav-megamenu { width: 520px; }
}

.lead-gate {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  max-width: 480px;
  margin: 0 auto;
}
.lead-gate p.lead-gate-intro {
  font-size: 0.95rem;
  color: var(--slate);
  margin: 0 0 1.6rem;
}
.lead-gate .tool-field { margin-bottom: 1.1rem; }
.lead-gate-error {
  color: #C0392B;
  font-size: 0.85rem;
  margin-top: 0.8rem;
  display: none;
}
.lead-gate-error.is-visible { display: block; }
.lead-gate-submit {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
}
.lead-gate-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.gated-content[data-hidden="true"] { display: none; }

.results-gate-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.45);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.results-gate-overlay.is-open { display: flex; }
.results-gate-modal {
  background: #fff;
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  max-width: 440px;
  width: 100%;
  position: relative;
}
.results-gate-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--slate);
  cursor: pointer;
}
.results-gate-modal .lead-gate-intro { margin-bottom: 1.5rem; }

.tool-locked-preview {
  position: relative;
  overflow: hidden;
}
.tool-locked-preview::after {
  content: '';
  position: absolute;
  inset: 0;
  backdrop-filter: blur(6px);
  background: rgba(250, 250, 248, 0.4);
}

.audit-inline-form {
  display: flex;
  align-items: stretch;
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 0.4rem;
  gap: 0;
  flex-wrap: wrap;
}
.audit-inline-field {
  flex: 1;
  min-width: 140px;
  display: flex;
  align-items: center;
  padding: 0.7rem 1.1rem;
  border-right: 1px solid var(--line);
  gap: 0.4rem;
}
.audit-inline-field:last-of-type { border-right: none; }
.audit-inline-field .prefix { color: var(--slate); font-size: 0.92rem; }
.audit-inline-field input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.95rem;
  color: var(--ink);
  width: 100%;
  font-family: var(--font-body);
}
.audit-inline-submit {
  border-radius: 999px;
  padding: 0.9rem 1.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}
@media (max-width: 760px) {
  .audit-inline-form { border-radius: 20px; }
  .audit-inline-field { border-right: none; border-bottom: 1px solid var(--line); flex: 1 1 100%; width: 100%; }
  .audit-inline-submit { width: 100%; justify-content: center; margin-top: 0.5rem; }
}

.audit-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
  margin-top: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--slate);
}
.audit-checklist span { color: var(--sky-deep); margin-right: 0.3em; }

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.proof-card {
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
}
.proof-card .proof-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--slate);
  display: block;
  margin-bottom: 0.8rem;
}
.proof-card .proof-stat {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--ink);
}
.proof-card .proof-stat span { color: var(--sky-deep); font-size: 0.55em; }
.proof-card .proof-detail {
  font-size: 0.85rem;
  color: var(--slate);
  margin-top: 0.5rem;
}
@media (max-width: 900px) {
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
}

.floating-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--sky-deep);
  color: #fff;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  box-shadow: 0 8px 24px rgba(111, 94, 199, 0.35);
  transition: background 0.2s ease, transform 0.2s ease;
}
.floating-cta:hover { background: var(--ink); transform: translateY(-2px); }
.floating-cta svg { width: 18px; height: 18px; flex-shrink: 0; }
@media (max-width: 600px) {
  .floating-cta { bottom: 16px; right: 16px; padding: 0.8rem 1.1rem; font-size: 0.88rem; }
}

.services-list {
  border-top: 1px solid var(--line);
}
.services-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.25s ease;
}
.services-list-row:hover { padding-left: 1rem; }
.services-list-row-text h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  margin: 0 0 0.4rem;
}
.services-list-row-text p {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--slate);
  margin: 0;
  max-width: 50ch;
}
.services-list-row-arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.services-list-row:hover .services-list-row-arrow {
  background: var(--sky-deep);
  border-color: var(--sky-deep);
  transform: rotate(45deg);
}
.services-list-row-arrow svg { stroke: var(--ink); transition: stroke 0.2s ease; }
.services-list-row:hover .services-list-row-arrow svg { stroke: #fff; }
@media (max-width: 700px) {
  .services-list-row { flex-wrap: wrap; gap: 1rem; padding: 1.5rem 0; }
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.blog-card { display: block; }
.blog-card-image {
  aspect-ratio: 1.5;
  border-radius: var(--radius);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: flex-end;
  padding: 1.2rem;
}
.blog-card-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.9);
  color: var(--ink);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
}
.blog-card-meta {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--slate);
  margin-bottom: 0.5rem;
}
.blog-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 0 0 0.5rem;
}
.blog-card p {
  color: var(--slate);
  font-size: 0.92rem;
  margin: 0;
}
@media (max-width: 900px) {
  .blog-grid { grid-template-columns: 1fr; }
}

.blog-article-body {
  max-width: 68ch;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink);
}
.blog-article-body h2 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  margin: 2.5rem 0 1rem;
}
.blog-article-body h3 {
  font-size: 1.25rem;
  margin: 2rem 0 0.8rem;
}
.blog-article-body p { margin: 0 0 1.4rem; color: var(--slate); }
.blog-article-body strong { color: var(--ink); }
.blog-article-body ul, .blog-article-body ol { margin: 0 0 1.4rem; padding-left: 1.4rem; color: var(--slate); }
.blog-article-body li { margin-bottom: 0.6rem; }
.blog-article-body a { color: var(--sky-deep); text-decoration: underline; text-underline-offset: 2px; }
.blog-article-header {
  max-width: 68ch;
  margin: 0 auto 2.5rem;
}
.blog-article-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--slate);
  display: flex;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.footer {
  padding: 4rem var(--gutter) 2.2rem;
  background: linear-gradient(180deg, var(--paper) 0%, var(--sky-tint) 100%);
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-brand { max-width: 320px; }
.footer-logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 3rem);
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1;
  display: inline-block;
}
.footer-logo .accent-dot { color: var(--sky-deep); }
.footer-tagline {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--slate);
  margin-top: 1rem;
  letter-spacing: 0.01em;
}
.footer-tagline em {
  font-style: italic;
  color: var(--sky-deep);
  font-family: var(--font-display);
  font-size: 1.05em;
}
.footer-col h4 a { color: inherit; }
.footer-col h4 a:hover { color: var(--sky-deep); }
.footer-cols {
  display: flex;
  gap: 3.5rem;
  flex-wrap: wrap;
}
.footer-col h4 {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 1rem;
}
.footer-col > a:not(.btn) {
  display: block;
  font-size: 0.92rem;
  color: var(--ink);
  margin-bottom: 0.6rem;
}
.footer-col > a:not(.btn):hover { color: var(--sky-deep); }

.footer-wordmark-canvas {
  display: block;
  width: 100%;
  height: clamp(120px, 18vw, 220px);
  margin-bottom: 2.5rem;
}

.footer-divider {
  border: none;
  border-top: 1px solid var(--line-soft);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1s cubic-bezier(0.65, 0, 0.35, 1);
  margin: 0 0 2.5rem;
}
.footer-divider.is-drawn {
  transform: scaleX(1);
}

.footer-bottom {
  padding-top: 1.6rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--slate);
}

@media (prefers-reduced-motion: reduce) {
  .footer-divider { transform: scaleX(1); transition: none; }
  .footer-wordmark-canvas { display: none; }
}

/* ============================================================
   Reveal-on-scroll
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}


/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 0;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 3rem 1.1rem 1.3rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 1.3rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--sky-deep);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p {
  margin: 0;
  padding: 0 1.3rem 1.2rem;
  color: var(--slate);
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 70ch;
}


/* Footer plain-text lines: match link typography */
.footer-text {
  display: block;
  font-size: 0.92rem;
  color: var(--ink);
  margin-bottom: 0.6rem;
}
.footer-text-muted {
  color: var(--slate);
  font-size: 0.85rem;
  margin-top: 0.2rem;
}


/* ---------- Journal (editorial blog) ---------- */
.journal-masthead-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(3.4rem, 11vw, 8rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0.4rem 0 1.2rem;
}
.journal-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 0 2.4rem;
}
.journal-pill {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 0.55rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.journal-pill:hover { border-color: var(--sky-deep); color: var(--sky-deep); }
.journal-pill.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.journal-pill.is-active .journal-pill-count { color: var(--sky); }
.journal-pill-count { color: var(--sky-deep); margin-left: 0.3rem; }

.journal-featured-wrap { margin-bottom: 2.2rem; }
.journal-featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(1.4rem, 3vw, 2.6rem);
  align-items: center;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.2rem, 2.5vw, 2rem);
}
.journal-featured-art { border-radius: var(--radius-sm); overflow: hidden; }
.journal-featured-art img, .journal-card-art img { display: block; width: 100%; height: auto; transition: transform 0.45s ease; }
.journal-featured:hover .journal-featured-art img, .journal-card:hover .journal-card-art img { transform: scale(1.04); }
.journal-featured-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.15;
  margin: 0.7rem 0 0.8rem;
}
.journal-featured:hover h2, .journal-card:hover h3 { color: var(--sky-deep); }
.journal-featured-body p { color: var(--slate); margin: 0 0 1rem; max-width: 52ch; }

.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
}
.journal-card { display: block; text-decoration: none; color: inherit; }
.journal-card-art { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line-soft); }
.journal-card-body { padding-top: 0.9rem; }
.journal-card-meta, .journal-card-author {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--slate);
}
.journal-card-author { margin-top: 0.55rem; color: var(--sky-deep); }
.journal-card h3 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  line-height: 1.25;
  margin: 0.55rem 0 0.45rem;
  transition: color 0.2s ease;
}
.journal-card p { color: var(--slate); font-size: 0.92rem; line-height: 1.55; margin: 0; }
.journal-empty {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--slate);
  padding: 2rem 0;
}

.journal-article-art {
  max-width: 780px;
  margin: 2.2rem auto 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-soft);
}
.journal-article-art img { display: block; width: 100%; height: auto; }

.journal-author-card {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  margin-top: 3rem;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper-warm);
}
.journal-author-mark {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--sky-deep);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.journal-author-card strong { font-family: var(--font-display); font-size: 1.02rem; }
.journal-author-card p { margin: 0.3rem 0 0; color: var(--slate); font-size: 0.9rem; line-height: 1.55; }

@media (max-width: 900px) {
  .journal-grid { grid-template-columns: repeat(2, 1fr); }
  .journal-featured { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .journal-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .journal-featured-art img, .journal-card-art img { transition: none; }
}
