/* ==========================================================================
   Planetary Solutions, PLLC — site styles
   ========================================================================== */

:root {
  --bg: #030308;
  --bg-elev: #08090f;
  --bg-card: #0c0d15;
  --accent: #f5d34a;
  --accent-blue: #49d6ff;
  --text: #ffffff;
  --text-muted: #b8c0cf;
  --text-dim: #8590a3;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --container: 1440px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-soft: 0 30px 80px -30px rgba(73, 214, 255, 0.18);
  --shadow-card: 0 20px 50px -25px rgba(0, 0, 0, 0.8);

  --font-serif: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-sans: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Manrope", "Nunito Sans", system-ui, -apple-system, sans-serif;
}

@font-face {
  font-family: "PSLogo";
  src: url("fonts/ps-logo.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.022) 1px, transparent 0);
  background-size: 32px 32px;
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* ===== Background FX: animated light pools + particle canvas ===== */
.bg-fx {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}
.bg-glow-1 {
  width: 60vw;
  max-width: 900px;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(73, 214, 255, 0.18) 0%, rgba(73, 214, 255, 0) 65%);
  top: -10%;
  left: -15%;
  animation: drift1 38s ease-in-out infinite alternate;
}
.bg-glow-2 {
  width: 55vw;
  max-width: 780px;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(245, 211, 74, 0.13) 0%, rgba(245, 211, 74, 0) 65%);
  bottom: -15%;
  right: -10%;
  animation: drift2 46s ease-in-out infinite alternate;
}
.bg-glow-3 {
  width: 45vw;
  max-width: 620px;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(123, 90, 255, 0.10) 0%, rgba(123, 90, 255, 0) 65%);
  top: 40%;
  left: 50%;
  animation: drift3 54s ease-in-out infinite alternate;
}
@keyframes drift1 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30%, 25%) scale(1.25); }
}
@keyframes drift2 {
  0%   { transform: translate(0, 0) scale(1.1); }
  100% { transform: translate(-25%, -20%) scale(0.85); }
}
@keyframes drift3 {
  0%   { transform: translate(-50%, -50%) scale(1); }
  100% { transform: translate(-30%, -65%) scale(1.3); }
}
#bg-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .bg-glow { animation: none !important; }
}

/* ensure content sits above bg-fx */
.nav, .hero, .section, .footer { position: relative; z-index: 1; }

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

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color 160ms ease, opacity 160ms ease;
}
a:hover { color: var(--accent); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 3vw, 48px);
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 0.5em;
}
.hero h1 { font-weight: 600; }

h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.muted { color: var(--text-muted); }
.dim { color: var(--text-dim); }
.center { text-align: center; }

