/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --bg:          #FFFFFF;
  --surface:     #FFFFFF;
  --dark:        #1C4B45;   /* deep pine teal - nav, headings, dark bands */
  --heading:     #1C4B45;   /* heading/text ink (flips in dark mode) */
  --text:        #1F3D39;
  --muted:       #6B7A76;
  --border:      #E4EAE7;
  --accent:      #1C6B60;   /* interactive teal */
  --accent-dim:  #144F47;
  --accent-tint: #DCE8E3;   /* soft mint - card surfaces */
  --accent-glow: rgba(28,107,96,0.18);
  --mint:        #DCE8E3;   /* soft mint card background */
  --mint-deep:   #CBDDD6;
  --accent2:     #E86E51;   /* coral secondary */
  --accent2-dim: #D2583C;
  --accent2-tint:#FBE3DB;
  --gold:        #C69A62;   /* stat numbers */
  --peach:       #F2D8C4;   /* handle pill bar */
  --amber:       #D9A441;
  --radius:      1rem;
  --radius-sm:   0.5rem;
  --radius-xl:   1.5rem;
  --radius-blob: 42% 58% 60% 40% / 45% 45% 55% 55%;
  --shadow:      0 4px 20px rgba(28,75,69,0.07);
  --shadow-lg:   0 12px 48px rgba(28,75,69,0.13);
  --nav-h:       84px;
  --max-w:       1160px;
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: sticky;
  top: 0.9rem;
  z-index: 100;
  margin: 0.9rem auto 0;
  max-width: calc(var(--max-w) + 3rem);
  width: calc(100% - 2.4rem);
  height: calc(var(--nav-h) - 20px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.7rem 0 0.8rem;
  background: var(--dark);
  border-radius: 999px;
  box-shadow: 0 10px 34px rgba(28,75,69,0.22);
  transition: box-shadow 0.2s var(--ease);
}

.nav.scrolled { box-shadow: 0 14px 40px rgba(28,75,69,0.3); }

/* avatar circle in nav */
.nav-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent2);
  color: #fff;
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.nav-brand { display: inline-flex; align-items: center; gap: 0.7rem; }

/* Keyboard focus visibility */
.nav-links a:focus-visible,
.work-trigger:focus-visible,
.work-panel a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}


.logo {
  font-family: "Fraunces", serif;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.82);
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(255,255,255,0.14);
}

.nav-links a.linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #fff;
  background: var(--accent2);
  font-weight: 600;
  padding: 0.5rem 1rem;
}

.nav-links a.linkedin:hover { background: var(--accent2-dim); color:#fff; }
.nav-links a.linkedin img { filter: brightness(0) invert(1); }

.nav-links a.linkedin img { width: 17px; height: 17px; }

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HOMEPAGE HERO  (split: text left / headshot right)
   ============================================================ */
.hero {
  min-height: calc(100vh - var(--nav-h));
  background: var(--bg);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  overflow: hidden;
  position: relative;
  padding: 1rem 0;
}

.hero-text {
  padding: 3rem 3rem 3rem 5rem;
  position: relative;
  z-index: 1;
}

/* bracketed "Hello There!" box */
.hero-hello {
  display: inline-block;
  position: relative;
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--heading);
  padding: 0.5rem 1.1rem;
  margin-bottom: 1.6rem;
}
.hero-hello::before,
.hero-hello::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid var(--accent2);
}
.hero-hello::before { top: 0; left: 0; border-right: none; border-bottom: none; }
.hero-hello::after { bottom: 0; right: 0; border-left: none; border-top: none; }

.hero-title {
  font-family: "Fraunces", serif;
  font-size: clamp(2.4rem, 4.6vw, 3.8rem);
  font-weight: 700;
  line-height: 1.06;
  color: var(--heading);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.hero-title .hero-im { font-weight: 700; }
.hero-title .hero-tagline { font-size: 0.82em; }
.hero-title em { font-style: italic; color: var(--accent2); }

.hero-sub {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent2);
  color: #fff;
  box-shadow: 0 8px 26px rgba(232,110,81,0.32);
}
.btn-primary:hover {
  background: var(--accent2-dim);
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(232,110,81,0.4);
}
.btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  font-size: 0.85rem;
}

.btn-ghost {
  background: transparent;
  color: var(--heading);
  border: 1.5px solid var(--mint-deep);
}
.btn-ghost:hover {
  background: var(--mint);
  transform: translateY(-2px);
}

/* legacy dark-hero button (project/about heroes still dark) */
.btn-outline {
  background: transparent;
  color: #EFE7DA;
  border: 1.5px solid rgba(255,255,255,0.2);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.06);
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.35);
}

.hero-dots {
  display: flex;
  gap: 0.5rem;
  margin-top: 2.5rem;
}
.hero-dots i {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--accent2);
  opacity: 0.85;
}

