/* ── TYPE ───────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  color: var(--heading-text);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

/* ── LAYOUT ─────────────────────────────────────────────── */
.section { padding: 5.5rem 0; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 2.5rem; }

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-light);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.75rem;
}

.eyebrow::before {
  content: '—';
  flex-shrink: 0;
  transform: rotate(var(--rt)) translateY(var(--ry));
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.work-hero .eyebrow::before { display: none; }
.work-hero .eyebrow { justify-content: center; }
.work-hero h1 { text-align: center; margin-left: auto; margin-right: auto; }
.work-hero-sub { text-align: center; }

.section-h {
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 70vw;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 52ch;
  margin-top: 0.75rem;
}

/* ── REVEAL ─────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.reveal.on { opacity: 1; transform: translateY(0); }

.reveal-left {
  opacity: 0; transform: translateX(-40px);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.reveal-left.on { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0; transform: translateX(40px);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.reveal-right.on { opacity: 1; transform: translateX(0); }

/* ── BUTTONS ────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--color-cta-primary); color: var(--off-white);
  font-family: 'DM Sans', sans-serif; font-size: 0.9rem; font-weight: 600; letter-spacing: 0.01em;
  padding: 0.8rem 1.75rem; border-radius: 100px; border: none; cursor: pointer;
  min-height: 50px; box-shadow: 0 2px 12px rgba(234,84,85,0.25);
  transition: background 0.2s ease, transform 0.15s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.2s ease;
  text-decoration: none;
}
.btn-primary:hover { background: var(--red-600); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(234,84,85,0.3); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:focus-visible { outline: 2.5px solid var(--red-500); outline-offset: 3px; }


.btn-outline-light {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: rgba(255,255,255,0.65); color: var(--charcoal);
  font-family: 'DM Sans', sans-serif; font-size: 1rem; font-weight: 600;
  padding: 0 2rem; border-radius: 100px; border: 1.5px solid rgba(255,255,255,0.28); cursor: pointer;
  height: 48px;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.2s ease;
  text-decoration: none;
}
.btn-outline-light:hover { background: rgba(255,255,255,0.9); border-color: rgba(255,255,255,0.9); box-shadow: 0 4px 20px rgba(0,0,0,0.2); transform: translateY(-2px); }
.btn-outline-light:active { transform: translateY(0); }
.btn-outline-light:focus-visible { outline: 2.5px solid var(--heading-text); outline-offset: 3px; }

/* ── MOTION BUTTON ──────────────────────────────────────── */
.motion-btn {
  position: relative; display: inline-flex; align-items: center;
  border-radius: 100px; padding: 4px; cursor: pointer;
  background: transparent; border: none; text-decoration: none;
  min-height: 44px; overflow: hidden;
}
.motion-btn-dot {
  position: absolute; left: 4px; top: 50%; transform: translateY(-50%);
  height: 36px; width: 36px; border-radius: 100px;
  background: var(--color-brand); z-index: 0;
  transition: width 0.5s ease; pointer-events: none;
}
.motion-btn:hover .motion-btn-dot { width: calc(100% - 8px); }
.motion-btn-icon {
  position: relative; z-index: 1; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; color: var(--off-white); transition: transform 0.5s ease;
}
.motion-btn:hover .motion-btn-icon { transform: translateX(0.35rem); }
.motion-btn-icon svg { width: 16px; height: 16px; flex-shrink: 0; }
.motion-btn-label {
  position: relative; z-index: 1; padding: 0 14px 0 6px;
  font-family: 'DM Sans', sans-serif; font-size: 0.875rem; font-weight: 600;
  white-space: nowrap; color: var(--heading-text); transition: color 0.5s ease;
}
.motion-btn:hover .motion-btn-label { color: var(--off-white); }
.motion-btn:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 3px; border-radius: 100px; }

