/* =====================================================
   Canal Commons — Concept Study
   Landscape-architecture editorial aesthetic
   ===================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Greens */
  --forest:      #1f3a2e;
  --pine:        #2f4a3c;
  --moss:        #4f6f4e;
  --sage:        #7d9a76;
  --sage-soft:   #b9c9ad;

  /* Canal blues */
  --canal-deep:  #1f5b6e;
  --canal:       #2f7d92;
  --canal-light: #6fb3c0;

  /* Neutrals */
  --paper:       #f6f3ec;
  --sand:        #efe9dd;
  --sand-deep:   #e6decd;
  --stone:       #5c5a51;
  --ink:         #232a25;
  --ink-soft:    #41463f;
  --white:       #ffffff;

  /* Functional */
  --bg:          var(--paper);
  --text:        var(--ink);
  --muted:       var(--ink-soft);

  /* Type */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, sans-serif;

  /* Layout */
  --maxw: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 3px rgba(31, 58, 46, 0.08), 0 6px 18px rgba(31, 58, 46, 0.06);
  --shadow-md: 0 8px 30px rgba(31, 58, 46, 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

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

img, video { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; line-height: 1.08; }
p { margin: 0; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.center { text-align: center; margin-inline: auto; }
.section { padding-block: clamp(4.5rem, 9vw, 8rem); }

.display {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.04;
}
.lead {
  font-size: clamp(1.1rem, 1.7vw, 1.3rem);
  color: var(--muted);
  line-height: 1.6;
}
.lead-light { color: rgba(255,255,255,0.86); }
.light { color: var(--white); }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--canal);
  margin-bottom: 1rem;
}
.eyebrow-light { color: var(--canal-light); }

.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { margin-inline: auto; }

.tint-sand { background: var(--sand); }
.tint-deep { background: var(--forest); color: var(--white); }
.tint-deep .lead { color: rgba(255,255,255,0.8); }
.tint-pine { background: linear-gradient(165deg, var(--pine), var(--forest)); color: var(--white); }
.tint-pine .lead { color: rgba(255,255,255,0.8); }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: 50%; top: -60px; transform: translateX(-50%);
  z-index: 200; background: var(--canal-deep); color: var(--white);
  padding: 0.6rem 1.2rem; border-radius: 0 0 10px 10px; font-weight: 600; font-size: 0.9rem;
  transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-family: var(--sans);
  font-weight: 600; font-size: 0.96rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.86rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }

.btn-solid { background: var(--canal-deep); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-solid:hover { background: var(--canal); box-shadow: var(--shadow-md); }

.btn-ghost-light { color: var(--white); border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.06); backdrop-filter: blur(4px); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.16); border-color: var(--white); }

.btn-ghost-dark { color: var(--pine); border-color: var(--sand-deep); background: var(--white); }
.btn-ghost-dark:hover { border-color: var(--canal); color: var(--canal-deep); }

/* =====================================================
   HEADER / NAV
   ===================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
}
.site-header.scrolled {
  background: rgba(246, 243, 236, 0.88);
  backdrop-filter: blur(12px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(31,58,46,0.08);
}
.nav-inner { display: flex; align-items: center; gap: 1.5rem; padding-block: 1.1rem; }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; margin-right: auto; font-family: var(--serif); font-size: 1.18rem; font-weight: 600; color: var(--white); transition: color 0.35s var(--ease); }
.brand-mark { display: inline-flex; color: var(--canal-light); }
.scrolled .brand { color: var(--forest); }
.scrolled .brand-mark { color: var(--canal); }

.nav-links { display: flex; gap: 1.75rem; }
.nav-links a {
  font-size: 0.92rem; font-weight: 500; color: rgba(255,255,255,0.9);
  position: relative; transition: color 0.3s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -5px; width: 0; height: 1.5px;
  background: var(--canal-light); transition: width 0.3s var(--ease);
}
.nav-links a:hover::after { width: 100%; }
.scrolled .nav-links a { color: var(--ink-soft); }
.scrolled .nav-links a:hover { color: var(--canal-deep); }

.nav-cta { margin-left: 0; }
.scrolled .nav-cta { /* stays solid */ }

