/* ══════════════════════════════════════════
   VARIABLES & RESET
══════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;1,400&family=DM+Mono:wght@300;400;500&display=swap');

:root {
  --deep:       #0d1a29;
  --navy:       #12273c;
  --ocean:      #1a3f5c;
  --mid:        #2381a7;
  --surf:       #49b7db;
  --foam:       #a8e4f3;
  --mist:       #d5f1f8;
  --sand:       #eff8fc;
  --white:      #f7fcff;

  --accent:     #4ecdc4;
  --accent-warm: #C2A27A;
  --accent-dim: rgba(78,205,196,0.18);

  --border:     rgba(73,183,219,0.30);
  --border-md:  rgba(73,183,219,0.44);

  --text:       #f0f9fc;
  --text-muted: #88b6c9;
  --text-soft:  #b9ddea;

  --bg:         var(--deep);
  --bg-card:    var(--navy);
  --bg-card-hover: var(--ocean);

  --radius:    12px;
  --radius-sm:  6px;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'DM Mono', 'Courier New', monospace;
  --max-width:  860px;
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 300;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

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


/* ══════════════════════════════════════════
   SUBTLE OCEAN TEXTURE (background)
══════════════════════════════════════════ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 40% at 50% -10%, rgba(26,106,138,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 30% at 80% 80%, rgba(13,45,71,0.4) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}


/* ══════════════════════════════════════════
   BUBBLE ANIMATIONS
══════════════════════════════════════════ */
.bubble-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bubble {
  position: absolute;
  bottom: -20px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 40% 38%,
    rgba(73, 183, 219, 0.07),
    rgba(26, 63, 92, 0.06) 50%,
    transparent 72%
  );
  border: 1px solid rgba(73, 183, 219, 0.07);
  box-shadow:
    inset 0 0 6px rgba(168, 228, 243, 0.06),
    0 2px 8px rgba(4, 14, 28, 0.18);
  filter: blur(1.5px);
  animation: bubble-rise linear infinite;
  will-change: transform, opacity;
}

@keyframes bubble-rise {
  0% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: inherit;
  }
  15% {
    transform: translateY(-15vh) translateX(var(--wobble)) scale(1.02);
  }
  35% {
    transform: translateY(-35vh) translateX(calc(var(--wobble) * -0.6)) scale(1);
  }
  55% {
    transform: translateY(-55vh) translateX(var(--wobble)) scale(1.03);
  }
  75% {
    transform: translateY(-75vh) translateX(calc(var(--wobble) * -0.4)) scale(0.98);
  }
  90% {
    opacity: inherit;
  }
  100% {
    transform: translateY(-102vh) translateX(calc(var(--wobble) * 0.5)) scale(0.95);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bubble-layer { display: none; }
}


.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 24px;
}

.section-label {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--surf);
  opacity: 0.8;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

section[id]:not(#intro) {
  scroll-margin-top: 72px;
}


/* ══════════════════════════════════════════
   HEADER
══════════════════════════════════════════ */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  max-width: none;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(9, 18, 31, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow-x: clip;
}

.nav-name {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-md);
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-warm);
  letter-spacing: 0.06em;
  line-height: 1;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.nav-name:hover {
  border-color: var(--surf);
  background: rgba(18, 39, 60, 0.65);
  color: var(--mist);
}

nav {
  display: flex;
  align-items: center;
  gap: 0;
  color: var(--mid);
  white-space: nowrap;
  min-width: 0;
}

nav::before,
nav::after {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(35, 129, 167, 0.9);
}

nav::before {
  content: 'Depth - 0m';
  margin-right: 22px;
}

nav::after {
  content: '- 100m';
  margin-left: 22px;
}

nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 0 8px 0;
  margin-right: 26px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-warm);
  transition: color var(--transition);
}

nav a::before {
  content: '';
  width: 30px;
  height: 18px;
  margin-right: 18px;
  background:
    linear-gradient(rgba(73, 183, 219, 0.72), rgba(73, 183, 219, 0.72)) 0 2px / 1px 14px no-repeat,
    linear-gradient(rgba(73, 183, 219, 0.46), rgba(73, 183, 219, 0.46)) 7px 5px / 1px 8px no-repeat,
    linear-gradient(rgba(73, 183, 219, 0.72), rgba(73, 183, 219, 0.72)) 14px 2px / 1px 14px no-repeat,
    linear-gradient(rgba(73, 183, 219, 0.46), rgba(73, 183, 219, 0.46)) 21px 5px / 1px 8px no-repeat,
    linear-gradient(rgba(73, 183, 219, 0.72), rgba(73, 183, 219, 0.72)) 28px 2px / 1px 14px no-repeat;
  opacity: 0.65;
}

nav a:last-child {
  margin-right: 0;
}

nav a:hover {
  color: var(--foam);
}


/* ══════════════════════════════════════════
   HERO / INTRO
══════════════════════════════════════════ */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 24px 96px;
  position: relative;
}

.hero.intro {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: none;
  width: 100%;
  padding: 88px 24px 72px;
  box-sizing: border-box;
  scroll-margin-top: 0;
  text-align: center;
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  overflow-y: visible;
}

/* Extra ocean depth & light — layered like water columns and surface */
.hero.intro::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 95% 50% at 50% -18%, rgba(200, 233, 244, 0.14) 0%, transparent 58%),
    radial-gradient(ellipse 40% 75% at 0% 5%, rgba(73, 183, 219, 0.16) 0%, transparent 62%),
    radial-gradient(ellipse 38% 70% at 100% 8%, rgba(35, 129, 167, 0.14) 0%, transparent 58%),
    radial-gradient(ellipse 55% 45% at 72% 48%, rgba(18, 63, 92, 0.38) 0%, transparent 68%),
    radial-gradient(ellipse 50% 48% at 8% 52%, rgba(9, 18, 31, 0.42) 0%, transparent 62%),
    radial-gradient(ellipse 35% 28% at 82% 72%, rgba(78, 205, 196, 0.1) 0%, transparent 72%),
    radial-gradient(ellipse 140% 65% at 50% 108%, rgba(13, 45, 71, 0.55) 0%, transparent 62%),
    radial-gradient(ellipse 80% 35% at 50% 92%, rgba(6, 12, 22, 0.35) 0%, transparent 55%),
    linear-gradient(
      185deg,
      rgba(18, 39, 60, 0.2) 0%,
      transparent 38%,
      rgba(13, 26, 41, 0.12) 55%,
      rgba(6, 12, 22, 0.45) 100%
    );
}

.hero.intro .hero-headline,
.hero.intro .hero-headline {
  position: relative;
  z-index: 2;
}

