/* =========================
   Base
========================= */

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

:root {
  /* Dark mode – Ocean / App Store Blue Cinematic */
  --bg: #05060b;
  --bg-soft: #0a111d;
  --bg-elevated: #0d1a2b;

  --text: #f5f7ff;
  --text-soft: #e9ecf9;
  --muted: #9aa8c2;
  --text-on-accent: #ffffff;

  /* Ocean / App Store style blue (darker, not neon) */
  --accent-start: #1a3d7c;   /* deep ocean blue */
  --accent-end:   #2458a6;   /* mid “app store” blue */
  --accent-strong:#3d6bc0;   /* slightly brighter for highlights */

  --border-soft: #1d2a3c;

  /* Gradients / special backgrounds */
  --hero-grad-inner: #0d1a2b;
  --category-grad-start: #0c1523;
  --video-frame-bg: #000000;

  /* Radii / shadows */
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.55);

  /* hero gradient center (used for animated hero) */
  --hero-grad-x: 80%;
  --hero-grad-y: 10%;

  /* sticky header offset for anchor scrolling */
  --header-offset: 73px;
}

html[data-theme="light"] {
  /* Light mode – Clean, soft ocean */
  --bg: #f5f8ff;
  --bg-soft: #ffffff;
  --bg-elevated: #ffffff;

  --text: #0b1628;
  --text-soft: #152238;
  --muted: #5a6a86;
  --text-on-accent: #ffffff;

  /* Slightly brighter blues in light mode */
  --accent-start: #2458a6;
  --accent-end:   #3d6bc0;
  --accent-strong:#4678d8;

  --border-soft: #d3d9e6;

  --hero-grad-inner: #dbe7ff;
  --category-grad-start: #d8e1f5;
  --video-frame-bg: #000000;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* =========================
   Intro screen
========================= */

#intro {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(
      circle at 70% 15%,
      #2458a6 0,    /* app-store blue highlight */
      #05060b 55%   /* deep dark base, same family as dark --bg */
    );
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  transition: opacity 0.9s ease, visibility 0.9s ease;

  /* start hidden so it can't flash */
  opacity: 0;
  visibility: hidden;
}

/* we only add this when we actually want to play the intro */
#intro.ready {
  opacity: 1;
  visibility: visible;
}

/* hide when finished */
#intro.hidden {
  opacity: 0;
  visibility: hidden;
}

.intro-inner {
  text-align: center;
}

.intro-logo {
  display: inline-flex;
  gap: 1.1rem;
  font-size: clamp(2.7rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: 0.5rem;
}

.intro-letter {
  display: inline-block;
  color: #ffffff;
  text-shadow: 0 0 16px rgba(0, 0, 0, 0.75);
}

.intro-letter.accent {
  color: var(--accent-strong);
}

.intro-subtitle {
  margin-top: 0.9rem;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.intro-subtitle .intro-seg {
  opacity: 0;
  transform: translateY(4px);
  display: inline-block;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.intro-subtitle .intro-seg.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   Layout shell / header
========================= */

#site-wrapper {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

#site-wrapper.visible {
  opacity: 1;
  transform: none;
}

.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;

  display: flex;
  align-items: center;
  justify-content: flex-end;

  padding: 1.2rem 6vw;
  background: transparent;
  backdrop-filter: none;
  border-bottom: none;
  transition: background 0.25s ease, backdrop-filter 0.25s ease;
}

.logo {
  position: absolute;
  left: 6vw;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;

  color: var(--text); /* dark in light mode, light in dark mode */
  transition: transform 0.15s ease-out, color 0.2s ease;
}

.main-header.scrolled {
  background: linear-gradient(
    to bottom,
    rgba(5, 5, 9, 1),
    rgba(5, 5, 9, 0.96),
    rgba(5, 5, 9, 0.94)
  );
  backdrop-filter: blur(18px);
}

.main-header.scrolled .logo {
  color: #ffffff;
}

/* Hamburger defaults: hidden on desktop */
.menu-toggle {
  display: none;                /* desktop = hidden */
  padding: 0;
  margin-right: 1rem;
  border: none;
  background: transparent;
  cursor: pointer;

  /* layout values that will apply once it's shown on mobile */
  flex-direction: column;
  gap: 4px;
  justify-content: center;
  align-items: flex-start;
}

/* Bars inside hamburger */
.menu-bar {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);   /* white in dark mode */
}