/* Header avatar */
.avatar-btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; flex: 0 0 auto; }
.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(150deg, var(--canal), var(--pine));
  color: var(--white); font-family: var(--sans); font-weight: 600; font-size: 0.92rem;
  letter-spacing: 0.02em; box-shadow: 0 0 0 2px rgba(255,255,255,0.55);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.scrolled .avatar { box-shadow: 0 0 0 2px rgba(31,58,46,0.12); }
.avatar-btn:hover .avatar { transform: scale(1.06); box-shadow: 0 0 0 3px rgba(47,125,146,0.45); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; margin-left: 0.25rem; }
.nav-toggle span { width: 26px; height: 2px; background: var(--white); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), background 0.35s; }
.scrolled .nav-toggle span { background: var(--forest); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none; flex-direction: column;
  background: rgba(246,243,236,0.98); backdrop-filter: blur(12px);
  padding: 0.5rem var(--gutter) 1.5rem;
  box-shadow: var(--shadow-md);
}
.mobile-menu a { padding: 0.85rem 0; font-size: 1.05rem; color: var(--ink-soft); border-bottom: 1px solid var(--sand-deep); }
.mobile-menu a:last-child { border-bottom: 0; }
.mobile-menu.open { display: flex; }
.mobile-cta { color: var(--canal-deep) !important; font-weight: 600; }

/* =====================================================
   1. HERO
   ===================================================== */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; color: var(--white); }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 18s var(--ease) forwards; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,40,33,0.55) 0%, rgba(20,40,33,0.15) 35%, rgba(20,40,33,0.35) 70%, rgba(20,40,33,0.78) 100%),
    linear-gradient(90deg, rgba(20,40,33,0.5) 0%, rgba(20,40,33,0) 60%);
}
.hero-content { position: relative; z-index: 2; padding-block: 8rem 6rem; max-width: 760px; }
.hero-title { font-size: clamp(3rem, 9vw, 6.5rem); font-weight: 600; line-height: 0.98; letter-spacing: -0.02em; text-shadow: 0 2px 30px rgba(0,0,0,0.25); }
.hero-sub { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(1.25rem, 2.8vw, 1.9rem); margin-top: 0.8rem; color: rgba(255,255,255,0.95); }
.hero-intro { font-size: clamp(1.05rem, 1.6vw, 1.22rem); margin-top: 1.6rem; max-width: 38ch; color: rgba(255,255,255,0.9); line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }
.brief-link {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.5rem;
  font-size: 0.92rem; font-weight: 600; color: rgba(255,255,255,0.9);
  border-bottom: 1px solid rgba(255,255,255,0.4); padding-bottom: 2px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.brief-link svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.brief-link:hover { color: var(--white); border-color: var(--white); }

.scroll-hint { position: absolute; left: 50%; bottom: 2rem; transform: translateX(-50%); z-index: 2; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,0.7); border-radius: 14px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: var(--white); border-radius: 2px; animation: scrollDot 1.8s var(--ease) infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 60% { opacity: 1; transform: translateY(12px); } 100% { opacity: 0; transform: translateY(16px); } }

/* =====================================================
   2. BIG IDEA
   ===================================================== */