p { margin: 0 0 1em; }

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  background: rgba(5, 8, 16, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background 220ms ease, border-color 220ms ease, padding 220ms ease;
}
.nav.scrolled {
  background: rgba(5, 8, 16, 0.85);
  border-bottom-color: var(--border);
  padding: 12px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(0.95rem, 1vw, 1.1rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-brand img {
  width: clamp(36px, 2.4vw, 46px);
  height: clamp(36px, 2.4vw, 46px);
  border-radius: 50%;
}
.nav-brand-sub {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  margin-top: 2px;
  font-weight: 400;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text);
  font-size: clamp(0.9rem, 1vw, 1.05rem);
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 8px;
  position: relative;
}
.nav-links a:hover { color: var(--accent); background: rgba(255,255,255,0.04); }
.nav-links a.active { color: var(--accent); }
.nav-cta {
  background: var(--accent);
  color: #0a0a0a !important;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  margin-left: 8px;
}
.nav-links a.nav-cta:hover { background: #fbe07a; color: #0a0a0a; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed;
    top: 72px;
    right: 16px;
    left: 16px;
    flex-direction: column;
    align-items: stretch;
    background: rgba(8, 12, 24, 0.96);
    backdrop-filter: blur(18px);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 12px;
    gap: 4px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 220ms ease, opacity 220ms ease;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a { padding: 14px 16px; }
  .nav-cta { margin: 6px 0 0; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.btn-primary {
  background: var(--accent);
  color: #0a0a0a;
}
.btn-primary:hover { background: #fbe07a; transform: translateY(-1px); color: #0a0a0a; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: rgba(255,255,255,0.06); color: var(--text); border-color: var(--accent); }
.btn-arrow::after {
  content: "→";
  transition: transform 160ms ease;
}
.btn-arrow:hover::after { transform: translateX(3px); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(55% 45% at 50% 48%, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.35) 45%, rgba(0, 0, 0, 0) 78%),
    linear-gradient(180deg, rgba(5,8,16,0.4) 0%, rgba(5,8,16,0.15) 35%, rgba(5,8,16,0.7) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.hero-content--center {
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.hero-stack {
  display: inline-block;
  text-align: left;
  max-width: 100%;
}
.hero-stack .hero-brand {
  text-align: center;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6.8vw, 5.6rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin-bottom: 22px;
  text-wrap: balance;
  paint-order: stroke fill;
  -webkit-text-stroke: 1px rgba(0, 0, 0, 0.55);
}

/* Home main heading */
.hero h1.hero-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 6.5vw, 5rem);
  letter-spacing: -0.025em;
  line-height: 1.05;
  text-transform: none;
  color: var(--text);
  margin-bottom: 32px;
  text-wrap: balance;
  text-align: center;
}
.hero-divider {
  display: block;
  width: 72px;
  height: 2px;
  background: var(--accent);
  margin: 0 0 28px;
  border-radius: 2px;
  box-shadow: 0 0 24px rgba(245, 211, 74, 0.55);
}
.hero p.hero-sub {
  font-family: var(--font-sans);
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.hero p.hero-tagline {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  font-style: italic;
  font-weight: 400;
  color: var(--text);
  max-width: 640px;
  margin-bottom: 38px;
  line-height: 1.35;
  paint-order: stroke fill;
  -webkit-text-stroke: 0.6px rgba(0, 0, 0, 0.45);
}
.hero p.lede {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  color: var(--text);
  max-width: 620px;
  margin-bottom: 18px;
  font-weight: 500;
}
.hero p.lede:last-of-type { margin-bottom: 36px; }
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* compact hero for inner pages — same height as home, slightly different headline scale */
.hero.hero-compact { min-height: 100vh; min-height: 100dvh; padding: 140px 0 80px; }
.hero.hero-compact h1 { font-size: clamp(2.8rem, 6.5vw, 5.2rem); }
.hero.hero-compact .hero-divider { margin-bottom: 8px; }

/* ===== Sections ===== */
.section {
  padding: 100px 0;
  position: relative;
}
.section-tight { padding: 70px 0; }

.section-header {
  max-width: 720px;
  margin: 0 auto 60px;
  text-align: center;
}
.section-header.left { text-align: left; margin-left: 0; }

/* ===== Cards / Services ===== */
.grid {
  display: grid;
  gap: 24px;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 880px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-elev) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(245, 211, 74, 0.1);
  border: 1px solid rgba(245, 211, 74, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--accent);
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--text-muted); margin: 0; }

/* ===== FAQ Accordion ===== */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
}
.faq {
  border-top: 1px solid var(--border);
  padding: 4px 0;
}
.faq:last-child { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 26px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 500;
  color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-sans);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--accent);
  transition: transform 220ms ease;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq-body {
  padding: 0 0 26px;
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 720px;
}
.faq-body p { margin: 0 0 0.9em; }
.faq-body p:last-child { margin-bottom: 0; }
.faq-body ul { margin: 0 0 0.9em; padding-left: 22px; }
.faq-body li { margin-bottom: 6px; }

/* ===== Services Accordion — matches FAQ style ===== */
.services-list {
  max-width: 820px;
  margin: 0 auto;
}
.service {
  border-top: 1px solid var(--border);
  padding: 4px 0;
}
.service:last-child { border-bottom: 1px solid var(--border); }
.service summary {
  list-style: none;
  cursor: pointer;
  padding: 26px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 500;
  color: var(--text);
}
.service summary::-webkit-details-marker { display: none; }
.service summary h3 {
  margin: 0;
  font-family: inherit;
  font-weight: inherit;
  font-size: inherit;
  color: inherit;
  line-height: 1.3;
}
.service summary::after {
  content: "+";
  font-family: var(--font-sans);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--accent);
  transition: transform 220ms ease;
  flex-shrink: 0;
}
.service[open] summary::after { transform: rotate(45deg); }
.service-chevron { display: none; }
.service-body {
  padding: 0 0 26px;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.75;
  max-width: 720px;
}
.service-body p { margin: 0 0 0.9em; }
.service-body p:last-child { margin-bottom: 0; }

/* ===== Publications ===== */
.publications {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 800px) { .publications { grid-template-columns: 1fr; } }
.pub-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 22px;
  align-items: start;
  color: inherit;
  text-decoration: none;
  position: relative;
}
.pub-card:hover {
  border-color: rgba(245, 211, 74, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -20px rgba(245, 211, 74, 0.15);
}
.pub-card:hover h4 { color: var(--accent); }
.pub-card h4 { transition: color 220ms ease; }
.pub-card::after {
  content: "↗";
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 0.95rem;
  color: var(--text-dim);
  opacity: 0;
  transition: opacity 220ms ease, color 220ms ease, transform 220ms ease;
}
.pub-card:hover::after {
  opacity: 1;
  color: var(--accent);
  transform: translate(2px, -2px);
}
.pub-image {
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  aspect-ratio: 3 / 4;
}
.pub-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pub-card h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.18rem;
  margin-bottom: 12px;
  color: var(--text);
  line-height: 1.3;
}
.pub-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.6;
}
@media (max-width: 540px) {
  .pub-card { grid-template-columns: 1fr; }
  .pub-image { max-width: 180px; margin: 0 auto; }
}