/* Light mode → dark bars on light header */
html[data-theme="light"] .menu-bar {
  background: #0b1628;                    /* same dark navy as your text */
}

/* Light mode + scrolled header → bars back to white for contrast */
html[data-theme="light"] .main-header.scrolled .menu-bar {
  background: rgba(255, 255, 255, 0.9);
}

/* Nav */

.nav {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  margin-right: 2vw;
}

.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;

  color: rgba(255, 255, 255, 0.85);
  background: rgba(20, 30, 48, 0.75); /* softer than near-black */
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);

  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.nav a:hover {
  color: var(--text-on-accent);
  background: linear-gradient(120deg, var(--accent-start), var(--accent-end));
  border-color: transparent;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  transform: translateY(-1px);
}

.nav a.btn-outline {
  font-weight: 600;
  letter-spacing: 0.18em;
}

/* Theme toggle */

.theme-toggle {
  margin-left: 1.5rem;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.theme-toggle-track {
  position: relative;
  width: 64px;
  height: 28px;
  border-radius: 999px;
  background: rgba(5, 5, 9, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  box-sizing: border-box;
}



/* ===============================
   THEME TOGGLE ICONS (FINAL)
================================ */

/* SVG inside each icon – always bright so it pops on dark track */
.theme-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  stroke: #ffffff;  /* always bright */
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Base icon container */
.theme-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

/* Sun icon (left) */
.theme-icon-sun {
  left: 9px;
}

/* Moon icon (right) */
.theme-icon-moon {
  right: 9px;
}

/* ===== DARK MODE =====
   - Moon visible
   - Sun hidden
*/
html[data-theme="dark"] .theme-icon-sun {
  opacity: 0;
  transform: translateY(-50%) scale(0.7);
}

html[data-theme="dark"] .theme-icon-moon {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

/* ===== LIGHT MODE =====
   - Sun visible
   - Moon hidden
*/
html[data-theme="light"] .theme-icon-sun {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

html[data-theme="light"] .theme-icon-moon {
  opacity: 0;
  transform: translateY(-50%) scale(0.7);
}

/* ===== TOGGLE THUMB ===== */
.theme-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--accent-start), var(--accent-end));
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s ease;
}

/* Light mode → thumb slides right */
html[data-theme="light"] .theme-toggle-thumb {
  transform: translateX(30px);
}

/* =========================
   Hero – homepage
========================= */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 4.5rem 6vw 5rem;
  position: relative;
  overflow: hidden;

  background:
    radial-gradient(circle at var(--hero-grad-x) var(--hero-grad-y),
                    var(--hero-grad-inner) 0,
                    var(--bg) 55%);
  background-repeat: no-repeat;
  background-size: 140% 140%;
  transition: background 0.25s ease-out;
}

.hero-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.hero-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.08;
  margin: 0 0 1.7rem;
}

.highlight {
  background: linear-gradient(90deg, var(--accent-start), var(--accent-end));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 2.2rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* fullscreen logo layout */

.hero-fullscreen {
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-logo-main {
  margin: 0;
  text-transform: uppercase;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: 0.15em;
  font-size: clamp(3.8rem, 15vw, 8rem);
  white-space: nowrap;
}

.hero-logo-line {
  display: inline-block;
}

.hero-logo-line:nth-child(1) {
  background: linear-gradient(110deg, var(--accent-start), var(--accent-end));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-logo-line:nth-child(2) {
  color: var(--text-soft);
}

.hero-meta {
  margin-top: 1rem;
  font-size: 1rem;
  letter-spacing: 0.35rem;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-logo-main,
.hero-meta,
.hero-scroll-arrows {
  opacity: 0;
  transform: translateY(14px);
  animation: heroFadeUp 0.9s ease-out forwards;
}

.hero-meta {
  animation-delay: 0.15s;
}

.hero-scroll-arrows {
  animation-delay: 0.32s;
}

@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* scroll cue */

.hero-scroll-arrows {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  cursor: pointer;
  text-decoration: none;
}

.scroll-chevron {
  width: 80px;
  height: 26px;
  background: linear-gradient(90deg, var(--accent-start), var(--accent-end));
  clip-path: polygon(
    0 0,
    20% 0,
    50% 55%,
    80% 0,
    100% 0,
    50% 100%
  );
  opacity: 0.9;
  transition: opacity 0.25s ease, filter 0.25s ease;
  animation: chevronPulse 1.8s ease-in-out infinite;
}

.hero-scroll-arrows:hover .scroll-chevron {
  opacity: 1;
  filter: brightness(1.18);
}

.hero-scroll-arrows .scroll-chevron:nth-child(2) {
  animation-delay: 0.12s;
}
.hero-scroll-arrows .scroll-chevron:nth-child(3) {
  animation-delay: 0.24s;
}

@keyframes chevronPulse {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(3px) scale(1.06); }
}

/* =========================
   Buttons
========================= */

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent-start), var(--accent-end));
  color: var(--text-on-accent);
  /*box-shadow: var(--shadow-soft);*/
}