.big-idea .lead { margin-top: 1.4rem; }
.idea-cards {
  margin-top: clamp(2.4rem, 4vw, 3.2rem);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; text-align: left;
}
.idea-card {
  background: var(--white); border: 1px solid rgba(31,58,46,0.06);
  border-radius: var(--radius); padding: 1.7rem 1.5rem; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 1rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.idea-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.idea-icon {
  display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center;
  border-radius: 12px; background: var(--sand); color: var(--moss);
}
.idea-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.idea-card p {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  line-height: 1.25; color: var(--pine);
}

/* =====================================================
   SPLIT (text + media)
   ===================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--reverse .split-text { order: 2; }
.split-text .lead { margin-top: 1.3rem; }
.split-text p + p { margin-top: 1rem; }
.pull {
  font-family: var(--serif); font-size: clamp(1.3rem, 2.5vw, 1.85rem); line-height: 1.2;
  color: var(--canal-deep); margin-top: 1.4rem !important; font-weight: 500;
}
.split-media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); aspect-ratio: 4/3; object-fit: cover; }

/* =====================================================
   3. OPPORTUNITY — value grid
   ===================================================== */
.value-grid { margin-top: clamp(3rem, 6vw, 5rem); display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.value-card {
  background: var(--white); border-radius: var(--radius); padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(31,58,46,0.05);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.value-icon { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 12px; background: var(--sand); color: var(--moss); margin-bottom: 1rem; }
.value-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.value-card h3 { font-size: 1.3rem; margin-bottom: 0.35rem; color: var(--forest); }
.value-card p { font-size: 0.96rem; color: var(--muted); }

/* =====================================================
   4. PROGRAM ELEMENTS
   ===================================================== */
.program-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.program-card {
  position: relative; background: var(--white); border-radius: var(--radius);
  padding: 1.8rem 1.5rem 1.6rem; box-shadow: var(--shadow-sm);
  border: 1px solid rgba(31,58,46,0.05); overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.program-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(var(--canal), var(--moss)); transform: scaleY(0); transform-origin: top; transition: transform 0.4s var(--ease); }
.program-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.program-card:hover::before { transform: scaleY(1); }
.program-num { font-family: var(--serif); font-size: 0.95rem; font-weight: 600; color: var(--canal); letter-spacing: 0.05em; }
.program-card h3 { font-size: 1.22rem; margin: 0.5rem 0 0.55rem; color: var(--forest); line-height: 1.15; }
.program-card p { font-size: 0.92rem; color: var(--muted); }
.program-card--figure { grid-column: span 2; padding: 0; }
.program-card--figure img { width: 100%; height: 100%; object-fit: cover; }

/* =====================================================
   5. MODES
   ===================================================== */
.modes-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.1rem; }
.mode-card {
  border-radius: var(--radius); padding: 1.9rem 1.5rem 1.7rem;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(4px); display: flex; flex-direction: column;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}
.mode-card:hover { transform: translateY(-4px); background: rgba(255,255,255,0.09); }
.mode-time {
  display: block; font-family: var(--serif); font-size: 1.5rem; font-weight: 500;
  color: var(--white); margin-bottom: 0.75rem; line-height: 1.1;
}
.mode-card p { font-size: 0.94rem; color: rgba(255,255,255,0.78); }
.mode-card--accent { background: linear-gradient(160deg, rgba(47,125,146,0.4), rgba(255,255,255,0.04)); border-color: rgba(111,179,192,0.45); }
.mode-card--accent .mode-time { color: #ffd9a8; }

/* =====================================================
   6. CURRICULUM FLOW
   ===================================================== */
.curriculum .lead { margin-top: 2.6rem; }
.flow {
  margin-top: 2.8rem; display: flex; flex-wrap: wrap; align-items: stretch;
  justify-content: center; gap: 0.75rem;
}
.flow-step {
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  background: var(--white); border: 1px solid rgba(31,58,46,0.06);
  border-radius: var(--radius); padding: 1.2rem 1.4rem; min-width: 120px;
  font-family: var(--serif); font-size: 1.1rem; color: var(--forest);
  box-shadow: var(--shadow-sm); position: relative;
}
.flow-step:not(:last-child)::after {
  content: "→"; position: absolute; right: -0.95rem; top: 50%; transform: translateY(-50%);
  color: var(--canal); font-size: 1.3rem; z-index: 1; font-family: var(--sans);
}
.flow-dot { font-size: 1.6rem; line-height: 1; }

/* =====================================================
   7. WHY HERE — figures
   ===================================================== */
.context-list { margin-top: 1.8rem; display: flex; flex-direction: column; gap: 0.75rem; }
.context-list li { position: relative; padding-left: 1.8rem; color: var(--ink-soft); font-weight: 500; }
.context-list li::before {
  content: ""; position: absolute; left: 0; top: 0.55em; width: 11px; height: 11px;
  border-radius: 50%; background: var(--canal); box-shadow: 0 0 0 4px rgba(47,125,146,0.18);
}
.figure { margin: 0; }
.figure img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.figure figcaption { margin-top: 0.9rem; font-size: 0.88rem; color: var(--stone); font-style: italic; text-align: center; }
.figure--wide { margin-top: clamp(2.5rem, 5vw, 4rem); }
.figure--wide img { aspect-ratio: 21/9; object-fit: cover; }

/* =====================================================
   8. INSPIRATION / PARTNERS
   ===================================================== */
.partner-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; list-style: none;
}
.partner-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.5rem; text-align: center; height: 118px; padding: 1.1rem 1.2rem;
  background: var(--white); border: 1px solid var(--sand-deep); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); color: var(--pine);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), color 0.3s var(--ease);
}
.partner-tile:hover { transform: translateY(-4px); border-color: var(--canal); box-shadow: var(--shadow-md); color: var(--canal-deep); }
.partner-logo { max-height: 56px; max-width: 80%; width: auto; object-fit: contain; }
.partner-name { font-family: var(--serif); font-size: 1.02rem; font-weight: 500; line-height: 1.15; }
/* When a real logo loads, hide the text wordmark */
.partner-tile.has-logo .partner-name { display: none; }

