/* ============================================================
   Paula Salar — Digital Design Portfolio
   Shared Stylesheet v1.0
   Covers: Main portfolio + all case study pages
   Fonts: Playfair Display (display) + DM Sans (body)
   ============================================================ */

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

:root {
  /* Colour palette */
  --teal:        #1A7A8A;
  --teal-dark:   #0F5060;
  --teal-mid:    #2A9BAD;
  --teal-light:  #E8F5F7;
  --teal-pale:   #F2FAFB;
  --ink:         #111820;
  --ink-soft:    #3B4550;
  --muted:       #606D78;
  --line:        #D8E8EB;
  --white:       #FFFFFF;
  --off-white:   #F8FAFB;
  --accent:      #E8A838;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;

  /* Layout */
  --max:  1280px;
  --max-case: 1100px;
  --gap:  clamp(1.5rem, 4vw, 3rem);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── UTILITY ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}

/* Case study pages use a narrower max-width */
.container-case {
  width: 100%;
  max-width: var(--max-case);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0);
}

/* ── NAV ──────────────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 1rem 0; gap: 1rem;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 700;
  color: var(--teal-dark); text-decoration: none;
  letter-spacing: 0.01em; white-space: nowrap;
}
.nav-right { display: flex; align-items: center; gap: 1.5rem; }
.nav-links { display: flex; gap: 1.75rem; list-style: none; }
.nav-links a {
  font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; color: var(--ink-soft);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--teal); }
.nav-cv-btn {
  background: var(--teal); color: #fff;
  padding: 0.4rem 1rem; border-radius: 2rem;
  font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.02em; text-decoration: none;
  white-space: nowrap; transition: background 0.2s;
}
.nav-cv-btn:hover { background: var(--teal-dark); }

/* Back link (case study pages) */
.nav-back {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.85rem; font-weight: 500;
  color: var(--muted); text-decoration: none;
  transition: color 0.2s;
}
.nav-back:hover { color: var(--teal); }

/* ── SECTION LABELS & TITLES ──────────────────────────────── */
.section-label {
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--teal);
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.section-label::after {
  content: ''; flex: 1; height: 1px;
  background: var(--line);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; line-height: 1.1;
  color: var(--ink); margin-bottom: 1rem;
}
.section-intro {
  font-size: 1.05rem; color: var(--muted);
  max-width: 60ch; line-height: 1.7;
}

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: var(--teal); color: #fff;
  padding: 0.65rem 1.4rem; border-radius: 2rem;
  font-size: 0.85rem; font-weight: 600;
  text-decoration: none; letter-spacing: 0.02em;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--teal-mid); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: transparent; color: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(255,255,255,0.35);
  padding: 0.65rem 1.4rem; border-radius: 2rem;
  font-size: 0.85rem; font-weight: 600;
  text-decoration: none; letter-spacing: 0.02em;
  transition: all 0.2s;
}
.btn-outline:hover { border-color: var(--teal-mid); color: var(--teal-mid); }

/* ── IMAGE PLACEHOLDERS ───────────────────────────────────── */
.img-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(42,155,173,0.15) 0%, rgba(15,80,96,0.35) 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.75rem; border: 2px dashed rgba(255,255,255,0.2);
  position: relative;
}
.img-placeholder.light {
  background: var(--teal-light);
  border-color: var(--line);
}
.img-placeholder-label {
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); text-align: center; padding: 0 1rem;
}
.img-placeholder.light .img-placeholder-label { color: var(--teal); }
.img-placeholder-hint {
  font-size: 0.7rem; color: rgba(255,255,255,0.32);
  text-align: center; padding: 0 1rem;
}
.img-placeholder.light .img-placeholder-hint { color: var(--muted); }

/* ── TOOL TAGS (shared) ───────────────────────────────────── */
.tool-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 500;
  padding: 0.28rem 0.7rem;
  background: var(--teal-pale); border: 1px solid var(--line);
  border-radius: 2rem; color: var(--teal-dark);
}

