:root {
  --cream:      #FBF8EF;  /* background — the whole page, no more alternating sections */
  --teal:       #2E7C74;  /* accent — headings, labels, links, buttons */
  --teal-soft:  rgba(46, 124, 116, 0.14);  /* subtle teal tint for badge/pill backgrounds */
  --ink:        #2B2118;  /* body copy — kept dark for readability, not decorative */
  --ink-soft:   rgba(43, 33, 24, 0.62);
  --form-error: #B23A24;  /* functional error color for the contact form only, not part of the page palette */

  --font-heading: 'Cormorant Garamond', serif;
  --font-marker:  'Noto Serif SC', serif;
  --font-script:  'Lancelot', serif;
  --font-body:    'Stack Sans Headline', sans-serif;
  --font-mono:    'Stack Sans Headline', sans-serif;
 
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;
  --space-7: 140px;
 
  --container: 1160px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
 
/* =========================================================
   RESET & BASE
   ========================================================= */
 
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; overflow-y: visible; }

body {
  font-family: var(--font-body);
  color: var(--ink-soft);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
 
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: none; background: none; cursor: pointer; color: inherit; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.thread-scope { position: relative; }
 
h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; color: var(--teal); }
 
 
/* =========================================================
   LAYOUT UTILITIES
   ========================================================= */
 
.section { padding: var(--space-7) var(--space-3); position: relative; z-index: 0; }
.section-inner { max-width: var(--container); margin: 0 auto; position: relative; z-index: 2; }
 
.section--cream,
.section--mint,
.section--rust,
.section--pink {
  background: var(--cream);
  color: var(--ink-soft);
  text-align: left;
}
 
.eyebrow {
  font-family: var(--font-mono); font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin-bottom: var(--space-2);
}
.eyebrow-cream { color: var(--teal); }
.eyebrow-ink { color: var(--ink-soft); }
 
.section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 3rem);
  letter-spacing: normal;
  margin-bottom: var(--space-5);
  max-width: 18ch;
  line-height: 1.15;
  color: var(--teal);
}
 
.brush-title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(2.6rem, 7.4vw, 5.2rem);
  line-height: 1.1;
  text-transform: none;
  letter-spacing: normal;
  color: var(--teal);
}
 
.brush-title-lg { font-size: clamp(2.8rem, 8.4vw, 6rem); }
 
 
/* =========================================================
   SCROLL-REVEAL SYSTEM
   ========================================================= */
 
[data-reveal] { opacity: 0; transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
 
[data-reveal="fade-up"]    { transform: translateY(44px); }
[data-reveal="slide-left"] { transform: translateX(-64px); }
[data-reveal="slide-right"]{ transform: translateX(64px); }
[data-reveal="scale"]      { transform: scale(0.8); }
[data-reveal="rotate-in"]  { transform: rotate(-8deg) scale(0.85) translateY(20px); }
 
[data-reveal].is-visible { opacity: 1; transform: none; }
 
.about-media.is-visible          { transform: rotate(2deg); }
 
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { transition: none !important; opacity: 1 !important; transform: none !important; }
}
 
/* =========================================================
   NAV
   ========================================================= */
 
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-3);
  background: rgba(251, 248, 239, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(43,33,24,0.1);
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease);
}
 
.site-nav.is-visible { transform: translateY(0); }
 
.nav-logo {
  font-family: var(--font-mono); font-weight: 700;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--teal);
}
.nav-star { color: var(--teal); font-size: 0.9rem; }
 
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-family: var(--font-mono); font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
 
.nav-links a { position: relative; padding: 4px 0; color: var(--teal); }
 
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  height: 2px; width: 0;
  background: var(--teal);
  transition: width 0.3s var(--ease);
}
 
.nav-links a:hover::after,
.nav-links a.is-active::after { width: 100%; }
 
.nav-cta {
  background: var(--teal);
  color: var(--cream) !important;
  padding: 8px 16px !important;
  border-radius: 999px;
}
.nav-cta::after { display: none; }
 
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); }
 
 
/* =========================================================
   HERO
   ========================================================= */
 
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--space-6) + 60px) var(--space-3) var(--space-4);
  background: var(--cream);
}

