/* ============================================================
   SELF-HOSTED FONTS
   All fonts previously loaded from fonts.googleapis.com are
   now served locally from /fonts/ — no external CDN dependency.
   ============================================================ */

/* Barlow 900 */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('/fonts/barlow-900-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('/fonts/barlow-900-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('/fonts/barlow-900-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* Inter 300–600 (variable font — one file per subset covers all weights) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('/fonts/inter-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('/fonts/inter-greek-ext.woff2') format('woff2');
  unicode-range: U+1F00-1FFF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('/fonts/inter-greek.woff2') format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('/fonts/inter-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('/fonts/inter-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* Playfair Display normal 700 + 900 (variable — one file per subset covers both weights) */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
  src: url('/fonts/playfair-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
  src: url('/fonts/playfair-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
  src: url('/fonts/playfair-normal-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
  src: url('/fonts/playfair-normal-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* Playfair Display italic 700 + 900 (variable — one file per subset covers both weights) */
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 700 900;
  font-display: swap;
  src: url('/fonts/playfair-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 700 900;
  font-display: swap;
  src: url('/fonts/playfair-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 700 900;
  font-display: swap;
  src: url('/fonts/playfair-italic-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 700 900;
  font-display: swap;
  src: url('/fonts/playfair-italic-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; background: #F5EAD6; color: #1D4D2A; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.marquee-wrap { overflow: hidden; position: relative; }
.font-display { font-family: 'Barlow', sans-serif; }
.font-black   { font-family: 'Barlow', sans-serif; font-weight: 900; }

.btn-outline-dark {
  border: 1px solid #1D4D2A;
  color: #1D4D2A;
  background: transparent;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 10px 36px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-decoration: none;
  display: inline-block;
}
.btn-outline-dark:hover { background: #1D4D2A; color: #F5EAD6; }

.btn-outline-light {
  border: 1px solid #F5EAD6;
  color: #F5EAD6;
  background: transparent;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 10px 36px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-decoration: none;
  display: inline-block;
}
.btn-outline-light:hover { background: #F5EAD6; color: #1D4D2A; }

.nav-pill-link {
  color: #F5EAD6;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s, transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav-pill-link:hover { background: #F5EAD6; color: #1D4D2A; }

.btn-circle {
  width: 32px;
  height: 32px;
  border: 1px solid #1D4D2A;
  color: #1D4D2A;
  background: transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 1;
  transition: background 0.2s, color 0.2s, transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.btn-circle:hover { background: #1D4D2A; color: #F5EAD6; }

/* ── Scroll progress bar ── */
.progress-container {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  z-index: 150;
  pointer-events: none;
}
.progress-bar {
  height: 100%;
  width: 0%;
  transition: background-color 0.3s ease;
}
/* green section → cream bar; cream section → green bar */
.progress-container.is-cream .progress-bar { background: #F5EAD6; }
.progress-container.is-green .progress-bar { background: #1D4D2A; }

/* ── Nav overlay ── */
#nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: #1D4D2A;
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
#nav-overlay.open { display: flex; }
#nav-overlay a {
  font-family: 'Barlow', sans-serif;
  font-weight: 900;
  font-size: clamp(36px, 6vw, 64px);
  text-transform: uppercase;
  color: #F5EAD6;
  text-decoration: none;
  letter-spacing: 0.04em;
  /* Mask: clip the sliding inner span */
  display: block;
  overflow: hidden;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
  opacity: 0.9;
  transition: opacity 0.15s, transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
#nav-overlay a:hover { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  #nav-overlay a:hover { transform: scale(1.07); }
}

/* Inner span starts below its mask and slides up on open */
.nav-link-inner {
  display: block;
  transform: translateY(110%);
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
/* Staggered reveal when .nav-anim is applied */
#nav-overlay.nav-anim .nav-link-inner           { transform: translateY(0); }
#nav-overlay.nav-anim a:nth-child(2) .nav-link-inner { transition-delay: 0.08s; }
#nav-overlay.nav-anim a:nth-child(3) .nav-link-inner { transition-delay: 0.16s; }
#nav-overlay.nav-anim a:nth-child(4) .nav-link-inner { transition-delay: 0.24s; }
#nav-overlay.nav-anim a:nth-child(5) .nav-link-inner { transition-delay: 0.32s; }

/* ── Hamburger button ── */
#nav-open {
  position: fixed;
  top: 24px;
  right: 20px;
  z-index: 300;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 30px;
}
#nav-open .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #F5EAD6;
  border-radius: 1px;
  transform-origin: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}
/* Dynamic color — matches progress bar logic but ~40px ahead */
#nav-open.nav-is-green .bar  { background: #1D4D2A; }
/* When overlay is open, bars always appear cream (on green overlay bg) */
#nav-open.active .bar        { background: #F5EAD6; }
/* X state — translateY recalculated for height:2px + gap:5px → center offset = 7px */
#nav-open.active .bar-top    { transform: translateY(7px) rotate(45deg); }
#nav-open.active .bar-mid    { opacity: 0; transform: scaleX(0); }
#nav-open.active .bar-bot    { transform: translateY(-7px) rotate(-45deg); }

/* ── Skills slider ── */
.skill-card {
  flex: 0 0 calc(25% - 12px);
  background: #1D4D2A;
  border-radius: 14px;
  padding: 22px 18px;
  color: #F5EAD6;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  user-select: none;
  transition: filter 0.25s ease;
}
@media (hover: hover) and (pointer: fine) {
  .skill-card { cursor: pointer; }
  .skill-card:hover { filter: brightness(1.12); }
}
.skill-name {
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.25;
}
.skill-bullets {
  list-style: disc;
  padding-left: 14px;
  font-size: 11px;
  line-height: 1.65;
  opacity: 0.78;
  flex: 1;
}
.skill-bullets li + li { margin-top: 6px; }
.skill-num {
  font-size: 10px;
  opacity: 0.32;
  letter-spacing: 0.08em;
  align-self: flex-end;
}
.skill-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1.5px solid #1D4D2A;
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}
.skill-dot.active { background: #1D4D2A; }
@media (max-width: 600px) {
  .skill-card { flex: 0 0 100%; }
}

/* ── Word-reveal animation ── */
.word-reveal {
  display: inline-block;
  opacity: 0;
  filter: blur(4px);
  transform: translateY(10px);
  transition:
    opacity  0.55s cubic-bezier(0.215, 0.61, 0.355, 1),
    filter   0.55s cubic-bezier(0.215, 0.61, 0.355, 1),
    transform 0.55s cubic-bezier(0.215, 0.61, 0.355, 1);
}
.word-reveal.word-active {
  opacity: 1;
  filter: blur(0px);
  transform: translateY(0);
}

/* ── Hover lift base — defined BEFORE reveal-el so reveal-el's transition wins
      on elements that carry both classes ── */
.hover-lift {
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
/* Inline elements need block formatting for transform to work in all browsers */
span.hover-lift { display: inline-block; }

/* ── Universal scroll reveal ── */
.reveal-el {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-el.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Fade-only variant for elements with overflow:hidden (avoids clipping artefact) */
.reveal-fade {
  opacity: 0;
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-fade.is-visible { opacity: 1; }

/* ── Hover lift interactive (desktop pointer only) ── */
@media (hover: hover) and (pointer: fine) {
  .hover-lift { cursor: pointer; }
  /* inline elements need inline-block for transform to apply */
  span.hover-lift { display: inline-block; }
  .hover-lift:hover { transform: translateY(0) scale(1.04); position: relative; z-index: 2; }
  .btn-outline-dark:hover  { transform: scale(1.04); position: relative; z-index: 2; }
  .btn-outline-light:hover { transform: scale(1.04); position: relative; z-index: 2; }
  .nav-pill-link:hover     { transform: scale(1.04); position: relative; z-index: 2; }
  .btn-circle:hover        { transform: scale(1.04); position: relative; z-index: 2; }
}

/* ── Hero name slide-up mask ── */
.name-mask {
  display: inline-block;
  overflow: hidden;
  /* Extra room below the baseline so descenders ('y') aren't clipped */
  padding-bottom: 0.18em;
  margin-bottom: -0.18em;
  vertical-align: top;
}
.name-word {
  display: block;
  transform: translateY(110%);
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.name-word.name-visible {
  transform: translateY(0);
}
#name-duffy { transition-delay: 0.1s; }

/* ── Hero name hover (scale entire h1) ── */
.hero-name {
  display: inline-block;
  transform-origin: center;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
@media (hover: hover) and (pointer: fine) {
  .hero-name:hover { transform: scale(1.07); }
}

@media (max-width: 640px) {
  /* Projects: 3-col → 1-col */
  #projects-grid {
    grid-template-columns: 1fr !important;
  }

  /* Contact pill: side-by-side → stacked */
  #contact-pill {
    flex-direction: column !important;
    min-height: unset !important;
  }
  #contact-photo {
    width: 100% !important;
    padding: 16px 16px 0 !important;
  }
  #contact-photo img {
    height: 220px !important;
    width: 100% !important;
  }
  #contact-form-col {
    padding: 20px 20px 24px !important;
  }



  /* About content: stack headshot above bio on mobile */
  #about-content { flex-direction: column !important; gap: 24px !important; }
  #about-content > div:first-child { width: 100% !important; }

  /* Footer nav pill: tighten gap + padding to prevent link wrapping */
  #footer-nav-pill { gap: 10px !important; padding: 8px 14px !important; }

  /* Image strip: 3-col grid → horizontal swipe scroll */
  #image-strip {
    display: flex !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 8px !important;
    padding: 0 16px !important;
  }
  #image-strip a {
    flex: 0 0 160px !important;
    display: block;
  }
  #image-strip img {
    width: 160px !important;
    height: 120px !important;
    scroll-snap-align: start;
  }
  /* Un-hide images 4 and 5 (previously hidden in the 3-col grid layout) */
  #image-strip a:nth-child(4),
  #image-strip a:nth-child(5) {
    display: block !important;
  }
}

/* ── Case study / photography back-link ── */
.cs-back-link {
  color: #F5EAD6;
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.75;
  transition: opacity 0.2s;
}
.cs-back-link:hover { opacity: 1; }

/* ── Contact form ── */
.contact-input {
  border: 1px solid rgba(29,77,42,0.35);
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 12px;
  font-family: 'Inter', sans-serif;
  background: transparent;
  color: #1D4D2A;
  outline: none;
  width: 100%;
  transition: border-color 0.2s;
}
.contact-input:focus { border-color: #1D4D2A; }
.contact-input::placeholder { opacity: 0.5; }
textarea.contact-input { resize: none; }

/* ============================================================
   BODY VARIANTS
   ============================================================ */
/* Photography page — green bg, cream text */
.body-green { background: #1D4D2A; color: #F5EAD6; overflow-x: hidden; }
/* Success page — green bg, centered content */
.body-success { background: #1D4D2A; color: #F5EAD6; min-height: 100vh; display: flex; align-items: center; justify-content: center; }

/* ============================================================
   MARQUEE TICKERS  (index.html)
   ============================================================ */
.marquee-cream-bordered { background: #F5EAD6; border-top: 1px solid rgba(29,77,42,0.18); }
.marquee-cream          { background: #F5EAD6; }
.marquee-contact        { background: #1D4D2A; border-top: 1px solid rgba(245,234,214,0.25); margin-bottom: 16px; color: #F5EAD6; }

/* Ticker text — probe is measured inside the wrap so these rules apply to both
   the probe (accurate measurement) and the JS-created spans (correct rendering) */
.marquee-projects span,
.marquee-about    span {
  color: #1D4D2A; font-size: 14px; font-weight: 600;
  letter-spacing: 0.25em; text-transform: uppercase;
}
.marquee-skills  span {
  color: #1D4D2A; font-size: 14px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
}
.marquee-contact span {
  color: #F5EAD6; font-size: 14px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
}

/* ============================================================
   HERO  (index.html)
   ============================================================ */
.hero       { background: #1D4D2A; min-height: 58vh; display: flex; flex-direction: column; padding: 24px 20px 32px; }
.hero-inner { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px 0 8px; }
.hero-title { color: #F5EAD6; font-size: clamp(72px,17vw,172px); line-height: 0.88; text-align: center; text-transform: uppercase; }

/* ============================================================
   PROJECTS GRID  (index.html)
   ============================================================ */
#work         { background: #F5EAD6; padding: 36px 8px; }
#projects-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; margin: 0 0 24px; }

.proj-card    { border-radius: 4px; padding: 22px 18px; display: flex; flex-direction: column; gap: 12px; min-height: 240px; text-decoration: none; cursor: pointer; }
#projects-grid a:nth-child(1) { background: #1D4D2A; }
#projects-grid a:nth-child(2) { background: #2c6040; }
#projects-grid a:nth-child(3) { background: #3a7050; }

.proj-card-hd { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 4px; }
.proj-tag     { color: #F5EAD6; font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.65; background: rgba(245,234,214,0.15); padding: 2px 8px; border-radius: 999px; }
.proj-date    { color: #F5EAD6; font-size: 9px; opacity: 0.5; white-space: nowrap; }
.proj-title   { color: #F5EAD6; font-size: 18px; text-transform: uppercase; line-height: 1.0; margin: 0; }
.proj-bullets { color: #F5EAD6; font-size: 11.5px; line-height: 1.65; opacity: 0.82; padding-left: 14px; margin: 0; display: flex; flex-direction: column; gap: 5px; }
.proj-more    { margin-top: auto; padding-top: 12px; }
.proj-link    { color: #F5EAD6; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.7; border-bottom: 1px solid rgba(245,234,214,0.35); padding-bottom: 2px; }

.flex-center  { display: flex; justify-content: center; }

/* ============================================================
   ABOUT  (index.html)
   ============================================================ */
#about         { background: #1D4D2A; padding: 56px 36px 64px; position: relative; }
#about-content { max-width: 860px; margin: 0 auto; display: flex; gap: 48px; align-items: flex-start; }
.headshot-wrap { flex-shrink: 0; width: 280px; }
#about-headshot{ width: 100%; height: auto; border-radius: 12px; display: block; }
.bio-col       { flex: 1; display: flex; flex-direction: column; gap: 16px; padding-top: 4px; }
#about-bio     { color: #F5EAD6; font-size: 14px; line-height: 1.85; opacity: 0.85; }
#about-facts   { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.facts-label   { color: #F5EAD6; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.5; }
.facts-list    { display: flex; flex-direction: column; gap: 8px; }
.fact-row      { display: flex; gap: 8px; color: #F5EAD6; font-size: 13px; line-height: 1.6; opacity: 0.85; }
.fact-bullet   { flex-shrink: 0; }

/* ============================================================
   SKILLS  (index.html)
   ============================================================ */
#skills          { background: #F5EAD6; padding: 48px 20px 52px; }
.skills-row      { display: flex; align-items: center; gap: 12px; max-width: 860px; margin: 0 auto 16px; }
#skills-viewport { flex: 1; overflow: hidden; }
#skills-track    { display: flex; gap: 16px; will-change: transform; transition: transform 0.4s cubic-bezier(0.4,0,0.2,1); }
#skills-dots     { display: flex; justify-content: center; gap: 6px; margin-bottom: 32px; }

/* ============================================================
   CONTACT  (index.html)
   ============================================================ */
#contact          { background: #1D4D2A; padding-bottom: 32px; }
#contact-pill     { margin: 0 12px; border-radius: 20px; overflow: hidden; display: flex; min-height: 320px; background: #F5EAD6; }
#contact-photo    { width: 45%; flex-shrink: 0; padding: 24px; display: flex; align-items: center; }
#contact-photo a  { display: block; width: 100%; height: 100%; }
#contact-photo img{ width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 16px; cursor: pointer; }
#contact-form-col { flex: 1; background: #F5EAD6; padding: 28px 24px; display: flex; flex-direction: column; justify-content: center; }
.contact-avail    { color: #1D4D2A; font-size: 12px; text-transform: uppercase; letter-spacing: 0.2em; opacity: 0.55; margin-bottom: 6px; }
.contact-heading  { color: #1D4D2A; font-weight: 900; font-size: clamp(20px,2.8vw,30px); text-transform: uppercase; line-height: 1.05; margin-bottom: 16px; }
#contact-form     { display: flex; flex-direction: column; gap: 10px; }
#bot-field        { position: absolute; left: -9999px; visibility: hidden; }
.contact-form-btns{ display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.btn-form         { padding: 8px 28px; }
#form-error       { color: #c0392b; font-size: 11px; display: none; margin-top: 4px; }
#form-error a     { color: #1D4D2A; text-decoration: underline; }

/* ============================================================
   BOTTOM — IMAGE STRIP + CTA + FOOTER  (index.html)
   ============================================================ */
#bottom               { background: #1D4D2A; }
#image-strip          { display: grid; grid-template-columns: repeat(5,1fr); gap: 6px; padding: 0 16px; }
#image-strip img      { width: 100%; height: 112px; object-fit: cover; border-radius: 10px; cursor: pointer; }
#image-strip a:nth-child(4) img { object-position: bottom; }
.cta-block            { padding: 64px 24px 48px; text-align: center; }
.cta-title            { color: #F5EAD6; font-size: clamp(32px,8vw,90px); text-transform: uppercase; margin-bottom: 36px; line-height: 0.95; }
.cta-icon-row         { margin-top: 32px; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.cta-icon             { width: 40px; }
.btn-padded           { padding: 10px 28px; }
footer                { padding: 0 32px 20px; }
.footer-nav-wrap      { display: flex; justify-content: center; margin-bottom: 12px; }
#footer-nav-pill      { border: 1px solid rgba(245,234,214,0.5); border-radius: 999px; padding: 10px 22px; display: flex; align-items: center; gap: 18px; }
.footer-copy          { color: #F5EAD6; font-size: 9px; text-align: center; opacity: 0.35; letter-spacing: 0.05em; }

/* ============================================================
   SHARED CASE-STUDY / PHOTOGRAPHY NAV
   ============================================================ */
.cs-nav          { background: #1D4D2A; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 100; }
.cs-nav--bordered{ border-bottom: 1px solid rgba(245,234,214,0.1); }
.cs-nav-label    { color: #F5EAD6; font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.4; }
.btn-sm          { padding: 7px 20px; font-size: 10px; }

/* ============================================================
   CASE STUDY PAGE LAYOUT
   ============================================================ */
.cs-header        { padding: 64px 24px 56px; max-width: 860px; margin: 0 auto; }
.cs-section       { padding: 64px 24px; max-width: 860px; margin: 0 auto; }
.cs-section-green { padding: 64px 24px; background: #1D4D2A; color: #F5EAD6; }
.cs-inner         { max-width: 860px; margin: 0 auto; }
.cs-stats-section { background: #1D4D2A; color: #F5EAD6; padding: 48px 24px; }
.cs-stats-grid    { max-width: 860px; margin: 0 auto; display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; text-align: center; }
.cs-tech-section  { padding: 48px 24px; max-width: 860px; margin: 0 auto; }

/* ── Divider ── */
.cs-divider { border: none; border-top: 1px solid rgba(29,77,42,0.15); margin: 0; }

/* ── Stat tiles ── */
.cs-stat-num   { font-family: 'Barlow', sans-serif; font-weight: 900; font-size: clamp(36px,6vw,64px); line-height: 1; color: #F5EAD6; }
.cs-stat-label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #F5EAD6; opacity: 0.65; margin-top: 6px; }

/* ── Step watermark number ── */
.cs-step-num { font-family: 'Barlow', sans-serif; font-weight: 900; font-size: 48px; line-height: 1; color: #1D4D2A; opacity: 0.12; position: absolute; top: -8px; left: 0; }

/* ── Finding bar fill ── */
.cs-finding-bar { height: 6px; border-radius: 999px; background: #1D4D2A; transition: width 1s cubic-bezier(0.16,1,0.3,1); }

/* ── Tag pills ── */
.tag-pill { display: inline-block; font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: #1D4D2A; border: 1px solid rgba(29,77,42,0.3); border-radius: 999px; padding: 3px 10px; }

/* ── Section text ── */
.cs-tag-row    { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.cs-tags       { display: flex; flex-wrap: wrap; gap: 10px; }
.cs-hero-title { font-size: clamp(40px,8vw,88px); text-transform: uppercase; line-height: 0.92; margin-bottom: 24px; }
.cs-intro      { font-size: 15px; line-height: 1.75; max-width: 600px; opacity: 0.75; }
.cs-em         { opacity: 1; color: #1D4D2A; }

/* ── Section labels (default mb=12; modifier classes override) ── */
.cs-label    { font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.5; margin-bottom: 12px; }
.cs-label-sm { margin-bottom: 8px; }
.cs-label-lg { margin-bottom: 36px; }
.cs-label-md { margin-bottom: 20px; }

/* ── Section headings ── */
.cs-section-title    { font-size: clamp(24px,4vw,38px); font-weight: 900; line-height: 1.1; margin-bottom: 20px; }
.cs-section-title-lg { font-size: clamp(24px,4vw,38px); font-weight: 900; line-height: 1.1; margin-bottom: 36px; }

/* ── Body copy ── */
.cs-body      { font-size: 14px; line-height: 1.8; opacity: 0.72; max-width: 640px; }
.cs-body-mb   { margin-bottom: 16px; }
.cs-body-mb-lg{ margin-bottom: 32px; }

/* ── Two-up data cards ── */
.cs-data-grid  { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; margin-bottom: 24px; }
.cs-card-dark  { background: #1D4D2A; border-radius: 10px; padding: 20px 18px; color: #F5EAD6; }
.cs-card-mid   { background: #2c6040; border-radius: 10px; padding: 20px 18px; color: #F5EAD6; }
.cs-card-label { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; opacity: 0.55; margin-bottom: 8px; }
.cs-card-text  { font-size: 13px; line-height: 1.7; opacity: 0.85; }

/* ── Methodology steps ── */
.cs-steps      { display: flex; flex-direction: column; gap: 40px; }
.cs-step       { position: relative; padding-left: 64px; }
.cs-step-title { font-weight: 700; font-size: 18px; margin-bottom: 8px; }
.cs-step-body  { font-size: 13px; line-height: 1.75; opacity: 0.72; max-width: 580px; }

/* ── Key findings / outcome bars ── */
.cs-findings      { display: flex; flex-direction: column; gap: 28px; }
.cs-finding-row   { display: flex; justify-content: space-between; margin-bottom: 8px; }
.cs-finding-label { color: #F5EAD6; font-size: 13px; font-weight: 500; }
.cs-finding-value { color: #F5EAD6; font-size: 13px; opacity: 0.6; }
.cs-bar-track     { background: rgba(245,234,214,0.15); border-radius: 999px; height: 6px; }
/* Data-specific bar widths */
.bar-w-42  { width: 42%; }
.bar-w-44  { width: 44%; }
.bar-w-55  { width: 55%; }
.bar-w-58  { width: 58%; }
.bar-w-65  { width: 65%; }
.bar-w-68  { width: 68%; }
.bar-w-75  { width: 75%; }
.bar-w-78  { width: 78%; }
.bar-w-82  { width: 82%; }
.bar-w-88  { width: 88%; }
.bar-w-90  { width: 90%; }
.bar-w-92  { width: 92%; }
.bar-w-100 { width: 100%; }

/* ── Results metric grid ── */
.cs-results-grid  { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 32px; }
.cs-result-card   { border: 1px solid rgba(29,77,42,0.2); border-radius: 10px; padding: 18px 16px; }
.cs-result-num    { font-size: 28px; color: #1D4D2A; line-height: 1; }
.cs-result-lbl    { font-size: 11px; opacity: 0.55; margin-top: 4px; }

/* ── Dark callout / insight box ── */
.cs-callout       { background: #1D4D2A; border-radius: 12px; padding: 28px 24px; color: #F5EAD6; }
.cs-callout-label { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.5; margin-bottom: 16px; }
.cs-callout-list  { display: flex; flex-direction: column; gap: 10px; font-size: 13px; line-height: 1.6; }
.cs-callout-list-lg { gap: 12px; font-size: 13px; line-height: 1.7; opacity: 0.82; }

/* ── Attrition cost-model calc rows ── */
.cs-calc-font    { font-size: 13px; line-height: 1.6; }
.cs-calc-rows    { display: flex; flex-direction: column; gap: 10px; }
.cs-calc-row     { display: flex; justify-content: space-between; opacity: 0.75; }
.cs-calc-divider { border: none; border-top: 1px solid rgba(245,234,214,0.2); margin: 4px 0; }
.cs-calc-total   { display: flex; justify-content: space-between; font-weight: 600; }
.cs-nowrap-val   { white-space: nowrap; padding-left: 16px; }

/* ── CTA (shared by case studies + photography) ── */
.cs-cta          { background: #1D4D2A; color: #F5EAD6; padding: 64px 24px; text-align: center; }
.photo-cta       { background: #1D4D2A; color: #F5EAD6; padding: 64px 24px; text-align: center; border-top: 1px solid rgba(245,234,214,0.1); }
.cs-cta-title    { font-size: clamp(36px,6vw,72px); text-transform: uppercase; line-height: 0.95; margin-bottom: 32px; }
.cs-cta-buttons  { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.cs-copyright    { font-size: 11px; opacity: 0.35; margin-top: 40px; letter-spacing: 0.05em; }

/* ── Success page ── */
.success-content { text-align: center; padding: 40px 24px; }
.success-icon    { width: 48px; margin: 0 auto 32px; }
.success-title   { font-size: clamp(48px,10vw,96px); text-transform: uppercase; line-height: 0.95; margin-bottom: 20px; }
.success-sub     { font-size: 13px; opacity: 0.75; margin-bottom: 36px; }

/* ============================================================
   PHOTOGRAPHY PAGE
   ============================================================ */
.photo-header  { padding: 40px 24px 32px; }
.photo-caption { font-size: 13px; opacity: 0.5; }
.photo-rows    { display: flex; flex-direction: column; gap: 40px; padding-bottom: 80px; }
.row-nav       { display: flex; gap: 8px; align-items: center; padding: 14px 0 0; }

/* ── Stacked horizontal slider ── */
.row-wrap {
  padding: 0 24px;
}

/* Viewport clips future slides on the right.
   No overflow on the left — past-card slivers live in the left area
   created by the JS-driven indent (0 → max 44 px as the stack builds).

   Formula: 4.5 tiles + 4 gaps = containerWidth
     4.5 * tileW + 4 * 12 = (100vw - 48px)
     tileW = (100vw - 96px) / 4.5
   This shows 4 full tiles + exactly half of tile 5 on load.
   Square tiles give ~18% more image area vs the old 4:3 shape. */
.row-viewport {
  position: relative;
  overflow: hidden;
  height: calc((100vw - 96px) / 4.5); /* square tile — height = width */
  max-height: 300px;
  min-height: 100px;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: calc((100vw - 96px) / 4.5);
  max-width: 300px;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  will-change: transform;
  transform-origin: left center;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
}

.row-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(245,234,214,0.3);
  background: transparent;
  color: #F5EAD6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, opacity 0.2s;
  flex-shrink: 0;
}
.row-btn:hover:not(:disabled) {
  background: rgba(245,234,214,0.12);
  border-color: rgba(245,234,214,0.65);
}
.row-btn:disabled { opacity: 0.22; cursor: default; }

/* ============================================================
   RESPONSIVE — CASE STUDIES + PHOTOGRAPHY  (≤640 px)
   ============================================================ */
@media (max-width: 640px) {
  /* Scoped to case-study layout classes (avoids touching index.html sections) */
  .cs-header        { padding-top: 36px; padding-bottom: 32px; }
  .cs-section,
  .cs-section-green,
  .cs-stats-section,
  .cs-tech-section  { padding-top: 40px; padding-bottom: 40px; }
  .cs-stats-grid    { grid-template-columns: 1fr; gap: 12px; }
  .cs-results-grid  { grid-template-columns: 1fr; }
  .cs-finding-row   { flex-direction: column; align-items: flex-start; gap: 4px; margin-bottom: 6px; }
  .cs-calc-row      { flex-wrap: wrap; gap: 4px; }
  .cs-nowrap-val    { white-space: normal; padding-left: 0; }
  .cs-data-grid     { grid-template-columns: 1fr; }

  /* Photography header */
  .photo-header     { padding: 24px 16px 20px; }

  /* Photography slider — 2.5 tiles on mobile */
  .row-wrap         { padding: 0 16px; }
  .row-viewport     { height: calc((100vw - 56px) / 2.5); max-height: 130px; }
  .slide            { width: calc((100vw - 56px) / 2.5); max-width: 130px; border-radius: 14px; }
  .slide img        { border-radius: 0; }
}

/* ============================================================
   REDUCED MOTION  (accessibility)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  /* Word reveal — skip blur/slide, appear immediately */
  .word-reveal { transition: none; opacity: 1; filter: none; transform: none; }

  /* Scroll reveals — skip translateY, appear immediately */
  .reveal-el  { transition: none; opacity: 1; transform: none; }
  .reveal-fade { transition: none; opacity: 1; }

  /* Hero name slide-up — skip, show in place */
  .name-word  { transition: none; transform: translateY(0); }

  /* Interactive transitions */
  .hover-lift,
  .btn-outline-dark,
  .btn-outline-light,
  .nav-pill-link,
  .btn-circle { transition: none; }
}