/* ── FOOTER ───────────────────────────────────────────────── */
footer {
  background: var(--ink); padding: 2rem 0; text-align: center;
}
footer p { font-size: 0.82rem; color: rgba(255,255,255,0.45); }
footer a { color: rgba(255,255,255,0.55); text-decoration: none; transition: color 0.2s; }
footer a:hover { color: var(--teal-mid); }

/* ================================================================
   PORTFOLIO HOME (Paula_Salar_Portfolio.html)
   ================================================================ */

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  background: var(--teal-dark);
  width: 100%; overflow: hidden; position: relative;
}
/* Case study pages: hero inner needs vertical padding */
.hero-inner {
  padding: clamp(3rem, 6vw, 5rem) 0;
  position: relative; z-index: 1;
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(42,155,173,0.25) 0%, transparent 70%),
    radial-gradient(ellipse 50% 80% at 10% 80%, rgba(15,80,96,0.6) 0%, transparent 60%);
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 92vh; align-items: stretch;
  position: relative; z-index: 1;
}
.hero-content {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(3rem,8vw,7rem) clamp(1.5rem,4vw,4rem) clamp(3rem,8vw,7rem) clamp(1.25rem,5vw,3rem);
}
.hero-eyebrow {
  display: inline-block; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--teal-mid); margin-bottom: 1.5rem;
}
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7vw, 6rem);
  font-weight: 900; line-height: 0.95;
  color: var(--white); margin-bottom: 1.5rem;
}
.hero-name span { color: var(--teal-mid); display: block; }
.hero-tagline {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 300; color: rgba(255,255,255,0.72);
  max-width: 40ch; line-height: 1.7; margin-bottom: 2.5rem;
}
.hero-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 3rem; }
.hero-tag {
  font-size: 0.76rem; font-weight: 500; letter-spacing: 0.05em;
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(255,255,255,0.22); border-radius: 2rem;
  color: rgba(255,255,255,0.8);
}
.hero-contact { display: flex; flex-direction: column; gap: 0.3rem; }
.hero-contact a {
  font-size: 0.88rem; color: rgba(255,255,255,0.6);
  text-decoration: none; transition: color 0.2s;
}
.hero-contact a:hover { color: var(--teal-mid); }
.hero-image-wrap { position: relative; overflow: hidden; min-height: 500px; }
.hero-image-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-ctas { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 2rem; }

/* ── CAPABILITIES ─────────────────────────────────────────── */
.capabilities { padding: clamp(4rem,8vw,7rem) 0; background: var(--off-white); }
.capabilities-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.1rem; margin-top: 3rem;
}
.cap-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 0.75rem; padding: 1.65rem;
  transition: box-shadow 0.25s, transform 0.25s;
}
.cap-card:hover {
  box-shadow: 0 8px 32px rgba(26,122,138,0.1);
  transform: translateY(-3px);
}
.cap-icon {
  width: 42px; height: 42px; background: var(--teal-light);
  border-radius: 0.5rem; display: flex; align-items: center;
  justify-content: center; margin-bottom: 0.9rem;
}
.cap-icon svg { color: var(--teal); }
.cap-title { font-weight: 600; font-size: 0.97rem; margin-bottom: 0.45rem; }
.cap-desc { font-size: 0.88rem; color: var(--muted); line-height: 1.6; }

/* ── PROJECTS LIST ────────────────────────────────────────── */
.projects { padding: clamp(4rem,8vw,7rem) 0; }
.projects-header { margin-bottom: clamp(3rem,6vw,5rem); }