.hero-image {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 4rem;
  height: 100%;
}
.hero-image img {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 540px;
  height: auto;
}
/* Ambient data-viz behind the headshot: a trend line drawing up to a pulsing
   data point, with gently "breathing" bars. Signals the analytics side. */
.hero-dataviz {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  width: 118%;
  max-width: 640px;
  height: auto;
  pointer-events: none;
  animation: dvFloat 12s ease-in-out infinite;
}

.dv-bar {
  fill: var(--mint-deep);
  fill-opacity: 0.85;
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: dvBar 6s ease-in-out infinite;
}
.dv-bar:nth-of-type(1) { animation-delay: 0s;    }
.dv-bar:nth-of-type(2) { animation-delay: 0.5s;  }
.dv-bar:nth-of-type(3) { animation-delay: 1s;    }
.dv-bar:nth-of-type(4) { animation-delay: 1.5s;  }

.dv-line {
  fill: none;
  stroke: var(--accent2);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 760;
  stroke-dashoffset: 760;
  animation: dvDraw 3.4s var(--ease) forwards;
}

.dv-dot {
  fill: var(--accent2);
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: dvDotIn 0.4s var(--ease) 3s forwards,
             dvPulse 2.6s ease-in-out 3.4s infinite;
}

@keyframes dvBar {
  0%, 100% { transform: scaleY(0.82); }
  50%      { transform: scaleY(1); }
}
@keyframes dvDraw {
  to { stroke-dashoffset: 0; }
}
@keyframes dvDotIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes dvPulse {
  0%, 100% { transform: scale(1);    opacity: 1;   }
  50%      { transform: scale(1.35); opacity: 0.65; }
}
@keyframes dvFloat {
  0%, 100% { transform: translate(-50%, -50%); }
  50%      { transform: translate(-50%, calc(-50% - 14px)); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-dataviz, .dv-bar, .dv-dot { animation: none; }
  .dv-line { animation: none; stroke-dashoffset: 0; }
  .dv-dot { opacity: 1; }
}

/* ============================================================
   SECTION WRAPPER
   ============================================================ */
.section {
  padding: 5rem 2rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--heading);
  margin-bottom: 0.9rem;
}
.section-label::before {
  content: "";
  width: 26px;
  height: 3px;
  border-radius: 3px;
  background: var(--accent2);
  flex-shrink: 0;
}

.section-title {
  font-family: "Fraunces", serif;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 700;
  color: var(--heading);
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin-bottom: 0.7rem;
}
/* two-tone: italic coral serif accent */
.section-title em,
.two-tone em {
  font-style: italic;
  font-weight: 700;
  color: var(--accent2);
}
.two-tone {
  font-family: "Fraunces", serif;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.section-sub {
  color: var(--muted);
  font-size: 1rem;
  max-width: 540px;
}

/* ============================================================
   FEATURED WORK GRID  (homepage)
   ============================================================ */
#portfolio .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
  margin-top: 2.5rem;
}

.card {
  display: block;
  border-radius: var(--radius-xl);
  background: var(--mint);
  padding: 0.85rem 0.85rem 1.4rem;
  box-shadow: none;
  text-decoration: none;
  color: inherit;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card-media {
  border-radius: var(--radius);
  overflow: hidden;
}

.card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ease);
}

.card:hover img { transform: scale(1.03); }

.card-info {
  padding: 1.1rem 0.7rem 0;
}

.card-info h3 {
  font-family: "Fraunces", serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.card-info p {
  font-size: 0.87rem;
  color: var(--muted);
}

/* dark-teal pill with numbered coral badge */
.card-num {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--dark);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 1rem 0.35rem 0.4rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}
.card-num i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--accent2);
  color: #fff;
  font-style: normal;
  font-family: "Fraunces", serif;
  font-size: 0.8rem;
}

.card-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent-tint);
  color: var(--accent);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
}

/* ============================================================
   CONTACT FOOTER
   ============================================================ */
.contact-footer { padding-top: 3rem; padding-bottom: 3rem; }

.contact-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.contact-dots { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.contact-dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--accent2); }

.contact-rule {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.6rem 0 2.5rem;
}

.contact-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 2.5rem;
}

.contact-brand { display: flex; gap: 1rem; }
.contact-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent2);
  color: #fff;
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 1.3rem;
}
.contact-brand h3 {
  font-family: "Fraunces", serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 0.4rem;
}
.contact-brand p { color: var(--muted); font-size: 0.92rem; line-height: 1.7; max-width: 320px; }

.contact-col h4 {
  font-family: "Fraunces", serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent2);
  margin-bottom: 1rem;
}
.contact-col ul { list-style: none; padding: 0; margin: 0; }
.contact-col li { margin-bottom: 0.65rem; color: var(--muted); font-size: 0.92rem; }
.contact-col a { color: var(--heading); transition: color 0.15s; }
.contact-col a:hover { color: var(--accent2); }