.hero-inner { position: relative; z-index: 2; max-width: var(--container); margin: 0 auto; width: 100%; }
 
.hero-name {
  font-family: var(--font-script);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  color: var(--teal);
  margin-top: var(--space-1);
  margin-bottom: 0;
}
 
.portfolio-mark {
  display: block;
  position: relative;
  font-family: var(--font-marker);
  font-weight: 400;
  font-size: clamp(3.2rem, 10.5vw, 8.5rem);
  line-height: 1;
  color: var(--teal);
  margin-bottom: var(--space-4);
}

.portfolio-bubbles {
  display: block;
  width: clamp(280px, 62vw, 620px);
  height: auto;
}

.hero-role {
  font-family: var(--font-mono); font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  margin-top: var(--space-2);
}

.hero-tagline {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 44ch;
  margin-top: var(--space-1);
  margin-bottom: var(--space-3);
}

.hero-nav-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
  margin-bottom: var(--space-4);
}

.hero-nav-btn {
  font-family: var(--font-mono); font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 14px 26px;
  border: 1.5px solid var(--teal);
  border-radius: 4px;
  color: var(--teal);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.hero-nav-btn:hover { background: var(--teal); color: var(--cream); }

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-family: var(--font-mono); font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 14px 22px;
  background: var(--teal);
  color: var(--cream);
  border-radius: 999px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.hero-cta:hover { opacity: 0.85; transform: translateY(-2px); }
.hero-cta-arrow { transition: transform 0.3s var(--ease); }
.hero-cta:hover .hero-cta-arrow { transform: translateY(3px); }
 
/* =========================================================
   ABOUT
   ========================================================= */
 
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--space-6); align-items: center; }
 
.about-media {
  position: relative;
  transform: rotate(2deg);
  min-height: 380px;
}
 
.digi-photos {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
 
.digi-photo {
  position: absolute;
  width: 34%;
  filter: drop-shadow(0 12px 18px rgba(0,0,0,0.3));
  opacity: 0;
  will-change: transform, opacity;
}
 
.digi-photo:nth-child(1) { top: -40%; left: 18%; }
 
@media (prefers-reduced-motion: reduce) {
  .digi-photo { opacity: 1 !important; }
}
 
/* ---- Song play button — sits right above "hi, i'm", inviting
   someone scrolling through in silence to press play. Swaps
   its icon and label between play/pause states via JS. ---- */
/* ---- The little nudge above the play button — casual,
   inviting tone, distinct from the more formal body copy
   elsewhere on the page. ---- */
.song-invite {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--ink-soft);
  max-width: 40ch;
  margin-bottom: var(--space-2);
}

.song-play-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  padding: 10px 18px 10px 12px;
  border: 1.5px solid var(--teal);
  border-radius: 999px;
  color: var(--teal);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.song-play-btn:hover { background: var(--teal); color: var(--cream); }

.song-play-icon,
.song-pause-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

.song-play-btn .song-pause-icon { display: none; }
.song-play-btn.is-playing .song-play-icon { display: none; }
.song-play-btn.is-playing .song-pause-icon { display: block; }

.song-play-label {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---- Floating pause control — appears once the song starts,
   fixed to the viewport so it's reachable no matter how far
   the visitor has scrolled since pressing play. ---- */
.song-float-btn {
  position: fixed;
  bottom: var(--space-3);
  left: var(--space-3);
  z-index: 50;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.song-float-btn:hover { transform: scale(1.08); }
.song-float-btn[hidden] { display: none; }
.song-float-btn .song-play-icon,
.song-float-btn .song-pause-icon { width: 20px; height: 20px; fill: currentColor; }
.song-float-btn .song-play-icon { margin-left: 2px; } /* optical centering — a triangle sits visually left-heavy in a circle otherwise */

.song-float-btn .song-pause-icon { display: none; }
.song-float-btn.is-playing .song-play-icon { display: none; }
.song-float-btn.is-playing .song-pause-icon { display: block; }

.about .section-title {
  margin-bottom: var(--space-6);
}

.hero-intro-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  line-height: 1;
  margin-bottom: 6px;
  color: var(--teal);
}

.about-name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--teal);
  margin-bottom: var(--space-5);
}

