@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* ── Custom properties ── */
:root {
  --charcoal: #1A1A18;
  --beige: #F5F0E8;
  --lavender: #E8E2F5;
  --chartreuse: #C8E600;
  --orange: #E85D04;
  --bg: var(--charcoal);
  --fg: var(--beige);
  --accent: var(--chartreuse);
  --nav-bg: rgba(26,26,24,0.95);
}

[data-theme="day"] {
  --bg: #ffffff;
  --fg: var(--charcoal);
  --accent: var(--orange);
  --nav-bg: rgba(255,255,255,0.97);
}

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: none;
  transition: background 0.5s ease, color 0.5s ease;
}

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

/* ── Custom cursor ── */
#cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--beige);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, background 0.2s ease;
}
#cursor.hovering {
  background: var(--accent);
  transform: translate(-50%, -50%) scale(1.5);
}
@media (max-width: 768px) {
  #cursor { display: none; }
  body { cursor: auto; }
}

/* ── Tide clock / ambient panel ── */
#tide-clock {
  position: fixed;
  top: 53px;
  left: 0;
  z-index: 49;
  pointer-events: none;
  user-select: none;
  color: var(--beige);
  width: 100%;
}

.env-row {
  display: flex;
  align-items: center;
  gap: 40px;
}

#theme-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  pointer-events: auto;
  color: var(--beige);
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
#theme-toggle svg { flex-shrink: 0; }

.env-label {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--beige);
  pointer-events: auto;
  cursor: pointer;
  transition: color 0.2s;
}
.env-label:hover { color: var(--accent); }

.panels-row {
  display: flex;
  align-items: flex-start;
  gap: 0;
  padding: 0 48px 16px;
  transition: opacity 0.1s linear;
}

.panel-cell {
  padding: 10px 16px;
}
.panel-cell:first-child { padding-left: 0; }

.panel-divider {
  width: 1px;
  align-self: stretch;
  background: rgba(245,240,232,0.15);
  margin-top: 2px;
}

.panel-label {
  font-size: 12px;
  letter-spacing: 3px;
  opacity: 0.45;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.panel-primary {
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  opacity: 0.85;
}

.panel-secondary {
  font-size: 12px;
  margin-top: 4px;
  opacity: 0.65;
  letter-spacing: 0.5px;
}

.panel-tertiary {
  font-size: 12px;
  margin-top: 2px;
  opacity: 0.4;
  letter-spacing: 0.5px;
}

.panel-arrow {
  font-size: 13px;
  opacity: 0.6;
  margin-left: 4px;
}

/* Tide hover video */
.tide-wrap { position: relative; }
.tide-video-popup {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: 280px;
  height: 160px;
  border-radius: 8px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.tide-wrap:hover .tide-video-popup {
  opacity: 1;
  pointer-events: auto;
}

/* Mobile tide clock grid */
.panels-mobile {
  display: none;
  margin-top: 54px;
  color: var(--beige);
  transition: opacity 0.1s linear;
  grid-template-columns: 1fr 1px 1fr;
  grid-template-rows: auto 1px auto 1px auto;
}

.panels-mobile-divider-v {
  grid-column: 2;
  grid-row: 1 / -1;
  background: rgba(245,240,232,0.15);
}
.panels-mobile-divider-h1 { grid-column: 1 / -1; grid-row: 2; background: rgba(245,240,232,0.15); }
.panels-mobile-divider-h2 { grid-column: 1 / -1; grid-row: 4; background: rgba(245,240,232,0.15); }

@media (max-width: 767px) {
  #tide-clock {
    top: 53px;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  #tide-clock.panels-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    background: rgba(26,26,24,0.92);
  }
  .panels-row { display: none; }
  .panels-mobile { display: grid; margin-top: 0; }
  .panel-cell { padding: 6px 12px; }
  .panel-primary { font-size: 14px; }
  .panel-secondary { font-size: 9px; }
  .panel-tertiary { font-size: 8px; }
  .panel-arrow { font-size: 11px; }
  .panel-label { font-size: 10px; letter-spacing: 2px; }
}

/* ── Navigation ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
}

.nav-backdrop {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(4px);
  background: var(--nav-bg);
  opacity: 0;
  transition: opacity 0.4s ease;
}
nav.scrolled .nav-backdrop,
nav.menu-open .nav-backdrop,
[data-page="project"] nav .nav-backdrop { opacity: 1; }


.nav-inner {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 48px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--beige);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--accent); }

[data-theme="day"] nav.scrolled .nav-links a,
[data-theme="day"] [data-page="project"] .nav-links a,
[data-theme="day"] nav.scrolled .env-label,
[data-theme="day"] [data-page="project"] .env-label,
[data-theme="day"] nav.scrolled #theme-toggle,
[data-theme="day"] [data-page="project"] #theme-toggle { color: var(--charcoal); }
[data-theme="day"] nav.scrolled .nav-links a:hover,
[data-theme="day"] nav.scrolled .nav-links a.active,
[data-theme="day"] [data-page="project"] .nav-links a:hover { color: var(--orange); }

/* Burger */
.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--beige);
  opacity: 0.7;
}
[data-theme="day"] nav.scrolled .burger { color: var(--charcoal); }