/* Site-wide fish school shadows — slow curved paths + subtle school “wobble” */
.fish-school-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.fish-school {
  position: absolute;
  width: min(560px, 68vw);
  will-change: transform;
  filter: blur(1.2px);
  opacity: 0;
  animation-fill-mode: both;
}

.fish-school-svg {
  width: 100%;
  height: auto;
  display: block;
  transform-origin: center center;
}

/*
  Fish art has the tail on +x, so unmirrored fish face LEFT (←).
  Schools going right (A, C): flip SVG with scaleX(-1) so fish face right (→).
  Schools going left (B, D): no CSS flip needed; fish already face left (←).
*/
.fish-school--a .fish-school-svg,
.fish-school--c .fish-school-svg {
  transform: scaleX(-1);
}

.fish-school--a {
  animation: fish-school-path-a 44s ease-in-out infinite, fish-fade-in 3s ease-out forwards;
}

.fish-school--a.fish-school--copy {
  animation-delay: -22s, 0.6s;
  animation: fish-school-path-a 44s ease-in-out -22s infinite, fish-fade-in 3s ease-out 0.6s forwards;
}

.fish-school--b {
  width: min(480px, 62vw);
  animation: fish-school-path-b 62s ease-in-out -14s infinite, fish-fade-in 3.5s ease-out 1.2s forwards;
}

.fish-school--b.fish-school--copy {
  animation: fish-school-path-b 62s ease-in-out -43s infinite, fish-fade-in 3.5s ease-out 1.8s forwards;
}

.fish-school--c {
  width: min(520px, 65vw);
  animation: fish-school-path-c 52s ease-in-out -8s infinite, fish-fade-in 3s ease-out 2.2s forwards;
}

.fish-school--c.fish-school--copy {
  animation: fish-school-path-c 52s ease-in-out -31s infinite, fish-fade-in 3s ease-out 2.8s forwards;
}

.fish-school--d {
  width: min(440px, 58vw);
  animation: fish-school-path-d 70s ease-in-out -19s infinite, fish-fade-in 4s ease-out 3s forwards;
}

.fish-school--d.fish-school--copy {
  animation: fish-school-path-d 70s ease-in-out -52s infinite, fish-fade-in 4s ease-out 3.4s forwards;
}

/* Each fish drifts on its own loop so the cluster reads as a morphing blob */
.fish-morph {
  transform-origin: 0 0;
  transform-box: fill-box;
}

.fish-school--a .fish-anchor:nth-child(1) .fish-morph {
  animation: blob-morph-a1 5.4s ease-in-out infinite;
}

.fish-school--a .fish-anchor:nth-child(2) .fish-morph {
  animation: blob-morph-a2 4.7s ease-in-out -0.8s infinite;
}

.fish-school--a .fish-anchor:nth-child(3) .fish-morph {
  animation: blob-morph-a3 5.9s ease-in-out -1.4s infinite;
}

.fish-school--a .fish-anchor:nth-child(4) .fish-morph {
  animation: blob-morph-a4 4.3s ease-in-out -0.3s infinite;
}

.fish-school--a .fish-anchor:nth-child(5) .fish-morph {
  animation: blob-morph-a5 5.2s ease-in-out -2.1s infinite;
}

.fish-school--a .fish-anchor:nth-child(6) .fish-morph {
  animation: blob-morph-a6 5.6s ease-in-out -1s infinite;
}

.fish-school--a .fish-anchor:nth-child(7) .fish-morph {
  animation: blob-morph-a1 5.4s ease-in-out -1.6s infinite;
}

.fish-school--a .fish-anchor:nth-child(8) .fish-morph {
  animation: blob-morph-a3 5.9s ease-in-out -0.4s infinite;
}

.fish-school--a .fish-anchor:nth-child(9) .fish-morph {
  animation: blob-morph-a5 5.2s ease-in-out -2.6s infinite;
}

.fish-school--a .fish-anchor:nth-child(10) .fish-morph {
  animation: blob-morph-a2 4.7s ease-in-out -1.1s infinite;
}

.fish-school--b .fish-anchor:nth-child(1) .fish-morph {
  animation: blob-morph-b1 5.1s ease-in-out -0.5s infinite;
}

.fish-school--b .fish-anchor:nth-child(2) .fish-morph {
  animation: blob-morph-b2 4.9s ease-in-out -1.2s infinite;
}

.fish-school--b .fish-anchor:nth-child(3) .fish-morph {
  animation: blob-morph-b3 5.5s ease-in-out -2s infinite;
}

.fish-school--b .fish-anchor:nth-child(4) .fish-morph {
  animation: blob-morph-b4 4.6s ease-in-out -0.6s infinite;
}

.fish-school--b .fish-anchor:nth-child(5) .fish-morph {
  animation: blob-morph-b5 5.3s ease-in-out -1.7s infinite;
}

.fish-school--b .fish-anchor:nth-child(6) .fish-morph {
  animation: blob-morph-b1 5.1s ease-in-out -1.1s infinite;
}

.fish-school--b .fish-anchor:nth-child(7) .fish-morph {
  animation: blob-morph-b3 5.5s ease-in-out -0.3s infinite;
}

.fish-school--b .fish-anchor:nth-child(8) .fish-morph {
  animation: blob-morph-b2 4.9s ease-in-out -1.8s infinite;
}

.fish-school--b .fish-anchor:nth-child(9) .fish-morph {
  animation: blob-morph-b4 4.6s ease-in-out -2.2s infinite;
}

/* School C morph assignments (mirrors A's set with different timings) */
.fish-school--c .fish-anchor:nth-child(1) .fish-morph { animation: blob-morph-a3 5.8s ease-in-out -0.7s infinite; }
.fish-school--c .fish-anchor:nth-child(2) .fish-morph { animation: blob-morph-b2 4.8s ease-in-out -1.3s infinite; }
.fish-school--c .fish-anchor:nth-child(3) .fish-morph { animation: blob-morph-a5 5.3s ease-in-out -2.2s infinite; }
.fish-school--c .fish-anchor:nth-child(4) .fish-morph { animation: blob-morph-b4 4.5s ease-in-out -0.4s infinite; }
.fish-school--c .fish-anchor:nth-child(5) .fish-morph { animation: blob-morph-a1 5.6s ease-in-out -1.8s infinite; }
.fish-school--c .fish-anchor:nth-child(6) .fish-morph { animation: blob-morph-b3 5.0s ease-in-out -0.9s infinite; }
.fish-school--c .fish-anchor:nth-child(7) .fish-morph { animation: blob-morph-a2 4.9s ease-in-out -2.5s infinite; }
.fish-school--c .fish-anchor:nth-child(8) .fish-morph { animation: blob-morph-b5 5.4s ease-in-out -1.1s infinite; }
.fish-school--c .fish-anchor:nth-child(9) .fish-morph { animation: blob-morph-a4 4.7s ease-in-out -0.6s infinite; }
.fish-school--c .fish-anchor:nth-child(10) .fish-morph { animation: blob-morph-b1 5.2s ease-in-out -1.6s infinite; }
.fish-school--c .fish-anchor:nth-child(11) .fish-morph { animation: blob-morph-a6 5.5s ease-in-out -2.0s infinite; }
.fish-school--c .fish-anchor:nth-child(12) .fish-morph { animation: blob-morph-b2 4.6s ease-in-out -0.3s infinite; }