.about-bio {
  font-size: 1.05rem;
  max-width: 46ch;
  margin-bottom: var(--space-5);
  color: var(--ink-soft);
}
 
/* =========================================================
   SKILLS & CERTS
   ========================================================= */
 
.skills-cloud { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-6); }
 
.skill-pill {
  font-family: var(--font-mono); font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 18px;
  border: 1.5px solid var(--teal);
  color: var(--teal);
  border-radius: 999px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.skill-pill:hover { background: var(--teal); color: var(--cream); }

.skill-pill--icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.skill-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}
.skill-icon--badge text { font-family: var(--font-mono); }
 
.certs-label { font-family: var(--font-mono); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--teal); margin-bottom: var(--space-3); }
 
.certs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
 
.cert-badge {
  background: none;
  border: 1.5px solid var(--teal);
  border-radius: 8px;
  padding: var(--space-4);
}
 
.cert-ribbon { font-family: var(--font-mono); font-weight: 700; font-size: 0.72rem; background: var(--teal-soft); color: var(--teal); padding: 3px 9px; border-radius: 999px; }
.cert-badge h3 { font-family: var(--font-body); font-size: 1.1rem; font-weight: 700; margin: var(--space-2) 0 4px; color: var(--teal); }
.cert-badge p { font-size: 0.88rem; color: var(--ink-soft); }
 
 
/* =========================================================
   WORK
   ========================================================= */
 
.filter-row { display: flex; gap: var(--space-2); margin-bottom: var(--space-5); }
 
.filter-pill {
  font-family: var(--font-mono); font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 9px 18px;
  border: 1.5px solid var(--teal);
  border-radius: 999px;
  color: var(--teal);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.filter-pill.active, .filter-pill:hover { background: var(--teal); color: var(--cream); }
 
/* =========================================================
   PROJECT SHOWCASE
   ========================================================= */

.work-showcase {
  display: flex;
  flex-direction: column;
  gap: var(--space-7);
}

.project {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-5);
  align-items: center;
}

/* alternate image/video placement */
.project:nth-child(2n) .project-media {
  order: 2;
}

.project:nth-child(2n) .project-info {
  order: 1;
}


/* ---- PROJECT IMAGE / VIDEO FRAME ---- */

.project-media {
  position: relative;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: var(--teal-soft);

  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14);
}

/* images + videos use the same frame */
.project-media img,
.project-media video {
  width: 100%;
  height: 100%;
  max-height: 420px;

  object-fit: cover;
  object-position: center;

  display: block;
}

/* Rip. Dip. Reset. video */
.project-video {
  width: 100%;
  height: 100%;
  max-height: 420px;

  object-fit: cover;
  object-position: center;

  display: block;
}


/* ---- PROJECT TEXT ---- */

.project-kicker {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.75rem;

  text-transform: uppercase;
  letter-spacing: 0.08em;

  color: var(--ink-soft);
  margin-bottom: var(--space-1);
}

.project-title {
  font-family: var(--font-body);
  font-size: 1.6rem;
  font-weight: 700;

  color: var(--teal);
  margin-bottom: var(--space-2);
}

.project-desc {
  font-size: 1.02rem;
  color: var(--ink-soft);

  max-width: 42ch;
  margin-bottom: var(--space-3);
}


/* ---- ROLE / TOOLS / SKILLS ---- */

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);

  list-style: none;
  margin-bottom: var(--space-4);
}

.project-meta li {
  font-size: 0.88rem;
  color: var(--ink);
}

.project-meta-label {
  display: block;

  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.68rem;

  text-transform: uppercase;
  letter-spacing: 0.07em;

  color: var(--teal);
  margin-bottom: 2px;
}


/* ---- VIEW PROJECT BUTTON ---- */