.partner-also { margin-top: 1.4rem; color: var(--ink-soft); font-size: 0.98rem; }
.partner-also strong { color: var(--pine); font-weight: 600; }

.disclaimer { margin-top: 1.4rem; font-size: 0.86rem; color: var(--stone); font-style: italic; max-width: 64ch; }

/* =====================================================
   9. CLOSING
   ===================================================== */
.closing { position: relative; overflow: hidden; color: var(--white); padding-block: clamp(6rem, 12vw, 11rem); }
.closing-media { position: absolute; inset: 0; z-index: 0; }
.closing-media video, .closing-media img { width: 100%; height: 100%; object-fit: cover; }
.closing-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,40,33,0.72), rgba(20,40,33,0.55) 50%, rgba(20,40,33,0.82)); }
.closing-content { position: relative; z-index: 2; }
.closing-content .lead { margin-top: 1.4rem; margin-bottom: 2.4rem; }
.closing .display { text-shadow: 0 2px 30px rgba(0,0,0,0.3); }

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer { background: var(--forest); color: rgba(255,255,255,0.82); padding-block: 3rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.footer-brand { display: flex; align-items: center; gap: 0.85rem; }
.footer-brand .brand-mark { color: var(--canal-light); }
.footer-title { font-family: var(--serif); font-size: 1.15rem; color: var(--white); }
.footer-loc { font-size: 0.92rem; color: rgba(255,255,255,0.7); }
.footer-note { font-size: 0.84rem; color: rgba(255,255,255,0.6); max-width: 42ch; }

/* =====================================================
   4. LIVING INFRASTRUCTURE
   ===================================================== */
.thesis {
  display: flex; align-items: stretch; justify-content: center; flex-wrap: wrap;
  gap: 1.5rem; margin-top: clamp(2rem, 4vw, 3rem);
}
.thesis-node {
  flex: 1 1 280px; max-width: 380px; text-align: center;
  border-radius: var(--radius-lg); padding: 2.2rem 1.8rem;
  display: flex; flex-direction: column; gap: 0.5rem;
  box-shadow: var(--shadow-sm);
}
.thesis-from { background: var(--white); border: 1px dashed var(--sage); }
.thesis-to { background: linear-gradient(160deg, var(--canal-deep), var(--pine)); color: var(--white); box-shadow: var(--shadow-md); }
.thesis-kicker { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--canal); }
.thesis-to .thesis-kicker { color: var(--canal-light); }
.thesis-label { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.05; color: var(--forest); }
.thesis-to .thesis-label { color: var(--white); }
.thesis-fn { font-size: 0.92rem; color: var(--muted); }
.thesis-to .thesis-fn { color: rgba(255,255,255,0.82); }
.thesis-arrow { display: flex; align-items: center; color: var(--canal); width: 70px; }
.thesis-arrow svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; width: 100%; }