.btn-ghost {
  border: 1px solid var(--border-soft);
  color: var(--text);
}

.btn-pill {
  border-radius: var(--radius-pill);
}

/* Remove default button border on contact + category pages */
body.contact-body .btn-primary,
.category-page .btn-primary {
  border: none;
  outline: none;
}

/* =========================
   Section headers
========================= */

.section-header {
  padding: 0 6vw;
  margin-bottom: 2.2rem;
}

.section-header h2 {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.section-header p {
  margin: 0;
  color: var(--muted);
}

/* Selected Work header */

.section-selected-work {
  padding: 0 6vw 2rem;
  margin-top: 0;
  margin-bottom: 2.5rem;
  text-align: center;
}

.section-selected-work .selected-work-title {
  display: inline-block;
  white-space: nowrap;
  font-size: min(8vw, 5rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin: 0 auto;
  color: var(--text);
}

/* =========================
   Work – centered video lanes
========================= */

.work {
  padding: 2rem 0 5rem;
  background: var(--bg);
}

.work-lanes {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  align-items: center;
}

.work-lane {
  width: 100%;
  padding: 0 7vw;
  display: flex;
  justify-content: center;
}

.work-video-link {
  display: block;
  text-decoration: none;
  cursor: pointer;
}

.video-frame {
  position: relative;
  width: 100%;
  max-width: 1040px;
  aspect-ratio: 16 / 9;
  border-radius: 28px;
  overflow: hidden;
  background: radial-gradient(circle at top left, #1f2933, #050608);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  transform-origin: center;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.work-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: radial-gradient(
    circle at center,
    rgba(0, 0, 0, 0.28) 0,
    rgba(0, 0, 0, 0) 55%
  );
  opacity: 1;
  transition: opacity 180ms ease, background 180ms ease;
}

.overlay-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.lane-label {
  font-size: 1.2rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #f9fafb;
}

.overlay-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.78);
  color: #f9fafb;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.65);
  pointer-events: auto;
}

.overlay-arrow {
  display: inline-block;
  transform: translateX(0);
  transition: transform 160ms ease;
}

/* cursor-follow pill */

.cursor-pill {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%) scale(0.9);
  opacity: 0;
  pointer-events: none;

  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;

  background: rgba(0, 0, 0, 0.84);
  color: #f9fafb;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.65);

  transition: opacity 150ms ease, transform 150ms ease;
}

.cursor-pill.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.cursor-label {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.cursor-arrow {
  display: inline-block;
  transition: transform 150ms ease;
}

.cursor-pill.visible .cursor-arrow {
  transform: translateX(3px);
}

.video-frame:hover {
  cursor: none;
}

@media (max-width: 768px) {
  .cursor-pill {
    display: none;
  }
}

.work-video-link:hover .video-frame,
.work-video-link:focus-visible .video-frame {
  transform: translateY(-4px);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7);
}

.work-video-link:hover .overlay-more,
.work-video-link:focus-visible .overlay-more {
  background: rgba(0, 0, 0, 0.92);
}

.work-video-link:hover .overlay-arrow,
.work-video-link:focus-visible .overlay-arrow {
  transform: translateX(3px);
}

/* =========================
   Services carousel
========================= */

.services {
  padding: 4rem 0 4.5rem;
  /* solid section background, theme-aware */
  background: var(--bg);
}

/* light mode: slightly softer band behind the cards */
html[data-theme="light"] .services {
 background: var(--bg);
}

