/* ============================================================
   Julie Dion Portfolio — Main Stylesheet
   Colors: Deep Navy #031326 · Navy #051e3b · Ink Blue #133471
           Teal #07abb6 · Deep Teal #01848d · Cream #fdfaf7
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Alegreya:ital,wght@1,400;1,500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@24,300,0,0');

/* Feature Deck Light (Commercial Type, licensed web font).
   Place the licensed files in /fonts; Inter Light is used until they exist. */
@font-face {
  font-family: 'Feature Deck Web Light';
  src: url('../fonts/FeatureDeck-Light-Web.woff2') format('woff2'),
       url('../fonts/FeatureDeck-Light-Web.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* === CSS Custom Properties === */
:root {
  /* --- Navy, teal & cream palette --- */
  --ink:           #051e3b;
  --ink-2:         #133471;
  --ink-3:         #55657d;
  --accent:        #01848d;
  --accent-dark:   #0d5a6b;
  --cream:         #fdfaf7;
  --cream-dark:    #f6f3ef;
  --white:         #ffffff;
  --border:        #e7e1d9;

  /* --- Compatibility aliases --- */
  --primary:       #051e3b;
  --primary-dark:  #031326;
  --primary-light: #133471;
  --secondary:     #01848d;
  --secondary-dark:#0d5a6b;
  --accent-teal:   #01848d;
  --light-bg:      #fdfaf7;
  --text:          #133471;
  --text-light:    #55657d;

  /* --- Status --- */
  --success:       #22c55e;
  --success-light: #d1fae5;
  --error:         #ef4444;
  --error-light:   #fee2e2;
  --warning:       #f59e0b;

  /* --- Elevation & geometry --- */
  --shadow-sm:     0 1px 3px rgba(0,0,0,0.07);
  --shadow:        0 2px 10px rgba(0,0,0,0.09);
  --shadow-lg:     0 8px 30px rgba(0,0,0,0.12);
  --radius:        10px;
  --radius-lg:     18px;
  --radius-xl:     26px;
  --transition:    0.2s ease;
  --nav-height:    74px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; display: block; }
a  { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--secondary-dark); }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  line-height: 1.25;
  color: var(--primary-dark);
}

/* === Layout Utilities === */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section    { padding: 60px 0; }
.section-sm { padding: 40px 0; }
.flex       { display: flex; }
.flex-center{ display: flex; align-items: center; justify-content: center; }
.grid-2     { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3     { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4     { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.text-center{ text-align: center; }
.mt-1  { margin-top: 8px; }
.mt-2  { margin-top: 16px; }
.mt-3  { margin-top: 24px; }
.mt-4  { margin-top: 32px; }
.mb-2  { margin-bottom: 16px; }
.mb-4  { margin-bottom: 32px; }
.hidden { display: none !important; }

/* === Navigation === */
.site-header {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-bottom: 1px solid rgba(0,0,0,0.07);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: none;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(var(--nav-height) + 14px); /* add vertical padding */
  gap: 16px;
  padding: 6px 0;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
  padding: 8px 0;
}

/* Nav logo */
.nav-logo-img {
  height: 52px;
  width: auto;
  display: block;
  filter: none;
  opacity: 1;
}

/* Increase logo size for larger screens */
@media (min-width: 1024px) {
  .nav-logo-img {
    height: 62px;
  }
}

/* Color logo (used on white/light backgrounds) */
.logo-color {
  height: 70px;
  width: auto;
  display: block;
}

.footer-logo-circle {
  margin-bottom: 16px;
}
.footer-logo-circle img {
  width: 120px;
  height: auto;
  object-fit: contain;
  display: block;
  filter: none;
  opacity: 1;
}

/* Fallback text brand (shown when no logo image) */
.nav-logo {
  width: 48px;
  height: 48px;
  background: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: var(--primary);
  letter-spacing: 0.5px;
}

.nav-brand-text { color: var(--white); }
.nav-brand-text .school { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 13px; opacity: 0.85; display: block; letter-spacing: 0.5px; }
.nav-brand-text .org   { font-family: 'Inter', sans-serif; font-weight: 800; font-size: 17px; color: var(--secondary); display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  color: #505050;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 15px;
  text-transform: none;
  letter-spacing: 0;
  padding: 6px 14px;
  border-radius: var(--radius);
  transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-teal);
  background: transparent;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 22px;
  padding: 8px;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.3px;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
}
.btn-primary:hover {
  background: var(--secondary-dark);
  border-color: var(--secondary-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(184,153,110,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  color: var(--white);
}

/* Outline button for use on light/white backgrounds */
.btn-outline-dark {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline-dark:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.btn-blue {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-blue:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}

.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 15px; }

.btn-danger {
  background: var(--error);
  color: var(--white);
  border-color: var(--error);
}
.btn-danger:hover {
  background: #c53030;
  border-color: #c53030;
  color: var(--white);
}

/* === Page Hero === */
.page-hero {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 72px 0 60px;
  color: var(--ink);
}

.portfolio-hero { background: var(--cream); }

.resume-hero { padding-bottom: 60px; }

.page-hero h1 { color: var(--ink); font-size: clamp(28px, 4vw, 44px); margin-bottom: 12px; font-family: 'Inter', sans-serif; font-weight: 500; }
.page-hero p  { color: var(--text-light); font-size: 17px; max-width: 600px; font-family: 'Inter', sans-serif; font-weight: 300; line-height: 1.7; }
.page-hero .container { position: relative; z-index: 1; }

/* === Section Headings === */
.section-heading { text-align: center; margin-bottom: 40px; }
.section-heading h2 { font-size: clamp(22px, 3vw, 32px); margin-bottom: 10px; }
.section-heading p  { color: var(--text-light); font-size: 16px; max-width: 600px; margin: 0 auto; }
.section-heading .accent-line {
  width: 60px; height: 4px;
  background: var(--secondary);
  border-radius: 2px;
  margin: 12px auto 0;
}

/* === Resume Layout === */
.resume-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
  align-items: start;
}

/* Force all resume sections to span full-width (stacked layout) */
.resume-grid > .resume-section,
.resume-main,
.resume-aside,
.resume-download {
  grid-column: 1 / -1;
}

.resume-aside {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Make the first card feel less like a boxed sidebar element */
.resume-aside .card:first-child {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.resume-aside .card:first-child:hover {
  box-shadow: none;
  transform: none;
}

.resume-aside .card:first-child .card-body {
  padding: 0;
}

.resume-header h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3vw, 34px);
}

.resume-header p {
  margin: 0 0 14px;
  color: var(--text-light);
  line-height: 1.6;
}

.resume-meta {
  color: var(--text-light);
  font-size: 14px;
  margin: 14px 0 20px;
}

.resume-section {
  margin-top: 16px;
  padding: 18px 18px;
  background: var(--white);
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: var(--radius);
  box-shadow: 0 8px 18px rgba(15,23,42,0.06);
}

.resume-section + .resume-section {
  margin-top: 12px;
}

.resume-main > section:first-child {
  margin-top: 0;
}

.resume-section h3 {
  font-size: clamp(20px, 2.4vw, 26px);
  margin-bottom: 16px;
  color: var(--primary-dark);
  position: relative;
}

.resume-section h3::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  margin-top: 10px;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  border-radius: 2px;
}

.resume-top {
  text-align: center;
  padding: 16px 0 10px;
  margin: -18px 0 28px;
  border-bottom: 1px solid rgba(184,153,110,0.2);
}

.resume-top h2 {
  margin: 0 0 6px;
  font-size: clamp(34px, 4vw, 48px);
  letter-spacing: 0.6px;
  font-weight: 900;
  color: var(--primary-dark);
  line-height: 1.1;
}

.resume-tagline {
  color: var(--secondary);
  font-weight: 700;
  letter-spacing: 1px;
  margin: 6px 0 10px;
  text-transform: uppercase;
  font-size: 16px;
  line-height: 1.2;
}

.resume-top .resume-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.3;
}

.resume-top .resume-meta a {
  color: var(--primary-dark);
  text-decoration: none;
  border-bottom: 1px dashed rgba(15,23,42,0.3);
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  transition: all var(--transition);
}

.resume-top .resume-meta a:hover {
  color: var(--secondary);
  border-bottom-color: rgba(184,153,110,0.45);
  background: rgba(184,153,110,0.15);
}

.resume-download {
  display: flex;
  justify-content: center;
  margin: 26px 0 14px;
}

.resume-download .btn {
  padding: 14px 28px;
  font-size: 16px;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.link-grid-4 {
  grid-template-columns: repeat(4, minmax(100px, 1fr));
}

.link-grid-5 {
  grid-template-columns: repeat(5, minmax(100px, 1fr));
}

@media (max-width: 900px) {
  .link-grid {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
}

.link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,0.12);
  background: rgba(184,153,110,0.15);
  color: var(--primary-dark);
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.link-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 22px rgba(0,0,0,0.12);
  border-color: rgba(184,153,110,0.35);
  background: rgba(184,153,110,0.22);
}

.core-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.core-list.bulleted {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  list-style: disc outside;
  padding-left: 1.4rem;
  line-height: 1.2;
}

.core-list.bulleted li {
  margin-bottom: 0.4rem;
}

.core-list.bulleted li {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font-weight: 500;
  color: var(--text);
  position: static;
}

.core-list.bulleted li::before {
  display: none;
}

.bullet-list {
  list-style: disc outside;
  margin: 0.4rem 0 0;
  padding-left: 1.3rem;
  color: var(--text);
}

.bullet-list li {
  margin-bottom: 0.35rem;
  color: var(--text);
}

.core-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
}

