/* =============================================
   PLEASANTS PRODUCTIONS — Design Tokens & Styles
   Dark cinematic real estate photography portfolio
   ============================================= */

/* --- Type Scale (fluid) --- */
:root {
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(3rem,     0.5rem  + 7vw,    8rem);

  /* --- Spacing (4px base) --- */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* --- Radius --- */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* --- Transitions --- */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);

  /* --- Content widths --- */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;

  /* --- Fonts --- */
  --font-display: 'Cormorant', 'Georgia', serif;
  --font-body: 'Switzer', 'Helvetica Neue', sans-serif;
}

/* =============================================
   COLOR — Dark cinematic palette
   Deep charcoals, warm whites, gold accent
   ============================================= */

:root, [data-theme="dark"] {
  --color-bg:             #0a0a0a;
  --color-surface:        #111111;
  --color-surface-2:      #1a1a1a;
  --color-surface-offset: #141414;
  --color-divider:        #222222;
  --color-border:         #2a2a2a;

  --color-text:           #e8e4de;
  --color-text-muted:     #8a8680;
  --color-text-faint:     #5a5750;
  --color-text-inverse:   #0a0a0a;

  --color-primary:        #c9a96e;
  --color-primary-hover:  #dabb80;
  --color-primary-active: #b89558;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-md: 0 4px 12px oklch(0 0 0 / 0.4);
  --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.5);
}

[data-theme="light"] {
  --color-bg:             #f5f3ef;
  --color-surface:        #faf8f5;
  --color-surface-2:      #ffffff;
  --color-surface-offset: #edeae5;
  --color-divider:        #d8d4ce;
  --color-border:         #ccc8c0;

  --color-text:           #1a1816;
  --color-text-muted:     #706c66;
  --color-text-faint:     #a8a49e;
  --color-text-inverse:   #f5f3ef;

  --color-primary:        #96743a;
  --color-primary-hover:  #7d5f2e;
  --color-primary-active: #654c24;

  --shadow-sm: 0 1px 2px oklch(0.2 0.01 80 / 0.06);
  --shadow-md: 0 4px 12px oklch(0.2 0.01 80 / 0.08);
  --shadow-lg: 0 12px 32px oklch(0.2 0.01 80 / 0.12);
}

/* System preference fallback */
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --color-bg:             #f5f3ef;
    --color-surface:        #faf8f5;
    --color-surface-2:      #ffffff;
    --color-surface-offset: #edeae5;
    --color-divider:        #d8d4ce;
    --color-border:         #ccc8c0;
    --color-text:           #1a1816;
    --color-text-muted:     #706c66;
    --color-text-faint:     #a8a49e;
    --color-text-inverse:   #f5f3ef;
    --color-primary:        #96743a;
    --color-primary-hover:  #7d5f2e;
    --color-primary-active: #654c24;
    --shadow-sm: 0 1px 2px oklch(0.2 0.01 80 / 0.06);
    --shadow-md: 0 4px 12px oklch(0.2 0.01 80 / 0.08);
    --shadow-lg: 0 12px 32px oklch(0.2 0.01 80 / 0.12);
  }
}

/* =============================================
   HEADER / NAV
   ============================================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-4) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: oklch(from var(--color-bg) l c h / 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
}

.logo-img {
  height: 48px;
  width: auto;
}

[data-theme="light"] .logo-img {
  filter: invert(1);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .logo-img {
    filter: invert(1);
  }
}

.logo-text {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-text-muted);
  transition: color var(--transition-interactive);
}

.nav-links a:hover {
  color: var(--color-text);
}

.nav-links a.active {
  color: var(--color-primary);
}

.theme-toggle {
  padding: var(--space-2);
  color: var(--color-text-muted);
  transition: color var(--transition-interactive);
}

.theme-toggle:hover {
  color: var(--color-text);
}

/* Mobile hamburger */
.mobile-toggle {
  display: none;
  padding: var(--space-2);
  color: var(--color-text);
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--color-bg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  text-decoration: none;
  color: var(--color-text);
  letter-spacing: 0.05em;
}