/* Mobile overlay */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--bg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu a {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--fg);
  opacity: 0.85;
}
.mobile-menu a.active { color: var(--accent); }

@media (max-width: 767px) {
  .nav-inner { padding: 16px 24px; }
  .nav-links { display: none; }
  .burger { display: flex; }
  .mobile-menu { display: flex; }
}

/* ── Page transitions ── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.page-enter { animation: fade-up 0.6s cubic-bezier(0.22,1,0.36,1) both; }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 0 48px 16px;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,26,24,0.4);
  pointer-events: none;
}
[data-theme="day"] .hero-overlay {
  display: none;
}

.hero-blob {
  position: absolute;
  width: 50vw;
  height: 50vw;
  max-width: 600px;
  max-height: 600px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.55;
  filter: blur(60px);
  mix-blend-mode: screen;
  transform: translate(-50%, -50%);
  transition: left 0.6s cubic-bezier(0.22,0.5,0.36,1), top 0.6s cubic-bezier(0.22,0.5,0.36,1);
  background: radial-gradient(ellipse at center, #C8E600 0%, #77749380 50%, transparent 70%);
}
[data-theme="day"] .hero-blob {
  background: radial-gradient(ellipse at center, #F4A340 0%, #E8580480 50%, transparent 70%);
  opacity: 0.45;
}

.hero-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='512' height='512' filter='url(%23grain)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
  mix-blend-mode: overlay;
  opacity: 0.35;
}

.hero-text {
  position: relative;
  z-index: 10;
  margin-top: 15rem;
  will-change: transform;
  color: #ffffff;
}

.hero-name {
  display: block;
  font-size: clamp(72px, 14vw, 160px);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  animation: fade-in 0.8s ease-out 0.2s both;
}

.hero-title {
  display: block;
  font-size: clamp(20px, 3.5vw, 40px);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.02em;
  opacity: 0.7;
  margin-top: 24px;
  color: var(--beige);
  animation: fade-in 0.8s ease-out 0.7s both;
}

.hero-desc {
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.7;
  max-width: 480px;
  opacity: 0.6;
  margin-top: 16px;
  color: var(--beige);
  animation: fade-in 0.8s ease-out 1.1s both;
}

.hero-cta {
  display: inline-block;
  margin-top: 16px;
  font-size: clamp(12px, 1vw, 14px);
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--accent);
  opacity: 0.5;
  transition: opacity 0.2s;
  animation: fade-in 0.8s ease-out 1.4s both;
}
.hero-cta:hover { opacity: 1; }

/* Scroll indicator */
@keyframes bounce-down {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.4;
  transition: opacity 0.4s;
  animation: bounce-down 2s ease-in-out infinite;
  pointer-events: none;
}
.scroll-indicator.hidden { opacity: 0; }
.scroll-indicator-line {
  width: 1px;
  height: 48px;
  background: var(--beige);
}
.scroll-indicator-text {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--beige);
}
[data-theme="day"] .scroll-indicator-line { background: var(--orange); }
[data-theme="day"] .scroll-indicator-text { color: var(--orange); }

@media (max-width: 767px) {
  .hero { padding: 0 24px 16px; }
  .hero-text { margin-top: 26rem; }
}

/* ── Project grid ── */
.project-grid-wrap {
  padding: 32px 48px 0;
  background: var(--bg);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.project-card { display: block; }

.project-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--lavender);
  isolation: isolate;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.project-card:hover .project-thumb img { transform: scale(1.05); }

.project-card-meta { padding-top: 16px; }

.project-card-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--fg);
}