.functions-grid {
  margin-top: clamp(2.5rem, 5vw, 4rem); display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.9rem;
}
.functions-grid li {
  display: flex; align-items: center; gap: 0.85rem;
  background: var(--white); border: 1px solid rgba(31,58,46,0.06);
  border-radius: var(--radius); padding: 1rem 1.2rem; font-weight: 500; color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}
.fn-dot { font-size: 1.4rem; line-height: 1; }

/* =====================================================
   6. FLOATING ISLANDS
   ===================================================== */
.islands-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.island-card {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
  border-top: 4px solid var(--accent, var(--canal-light));
  border-radius: var(--radius); padding: 1.9rem 1.6rem; backdrop-filter: blur(4px);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}
.island-card:hover { transform: translateY(-5px); background: rgba(255,255,255,0.09); }
.island-icon { display: inline-flex; width: 50px; height: 50px; align-items: center; justify-content: center; border-radius: 12px; background: rgba(255,255,255,0.1); color: var(--accent, var(--canal-light)); margin-bottom: 1.1rem; }
.island-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.island-card h3 { font-size: 1.25rem; color: var(--white); margin-bottom: 0.5rem; line-height: 1.15; }
.island-card p { font-size: 0.94rem; color: rgba(255,255,255,0.78); }

/* =====================================================
   7. FLOW CAPTION
   ===================================================== */
.flow-caption { margin-top: 2.6rem; max-width: 640px; margin-inline: auto; }

/* =====================================================
   10. STRATEGIC ALIGNMENT
   ===================================================== */