.contact-handle {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 2.5rem;
  padding: 0.7rem 1.4rem 0.7rem 0.7rem;
  background: var(--peach);
  border-radius: 999px;
}
.contact-handle-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--accent2);
  color: #fff;
  font-family: "Fraunces", serif;
  font-weight: 700;
}
.contact-handle-name { font-family: "Fraunces", serif; font-style: italic; font-weight: 700; color: var(--heading); }
.contact-handle-tag { margin-left: auto; color: var(--accent2-dim); font-style: italic; font-size: 0.92rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.875rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-hero {
  background: var(--bg);
  padding: 4.5rem 2.5rem 3rem;
  position: relative;
  overflow: hidden;
}

.about-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3.5rem;
  align-items: center;
}

.about-headshot-wrap {
  position: relative;
  flex-shrink: 0;
  width: 240px;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Morphing blob keyframes (shared by the About-page decorative blobs). */
@keyframes blobMorph {
  0%, 100% { border-radius: 58% 42% 45% 55% / 52% 48% 52% 48%; }
  33%      { border-radius: 45% 55% 62% 38% / 58% 42% 58% 42%; }
  66%      { border-radius: 62% 38% 48% 52% / 42% 58% 42% 58%; }
}
@keyframes blobMorphAlt {
  0%, 100% { border-radius: 46% 54% 62% 38% / 55% 42% 58% 45%; }
  50%      { border-radius: 60% 40% 42% 58% / 45% 60% 40% 55%; }
}
@keyframes blobFloat {
  0%, 100% { transform: translateY(0) translateX(0); }
  50%      { transform: translateY(-16px) translateX(8px); }
}

.about-blob {
  position: absolute;
  border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%;
  z-index: 0;
  will-change: border-radius, transform;
}
.about-blob-1 {
  width: 200px; height: 200px;
  background: var(--accent2);
  top: -18px; right: -22px;
  animation: blobMorph 15s ease-in-out infinite,
             blobFloat 10s ease-in-out infinite;
}
.about-blob-2 {
  width: 150px; height: 150px;
  background: var(--mint-deep);
  bottom: -20px; left: -26px;
  animation: blobMorphAlt 17s ease-in-out infinite,
             blobFloat 12s ease-in-out infinite reverse;
}

.about-headshot {
  position: relative;
  z-index: 1;
  width: 220px;
  height: 220px;
  object-fit: cover;
  object-position: top center;
  border-radius: 50%;
  border: 5px solid #fff;
  box-shadow: var(--shadow-lg);
}

.about-hero-text h1,
.about-hero-text h2 {
  font-family: "Fraunces", serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  color: var(--heading);
  letter-spacing: -0.02em;
  margin: 0.4rem 0 0.6rem;
  line-height: 1.1;
}
.about-hero-text h1 em,
.about-hero-text h2 em {
  font-style: italic;
  color: var(--accent2);
}

.about-hero-lede {
  color: var(--muted);
  font-size: 1.05rem;
  margin-top: 0.75rem;
  max-width: 540px;
  line-height: 1.8;
}

.about-body {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem 2.5rem;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}

.about-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}

.about-sidebar-title {
  font-family: "Fraunces", serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--accent-tint);
  color: var(--accent);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  transition: background 0.15s;
}

.skill-tag:hover { background: #EFD9CE; }

.about-main h3 {
  font-family: "Fraunces", serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.about-main h3:first-child { margin-top: 0; }

.about-main p {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* ============================================================
   PORTFOLIO PAGE
   ============================================================ */
.portfolio-hero {
  background: var(--bg);
  padding: 4.5rem 2.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.portfolio-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}
.portfolio-hero-inner .section-label { justify-content: center; }

.portfolio-hero-inner h1,
.portfolio-hero-inner h2 {
  font-family: "Fraunces", serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  color: var(--heading);
  margin: 0.4rem 0 0.6rem;
  letter-spacing: -0.02em;
}
.portfolio-hero-inner h1 em,
.portfolio-hero-inner h2 em {
  font-style: italic;
  color: var(--accent2);
}

.portfolio-hero-inner p {
  color: var(--muted);
  font-size: 1.05rem;
}

.portfolio-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem 2rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.portfolio-card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.portfolio-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ease);
}

.portfolio-card:hover img { transform: scale(1.04); }

.portfolio-card-info {
  padding: 1.25rem 1.4rem 1.5rem;
}

.portfolio-card-info h3 {
  font-family: "Fraunces", serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.portfolio-card-info p {
  font-size: 0.875rem;
  color: var(--muted);
}

/* Divider */
.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1rem 0 3rem;
}

/* ============================================================
   COLLATERAL FILTER + GRID
   ============================================================ */
.collateral-controls {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.collateral-controls button {
  background: var(--surface);
  border: 1.5px solid var(--border);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.87rem;
  color: var(--muted);
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease),
              background 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
  font-family: "Poppins", sans-serif;
}

.collateral-controls button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.07);
  border-color: var(--accent);
  color: var(--accent);
}