.project {
  display: flex; flex-direction: row;
  gap: 0; margin-bottom: clamp(4rem,8vw,6rem);
  border-radius: 1rem; overflow: hidden;
  box-shadow: 0 4px 40px rgba(0,0,0,0.07);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.project.will-animate { opacity: 0; transform: translateY(30px); }
.project.visible      { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .project { opacity: 1 !important; transform: none !important; transition: none; }
}
.project.flip { direction: rtl; }
.project.flip > * { direction: ltr; }

.project-image {
  flex: 0 0 50%; /* exactly half the card */
  position: relative; min-height: 420px;
  overflow: hidden; cursor: pointer;
}
.project-image img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.4s ease;
}
.project-image:hover img { transform: scale(1.03); }
.project-image .img-placeholder { min-height: 420px; cursor: pointer; transition: filter 0.3s; }
.project-image .img-placeholder:hover { filter: brightness(1.08); }
.project-image::after {
  content: '⊕ View'; position: absolute; inset: 0;
  background: rgba(15,80,96,0);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.08em; opacity: 0;
  transition: opacity 0.3s, background 0.3s; pointer-events: none;
}
.project-image:hover::after { opacity: 1; background: rgba(15,80,96,0.3); }

/* Gallery strip (beneath project image) */
.gallery-strip {
  display: flex; gap: 0.4rem; padding: 0.6rem;
  background: var(--teal-pale); border-top: 1px solid var(--line);
}
.gallery-thumb {
  width: 56px; height: 44px; border-radius: 0.3rem;
  overflow: hidden; cursor: pointer; flex-shrink: 0;
  border: 2px solid transparent; transition: border-color 0.2s, transform 0.2s;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover { border-color: var(--teal); transform: scale(1.05); }

.project-body {
  flex: 1; /* fill remaining 50% */
  background: var(--white); padding: clamp(2rem,4vw,3.5rem);
  display: flex; flex-direction: column; justify-content: center;
  border: 1px solid var(--line);
}
.project-num {
  font-family: var(--font-display); font-size: 3.5rem;
  font-weight: 900; line-height: 1; color: var(--teal-light);
  margin-bottom: 0.4rem;
}
.project-type {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 0.7rem;
}
.project-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 700; line-height: 1.2; color: var(--ink);
  margin-bottom: 0.85rem;
}
.project-org {
  font-size: 0.84rem; font-weight: 500; color: var(--teal-dark);
  margin-bottom: 1.25rem; padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.meta-block { margin-bottom: 0.9rem; }
.meta-label {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 0.25rem;
}
.meta-text { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.6; }
.outcome-box {
  background: var(--teal-light); border-left: 3px solid var(--teal);
  border-radius: 0 0.5rem 0.5rem 0; padding: 0.85rem 1rem; margin-top: 0.85rem;
}
.outcome-box .meta-label { color: var(--teal-dark); }
.outcome-box .meta-text  { color: var(--ink); font-weight: 500; }
.project-tools { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 1.4rem; }

.case-study-link {
  display: inline-flex; align-items: center; gap: 0.45rem;
  margin-top: 1.25rem; font-size: 0.84rem; font-weight: 600;
  letter-spacing: 0.05em; color: var(--teal); text-decoration: none;
  border-bottom: 2px solid var(--teal-light); padding-bottom: 2px;
  transition: border-color 0.2s, color 0.2s;
}
.case-study-link:hover { color: var(--teal-dark); border-color: var(--teal); }
.case-study-link svg { transition: transform 0.2s; }
.case-study-link:hover svg { transform: translateX(3px); }

/* ── PROCESS ──────────────────────────────────────────────── */
.process { padding: clamp(4rem,8vw,7rem) 0; background: var(--teal-dark); }
.process .section-label          { color: var(--teal-mid); }
.process .section-label::after   { background: rgba(255,255,255,0.12); }
.process .section-title          { color: var(--white); }
.process .section-intro          { color: rgba(255,255,255,0.65); }
.process-steps {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.4rem; margin-top: 3rem;
}
.step {
  padding: 1.85rem 1.65rem;
  border: 1px solid rgba(255,255,255,0.1); border-radius: 0.75rem;
  background: rgba(255,255,255,0.04); transition: background 0.25s;
}
.step:hover { background: rgba(255,255,255,0.08); }
.step-num {
  font-family: var(--font-display); font-size: 2.2rem; font-weight: 900;
  color: var(--teal-mid); opacity: 0.45; line-height: 1; margin-bottom: 0.65rem;
}
.step-title { font-weight: 600; color: var(--white); margin-bottom: 0.45rem; }
.step-desc  { font-size: 0.86rem; color: rgba(255,255,255,0.72); line-height: 1.6; }

/* ── ABOUT ────────────────────────────────────────────────── */
.about { padding: clamp(4rem,8vw,7rem) 0; }
.about-grid {
  display: grid; grid-template-columns: 420px 1fr;
  gap: clamp(3rem,6vw,6rem); align-items: start;
}
.about-image { position: sticky; top: 100px; border-radius: 1rem; overflow: hidden; }
.about-image img { width: 100%; display: block; border-radius: 1rem; }
.about-text p { font-size: 1rem; color: var(--ink-soft); line-height: 1.8; margin-bottom: 1.25rem; }
.about-text .section-title { margin-bottom: 1.5rem; }
.about-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1rem; margin-top: 2.5rem;
}
.stat {
  background: var(--teal-pale); border: 1px solid var(--line);
  border-radius: 0.75rem; padding: 1.2rem 1.4rem;
}
.stat-num {
  font-family: var(--font-display); font-size: 2rem;
  font-weight: 900; color: var(--teal); line-height: 1;
}
.stat-label { font-size: 0.8rem; color: var(--muted); margin-top: 0.3rem; }
.tools-grid { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 2rem; }
.about-tool-tag {
  font-size: 0.76rem; font-weight: 500;
  padding: 0.3rem 0.75rem; background: var(--white);
  border: 1px solid var(--line); border-radius: 2rem; color: var(--teal-dark);
}