.list-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.list-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.list-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.bullet-list {
  margin: 0.4rem 0 0;
  padding-left: 1.3rem;
  line-height: 1.25;
}

.bullet-list li {
  margin-bottom: 0.35rem;
}

.software-grid h4 {
  margin: 0 0 0.45rem;
  font-size: 15px;
  font-weight: 700;
}

.compact-list,
.compact-list > div,
.compact-list > .core-grid > div {
  line-height: 1.2;
}

.no-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}

.center {
  justify-items: center;
}

.core-list li {
  position: relative;
  padding: 12px 14px 12px 40px;
  margin: 0;
  border-radius: 12px;
  background: rgba(184,153,110,0.08);
  border: 1px solid rgba(184,153,110,0.2);
  color: var(--primary-dark);
  font-weight: 500;
}

.core-list li::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--secondary);
}

.core-list.nested {
  padding-left: 1.5rem;
  margin-top: 12px;
}

.core-list.nested li {
  background: rgba(184,153,110,0.04);
  border-color: rgba(184,153,110,0.12);
}

.resume-item {
  margin-bottom: 28px;
}

/* === Metrics Infographics === */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 0 -12px 28px;
  padding: 0 12px;
}

.metric-card {
  background: var(--white);
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: var(--radius);
  padding: 18px 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.metric-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(184,153,110,0.15);
  color: var(--secondary);
}

.metric-details {
  flex: 1;
}

.metric-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-dark);
  margin: 0 0 4px;
}

.metric-label {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.4;
}

.resume-item h4 {
  margin: 0 0 6px;
  font-size: 18px;
}

.resume-item ul {
  margin: 10px 0 0 18px;
  padding: 0;
  list-style: disc;
  color: rgba(15, 23, 42, 0.9);
}

.resume-aside .card {
  margin-bottom: 18px;
  border: 1px solid rgba(184,153,110,0.12);
  box-shadow: 0 10px 18px rgba(15,23,42,0.05);
}

.skill-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.skill-list li {
  font-size: 14px;
  color: var(--text);
}