.case-link {
  display: inline-flex;
  align-items: center;

  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.82rem;

  text-transform: uppercase;
  letter-spacing: 0.05em;

  color: var(--teal);

  border: 1.5px solid var(--teal);
  border-radius: 999px;

  padding: 10px 22px;

  transition:
    background 0.3s var(--ease),
    color 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.case-link:hover {
  background: var(--teal);
  color: var(--cream);
  transform: translateY(-2px);
}


/* =========================================================
   PROJECTS — MOBILE
   ========================================================= */

@media (max-width: 800px) {

  .project {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    align-items: stretch;
  }

  /* stop alternating sides on mobile */
  .project:nth-child(2n) .project-media,
  .project:nth-child(2n) .project-info {
    order: initial;
  }

  .project-media {
    width: 100%;
  }

  .project-media img,
  .project-media video,
  .project-video {
    width: 100%;
    max-height: 320px;
  }
}
 /* =========================================================
   RESUME
   ========================================================= */

.resume {
  background: var(--cream);
}

/* Same left alignment as Work / Skills / About */
.resume .section-inner {
  max-width: var(--container);
  margin: 0 auto;
}

.resume .section-title {
  margin-bottom: var(--space-5);
}

.resume-content {
  width: 100%;
}

.resume-summary {
  max-width: 760px;
  margin-bottom: var(--space-5);

  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.resume-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: var(--space-6);

  max-width: 900px;
  margin-bottom: var(--space-5);
}

.resume-label {
  margin-bottom: var(--space-3);

  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  color: var(--teal);
}

.resume-skills ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.resume-skills li {
  color: var(--ink);
}

.resume-job {
  margin-bottom: var(--space-4);
}

.resume-job h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 3px;
}

.resume-company {
  margin-bottom: 8px;

  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.resume-education {
  margin-bottom: var(--space-5);
}

.resume-education h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 4px;
}

.resume-education-date {
  margin-top: 4px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.resume-tools-label {
  margin-top: var(--space-4);
  margin-bottom: 10px;
}

.resume-tools {
  max-width: 28ch;
  line-height: 1.7;
  color: var(--ink-soft);
}
.resume-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);

  max-width: 100%;
  margin-bottom: var(--space-4);

  align-items: start;
}

.resume-left,
.resume-right {
  display: flex;
  flex-direction: column;
}

.resume-education {
  margin-bottom: var(--space-6);
}

.resume-experience {
  margin-top: 0;
}

.resume-link {
  display: inline-flex;
  width: fit-content;
  height: fit-content;

  margin-top: var(--space-3);

  justify-self: start;
  align-self: start;
}

@media (max-width: 700px) {
  .resume-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
}

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

.contact {
  position: relative;
  padding: var(--space-7) var(--space-3);
  background: var(--cream);
  color: var(--ink-soft);

  /* IMPORTANT:
     no z-index: 0 here — lets the content sit above
     your decorative clouds/sun */
}

.contact-container {
  width: min(100%, 1100px);
  margin: 0 auto;

  position: relative;
  z-index: 2;
}


/* ---------- HEADING ---------- */

.contact-heading {
  text-align: center;
  margin-bottom: 42px;
}

.contact h2 {
  margin: 0 0 22px;

  font-family: var(--font-heading);
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 0.95;

  color: var(--teal);
}

.contact-intro {
  width: min(100%, 900px);
  margin: 0 auto;

  text-align: center;

  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.5;

  color: var(--ink-soft);
}


/* ---------- FORM AREA ---------- */

.contact-main {
  width: 100%;
  margin: 0 auto;
}


/* LinkedIn now lines up EXACTLY with the form */

.contact-secondary {
  width: min(100%, 760px);
  margin: 0 auto 28px;

  display: flex;
  align-items: center;
  justify-content: center; 
  gap: 9px;

  font-size: 0.95rem;
}

.contact-secondary span {
  color: var(--ink-soft);
}

.contact-secondary a {
  color: var(--teal);
  font-weight: 700;

  border-bottom: 1px solid currentColor;
  transition: opacity 0.25s var(--ease);
}

.contact-secondary a:hover {
  opacity: 0.7;
}