.collateral-controls button.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 6px 24px var(--accent-glow);
}

.collateral-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}

.collateral-card {
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.24s var(--ease), box-shadow 0.24s var(--ease);
  cursor: pointer;
}

.collateral-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.collateral-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: transform 0.35s var(--ease);
}

.collateral-card:hover img { transform: scale(1.05); }

.collateral-card-label {
  padding: 0.65rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.collateral-card[data-hidden="true"] { display: none; }

/* ============================================================
   PROJECT PAGES
   ============================================================ */
.project-hero {
  position: relative;
  height: 55vh;
  min-height: 360px;
  overflow: hidden;
}

.project-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,49,47,0.88) 0%, rgba(20,49,47,0.3) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3rem 3.5rem;
}

.project-hero-overlay h2 {
  font-family: "Fraunces", serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: #FBF7EF;
  letter-spacing: -0.02em;
  line-height: 1.2;
  max-width: 720px;
  margin-bottom: 0.5rem;
}

.project-hero-overlay p {
  color: #C4CFC9;
  font-size: 1rem;
}

.project-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 3.5rem 2rem 5rem;
}

.project-section {
  margin-bottom: 2.5rem;
}

.project-section h3 {
  font-family: "Fraunces", serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.project-section h3::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 1.2em;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}

.project-section p {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.8;
}

.project-section ul {
  list-style: disc;
  padding-left: 1.5rem;
  color: var(--text);
  font-size: 1rem;
  line-height: 2;
}

.project-section ul li a {
  color: var(--accent);
  font-weight: 600;
  transition: opacity 0.15s;
}

.project-section ul li a:hover { opacity: 0.75; }

.project-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--accent-tint);
  color: var(--accent);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
}

.project-gallery {
  margin-top: 3rem;
}

.project-gallery h3 {
  font-family: "Fraunces", serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.project-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.project-gallery-grid figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  cursor: zoom-in;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.project-gallery-grid figure:hover,
.project-gallery-grid figure:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  outline: none;
}

.project-gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}

.project-gallery-grid figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.4rem 0.85rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
  background: linear-gradient(to top, rgba(20,49,47,0.92), rgba(20,49,47,0));
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}

.project-gallery-grid figure:hover figcaption,
.project-gallery-grid figure:focus-visible figcaption {
  opacity: 1;
  transform: translateY(0);
}

.project-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.project-video-embed {
  position: relative;
  padding-top: 56.25%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.project-video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 3rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.93rem;
  transition: gap 0.2s var(--ease), opacity 0.15s;
}

.back-link:hover { gap: 0.65rem; opacity: 0.8; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
#lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5,3,15,0.92);
  z-index: 9999;
  padding: 1.5rem;
  backdrop-filter: blur(6px);
}

#lightbox.open { display: flex; }

.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  max-width: 900px;
  width: 100%;
  max-height: 90dvh;
}

#lightbox img {
  max-width: 94%;
  max-height: 90dvh;
  border-radius: var(--radius-sm);
  box-shadow: 0 24px 72px rgba(0,0,0,0.6);
  animation: lbFadeIn 0.2s var(--ease) both;
}

#lightbox .lightbox-content img {
  max-width: 100%;
  max-height: 62dvh;
}

.lightbox-info {
  text-align: center;
  max-width: 640px;
}

.lightbox-info h3 {
  font-family: "Fraunces", serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.lightbox-info p {
  color: rgba(255,255,255,0.72);
  font-size: 0.95rem;
  line-height: 1.55;
}

.lightbox-info .btn {
  margin-top: 1.1rem;
}

.lightbox-info .btn[hidden] {
  display: none;
}

@keyframes lbFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

#lightbox .close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  color: #fff;
  background: rgba(255,255,255,0.12);
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

#lightbox .close:hover { background: rgba(255,255,255,0.22); }

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  background: rgba(255,255,255,0.12);
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.15s;
  z-index: 1;
}

.lb-nav:hover { background: rgba(255,255,255,0.22); }
.lb-nav[hidden] { display: none; }
.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }

@media (min-width: 640px) {
  .lb-prev { left: 1.5rem; }
  .lb-next { right: 1.5rem; }
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.js .reveal {
  opacity: 0;
  transform: translateY(26px) scale(0.985);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.js .reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Auto-stagger children of a container marked .reveal-group */
.js .reveal-group > * {
  opacity: 0;
  transform: translateY(24px) scale(0.985);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.js .reveal-group.visible > * { opacity: 1; transform: none; }
.js .reveal-group.visible > *:nth-child(1) { transition-delay: 0.05s; }
.js .reveal-group.visible > *:nth-child(2) { transition-delay: 0.14s; }
.js .reveal-group.visible > *:nth-child(3) { transition-delay: 0.23s; }
.js .reveal-group.visible > *:nth-child(4) { transition-delay: 0.32s; }
.js .reveal-group.visible > *:nth-child(5) { transition-delay: 0.41s; }
.js .reveal-group.visible > *:nth-child(6) { transition-delay: 0.50s; }

/* Count-up numbers use tabular figures so they don't jitter while animating */
.about-stats .stat strong { font-variant-numeric: tabular-nums; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-text {
    padding: 4rem 2rem 2rem;
    text-align: center;
  }

  .hero-eyebrow { justify-content: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }

  .hero-image {
    padding: 0 2rem;
    justify-content: center;
  }

  .hero-image img {
    height: auto;
    max-width: 340px;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    padding: 3rem 2rem;
    gap: 2rem;
  }

  .about-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }

  .about-headshot-wrap { margin: 0 auto; }

  .about-hero-text p { margin-left: auto; margin-right: auto; }

  .about-body {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 3rem 1.5rem;
  }

  .about-sidebar { position: static; }

  .project-hero-overlay { padding: 2rem; }
}

@media (max-width: 640px) {
  :root { --nav-h: 64px; }

  .nav {
    height: auto;
    min-height: calc(var(--nav-h) - 20px);
    padding: 0.35rem 1.25rem;
  }
  .logo { font-size: 1.2rem; }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.5rem;
    gap: 0.25rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.28s var(--ease), opacity 0.28s var(--ease), visibility 0s linear 0.28s;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    z-index: 99;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition: transform 0.28s var(--ease), opacity 0.28s var(--ease), visibility 0s;
  }
  .nav-links a { padding: 0.65rem 1rem; border-radius: var(--radius-sm); }
  .nav-toggle { display: flex; }

  .hero-text { padding: 3rem 1.5rem 1.5rem; }

  .hero-image img { max-width: 280px; height: auto; }

  .section { padding: 3.5rem 1.25rem; }

  .portfolio-section { padding: 3rem 1.25rem; }

  .collateral-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.85rem;
  }

  .project-hero { height: 42vh; min-height: 280px; }

  .project-content { padding: 2.5rem 1.25rem 4rem; }

  .project-gallery-grid { grid-template-columns: 1fr 1fr; gap: 0.85rem; }
  .project-gallery-grid img { height: 160px; }

  .contact-inner { border-radius: var(--radius); padding: 2.5rem 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal,
  .js .reveal-group > * {
    opacity: 1;
    transform: none;
  }
}


/* ============================================================
   WORK MENU + INDUSTRY ARCHITECTURE
   ============================================================ */
.work-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.work-trigger {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}

.work-trigger::-webkit-details-marker { display: none; }

.work-caret {
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform 0.2s var(--ease);
}

.work-menu[open] .work-trigger,
.work-menu.is-current .work-trigger,
.work-trigger:hover {
  color: var(--accent);
  background: var(--accent-tint);
}

.work-menu[open] .work-caret {
  transform: rotate(-135deg) translate(-1px, -1px);
}

.work-panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: 320px;
  max-width: calc(100vw - 2rem);
  display: grid;
  gap: 0.15rem;
  padding: 0.75rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s var(--ease);
}

.work-menu[open] .work-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.work-panel::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  width: 12px;
  height: 12px;
  transform: translateX(-50%) rotate(45deg);
  background: #fff;
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
}

.work-panel-label {
  padding: 0.25rem 0.7rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.work-panel > a {
  display: grid;
  gap: 0.1rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.7rem;
  color: var(--text);
  transition: background 0.15s var(--ease);
}

.work-panel > a strong {
  font-size: 0.92rem;
  font-weight: 600;
}

.work-panel > a span {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

.work-panel > a:hover {
  background: var(--accent-tint);
}

.work-panel > a:hover strong { color: var(--accent); }

.work-panel-all {
  margin-top: 0.25rem;
  padding-top: 0.7rem !important;
  border-top: 1px solid var(--border);
  font-weight: 600;
  color: var(--accent) !important;
}

.work-panel-all:hover { background: var(--accent-tint); }

.hero-range {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 0 2rem;
  padding: 0;
}

.hero-range li {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: #EAE2D5;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.industry-preview-section {
  background: linear-gradient(180deg, var(--mint), rgba(255,255,255,0));
}

.industry-preview-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.industry-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.industry-preview-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  padding: 1.5rem 1.4rem;
  border: none;
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.industry-preview-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.industry-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--dark);
  font-family: "Fraunces", serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  color: #fff;
  margin-bottom: 1rem;
}
.industry-preview-card.is-ready .industry-number { background: var(--accent2); }