@media (max-width: 900px) {
  .resume-grid {
    grid-template-columns: 1fr;
  }
  .resume-main {
    order: 1;
  }
  .resume-grid > .resume-section,
  .resume-download {
    order: 2;
  }

  .core-list.bulleted {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .list-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .list-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .link-grid {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
}

@media print {
  body, html {
    background: #fff;
    color: #111;
  }

  .site-header, .nav-toggle, .footer-bottom, .footer-grid, .nav-links, .link-btn {
    display: none !important;
  }

  .resume-top, .resume-section {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  .resume-top h2 {
    font-size: 28px;
  }

  .resume-meta, .resume-tagline {
    color: #333 !important;
  }

  .core-list li,
  .resume-item,
  .skill-list li {
    page-break-inside: avoid;
  }

  .resume-grid {
    display: block;
  }
}


/* === Cards === */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card-body  { padding: 20px; }
.card-img   { width: 100%; height: 180px; object-fit: cover; background: var(--light-bg); }

/* === Forms === */
.form-group { margin-bottom: 18px; }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--text);
}

input[type=text], input[type=email], input[type=tel],
input[type=number], input[type=password], input[type=date],
input[type=time], select, textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184,153,110,0.15);
}
textarea { resize: vertical; min-height: 100px; }
select   { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23718096' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

.form-hint { font-size: 12px; color: var(--text-light); margin-top: 4px; }

.form-check { display: flex; align-items: flex-start; gap: 10px; }
.form-check input[type=checkbox] { width: 16px; height: 16px; margin-top: 3px; flex-shrink: 0; accent-color: var(--primary); }

/* === Alerts / Messages === */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.alert-success { background: var(--success-light); color: #276749; border: 1px solid #9ae6b4; }
.alert-error   { background: var(--error-light);   color: #9b2c2c; border: 1px solid #fc8181; }
.alert-info    { background: #eaf4eb;               color: #1a3d24; border: 1px solid #a3d4a8; }

/* === Badge === */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
}
.badge-gold    { background: #fff3cd; color: #856404; }
.badge-blue    { background: #d4edd6; color: var(--primary); }
.badge-green   { background: var(--success-light); color: #276749; }
.badge-red     { background: var(--error-light); color: #9b2c2c; }

/* === Home Hero === */
.home-hero {
  background: #ffffff;
  color: var(--text);
  height: 100vh;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 40px 24px 60px;
}

.home-hero::before,
.home-hero::after { display: none; }

/* Hero inner — centered column */
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 1100px;
  animation: heroFadeUp 0.9s cubic-bezier(0.4,0,0.2,1) 0.15s both;
}

/* Eyebrow row: "Welcome! I'm Julie ✦" */
.hero-top-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}
.home-hero .eyebrow {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 20px;
  letter-spacing: 0;
  text-transform: none;
  color: #0b0b0b;
  margin: 0;
}
.hero-sparkle {
  font-family: 'Material Symbols Rounded', monospace;
  font-size: 22px;
  color: var(--accent-teal);
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
  line-height: 1;
  user-select: none;
}

/* Cycling statements wrapper */
.hero-statements {
  position: relative;
  width: 100%;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  margin-bottom: 10px;
}

/* Each statement */
.hero-statement {
  font-family: 'Inter', sans-serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  line-height: 1.2;
  color: #0b0b0b;
  text-align: center;
  position: absolute;
  left: 0;
  right: 0;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s cubic-bezier(0.4,0,0.2,1),
              transform 0.65s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
}
.hero-statement.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.hero-statement.exiting {
  opacity: 0;
  transform: translateY(-30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* CTA buttons row */
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero-mobile-photo { display: none; }

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #505050;
  opacity: 0.5;
}
.hero-scroll-hint::after {
  content: '';
  display: block;
  width: 1px;
  height: 36px;
  background: #505050;
  opacity: 0.4;
}

/* Entry animation */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* === Hero Slider Dots === */
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.65);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s;
  flex-shrink: 0;
}
.hero-dot.active {
  background: var(--secondary);
  border-color: var(--secondary);
  transform: scale(1.25);
}
.hero-dot:hover { border-color: #fff; }

/* === School Calendar Tabs === */
.cal-tab-btn {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text-light);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.cal-tab-btn.active,
.cal-tab-btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* === Quick Nav Cards (Home) === */
.quick-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
}
.quick-nav-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 16px 24px;
  text-align: center;
  transition: all var(--transition);
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.quick-nav-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  color: var(--primary);
}
.quick-nav-icon {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--secondary);
}
.quick-nav-card h3 { font-size: 15px; font-weight: 700; }
.quick-nav-card p  { font-size: 12px; color: var(--text-light); }

/* === Announcements === */
.announcement-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.announcement-item:last-child { border-bottom: none; }
.announcement-date {
  flex-shrink: 0;
  width: 52px;
  text-align: center;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius);
  padding: 8px 4px;
}
.announcement-date .day   { font-size: 22px; font-weight: 800; font-family: 'Inter', sans-serif; line-height: 1; }
.announcement-date .month { font-size: 11px; font-weight: 600; text-transform: uppercase; opacity: 0.85; }
.announcement-content h4  { font-size: 15px; margin-bottom: 4px; }
.announcement-content p   { font-size: 13px; color: var(--text-light); }

/* === Events Calendar === */
.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--primary);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  color: var(--white);
}
.calendar-nav h3 { color: var(--white); font-size: 18px; }
.cal-btn {
  background: rgba(255,255,255,0.15);
  border: none;
  color: var(--white);
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 16px;
  transition: background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cal-btn:hover { background: rgba(255,255,255,0.25); }

.calendar-grid {
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: hidden;
}
.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--light-bg);
  border-bottom: 1px solid var(--border);
}
.cal-weekday {
  text-align: center;
  padding: 10px 4px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-light);
}
.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.cal-day {
  min-height: 90px;
  padding: 8px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--transition);
}
.cal-day:hover { background: #f0f4ff; }
.cal-day:nth-child(7n) { border-right: none; }
.cal-day.other-month .day-num { color: #c0c8d8; }
.cal-day.today { background: #fffbeb; }
.cal-day.today .day-num {
  background: var(--secondary);
  color: var(--primary-dark);
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cal-day.has-event { position: relative; }
.day-num { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.cal-event-dot {
  font-size: 11px;
  font-weight: 600;
  background: var(--primary);
  color: var(--white);
  border-radius: 4px;
  padding: 2px 6px;
  margin-bottom: 3px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.cal-event-dot.type-meeting  { background: var(--primary); }
.cal-event-dot.type-fundraiser { background: var(--success); }
.cal-event-dot.type-social   { background: #805ad5; }
.cal-event-dot.type-academic { background: var(--warning); }
.cal-event-dot.type-other    { background: var(--text-light); }

.event-list-item {
  display: flex;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  transition: box-shadow var(--transition);
  background: var(--white);
}
.event-list-item:hover { box-shadow: var(--shadow); }
.event-date-badge {
  flex-shrink: 0;
  width: 58px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius);
  padding: 10px 4px;
  text-align: center;
}
.event-date-badge .eday   { font-size: 26px; font-weight: 800; font-family: 'Inter', sans-serif; line-height: 1; }
.event-date-badge .emonth { font-size: 11px; text-transform: uppercase; font-weight: 600; opacity: 0.85; }
.event-info h4 { font-size: 16px; margin-bottom: 4px; }
.event-info p  { font-size: 13px; color: var(--text-light); }
.event-meta    { display: flex; gap: 14px; margin-top: 6px; flex-wrap: wrap; }
.event-meta span { font-size: 12px; color: var(--text-light); display: flex; align-items: center; gap: 4px; }

/* Admin Panel */
.admin-panel {
  background: var(--light-bg);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.admin-toggle {
  background: none;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  padding: 8px 18px;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 13px;
  transition: all var(--transition);
}
.admin-toggle:hover { background: var(--primary); color: var(--white); }

/* === Directory === */
.privacy-notice {
  background: #eaf4eb;
  border: 1px solid #a3d4a8;
  border-radius: var(--radius);
  padding: 16px;
  font-size: 13px;
  color: #1a3d24;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.privacy-notice i { font-size: 16px; flex-shrink: 0; margin-top: 1px; }

.member-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: box-shadow var(--transition);
}
.member-card:hover { box-shadow: var(--shadow); }
.member-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--secondary);
  flex-shrink: 0;
}
.member-info h4 { font-size: 15px; margin-bottom: 4px; }
.member-info p  { font-size: 13px; color: var(--text-light); margin-bottom: 2px; }
.member-grades  { font-size: 12px; display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }

.search-bar {
  position: relative;
  margin-bottom: 24px;
}
.search-bar input {
  padding-left: 42px;
}
.search-bar i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
}

/* === Shop === */
.shop-product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.shop-product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

.product-img-wrap {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.product-img-wrap .product-icon {
  font-size: 64px;
  opacity: 0.9;
}
.product-img-wrap .product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
}

.product-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.product-body h3 { font-size: 16px; margin-bottom: 6px; }
.product-body p  { font-size: 13px; color: var(--text-light); margin-bottom: 12px; flex: 1; }
.product-footer  { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); }
.product-price   { font-family: 'Inter', sans-serif; font-weight: 800; font-size: 20px; color: var(--primary); }

.size-select { min-width: 90px; padding: 8px 10px; font-size: 13px; }

/* Cart */
.cart-sidebar {
  position: fixed;
  top: 0; right: -380px;
  width: 360px;
  height: 100vh;
  background: var(--white);
  box-shadow: -4px 0 24px rgba(0,0,0,0.15);
  z-index: 2000;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}
.cart-sidebar.open { right: 0; }
.cart-header {
  padding: 20px;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-header h3 { color: var(--white); }
.cart-close { background: none; border: none; color: var(--white); font-size: 20px; }
.cart-items { flex: 1; overflow-y: auto; padding: 16px; }
.cart-item  { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.cart-item-info { flex: 1; }
.cart-item-info h5 { font-size: 14px; margin-bottom: 4px; }
.cart-item-info p  { font-size: 12px; color: var(--text-light); }
.cart-item-price   { font-weight: 700; color: var(--primary); }
.cart-footer { padding: 16px 20px; border-top: 1.5px solid var(--border); }
.cart-total  { font-family: 'Inter', sans-serif; font-size: 18px; font-weight: 700; display: flex; justify-content: space-between; margin-bottom: 16px; }
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 1999; display: none; }
.cart-overlay.open { display: block; }

.cart-fab {
  position: fixed;
  bottom: 28px; right: 28px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50px;
  padding: 14px 22px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 500;
  transition: all var(--transition);
}
.cart-fab:hover { background: var(--primary-dark); transform: translateY(-2px); }
.cart-badge {
  background: var(--secondary);
  color: var(--primary-dark);
  border-radius: 50%;
  width: 22px; height: 22px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === Volunteer === */
.volunteer-event-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
}
.volunteer-event-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.volunteer-event-header h3 { color: var(--white); font-size: 17px; }
.volunteer-event-body { padding: 20px; }
.volunteer-role {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
  flex-wrap: wrap;
}
.volunteer-role:last-child { border-bottom: none; padding-bottom: 0; }
.volunteer-role-info h5  { font-size: 14px; font-weight: 700; }
.volunteer-role-info p   { font-size: 12px; color: var(--text-light); }
.slots-display { display: flex; gap: 6px; flex-wrap: wrap; }
.slot-chip {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
}
.slot-chip.filled { background: var(--primary); border-color: var(--primary); color: var(--white); }
.slot-chip.open   { background: var(--light-bg); color: var(--text-light); }

.my-signups-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.my-signups-table th {
  background: var(--primary);
  color: var(--white);
  padding: 10px 14px;
  text-align: left;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 13px;
}
.my-signups-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.my-signups-table tr:last-child td { border-bottom: none; }
.my-signups-table tr:nth-child(even) { background: var(--light-bg); }

/* === About === */
.board-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  transition: all var(--transition);
}
.board-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.board-avatar {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 26px;
  color: var(--secondary);
}
.board-card h4  { font-size: 16px; margin-bottom: 4px; }
.board-card .role { font-size: 13px; color: var(--primary); font-weight: 600; font-family: 'Inter', sans-serif; }
.board-card .email { font-size: 13px; color: var(--text-light); margin-top: 8px; }

.meeting-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--light-bg);
  border-radius: var(--radius);
  margin-bottom: 10px;
}
.meeting-icon { font-size: 20px; color: var(--primary); flex-shrink: 0; }
.meeting-info h5 { font-size: 14px; font-weight: 600; }
.meeting-info p  { font-size: 13px; color: var(--text-light); }

.stat-box {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
}
.stat-box .stat-num {
  font-family: 'Inter', sans-serif;
  font-size: 42px;
  font-weight: 800;
  color: var(--secondary);
  display: block;
  line-height: 1;
}
.stat-box .stat-label { font-size: 14px; opacity: 0.9; margin-top: 6px; }

/* === Contact === */
.contact-info-card {
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}
.contact-info-card h3 { color: var(--white); margin-bottom: 20px; }
.contact-info-item {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
  align-items: flex-start;
}
.contact-info-item i { font-size: 18px; color: var(--secondary); flex-shrink: 0; margin-top: 2px; }
.contact-info-item p { font-size: 14px; opacity: 0.9; }
.contact-info-item strong { display: block; color: var(--white); font-size: 14px; }

.social-links { display: flex; gap: 12px; margin-top: 24px; }
.social-link {
  width: 42px; height: 42px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 18px;
  transition: all var(--transition);
  text-decoration: none;
}
.social-link:hover { background: var(--secondary); color: var(--primary-dark); }

.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

/* === Footer === */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.80);
  padding: 48px 0 24px;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .nav-brand-text .school { font-size: 12px; }