/* School D morph assignments */
.fish-school--d .fish-anchor:nth-child(1) .fish-morph { animation: blob-morph-b5 5.1s ease-in-out -1.4s infinite; }
.fish-school--d .fish-anchor:nth-child(2) .fish-morph { animation: blob-morph-a4 5.6s ease-in-out -2.1s infinite; }
.fish-school--d .fish-anchor:nth-child(3) .fish-morph { animation: blob-morph-b1 4.8s ease-in-out -0.8s infinite; }
.fish-school--d .fish-anchor:nth-child(4) .fish-morph { animation: blob-morph-a2 5.3s ease-in-out -1.7s infinite; }
.fish-school--d .fish-anchor:nth-child(5) .fish-morph { animation: blob-morph-b3 4.7s ease-in-out -2.4s infinite; }
.fish-school--d .fish-anchor:nth-child(6) .fish-morph { animation: blob-morph-a6 5.0s ease-in-out -0.5s infinite; }
.fish-school--d .fish-anchor:nth-child(7) .fish-morph { animation: blob-morph-b4 5.5s ease-in-out -1.2s infinite; }
.fish-school--d .fish-anchor:nth-child(8) .fish-morph { animation: blob-morph-a1 4.9s ease-in-out -2.7s infinite; }
.fish-school--d .fish-anchor:nth-child(9) .fish-morph { animation: blob-morph-b2 5.2s ease-in-out -0.2s infinite; }
.fish-school--d .fish-anchor:nth-child(10) .fish-morph { animation: blob-morph-a5 4.6s ease-in-out -1.9s infinite; }

/* Smooth fade-in so fish don't pop */
@keyframes fish-fade-in {
  0%   { opacity: 0; }
  100% { opacity: 0.86; }
}

/* School A: gentle S-curve sweep left→right, dipping mid-screen then rising */
@keyframes fish-school-path-a {
  0%   { transform: translate3d(-20vw, 18vh, 0); }
  12%  { transform: translate3d(4vw,  38vh, 0); }
  26%  { transform: translate3d(24vw, 22vh, 0); }
  40%  { transform: translate3d(46vw, 42vh, 0); }
  55%  { transform: translate3d(64vw, 24vh, 0); }
  70%  { transform: translate3d(84vw, 36vh, 0); }
  85%  { transform: translate3d(100vw, 28vh, 0); }
  100% { transform: translate3d(120vw, 32vh, 0); }
}

/* School B: right→left, mid-depth, rolling wave pattern */
@keyframes fish-school-path-b {
  0%   { transform: translate3d(108vw, 60vh, 0); }
  18%  { transform: translate3d(82vw,  46vh, 0); }
  35%  { transform: translate3d(58vw,  62vh, 0); }
  52%  { transform: translate3d(32vw,  48vh, 0); }
  68%  { transform: translate3d(10vw,  64vh, 0); }
  84%  { transform: translate3d(-12vw, 50vh, 0); }
  100% { transform: translate3d(-30vw, 58vh, 0); }
}

/* School C: left→right, cuts high across upper third */
@keyframes fish-school-path-c {
  0%   { transform: translate3d(-22vw,  8vh, 0); }
  20%  { transform: translate3d(14vw,  14vh, 0); }
  38%  { transform: translate3d(38vw,   6vh, 0); }
  56%  { transform: translate3d(60vw,  16vh, 0); }
  74%  { transform: translate3d(80vw,   9vh, 0); }
  88%  { transform: translate3d(100vw, 18vh, 0); }
  100% { transform: translate3d(118vw, 12vh, 0); }
}

/* School D: right→left, deep path through lower 60–80% */
@keyframes fish-school-path-d {
  0%   { transform: translate3d(112vw, 72vh, 0); }
  15%  { transform: translate3d(88vw,  78vh, 0); }
  32%  { transform: translate3d(64vw,  68vh, 0); }
  50%  { transform: translate3d(42vw,  80vh, 0); }
  66%  { transform: translate3d(18vw,  70vh, 0); }
  82%  { transform: translate3d(-4vw,  76vh, 0); }
  100% { transform: translate3d(-28vw, 72vh, 0); }
}

@keyframes blob-morph-a1 {
  0% { transform: translate(0, 0); }
  22% { transform: translate(10px, -8px); }
  48% { transform: translate(4px, 6px); }
  72% { transform: translate(-7px, -3px); }
  100% { transform: translate(0, 0); }
}

@keyframes blob-morph-a2 {
  0% { transform: translate(0, 0); }
  18% { transform: translate(-6px, 5px); }
  42% { transform: translate(8px, -4px); }
  68% { transform: translate(-3px, -7px); }
  100% { transform: translate(0, 0); }
}

@keyframes blob-morph-a3 {
  0% { transform: translate(0, 0); }
  28% { transform: translate(-9px, -5px); }
  52% { transform: translate(5px, 8px); }
  78% { transform: translate(6px, -2px); }
  100% { transform: translate(0, 0); }
}

@keyframes blob-morph-a4 {
  0% { transform: translate(0, 0); }
  25% { transform: translate(7px, 7px); }
  50% { transform: translate(-8px, 2px); }
  75% { transform: translate(3px, -9px); }
  100% { transform: translate(0, 0); }
}

@keyframes blob-morph-a5 {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-5px, -6px); }
  45% { transform: translate(9px, 3px); }
  70% { transform: translate(-4px, 8px); }
  100% { transform: translate(0, 0); }
}

@keyframes blob-morph-a6 {
  0% { transform: translate(0, 0); }
  30% { transform: translate(6px, -5px); }
  55% { transform: translate(-7px, 4px); }
  80% { transform: translate(2px, 5px); }
  100% { transform: translate(0, 0); }
}