.services-carousel {
  position: relative;
  margin-top: 2.5rem;
  padding: 0 6vw;
}

.services-viewport {
  max-width: 1100px;
  margin: 0 auto;
  /* no clipping needed anymore */
  overflow: visible;
}

.services-row {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 1.5rem;
  perspective: 1200px;
}

/* base card look (dark mode) */
.service-card {
  min-width: 320px;
  max-width: 400px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  background: var(--bg-elevated);            /* solid dark card */
  padding: 1.6rem 1.5rem 1.7rem;
  box-shadow: none;
  opacity: 0;
  transform: scale(0.92) translateY(18px);
  filter: brightness(0.92);
  transition:
    transform 0.35s ease,
    opacity 0.35s ease,
    box-shadow 0.35s ease,
    filter 0.35s ease;
}

/* service title – shared for dark + light */
.service-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
  line-height: 1.3;

  /* Reserve vertical space for two lines so all cards stay same height */
  min-height: 2.6em;  /* tweak between 2.4–2.8em if you want tighter/looser */
}

/* light mode card look */
html[data-theme="light"] .service-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.08);
  /*box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);*/
}

/* text colors play nicer in light mode */
html[data-theme="light"] .service-card h3 {
  color: #0b1628; /* same family as your light --text */
}

html[data-theme="light"] .service-card p {
  color: #5a6a86; /* your light --muted */
}

/* center card = focus */
.service-card.is-center {
  opacity: 1;
  transform: translateY(0) scale(1.05) !important;  /* always the biggest */
  filter: none;
  box-shadow: none;
}

/* neighbors: readable, slightly smaller */
.service-card.is-left,
.service-card.is-right {
  opacity: 1;
  transform: translateY(10px) scale(0.96) !important;
}

html[data-theme="light"] .service-card.is-left,
html[data-theme="light"] .service-card.is-right {
  background: #ffffff;              /* same as center card */
  filter: brightness(0.98);         /* tiny reduction only */
  transform: scale(0.97) translateY(6px);
  border-color: rgba(15,23,42,0.08);
}

/* cards not in the visible trio */
.service-card.is-hidden {
  display: none;
  opacity: 0;
  pointer-events: none;
}



/* arrows */

/* existing dark arrow is fine */
.services-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;

  /* MUCH more visible in dark mode */
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);

  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.85);

  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
}

/* light mode arrow */
html[data-theme="light"] .services-arrow {
  background: #111827;
  border-color: rgba(15, 23, 42, 0.3);
  color: #e5e7eb;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.25);
}

.services-arrow-prev {
  left: 2.5vw;
}

.services-arrow-next {
  right: 2.5vw;
}

.services-arrow:hover {
  background: linear-gradient(130deg, var(--accent-start), var(--accent-end));
  color: var(--text-on-accent);
  transform: translateY(-50%) translateY(-1px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.7);
}

/* mobile: just show one card at a time, swipeable */
@media (max-width: 900px) {
  .services-carousel {
    padding-inline: 5vw;
  }

  .services-row {
    justify-content: center;
  }

  .service-card {
    max-width: 520px;
    width: 100%;
  }

  .services-arrow {
    display: none;
  }

}

.services-hint {
  display: none;
}

@media (max-width: 900px) {
  .services-hint {
    display: block;
    margin-top: 1.5rem;
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
  }
}

/* =========================
   About – clean split layout
========================= */

.about-clean {
  padding: 4rem 5vw 3.8rem;
}

.about-clean-inner {
  max-width: 1150px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;

  /* THIS controls how far the text is from the title */
  gap: 1rem; /* try 2.5rem or 2rem if you want them even closer */
}

/* Left side */
.about-title-block {
  flex: 0 0 250px;
}