/* ===== Testimonials ===== */
.testimonials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}
@media (max-width: 800px) { .testimonials { grid-template-columns: 1fr; } }
.quote {
  background: linear-gradient(180deg, rgba(245,211,74,0.05), rgba(73,214,255,0.03));
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 28px 30px;
  font-style: italic;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.55;
}
.quote::before {
  content: "“";
  display: block;
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--accent);
  line-height: 0.6;
  margin-bottom: 8px;
  opacity: 0.7;
}

/* ===== Founder ===== */
.founder-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 880px) { .founder-layout { grid-template-columns: 1fr; gap: 36px; } }
.founder-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  position: sticky;
  top: 100px;
}
.founder-photo img { width: 100%; height: auto; }
@media (max-width: 880px) {
  .founder-photo { position: static; max-width: 320px; }
}

.bio-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 24px;
  color: var(--text);
}
.bio-section { margin-bottom: 48px; }
.bio-section:last-child { margin-bottom: 0; }
.bio-section h3 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
}
.bio-section p, .bio-section li { color: var(--text-muted); }
.bio-section ul { padding-left: 18px; margin: 0; }
.bio-section li { margin-bottom: 8px; }

.universities {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  align-items: center;
  padding: 36px;
  background: var(--bg-elev);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
/* Integrated variant — used inside the Testimonials section to bridge into the quotes */
.universities--integrated {
  background: transparent;
  border: none;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 28px 16px;
  max-width: 760px;
  margin: -8px auto 52px;
  gap: 40px;
}
@media (max-width: 700px) { .universities { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
.universities img {
  width: 100%;
  max-height: 80px;
  object-fit: contain;
  opacity: 0.75;
  filter: grayscale(0.2);
  transition: opacity 220ms ease, filter 220ms ease, transform 220ms ease;
}
.universities img:hover { opacity: 1; filter: none; }
.universities img[src*="yale"] { transform: scale(1.28); }
.universities img[src*="uconn"] { transform: scale(1.26); }
.universities img[src*="yale"]:hover { transform: scale(1.32); }
.universities img[src*="uconn"]:hover { transform: scale(1.30); }

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-info--horizontal {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}
.contact-info--horizontal .contact-row {
  flex: 1 1 240px;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 28px 24px;
}
.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 220ms ease;
}
.contact-row:hover { border-color: var(--border-strong); }
.contact-row .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-dim);
  margin-bottom: 4px;
}
.contact-row .value { color: var(--text); font-weight: 500; word-break: break-word; }
.contact-row a { color: var(--accent-blue); }

@media (max-width: 720px) {
  .contact-info--horizontal { flex-direction: column; }
}

form.contact-form {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  padding: 14px 16px;
  border-radius: 10px;
  transition: border-color 160ms ease;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-group textarea { min-height: 140px; resize: vertical; }

/* ===== Inner page header (no big hero) ===== */
.gallery-page,
.page-section {
  padding: 160px 0 120px;
  position: relative;
  z-index: 1;
}

/* Image-backed page header — full-viewport hero with title + lede centered vertically */
.page-section--hero {
  height: 100vh !important;
  height: 100dvh !important;
  min-height: 640px !important;
  padding: 140px 0 80px;
  display: flex !important;
  align-items: center !important;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.page-section--hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 80% at 50% 70%, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 75%),
    linear-gradient(180deg, rgba(5,8,16,0.35) 0%, rgba(5,8,16,0.15) 40%, rgba(5,8,16,0.85) 100%);
  pointer-events: none;
}
.page-section--hero .container { width: 100%; position: relative; z-index: 1; }
.page-section--hero .page-header {
  margin-bottom: 0;
  border-bottom-color: rgba(255,255,255,0.35);
}
.page-section--hero .page-header h1 {
  color: #fff;
  font-size: clamp(3.4rem, 7.5vw, 6.4rem);
  letter-spacing: -0.035em;
}
.page-header.page-header--centered { justify-content: center; text-align: center; }
.page-header.page-header--centered .page-title-block { justify-content: center; }
.page-section--hero .page-header .lede {
  color: rgba(255,255,255,0.92);
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  max-width: 540px;
}

/* Contact variant — keep hero earth bg, header + horizontal strip stacked, centered vertically */
.page-section--contact { align-items: stretch !important; }
.page-section--contact .container { display: flex; flex-direction: column; justify-content: center; gap: 56px; }