/* ---------- FORM ---------- */

.contact-form {
  width: min(100%, 760px);
  margin: 0 auto;

  text-align: left;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;

  margin-bottom: 28px;
}

.form-group label {
  color: var(--teal);

  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;

  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  width: 100%;

  border: 1.5px solid rgba(46, 124, 116, 0.25);
  border-radius: 12px;

  background: #fff;
  color: var(--ink);

  font: inherit;

  outline: none;

  padding: 18px 20px;

  transition:
    border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.form-group input {
  min-height: 62px;
}

.form-group textarea {
  min-height: 175px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px var(--teal-soft);
}


/* ---------- BUTTON ---------- */

.contact-button {
  min-height: 58px;
  padding: 0 28px;

  border: 0;
  border-radius: 999px;

  background: var(--teal);
  color: var(--cream);

  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;

  letter-spacing: 0.06em;
  text-transform: uppercase;

  cursor: pointer;

  transition:
    transform 0.3s var(--ease),
    opacity 0.3s var(--ease);
}

.contact-button:hover {
  opacity: 0.86;
  transform: translateY(-2px);
}


/* ---------- FORM RESPONSE ---------- */

.form-status {
  min-height: 1.2em;
  margin-top: 20px;

  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
}

.form-status--success {
  color: var(--teal);
}

.form-status--error {
  color: var(--form-error);
}


/* ---------- MOBILE ---------- */

@media (max-width: 600px) {

  .contact {
    padding-left: var(--space-2);
    padding-right: var(--space-2);
  }

  .contact-heading {
    margin-bottom: 36px;
  }

  .contact-secondary {
    flex-wrap: wrap;
  }

  .contact-button {
    width: 100%;
  }
}


.thread-anchor { width: 0; height: 0; }

.wave-thread {
  position: absolute;
  top: 0;
  right: 6%;
  width: 70px;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='70'%20height='160'%20viewBox='0%200%2070%20160'%3E%3Cpath%20d='M35,0%20C46,20%2024,40%2035,60%20C46,80%2024,100%2035,120%20C46,140%2024,150%2035,160'%20stroke='%232E7C74'%20stroke-width='7'%20fill='none'%20stroke-linecap='round'/%3E%3Cellipse%20cx='53'%20cy='18'%20rx='16'%20ry='6'%20fill='%232E7C74'%20transform='rotate(-24%2053%2018)'/%3E%3Cellipse%20cx='17'%20cy='50'%20rx='15'%20ry='6'%20fill='%232E7C74'%20transform='rotate(20%2017%2050)'/%3E%3Cellipse%20cx='53'%20cy='82'%20rx='16'%20ry='6'%20fill='%232E7C74'%20transform='rotate(-22%2053%2082)'/%3E%3Cellipse%20cx='16'%20cy='112'%20rx='15'%20ry='6'%20fill='%232E7C74'%20transform='rotate(18%2016%20112)'/%3E%3Cellipse%20cx='52'%20cy='142'%20rx='14'%20ry='5.5'%20fill='%232E7C74'%20transform='rotate(-20%2052%20142)'/%3E%3C/svg%3E");
  background-repeat: repeat-y;
  background-size: 70px 160px;
  background-position: 0 0;
  opacity: 0.4;
  pointer-events: none;
  z-index: 1;
  animation: kelp-thread-sway 5s ease-in-out infinite;
}

@keyframes kelp-thread-sway {
  0%   { background-position: 0 0; }
  22%  { background-position: 5px 0; }
  48%  { background-position: 9px 0; }
  71%  { background-position: 3px 0; }
  100% { background-position: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .wave-thread { animation: none; }
}

@media (max-width: 900px) {
  .wave-thread { display: none; }
}

.cloud-layer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.cloud {
  position: absolute;
  fill: var(--teal);
}

.cloud-1 { top: 8%;  width: 170px; opacity: 0.10; animation: cloud-drift 55s linear infinite; }
.cloud-2 { top: 18%; width: 240px; opacity: 0.07; animation: cloud-drift 85s linear infinite; animation-delay: -30s; }
.cloud-3 { top: 4%;  width: 130px; opacity: 0.13; animation: cloud-drift 42s linear infinite; animation-delay: -14s; }

@keyframes cloud-drift {
  from { left: -25%; }
  to   { left: 115%; }
}

.seagull {
  position: absolute;
  top: 12%;
  left: -8%;
  width: 46px;
  fill: var(--teal);
  opacity: 0.35;
  animation: gull-fly 26s linear infinite, gull-flap 0.6s ease-in-out infinite;
  transform-origin: center;
}

@keyframes gull-fly {
  from { left: -8%; }
  to   { left: 108%; }
}

@keyframes gull-flap {
  0%, 100% { transform: scaleY(1); }
  50%      { transform: scaleY(0.55); }
}

@media (prefers-reduced-motion: reduce) {
  .seagull { animation: none; left: 30%; }
}

.sun {
  position: fixed;
  top: 8vh;
  left: 8vw;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--teal);
  opacity: 0.3;
  z-index: 1;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .cloud { animation: none; }
  .cloud-1 { left: 10%; }
  .cloud-2 { left: 55%; }
  .cloud-3 { left: 78%; }
}

.ocean {
  position: relative;
  z-index: 2;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  height: clamp(300px, 40vw, 480px);
  overflow: hidden;
  margin-top: var(--space-7);
  background: var(--cream);
}

.ocean-depth {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(46, 124, 116, 0.18) 40%, rgba(46, 124, 116, 0.4) 100%);
}