/* Tag above title */
.about-tag {
  margin: 0 0 0.3rem;
  font-size: 1rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Title block */
.about-title-block {
  display: flex;
  flex-direction: column;
  gap: 0.2rem; /* tighten spacing */
}

/* ABOUT (same size as Jump Media but lighter weight) */
.about-tag {
  margin: 0;
  font-size: clamp(1.8rem, 3.8vw, 2.3rem);
  font-weight: 300;              /* thin / light */
  letter-spacing: 0.02em;
  color: var(--muted);           /* soft color */
  text-transform: none;          /* no uppercase — matches reference */
}

/* Jump + Media container */
.about-title {
  margin: 0;
  font-size: clamp(1.8rem, 4.4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.05;
}

/* Lines */
.about-line {
  display: block;
}

.about-line-primary {
  color: var(--text);
}

.about-line-secondary {
  color: rgba(180, 192, 210, 0.9); /* subtle difference */
}

/* mobile tweak */
@media (max-width: 900px) {
  .about-title-block {
    flex: none;
  }

  .about-title {
    font-size: clamp(2.2rem, 9vw, 2.8rem);
  }
}
/* Right side */
.about-body {
  flex: 1;
  font-size: 1rem;
  line-height: 1.7;
}

.about-body p {
  margin: 0 0 1.1rem;
  color: var(--muted);
}

/* CTA link at the bottom */
.about-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.5rem;

  font-size: 0.9rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;

  color: #ffffff;
  text-decoration: none;
}

.about-cta-link:hover {
  color: var(--accent-end);
}

/* Light mode: darker CTA text in About */
html[data-theme="light"] .about-cta-link {
  color: var(--text-soft);          /* or var(--text) if you want stronger */
}

html[data-theme="light"] .about-cta-link:hover {
  color: var(--accent-end);
}

/* Mobile */
@media (max-width: 900px) {
  .about-clean {
    padding: 4rem 5vw 3.5rem;
  }

  .about-clean-inner {
    flex-direction: column;
    gap: 1.8rem;
  }

  .about-title-block {
    flex: none;
  }

  .about-title {
    font-size: clamp(2.2rem, 9vw, 2.8rem);
  }
}

/* =========================
   Footer
========================= */

.site-footer {
  padding: 1.5rem 6vw 2rem;
  border-top: 1px solid var(--border-soft);
  font-size: 0.8rem;
  color: var(--muted);
}

/* =========================
   CONTACT PAGE
========================= */

.contact-page {
  min-height: 100vh;
  padding: 7rem 6vw 5rem;
  display: flex;
  justify-content: center;
}

.contact-inner {
  width: 100%;
  max-width: 1120px;
}

.contact-header {
  max-width: 640px;
  margin-bottom: 2.8rem;
}

.contact-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.contact-title {
  margin: 0 0 0.8rem;
  font-size: clamp(2.2rem, 3vw, 2.7rem);
}

.contact-subtitle {
  margin: 0;
  color: var(--muted);
  max-width: 520px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.1fr);
  gap: 2.5rem;
}

.contact-form-card {
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  padding: 2.1rem 2.1rem 2.3rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-row label {
  font-size: 0.86rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-row input,
.form-row select,
.form-row textarea {
  font: inherit;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: var(--bg);
  color: var(--text);
  padding: 0.7rem 0.9rem;
  outline: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.form-row textarea {
  resize: vertical;
  min-height: 150px;
  line-height: 1.4;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: rgba(156, 163, 175, 0.78);
}

.form-row select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: linear-gradient(
      45deg,
      transparent 50%,
      rgba(148, 163, 184, 0.9) 50%
    ),
    linear-gradient(
      135deg,
      rgba(148, 163, 184, 0.9) 50%,
      transparent 50%
    );
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--accent-start);
  box-shadow: 0 0 0 1px rgba(248, 196, 113, 0.3);
  background: var(--bg);
}

.contact-submit {
  margin-top: 0.3rem;
}

.contact-response-note {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
}

/* right column meta */

.contact-meta {
  align-self: flex-start;
  padding-top: 0.25rem;
}

.contact-meta h2 {
  margin-top: 0;
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.contact-meta p {
  margin: 0 0 0.6rem;
  color: var(--muted);
}

.contact-meta strong {
  color: var(--text);
  font-weight: 600;
}

.contact-meta a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.16s ease, color 0.16s ease;
}

.contact-meta a:hover {
  color: var(--accent-strong);
  border-color: rgba(248, 196, 113, 0.6);
}

.contact-meta-footnote {
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  font-size: 0.9rem;
}

/* flat background for contact page */
body.contact-body {
  background: var(--bg);
}

/* =========================
   CATEGORY / CASE STUDY PAGES
   (Weddings, etc.)
========================= */

body.category-page {
  background: var(--bg);
}

/* shared paddings */
.category-hero,
.category-video-full,
.category-text-block,
.category-contact {
  padding-inline: 6vw;
}

.category-hero-inner,
.category-text-inner,
.category-contact-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.category-page {
  /* flat, theme-aware background */
  background: var(--bg);
  padding-top: 96px;
  min-height: 100vh;
}

/* HERO */

.category-hero {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.category-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.category-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 3fr);
  gap: 4rem;
  align-items: center;
}