@keyframes blob-morph-b1 {
  0% { transform: translate(0, 0); }
  24% { transform: translate(-8px, 6px); }
  50% { transform: translate(7px, -5px); }
  76% { transform: translate(4px, 7px); }
  100% { transform: translate(0, 0); }
}

@keyframes blob-morph-b2 {
  0% { transform: translate(0, 0); }
  26% { transform: translate(5px, 8px); }
  54% { transform: translate(-6px, -4px); }
  82% { transform: translate(8px, -3px); }
  100% { transform: translate(0, 0); }
}

@keyframes blob-morph-b3 {
  0% { transform: translate(0, 0); }
  21% { transform: translate(9px, -4px); }
  46% { transform: translate(-5px, 7px); }
  71% { transform: translate(-6px, -5px); }
  100% { transform: translate(0, 0); }
}

@keyframes blob-morph-b4 {
  0% { transform: translate(0, 0); }
  33% { transform: translate(-4px, -8px); }
  58% { transform: translate(10px, 4px); }
  84% { transform: translate(-7px, 3px); }
  100% { transform: translate(0, 0); }
}

@keyframes blob-morph-b5 {
  0% { transform: translate(0, 0); }
  27% { transform: translate(6px, 5px); }
  52% { transform: translate(-8px, 2px); }
  77% { transform: translate(3px, -7px); }
  100% { transform: translate(0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .fish-school--a,
  .fish-school--b,
  .fish-school--c,
  .fish-school--d,
  .fish-morph {
    animation: none !important;
  }

  .fish-school {
    opacity: 0.58;
  }
}

.intro .hero-headline {
  margin-bottom: 14px;
  width: 100%;
  text-align: center;
}

.intro-subtitle {
  font-family: var(--font-sans);
  font-size: clamp(13px, 2.2vw, 15px);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: var(--text-soft);
  min-height: 1.6em;
  margin: 0;
  width: 100%;
  text-align: center;
}

.intro-subtitle #intro-typed {
  white-space: pre-wrap;
}



@media (prefers-reduced-motion: reduce) {
  .typed-cursor {
    animation: none;
    opacity: 0.6;
  }
}

@keyframes typed-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.intro-seaweed {
  position: absolute;
  left: max(-24px, 2vw);
  bottom: 12px;
  z-index: 0;
  width: min(640px, 82vw);
  height: auto;
  pointer-events: none;
  overflow: visible;
  fill: #1f5f35;
}

.intro-seaweed--right {
  left: auto;
  right: max(-30px, 1vw);
  width: min(360px, 46vw);
  transform: scaleX(-1);
  transform-origin: center bottom;
}

.intro-seaweed__strand {
  opacity: 0.16;
  transform-box: fill-box;
  transform-origin: 24% 96%;
  animation: seaweed-sway 5.4s ease-in-out infinite;
  will-change: transform;
}

.intro-seaweed__strand--two {
  animation-name: seaweed-sway-alt;
  animation-delay: -0.9s;
  animation-duration: 6.2s;
}

.intro-seaweed__strand--three {
  animation-delay: -1.8s;
  animation-duration: 5.8s;
}

.intro-seaweed__strand--four {
  animation-name: seaweed-sway-alt;
  animation-delay: -2.6s;
  animation-duration: 6.8s;
}

.intro-seaweed__strand--five {
  animation-delay: -1.4s;
  animation-duration: 5s;
}

.intro-seaweed__strand--six {
  animation-name: seaweed-sway-alt;
  animation-delay: -3.1s;
  animation-duration: 5.6s;
}

.intro-seaweed__strand--seven {
  animation-delay: -0.4s;
  animation-duration: 6.4s;
}

.intro-seaweed__strand--eight {
  animation-name: seaweed-sway-alt;
  animation-delay: -2.1s;
  animation-duration: 5.9s;
}

.intro-seaweed__strand--nine {
  animation-delay: -3.6s;
  animation-duration: 5.2s;
}

.intro-seaweed__strand--ten {
  animation-name: seaweed-sway-alt;
  animation-delay: -1.2s;
  animation-duration: 6.6s;
}

.intro-seaweed__strand--eleven {
  animation-delay: -2.9s;
  animation-duration: 4.8s;
}

@keyframes seaweed-sway {
  0%, 100% {
    transform: rotate(-3deg) skewX(-1deg) translateX(-3px);
  }
  50% {
    transform: rotate(4deg) skewX(1.4deg) translateX(4px);
  }
}

@keyframes seaweed-sway-alt {
  0%, 100% {
    transform: rotate(2.8deg) skewX(1deg) translateX(3px);
  }
  50% {
    transform: rotate(-4.2deg) skewX(-1.4deg) translateX(-4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro-seaweed__strand,
  .about-ledge-seaweed__strand,
  .project-seaweed__strand {
    animation: none;
  }
}

/* Wave SVG decoration beneath hero */
.hero-waves {
  position: absolute;
  bottom: -200px;
  left: 0;
  right: 0;
  width: 100%;
  height: 48px;
  opacity: 0.2;
  pointer-events: none;
}

.hero.intro .hero-waves {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 0;
}

.hero.intro .hero-waves--mirror {
  bottom: -48px;
  width: calc(100% + 500px);
  left: -60px;
  right: -60px;
  transform: scaleY(-1);
  transform-origin: center;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(44px, 7vw, 80px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 32px;
}

/* ══════════════════════════════════════════
   ABOUT
══════════════════════════════════════════ */
.about-section {
  max-width: none;
  width: 100%;
  position: relative;
  overflow-x: clip;
  overflow-y: visible;
  padding-top: 132px;
  padding-bottom: 132px;
}

.about-section .about-body {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(220px, 0.48fr);
  gap: 24px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.about-lead {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 20px;
}

.about-meta {
  margin-bottom: 28px;
}

.about-copy {
  max-width: 78ch;
  padding-right: 50px;
}

.about-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 18px;
}

.about-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 18px;
}

.text-warm {
  color: var(--accent-warm);
}

.about-text:last-child {
  margin-bottom: 0;
}

.about-gallery {
  position: relative;
  width: min(100%, 300px);
  min-height: 360px;
  margin-left: auto;
  isolation: isolate;
}

.about-rectangle {
  position: absolute;
  width: 220px;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(73, 183, 219, 0.08), rgba(18, 39, 60, 0.3)),
    rgba(10, 22, 37, 0.72);
  box-shadow: 0 18px 40px rgba(4, 14, 28, 0.18);
}

.about-rectangle--photo {
  top: 20px;
  right: 160px;
  z-index: 1;
  background:
    linear-gradient(rgba(10, 22, 37, 0.08), rgba(10, 22, 37, 0.08)),
    rgba(10, 22, 37, 0.72);
  background-image:
    linear-gradient(rgba(10, 22, 37, 0.08), rgba(10, 22, 37, 0.08)),
    url('./images/about-photo.jpg');
  background-size: cover, 175%;
  background-position: center, 52% 58%;
  background-repeat: no-repeat;
}

.about-rectangle--accent {
  top: 180px;
  right: 0;
  z-index: 2;
  overflow: visible;
  background: rgba(10, 22, 37, 0.72);
}

.about-carousel-track,
.about-carousel-image {
  width: 100%;
  height: 100%;
  border-radius: 4px;
}

.about-carousel-track {
  overflow: hidden;
}

.about-carousel-image {
  display: block;
  object-fit: cover;
  object-position: center center;
}

.about-ledge-seaweed {
  position: absolute;
  left: 106px;
  top: 100px;
  z-index: 0;
  width: 190px;
  height: auto;
  fill: #1f5f35;
  pointer-events: none;
  overflow: visible;
}

.about-ledge-seaweed__strand {
  opacity: 0.26;
  transform-box: fill-box;
  transform-origin: 34% 98%;
  animation: about-seaweed-sway 5.8s ease-in-out infinite;
  will-change: transform;
}

.about-ledge-seaweed__strand--two {
  animation-name: about-seaweed-sway-alt;
  animation-delay: -1.4s;
}

.about-ledge-seaweed__strand--three {
  animation-delay: -2.2s;
}

.about-ledge-seaweed__strand--four {
  animation-name: about-seaweed-sway-alt;
  animation-delay: -3s;
}

.about-ledge-seaweed__strand--five {
  animation-delay: -3.7s;
}

.about-ledge-seaweed__strand--six {
  animation-name: about-seaweed-sway-alt;
  animation-delay: -4.3s;
}

.about-ledge-seaweed__strand--seven {
  animation-delay: -5s;
}

@keyframes about-seaweed-sway {
  0%, 100% {
    transform: rotate(-9deg) skewX(-0.6deg) translateX(-2px);
  }
  50% {
    transform: rotate(-3deg) skewX(0.8deg) translateX(3px);
  }
}

@keyframes about-seaweed-sway-alt {
  0%, 100% {
    transform: rotate(-4deg) skewX(0.5deg) translateX(2px);
  }
  50% {
    transform: rotate(-10deg) skewX(-0.8deg) translateX(-3px);
  }
}

.about-carousel-arrow {
  position: absolute;
  top: calc(100% + 10px);
  z-index: 3;
  border: none;
  background: transparent;
  color: var(--accent-warm);
  font-family: var(--font-serif);
  font-size: 30px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: transform var(--transition), color var(--transition);
}

.about-carousel-arrow--prev {
  left: 2px;
}

.about-carousel-arrow--next {
  right: 2px;
}

.about-carousel-arrow:hover {
  color: var(--foam);
  transform: translateY(-4px);
}

.about-beyond {
  width: min(100%, 300px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: -70px;
  margin-right: 200px;
}

.about-beyond-title {
  font-size: 11px;
}

.about-beyond-icons {
  display: flex;
  gap: 10px;
}

.about-icon-button {
  width: 42px;
  height: 42px;
  border: none;
  background: transparent;
  color: var(--accent-warm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: color var(--transition), transform var(--transition);
}

.about-icon-button svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about-icon-button:hover {
  color: var(--foam);
  transform: translateY(-6px);
}

.about-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 36px 24px;
  opacity: 0;
  pointer-events: none;
  overscroll-behavior: contain;
}

.about-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.about-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 14, 28, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.about-modal__panel {
  position: relative;
  width: min(920px, 88vw);
  min-height: min(620px, 78vh);
  max-height: min(620px, 78vh);
  padding: 40px;
  border-radius: 20px;
  background:
    radial-gradient(ellipse 34% 24% at 18% 18%, rgba(168, 228, 243, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 28% 22% at 80% 24%, rgba(73, 183, 219, 0.1) 0%, transparent 72%),
    radial-gradient(ellipse 32% 24% at 72% 78%, rgba(168, 228, 243, 0.08) 0%, transparent 70%),
    rgb(18, 39, 60);
  box-shadow: 0 30px 80px rgba(4, 14, 28, 0.4);
  overflow: hidden;
}

.about-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  border: none;
  background: transparent;
  color: var(--text-soft);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transition: color var(--transition), transform var(--transition);
}

.about-modal__close:hover {
  color: var(--foam);
  transform: scale(1.04);
}

.about-modal__content {
  max-width: 960px;
  height: 100%;
  max-height: calc(min(620px, 78vh) - 80px);
  padding-top: 18px;
  overflow-y: auto;
  overflow-x: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-left: 8px;
  padding-right: 28px;
}

.about-modal--empty .about-modal__content {
  display: none;
}

.about-modal__eyebrow {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 16px;
}

.about-modal__title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4.8vw, 54px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 20px;
}

.about-modal__body {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-soft);
  max-width: 88ch;
}

.about-modal__body:empty {
  display: none;
}

.about-modal__project {
  display: none;
  width: 100%;
  flex-wrap: wrap;
  gap: 22px 20px;
  align-items: start;
  justify-content: space-between;
  margin-top: 8px;
}

.about-modal__project.is-visible {
  display: flex;
}

.about-modal__project-image-wrap {
  flex: 0 0 auto;
  width: fit-content;
  max-width: 100%;
  min-height: 0;
  justify-self: start;
  border-radius: var(--radius-sm);
  overflow: visible;
  background: transparent;
}

.about-modal__project-image {
  width: auto;
  height: 230px;
  display: block;
}

.about-modal__project-tags {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 2px;
}

.about-modal__project-details {
  flex: 1 1 260px;
  min-width: 220px;
  max-width: 360px;
  margin-left: auto;
  text-align: right;
}

.about-modal__project[data-project="Repo Guide"] .about-modal__project-details {
  flex-basis: 300px;
  max-width: 400px;
}

.about-modal__project[data-project="Repo Guide"] .about-modal__project-tags {
  column-gap: 6px;
}

.about-modal__project-tags span {
  font-size: 11px;
  padding: 5px 11px;
  border-radius: 2px;
  border: 1px solid rgba(194, 162, 122, 0.42);
  color: var(--accent-warm);
  background: rgba(194, 162, 122, 0.12);
  letter-spacing: 0.06em;
}

.about-modal__project-description {
  font-size: 16px;
  font-style: italic;
  line-height: 1.8;
  color: var(--accent-warm);
  font-weight: 300;
  margin-top: 18px;
}

.about-modal__project-features-section {
  flex-basis: 100%;
  margin-top: 8px;
}

.about-modal__project-features-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.03em;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 5px;
  margin-bottom: 14px;
}