.project-card-bar {
  height: 2px;
  width: 80px;
  margin-top: 8px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.project-card:hover .project-card-bar { transform: scaleX(1); }

@media (max-width: 767px) {
  .project-grid-wrap { padding: 24px 24px 0; }
  .project-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Ticker / marquee ── */
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.ticker {
  overflow: hidden;
  padding: 16px 0;
}
.ticker-night { background: var(--charcoal); }
.ticker-accent { background: var(--accent); margin-top: 80px; }

.ticker-inner {
  display: flex;
  white-space: nowrap;
  animation: ticker 20s linear infinite;
  width: max-content;
}

.ticker-item {
  padding: 0 32px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.ticker-night .ticker-item { color: var(--beige); }
.ticker-accent .ticker-item { color: var(--charcoal); }
[data-theme="day"] .ticker-accent .ticker-item { color: #ffffff; }

.ticker-dot { padding: 0 8px; }
.ticker-night .ticker-dot { color: var(--chartreuse); }
.ticker-accent .ticker-dot { color: var(--charcoal); }
[data-theme="day"] .ticker-accent .ticker-dot { color: #ffffff; }

/* ── Footer ── */
footer {
  border-top: 1px solid rgba(26,26,24,0.1);
  margin-top: 16px;
  padding: 20px 48px;
}
[data-theme="day"] footer { border-color: rgba(26,26,24,0.1); }

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.footer-copy {
  font-size: 13px;
  font-weight: 300;
  opacity: 0.6;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 13px;
  font-weight: 600;
  opacity: 0.6;
  transition: opacity 0.2s, color 0.2s;
}
.footer-links a:hover { opacity: 1; color: var(--accent); }

@media (max-width: 767px) {
  footer { padding: 20px 24px; }
  .footer-inner { flex-direction: column; gap: 24px; }
}

/* ── About page video background ── */
.about-hero-section {
  position: relative;
  overflow: hidden;
}
.about-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}
.about-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,26,24,0.4);
  pointer-events: none;
}
[data-theme="day"] .about-hero-overlay {
  display: none;
}

/* ── About page ── */
.about-wrap {
  padding-top: 0;
  padding-bottom: 80px;
}

.about-hero {
  position: relative;
  z-index: 1;
  padding: 14rem 48px 5rem;
}

.about-hero-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 32px;
  align-items: start;
}

.about-name {
  font-size: clamp(80px, 15vw, 140px);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.02em;
  color: var(--beige);
}

.about-portrait {
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: center 50%;
  display: block;
  background: var(--lavender);
}

.about-bio {
  padding: 0 48px;
  margin-top: 80px;
  margin-bottom: 48px;
  max-width: calc(512px + 96px);
}

.about-bio p {
  font-size: 17px;
  line-height: 1.7;
  font-weight: 300;
}
.about-bio p + p { margin-top: 24px; }

/* Skills ticker — uses shared .ticker styles */
.skills-ticker { margin-bottom: 64px; }

/* Experience list */
.section-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  margin-bottom: 32px;
}

.about-section .section-title,
.edu-section .section-title {
  margin-left: calc(48px - 350px);
}

.about-section { padding: 0 350px; margin-bottom: 64px; }

.experience-list { display: flex; flex-direction: column; }

.experience-row {
  display: grid;
  grid-template-columns: 160px 130px 1fr;
  gap: 32px;
  align-items: center;
  border-top: 1px solid rgba(245,240,232,0.2);
  padding-top: 24px;
  padding-bottom: 24px;
}
[data-theme="day"] .experience-row { border-color: rgba(26,26,24,0.2); }

.exp-date { font-size: 14px; font-weight: 600; }
.exp-loc  { font-size: 13px; font-weight: 400; margin-top: 4px; }

.exp-logo {
  height: 48px;
  width: auto;
  max-width: 88px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  justify-self: center;
}
[data-theme="day"] .exp-logo { filter: brightness(0); }

.exp-role   { font-size: 16px; font-weight: 500; margin-bottom: 6px; }
.exp-desc   { font-size: 16px; line-height: 1.6; font-weight: 300; opacity: 0.6; }

/* Education block */
.edu-section {
  background: var(--lavender);
  color: var(--charcoal);
  padding: 40px 350px;
  margin-bottom: 64px;
}

.edu-section .experience-row { border-color: rgba(26,26,24,0.2); }
.edu-section .exp-logo { filter: grayscale(1) contrast(100); }

/* Contact */
.contact-section { padding: 64px 48px 0; }

.contact-list { display: flex; flex-direction: column; gap: 16px; }

.contact-label { font-size: 16px; font-weight: 400; opacity: 0.6; }
.contact-value { font-size: 18px; font-weight: 500; }

.contact-social { display: flex; gap: 24px; margin-top: 8px; }
.contact-social a {
  font-size: 18px;
  font-weight: 500;
  transition: color 0.2s;
}
.contact-social a:hover { color: var(--accent); }

