/* ============================================================
   SETH VALENTINE PORTFOLIO — Digital Ink Theme
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display+SC:wght@700&family=Rubik:wght@300;400&display=swap');

/* ---- Tokens ---- */
:root {
  --cream:    #fcf9f8;
  --grey:     #f5f5f5;
  --grey-2:   #ebe7e7;
  --teal:     #008080;
  --black:    #000000;
  --white:    #ffffff;
  --card-shadow: 0 4px 24px rgba(0,0,0,0.18);
  --card-border: 3.5px solid var(--teal);
  --radius:   15px;
  --nav-h:    77px;
  --transition: 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--black);
  font-family: 'Rubik', sans-serif;
  font-weight: 300;
  font-size: 20px;
  line-height: 1.4;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }

.cursor, .cursor-trail { display: none; }

/* ============================================================
   PAGE TRANSITIONS
   ============================================================ */
.page-wrap {
  animation: pageIn 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.page-exit {
  animation: pageOut 0.35s ease forwards;
}
@keyframes pageOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-12px); }
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--white);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 52px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow 0.3s ease;
}
.nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }

.nav-logo {
  font-family: 'Playfair Display SC', serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
  white-space: nowrap;
  transition: color 0.3s ease;
}
.nav-logo span { color: var(--teal); transition: color 0.3s ease; }
.nav-logo:hover { color: var(--teal); }
.nav-logo:hover span { color: var(--black); }

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}
.nav-links a {
  font-family: 'Rubik', sans-serif;
  font-size: 17px;
  font-weight: 400;
  color: var(--black);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.25s ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.nav-links a:hover,
.nav-links a.active { color: var(--teal); }
.nav-links a.active::after,
.nav-links a:hover::after { width: 100%; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  padding-top: var(--nav-h);
  min-height: 100vh;
  background: var(--grey);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.hero-content {
  padding: 80px 52px 80px 52px;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  font-family: 'Rubik', sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: var(--teal);
  letter-spacing: 2.72px;
  text-transform: uppercase;
  margin-bottom: 12px;
  opacity: 0;
  transform: translateY(20px);
  animation: heroUp 0.6s 0.2s ease forwards;
}
.hero-title {
  font-family: 'Playfair Display SC', serif;
  font-size: clamp(56px, 6.67vw, 96px);
  font-weight: 700;
  line-height: 1;
  color: var(--black);
  margin-bottom: 0;
  opacity: 0;
  transform: translateY(24px);
  animation: heroUp 0.7s 0.35s ease forwards;
}
.hero-title .ink { color: var(--teal); }
.hero-body {
  font-size: 20px;
  font-weight: 300;
  color: var(--black);
  max-width: 621px;
  margin-top: 32px;
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(24px);
  animation: heroUp 0.7s 0.55s ease forwards;
}
@keyframes heroUp {
  to { opacity: 1; transform: translateY(0); }
}

.hero-image {
  position: relative;
  height: 100%;
  min-height: 700px;
  overflow: hidden;
}
.hero-image img {
  position: absolute;
  top: -13px;
  right: 0;
  width: 662px;
  height: auto;
  object-fit: cover;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 10px;
  font-family: 'Rubik', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  transition: color 0.3s ease, transform 0.2s ease;
}
.btn-dark {
  background: var(--black);
  color: var(--white);
}
.btn-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--teal);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.btn-dark:hover::before { transform: scaleY(1); }
.btn-dark:hover { transform: translateY(-2px); }
.btn span { position: relative; z-index: 1; }

/* ============================================================
   SECTION CHROME
   ============================================================ */
.section-eyebrow {
  font-family: 'Rubik', sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: var(--teal);
  letter-spacing: 2.72px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}
.section-title {
  font-family: 'Playfair Display SC', serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  color: var(--black);
  margin-bottom: 12px;
}
.section-rule {
  width: 71px;
  height: 3px;
  background: var(--teal);
  display: block;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}
.section-rule::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: rgba(255,255,255,0.5);
  animation: shimmer 2s 1s ease forwards;
}
@keyframes shimmer {
  to { left: 200%; }
}

/* ============================================================
   WORK SECTION
   ============================================================ */