.about-modal__project-features {
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.8;
  padding-left: 20px;
}

.about-modal__project-feature-label {
  color: var(--accent-warm);
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.about-modal__project-features li + li {
  margin-top: 5px;
}

.about-modal__dance-layout {
  display: none;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 44px;
  align-items: start;
  margin-top: 28px;
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.about-modal__dance-layout.is-visible {
  display: grid;
}

.about-modal__dance-placeholders {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.about-modal__dance-placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 0.72;
  border-radius: 8px;
  object-fit: cover;
  object-position: center;
  background:
    linear-gradient(180deg, rgba(73, 183, 219, 0.08), rgba(18, 39, 60, 0.22)),
    rgba(10, 22, 37, 0.7);
  border: 0;
  box-shadow: 0 14px 28px rgba(4, 14, 28, 0.34);
  transition: transform var(--transition), box-shadow var(--transition);
}

.about-modal__dance-placeholder:nth-child(odd) {
  transform: translateX(24px);
}

.about-modal__dance-placeholder:nth-child(even) {
  transform: translateX(-24px);
}

.about-modal__dance-placeholder:hover {
  box-shadow: 0 18px 34px rgba(4, 14, 28, 0.42);
}

.about-modal__dance-placeholder:nth-child(odd):hover {
  transform: translateX(24px) translateY(-4px) scale(1.02);
}

.about-modal__dance-placeholder:nth-child(even):hover {
  transform: translateX(-24px) translateY(-4px) scale(1.02);
}

.about-modal__timeline {
  display: none;
  position: relative;
  max-width: 760px;
  min-height: 870px;
  margin-top: 0;
  margin-left: 0;
  margin-right: 0;
  padding-left: 42px;
  --timeline-axis-offset: 42px;
}

.about-modal__timeline.is-visible {
  display: block;
}

.about-modal__timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--timeline-axis-offset) - 78px);
  width: 96px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 1000' preserveAspectRatio='none'%3E%3Cpath d='M48 0 C78 55 78 110 48 165 C18 220 18 280 48 335 C78 390 78 445 48 500 C18 555 18 610 48 665 C78 720 78 775 48 830 C18 885 18 940 48 1000' fill='none' stroke='rgba(73,183,219,0.44)' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 96px 100%;
  background-position: center top;
  pointer-events: none;
}