.footer-brand .nav-brand-text .org   { font-size: 16px; }
.footer-brand p { font-size: 13px; opacity: 0.75; margin-top: 12px; max-width: 280px; line-height: 1.7; }
.footer-heading { color: var(--secondary); font-family: 'Inter', sans-serif; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.footer-links li { margin-bottom: 8px; }
.footer-links a  { font-size: 13px; color: rgba(255,255,255,0.75); transition: color var(--transition); }
.footer-links a:hover { color: var(--secondary); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  opacity: 0.65;
}

/* === Modal === */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h3 { font-size: 18px; }
.modal-close { background: none; border: none; font-size: 22px; color: var(--text-light); }
.modal-body  { padding: 24px; }

/* === Tabs === */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 28px; }
.tab-btn {
  padding: 10px 20px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-light);
  transition: all var(--transition);
}
.tab-btn.active, .tab-btn:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* === Responsive === */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  :root { --nav-height: 60px; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: var(--nav-height); left: 0; right: 0; background: #ffffff; border-bottom: 1px solid rgba(0,0,0,0.09); padding: 12px 16px; box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 14px; font-size: 14px; border-radius: var(--radius); }
  .nav-toggle { display: flex; }
  .site-header { position: relative; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .home-hero {
    height: 100svh;
    min-height: 500px;
    padding: 60px 20px 80px !important;
    justify-content: center;
  }
  .hero-statement { font-size: clamp(28px, 7.5vw, 42px); }
  .hero-statements { min-height: 120px; }
  .home-hero .eyebrow { font-size: 17px; }
  .hero-scroll-hint { display: none; }
  .home-work-grid { grid-template-columns: 1fr !important; }
  .home-about-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  .home-about-section { padding: 56px 0 !important; }
  .home-about-grid img { max-height: 320px !important; }
  .section { padding: 40px 0; }
  .cal-day { min-height: 60px; }
  .cal-day .cal-event-dot { display: none; }
  .cal-day.has-event::after { content: '•'; color: var(--primary); font-size: 16px; display: block; text-align: center; }
  .cart-sidebar { width: 100%; right: -100%; }
}

@media (max-width: 480px) {
  .quick-nav-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .btn-lg { width: 100%; justify-content: center; }
}

/* === Print === */
@media print { .site-header, .site-footer, .cart-fab, .cart-sidebar, .cart-overlay, .admin-panel { display: none !important; } }

/* ============================================================
   Homepage v2 — Section Components
   ============================================================ */

/* --- Section Eyebrow & Title --- */
.section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--text-light);
  margin-bottom: 14px;
}

.section-title-lg {
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.18;
  margin-bottom: 44px;
}

/* --- Work Grid --- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.work-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 20px;
  overflow: hidden;
  transition: box-shadow 0.22s, transform 0.22s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.work-card:hover {
  box-shadow: 0 16px 44px rgba(0,0,0,0.11);
  transform: translateY(-4px);
  color: inherit;
}

.work-card-image {
  position: relative;
  height: 240px;
  background: var(--light-bg);
  overflow: hidden;
  flex-shrink: 0;
}

.work-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.3s ease;
}

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

.work-card-metrics {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.metric-badge {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-dark);
  border: 1px solid rgba(0,0,0,0.09);
  white-space: nowrap;
}

.metric-badge.green {
  color: #15803d;
  background: rgba(220,252,231,0.94);
  border-color: rgba(21,128,61,0.15);
}

.metric-badge.blue {
  color: var(--primary);
  background: rgba(220,240,255,0.94);
  border-color: rgba(11,42,64,0.15);
}

.work-card-body {
  padding: 22px 24px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.work-card-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  margin-bottom: 10px;
  border-top: 2px solid var(--secondary);
  padding-top: 12px;
  display: block;
}

.work-card-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 0 0 8px;
  line-height: 1.3;
}

.work-card-body p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 18px;
  flex: 1;
}

.work-card-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.18s;
  text-decoration: none;
}

.work-card:hover .work-card-link {
  gap: 9px;
}

/* --- Strengths Grid --- */
.strengths-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.strength-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  padding: 28px 22px 26px;
}

.strength-icon {
  width: 48px;
  height: 48px;
  background: rgba(184,153,110,0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}

.strength-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 0 0 10px;
  line-height: 1.3;
}

.strength-card p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.65;
  margin: 0;
}

/* --- Testimonials Grid --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.testimonial-quote {
  font-size: 15px;
  color: var(--text);
  line-height: 1.72;
  margin-bottom: 24px;
  flex: 1;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

.testimonial-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 2px;
}

.testimonial-role {
  font-size: 12px;
  color: var(--text-light);
}

/* --- Responsive: homepage v2 --- */
@media (max-width: 900px) {
  .strengths-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .work-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .strengths-grid { grid-template-columns: repeat(2, 1fr); }
  .section-title-lg { margin-bottom: 28px; }
}

/* ============================================================
   HERO BOTTOM BAR — scroll hint + contact info
   ============================================================ */
.hero-bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 48px 32px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  pointer-events: none;
}

.hero-scroll-col {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #505050;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}
.hero-scroll-col::before {
  content: '';
  display: block;
  width: 1px;
  height: 48px;
  background: #505050;
  margin-bottom: 8px;
}

.hero-contact-bar {
  display: flex;
  align-items: flex-end;
  gap: 40px;
  pointer-events: auto;
}

.hero-contact-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.hero-contact-label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #505050;
}

.hero-contact-items {
  display: flex;
  align-items: center;
  gap: 20px;
}

.hero-contact-item {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #0b0b0b;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.18s;
}
.hero-contact-item:hover { color: #b8996e; }

.hero-contact-icon {
  font-family: 'Material Symbols Rounded';
  font-size: 16px;
  line-height: 1;
  color: #505050;
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

.hero-location {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #505050;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ============================================================
   CASE STUDIES SECTION — pill header + landscape cards
   ============================================================ */
.cs-section {
  background: #ffffff;
  padding: 96px 0;
}

.cs-section-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 48px;
}

.cs-section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 56px;
}

/* Pill label above section title */
.cs-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--cream);
  border: 1px solid rgba(184,153,110,0.3);
  border-radius: 100px;
  padding: 6px 14px 6px 10px;
}

.cs-pill-icon {
  font-family: 'Material Symbols Rounded';
  font-size: 16px;
  line-height: 1;
  color: #b8996e;
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

.cs-pill-text {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #b8996e;
}

.cs-section-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  color: #0b0b0b;
  line-height: 1.2;
  margin: 0;
}

/* Stack of cards */
.cs-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Single landscape card */
.cs-card {
  background: var(--cream);
  border-radius: 40px;
  padding: 48px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 48px;
  overflow: hidden;
}
.cs-card:nth-child(even) {
  flex-direction: row-reverse;
}

/* Text side */
.cs-card-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cs-card-company {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #b8996e;
  margin: 0;
}

.cs-card-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 500;
  color: #0b0b0b;
  line-height: 1.25;
  margin: 0;
}

.cs-card-desc {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 300;
  color: #505050;
  line-height: 1.7;
  margin: 0;
}

.cs-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cs-tag {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #505050;
  background: rgba(0,0,0,0.06);
  border-radius: 100px;
  padding: 4px 12px;
}

.cs-card-metrics {
  display: flex;
  gap: 32px;
}

.cs-metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cs-metric-value {
  font-family: 'Inter', sans-serif;
  font-size: 26px;
  font-weight: 500;
  color: #0b0b0b;
  line-height: 1;
}

.cs-metric-label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: #505050;
}

.cs-card-actions {
  margin-top: 4px;
}

.cs-link-primary {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #b8996e;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.18s;
}
.cs-link-primary:hover { gap: 10px; }

.cs-arrow-icon {
  font-family: 'Material Symbols Rounded';
  font-size: 18px;
  line-height: 1;
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

/* Image side */
.cs-card-image {
  flex: 1;
  min-width: 0;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--cream-dark);
}
.cs-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================================
   RESPONSIVE — new components
   ============================================================ */
@media (max-width: 900px) {
  .cs-section-inner { padding: 0 24px; }
  .cs-card, .cs-card:nth-child(even) {
    flex-direction: column;
    border-radius: 28px;
    padding: 32px;
    gap: 28px;
  }
  .cs-card-image {
    width: 100%;
    aspect-ratio: 16/9;
  }
  .hero-bottom-bar { padding: 0 24px 24px; }
}