.align-matrix { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.align-pillar {
  background: var(--white); border: 1px solid rgba(31,58,46,0.06);
  border-radius: var(--radius); padding: 1.7rem 1.6rem; box-shadow: var(--shadow-sm);
}
.align-cat {
  font-family: var(--sans); font-size: 0.96rem; font-weight: 600;
  padding-bottom: 0.9rem; margin-bottom: 1rem; border-bottom: 2px solid var(--sand-deep);
  position: relative;
}
.align-cat::before { content: ""; position: absolute; left: 0; bottom: -2px; width: 44px; height: 2px; background: var(--cat-color, var(--canal)); }
.align-cat[data-cat="water"] { --cat-color: var(--canal); }
.align-cat[data-cat="learn"] { --cat-color: #c79a3a; }
.align-cat[data-cat="health"] { --cat-color: var(--moss); }
.align-cat[data-cat="resilience"] { --cat-color: #c2683f; }
.align-pillar ul { display: flex; flex-direction: column; gap: 0.7rem; }
.align-pillar li { position: relative; padding-left: 1.5rem; font-weight: 500; color: var(--ink-soft); font-size: 0.96rem; }
.align-pillar li::before {
  content: ""; position: absolute; left: 0; top: 0.45em; width: 8px; height: 8px;
  border-radius: 2px; background: var(--cat-color, var(--canal)); transform: rotate(45deg);
}
.align-pillar:nth-child(1) li::before { background: var(--canal); }
.align-pillar:nth-child(2) li::before { background: #c79a3a; }
.align-pillar:nth-child(3) li::before { background: var(--moss); }
.align-pillar:nth-child(4) li::before { background: #c2683f; }

/* =====================================================
   11. IMAGE GALLERY
   ===================================================== */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; grid-auto-flow: dense; }
.gallery-item {
  position: relative; margin: 0; border-radius: var(--radius); overflow: hidden;
  cursor: zoom-in; box-shadow: var(--shadow-sm); aspect-ratio: 4/3;
}
.gallery-item--lg { grid-column: span 2; aspect-ratio: 16/9; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem 1.1rem 0.85rem;
  font-size: 0.86rem; font-weight: 500; color: var(--white);
  background: linear-gradient(transparent, rgba(20,40,33,0.78));
  opacity: 0; transform: translateY(8px); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.gallery-item:hover figcaption, .gallery-item:focus-within figcaption { opacity: 1; transform: none; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center;
  background: rgba(15,28,22,0.92); backdrop-filter: blur(6px); padding: clamp(1rem, 4vw, 3rem);
  opacity: 0; transition: opacity 0.3s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.open { opacity: 1; }
.lightbox-figure { margin: 0; max-width: 1100px; max-height: 90vh; display: flex; flex-direction: column; gap: 0.8rem; }
.lightbox-figure img { max-width: 100%; max-height: 82vh; object-fit: contain; border-radius: 10px; box-shadow: var(--shadow-md); }
.lightbox-figure figcaption { text-align: center; color: rgba(255,255,255,0.85); font-size: 0.92rem; font-style: italic; }
.lightbox-close {
  position: absolute; top: 1.2rem; right: 1.6rem; background: none; border: 0; color: var(--white);
  font-size: 2.4rem; line-height: 1; cursor: pointer; opacity: 0.8; transition: opacity 0.2s, transform 0.2s;
}
.lightbox-close:hover { opacity: 1; transform: scale(1.1); }

/* =====================================================
   CLOSING — coda + actions
   ===================================================== */
.closing-coda { margin-top: 0.4rem; margin-bottom: 2.4rem; font-family: var(--serif); font-style: italic; font-size: clamp(1.05rem, 2vw, 1.3rem); color: rgba(255,255,255,0.9); }
.closing-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* Footer tagline */
.footer-tag { font-size: 0.86rem; color: rgba(255,255,255,0.6); margin-top: 0.3rem; }

/* =====================================================
   LEAD-CAPTURE GATE
   ===================================================== */
html.gate-locked, html.gate-locked body { overflow: hidden; }
html.gate-locked .site-header,
html.gate-locked main,
html.gate-locked .site-footer { filter: blur(8px) brightness(0.94); pointer-events: none; user-select: none; }

.gate {
  position: fixed; inset: 0; z-index: 400; display: none;
  align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 2.5rem); overflow-y: auto;
  background: radial-gradient(circle at 30% 15%, rgba(31,91,110,0.55), rgba(20,40,33,0.85));
}
html.gate-locked .gate { display: flex; }

.gate-card {
  width: 100%; max-width: 460px; background: var(--paper);
  border-radius: var(--radius-lg); box-shadow: 0 30px 80px rgba(0,0,0,0.4);
  padding: clamp(1.8rem, 4vw, 2.6rem); margin: auto;
  animation: gateIn 0.5s var(--ease) both;
}
@keyframes gateIn { from { opacity: 0; transform: translateY(18px) scale(0.98); } to { opacity: 1; transform: none; } }

.gate-brand { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--forest); }
.gate-brand .brand-mark { color: var(--canal); display: inline-flex; }
.gate-eyebrow { margin-top: 1.1rem; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--canal); }
.gate-title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 4vw, 2.1rem); color: var(--forest); margin-top: 0.3rem; line-height: 1.1; }
.gate-intro { color: var(--muted); font-size: 0.98rem; margin-top: 0.6rem; line-height: 1.5; }

.gate-form { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.85rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label { font-size: 0.84rem; font-weight: 600; color: var(--ink-soft); }
.field .opt { font-weight: 400; color: var(--stone); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 1rem; padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--sand-deep); border-radius: 10px;
  background: var(--white); color: var(--ink); width: 100%;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--canal); box-shadow: 0 0 0 3px rgba(47,125,146,0.15);
}
.field textarea { resize: vertical; min-height: 52px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.gate-error { color: #b3402a; font-size: 0.88rem; font-weight: 500; margin: 0.1rem 0 0; }
.gate-submit { width: 100%; margin-top: 0.5rem; }
.gate-fineprint { font-size: 0.78rem; color: var(--stone); text-align: center; margin: 0.1rem 0 0; }

/* =====================================================
   PROFILE PAGE
   ===================================================== */
.profile-page { background: linear-gradient(180deg, var(--sand), var(--paper) 40%); min-height: 100vh; }
.profile-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.1rem var(--gutter); max-width: var(--maxw); margin-inline: auto;
}
.profile-header .brand { color: var(--forest); margin-right: 0; }
.profile-header .brand-mark { color: var(--canal); }

.profile-main { max-width: 620px; margin-inline: auto; padding: clamp(2rem, 6vw, 4.5rem) var(--gutter) 4rem; }
.profile-card {
  background: var(--white); border: 1px solid rgba(31,58,46,0.06);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  padding: clamp(1.8rem, 5vw, 3rem);
}
.profile-top { display: flex; align-items: center; gap: 1.3rem; margin-bottom: 2rem; }
.avatar-lg { width: 76px; height: 76px; font-size: 1.7rem; box-shadow: 0 0 0 3px rgba(47,125,146,0.16); flex: 0 0 auto; }
.profile-eyebrow { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--canal); }
.profile-name { font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 4vw, 2.2rem); color: var(--forest); line-height: 1.1; margin-top: 0.2rem; }
.profile-role-chip { display: inline-block; margin-top: 0.6rem; font-size: 0.8rem; font-weight: 600; color: var(--canal-deep); background: var(--sand); border-radius: 999px; padding: 0.3rem 0.85rem; }