/* ── CONTACT FORM ───────────────────────────────────────── */
#contact .container { width: 100%; }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: stretch; }
.contact-left { display: flex; flex-direction: column; }
.contact-photo { width: 100%; aspect-ratio: 3/2; margin-top: 2.5rem; border-radius: 20px; overflow: hidden; }
.contact-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; display: block; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.84rem; font-weight: 500; color: var(--charcoal); margin-bottom: 0.45rem; letter-spacing: 0.01em; }
.form-group input, .form-group textarea {
  width: 100%; padding: 0.875rem 1rem;
  border: 1.5px solid rgba(0,0,0,0.12); border-radius: 10px;
  font-family: 'DM Sans', sans-serif; font-size: 0.95rem; color: var(--charcoal);
  background: #fff; outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--color-brand); box-shadow: 0 0 0 3px rgba(58,122,80,0.1); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-submit { width: 100%; font-size: 1rem; padding: 1rem; min-height: 64px; }

/* ── STICKY FOOTER REVEAL ──────────────────────────── */
.footer-reveal { position: relative; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
.footer-reveal-inner { position: relative; }
.footer-reveal-inner > .footer { position: sticky; bottom: 0; }



/* ── FOOTER ─────────────────────────────────────────────── */
.footer { background: var(--green-800); border-top: 1px solid rgba(58,122,80,0.2); padding: 4rem 0 2rem; }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 0 2.5rem; }
.footer-top { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 1.75rem; }
.footer-brand { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-brand img { width: 180px; height: auto; filter: brightness(0) invert(1); opacity: 0.85; }
.footer-slogan { font-family: 'Plus Jakarta Sans', sans-serif; font-style: italic; font-size: 0.9rem; color: var(--green-light); }
.footer-socials { display: flex; list-style: none; gap: 0.5rem; margin-top: 4px; }
.social-btn { width: 44px; height: 44px; border-radius: 50%; background: rgba(58,122,80,0.25); border: 1px solid rgba(85,128,103,0.3); display: flex; align-items: center; justify-content: center; color: var(--green-300); transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s cubic-bezier(0.34,1.56,0.64,1); }
.social-btn:hover { background: rgba(58,122,80,0.5); border-color: rgba(85,128,103,0.6); color: var(--off-white); transform: translateY(-2px); }
.social-btn:active { transform: translateY(0); }
.social-btn:focus-visible { outline: 2px solid var(--green-400); outline-offset: 3px; }
.social-btn svg { width: 22px; height: 22px; }
.footer-divider { border: none; border-top: 1px solid rgba(58,122,80,0.18); margin: 0; }
.footer-grid-bottom { padding-top: 1.5rem; display: grid; grid-template-columns: 1fr; gap: 1rem; }
.footer-copy { font-size: 0.8rem; color: var(--green-400); line-height: 1.6; }
.footer-nav-links ul, .footer-legal-links ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0; margin: -0.2rem -0.5rem; }
.footer-nav-links a { display: block; padding: 0.2rem 0.5rem; font-size: 0.875rem; color: var(--green-300); transition: color 0.2s ease; }
.footer-nav-links a:hover { color: var(--off-white); }
.footer-legal-links { margin-top: 0.25rem; }
.footer-legal-links a { display: block; padding: 0.2rem 0.5rem; font-size: 0.8rem; color: var(--green-400); transition: color 0.2s ease; }
.footer-legal-links a:hover { color: var(--off-white); }
a:focus-visible { outline: 2px solid var(--green-400); outline-offset: 3px; border-radius: 3px; }

/* ══════════════════════════════════════════════════════════
   WORK PAGE — SECTION STYLES
═══════════════════════════════════════════════════════════ */

/* ── Hero entrance animations ───────────────────────────── */
@keyframes heroLineTop {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}
@keyframes heroLineBottom {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}
@keyframes heroFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.work-hero-divider-line {
  transform-origin: top;
  animation: heroLineTop 0.8s ease-out both;
}
.work-hero-divider-bottom-line {
  transform-origin: bottom;
  animation: heroLineBottom 0.8s ease-out both;
}
.work-hero h1 {
  opacity: 0;
  animation: heroFade 0.6s ease both;
  animation-delay: 0.4s;
}
.work-hero-sub {
  opacity: 0;
  animation: heroFade 0.6s ease both;
  animation-delay: 0.9s;
}
.work-hero .eyebrow {
  opacity: 0;
  animation: heroFade 0.6s ease both;
  animation-delay: 1.1s;
}

@media (prefers-reduced-motion: reduce) {
  .work-hero-divider-line,
  .work-hero-divider-bottom-line,
  .work-hero h1,
  .work-hero-sub,
  .work-hero .eyebrow {
    animation: none;
    opacity: 1;
  }
  .work-hero-divider-line,
  .work-hero-divider-bottom-line { transform: none; }
}

/* ── Hero ───────────────────────────────────────────────── */
html {
  scroll-snap-type: y mandatory;
}

.work-hero {
  min-height: 100vh;
  padding-top: 64px; /* offset fixed nav so content centers in visible area */
  display: flex;
  align-items: center;
  text-align: center;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.work-hero .container {
  width: 100%;
}

.work-hero-inner {
  max-width: 760px;
  margin: 0 auto;
}

.work-hero-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(2.5rem + 16px);
  margin-bottom: 2rem;
}

.work-hero-divider-line {
  width: 2px;
  height: 144px;
  background: var(--color-brand);
  border-radius: 1px;
}

.work-hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  margin-bottom: 1.25rem;
  line-height: 1.08;
}