@media (max-width: 600px) {
  .hero-bottom-bar { display: none; }
  .cs-section { padding: 64px 0; }
  .cs-section-header { margin-bottom: 36px; }
  .cs-card-metrics { gap: 20px; }
  .cs-metric-value { font-size: 22px; }
  .strengths-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   CASE STUDY PAGES — Clean editorial layout
   (shared across all case study HTML files)
   ============================================================ */

/* Clean cream hero */
.cs-hero-clean {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 80px 0 64px;
}
.cs-hero-clean h1 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 500;
  color: var(--ink);
  margin: 16px 0 20px;
  line-height: 1.1;
}
.cs-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}
.cs-hero-desc {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.72;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 0 36px;
}
.cs-hero-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.cs-hero-meta-item {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text);
}
.cs-hero-meta-item strong {
  display: block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin-bottom: 4px;
  font-family: 'Inter', sans-serif;
}
.cs-hero-meta-item a { color: var(--accent); }
.cs-hero-meta-item a:hover { color: var(--accent-dark); }

/* Stats ribbon — light */
.cs-stats-ribbon {
  background: var(--cream-dark);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}
.cs-stats-ribbon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.cs-stats-ribbon-grid > div {
  background: var(--cream-dark);
  padding: 28px 20px;
}
.cs-stat-number {
  font-family: 'Inter', sans-serif;
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 8px;
}
.cs-stat-lbl {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--text-light);
}

/* Section label */
.cs-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  display: block;
}

/* Back link */
.cs-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-light);
  text-decoration: none;
  margin-bottom: 32px;
  transition: color 0.2s;
}
.cs-back:hover { color: var(--ink); }

/* Highlight box — light editorial */
.cs-box {
  border-left: 3px solid var(--accent);
  background: var(--cream);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 24px 28px;
  margin: 32px 0;
}
.cs-box h3 { color: var(--ink); margin: 0 0 10px; font-weight: 500; }
.cs-box p  { margin: 0; font-size: 15px; line-height: 1.72; color: var(--text-light); }

/* Feature list */
.cs-list { list-style: none; padding: 0; margin: 0; }
.cs-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-light);
}
.cs-list li:last-child { border-bottom: none; }
.cs-list li::before {
  content: '→';
  color: var(--accent);
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Two-column */
.cs-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 720px) { .cs-cols { grid-template-columns: 1fr; } }

/* CTA bar */
.cs-cta {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 48px;
}
.cs-cta h3 { margin: 0 0 4px; font-size: 1.15rem; color: var(--ink); font-weight: 500; }
.cs-cta p  { margin: 0; color: var(--text-light); font-size: 14px; }

/* Image screenshot cards (4-up grids in case studies) */
.cs-img-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--white);
  transition: box-shadow var(--transition), transform var(--transition);
}
.cs-img-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.cs-img-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.3s;
}
.cs-img-card:hover img { transform: scale(1.02); }
.cs-img-card-body { padding: 16px 18px 20px; flex: 1; }
.cs-img-card-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
  font-family: 'Inter', sans-serif;
}
.cs-img-card-body h3 {
  margin: 0 0 6px;
  font-size: 0.9rem;
  color: var(--ink);
  line-height: 1.3;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}
.cs-img-card-body p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-light);
}

/* Tool tags */
.cs-tag-tool {
  display: inline-block;
  background: var(--cream);
  border: 1px solid var(--border);
  color: var(--text-light);
  font-size: 12px;
  font-weight: 400;
  padding: 4px 12px;
  border-radius: 20px;
  margin: 4px 4px 4px 0;
  font-family: 'Inter', sans-serif;
}

/* Inline image card with browser chrome feel */
.cs-browser-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.cs-browser-bar {
  background: var(--cream-dark);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.cs-browser-url { color: var(--text-light); font-size: 12px; font-family: 'Inter', sans-serif; }
.cs-browser-visit { color: var(--accent); font-size: 12px; font-weight: 500; }

@media (max-width: 768px) {
  .cs-hero-clean { padding: 56px 0 40px; }
  .cs-stats-ribbon-grid { grid-template-columns: repeat(2, 1fr); }
  .cs-hero-meta-row { gap: 20px; }
}

/* ============================================================
   NAVY GLASS THEME
   Dark gradient heroes, floating glass nav, wide work cards,
   cream content sections, CTA footer.
   ============================================================ */

:root {
  --navy-deep:   #031326;
  --navy:        #051e3b;
  --teal:        #07abb6;
  --teal-soft:   #83cdd5;
  --on-dark:     #fdfaf7;
  --on-dark-2:   rgba(253,250,247,0.72);
  --on-dark-3:   rgba(253,250,247,0.48);
  --font-display: 'Feature Deck Web Light', 'Inter', sans-serif;
  --ease:        cubic-bezier(.44,0,.56,1);
  --ease-out:    cubic-bezier(.16,1,.3,1);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

body {
  background: var(--cream);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--teal); color: var(--navy-deep); }
h1, h2, h3, h4, h5, h6 { color: var(--ink); letter-spacing: -0.02em; font-weight: 500; }

/* Display type: Feature Deck Light on large headings */
.jp-hero h1,
.page-hero h1,
.cs-hero-clean h1,
.jp-h2,
.jp-card h3,
.jp-cta h2,
.jp-showreel-text {
  font-family: var(--font-display);
  font-weight: 300;
}

/* --- Floating glass nav --- */
.site-header {
  position: fixed;
  top: 16px; left: 0; right: 0;
  background: transparent;
  border: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  pointer-events: none;
}
.site-header .nav-inner {
  pointer-events: auto;
  max-width: 1100px;
  height: 76px;
  margin: 0 auto;
  padding: 0 14px 0 24px;
  width: calc(100% - 32px);
  background: rgba(5,30,59,0.55);
  border: 1px solid rgba(253,250,247,0.10);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background .3s var(--ease);
}
.site-header.scrolled .nav-inner { background: rgba(3,19,38,0.82); }
.nav-logo-img, .site-header .nav-logo-img { height: 56px; }
.nav-links a {
  color: var(--on-dark-2);
  font-weight: 400;
  font-size: 15px;
  padding: 8px 16px;
  border-radius: 999px;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-links a:hover { color: var(--on-dark); background: rgba(253,250,247,0.08); }
.nav-links a.active { color: var(--on-dark); background: rgba(253,250,247,0.12); }
.nav-links li:last-child a { background: var(--on-dark); color: var(--navy); font-weight: 500; margin-left: 6px; }
.nav-links li:last-child a:hover { background: var(--teal-soft); color: var(--navy-deep); }
.nav-toggle { color: var(--on-dark); }

@media (max-width: 768px) {
  .site-header { position: fixed; }
  .site-header .nav-inner { position: relative; }
  .nav-links {
    top: 84px;
    background: rgba(3,19,38,0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(253,250,247,0.10);
    border-radius: 24px;
    padding: 10px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  }
  .nav-links li:last-child a { margin: 6px 0 0; text-align: center; }
}

/* --- Buttons --- */
.btn { border-radius: 999px; font-weight: 500; letter-spacing: 0; padding: 12px 26px; }
.btn-lg { padding: 15px 32px; font-size: 16px; }
.btn-primary { background: var(--navy); border-color: var(--navy); color: var(--on-dark); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: none; }
.btn-outline, .btn-outline-dark { background: transparent; border-color: var(--border); color: var(--ink); }
.btn-outline:hover, .btn-outline-dark:hover { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn-light { background: var(--on-dark); color: var(--navy); border-color: var(--on-dark); }
.btn-light:hover { background: var(--teal-soft); border-color: var(--teal-soft); color: var(--navy-deep); }
.btn-ghost-light { background: transparent; color: var(--on-dark); border-color: rgba(253,250,247,0.25); }
.btn-ghost-light:hover { border-color: var(--on-dark); color: var(--on-dark); }

/* --- Shared dark gradient surface --- */
.jp-hero,
.page-hero,
.cs-hero-clean,
.jp-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy-deep);
  color: var(--on-dark);
}
.jp-hero::before,
.page-hero::before,
.cs-hero-clean::before,
.jp-cta::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: -2;
  background:
    radial-gradient(40% 50% at 18% 30%, rgba(7,171,182,0.45), transparent 70%),
    radial-gradient(45% 55% at 82% 20%, rgba(19,52,113,0.95), transparent 70%),
    radial-gradient(50% 60% at 60% 95%, rgba(13,90,107,0.85), transparent 70%),
    linear-gradient(160deg, #051e3b 0%, #031326 60%);
  animation: jp-drift 22s var(--ease) infinite alternate;
}
.jp-hero::after,
.page-hero::after,
.cs-hero-clean::after,
.jp-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--grain);
  background-size: 160px;
  opacity: .18;
  mix-blend-mode: overlay;
  pointer-events: none;
}
@keyframes jp-drift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(4%,-3%,0) scale(1.08); }
  100% { transform: translate3d(-3%,4%,0) scale(1.02); }
}