/* ── CONTACT ──────────────────────────────────────────────── */
.contact { padding: clamp(4rem,8vw,7rem) 0; background: var(--off-white); }
.contact-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(3rem,6vw,6rem); align-items: start;
}
.contact-detail {
  display: flex; align-items: flex-start;
  gap: 1rem; margin-bottom: 1.25rem;
}
.contact-icon {
  width: 38px; height: 38px; background: var(--teal-light);
  border-radius: 0.5rem; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0;
}
.contact-icon svg { color: var(--teal); }
.contact-detail-text strong {
  display: block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 0.2rem;
}
.contact-detail-text a,
.contact-detail-text span {
  font-size: 0.92rem; color: var(--ink-soft);
  text-decoration: none; transition: color 0.2s;
}
.contact-detail-text a:hover { color: var(--teal); }
.closing-note {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 1rem; padding: 2rem;
}
.closing-note p {
  font-size: 0.95rem; color: var(--ink-soft);
  line-height: 1.75; margin-bottom: 1rem;
}
.closing-note p:last-child { margin-bottom: 0; }

/* ================================================================
   CASE STUDY PAGES (project-*.html)
   ================================================================ */

/* ── CASE STUDY HERO ──────────────────────────────────────── */
.case-hero {
  background: var(--teal-dark);
  padding: clamp(3rem,6vw,5rem) 0;
  position: relative; overflow: hidden;
}
.case-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 80% at 80% 50%, rgba(42,155,173,0.2) 0%, transparent 70%);
}
.case-hero-inner { position: relative; z-index: 1; }
.case-hero-num {
  font-family: var(--font-display); font-size: 6rem; font-weight: 900;
  color: rgba(255,255,255,0.06); line-height: 1;
  position: absolute; top: -1rem; right: 0;
}
.case-hero-type {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--teal-mid); margin-bottom: 1rem;
}
.case-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900; color: var(--white); line-height: 1.1;
  margin-bottom: 1rem; max-width: 18ch;
}
.case-hero-org { font-size: 0.95rem; color: rgba(255,255,255,0.55); margin-bottom: 2rem; }
.case-hero-meta { display: flex; gap: 2rem; flex-wrap: wrap; }
.case-hero-meta-item strong {
  display: block; font-size: 0.7rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--teal-mid); margin-bottom: 0.25rem;
}
.case-hero-meta-item span { font-size: 0.9rem; color: rgba(255,255,255,0.7); }
.case-hero-image { margin-top: 2.5rem; border-radius: 0.75rem; overflow: hidden; }
.case-hero-image img { width: 100%; max-height: 500px; object-fit: cover; display: block; cursor: pointer; }