@media (max-width: 767px) {
  .about-hero { padding: 10rem 24px 4rem; }
  .about-bio, .about-section, .contact-section { padding-left: 24px; padding-right: 24px; }
  .edu-section { padding: 32px 24px; }
  .about-hero-grid { grid-template-columns: 1fr; }
  .about-portrait { height: 340px; object-fit: cover; object-position: center 50%; }
  .experience-row { grid-template-columns: 1fr; gap: 8px; }
  .exp-logo { height: 40px; width: auto; max-width: 120px; }
}

/* ── Project detail page ── */
.project-wrap {
  padding-top: 96px;
  padding-bottom: 80px;
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
}

.project-back {
  padding: 0 48px;
  margin-bottom: 32px;
}

.project-back a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 28px;
  font-weight: 600;
  color: var(--fg);
  transition: color 0.2s;
}
.project-back a:hover { color: var(--accent); }
.project-back a svg { transition: transform 0.2s; }
.project-back a:hover svg { transform: translateX(-4px); }

.project-hero-img {
  width: 100%;
  height: 60vh;
  object-fit: cover;
  margin-bottom: 64px;
}

.project-title-wrap { padding: 0 48px; margin-bottom: 64px; }
.project-title {
  font-size: clamp(48px, 8vw, 100px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.02em;
}

.project-body { padding: 0 48px; margin-bottom: 96px; }
.project-cols {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 64px;
}

.project-short { font-size: 20px; line-height: 1.6; font-weight: 400; margin-bottom: 24px; }
.project-desc  { font-size: 17px; line-height: 1.7; font-weight: 300; opacity: 0.6; }
.project-secondary { font-size: 15px; line-height: 1.8; font-weight: 300; margin-top: 24px; font-style: italic; opacity: 0.4; }

.project-meta { display: flex; flex-direction: column; gap: 32px; }
.meta-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
  opacity: 0.4;
}
.meta-value { font-size: 20px; font-weight: 600; }
.meta-list { font-size: 17px; font-weight: 400; line-height: 1.8; }
.meta-list span { display: block; }
.meta-list a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(245,240,232,0.25);
  transition: color 0.2s;
}
[data-theme="day"] .meta-list a { text-decoration-color: rgba(26,26,24,0.25); }
.meta-list a:hover { color: var(--accent); }

/* Sections */
.project-sections { padding: 0 48px; margin-bottom: 96px; }
.sections-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px 64px;
  align-items: stretch;
}
.section-item { display: flex; flex-direction: column; }
.section-item h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; line-height: 1.2; }
.section-item p  { font-size: 15px; line-height: 1.7; font-weight: 300; opacity: 0.6; }
.section-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  transition: opacity 0.2s;
}
.section-link:hover { opacity: 0.7; }
.section-images {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-top: auto;
  padding-top: 24px;
}
.section-images img { flex: 1; object-fit: cover; height: 200px; }

/* Video */
.project-videos { padding: 0 48px; margin-bottom: 96px; }
.video-list { display: flex; flex-direction: column; gap: 48px; max-width: 896px; margin: 0 auto; }
.video-wrap { aspect-ratio: 16/9; width: 100%; }
.video-wrap iframe { width: 100%; height: 100%; border: none; }

/* Gallery */
.project-gallery { padding: 0 48px; }
.gallery-grid {
  display: grid;
  gap: 12px;
}
.gallery-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-grid img {
  width: 100%;
  object-fit: cover;
  height: 260px;
}
.gallery-grid.cols-2 img { height: 340px; }
.gallery-grid.uncropped img { height: auto; }

/* Next project */
.next-project { padding: 128px 48px 0; }
.next-border { border-top: 1px solid rgba(245,240,232,0.12); padding-top: 48px; }
[data-theme="day"] .next-border { border-color: rgba(26,26,24,0.12); }
.next-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 24px; opacity: 0.4;
}
.next-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 32px;
  align-items: center;
}
.next-thumb {
  position: relative;
  height: 300px;
  overflow: hidden;
  background: #2a2a28;
}
[data-theme="day"] .next-thumb { background: var(--lavender); }
.next-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.next-project a:hover .next-thumb img { transform: scale(1.05); }
.next-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  transition: color 0.2s;
}
.next-project a:hover .next-title { color: var(--accent); }

@media (max-width: 767px) {
  .project-back, .project-title-wrap, .project-body,
  .project-sections, .project-videos, .project-gallery, .next-project { padding-left: 24px; padding-right: 24px; }
  .project-hero-img { height: 40vh; }
  .project-cols { grid-template-columns: 1fr; gap: 32px; }
  .sections-grid { grid-template-columns: 1fr; gap: 32px; }
  .gallery-grid.cols-2,
  .gallery-grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .next-grid { grid-template-columns: 1fr; }
  .next-thumb { height: 240px; }
  .project-back a { font-size: 20px; }
}