/* --- Home hero --- */
.jp-hero {
  min-height: 56vh;
  display: flex;
  align-items: flex-end;
  padding: 150px 0 48px;
}
.jp-wrap { width: 100%; max-width: 1248px; margin: 0 auto; padding: 0 32px; }
.jp-hero h1 {
  color: var(--on-dark);
  font-weight: 300;
  font-size: 84px;
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-wrap: balance;
  text-shadow: 0 1px 5px rgba(0,0,0,0.25);
  text-align: center;
  margin: 0 auto 24px;
}
.jp-hero h1 .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(12px);
  filter: blur(6px);
  animation: jp-word .9s var(--ease-out) forwards;
  animation-delay: calc(var(--i) * 70ms + 150ms);
}
@keyframes jp-word { to { opacity: 1; transform: none; filter: none; } }
.jp-hero-sub {
  color: var(--on-dark-2);
  color: #b1b9c4;
  font-size: 24px;
  font-weight: 300;
  line-height: 1.22;
  letter-spacing: -0.01em;
  max-width: 760px;
  margin: 0 auto;
  opacity: 0;
  animation: jp-fade 1s var(--ease-out) 1s forwards;
}
.jp-hero-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}
.jp-hero-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 28px;
  font-size: 14px;
  color: var(--on-dark-3);
  opacity: 0;
  animation: jp-fade 1s var(--ease-out) 1.2s forwards;
}
.jp-hero-meta a { color: var(--on-dark-2); }
.jp-hero-meta a:hover { color: var(--on-dark); }
.jp-status::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(7,171,182,0.2);
  margin-right: 10px;
  vertical-align: 1px;
}
@keyframes jp-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 1279px) {
  .jp-hero { padding-top: 130px; }
  .jp-hero h1 { font-size: 54px; }
}
@media (max-width: 1023px) {
  .jp-hero { min-height: 0; }
  .jp-hero h1 { font-size: 56px; line-height: 1.08; }
}

/* --- Intro + video band (sits under the hero) --- */
.jp-showreel { background: var(--navy-deep); padding: 0 48px; }
.jp-showreel .jp-wrap { padding: 0; }
.jp-showreel-row {
  display: flex;
  align-items: center;
  gap: 64px;
  padding: 40px 0;
}
.jp-showreel-text {
  flex: 1 1 0;
  color: var(--teal);
  font-size: 28px;
  font-weight: 300;
  line-height: 1.22;
  letter-spacing: -0.01em;
  max-width: 600px;
}
.jp-showreel-media {
  flex: 0 0 440px;
  margin-left: auto;
  aspect-ratio: 1;
}
.jp-showreel-media { position: relative; }
.jp-showreel-media::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(253,250,247,0.10);
  pointer-events: none;
}
.jp-reel-chip, .jp-reel-toggle {
  position: absolute;
  bottom: 14px;
  z-index: 1;
  background: rgba(3,19,38,0.62);
  border: 1px solid rgba(253,250,247,0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--on-dark);
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.jp-reel-chip {
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 84px);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  white-space: nowrap;
}
.jp-reel-chip span { color: var(--on-dark-3); }
.jp-reel-chip strong { font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.jp-reel-chip i { font-style: normal; opacity: 0; transform: translateX(-4px); transition: all .25s var(--ease); }
.jp-reel-chip:hover { background: rgba(3,19,38,0.85); color: var(--on-dark); }
.jp-reel-chip:hover i { opacity: 1; transform: none; }
.jp-reel-chip.swap strong { animation: jp-chip-in .45s var(--ease-out); }
@keyframes jp-chip-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.jp-reel-toggle {
  right: 14px;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.jp-reel-toggle:hover { background: rgba(3,19,38,0.85); transform: scale(1.06); }
.jp-icon-pause, .jp-icon-play { display: block; width: 12px; height: 12px; }
.jp-icon-pause { border-left: 4px solid currentColor; border-right: 4px solid currentColor; width: 12px; box-sizing: border-box; }
.jp-icon-play { width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent currentColor; margin-left: 3px; }
.jp-showreel-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  background: rgba(3,19,38,0.2);
}
@media (max-width: 1023px) {
  .jp-showreel { padding: 56px 24px 0; }
  .jp-showreel-row { flex-direction: column; align-items: stretch; gap: 40px; padding: 0 0 40px; }
  .jp-showreel-text { font-size: 21px; max-width: none; }
  .jp-showreel-media { flex: none; width: 100%; max-width: 440px; margin: 0 auto; }
}

/* --- Client logo ticker (continues the navy band) --- */
.jp-clients {
  background: var(--navy-deep);
  padding: 40px 0 64px;
  overflow: hidden;
}
.jp-clients-track {
  display: flex;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 12.5%, #000 87.5%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0%, #000 12.5%, #000 87.5%, transparent 100%);
}
.jp-clients-list {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 64px;
  height: 80px;
  padding-right: 64px;
  animation: jp-ticker 75s linear infinite;
}
.jp-clients-track:hover .jp-clients-list { animation-play-state: paused; }
.jp-clients-list img {
  height: var(--h, 26px);
  width: auto;
  max-width: none;
  filter: brightness(0) invert(1);
  opacity: .55;
  transition: opacity .3s var(--ease);
}
.jp-clients-list img:hover { opacity: .9; }
@keyframes jp-ticker { to { transform: translateX(-100%); } }
@media (max-width: 767px) {
  .jp-clients { padding: 24px 0 40px; }
  .jp-clients-list { gap: 44px; padding-right: 44px; height: 64px; animation-duration: 56s; }
  .jp-clients-list img { height: calc(var(--h, 26px) * .8); }
}
@media (prefers-reduced-motion: reduce) {
  .jp-clients-list { animation: none; }
}

/* --- Sections --- */
.jp-section { padding: 120px 0; }
.jp-section-sm { padding: 80px 0; }
.jp-eyebrow {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 16px;
}
.jp-h2 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* --- Work cards --- */
.jp-work { padding-top: 24px; }
.jp-work-list { display: grid; gap: 24px; }
.jp-card {
  --card-bg: #001842;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  min-height: 460px;
  border-radius: 32px;
  overflow: hidden;
  background: var(--card-bg);
  color: var(--on-dark);
  isolation: isolate;
  transform: translateZ(0);
}
.jp-card:hover { color: var(--on-dark); }
.jp-card-bg {
  position: absolute; inset: 0; z-index: -1;
  background-size: cover;
  background-position: center;
  opacity: .22;
  filter: blur(18px) saturate(1.2);
  transform: scale(1.15);
}
.jp-card::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image: var(--grain);
  background-size: 160px;
  opacity: .14;
  mix-blend-mode: overlay;
}
.jp-card-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: 44px;
}
.jp-card-meta { font-size: 14px; color: var(--on-dark-3); }
.jp-card h3 {
  color: var(--on-dark);
  font-size: clamp(22px, 2.1vw, 30px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.jp-card-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.jp-card-tags span {
  font-size: 13px;
  color: var(--on-dark-2);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(253,250,247,0.16);
}
.jp-card-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--on-dark);
  color: var(--navy);
  font-size: 22px;
  opacity: 0;
  filter: blur(8px);
  transform: translateX(-8px);
  transition: all .45s var(--ease-out);
}
.jp-card:hover .jp-card-arrow,
.jp-card:focus-visible .jp-card-arrow { opacity: 1; filter: none; transform: none; }
.jp-card-media { position: relative; padding: 44px 0 0 0; }
.jp-card-media img {
  position: absolute;
  left: 0; top: 44px;
  width: 112%;
  max-width: none;
  border-radius: 16px 0 0 0;
  box-shadow:
    0 1px 2px rgba(0,0,0,.09), 0 4px 10px rgba(0,0,0,.09),
    0 10px 27px rgba(0,0,0,.1), 0 27px 77px rgba(0,0,0,.13),
    20px 50px 140px rgba(0,0,0,.16);
  transition: transform .8s var(--ease-out);
}
.jp-card:hover .jp-card-media img { transform: translateY(-10px) scale(1.015); }