/* Mirror desktop styling: italic + gold for Learn in the mobile menu */
.mobile-nav a.nav-learn {
  font-style: italic;
  color: var(--color-primary);
  font-size: var(--text-lg);
  letter-spacing: 0.08em;
}

.mobile-nav-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-6);
  padding: var(--space-2);
  color: var(--color-text);
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
}

/* =============================================
   HERO SECTION
   ============================================= */

.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: var(--space-16) var(--space-6) var(--space-12);
}

.hero-slider {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    oklch(0 0 0 / 0.75) 0%,
    oklch(0 0 0 / 0.3) 40%,
    oklch(0 0 0 / 0.15) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--content-wide);
  width: 100%;
  margin-inline: auto;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 300;
  color: #ffffff;
  line-height: 1.05;
  margin-bottom: var(--space-4);
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 300;
  color: oklch(1 0 0 / 0.7);
  max-width: 48ch;
  line-height: 1.6;
}

/* Slide indicators */
.hero-indicators {
  position: absolute;
  bottom: var(--space-8);
  right: var(--space-8);
  z-index: 3;
  display: flex;
  gap: var(--space-2);
}

.hero-indicator {
  width: 32px;
  height: 2px;
  background: oklch(1 0 0 / 0.3);
  border: none;
  cursor: pointer;
  transition: background 0.3s var(--ease-out), width 0.3s var(--ease-out);
}

.hero-indicator.active {
  background: #ffffff;
  width: 48px;
}

/* =============================================
   SECTION SHARED
   ============================================= */

.section {
  padding: clamp(var(--space-12), 8vw, var(--space-24)) var(--space-6);
}

.section-inner {
  max-width: var(--content-wide);
  margin-inline: auto;
}

.section-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
  max-width: none;
}

/* When a section is center-aligned, center the eyebrow itself as a block */
.contact-section .section-label,
.section[style*="text-align:center"] .section-label {
  width: fit-content;
  margin-inline: auto;
}

/* Portfolio bottom CTA — quiet text link, not a button */
.portfolio-cta {
  text-align: center;
  margin-top: var(--space-10);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-soft, var(--color-text));
  letter-spacing: 0.01em;
  max-width: none;
}
.portfolio-cta em {
  font-style: italic;
  opacity: 0.75;
  margin-right: 0.35em;
}
.portfolio-cta a {
  color: var(--color-primary);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: opacity 0.2s ease;
}
.portfolio-cta a:hover,
.portfolio-cta a:focus {
  opacity: 0.7;
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 300;
  color: var(--color-text);
  margin-bottom: var(--space-8);
  line-height: 1.1;
}

.section-divider {
  width: 48px;
  height: 1px;
  background: var(--color-primary);
  margin-bottom: var(--space-8);
}

/* =============================================
   PORTFOLIO GRID
   ============================================= */

.portfolio-grid {
  display: grid;
  gap: var(--space-4);
}

/* Featured grid — 2 columns on tablet/desktop, 1 column on mobile */
.portfolio-grid--featured {
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16/10;
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.portfolio-card:hover img {
  transform: scale(1.03);
}

.portfolio-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    oklch(0 0 0 / 0.7) 0%,
    oklch(0 0 0 / 0) 50%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-6);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}

.portfolio-card:hover .portfolio-card-overlay {
  opacity: 1;
}

.portfolio-card-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  color: #ffffff;
  margin-bottom: var(--space-1);
}

.portfolio-card-meta {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  color: oklch(1 0 0 / 0.6);
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .portfolio-grid--featured {
    grid-template-columns: 1fr;
  }
  .portfolio-card-overlay {
    opacity: 1;
  }
}

/* =============================================
   PROJECT MODAL / LIGHTBOX
   ============================================= */

.project-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--color-bg);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.project-modal.open {
  display: block;
}

.project-modal-close {
  position: fixed;
  top: var(--space-4);
  right: var(--space-6);
  z-index: 210;
  padding: var(--space-2);
  color: var(--color-text);
  font-size: var(--text-lg);
  transition: color var(--transition-interactive);
}

.project-modal-close:hover {
  color: var(--color-primary);
}