.work-section {
  background: var(--cream);
  padding: 80px 52px 80px;
  content-visibility: auto;
  contain-intrinsic-size: 760px;
}
.work-section-header {
  margin-bottom: 40px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.work-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  aspect-ratio: 314 / 225;
  position: relative;
  background: var(--cream);
  cursor: pointer;
}
.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter var(--transition),
              transform var(--transition);
  display: block;
}
.work-card:hover img {
  filter: grayscale(0%);
  transform: scale(1.04);
}
.work-card img.img-zoom {
  transform: scale(1.1);
}
.work-card:hover img.img-zoom {
  transform: scale(1.14);
}
.work-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0) 100%);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  transition: background 0.4s ease;
}
.work-card:hover .work-card-overlay {
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.7) 100%);
}
.work-card-label {
  font-family: 'Rubik', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.5px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  text-transform: uppercase;
}
.work-card:hover .work-card-label {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   COMING SOON SECTION
   ============================================================ */
.coming-soon-section {
  background: var(--grey);
  padding: 80px 52px;
  content-visibility: auto;
  contain-intrinsic-size: 900px;
}
.coming-soon-header {
  margin-bottom: 40px;
}
.coming-soon-video {
  max-width: 1180px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 10px solid var(--white);
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
  aspect-ratio: 16 / 9;
  background: var(--black);
}
.coming-soon-video video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.coming-soon-copy {
  max-width: 1180px;
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.coming-soon-copy article {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 4px 22px rgba(0,0,0,0.08);
}
.coming-soon-copy h3 {
  font-family: 'Rubik', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--teal);
  letter-spacing: 2.72px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.coming-soon-copy p {
  font-size: 19px;
  font-weight: 300;
  line-height: 1.45;
}

/* Featured case study */
.work-featured {
  border-radius: var(--radius);
  overflow: hidden;
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  background: var(--black);
  position: relative;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-top: 20px;
}
.work-featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter var(--transition), transform var(--transition);
  opacity: 0.85;
}
.work-featured:hover img {
  filter: grayscale(0%);
  transform: scale(1.02);
  opacity: 1;
}
.work-featured-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--teal);
  color: var(--white);
  font-family: 'Rubik', sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 6px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.work-featured:hover .work-featured-badge {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   PROCESS SECTION
   ============================================================ */
.process-section {
  background: #f6f3f2;
  padding: 80px 52px;
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 640px);
  gap: 32px;
  justify-content: center;
  align-items: center;
  min-height: 520px;
  content-visibility: auto;
  contain-intrinsic-size: 520px;
}
.process-image {
  width: 100%;
  justify-self: center;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  border: 23px solid var(--white);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.process-section .reveal-right {
  max-width: 640px;
  justify-self: start;
  transform: translateX(16px);
}
.process-section .reveal-right.visible {
  transform: translateX(0);
}
.process-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter var(--transition);
}
.process-image:hover img { filter: grayscale(0%); }
.process-body {
  font-size: 20px;
  font-weight: 300;
  line-height: 1.4;
  color: var(--black);
}
.process-body p { margin-bottom: 18px; }
.process-body p:last-child { margin-bottom: 0; }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: var(--cream);
  padding: 100px 52px 80px;
  text-align: center;
}
.cta-eyebrow {
  font-family: 'Rubik', sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: var(--teal);
  letter-spacing: 2.72px;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}