/* ── CASE STUDY BODY ──────────────────────────────────────── */
.case-body-wrap { padding: clamp(3rem,6vw,5rem) 0; }
.case-body-wrap > .container,
.case-body-wrap > .container-case { max-width: var(--max-case); }
.case-grid {
  display: grid; grid-template-columns: 1fr 320px;
  gap: clamp(2rem,4vw,4rem); align-items: start;
}
.case-section { margin-bottom: 2.5rem; }
.case-heading {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 700;
  color: var(--ink); margin-bottom: 0.75rem;
  padding-bottom: 0.5rem; border-bottom: 2px solid var(--teal-light);
}
.case-body { font-size: 1rem; color: var(--ink-soft); line-height: 1.8; }

/* Work images within case study */
.work-images { margin-top: 3rem; }
.work-images-title {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 1.5rem;
}
.work-image { margin-bottom: 2rem; }
.work-image img {
  width: 100%; border-radius: 0.75rem; display: block;
  cursor: pointer; transition: opacity 0.2s;
}
.work-image img:hover { opacity: 0.92; }
.work-image .img-placeholder { cursor: pointer; }
.work-image-caption {
  font-size: 0.82rem; color: var(--muted);
  margin-top: 0.6rem; font-style: italic;
}

/* Image grids (2-up or 3-up) */
.image-grid-2 {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1rem; margin-bottom: 0.75rem;
}
.image-grid-3 {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem; margin-bottom: 0.75rem;
}

/* ── CASE STUDY SIDEBAR ───────────────────────────────────── */
.case-sidebar {}
.sidebar-card {
  background: var(--off-white); border: 1px solid var(--line);
  border-radius: 0.75rem; padding: 1.5rem; margin-bottom: 1.25rem;
}
.sidebar-label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 0.75rem;
}
.deliverables-list { list-style: none; }
.deliverables-list li {
  font-size: 0.9rem; color: var(--ink-soft);
  padding: 0.4rem 0; border-bottom: 1px solid var(--line);
  display: flex; align-items: flex-start; gap: 0.5rem;
}
.deliverables-list li::before { content: '\2714'; color: var(--teal); font-size: 0.8rem; margin-top: 0.1rem; flex-shrink: 0; }
.deliverables-list li:last-child { border-bottom: none; }
.role-text { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.6; }

/* Live links sidebar (project 7) */
.live-links-list { display: flex; flex-direction: column; gap: 0.5rem; }
.live-link-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 0.75rem; background: var(--white); border: 1px solid var(--line);
  border-radius: 0.5rem; text-decoration: none; transition: border-color 0.2s;
}
.live-link-item:hover { border-color: var(--teal); }
.live-link-item span { font-size: 0.88rem; font-weight: 500; color: var(--ink-soft); }
.live-link-item svg { color: var(--teal); flex-shrink: 0; }

/* ── BOTTOM PROJECT NAV (case study pages) ────────────────── */
.project-nav {
  background: var(--off-white); border-top: 1px solid var(--line); padding: 2rem 0;
}
.project-nav-inner {
  display: flex; justify-content: space-between;
  align-items: center; gap: 1rem;
}
.proj-nav-link {
  display: flex; align-items: center; gap: 0.5rem;
  text-decoration: none; font-size: 0.9rem; font-weight: 500;
  color: var(--teal); transition: color 0.2s;
}
.proj-nav-link:hover { color: var(--teal-dark); }
.proj-nav-link.back-all { font-size: 0.85rem; color: var(--muted); }
.proj-nav-link.back-all:hover { color: var(--teal); }