.industry-preview-card h3 {
  font-family: "Fraunces", serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 0.6rem;
}

.industry-preview-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.industry-status {
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

.industry-preview-card:not(.is-ready) .industry-status {
  color: var(--muted);
}

.approach-preview {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  max-width: var(--max-w);
  margin: 0 auto;
  align-items: start;
}

.approach-copy p:last-of-type {
  color: var(--muted);
  margin-top: 0.7rem;
}

.text-link {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--accent);
  font-weight: 600;
}

.approach-pillars {
  display: grid;
  gap: 0.85rem;
}

.approach-pillars > div {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.approach-pillars strong {
  color: var(--accent);
  font-size: 1rem;
}

.approach-pillars span {
  color: var(--text);
  font-weight: 600;
}

.contact-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7FD1C9;
  margin-bottom: 0.65rem;
}

.contact-resume {
  margin-top: 1rem;
  color: #EFE7DA;
}

.portfolio-intro {
  margin-bottom: 2rem;
}

.industry-section {
  padding: 2rem 0 0;
}

.industry-heading {
  max-width: 760px;
  margin-bottom: 1.2rem;
}

.industry-heading h3 {
  font-family: "Fraunces", serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.industry-heading p:last-child {
  color: var(--muted);
  line-height: 1.75;
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}

.portfolio-card-placeholder {
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(15,118,110,0.08), rgba(255,255,255,0.95));
}

.browse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.browse-card {
  padding: 1.2rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.browse-card[data-hidden="true"] { display: none; }

.browse-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.browse-badge {
  display: inline-block;
  margin-bottom: 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.browse-card h4 {
  font-family: "Fraunces", serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.45rem;
}

.browse-card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ============================================================
   PORTFOLIO GALLERIES (real work)
   ============================================================ */
.industry-section[data-hidden="true"] { display: none; }

.featured-cases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.2rem;
  margin-bottom: 1.6rem;
}

.gallery-grid {
  columns: 4 220px;
  column-gap: 1rem;
  margin-top: 0.4rem;
}

.gallery-item {
  position: relative;
  margin: 0 0 1rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  cursor: zoom-in;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
  display: block;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
}

.gallery-item[data-hidden="true"] { display: none; }

.gallery-item:hover,
.gallery-item:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  outline: none;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  background: var(--accent-tint);
}

.gallery-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.4rem 0.85rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
  background: linear-gradient(to top, rgba(20,49,47,0.92), rgba(20,49,47,0));
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}