.project-hero {
  width: 100%;
  aspect-ratio: 21/9;
  object-fit: cover;
}

.project-content {
  max-width: var(--content-default);
  margin-inline: auto;
  padding: var(--space-12) var(--space-6);
}

.project-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 300;
  margin-bottom: var(--space-2);
}

.project-location {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-8);
}

.project-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  margin-bottom: var(--space-8);
  overflow: hidden;
  border-radius: var(--radius-md);
}

.project-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.project-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.project-gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

@media (max-width: 768px) {
  .project-gallery {
    grid-template-columns: 1fr;
  }
  .project-hero {
    aspect-ratio: 16/9;
  }
}

/* =============================================
   FEATURED FILMS SECTION (YouTube)
   ============================================= */

.films-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

@media (min-width: 1024px) {
  .films-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.film-card {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.film-card-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.film-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.film-card:hover .film-card-thumb img {
  transform: scale(1.05);
}

.film-card-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: oklch(0 0 0 / 0.6);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
  pointer-events: none;
}

.film-card:hover .film-card-play {
  opacity: 1;
}

.film-card-play svg {
  width: 20px;
  height: 20px;
  fill: #ffffff;
  margin-left: 2px;
}

.film-card-info {
  padding: var(--space-4);
}

.film-card-title {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.film-card-views {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

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

/* =============================================
   ABOUT SECTION
   ============================================= */

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-12);
  align-items: start;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.about-text p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  line-height: 1.7;
}

.about-text p:first-of-type {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text);
  line-height: 1.5;
}

.about-stats {
  display: flex;
  gap: var(--space-10);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
}

.stat-item {
  text-align: left;
}

.stat-number {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--color-primary);
}

.stat-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: var(--space-1);
}

@media (max-width: 768px) {
  .about-layout {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .about-stats {
    gap: var(--space-6);
  }
}

/* =============================================
   SERVICES SECTION
   ============================================= */

.services-list {
  display: grid;
  gap: 0;
}

.service-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--color-divider);
}

.service-number {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-primary);
  opacity: 0.5;
  min-width: 2.5rem;
}

.service-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--color-text);
}

.service-desc {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-align: right;
  max-width: 32ch;
}

@media (max-width: 768px) {
  .service-item {
    grid-template-columns: auto 1fr;
    gap: var(--space-3);
  }
  .service-desc {
    grid-column: 2;
    text-align: left;
  }
}

/* =============================================
   CONTACT / CTA SECTION
   ============================================= */

.contact-section {
  text-align: center;
}

.contact-section .section-inner {
  max-width: var(--content-narrow);
}

.contact-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 300;
  margin-bottom: var(--space-4);
}

.contact-text {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  margin-inline: auto;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-8);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-text-inverse);
  background: var(--color-primary);
  border: none;
  transition: background var(--transition-interactive),
              transform var(--transition-interactive),
              box-shadow var(--transition-interactive);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-8);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-text);
  background: transparent;
  border: 1px solid var(--color-border);
  transition: border-color var(--transition-interactive),
              color var(--transition-interactive);
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: var(--space-8);
  margin-top: var(--space-8);
}

/* Mobile: stack contact items vertically so phone/email/location aren't crammed */
@media (max-width: 640px) {
  .contact-links {
    flex-direction: column;
    align-items: center;
    gap: var(--space-5);
  }
  .contact-link-value a {
    font-size: var(--text-base);
  }
}

.contact-link-item {
  text-align: center;
}

.contact-link-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-1);
}

.contact-link-value a {
  font-size: var(--text-sm);
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition-interactive);
}

.contact-link-value a:hover {
  color: var(--color-primary);
}

/* =============================================
   FOOTER
   ============================================= */

.site-footer {
  padding: var(--space-8) var(--space-6);
  border-top: 1px solid var(--color-divider);
}

.footer-inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-left {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.footer-socials {
  display: flex;
  gap: var(--space-4);
}

.footer-socials a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-interactive);
}

.footer-socials a:hover {
  color: var(--color-primary);
}

.footer-socials svg {
  width: 20px;
  height: 20px;
}