/* ── RESULT CALLOUT (project 5) ───────────────────────────── */
.result-callout {
  display: flex; align-items: center; gap: 1.25rem;
  background: var(--teal-light); border: 1px solid var(--line);
  border-radius: 0.75rem; padding: 1.25rem 1.5rem; margin: 1.5rem 0;
}
.result-callout-num {
  font-family: var(--font-display); font-size: 3rem; font-weight: 900;
  color: var(--teal); line-height: 1; flex-shrink: 0;
}
.result-callout-text strong { display: block; font-size: 0.95rem; color: var(--ink); margin-bottom: 0.3rem; }
.result-callout-text p { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.6; margin: 0; }

/* ── DELIVERABLE CARDS (project 3) ───────────────────────── */
.deliverable-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr));
  gap: 1rem; margin-top: 1.5rem;
}
.deliverable-card {
  background: var(--off-white); border: 1px solid var(--line);
  border-radius: 0.65rem; padding: 1.1rem 1.25rem;
}
.deliverable-card strong { display: block; font-size: 0.88rem; font-weight: 600; color: var(--ink); margin-bottom: 0.35rem; }
.deliverable-card p { font-size: 0.84rem; color: var(--muted); line-height: 1.55; margin: 0; }

/* ── SCOPE GRID (project 3) ───────────────────────────────── */
.scope-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr));
  gap: 1rem; margin-top: 1.5rem;
}

/* ── VIDEO GRID (project 3) ───────────────────────────────── */
.video-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.video-grid video {
  width: 100%; border-radius: 0.75rem; display: block;
  background: var(--ink);
}

/* ── YEAR CARDS (project 7 annual reports) ────────────────── */
.year-cards {
  display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem;
}
.year-card {
  background: var(--teal-pale); border: 1px solid var(--line);
  border-radius: 0.5rem; padding: 0.65rem 1rem;
  font-size: 0.88rem; font-weight: 600; color: var(--teal-dark);
}