.about-modal__timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  margin-bottom: 38px;
}

.about-modal__timeline-item:last-child {
  margin-bottom: 0;
}

.about-modal__timeline-copy {
  position: relative;
  padding-left: 44px;
}

.about-modal__timeline-wave-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--mid);
  box-shadow: 0 0 0 4px rgba(73, 183, 219, 0.14);
  z-index: 1;
}

.about-modal__timeline-wave-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px rgba(78, 205, 196, 0.7);
  transform: translate(-50%, -50%);
  animation: pulse-dot 2.5s infinite;
}

.about-modal__timeline-wave-dot--one {
  top: 130px;
  left: 9px;
}

.about-modal__timeline-wave-dot--two {
  top: 428px;
  left: 7px;
}

.about-modal__timeline-wave-dot--three {
  top: 726px;
  left: 2px;
}

.about-modal__timeline-title {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--white);
  margin: 0 0 8px;
}

.about-modal__timeline-description {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-soft);
  margin: 0;
  max-width: 54ch;
}

.about-modal__timeline-description em {
  color: var(--border-md);
}

.about-modal__timeline-description a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-warm);
  text-decoration: none;
  transition: color var(--transition);
}

.about-modal__timeline-description a:hover {
  color: var(--foam);
}

.about-modal__timeline-link-text {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.about-modal__gallery {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 170px));
  justify-content: center;
  gap: 34px 80px;
  margin-top: 32px;
  padding-bottom: 22px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.about-modal__gallery.is-visible {
  display: grid;
}

.about-modal__tv {
  display: none;
  margin-top: 34px;
  gap: 28px;
}

.about-modal__tv.is-visible {
  display: grid;
}

.about-modal__tv-row {
  display: grid;
  gap: 12px;
}

.about-modal__tv-heading {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--white);
  margin: 0 0 8px;
}

.about-modal__tv-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 190px;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 4px 10px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(73, 183, 219, 0.4) transparent;
}

.about-modal__tv-track::-webkit-scrollbar {
  height: 8px;
}

.about-modal__tv-track::-webkit-scrollbar-thumb {
  background: rgba(73, 183, 219, 0.35);
  border-radius: 999px;
}

.about-modal__tv-card {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  object-fit: cover;
  object-position: center;
  scroll-snap-align: start;
  background:
    linear-gradient(155deg, rgba(168, 228, 243, 0.14) 0%, transparent 38%),
    linear-gradient(135deg, rgba(73, 183, 219, 0.16), rgba(18, 39, 60, 0.82)),
    rgba(10, 22, 37, 0.82);
  border: 0;
  box-shadow: 0 14px 28px rgba(4, 14, 28, 0.34);
  transition: transform var(--transition), box-shadow var(--transition);
}

.about-modal__tv-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 18px 34px rgba(4, 14, 28, 0.42);
}

.about-modal__gallery-card {
  position: relative;
  width: 200px;
  display: grid;
  gap: 10px;
  overflow: visible;
  border-radius: 8px;
  border: 0;
  box-shadow: none;
  transition: transform var(--transition), box-shadow var(--transition);
}

.about-modal__gallery-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(4, 14, 28, 0);
  transition: background var(--transition);
  pointer-events: none;
}

.about-modal__gallery-slot {
  display: block;
  width: 200px;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  border: 0;
  object-fit: cover;
  object-position: center center;
  overflow: hidden;
  box-shadow: 0 12px 18px rgba(4, 14, 28, 0.5);
  transition: filter var(--transition), box-shadow var(--transition);
}

.about-modal__gallery-label {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translate(-50%, 8px);
  color: var(--white);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity var(--transition), transform var(--transition);
  z-index: 1;
  pointer-events: none;
  text-align: center;
  width: calc(100% - 28px);
}

.about-modal__gallery-copy {
  position: static;
  opacity: 1;
  transform: none;
  pointer-events: auto;
  text-align: center;
}

.about-modal__gallery-card--detail .about-modal__gallery-label {
  position: static;
  display: block;
  width: auto;
  transform: none;
  margin-bottom: 0;
  text-align: center;
  letter-spacing: 0.04em;
  text-transform: none;
  opacity: 1;
}