.cta-title {
  font-family: 'Playfair Display SC', serif;
  font-size: clamp(48px, 5vw, 96px);
  font-weight: 700;
  line-height: 1;
  color: var(--black);
  margin-bottom: 36px;
}
.cta-title .ink { color: var(--teal); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--cream);
  border-top: 1px solid rgba(0,0,0,0.08);
  padding: 20px 52px;
  display: flex;
  justify-content: flex-end;
  gap: 40px;
}
.footer a {
  font-family: 'Rubik', sans-serif;
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--black);
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 2px;
}
.footer a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--teal);
  transition: width 0.3s ease;
}
.footer a:hover { color: var(--teal); }
.footer a:hover::after { width: 100%; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-hero {
  padding-top: var(--nav-h);
  background: var(--grey);
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  position: relative;
}
.about-content {
  padding: 80px 52px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.about-eyebrow {
  font-family: 'Rubik', sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: var(--teal);
  letter-spacing: 2.72px;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}
.about-name {
  font-family: 'Playfair Display SC', serif;
  font-size: clamp(48px, 6.67vw, 96px);
  font-weight: 700;
  line-height: 1;
  color: var(--black);
  margin-bottom: 48px;
}
.about-name .ink { color: var(--teal); }
.about-bio {
  font-size: 20px;
  font-weight: 300;
  line-height: 1.4;
  max-width: 621px;
}
.about-bio p { margin-bottom: 20px; }
.about-bio p:last-child { margin-bottom: 0; }

.about-image-wrap {
  position: relative;
  overflow: hidden;
  background: var(--grey);
}
.about-ink-bg {
  position: absolute;
  bottom: 0;
  right: -40px;
  width: 100%;
  height: auto;
  object-fit: cover;
  opacity: 1;
  pointer-events: none;
}
.about-portrait-frame {
  position: absolute;
  top: 165px;
  left: 50%;
  transform: translateX(-50%);
  width: 480px;
  height: 480px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 23px solid var(--white);
  box-shadow: var(--card-shadow);
}
.about-portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(80%);
  transition: filter var(--transition);
}
.about-portrait-frame:hover img { filter: grayscale(0%); }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-content {
  padding: 80px 52px;
}
.contact-title {
  font-family: 'Playfair Display SC', serif;
  font-size: clamp(48px, 6.67vw, 96px);
  font-weight: 700;
  line-height: 1;
  color: var(--black);
  margin-bottom: 24px;
}
.contact-subtitle {
  font-size: 20px;
  font-weight: 300;
  line-height: 1.4;
  max-width: 691px;
  margin-bottom: 40px;
}

.contact-hero {
  padding-top: var(--nav-h);
  background: var(--grey);
  height: 80vh;
  min-height: 560px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: visible;
  position: relative;
}
.contact-panels {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 24px;
  padding: 0 52px 80px;
  background: transparent;
  position: relative;
  z-index: 10;
  margin-top: -200px;
}

/* Form */
.contact-form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 40px;
}
.form-field {
  margin-bottom: 32px;
  position: relative;
}
.form-label {
  display: block;
  font-family: 'Rubik', sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: var(--teal);
  letter-spacing: 2.72px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.form-input,
.form-textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(0,0,0,0.15);
  padding: 8px 0 12px;
  font-family: 'Rubik', sans-serif;
  font-size: 20px;
  font-weight: 300;
  color: var(--black);
  background: transparent;
  outline: none;
  transition: border-color 0.3s ease;
  resize: none;
}
.form-input::placeholder,
.form-textarea::placeholder { color: #d1d1d1; }
.form-input:focus,
.form-textarea:focus { border-color: var(--teal); }
.form-textarea { min-height: 120px; }

/* Direct Lines card */
.direct-lines-card {
  background: var(--grey-2);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 40px;
}
.direct-lines-card .section-title { margin-bottom: 12px; }
.contact-link-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: baseline;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.contact-link-row:last-child { border-bottom: none; }
.contact-link-type {
  font-family: 'Rubik', sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: var(--teal);
  letter-spacing: 2.72px;
  text-transform: uppercase;
}
.contact-link-value {
  font-family: 'Rubik', sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--black);
  word-break: break-all;
  transition: color 0.25s ease;
}
.contact-link-value:hover { color: var(--teal); }

/* Contact ink image side */
.contact-image-side {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  background: var(--grey);
}
.contact-image-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(100%);
  transition: filter var(--transition);
}
.contact-image-side:hover img { filter: grayscale(0%); }

/* ============================================================
   PROJECT GALLERY PAGES
   ============================================================ */
.project-page {
  padding-top: var(--nav-h);
  background: var(--cream);
  min-height: 100vh;
}
.project-gallery-wrap {
  background: var(--grey);
  padding: 52px;
}
.project-gallery {
  background: var(--grey-2);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 1440px;
  margin: 0 auto;
}
.project-gallery img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(100%);
  transition: filter 0.8s ease;
}
.project-gallery img.in-view {
  filter: grayscale(0%);
}
/* Yellow Magazine special grid */
.project-gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.project-gallery-grid img {
  width: 100%;
  height: auto;
}