@media (max-width: 900px) {
  .jp-card { grid-template-columns: 1fr; min-height: 0; }
  .jp-card-text { padding: 32px 28px 0; }
  .jp-card-media { padding: 0; aspect-ratio: 16 / 10; margin-left: 28px; }
  .jp-card-media img { top: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
  .jp-card-arrow { opacity: 1; filter: none; transform: none; width: 40px; height: 40px; }
}

/* --- Intro / services --- */
.jp-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.jp-intro-photo img {
  width: 100%;
  height: auto;
  border-radius: 24px;
}
.jp-intro p { font-size: 19px; line-height: 1.6; font-weight: 300; color: var(--ink-2); }
.jp-intro .jp-h2 { margin-bottom: 28px; }
.jp-services {
  margin: 28px 0 36px;
  columns: 2;
  column-gap: 32px;
}
.jp-services li {
  font-size: 17px;
  line-height: 1.9;
  color: var(--ink);
  break-inside: avoid;
}
.jp-services li::before { content: "– "; color: var(--accent); }
.jp-inline-link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(5,30,59,0.25);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: text-decoration-color .4s var(--ease), color .4s var(--ease);
}
.jp-inline-link:hover { color: var(--accent); text-decoration-color: var(--accent); }
@media (max-width: 900px) {
  .jp-intro { grid-template-columns: 1fr; gap: 40px; }
  .jp-intro-photo { max-width: 640px; }
}

/* --- Testimonials --- */
.jp-quotes-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
}
.jp-quotes-nav { display: flex; gap: 8px; }
.jp-quotes-nav button {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink);
  font-size: 20px;
  transition: all .2s var(--ease);
}
.jp-quotes-nav button:hover { border-color: var(--ink); background: var(--ink); color: var(--on-dark); }
.jp-quotes {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(320px, 46%);
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.jp-quotes::-webkit-scrollbar { display: none; }
.jp-quote {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: 40px;
  border-radius: 32px;
  background: var(--white);
  border: 1px solid var(--border);
}
.jp-quote blockquote {
  font-family: 'Alegreya', Georgia, serif;
  font-style: italic;
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.5;
  color: var(--ink);
}
.jp-quote blockquote::before {
  content: "“";
  display: block;
  font-size: 64px;
  line-height: .6;
  margin-bottom: 12px;
  color: var(--teal);
}
.jp-quote-name { font-weight: 500; color: var(--ink); font-size: 15px; }
.jp-quote-role { color: var(--text-light); font-size: 14px; }
@media (max-width: 700px) {
  .jp-quotes { grid-auto-columns: 88%; }
  .jp-quote { padding: 28px; }
}

/* --- CTA + footer --- */
.jp-cta { padding: 140px 0 0; }
.jp-cta h2 {
  color: var(--on-dark);
  font-weight: 300;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
}
.jp-cta h2 span { color: var(--on-dark-3); }
.jp-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.jp-footer {
  margin-top: 120px;
  padding: 28px 0 36px;
  border-top: 1px solid rgba(253,250,247,0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
  color: var(--on-dark-3);
}
.jp-footer img { height: 32px; width: auto; }
.jp-footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
.jp-footer a { color: var(--on-dark-2); }
.jp-footer a:hover { color: var(--on-dark); }

/* --- Project galleries + lightbox --- */
[data-lightbox] { cursor: zoom-in; transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out); }
[data-lightbox]:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(5,30,59,0.14); }
[data-lightbox]:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.jp-nda {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(253,250,247,0.18);
  font-size: 14px;
  color: var(--on-dark-2);
}
.jp-card-note { font-size: 13px; color: var(--on-dark-3); margin-top: 10px; }
.jp-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.jp-gallery-phones { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.jp-gallery figure {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  cursor: zoom-in;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.jp-gallery figure:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(5,30,59,0.12); }
.jp-gallery img { width: 100%; height: auto; display: block; }
.jp-gallery figcaption { padding: 14px 18px 18px; font-size: 14px; color: var(--ink-2); }
.jp-gallery-wide { grid-column: 1 / -1; }
.jp-lightbox {
  position: fixed; inset: 0; z-index: 3000;
  display: none; align-items: center; justify-content: center;
  background: rgba(3,19,38,0.94);
  padding: 24px;
}
.jp-lightbox.open { display: flex; }
.jp-lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: 12px; }
.jp-lightbox button {
  position: absolute;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(253,250,247,0.25);
  background: rgba(253,250,247,0.08);
  color: var(--on-dark);
  font-size: 22px;
}
.jp-lightbox button:hover { background: rgba(253,250,247,0.18); }
.jp-lb-close { top: 20px; right: 20px; }
.jp-lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.jp-lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.jp-lb-count { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; font-size: 13px; color: var(--on-dark-3); }

/* --- Section heads --- */
.jp-section-head { max-width: 680px; margin-bottom: 48px; }
.jp-section-lede { font-size: 18px; line-height: 1.6; font-weight: 300; color: var(--ink-3); margin-top: 16px; }

/* --- Services --- */
.jp-services-section { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.jp-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
}
.jp-service { background: var(--white); padding: 28px; }
.jp-service h3 { font-size: 18px; font-weight: 500; margin-bottom: 10px; }
.jp-service p { font-size: 14px; line-height: 1.6; color: var(--ink-3); }

/* --- Industries --- */
.jp-industries { background: var(--navy-deep); color: var(--on-dark); }
.jp-industries .jp-h2 { color: var(--on-dark); }
.jp-industries .jp-eyebrow { color: var(--teal-soft); }
.jp-industries .jp-section-lede { color: var(--on-dark-2); }
.jp-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.jp-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(253,250,247,0.18);
  color: var(--on-dark);
  font-size: 15px;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
a.jp-chip:hover, .jp-chip-menu summary:hover { background: rgba(253,250,247,0.08); border-color: rgba(253,250,247,0.4); color: var(--on-dark); }
.jp-chip-menu { padding: 0; }
.jp-chip-menu summary { list-style: none; cursor: pointer; padding: 12px 22px; border-radius: 999px; }
.jp-chip-menu summary::-webkit-details-marker { display: none; }
.jp-chip-menu summary::after { content: "▾"; margin-left: 8px; font-size: 12px; opacity: .6; }
.jp-chip-menu[open] summary::after { content: "▴"; }
.jp-chip-pop {
  position: absolute;
  top: calc(100% + 8px); left: 0;
  z-index: 20;
  min-width: 260px;
  padding: 8px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.jp-chip-pop a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--ink); font-size: 14px; }
.jp-chip-pop a:hover { background: var(--cream-dark); color: var(--ink); }

/* --- About headshot --- */
.jp-intro-headshot img { max-width: 360px; border-radius: 32px; }

/* --- Award --- */
.jp-award { background: var(--navy-deep); color: var(--on-dark); padding: 120px 0; }
.jp-award-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.jp-award h2 { color: var(--on-dark); font-family: var(--font-display); font-weight: 300; font-size: clamp(28px, 3vw, 40px); line-height: 1.15; margin-bottom: 16px; }
.jp-award p { color: var(--on-dark-2); font-size: 17px; line-height: 1.6; font-weight: 300; margin-bottom: 28px; }
.jp-award img { width: 100%; border-radius: 24px; }
.jp-video-modal {
  position: fixed; inset: 0; z-index: 3000;
  display: none; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(3,19,38,0.94);
}
.jp-video-modal.open { display: flex; }
.jp-video-frame { position: relative; width: 100%; max-width: 900px; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; }
.jp-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.jp-video-close {
  position: absolute; top: 12px; right: 12px; z-index: 1;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(253,250,247,0.25); background: rgba(3,19,38,0.6);
  color: var(--on-dark); font-size: 22px;
}

/* --- Contact --- */
.jp-contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.jp-contact-list { margin: 32px 0; display: grid; gap: 16px; }
.jp-contact-list li { font-size: 16px; color: var(--ink); }
.jp-contact-list span { display: block; font-size: 13px; color: var(--ink-3); margin-bottom: 2px; }
.jp-contact-list a { color: var(--ink); }
.jp-contact-list a:hover { color: var(--accent); }
.jp-form {
  display: grid;
  gap: 18px;
  padding: 36px;
  border-radius: 32px;
  background: var(--white);
  border: 1px solid var(--border);
}
.jp-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.jp-form label { display: grid; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink); }
.jp-form input, .jp-form select, .jp-form textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--cream);
  color: var(--ink);
  font: inherit;
  font-weight: 400;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.jp-form input:focus, .jp-form select:focus, .jp-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(1,132,141,0.15); }