.profile-details { display: flex; flex-direction: column; gap: 0; margin: 0 0 2rem; }
.pd-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.95rem 0; border-bottom: 1px solid var(--sand-deep); }
.pd-row:first-child { border-top: 1px solid var(--sand-deep); }
.pd-row dt { color: var(--stone); font-size: 0.92rem; font-weight: 500; margin: 0; }
.pd-row dd { color: var(--ink); font-weight: 500; margin: 0; text-align: right; word-break: break-word; }

.admin-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  background: linear-gradient(150deg, rgba(47,125,146,0.12), rgba(79,111,78,0.1));
  border: 1px solid rgba(47,125,146,0.3); border-radius: var(--radius);
  padding: 1rem 1.2rem; margin-bottom: 1.4rem;
}
.admin-banner p { color: var(--ink-soft); font-size: 0.92rem; margin-top: 0.25rem; }
.admin-banner-tag { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--canal-deep); }

.profile-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.profile-note { margin-top: 1.4rem; font-size: 0.82rem; color: var(--stone); font-style: italic; }

.profile-empty { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }
.profile-empty .avatar-lg { background: linear-gradient(150deg, var(--sage), var(--moss)); }
.profile-empty-copy { color: var(--muted); max-width: 36ch; }

@media (max-width: 480px) {
  .profile-top { flex-direction: column; align-items: flex-start; }
  .profile-actions .btn { flex: 1 1 auto; }
}

/* =====================================================
   ADMIN DASHBOARD
   ===================================================== */
.admin-page { background: var(--sand); min-height: 100vh; }

.admin-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: clamp(1rem,4vw,2.5rem); background: radial-gradient(circle at 30% 15%, rgba(31,91,110,0.5), rgba(20,40,33,0.85)); }
.admin-login-card { width: 100%; max-width: 420px; background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: clamp(1.8rem,4vw,2.6rem); }
.admin-login-card .field { margin-top: 1.3rem; }

.admin-header {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; padding: 0.9rem clamp(1rem,3vw,2rem);
  background: rgba(246,243,236,0.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sand-deep);
}
.admin-head-left { display: flex; align-items: center; gap: 0.9rem; }
.admin-header .brand { color: var(--forest); margin-right: 0; font-size: 1.05rem; }
.admin-header .brand-mark { color: var(--canal); }
.admin-tag { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--canal); background: var(--white); border: 1px solid var(--sand-deep); border-radius: 999px; padding: 0.3rem 0.7rem; }
.admin-head-right { display: flex; align-items: center; gap: 0.6rem; }
.admin-updated { font-size: 0.8rem; color: var(--stone); }