.footer-right {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.footer-right a {
  color: var(--color-text-faint);
  text-decoration: none;
  transition: color var(--transition-interactive);
}

.footer-right a:hover {
  color: var(--color-text-muted);
}

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }
}

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */

.fade-in {
  opacity: 1;
}

@supports (animation-timeline: scroll()) {
  .fade-in {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 100%;
  }
}

@keyframes reveal-fade {
  to { opacity: 1; }
}

/* Fallback for browsers without scroll-driven animations */
@supports not (animation-timeline: scroll()) {
  .fade-in {
    opacity: 0;
    transition: opacity 0.8s var(--ease-out);
  }
  .fade-in.visible {
    opacity: 1;
  }
}

/* =============================================
   VIDEO MODAL
   ============================================= */

.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: oklch(0 0 0 / 0.9);
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
}

.video-modal.open {
  display: flex;
}

.video-modal-inner {
  position: relative;
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16/9;
}

.video-modal-inner iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius-md);
}

.video-modal-close {
  position: absolute;
  top: calc(-1 * var(--space-10));
  right: 0;
  padding: var(--space-2);
  color: #ffffff;
  font-size: var(--text-lg);
  cursor: pointer;
}

/* Project Modal — Go Back button */
.project-modal-back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin: var(--space-4) auto var(--space-12);
  padding: var(--space-3) var(--space-6);
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-interactive);
  border-radius: var(--radius-sm);
}

.project-modal-back:hover {
  background: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-text);
}

.project-modal-back svg {
  width: 18px;
  height: 18px;
}

.project-modal-back-wrap {
  text-align: center;
  padding: 0 var(--space-6);
}

/* Project description text */
.project-description {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  max-width: 720px;
}

.project-description p {
  margin-bottom: var(--space-4);
}

.project-description p:last-child {
  margin-bottom: 0;
}

/* =============================================
   COACHING SECTION
   ============================================= */

.coaching-section {
  /* uses surface bg via inline style */
}

.coaching-subhead {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 300;
  font-style: italic;
  text-align: center;
  color: var(--color-text-muted);
  max-width: 720px;
  margin: 0 auto var(--space-10);
  line-height: 1.5;
}

.coaching-form {
  max-width: 640px;
  margin: 0 auto var(--space-12);
}

.coaching-form--bottom {
  margin-top: var(--space-12);
  margin-bottom: 0;
}

.coaching-form-row {
  display: flex;
  gap: var(--space-3);
  align-items: stretch;
  flex-wrap: wrap;
}

.coaching-form input[type="email"] {
  flex: 1 1 240px;
  min-width: 0;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 0;
  transition: border-color var(--transition-interactive);
}

.coaching-form input[type="email"]:focus {
  outline: none;
  border-color: var(--color-primary);
}

.coaching-form input[type="email"]::placeholder {
  color: var(--color-text-faint);
}

.coaching-form .btn-primary {
  flex: 0 0 auto;
  border-radius: 0;
  cursor: pointer;
}

.coaching-form-note {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-align: center;
  margin-top: var(--space-4);
  line-height: 1.6;
}

.hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.coaching-body {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
}

.coaching-block {
  border-left: 2px solid var(--color-divider);
  padding-left: var(--space-6);
}

.coaching-h3 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--space-4);
  line-height: 1.3;
}

.coaching-block p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: var(--space-3);
}

.coaching-block p:last-child {
  margin-bottom: 0;
}

.coaching-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.coaching-list li {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.75;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-divider);
}

.coaching-list li:last-child {
  border-bottom: none;
}

.coaching-list strong {
  color: var(--color-text);
  font-weight: 500;
}

/* Differentiated nav style for Learn item -- side door, but visible */
.nav-links li:has(.nav-learn) {
  margin-left: var(--space-2);
}

.nav-learn {
  font-style: italic;
  color: var(--color-primary);
}

.nav-learn:hover {
  color: var(--color-primary);
  opacity: 0.85;
}

/* =============================================
   LISTING EDIT (above footer)
   ============================================= */

.listing-edit {
  padding: var(--space-10) var(--space-6);
  background: var(--color-bg);
  border-top: 1px solid var(--color-divider);
}