.about-modal__gallery-title {
  display: block;
  font-weight: 600;
}

.about-modal__gallery-subtitle {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  letter-spacing: 0.04em;
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  color: var(--accent-warm);
}

.about-modal__gallery-description {
  display: none;
}

.about-modal__gallery-card:hover {
  transform: translateY(-8px);
}

.about-section .about-waves {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 0;
}

.about-section .about-waves--mirror {
  bottom: -48px;
  width: calc(100% + 500px);
  left: -60px;
  right: -60px;
  transform: scaleY(-1);
  transform-origin: center;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.intro-meta {
  margin-top: 18px;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: none;
  border-radius: 2px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-soft);
  background: rgba(18,39,60,0.82);
}

.intro-meta .meta-pill {
  color: var(--accent-warm);
  transition: transform var(--transition);
}

.intro-meta .meta-pill:hover {
  transform: translateY(-4px);
}

.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}

.dot.green {
  background: var(--accent);
  box-shadow: 0 0 6px rgba(78,205,196,0.7);
  animation: pulse-dot 2.5s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}


/* ══════════════════════════════════════════
   DEPTH DIVIDER
══════════════════════════════════════════ */
.depth-divider {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.depth-label {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--surf);
  opacity: 0.75;
  white-space: nowrap;
  flex-shrink: 0;
}

.depth-ticks {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 1;
}

.depth-tick {
  width: 1px;
  background: var(--surf);
  opacity: 0.42;
  flex-shrink: 0;
}


/* ══════════════════════════════════════════
   PROJECTS GRID
══════════════════════════════════════════ */
#projects {
  max-width: none;
  width: 100%;
  position: relative;
  overflow-x: clip;
  overflow-y: visible;
  padding-top: 132px;
  padding-bottom: 132px;
  padding-left: 0;
  padding-right: 0;
}

#projects > .about-lead {
  width: calc(100% - 192px);
  max-width: 1048px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: 32px;
}

.projects-rows {
  display: grid;
  width: calc(100% - 192px);
  max-width: 1048px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  gap: 22px;
}

.projects-row {
  display: grid;
  gap: 14px;
}

.projects-row-title {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--white);
  margin: 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
}

#projects .projects-waves {
  position: absolute;
  bottom: 0;
  left: 50%;
  right: auto;
  width: 100vw;
  transform: translateX(-50%);
  z-index: 0;
}

#projects .projects-waves--mirror {
  bottom: -48px;
  width: calc(100vw + 500px);
  transform: translateX(-50%) scaleY(-1);
  transform-origin: center;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(150px, 38%) minmax(0, 1fr);
  min-height: 178px;
  border-radius: var(--radius-sm);
  border: 0;
  background: var(--bg-card);
  box-shadow: 0 18px 36px rgba(4, 14, 28, 0.42);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  position: relative;
}

.project-card--with-seaweed {
  isolation: isolate;
  overflow: visible;
}

.project-card--with-seaweed::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background: var(--bg-card);
  pointer-events: none;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 48px rgba(4, 14, 28, 0.52);
}

.project-seaweed {
  position: absolute;
  fill: #1f5f35;
  pointer-events: none;
  overflow: visible;
}

.project-seaweed--card {
  left: 50%;
  top: -78px;
  z-index: 0;
  width: 214px;
  transform: translateX(-50%);
}

.project-seaweed--waves {
  right: max(-18px, 1vw);
  bottom: 20px;
  z-index: 1;
  width: min(270px, 36vw);
}

.project-seaweed__strand {
  opacity: 0.20;
  transform-box: fill-box;
  transform-origin: 34% 98%;
  animation: about-seaweed-sway 5.9s ease-in-out infinite;
  will-change: transform;
}

.project-seaweed__strand--two {
  animation-name: about-seaweed-sway-alt;
  animation-delay: -1.2s;
}

.project-seaweed__strand--three {
  animation-delay: -2s;
}

.project-seaweed__strand--four {
  animation-name: about-seaweed-sway-alt;
  animation-delay: -2.8s;
}

.project-seaweed__strand--five {
  animation-delay: -3.6s;
}

.project-seaweed__strand--six {
  animation-name: about-seaweed-sway-alt;
  animation-delay: -4.4s;
}

.project-seaweed__strand--seven {
  animation-delay: -5.2s;
}

.project-seaweed__strand--eight {
  animation-name: about-seaweed-sway-alt;
  animation-delay: -5.9s;
}

.card-image {
  width: auto;
  height: 100%;
  min-height: 178px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--border);
  background: var(--ocean);
  z-index: 2;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

.card-placeholder-icon {
  font-size: 38px;
  opacity: 0.15;
  user-select: none;
  color: var(--foam);
}

.card-body {
  padding: 16px 18px;
  position: relative;
  z-index: 2;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 8px;
}

.card-top h3 {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 400;
  color: var(--white);
}

.card-year {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-top: 4px;
}

.card-description {
  font-size: 12.5px;
  color: var(--text-soft);
  line-height: 1.65;
  margin-bottom: 14px;
  font-weight: 300;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.card-tags span {
  font-size: 10px;
  padding: 3px 9px;
  border-radius: 2px;
  border: 1px solid rgba(194, 162, 122, 0.42);
  color: var(--accent-warm);
  background: rgba(194, 162, 122, 0.12);
  letter-spacing: 0.06em;
  opacity: 0.95;
}


/* ══════════════════════════════════════════
   EXPERIENCE
══════════════════════════════════════════ */
.experience-skills-section {
  max-width: 1240px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 64px;
  align-items: start;
  padding-top: 132px;
}

.section-anchor {
  display: block;
  height: 0;
  scroll-margin-top: 70px;
}

.experience-panel {
  min-width: 0;
}

.section-panel-title {
  text-align: center;
  margin-bottom: 44px;
}

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

.exp-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border: 0;
  border-radius: var(--radius-sm);
  background: rgba(18,39,60,0.82);
  transition: background var(--transition);
}

.exp-left {
  flex-shrink: 0;
}

.exp-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.exp-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2px;
}

.exp-logo--jane-street img {
  padding: 5px;
}

.exp-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.exp-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 4px;
}

.exp-company {
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.02em;
}

.exp-date {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 3px;
  white-space: nowrap;
}

.exp-role {
  font-size: 12px;
  color: var(--accent-warm);
  margin-bottom: 6px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

/* ══════════════════════════════════════════
   SKILLS
══════════════════════════════════════════ */
.skills-section {
  padding-bottom: 0;
}

.skills-section > .section-panel-title,
.skills-grid {
  margin-left: 56px;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  justify-items: center;
  text-align: center;
}

.skill-group-title {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--surf);
  margin-bottom: 12px;
}