.admin-main { max-width: 1100px; margin-inline: auto; padding: clamp(1.5rem,3vw,2.5rem) clamp(1rem,3vw,2rem) 4rem; display: flex; flex-direction: column; gap: 1.25rem; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.kpi { background: var(--white); border: 1px solid rgba(31,58,46,0.06); border-radius: var(--radius); padding: 1.3rem 1.4rem; box-shadow: var(--shadow-sm); }
.kpi-label { font-size: 0.82rem; font-weight: 600; color: var(--stone); text-transform: uppercase; letter-spacing: 0.06em; }
.kpi-value { font-family: var(--serif); font-size: clamp(1.9rem,3.5vw,2.6rem); color: var(--forest); line-height: 1.05; margin-top: 0.35rem; }
.kpi-sub { font-size: 0.82rem; color: var(--canal); margin-top: 0.3rem; font-weight: 500; }

.admin-card { background: var(--white); border: 1px solid rgba(31,58,46,0.06); border-radius: var(--radius); padding: 1.4rem 1.5rem; box-shadow: var(--shadow-sm); }
.admin-card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.admin-card-head h2 { font-family: var(--serif); font-size: 1.2rem; color: var(--forest); }
.legend { display: flex; gap: 1rem; }
.legend-item { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; color: var(--stone); }
.sw { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.sw-visits { background: var(--canal-light); }
.sw-leads { background: var(--canal-deep); }

.chart { display: flex; align-items: flex-end; gap: clamp(2px, 0.7vw, 7px); height: 180px; }
.chart .col { flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
.chart .bar { width: 45%; min-height: 1px; border-radius: 3px 3px 0 0; transition: opacity 0.2s; }
.chart .col:hover .bar { opacity: 0.75; }
.bar-visits { background: var(--canal-light); }
.bar-leads { background: var(--canal-deep); }
.chart-empty { color: var(--stone); font-style: italic; font-size: 0.9rem; text-align: center; padding: 1rem 0; }

.admin-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.bars { display: flex; flex-direction: column; gap: 0.7rem; }
.bar-row { display: grid; grid-template-columns: 1fr 2.2fr auto; align-items: center; gap: 0.8rem; }
.bar-label { font-size: 0.9rem; color: var(--ink-soft); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { background: var(--sand); border-radius: 999px; height: 10px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--canal), var(--moss)); border-radius: 999px; }
.bar-count { font-size: 0.86rem; font-weight: 600; color: var(--pine); min-width: 1.6em; text-align: right; }

.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.admin-table th { text-align: left; font-weight: 600; color: var(--stone); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.5rem 0.8rem; border-bottom: 2px solid var(--sand-deep); white-space: nowrap; }
.admin-table td { padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--sand); color: var(--ink); }
.admin-table tr:hover td { background: var(--paper); }
.admin-table a { color: var(--canal-deep); }
.admin-table .muted { color: var(--stone); white-space: nowrap; }

@media (max-width: 880px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-two-col { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .kpi-grid { grid-template-columns: 1fr; }
}

/* =====================================================
   REVEAL ANIMATION
   ===================================================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
/* stagger children inside grids */
.value-grid .reveal, .program-grid .reveal, .modes-grid .reveal,
.islands-grid .reveal, .align-matrix .reveal, .gallery-grid .reveal { transition-delay: var(--d, 0ms); }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1040px) {
  .modes-grid { grid-template-columns: repeat(3, 1fr); }
  .islands-grid { grid-template-columns: repeat(2, 1fr); }
  .align-matrix { grid-template-columns: repeat(2, 1fr); }
  .partner-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 940px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .program-grid { grid-template-columns: repeat(2, 1fr); }
  .program-card--figure { grid-column: span 2; }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split-text { order: 0; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item--lg { grid-column: span 2; }
  .thesis-arrow { transform: rotate(90deg); width: 50px; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .value-grid, .program-grid, .modes-grid, .islands-grid, .align-matrix, .idea-cards { grid-template-columns: 1fr; }
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .program-card--figure { grid-column: span 1; }
  .hero-actions .btn { flex: 1 1 auto; }
  .flow-step { min-width: 0; flex: 1 1 40%; }
  .flow-step:not(:last-child)::after { display: none; }
  .figure--wide img { aspect-ratio: 16/10; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item, .gallery-item--lg { grid-column: span 1; aspect-ratio: 16/10; }
  .closing-actions .btn { flex: 1 1 auto; }
}