.listing-edit-inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-8);
  align-items: center;
}

.listing-edit-text {
  max-width: 560px;
}

.listing-edit-label {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-2);
  letter-spacing: 0.02em;
}

.listing-edit-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

.listing-edit-form {
  display: flex;
  gap: var(--space-2);
  align-items: stretch;
}

.listing-edit-form input[type="email"] {
  flex: 0 1 260px;
  min-width: 0;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 0;
  transition: border-color var(--transition-interactive);
}

.listing-edit-form input[type="email"]:focus {
  outline: none;
  border-color: var(--color-primary);
}

.listing-edit-form input[type="email"]::placeholder {
  color: var(--color-text-faint);
}

.listing-edit-form .btn-secondary {
  flex: 0 0 auto;
  cursor: pointer;
}

/* Mobile */
@media (max-width: 768px) {
  .coaching-form-row {
    flex-direction: column;
  }
  .coaching-form input[type="email"],
  .coaching-form .btn-primary {
    width: 100%;
    justify-content: center;
  }
  .listing-edit-inner {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .listing-edit-form {
    flex-direction: column;
  }
  .listing-edit-form input[type="email"],
  .listing-edit-form .btn-secondary {
    flex: 0 0 auto;
    width: 100%;
    height: 52px;
    justify-content: center;
  }
  .coaching-block {
    padding-left: var(--space-4);
  }
}

/* =============================================
   LEARN PAGE (/learn/)
   Standalone movement-landing page
   ============================================= */

.learn-page {
  background: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.learn-main {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height, 80px) + var(--space-12)) var(--space-6) var(--space-12);
  overflow: hidden;
}

/* Atmospheric background image, low opacity */
.learn-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.learn-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  filter: grayscale(0.3) blur(0.5px);
}

.learn-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.78) 75%, var(--color-bg) 100%),
    linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0.7));
}

/* Subtle film grain via SVG noise */
.learn-bg-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
  opacity: 0.06;
  mix-blend-mode: overlay;
}

.learn-hero {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
}

.learn-inner {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.learn-inner .section-label {
  text-align: center;
}

.learn-inner .section-divider {
  margin-inline: auto;
}

.learn-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--color-text);
  margin: var(--space-6) 0 var(--space-4);
}

.learn-subhead {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 300;
  font-style: italic;
  color: var(--color-text-muted);
  line-height: 1.5;
  max-width: 640px;
  margin: var(--space-8) auto var(--space-10);
}

.learn-form {
  max-width: 560px;
  margin: 0 auto var(--space-10);
  text-align: left;
}

.learn-form-row {
  display: flex;
  gap: var(--space-3);
  align-items: stretch;
  flex-wrap: wrap;
}

.learn-form input[type="email"] {
  flex: 1 1 240px;
  min-width: 0;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--color-border);
  border-radius: 0;
  transition: border-color var(--transition-interactive);
}

.learn-form input[type="email"]:focus {
  outline: none;
  border-color: var(--color-primary);
}

.learn-form input[type="email"]::placeholder {
  color: var(--color-text-faint);
}

.learn-form .btn-primary {
  flex: 0 0 auto;
  border-radius: 0;
  cursor: pointer;
}

.learn-form-note {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-align: center;
  margin-top: var(--space-4);
  line-height: 1.6;
}

.learn-back {
  display: inline-block;
  margin-top: var(--space-8);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color var(--transition-interactive);
}

.learn-back:hover {
  color: var(--color-text);
}

.learn-footer {
  position: relative;
  z-index: 1;
  padding: var(--space-6);
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  background: var(--color-bg);
}

.nav-learn.active {
  color: var(--color-primary);
  opacity: 1;
}

@media (max-width: 768px) {
  .learn-form-row {
    flex-direction: column;
  }
  .learn-form input[type="email"] {
    flex: 0 0 auto;
    width: 100%;
    height: 52px;
  }
  .learn-form .btn-primary {
    flex: 0 0 auto;
    width: 100%;
    height: 52px;
    justify-content: center;
  }
}