.work-hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 50ch;
  margin: 0 auto;
}

.work-hero-divider-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 2.5rem;
}

.work-hero-divider-bottom-line {
  width: 2px;
  height: 144px;
  background: var(--color-brand);
  border-radius: 1px;
}

/* ── Case Study Cards ───────────────────────────────────── */
.case-studies {
  padding: 0;
}

.case-study-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.case-study-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100vh;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* Alternating order */
.case-study-item:nth-child(even) .case-study-img { order: 2; }
.case-study-item:nth-child(even) .case-study-content { order: 1; }

.case-study-img {
  position: relative;
  overflow: hidden;
}

.case-study-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.case-study-img.reveal-left img {
  object-position: 42% center;
}
.case-study-img.reveal-right img {
  object-position: 60% center;
}

.case-study-item:hover .case-study-img img {
  transform: scale(1.03);
}

.case-study-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(8,19,13,0.35) 100%);
  pointer-events: none;
}

/* Odd cards: left image, so overlay fades right */
.case-study-item:nth-child(odd) .case-study-img-overlay {
  background: linear-gradient(to right, transparent 60%, rgba(250,250,248,0.6) 100%);
}

/* Even cards: right image, overlay fades left */
.case-study-item:nth-child(even) .case-study-img-overlay {
  background: linear-gradient(to left, transparent 60%, rgba(250,250,248,0.6) 100%);
}

.case-study-content {
  background: var(--warm-white);
  padding: 4.5rem 4rem 20vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0;
}

.case-study-content .motion-btn {
  align-self: flex-start;
}

.case-study-item:nth-child(odd) .case-study-content {
  padding-left: 4rem;
  padding-right: 5rem;
}

.case-study-item:nth-child(even) .case-study-content {
  padding-left: 5rem;
  padding-right: 4rem;
}

.case-study-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-brand);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.case-study-label svg { flex-shrink: 0; }

.case-study-org {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  font-weight: 700;
  color: var(--heading-text);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.75rem;
}

/* Large headline stat */
.case-study-stat {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 800;
  color: var(--heading-text);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 1rem;
  width: 100%;
}

.case-study-stat mark {
  background: none;
  color: var(--color-brand);
}

.case-study-result {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 2.25rem;
  max-width: 38ch;
}

/* ── Index number badge ──────────────────────────────────── */
.case-study-number {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--green-200);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

    /* ── CTA BAND ──────────────────────────────────────────── */
.cta-band-outer { padding: 5.5rem 0; display: flex; justify-content: center; scroll-snap-align: start; }
.cta-band {
  background: var(--green-900); position: relative; overflow: hidden;
  max-width: 80%; width: 100%; border-radius: 24px;
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 420px; padding: 0 !important;
  box-shadow: 0 4px 8px rgba(0,0,0,0.04), 0 12px 32px rgba(0,0,0,0.08), 0 32px 72px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03);
}
.cta-left {
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 3.5rem; position: relative; z-index: 1; gap: 5rem;
}
.cta-left h2 {
  font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.08;
  color: var(--green-500); letter-spacing: -0.03em;
  margin: 0 !important; max-width: none;
}
.cta-body { font-size: 1.1rem; color: var(--green-200); line-height: 1.7; margin-bottom: 1.5rem; max-width: 100%; }
.cta-buttons { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.cta-right-img { position: relative; overflow: hidden; border-radius: 0 24px 24px 0; }
.cta-right-img img { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.cta-right-img::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to right, var(--green-900) 0%, rgba(8,19,13,0.6) 30%, transparent 60%);
}