.gallery-item:hover figcaption,
.gallery-item:focus-visible figcaption {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item.pdf-card { cursor: pointer; }
.gallery-item.pdf-card img { object-fit: contain; padding: 0.5rem; background: #fff; }

/* Inline video card: plays in place rather than opening the lightbox. */
.gallery-item.gallery-video { cursor: default; }
.gallery-item.gallery-video:hover,
.gallery-item.gallery-video:focus-within {
  transform: none;
  box-shadow: var(--shadow);
}
.gallery-video-embed {
  position: relative;
  padding-top: 56.25%;
}
.gallery-video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.gallery-item.gallery-video figcaption {
  position: static;
  opacity: 1;
  transform: none;
  background: none;
  color: var(--text);
  padding: 0.7rem 0.85rem 0.9rem;
}

.pdf-badge {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  background: var(--accent2, #C25A3C);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

@media (max-width: 900px) {
  .approach-preview {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.5rem;
    gap: 0.25rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.28s var(--ease), opacity 0.28s var(--ease), visibility 0s linear 0.28s;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    z-index: 99;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition: transform 0.28s var(--ease), opacity 0.28s var(--ease), visibility 0s;
  }
  .nav-links a,
  .work-trigger {
    padding: 0.65rem 1rem;
    border-radius: var(--radius-sm);
  }

  .nav-links a { color: var(--text); }
  .nav-links a:hover,
  .nav-links a.active {
    color: var(--accent);
    background: var(--accent-tint);
  }
  .nav-links a.linkedin { color: #fff; }
  .nav-links a.linkedin:hover { color: #fff; }

  .nav-links .theme-toggle { color: var(--text); background: var(--accent-tint); }
  .nav-links .theme-toggle:hover { background: var(--mint); }

  .work-menu { display: block; }

  .work-panel,
  .work-menu[open] .work-panel {
    position: static;
    transform: none;
    width: auto;
    max-width: none;
    margin-top: 0.35rem;
    box-shadow: none;
    border: 1px solid var(--border);
    opacity: 1;
    visibility: visible;
  }

  .work-menu:not([open]) .work-panel { display: none; }

  .work-panel::before { display: none; }

  .hero-range {
    margin-bottom: 1.4rem;
  }
}

/* ============================================================
   ABOUT: LIST, STATS, TIMELINE
   ============================================================ */
.about-list {
  list-style: none;
  margin: 0 0 0.5rem;
  padding: 0;
}
.about-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.6rem;
  color: var(--muted);
  line-height: 1.65;
}
.about-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent2);
}

.about-stats {
  background: var(--dark);
  color: #fff;
  margin-top: 3.5rem;
}
.about-stats-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.about-stats .stat strong {
  display: block;
  font-family: "Fraunces", serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.about-stats .stat strong span { color: var(--gold); }
.about-stats .stat-label {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.78);
  letter-spacing: 0.02em;
}

.timeline-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}
.timeline-head .section-title { margin-top: 0.5rem; }

.timeline-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem 1.5rem 1rem;
}
.timeline-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.timeline {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  position: relative;
}
.timeline li {
  position: relative;
  padding-left: 1.6rem;
  padding-bottom: 1.6rem;
  border-left: 2px solid var(--border);
}
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0.2rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 2px var(--accent-tint);
}
.timeline-date {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent2);
}
.timeline li h4 {
  font-family: "Fraunces", serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 0.25rem 0 0.15rem;
}
.timeline li p {
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 760px) {
  .about-stats-inner { grid-template-columns: 1fr 1fr; gap: 2rem 1rem; }
  .timeline-columns { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ============================================================
   CASE STUDY LAYOUT
   ============================================================ */
.cs-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,49,47,0.92) 0%, rgba(20,49,47,0.4) 55%, rgba(20,49,47,0.15) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3rem 3.5rem;
}
.cs-hero-overlay .cs-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #F2D8C4;
  margin-bottom: 0.8rem;
}
.cs-hero-overlay .cs-eyebrow::before {
  content: "";
  width: 26px; height: 3px;
  border-radius: 3px;
  background: var(--accent2);
}
.cs-hero-overlay h1 {
  font-family: "Fraunces", serif;
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  font-weight: 700;
  color: #FBF7EF;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 760px;
  margin-bottom: 0.6rem;
}
.cs-hero-overlay h1 em { font-style: italic; color: var(--accent2); }
.cs-hero-overlay .cs-hero-sub {
  color: #C4CFC9;
  font-size: 1.05rem;
  max-width: 620px;
}

/* Facts bar */
.cs-facts {
  max-width: 960px;
  margin: -2.5rem auto 0;
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cs-fact {
  background: var(--surface);
  padding: 1.4rem 1.5rem;
}
.cs-fact dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 0.4rem;
}
.cs-fact dd {
  font-family: "Fraunces", serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.35;
}

.cs-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 3.5rem 2rem 2rem;
}

/* Narrative block with big number */
.cs-block { margin-bottom: 3rem; }
.cs-block-label {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
}
.cs-block-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--mint);
  color: var(--heading);
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 1.05rem;
}
.cs-block-label h2 {
  font-family: "Fraunces", serif;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  color: var(--heading);
  letter-spacing: -0.01em;
}
.cs-block-label h2 em { font-style: italic; color: var(--accent2); }
.cs-block p {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.85;
  margin-bottom: 1rem;
}

/* Strategy pillars */
.cs-pillars {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.75rem;
}
.cs-pillars li {
  position: relative;
  padding: 0.9rem 1.1rem 0.9rem 2.6rem;
  background: var(--mint);
  border-radius: var(--radius-sm);
  color: var(--heading);
  font-size: 0.98rem;
  line-height: 1.6;
}
.cs-pillars li::before {
  content: "";
  position: absolute;
  left: 1.1rem;
  top: 1.35rem;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent2);
}
.cs-pillars li strong { color: var(--heading); }

/* Pull quote */
.cs-quote {
  margin: 3.5rem 0;
  padding: 2rem 2.5rem;
  border-left: 4px solid var(--accent2);
  background: linear-gradient(90deg, var(--peach), rgba(242,216,196,0));
  border-radius: 0 var(--radius) var(--radius) 0;
}
.cs-quote p {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  font-weight: 700;
  color: var(--heading);
  line-height: 1.45;
}
.cs-quote p em { color: var(--accent2-dim); font-style: italic; }