/* ── INFOGRAPHIC CARDS (project 7) ───────────────────────── */
.infographic-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.25rem; margin-top: 1.5rem;
}
.ig-card {
  display: flex; align-items: center; justify-content: space-between;
  border-radius: 12px; padding: 1.4rem 1.6rem; gap: 0.5rem;
  font-family: var(--font-body);
}
.ig-card.orange-light { background: #fce9d4; border: 2px solid #e8841a; }
.ig-card.orange-dark  { background: #e8611a; border: 2px solid #c04d0f; }
.ig-card.green-light  { background: #eef7e8; border: 2px solid #3a8c2f; }
.ig-card-recovery {
  display: flex; align-items: center;
  border-radius: 12px; padding: 1.4rem 1.6rem;
  background: #fce9d4; border: 2px solid #e8841a;
  gap: 0.5rem; margin-top: 1.25rem;
}
.ig-card-recovery .ig-left { flex: 0 0 auto; }
.ig-card-recovery .ig-right { flex: 1; text-align: right; }
.ig-card-recovery .ig-right p { font-size: 15px; color: #c0520e; line-height: 1.55; margin: 0; }
.ig-text { flex: 0 0 auto; }
.ig-icon { flex-shrink: 0; }
.ig-stat { font-size: 42px; font-weight: 700; font-style: italic; line-height: 1; letter-spacing: -1px; }
.ig-label-bold { font-size: 16px; font-weight: 700; font-style: italic; margin: 3px 0 5px; }
.ig-label-desc { font-size: 14px; font-weight: 400; line-height: 1.5; margin: 0; }
.orange-light .ig-stat, .orange-light .ig-label-bold { color: #e8611a; }
.orange-light .ig-label-desc { color: #c0520e; }
.orange-dark .ig-stat, .orange-dark .ig-label-bold, .orange-dark .ig-label-desc { color: #fff; }
.green-light .ig-stat, .green-light .ig-label-bold { color: #3a8c2f; }
.green-light .ig-label-desc { color: #2e6b23; }
.ig-anim { opacity: 0; transform: translateY(20px); transition: opacity 0.55s ease, transform 0.55s ease; }
.ig-anim.d1 { transition-delay: 0s; }
.ig-anim.d2 { transition-delay: 0.12s; }
.ig-anim.d3 { transition-delay: 0.24s; }
.ig-anim.d4 { transition-delay: 0.38s; }
.revealed-card .ig-anim { opacity: 1; transform: translateY(0); }

/* ================================================================
   LIGHTBOX (shared across all pages)
   ================================================================ */
.lb-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(8,18,28,0.93);
  display: none; flex-direction: column;
  align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
  opacity: 0; transition: opacity 0.25s ease;
}
.lb-overlay.open    { display: flex; }
.lb-overlay.visible { opacity: 1; }
.lb-close {
  position: absolute; top: 1.25rem; right: 1.5rem;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; width: 42px; height: 42px; border-radius: 50%;
  cursor: pointer; font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s; z-index: 2;
}
.lb-close:hover { background: rgba(255,255,255,0.2); }
.lb-img-wrap {
  max-width: min(92vw, 1100px); max-height: 80vh;
  position: relative; display: flex;
  align-items: center; justify-content: center;
}
.lb-img-wrap img {
  max-width: 100%; max-height: 80vh;
  object-fit: contain; border-radius: 0.5rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lb-placeholder {
  background: var(--teal-dark);
  border: 2px dashed rgba(255,255,255,0.2); border-radius: 0.5rem;
  padding: 4rem 3rem; text-align: center;
  color: rgba(255,255,255,0.6); min-width: 300px;
}
.lb-placeholder p { font-size: 0.9rem; margin-top: 0.5rem; }
.lb-caption {
  color: rgba(255,255,255,0.65); font-size: 0.88rem;
  margin-top: 1rem; text-align: center; max-width: 600px;
}
.lb-counter { color: rgba(255,255,255,0.4); font-size: 0.8rem; margin-top: 0.4rem; }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18);
  color: #fff; width: 48px; height: 48px; border-radius: 50%;
  cursor: pointer; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s; z-index: 2; user-select: none;
}
.lb-nav:hover { background: rgba(255,255,255,0.2); }
.lb-prev { left: -70px; }
.lb-next { right: -70px; }
.lb-nav.hidden { opacity: 0; pointer-events: none; }

/* ================================================================
   SCROLL ANIMATIONS (home page)
   ================================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-content > * { opacity: 0; animation: fadeUp 0.7s ease forwards; }
.hero-eyebrow { animation-delay: 0.1s; }
.hero-name    { animation-delay: 0.25s; }
.hero-tagline { animation-delay: 0.4s; }
.hero-tags    { animation-delay: 0.55s; }
.hero-contact { animation-delay: 0.68s; }
.hero-ctas    { animation-delay: 0.8s; }

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

/* Tablet / medium */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 320px 1fr; }
}

/* Small tablet / large phone */
@media (max-width: 860px) {
  /* Home hero */
  .hero-grid { grid-template-columns: 1fr; min-height: auto; }
  .hero-image-wrap { min-height: 320px; order: -1; }
  .hero-content { padding: 3rem clamp(1.25rem, 5vw, 3rem); }
  /* Project cards */
  .project { flex-direction: column; }
  .project.flip { direction: ltr; }
  .project-image { flex: 0 0 auto; min-height: 280px; }
  /* About */
  .about-grid { grid-template-columns: 1fr; }
  .about-image { position: static; }
  /* Contact */
  .contact-inner { grid-template-columns: 1fr; }
  /* Case study */
  .case-grid { grid-template-columns: 1fr; }
  .case-hero-num { display: none; }
  .project-nav-inner { flex-direction: column; text-align: center; }
  /* Multi-col grids */
  .image-grid-2, .image-grid-3, .deliverable-grid, .scope-grid { grid-template-columns: 1fr; }
  .year-cards { flex-direction: column; }
  .infographic-grid { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
}

/* Mobile */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .lb-prev { left: -52px; }
  .lb-next { right: -52px; }
  .lb-placeholder { min-width: unset; }
  .case-hero-meta { flex-direction: column; gap: 0.75rem; }
}

/* Very small */
@media (max-width: 480px) {
  .lb-prev, .lb-next {
    position: fixed; top: auto; bottom: 5.5rem; transform: none;
  }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { left: calc(50% + 12px); }
}

/* ================================================================
   CASE STUDY HERO — uses same .hero base + these sub-classes
   ================================================================ */
/* .hero-inner moved to main hero block above */
.hero-num     {
  font-family: var(--font-display); font-size: 6rem; font-weight: 900;
  color: rgba(255,255,255,0.06); line-height: 1;
  position: absolute; top: -1rem; right: 0;
}
.hero-type    {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--teal-mid); margin-bottom: 1rem;
}
.hero-title   {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900; color: var(--white); line-height: 1.1;
  margin-bottom: 1rem; max-width: 18ch;
}
.hero-org     { font-size: 0.95rem; color: rgba(255,255,255,0.55); margin-bottom: 2rem; }
.hero-meta    { display: flex; gap: 2rem; flex-wrap: wrap; }
.hero-meta-item strong {
  display: block; font-size: 0.7rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--teal-mid); margin-bottom: 0.25rem;
}
.hero-meta-item span  { font-size: 0.9rem; color: rgba(255,255,255,0.7); }
.hero-image   { margin-top: 2.5rem; border-radius: 0.75rem; overflow: hidden; }
.hero-image img {
  width: 100%; max-height: 500px; object-fit: cover;
  display: block; cursor: pointer;
}

/* ── YEAR CARD SUB-CLASSES (project 7) ───────────────────── */
.year-card {
  display: flex; flex-direction: column; gap: 0.2rem;
  background: var(--teal-pale); border: 1px solid var(--line);
  border-radius: 0.5rem; padding: 0.65rem 1rem;
  text-decoration: none; transition: border-color 0.2s, background 0.2s;
}
.year-card:hover { border-color: var(--teal); background: var(--teal-light); }
.year-card-year {
  font-family: var(--font-display); font-size: 1rem; font-weight: 700;
  color: var(--teal-dark);
}
.year-card-label { font-size: 0.8rem; color: var(--ink-soft); }
.year-card-link {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.75rem; font-weight: 600; color: var(--teal);
  margin-top: 0.3rem;
}
.year-card-link svg { flex-shrink: 0; }

/* ── CONTEXT CALLOUT (project 7) ─────────────────────────── */
.context-callout {
  background: var(--teal-light); border-left: 3px solid var(--teal);
  border-radius: 0 0.5rem 0.5rem 0; padding: 1rem 1.25rem;
  margin: 1.25rem 0; font-size: 0.92rem;
  color: var(--ink-soft); line-height: 1.7;
}

/* ── SCOPE CARDS (project 4) ─────────────────────────────── */
.scope-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr));
  gap: 1rem; margin-top: 1.5rem;
}
.scope-card {
  background: var(--off-white); border: 1px solid var(--line);
  border-radius: 0.65rem; padding: 1.1rem 1.25rem;
}
.scope-card strong {
  display: block; font-size: 0.88rem; font-weight: 600;
  color: var(--ink); margin-bottom: 0.35rem;
}
.scope-card p { font-size: 0.84rem; color: var(--muted); line-height: 1.55; margin: 0; }

/* ── YEAR SECTIONS (project 7 — annual reports & achievement reports) ── */
.year-section {
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.year-section:hover {
  border-color: var(--teal);
  box-shadow: 0 4px 16px rgba(26,122,138,0.08);
}
.year-section-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
}
.year-badge {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--teal-dark);
  background: var(--teal-pale);
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  padding: 0.2rem 0.65rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.year-theme {
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}
.year-desc {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}
.year-live-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1.5px solid var(--teal-light);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}
.year-live-link:hover {
  color: var(--teal-dark);
  border-color: var(--teal);
}