/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  html { scroll-snap-type: none; }
  .case-study-item { grid-template-columns: 1fr; height: auto; scroll-snap-align: none; }
  .case-study-item:nth-child(even) .case-study-img { order: 0; }
  .case-study-item:nth-child(even) .case-study-content { order: 0; }
  .case-study-img { height: 360px; }
  .case-study-item:nth-child(odd) .case-study-img-overlay,
  .case-study-item:nth-child(even) .case-study-img-overlay {
    background: linear-gradient(to bottom, transparent 60%, rgba(250,250,248,0.5) 100%);
  }
  .case-study-content { padding: 3rem 2.5rem 4rem !important; justify-content: center !important; }
  .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
  .nav-center,
  .section { padding: 4rem 0; }
  .container { padding: 0 1.5rem; }
  .work-hero { min-height: 100svh; }
  .case-study-stat { font-size: clamp(2rem, 8vw, 2.8rem); }
  .footer-grid-bottom { grid-template-columns: 1fr; }

  .footer-nav-links { order: 1; }
  .footer-legal-links { order: 2; }
  .footer-copy { order: 3; }

  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-brand {
    align-items: center;
  }

  .footer-grid-bottom {
    text-align: center;
  }

  .footer-nav-links ul,
  .footer-legal-links ul {
    justify-content: center;
  }

  .footer-copy {
    text-align: center;
  }

  #contact.section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  #contact .contact-layout {
    gap: 1.5rem;
  }

  #contact .contact-left .section-sub {
    margin-bottom: 1rem;
  }

  #contact .contact-photo {
    margin-top: 1.25rem !important;
  }

  #contact #contact-form {
    padding-top: 0 !important;
  }

  #contact .form-group {
    margin-bottom: 0.85rem;
  }

  .cta-band-outer { padding: 3rem 1.5rem; }
  .cta-band { max-width: 100%; border-radius: 16px; grid-template-columns: 1fr; }
  .cta-right-img { order: -1; min-height: 250px; border-radius: 16px 16px 0 0; }
  .cta-right-img::before { background: linear-gradient(to bottom, transparent 40%, rgba(8,19,13,0.4) 70%, var(--green-900) 100%); }
  .cta-left { padding: 2.5rem 1.5rem; gap: 1rem; }
  .cta-body { margin-bottom: 4rem; }
  .cta-buttons { flex-direction: column; gap: 0.75rem; width: 100%; }
  .cta-buttons .btn-slide,
  .cta-buttons .btn-outline-light {
    width: 100%; justify-content: center;
    font-size: 0.85rem; height: 44px; padding: 0 0.75rem;
    white-space: nowrap;
  }
}

@media (min-width: 1024px) {
  .footer { padding: 4rem 0 2rem; }
  .footer-grid-bottom { grid-template-columns: repeat(10, 1fr); grid-template-rows: auto auto; padding-top: 2rem; gap: 0; }
  .footer-copy { grid-column: 1 / 4; grid-row: 1 / 3; align-self: center; }
  .footer-nav-links { grid-column: 4 / 11; grid-row: 1; }
  .footer-legal-links { grid-column: 4 / 11; grid-row: 2; }
  .footer-nav-links ul, .footer-legal-links ul { justify-content: flex-end; }
}
  
/* ── SLIDE BUTTON ──────────────────────────────────────── */
.btn-slide {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0.25rem 3.5rem 0.25rem 1.5rem;
  border-radius: 100px;
  background: var(--red-500);
  color: var(--off-white);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: padding 0.5s ease;
}
.btn-slide:hover { padding: 0.25rem 1.5rem 0.25rem 3.5rem; }
.btn-slide-label { position: relative; z-index: 1; transition: transform 0.5s ease; white-space: nowrap; }
.btn-slide-icon {
  position: absolute;
  right: 4px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  color: var(--red-500);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: right 0.5s ease, transform 0.5s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.24), 0 2px 6px rgba(0,0,0,0.18);
}
.btn-slide:hover .btn-slide-icon { right: calc(100% - 44px); transform: rotate(45deg); }
.btn-slide:focus-visible { outline: 2.5px solid var(--red-500); outline-offset: 3px; }
.btn-slide:active { opacity: 0.9; }
  /* ── LANG SWITCHER ─────────────────────────────────────── */
.lang-switcher { display: flex; align-items: center; gap: 0.35rem; margin-right: 0.75rem; }
.lang-btn { font-size: 0.75rem; font-weight: 500; color: var(--muted); letter-spacing: 0.05em; text-transform: uppercase; transition: color 0.2s ease; line-height: 1; text-decoration: none; }
.lang-btn:hover { color: var(--charcoal); }
.lang-btn.lang-active { font-weight: 700; color: var(--charcoal); }
.lang-divider { font-size: 0.65rem; color: var(--green-200); line-height: 1; }
@media (max-width: 1023px) { .lang-switcher { display: none; } }