/* Impact highlight cards */
.cs-impact-band {
  background: var(--dark);
  padding: 3.5rem 2rem;
  margin-top: 1rem;
}
.cs-impact-inner { max-width: 960px; margin: 0 auto; }
.cs-impact-inner > .section-label { color: #F2D8C4; }
.cs-impact-inner > .section-label::before { background: var(--accent2); }
.cs-impact-inner > h2 {
  font-family: "Fraunces", serif;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 700;
  color: #FBF7EF;
  margin-bottom: 2rem;
}
.cs-impact-inner > h2 em { font-style: italic; color: var(--accent2); }
.cs-impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.cs-impact-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
}
.cs-impact-card .cs-impact-num {
  display: block;
  font-family: "Fraunces", serif;
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.7rem;
}
.cs-impact-card p {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Next project CTA */
.cs-next {
  max-width: 860px;
  margin: 3.5rem auto 0;
  padding: 0 2rem;
}
.cs-next a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.6rem 2rem;
  background: var(--mint);
  border-radius: var(--radius);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.cs-next a:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.cs-next .cs-next-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent2);
  display: block;
  margin-bottom: 0.3rem;
}
.cs-next .cs-next-title {
  font-family: "Fraunces", serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--heading);
}
.cs-next .cs-next-arrow {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent2);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

@media (max-width: 760px) {
  .cs-hero-overlay { padding: 2rem 1.5rem; }
  .cs-facts { grid-template-columns: 1fr 1fr; margin-top: 0; border-radius: 0; }
  .cs-impact-grid { grid-template-columns: 1fr; }
  .cs-content { padding: 2.5rem 1.25rem 2rem; }
  .cs-quote { padding: 1.5rem 1.5rem; margin: 2.5rem 0; }
}

.project-section-links {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}
.project-section-links li { margin-bottom: 0.6rem; }
.project-section-links a {
  color: var(--accent);
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.15s;
}
.project-section-links a:hover { color: var(--accent2); }

/* ============================================================
   TRUSTED-BY STRIP
   ============================================================ */
.trusted-strip {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.trusted-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.4rem;
}
.trusted-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem 2.5rem;
}
.trusted-list li {
  font-family: "Fraunces", serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--heading);
  opacity: 0.55;
  transition: opacity 0.2s var(--ease), color 0.2s var(--ease);
}
.trusted-list li:hover { opacity: 1; color: var(--accent2); }

@media (max-width: 760px) {
  .trusted-list { gap: 0.8rem 1.5rem; }
  .trusted-list li { font-size: 0.95rem; }
}

/* ============================================================
   DARK THEME
   ============================================================ */
[data-theme="dark"] {
  --bg:          #0F211E;
  --surface:     #17302B;
  --heading:     #EAF3F0;   /* headings/text go light */
  --text:        #D3E0DC;
  --muted:       #9DB0AB;
  --border:      rgba(255,255,255,0.10);
  --accent:      #6FD7C8;   /* brighten teal for dark bg contrast */
  --accent-dim:  #4FB9AB;
  --accent-tint: #1E3B36;   /* mint-as-surface -> dark tint */
  --mint:        #1E3B36;
  --mint-deep:   #26463F;
  --peach:       #2A3D33;   /* handle bar -> dark surface */
  --shadow:      0 4px 20px rgba(0,0,0,0.35);
  --shadow-lg:   0 12px 48px rgba(0,0,0,0.5);
}

/* Keep the dark bands distinct from the page background in dark mode */
[data-theme="dark"] .about-stats,
[data-theme="dark"] .cs-impact-band { background: #16302C; }
[data-theme="dark"] .nav { background: #16302C; }

/* Impact cards need a touch more separation on an already-dark band */
[data-theme="dark"] .cs-impact-card { background: rgba(255,255,255,0.04); }

/* Hero + section gradients that assumed a white page */
[data-theme="dark"] .industry-preview-section {
  background: linear-gradient(180deg, rgba(28,107,96,0.12), rgba(15,33,30,0));
}
[data-theme="dark"] .cs-quote {
  background: linear-gradient(90deg, rgba(232,110,81,0.14), rgba(15,33,30,0));
}

/* PDF cards render on white paper — preserve that in dark mode */
[data-theme="dark"] .gallery-item.pdf-card img { background: #fff; }

/* Dark-mode contrast fixes: bright-teal surfaces need dark text; coral text
   on dark peach pill needs to lighten to stay legible. */
[data-theme="dark"] .collateral-controls button.active { color: #0F211E; }
[data-theme="dark"] .contact-handle-tag { color: #F2C6B4; }

/* Theme toggle button */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  flex-shrink: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.theme-toggle:hover { background: rgba(255,255,255,0.22); transform: translateY(-1px); }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: inline; }
[data-theme="dark"] .theme-toggle .icon-sun { display: inline; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ============================================================
   SCROLL PROGRESS BAR
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--accent2), var(--gold));
  z-index: 999;
  transition: width 0.08s linear;
  pointer-events: none;
}

/* ============================================================
   PORTFOLIO FILTER — feedback + featured toggle
   ============================================================ */
.featured-cases[data-hidden="true"] { display: none; }

.filter-count {
  margin: 0.9rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent2);
}