.category-title-block .category-title {
  margin: 0 0 1rem;
  font-size: clamp(2.8rem, 5vw, 3.8rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.category-title-block {
  text-align: left;
}

.category-title-block .category-eyebrow {
  margin-bottom: 0.5rem;
}

.category-tagline {
  margin: 0;
  font-size: 1.05rem;
  color: var(--muted);
}

.category-intro-copy p {
  margin: 0 0 1.1rem;
  color: var(--muted);
  line-height: 1.7;
}

/* FULL-WIDTH FEATURED VIDEO */

.category-video-full {
  padding-top: 2rem;
  padding-bottom: 3.5rem;
  padding-inline: 0;
}

.category-video-frame {
  width: 100%;
  max-width: 1340px;
  margin: 0 auto;
  border-radius: 28px;
  overflow: hidden;
  background: var(--video-frame-bg);
  aspect-ratio: 16 / 9;
  /*box-shadow: 0 28px 80px rgba(0, 0, 0, 0.7);*/
}

.category-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Band for everything below the featured video on category pages */
.category-after-video {
  background: var(--bg);  /* flat, same as page */
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/* keep spacing consistent for sections inside that band */
.category-after-video > section {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

/* ABOUT / TEXT BLOCKS */

.category-text-block {
  padding-bottom: 4rem;
}

.category-text-inner h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.6rem;
}

.category-text-inner p {
  margin: 0 0 1rem;
  color: var(--muted);
  max-width: 820px;
  line-height: 1.75;
}

.category-project-title {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

/* INLINE CONTACT / INQUIRY */

.category-contact {
  padding-bottom: 4.5rem;
}

.category-contact-inner {
  max-width: 1180px;
  margin: 0 auto;
  border-radius: 24px;
  padding: 2.4rem 2.3rem 2.6rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.category-contact-header h2 {
  margin: 0 0 0.6rem;
  font-size: 1.8rem;
}

.category-contact-header p {
  margin: 0 0 1.8rem;
  color: var(--muted);
}

.category-form {
  margin-bottom: 1.5rem;
}

.category-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto auto auto auto;
  grid-template-areas:
    "name   email"
    "type   date"
    "venue  message"
    "submit message";
  gap: 1.4rem 1.6rem;
  align-items: flex-start;
}

.field-name    { grid-area: name; }
.field-email   { grid-area: email; }
.field-type    { grid-area: type; }
.field-date    { grid-area: date; }
.field-venue   { grid-area: venue; }
.field-message { grid-area: message; }

.field-submit {
  grid-area: submit;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: flex-start;
}

.category-form .form-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.category-form label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.category-form input,
.category-form select,
.category-form textarea {
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  background: rgba(5, 5, 9, 0.9);
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease,
    background 0.18s ease;
}

.category-form textarea {
  resize: vertical;
  min-height: 160px;
}

.category-form input:focus,
.category-form select:focus,
.category-form textarea:focus {
  border-color: var(--accent-start);
  box-shadow: 0 0 0 1px rgba(255, 179, 71, 0.45);
  background: rgba(7, 7, 15, 0.96);
}

/* LIGHT MODE – light fields, dark text */
html[data-theme="light"] .category-form input,
html[data-theme="light"] .category-form select,
html[data-theme="light"] .category-form textarea {
  background: #f9fafb;
  color: #0b1628;                          /* same family as light --text */
  border-color: rgba(15, 23, 42, 0.16);
}

html[data-theme="light"] .category-form input::placeholder,
html[data-theme="light"] .category-form textarea::placeholder {
  color: rgba(148, 163, 184, 0.9);
}

html[data-theme="light"] .category-form input:focus,
html[data-theme="light"] .category-form select:focus,
html[data-theme="light"] .category-form textarea:focus {
  border-color: var(--accent-start);
  box-shadow: 0 0 0 1px rgba(13, 79, 173, 0.30);
  background: #ffffff;
}

.category-submit {
  margin-top: 0.3rem;
  padding-inline: 2.4rem;
}

.category-contact-alt {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* SIMPLE CTA (no form) */

.category-contact.category-contact-simple .category-contact-inner {
  text-align: left;
}

.category-cta-button {
  display: inline-flex;
  margin-top: 0.4rem;
}

/* =========================
   Responsive tweaks
========================= */

/* ---------- ≤900px: layout + services ---------- */
@media (max-width: 1150px) {
  .main-header {
    padding: 0.9rem 5vw;
  }

  .nav {
    gap: 1rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }

  .contact-page {
    padding-top: 6.2rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-card {
    padding-inline: 1.6rem;
  }

  .category-hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .category-contact-inner {
    padding: 2rem 1.6rem 2.2rem;
  }

  .category-form-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "name"
      "email"
      "type"
      "date"
      "venue"
      "message"
      "submit";
  }

  /* --- Services: swipeable row with ALL cards --- */

  .services-carousel {
    padding-inline: 5vw;
  }

  .services-viewport {
    max-width: 100%;
  }

  .services-row {
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1.2rem;
    padding-bottom: 0.5rem;
  }

  /* base mobile card look – same for every card */
  .service-card {
    flex: 0 0 80% !important;        /* same width for all */
    max-width: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    scroll-snap-align: center;
    box-shadow: none;
  }

  /* make sure *no* card is hidden or scaled differently */
  .service-card.is-center,
  .service-card.is-left,
  .service-card.is-right,
  .service-card.is-hidden {
    display: block !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    pointer-events: auto !important;
  }

  .services-arrow {
    display: none !important;        /* no arrows on mobile, just swipe */
  }
}

/* ---------- ≤768px: work section tweaks ---------- */
@media (max-width: 768px) {
  .work {
    padding: 3.5rem 0 4.25rem;
  }

  .work-lanes {
    gap: 3rem;
  }

  .work-lane {
    padding: 0 5vw;
  }

  .video-frame {
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
  }

  .section-selected-work .selected-work-title {
    font-size: clamp(2.4rem, 9vw, 3.2rem);
    line-height: 0.9;
    letter-spacing: -0.02em;
  }
}

/* ---------- hero meta defaults ---------- */

/* Segments + separators in the hero meta line */
.hero-meta-seg,
.hero-meta-separator {
  display: inline;
}

/* ---------- ≤1100px: stack JUMP / MEDIA + size + tagline ---------- */
@media (max-width: 1100px) {
  .hero {
    padding: 4rem 5vw 4rem; /* a little less horizontal padding */
  }

  /* JUMP / MEDIA stack and scale smoothly all the way down */
  .hero-logo-main {
    white-space: normal;
    display: block;
    text-align: center;
    /* This clamp controls ALL sizes below 1100px.
       min 3.6rem = your mobile size, max 6.2rem for larger tablets. */
    font-size: clamp(3.6rem, 8vw, 6.2rem);
    letter-spacing: 0.17em;
    line-height: 1.05;
  }

  .hero-logo-line {
    display: block;           /* JUMP on one line, MEDIA on next */
  }

  /* Tagline – centered, still inline on tablet */
  .hero-meta {
    max-width: 420px;
    margin-top: 1.3rem;
    font-size: 0.85rem;
    letter-spacing: 0.23em;
    line-height: 1.6;
    text-align: center;
  }
}

/* ---------- ≤768px: spacing tweaks only (no font-size changes) ---------- */
@media (max-width: 768px) {
  .hero {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .hero-scroll-arrows {
    margin-top: 2.2rem;
  }
}

/* ---------- ≤900px: mobile header + dropdown nav ---------- */
@media (max-width: 900px) {
  .main-header {
    padding: 0.75rem 5vw;

    /* KEY: 3-column grid → [menu] [logo] [toggle] */
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }

  /* Logo perfectly centered */
  .logo {
    position: static;
    left: auto;
    transform: none;
    margin: 0;
    justify-self: center;
    text-align: center;
    font-size: 0.95rem;
    letter-spacing: 0.18em;
  }

  /* Hamburger button (left) */
  .menu-toggle {
    display: flex;
    justify-self: start;
    margin-right: 0;
  }

  /* Theme toggle (right) */
  .theme-toggle {
    margin-left: 0;
    justify-self: end;
  }

  /* Dropdown nav */
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;

    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;

    padding: 0.9rem 5vw 1.1rem;
    background: rgba(5, 5, 9, 0.98);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  }

  /* Light mode version */
  html[data-theme="light"] .nav {
    background: rgba(245, 248, 255, 0.98);
    border-bottom-color: rgba(148, 163, 184, 0.35);
  }

  /* Menu shown */
  .nav.is-open {
    display: flex;
  }

  /* Mobile menu links */
  .nav a {
    font-size: 0.75rem;
    padding: 0.45rem 1.1rem;
    justify-content: center;
  }
}

/* ---------- ≤640px: smallest phones / tagline + padding ---------- */
/* ---------- ≤640px: smallest phones / tagline + padding ---------- */
@media (max-width: 640px) {
  .hero {
    padding-top: 3rem;
  }

  /* Stack the tagline on 3 lines on mobile */
  .hero-meta {
    max-width: 340px;
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-align: center;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;   /* space between the three lines */
  }

  /* Each segment = its own line */
  .hero-meta-seg {
    display: block;
  }

  /* Hide the middle-dot separators on mobile */
  .hero-meta-separator {
    display: none;
  }

  .contact-page {
    padding-inline: 5vw;
  }

  .category-hero,
  .category-video-full,
  .category-text-block,
  .category-contact {
    padding-inline: 5vw;
  }

  .category-title-block .category-title {
    font-size: clamp(2.3rem, 10vw, 3rem);
  }
}

/* =========================
   Anchor offsets
========================= */

#work,
#services,
#about {
  scroll-margin-top: var(--header-offset);
}

/* Extra specific tweak for work anchor */
#work {
  scroll-margin-top: 71px;
}

/* REAL ESTATE – hero with stacked text + video to the right */
.realestate-hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: flex-start;
}

/* Desktop: text left, video right */
@media (min-width: 960px) {
  .realestate-hero-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }
}

.realestate-hero-text {
  max-width: 640px;
}

.realestate-description {
  margin-top: 1.4rem;
}

.realestate-description p {
  margin: 0 0 1rem;
}

/* Vertical video frame */
.realestate-vert-frame {
  aspect-ratio: 9 / 16;
  width: 100%;
  max-width: 330px;   /* smaller than 420px */
  border-radius: 24px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
  margin-left: auto;
}

.realestate-vert-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Mobile: stack video below text, centered */
@media (max-width: 959px) {
  .realestate-hero-grid {
    grid-template-columns: 1fr;
  }

  .realestate-vert-frame {
    margin: 1.5rem auto 0;
    max-width: 360px;
  }
}

/* Tighten vertical whitespace on real estate hero specifically */
.category-realestate .category-hero {
  padding-top: 3.5rem;
  padding-bottom: 2.5rem;
}

.realestate-hero-video {
  padding-right: 4vw;   /* pulls video inward from the right edge */
}

.realestate-vert-frame {
  margin-left: auto;
  margin-right: 0;       /* ensures it shifts left, not right */
}

.realestate-description {
  margin-top: 1.8rem;   /* increase spacing from tagline */
}

.realestate-description {
  margin-top: 2.8rem;
}

/* Match Weddings description style */
.realestate-description p {
  margin: 0 0 1.1rem;
  color: var(--muted);
  line-height: 1.7;
}

/* Optional: keep bold bits a little softer */
.realestate-description strong {
  font-weight: 600;
}

/* MOBILE OVERRIDE — center vertical real estate video */
@media (max-width: 768px) {
  .realestate-hero-grid {
    grid-template-columns: 1fr !important;
    justify-items: center;        /* centers content horizontally */
    text-align: left;             /* keep text left-aligned */
    gap: 2rem;
  }

  .realestate-hero-video {
    width: 100%;
    display: flex;
    justify-content: center;      /* centers the video frame */
  }

  .realestate-vert-frame {
    max-width: 420px;             /* optional: keeps video nicely sized */
    width: 100%;
  }

  .realestate-vert-video {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 1024px) {
  .realestate-hero-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

.about-instagram-link {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.insta-icon {
  display: inline-flex;
}

.about-cta-link {
  display: block;
}

.insta-icon svg {
  transform: translateY(3.5px);
}