.skill-group--frameworks {
  width: calc(100% + 48px);
}

.skill-group--frameworks .skill-tags {
  gap: 14px 8px;
}

.skill-group--frameworks .skill-tags span {
  padding-right: 9px;
  padding-left: 9px;
  white-space: nowrap;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 12px;
  justify-content: center;
}

.skill-tags span {
  font-size: 11px;
  padding: 6px 12px;
  border-radius: 2px;
  border: 1px solid var(--border);
  color: var(--text-soft);
  background: rgba(18, 39, 60, 0.55);
  letter-spacing: 0.04em;
}

.skill-tags .skill-tags__break {
  flex-basis: 100%;
  width: 100%;
  height: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.honors-block {
  margin-top: 47px;
  margin-left: 92px;
  text-align: left;
}

.honors-group {
  margin-top: 16px;
}

.honors-heading {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 400;
  color: var(--white);
  margin: 0 0 18px;
}

.honors-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-warm);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.honors-list {
  display: grid;
  gap: 5px;
  list-style: none;
  padding-left: 30px;
  margin: 0;
  max-width: 44ch;
}

.honors-list li {
  position: relative;
  padding-left: 18px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-soft);
}

.honors-highlight {
  padding: 1px 3px;
  border-radius: 2px;
  background: rgba(194, 162, 122, 0.24);
  font-weight: 700;
  text-decoration: underline;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.honors-list li::before {
  content: '-';
  position: absolute;
  left: -10px;
  color: var(--text-soft);
}


/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
footer {
  max-width: none;
  margin: 0 auto;
  padding: 28px 24px 150px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ocean);
  position: relative;
  overflow: visible;
}

footer > :not(.footer-waves) {
  z-index: 2;
}

footer .footer-waves {
  position: absolute;
  bottom: 0;
  left: calc(50% - 50vw);
  right: auto;
  width: 100vw;
  height: 96px;
  opacity: 0.82;
  transform: none;
  z-index: 1;
}

footer .footer-seaweed {
  bottom: 30px;
  z-index: 0;
}

footer .footer-seaweed--left {
  left: max(-24px, 2vw);
  width: min(640px, 82vw);
}

footer .footer-seaweed--right {
  left: auto;
  right: max(-30px, 1vw);
  width: min(360px, 46vw);
  transform: scaleX(-1);
  transform-origin: center bottom;
}

.footer-links {
  position: absolute;
  right: 24px;
  bottom: 22px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 22px;
}

.footer-left {
  position: absolute;
  left: 24px;
  bottom: 22px;
  z-index: 3;
  color: var(--ocean);
  font-weight: 500;
  background: rgba(247, 252, 255, 0.42);
  border-radius: 2px;
  padding: 4px 8px;
}

.footer-links a,
.footer-links span {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ocean);
  background: rgba(247, 252, 255, 0.42);
  border-radius: 2px;
  padding: 4px 8px;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--foam);
}

.footer-name-accent {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--foam);
}


/* ══════════════════════════════════════════
   SCROLL ANIMATIONS
══════════════════════════════════════════ */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.project-card.fade-up.visible:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 48px rgba(4, 14, 28, 0.52);
}


/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 640px) {
  .experience-skills-section {
    grid-template-columns: 1fr;
    gap: 64px;
  }

  .skills-section > .section-panel-title,
  .skills-grid {
    margin-left: 0;
  }

  .skill-group--frameworks {
    width: 100%;
  }

  #projects {
    padding-left: 0;
    padding-right: 0;
  }

  #projects > .about-lead,
  .projects-rows {
    width: calc(100% - 48px);
  }

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

  .project-card {
    grid-template-columns: 1fr;
  }

  .project-seaweed--card {
    top: -62px;
    width: 168px;
  }

  .project-seaweed--waves {
    right: -12px;
    bottom: 14px;
    width: 166px;
  }

  .card-image {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .hero-headline {
    font-size: 42px;
  }

  nav {
    gap: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
    row-gap: 10px;
  }

  nav::before,
  nav::after {
    letter-spacing: 0.18em;
  }

  nav::before {
    margin-right: 16px;
  }

  nav::after {
    margin-left: 16px;
  }

  nav a {
    margin-right: 18px;
    letter-spacing: 0.16em;
  }

  nav a::before {
    width: 22px;
    margin-right: 12px;
    background:
      linear-gradient(rgba(73, 183, 219, 0.72), rgba(73, 183, 219, 0.72)) 0 3px / 1px 12px no-repeat,
      linear-gradient(rgba(73, 183, 219, 0.46), rgba(73, 183, 219, 0.46)) 7px 5px / 1px 7px no-repeat,
      linear-gradient(rgba(73, 183, 219, 0.72), rgba(73, 183, 219, 0.72)) 14px 3px / 1px 12px no-repeat,
      linear-gradient(rgba(73, 183, 219, 0.46), rgba(73, 183, 219, 0.46)) 21px 5px / 1px 7px no-repeat;
  }

  .exp-header {
    flex-direction: column;
    gap: 2px;
  }

  footer {
    text-align: center;
  }

  .footer-left,
  .footer-links {
    left: 24px;
    right: 24px;
    justify-content: center;
  }

  .footer-left {
    bottom: 48px;
  }

  .about-section .about-body {
    grid-template-columns: 1fr;
  }

  .about-copy {
    max-width: none;
  }

  .about-side {
    align-items: center;
  }

  .about-gallery {
    width: 100%;
    max-width: 280px;
    min-height: 300px;
    margin: 8px auto 0;
  }

  .about-beyond {
    width: 100%;
    max-width: 280px;
    align-items: center;
  }

  .about-rectangle {
    width: 180px;
  }

  .about-rectangle--photo {
    right: 40px;
  }

  .about-rectangle--accent {
    top: 122px;
  }

  .about-ledge-seaweed {
    left: 104px;
    top: 54px;
    width: 150px;
  }

  .about-modal {
    padding: 20px 16px;
  }

  .about-modal__panel {
    width: 100%;
    min-height: min(560px, 82vh);
    padding: 28px 24px;
  }

  .about-modal__project {
    flex-wrap: wrap;
    row-gap: 20px;
  }

  .about-modal__project-image {
    max-width: 100%;
    height: auto;
  }

  .about-modal__project-image-wrap {
    min-height: 0;
  }

  .about-modal__project-tags {
    flex-direction: row;
    flex-wrap: wrap;
  }
}