.contact-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}
.contact-item h2 {
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.contact-item a {
  color: #fff;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  text-decoration: none;
  word-break: break-word;
  transition: color 180ms ease;
}
.contact-item a:hover { color: var(--accent); }

@media (max-width: 720px) {
  .contact-strip { grid-template-columns: 1fr; gap: 24px; text-align: left; }
  .page-section--contact .container { gap: 32px; }
}
.gallery-page-header,
.page-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 28px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.gallery-page-header .gallery-title-block,
.page-header .page-title-block { display: flex; align-items: baseline; gap: 18px; }
.gallery-page-header h1,
.page-header h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0;
}
.gallery-page-header .count,
.page-header .count {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}
.gallery-page-header .lede,
.page-header .lede {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 480px;
  text-align: right;
  margin: 0;
  line-height: 1.55;
}
/* When a plain .page-section sits above a .section, kill top padding so spacing doesn't double up.
   Hero-variant .page-section--hero keeps the gap so content breathes after the full-viewport image. */
.page-section:not(.page-section--hero) + .section { padding-top: 0; }

@media (max-width: 720px) {
  .gallery-page,
  .page-section { padding: 130px 0 80px; }
  .gallery-page-header,
  .page-header { flex-direction: column; gap: 14px; margin-bottom: 32px; }
  .gallery-page-header .lede,
  .page-header .lede { text-align: left; }
}

/* ===== Gallery ===== */
.gallery-grid {
  column-count: 3;
  column-gap: 40px;
}
@media (max-width: 880px) { .gallery-grid { column-count: 2; column-gap: 32px; } }
@media (max-width: 520px) { .gallery-grid { column-count: 1; } }

.gallery-item {
  display: block;
  cursor: pointer;
  margin: 0 0 40px;
  break-inside: avoid;
  page-break-inside: avoid;
}
.gallery-thumb {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  transition: border-color 220ms ease, box-shadow 220ms ease;
  line-height: 0;
}
.gallery-item:hover .gallery-thumb {
  border-color: var(--border-strong);
  box-shadow: 0 16px 32px -16px rgba(0, 0, 0, 0.6);
}
.gallery-thumb img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 500ms ease;
}
.gallery-item:hover .gallery-thumb img { transform: scale(1.03); }

.gallery-item.is-rotated .gallery-thumb {
  aspect-ratio: 3 / 4;
}
.gallery-item.is-rotated .gallery-thumb img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 133.3333%;
  height: auto;
  max-width: none;
  transform: translate(-50%, -50%) rotate(90deg);
}
.gallery-item.is-rotated:hover .gallery-thumb img {
  transform: translate(-50%, -50%) rotate(90deg) scale(1.03);
}
.gallery-caption {
  margin: 14px 4px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}
.gallery-item .placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: var(--text-dim);
  font-size: 0.85rem;
}
.gallery-item .placeholder svg { width: 32px; height: 32px; opacity: 0.4; }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.open { display: flex; flex-direction: column; gap: 18px; }
.lightbox img { max-width: 90vw; max-height: 80vh; border-radius: 8px; }
.lightbox.is-rotated img {
  max-width: 80vh;
  max-height: 90vw;
  transform: rotate(90deg);
  transform-origin: center;
}
.lightbox-caption {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  text-align: center;
  max-width: 720px;
  padding: 0 16px;
  line-height: 1.55;
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.3rem;
}

/* ===== CTA Strip ===== */
.cta-strip {
  background: linear-gradient(135deg, rgba(245,211,74,0.08), rgba(73,214,255,0.06));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 60px 48px;
  text-align: center;
}
.cta-strip h2 { margin-bottom: 14px; }
.cta-strip p { color: var(--text-muted); margin-bottom: 28px; }

/* ===== Footer ===== */
.footer {
  padding: 60px 0 36px;
  border-top: 1px solid var(--border);
  margin-top: 100px;
  color: var(--text-dim);
  font-size: 0.9rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a { color: var(--text-muted); }

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
/* Hero/header content is always in viewport — don't gate it behind JS-driven reveal */
.page-section--hero .reveal,
.page-section--hero .contact-strip,
.gallery-page-header.reveal,
.hero .reveal {
  opacity: 1 !important;
  transform: none !important;
}

/* ===== Intro link banner ===== */
/* Cinematic intro CTA — old Squarespace primary-button style: large, yellow, centered */
.intro-banner {
  display: block;
  width: fit-content;
  margin: 0 auto 28px;
  padding: 16px 38px;
  background: var(--accent);
  color: #0a0a0a;
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  transition: background 220ms ease, transform 220ms ease, box-shadow 220ms ease;
  box-shadow: 0 10px 30px -10px rgba(245, 211, 74, 0.45);
}
.intro-banner:hover {
  background: #fbe07a;
  color: #0a0a0a;
  transform: translateY(-1px);
  box-shadow: 0 14px 36px -10px rgba(245, 211, 74, 0.6);
}