.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 100%;
  z-index: 2;
}
.wave path { fill: var(--teal); }

.wave-0 { opacity: 0.09; animation: wave-drift 28s linear infinite reverse; }
.wave-1 { opacity: 0.16; animation: wave-drift 22s linear infinite; }
.wave-2 { opacity: 0.32; animation: wave-drift 16s linear infinite reverse; }
.wave-3 { opacity: 0.55; animation: wave-drift 11s linear infinite; z-index: 4; }

@keyframes wave-drift {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.fish-layer { position: absolute; inset: 0; z-index: 3; }

.fish {
  position: absolute;
  width: 46px;
  fill: var(--teal);
  opacity: 0.7;
}
.fish-eye { fill: var(--cream); }

.fish-1 { top: 46%; width: 40px; animation: swim-right 18s linear infinite; }
.fish-2 { top: 62%; width: 56px; opacity: 0.55; animation: swim-left 24s linear infinite; }
.fish-3 { top: 72%; width: 34px; opacity: 0.8; animation: swim-right 14s linear infinite; animation-delay: -6s; }
.fish-4 { top: 56%; width: 48px; opacity: 0.45; animation: swim-left 20s linear infinite; animation-delay: -9s; }

@keyframes swim-right {
  from { left: -60px; transform: scaleX(1); }
  to   { left: 100%; transform: scaleX(1); }
}
@keyframes swim-left {
  from { left: 100%; transform: scaleX(-1); }
  to   { left: -60px; transform: scaleX(-1); }
}

.shark {
  position: absolute;
  top: 74%;
  left: -140px;
  width: 130px;
  fill: var(--teal);
  opacity: 0.6;
  z-index: 3;
  animation: swim-right-wide 32s linear infinite;
}
.shark-eye { fill: var(--cream); }
.shark-gill { fill: none; stroke: var(--cream); stroke-width: 1.5; opacity: 0.6; }

.turtle {
  position: absolute;
  top: 32%;
  left: 100%;
  width: 90px;
  z-index: 3;
  transform: scaleX(-1);
  animation: swim-left-wide 38s linear infinite;
  animation-delay: -6s;
}
.turtle-shell { fill: var(--teal); opacity: 0.65; }
.turtle-flipper { fill: var(--teal); opacity: 0.65; }
.turtle-head { fill: var(--teal); opacity: 0.65; }
.turtle-pattern { stroke: var(--cream); stroke-width: 1.5; fill: none; opacity: 0.4; }

@keyframes swim-right-wide {
  from { left: -140px; }
  to   { left: 100%; }
}
@keyframes swim-left-wide {
  from { left: 100%; }
  to   { left: -140px; }
}

.bubbles { position: absolute; inset: 0; z-index: 3; }

.bubble {
  position: absolute;
  bottom: 10%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1.5px solid var(--teal);
  opacity: 0;
  animation: bubble-rise 6s ease-in infinite;
}
.bubble-1 { left: 18%; animation-delay: 0s; }
.bubble-2 { left: 42%; width: 4px; height: 4px; animation-delay: 1.8s; }
.bubble-3 { left: 68%; width: 8px; height: 8px; animation-delay: 3.2s; }
.bubble-4 { left: 85%; width: 5px; height: 5px; animation-delay: 4.6s; }

@keyframes bubble-rise {
  0%   { transform: translateY(0); opacity: 0; }
  15%  { opacity: 0.5; }
  90%  { opacity: 0.3; }
  100% { transform: translateY(-220px); opacity: 0; }
}

.kelp-bed { position: absolute; inset: 0; z-index: 1; }

.kelp {
  position: absolute;
  bottom: 0;
  transform-origin: bottom center;
  animation: kelp-sway 6s ease-in-out infinite;
}
.kelp-stem {
  fill: none;
  stroke: var(--teal);
  stroke-width: 4;
  stroke-linecap: round;
}
.kelp-leaf {
  fill: var(--teal);
}

.kelp-1 { left: 6%;  width: 34px; height: 65%; opacity: 0.5; animation-duration: 7s; }
.kelp-2 { left: 16%; width: 26px; height: 42%; opacity: 0.35; animation-duration: 5.5s; animation-delay: -1.2s; }
.kelp-3 { left: 60%; width: 36px; height: 72%; opacity: 0.55; animation-duration: 8s; animation-delay: -3s; }
.kelp-4 { left: 78%; width: 28px; height: 48%; opacity: 0.4; animation-duration: 6.5s; animation-delay: -2s; }
.kelp-5 { left: 90%; width: 30px; height: 58%; opacity: 0.45; animation-duration: 7.5s; animation-delay: -4s; }
.kelp-6 { left: 96%; width: 32px; height: 68%; opacity: 0.5;  animation-duration: 6.8s; animation-delay: -1.6s; }

@keyframes kelp-sway {
  0%   { transform: rotate(-5deg) translateX(0); }
  20%  { transform: rotate(2.5deg) translateX(3px); }
  45%  { transform: rotate(6deg) translateX(5px); }
  68%  { transform: rotate(-2deg) translateX(1px); }
  100% { transform: rotate(-5deg) translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .wave { animation: none; }
  .wave-0 { transform: translateX(-4%); }
  .wave-1 { transform: translateX(-12%); }
  .wave-3 { transform: translateX(-6%); }
  .fish { animation: none; }
  .fish-1 { left: 20%; }
  .fish-2 { left: 60%; transform: scaleX(-1); }
  .fish-3 { left: 40%; }
  .fish-4 { left: 75%; transform: scaleX(-1); }
  .shark { animation: none; left: 15%; }
  .turtle { animation: none; left: 65%; }
  .bubble { animation: none; opacity: 0.3; }
  .kelp { animation: none; transform: rotate(0deg); }
}

@media (max-width: 600px) {
  .contact-intro {
    margin-bottom: 60px;
  }

  .contact-form {
    width: 100%;
  }

  .contact-button {
    width: 100%;
  }
}


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

.site-footer {
  padding: var(--space-4) var(--space-3);
  text-align: center;
  background: var(--cream);
  color: var(--ink-soft);
  font-family: var(--font-mono); font-weight: 700;
  font-size: 0.78rem;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: 1fr 1fr; }
  .work-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
    background: var(--cream);
    padding: var(--space-3);
    border-bottom: 1px solid rgba(43,33,24,0.1);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  }
  .nav-links.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }

  .certs-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }

  .portfolio-mark { white-space: normal; font-size: clamp(1.8rem, 9vw, 2.6rem); }

  .section { padding: var(--space-6) var(--space-2); }
}