/* Back button row */
.project-back {
  padding: 24px 52px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.project-back a {
  font-family: 'Rubik', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--teal);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.25s ease;
}
.project-back a:hover { gap: 14px; }

/* Yellow Magazine description overlay */
.project-desc {
  padding: 48px 52px;
  background: var(--grey-2);
  margin: 0 52px;
  border-radius: 0 0 var(--radius) var(--radius);
}
.project-desc .section-title { margin-bottom: 4px; }
.project-desc p {
  font-size: 20px;
  font-weight: 300;
  line-height: 1.4;
  max-width: 680px;
  margin-top: 24px;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero, .about-hero, .contact-hero {
    grid-template-columns: 1fr;
    padding-bottom: 40px;
  }
  .hero-image, .about-image-wrap, .contact-image-side {
    display: none;
  }
  .contact-panels {
    grid-template-columns: 1fr;
    margin-top: 0;
    padding: 0 24px 60px;
  }
  .process-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .work-section, .coming-soon-section, .process-section, .cta-section { padding-left: 24px; padding-right: 24px; }
  .coming-soon-copy { grid-template-columns: 1fr; }
  .process-image { width: min(100%, 360px); }
  .nav { padding: 0 24px; }
  .footer { padding: 20px 24px; gap: 24px; flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 600px) {
  .work-grid { grid-template-columns: 1fr; }
  .hero-title, .about-name { font-size: 48px; }
  .contact-title { font-size: 40px; }
  .cta-title { font-size: 40px; }
  .project-gallery-wrap { padding: 20px; }
  .project-back { padding: 16px 20px 0; }
}

/* ============================================================
   HOVER LINK UNDERLINE UTILITY
   ============================================================ */
.ink-link {
  position: relative;
  display: inline-block;
  color: var(--teal);
  font-weight: 400;
}
.ink-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 100%; height: 1px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s ease;
}
.ink-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ============================================================
   LOADING SCREEN
   ============================================================ */
.loader {
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  --loader-progress: 0%;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loader.hidden {
  opacity: 0;
  visibility: hidden;
}
.loader-ink {
  width: min(440px, 70vw);
  height: 8px;
  background: rgba(0,128,128,0.14);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0,128,128,0.2);
}
.loader-ink::after {
  content: '';
  display: block;
  width: var(--loader-progress);
  height: 100%;
  background: var(--teal);
  border-radius: inherit;
  transition: width 0.25s ease;
}
@keyframes loaderDrip {
  0%   { height: 0; opacity: 1; }
  70%  { height: 80px; opacity: 1; }
  100% { height: 80px; opacity: 0; }
}
.loader-logo {
  font-family: 'Playfair Display SC', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--black);
  opacity: 1;
}
.loader-logo span { color: var(--teal); }
@keyframes loaderFade {
  to { opacity: 1; }
}

/* ============================================================
   STAGGER ANIMATION UTILITY
   ============================================================ */
.stagger-children > * {
  opacity: 0;
  transform: translateY(24px);
}
.stagger-children.visible > * {
  animation: staggerUp 0.6s ease forwards;
}
.stagger-children.visible > *:nth-child(1) { animation-delay: 0s; }
.stagger-children.visible > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-children.visible > *:nth-child(3) { animation-delay: 0.2s; }
.stagger-children.visible > *:nth-child(4) { animation-delay: 0.3s; }
.stagger-children.visible > *:nth-child(5) { animation-delay: 0.4s; }
.stagger-children.visible > *:nth-child(6) { animation-delay: 0.5s; }
.stagger-children.visible > *:nth-child(7) { animation-delay: 0.6s; }
.stagger-children.visible > *:nth-child(8) { animation-delay: 0.7s; }
@keyframes staggerUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   NAV MOBILE TOGGLE
   ============================================================ */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: all 0.3s ease;
}
@media (max-width: 700px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: center;
    gap: 32px;
    padding: 40px 24px;
    transform: translateY(-110%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  }
  .nav-links.open { transform: translateY(0); }
}