.jp-form textarea { resize: vertical; }
.jp-form .btn { justify-self: start; }
.jp-form-note { font-size: 13px; color: var(--ink-3); }

@media (max-width: 900px) {
  .jp-award-row, .jp-contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .jp-award { padding: 80px 0; }
}
@media (max-width: 600px) {
  .jp-form { padding: 24px; }
  .jp-form-row { grid-template-columns: 1fr; }
  .jp-chip-pop { min-width: 220px; }
}

/* --- Scroll reveal --- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

/* --- Inner page heroes on the dark surface --- */
.page-hero { padding: 180px 0 96px; border: 0; text-align: left; }
.page-hero h1 {
  color: var(--on-dark);
  font-weight: 300;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.page-hero p { color: var(--on-dark-2); font-size: 18px; font-weight: 300; }

.cs-hero-clean { padding: 180px 0 80px; border: 0; }
.cs-hero-clean h1 {
  color: var(--on-dark);
  font-weight: 300;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.cs-hero-clean .cs-eyebrow { color: var(--teal-soft); letter-spacing: 0; text-transform: none; font-size: 14px; }
.cs-hero-clean .cs-hero-desc { color: var(--on-dark-2); font-size: 18px; }
.cs-hero-clean .cs-back { color: var(--on-dark-3); }
.cs-hero-clean .cs-back:hover { color: var(--on-dark); }
.cs-hero-clean .cs-hero-meta-row { border-top-color: rgba(253,250,247,0.14); }
.cs-hero-clean .cs-hero-meta-item { color: var(--on-dark); }
.cs-hero-clean .cs-hero-meta-item strong { color: var(--on-dark-3); }
.cs-hero-clean .cs-hero-meta-item a { color: var(--teal-soft); }

/* Case study body refinements */
.cs-stats-ribbon { background: var(--cream); border: 0; padding: 56px 0; }
.cs-stats-ribbon-grid { background: transparent; gap: 16px; border-radius: 0; overflow: visible; }
.cs-stats-ribbon-grid > div { background: var(--white); border: 1px solid var(--border); border-radius: 24px; }
.cs-stat-number { font-weight: 300; font-size: 2.2rem; letter-spacing: -0.03em; }
.cs-label, .cs-eyebrow { letter-spacing: 0; text-transform: none; font-size: 14px; }
.cs-cta { border-radius: 32px; }
img[style*="border-radius:14px"], img[style*="border-radius:20px"] { border-radius: 24px !important; }

@media (max-width: 768px) {
  .jp-wrap { padding: 0 20px; }
  .jp-section { padding: 80px 0; }
  .jp-hero { padding: 130px 0 40px; }
  .jp-hero h1 { font-size: 44px; line-height: 1.08; }
  .jp-hero-sub { font-size: 19px; }
  .nav-logo-img, .site-header .nav-logo-img { height: 46px; }
  .site-header .nav-inner { height: 66px; }
  .nav-links { top: 74px; }
  .page-hero, .cs-hero-clean { padding: 140px 0 64px; }
  .jp-card-text { padding: 28px 22px 0; }
  .jp-card-media { margin-left: 22px; }
  .jp-services { columns: 1; }
  .jp-quotes-nav { display: none; }
  .jp-cta { padding-top: 96px; }
  .jp-footer { margin-top: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  .jp-hero::before, .page-hero::before, .cs-hero-clean::before, .jp-cta::before { animation: none; }
  .jp-hero h1 .w, .jp-hero-sub, .jp-hero-meta { animation: none; opacity: 1; transform: none; filter: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   HERO WAVE + NAVY HOMEPAGE + TEAL FOOTER
   ============================================================ */

/* --- Hero: WebGL wave gradient (js/app.js initHeroShader) --- */
.jp-hero::before {
  background:
    radial-gradient(60% 70% at 20% 10%, rgba(7,171,182,0.9), transparent 70%),
    radial-gradient(50% 60% at 75% 30%, rgba(13,127,140,0.8), transparent 70%),
    linear-gradient(170deg, #0d7f8c 0%, #00203b 55%, #031326 100%);
}
.jp-hero-shader {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.jp-hero.has-shader .jp-hero-shader { opacity: 1; }
.jp-hero.has-shader::before { animation: none; }
.jp-hero::after { opacity: .16; }
.jp-hero h1 { color: #fff; }

/* --- Homepage sits on deep navy, like the hero band --- */
body.jp-home { background: var(--navy-deep); }
.jp-home main {
  --ink:        var(--on-dark);
  --ink-2:      var(--on-dark-2);
  --ink-3:      rgba(253,250,247,0.62);
  --text:       var(--on-dark-2);
  --text-light: var(--on-dark-3);
  --accent:     var(--teal);
  --white:      #06203d;
  --cream:      var(--navy-deep);
  --cream-dark: rgba(253,250,247,0.08);
  --border:     rgba(253,250,247,0.12);
  color: var(--on-dark-2);
  color-scheme: dark;
}
.jp-home .jp-services-section { background: transparent; border: 0; }
.jp-home .jp-services-grid { background: var(--border); }
.jp-home .jp-inline-link { text-decoration-color: rgba(253,250,247,0.3); }
.jp-home .jp-inline-link:hover { color: var(--teal-soft); text-decoration-color: var(--teal-soft); }
.jp-home .jp-quotes-nav button:hover { background: var(--on-dark); color: var(--navy-deep); }
.jp-home main .btn-primary { background: var(--on-dark); border-color: var(--on-dark); color: var(--navy-deep); }
.jp-home main .btn-primary:hover { background: var(--teal-soft); border-color: var(--teal-soft); color: var(--navy-deep); }
.jp-home main .btn-outline { border-color: rgba(253,250,247,0.3); }
.jp-home main .btn-outline:hover { border-color: var(--on-dark); }
.jp-home .jp-form input:focus,
.jp-home .jp-form select:focus,
.jp-home .jp-form textarea:focus { box-shadow: 0 0 0 3px rgba(7,171,182,0.25); }

/* --- CTA + footer: solid teal band with navy type --- */
.jp-cta { background: var(--teal); color: var(--navy-deep); }
.jp-cta::before { display: none; }
.jp-cta::after { opacity: .12; }
.jp-cta h2 { color: var(--navy-deep); }
.jp-cta h2 span { color: rgba(3,19,38,0.6); }
.jp-cta .btn-light { background: var(--navy-deep); border-color: var(--navy-deep); color: var(--on-dark); }
.jp-cta .btn-light:hover { background: var(--navy); border-color: var(--navy); color: var(--on-dark); }
.jp-cta .btn-ghost-light { border-color: rgba(3,19,38,0.3); color: var(--navy-deep); }
.jp-cta .btn-ghost-light:hover { border-color: var(--navy-deep); color: var(--navy-deep); }
.jp-footer { border-top-color: rgba(3,19,38,0.2); color: rgba(3,19,38,0.7); }
.jp-footer a { color: rgba(3,19,38,0.8); }
.jp-footer a:hover { color: var(--navy-deep); }
.jp-footer img { filter: brightness(0); opacity: .85; }

/* --- Hero role line + actions --- */
.jp-hero-role {
  text-align: center;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--teal-soft);
  margin-bottom: 20px;
  opacity: 0;
  animation: jp-fade 1s var(--ease-out) .1s forwards;
}
.jp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  animation: jp-fade 1s var(--ease-out) 1s forwards;
}

/* --- Role + result line on featured cards --- */
.jp-card-role { margin-top: 10px; font-size: 14px; color: var(--on-dark-2); }
.jp-card-role strong { color: var(--teal-soft); font-weight: 500; }

/* --- More work: compact tiles --- */
.jp-more { margin: 96px 0 28px; }
.jp-more-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}
.jp-mini { display: block; color: var(--on-dark); }
.jp-mini:hover { color: var(--on-dark); }
.jp-mini-img {
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
  background: #06203d;
  margin-bottom: 14px;
}
.jp-mini-img img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top left;
  transition: transform .8s var(--ease-out);
}
.jp-mini:hover .jp-mini-img img { transform: scale(1.04); }
.jp-mini .jp-card-meta { margin-bottom: 6px; }
.jp-mini-note {
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(253,250,247,0.18);
  font-size: 11px;
}
.jp-mini h3 { font-size: 16px; font-weight: 400; line-height: 1.4; color: var(--on-dark); }

@media (prefers-reduced-motion: reduce) {
  .jp-hero-role, .jp-hero-actions { animation: none; opacity: 1; }
}
.jp-section-head-center { margin-left: auto; margin-right: auto; text-align: center; }
