@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;1,500;1,600&family=Inter:wght@400;500;600;700;800;900&display=swap');

:root{
  --cream: #f7f1e6;
  --cream-deep: #efe7d7;
  --ink: #1c1a17;
  --ink-soft: #55504a;
  --red: #b23a2e;
  --red-deep: #8f2e24;
  --gold: #c08a3e;
  --rose-bg: #f5dbd6;
  --rose-text: #9c3b2e;
  --green-bg: #d9e4d2;
  --green-text: #4a6b3c;
  --neutral-bg: #2b2825;
  --white: #ffffff;
  --line: #e3d9c4;
  --shadow: 0 20px 45px -25px rgba(40, 30, 20, 0.35);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 999px;
}

*{ box-sizing: border-box; min-width: 0; }
html{ scroll-behavior: smooth; overflow-x: clip; }
body{
  margin:0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  width: 100%;
}

.shell{ max-width: 1240px; margin: 0 auto; padding: 0 32px; }

a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin:0; padding:0; }
img{ max-width: 100%; display:block; }
button{ font-family: inherit; cursor:pointer; }
.skip-link{
  position:fixed; left:18px; top:12px; z-index:999;
  padding:10px 16px; border-radius:var(--radius-sm);
  background:var(--ink); color:var(--white); transform:translateY(-160%);
}
.skip-link:focus{ transform:translateY(0); }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible{
  outline:3px solid var(--gold); outline-offset:4px;
}

/* ---------- Header ---------- */
.site-header{
  position: sticky;
  top: 18px;
  z-index: 100;
  max-width: 1240px;
  margin: 18px auto 0;
  padding: 12px 24px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 24px;
}
.brand{ display:flex; align-items:center; gap:10px; font-weight:700; }
.brand-text{
  font-family:'Playfair Display', serif;
  font-style:italic;
  font-weight:600;
}
.brand-mark-photo{
  width:36px; height:36px; border-radius:50%; overflow:hidden; flex-shrink:0;
  border: 2px solid var(--cream-deep);
}
.brand-mark-photo img{ width:100%; height:100%; object-fit:cover; }
.brand-accent{ color: var(--red); }
.site-nav{ display:flex; gap:28px; font-size:0.95rem; color: var(--ink-soft); font-weight:600; }
.site-nav a:hover{ color: var(--red); }
.nav-toggle{ display:none; background:none; border:none; flex-direction:column; gap:4px; }
.nav-toggle span{ width:22px; height:2px; background: var(--ink); display:block; }

@media (max-width: 860px){
  .nav-toggle{ display:flex; }
  .site-nav{
    position:absolute; top: 62px; left:0; right:0; background:var(--white);
    border-radius: 18px; flex-direction:column; padding: 16px 24px; gap:14px;
    box-shadow: var(--shadow); display:none;
  }
  .site-header.nav-open .site-nav{ display:flex; }
}

/* ---------- Hero ---------- */
.hero{
  display:grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px;
  align-items:center; padding: 72px 32px 56px;
}
.eyebrow{
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem;
  font-weight:700; color: var(--red-deep); margin: 0 0 18px;
}
.hero h1{ margin: 0 0 22px; line-height: 0.92; }
.hero-serif{
  display:block; font-family:'Playfair Display', serif; font-style: italic;
  font-weight:600; font-size: clamp(3rem, 6vw, 5.2rem); color: var(--ink);
}
.hero-display{
  display:block; font-family:'Inter', sans-serif; font-weight:900;
  font-size: clamp(3.4rem, 8vw, 6.4rem); letter-spacing: -0.02em;
}
.hero-accent{ color: var(--red); }
.hero-lead{ font-size: 1.2rem; max-width: 46ch; margin: 0 0 12px; color: var(--ink); }
.hero-sublead{ font-weight:700; color: var(--ink-soft); margin: 0 0 28px; }

.hero-actions{ display:flex; gap:14px; margin-bottom: 36px; flex-wrap:wrap; }
.button{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 14px 28px; border-radius: var(--radius-sm); font-weight:700;
  font-size: 0.95rem; transition: transform .2s ease;
}
.button:hover{ transform: translateY(-2px); }
.button-dark{ background: var(--red); color:#fff; }
.button-light{ background: transparent; border:1.5px solid var(--ink); color: var(--ink); }

.hero-facts{ display:flex; gap:14px; flex-wrap:wrap; }
.hero-facts li{
  background: var(--white); border-radius: var(--radius-md); padding: 14px 18px;
  box-shadow: var(--shadow); min-width: 140px;
}
.hero-facts span{ display:block; color: var(--red); font-weight:700; font-size:0.75rem; text-transform:uppercase; letter-spacing:.06em; margin-bottom:4px;}
.hero-facts strong{ display:block; font-size:0.98rem; }

.hero-visual{ position:relative; }
.visual-stage{
  background: var(--cream-deep); border-radius: var(--radius-lg);
  padding: 14px; position:relative; overflow:hidden;
}
.portrait-card{
  border-radius: var(--radius-lg); overflow:hidden; aspect-ratio: 4/3;
  background: var(--white);
}
.portrait-card img{
  width:100%; height:100%; object-fit:cover;
  object-position: 50% 34%;
}
.float-slow{ animation: float 6s ease-in-out infinite; }
@keyframes float{ 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-10px);} }

/* ---------- Marquee ---------- */
.intro-band{ overflow:hidden; padding: 18px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); margin: 12px auto 0;}
.marquee-track{
  display:flex; gap: 72px; padding-inline:36px; white-space:nowrap; font-weight:700;
  text-transform:uppercase; letter-spacing:.08em; font-size:0.85rem; color: var(--ink-soft);
  animation: marquee 22s linear infinite;
}
.marquee-track span{ position:relative; }
.marquee-track span::after{
  content:"•"; position:absolute; right:-40px; color:var(--red); opacity:.55;
}
@keyframes marquee{ from{ transform: translateX(0);} to{ transform: translateX(-50%);} }

/* ---------- Section heads ---------- */
.section-head{ max-width: 760px; margin: 0 0 64px; }
.section-head h2{ font-size: clamp(2.2rem, 4.5vw, 3.8rem); line-height:1.04; letter-spacing:-.035em; margin: 10px 0 18px; }
.section-support{ color: var(--ink-soft); font-size: 1.05rem; }
.inline-highlight{ color: var(--red); font-weight:700; }

section{ padding: 72px 0; }
.works{ padding-top:96px; }
.works .section-head,
.skills .section-head{
  max-width:none; display:grid; grid-template-columns:minmax(170px,.32fr) minmax(0,1.68fr);
  column-gap:72px; row-gap:20px; align-items:start;
}
.works .section-head .eyebrow,
.skills .section-head .eyebrow{ grid-row:1 / span 2; padding-top:13px; }
.works .section-head h2,
.skills .section-head h2{ margin:0; max-width:1040px; }
.works .section-head .section-support,
.skills .section-head .section-support{ margin:0; max-width:680px; line-height:1.65; font-size:1.08rem; }

/* ---------- Story ---------- */
.story-grid{ display:grid; grid-template-columns: 0.85fr 1.15fr; gap: 40px; align-items:start; }
.about-card{
  background: var(--white); border-radius: var(--radius-lg); padding: 36px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 112px;
  align-self: start;
  height: max-content;
}
.card-label{ text-transform:uppercase; letter-spacing:.1em; font-size:0.75rem; font-weight:700; color: var(--red); margin:0 0 14px; }
.about-quote{ font-family:'Playfair Display', serif; font-style:italic; font-size:1.3rem; line-height:1.4; margin: 0 0 18px; }
.trait-row{ display:flex; gap:10px; margin-top:20px; flex-wrap:wrap; }
.trait-row span{ border:1px solid var(--ink); border-radius: var(--radius-sm); padding:8px 16px; font-size:0.85rem; font-weight:600; }

.timeline{ position:relative; padding-left: 34px; }
.timeline::before{
  content:''; position:absolute; left:5px; top:8px; bottom:8px; width:2px;
  background: var(--line);
}
.timeline-item{ position:relative; margin-bottom: 44px; }
.timeline-item:last-child{ margin-bottom:0; }
.timeline-index{
  position:absolute; left: -34px; top: 6px; width:12px; height:12px; border-radius:50%;
  background: var(--rose-bg); border: 2px solid var(--rose-text);
}
.timeline-item:first-child .timeline-index{ background: transparent; border-color: var(--red); }
.timeline-content{
  background: var(--white); border-radius: var(--radius-md); padding: 28px 30px;
  box-shadow: var(--shadow);
}
.timeline-meta{ display:flex; align-items:center; gap:12px; margin-bottom: 8px; flex-wrap:wrap; }
.timeline-year{ color: var(--ink-soft); font-weight:700; font-size:0.85rem; margin:0; }
.timeline-badge{
  background: var(--rose-bg); color: var(--rose-text); border-radius: var(--radius-sm);
  padding: 4px 12px; font-size:0.72rem; font-weight:800; text-transform:uppercase; letter-spacing:.04em;
}
.timeline-badge-gold{ background: #f1e0c2; color: var(--gold); }
.timeline-badge-rose{ background: var(--rose-bg); color: var(--rose-text); }
.timeline-badge-green{ background: var(--green-bg); color: var(--green-text); }
.timeline-badge-neutral{ background: var(--neutral-bg); color: #fff; }
.timeline-content h3{ margin: 6px 0 10px; font-size: 1.2rem; }
.timeline-detail p{ margin: 0 0 6px; color: var(--ink-soft); }
.timeline-highlight{ color: var(--red) !important; font-weight:700; font-style: italic; }
.timeline-proof{
  display:flex; gap:18px; align-items:baseline; margin-top:16px; padding-top:14px;
  border-top:1px solid var(--line);
}
.timeline-proof strong{ color:var(--red); font-size:1.8rem; line-height:1; letter-spacing:-.04em; }
.timeline-proof span{ color:var(--ink-soft); font-size:.78rem; font-weight:800; text-transform:uppercase; letter-spacing:.08em; }
.currency{ font-size:.52em; vertical-align:.22em; margin-right:2px; }
.timeline-proof.multi-proof{ align-items:center; flex-wrap:wrap; gap:12px 22px; }
.proof-item{ display:flex; align-items:baseline; gap:8px; }

/* ---------- Drivers ---------- */
.drivers{ padding-top:110px; scroll-margin-top:96px; }
.drivers-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.driver-card{ background: var(--white); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); }
.driver-number{ color: var(--rose-bg); font-family:'Playfair Display', serif; font-size:2.6rem; font-weight:700; display:block; margin-bottom:8px; -webkit-text-stroke: 1.5px var(--red); color:transparent; }
.driver-card h3{ margin: 0 0 12px; font-size:1.3rem; }
.driver-card p{ color: var(--ink-soft); margin:0; }

/* ---------- Metrics ---------- */
.metrics{ display:grid; grid-template-columns: repeat(5, 1fr); gap: 24px; padding-top: 18px; }
.metric-card{ background: var(--white); border-radius: var(--radius-md); padding: 28px 18px; text-align:center; box-shadow: var(--shadow); }
.metric-card strong{ display:block; font-size:2.2rem; color: var(--red); font-weight:900; margin-bottom:6px; }
.metric-card p{ margin:0; color: var(--ink-soft); font-size:0.9rem; }

/* ---------- Works ---------- */
.works-grid{ display:grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.case-card{
  background: var(--white); border-radius: var(--radius-lg); padding: 30px;
  box-shadow: var(--shadow); display:flex; flex-direction:column; gap:18px;
}
.case-card.full-width{ grid-column: 1 / -1; }
.case-topline{ display:flex; justify-content:space-between; gap:12px; font-size:0.78rem; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color: var(--ink-soft); flex-wrap:wrap; }
.case-topline span:first-child{ color: var(--red); }
.case-card h3{ margin:0; font-size:1.4rem; }
.case-card > p{ color: var(--ink-soft); margin:0; line-height:1.65; }
.case-cover{
  width:100%; aspect-ratio:16/9; border-radius:var(--radius-md); overflow:hidden;
  background:var(--cream-deep);
}
.case-cover img{
  width:100%; height:100%; display:block; object-fit:cover;
  transition:transform .35s ease;
}
.case-card:hover .case-cover img,
.case-card:focus-within .case-cover img{ transform:scale(1.035); }
.case-bullets li{ position:relative; padding-left:0; color: var(--ink); font-weight:600; margin-bottom:6px; font-size:0.95rem; }
.case-media{ display:grid; gap:10px; border-radius: var(--radius-md); overflow:hidden; }
.case-media.two-up{ grid-template-columns: 1fr 1fr; }
.case-media.three-up{ grid-template-columns: repeat(3, 1fr); }
.case-media img{ width:100%; height:100%; object-fit:cover; aspect-ratio: 4/3; cursor:zoom-in; }
.chip-row{ display:flex; gap:8px; flex-wrap:wrap; }
.chip-row span{ border:1px solid var(--line); border-radius: var(--radius-sm); padding:6px 14px; font-size:0.78rem; font-weight:600; color: var(--ink-soft); }
.text-link{ background:none; border:none; padding:0; font-weight:800; color: var(--ink); text-decoration: underline; text-underline-offset:4px; align-self:flex-start; }
.text-link:hover{ color: var(--red); }
.case-note{ color:var(--ink-soft); font-size:.82rem; font-style:italic; padding-top:2px; }
.case-card .case-metrics{ display:flex; gap:10px; flex-wrap:wrap; }
.case-metric{ background:var(--cream); border-radius:14px; padding:12px 14px; flex:1 1 120px; }
.case-metric strong{ display:block; color:var(--red); font-size:1.5rem; line-height:1; margin-bottom:5px; }
.case-metric span{ color:var(--ink-soft); font-size:.72rem; font-weight:800; text-transform:uppercase; letter-spacing:.05em; }

.case-split{ display:grid; grid-template-columns: 1.3fr 0.7fr; gap:24px; align-items:start; }
.case-stack{ display:flex; flex-direction:column; gap:16px; }
.ai-media img{ border-radius: var(--radius-md); aspect-ratio: 3/4; object-fit:cover; }

.deliverables-panel{ background: var(--cream-deep); border-radius: var(--radius-md); padding:22px; }
.deliverables-kicker{ text-transform:uppercase; font-size:0.7rem; font-weight:800; color: var(--red); margin:0 0 6px; letter-spacing:.06em; }
.deliverables-title-row h4{ margin:0 0 8px; font-size:1.05rem; }
.deliverables-summary{ display:flex; gap:10px; font-size:0.78rem; font-weight:700; margin-bottom:10px; }
.is-done{ color: var(--green-text); }
.is-progress{ color: var(--gold); }
.deliverables-intro{ color: var(--ink-soft); font-size:0.88rem; margin:0 0 14px; }
.deliverable-item{ border-top:1px solid var(--line); padding: 14px 0; display:flex; gap:14px; }
.deliverable-head{ display:flex; flex-direction:column; align-items:center; gap:4px; min-width:60px; }
.deliverable-status{ font-size:0.68rem; font-weight:800; text-transform:uppercase; }
.deliverable-index{ color: var(--ink-soft); font-weight:700; }
.deliverable-item h5{ margin:0 0 4px; font-size:0.95rem; }
.deliverable-item p{ margin:0; color: var(--ink-soft); font-size:0.85rem; }

/* ---------- Skills ---------- */
.skills{ padding-top:96px; }
.skills-layout{ display:grid; grid-template-columns: 1.4fr 0.9fr; gap: 42px; align-items:start; }
.project-stack{ display:flex; flex-direction:column; gap:22px; }
.project-card{
  background: var(--white); border-radius: var(--radius-lg); padding:30px; box-shadow: var(--shadow);
  display:grid; grid-template-columns: 1.3fr 0.9fr; gap:24px; align-items:start;
}
.project-card h3{ margin:6px 0 12px; font-size:1.25rem; }
.project-text > p{ color: var(--ink-soft); }
.chip-row.compact span{ border:1px solid var(--line); border-radius: var(--radius-sm); padding:5px 12px; font-size:0.76rem; font-weight:600; color: var(--ink-soft); }
.project-pair{ display:grid; grid-template-columns: 1fr 1fr; gap:8px; }
.project-card img{ border-radius: var(--radius-md); aspect-ratio: 4/3; object-fit:cover; cursor:zoom-in; }

.skills-panel{ display:flex; flex-direction:column; gap:24px; padding-top:4px; }
.skill-block{ background: var(--white); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow); }
.skill-block .card-label{ font-size:0.75rem; margin-bottom:14px; }
.education-card{ background: var(--white); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow); }
.education-card h3{ font-family:'Playfair Display', serif; margin: 6px 0 10px; font-size:1.3rem; }
.education-card p{ margin: 2px 0; color: var(--ink-soft); font-weight:600; }

/* ---------- Contact ---------- */
.contact{ padding-top:110px; padding-bottom:120px; }
.contact-kicker{ margin-bottom: 24px; }
.contact-heading{ font-family:'Playfair Display', serif; font-weight:700; line-height:1.08; margin: 0 0 20px; font-size: clamp(2rem, 5vw, 3.4rem); }
.contact-heading-line{ display:block; }
.contact-heading-accent{ color: var(--red); }
.contact-heading-accent span{ display:block; }
.contact-copy{ color: var(--ink-soft); font-size:1.1rem; max-width: 62ch; margin: 0; }
.contact-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 44px; align-items:start; }
.contact-info-stack{ display:flex; flex-direction:column; gap:14px; }
.contact-info-card{
  display:block; background: var(--white); border-radius: var(--radius-md);
  padding: 18px 22px; box-shadow: var(--shadow);
}
.contact-info-label{ display:block; text-transform:uppercase; font-size:0.72rem; color: var(--ink-soft); font-weight:700; margin-bottom:6px; letter-spacing:.04em; }
.contact-info-card strong{ font-size:1rem; }
.contact-info-card p{ margin: 6px 0 0; color: var(--ink-soft); font-weight:500; font-size:0.9rem; }
.contact-cta-card{
  background: var(--white); border-radius: var(--radius-lg); padding: 32px;
  box-shadow: var(--shadow); border-top: 4px solid var(--red);
}
.contact-cta-card h3{ font-family:'Playfair Display', serif; font-size:1.7rem; margin: 0 0 16px; }
.contact-cta-card p{ color: var(--ink-soft); margin: 0 0 18px; }
.contact-availability-pill{
  display:inline-flex; align-items:center; gap:10px; background: var(--green-bg);
  color: var(--green-text); border-radius: var(--radius-sm); padding: 10px 18px; font-weight:700; font-size:0.9rem;
}
.contact-availability-dot{ width:8px; height:8px; border-radius:50%; background: var(--green-text); display:inline-block; }

/* ---------- Modals & Lightbox ---------- */
.modal-layer{ position:fixed; inset:0; background: rgba(20,16,10,0.55); z-index:200; overflow-y:auto; overflow-x:hidden; padding: 60px 20px; }
.case-modal{
  max-width: 900px; width: 100%; margin: 0 auto; background: var(--cream); border-radius: var(--radius-lg);
  padding: 48px; position:relative; box-shadow: var(--shadow); overflow-x:hidden; box-sizing:border-box;
}
.modal-close{ position:absolute; top:20px; right:20px; background: var(--white); border:none; width:36px; height:36px; border-radius:50%; font-size:1.2rem; z-index:5; }
.modal-summary{ color: var(--ink-soft); font-size:1.05rem; max-width:70ch; }
.modal-details.two-col-text{ display:grid; grid-template-columns:1fr 1fr; gap:32px; margin: 24px 0; min-width:0; }
.modal-details h3{ margin:0 0 12px; }
.modal-details li{ color: var(--ink-soft); margin-bottom:8px; overflow-wrap: break-word; }
.modal-gallery{ display:grid; gap:12px; border-radius: var(--radius-md); overflow:hidden; min-width:0; }
.modal-gallery.three-up{ grid-template-columns: repeat(3, minmax(0,1fr)); }
.modal-gallery img{ width:100%; height:100%; object-fit:cover; aspect-ratio:4/3; cursor: zoom-in; min-width:0; }
.deliverables-panel-modal{ grid-column: 1 / -1; min-width:0; }
.modal-gallery > *{ min-width:0; overflow-wrap: break-word; }
.field-modal{ max-width:1120px; padding:0; background:#f7f4ec; }
.field-modal .modal-close{ background:rgba(255,255,255,.92); box-shadow:0 8px 24px rgba(20,16,10,.14); }
.field-hero{ position:relative; min-height:390px; display:flex; align-items:flex-end; overflow:hidden; border-radius:var(--radius-lg) var(--radius-lg) 0 0; }
.field-hero img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.field-hero::after{ content:""; position:absolute; inset:0; background:linear-gradient(90deg,rgba(11,42,24,.91) 0%,rgba(11,42,24,.68) 46%,rgba(11,42,24,.1) 80%); }
.field-hero-copy{ position:relative; z-index:1; max-width:650px; padding:56px 52px 48px; color:#fff; }
.field-hero-copy .card-label{ color:#e1c765; }
.field-hero-copy h2{ margin:8px 0 14px; font-size:clamp(2.2rem,5vw,4rem); line-height:.98; color:#fff; }
.field-hero-copy p{ margin:0; max-width:56ch; color:rgba(255,255,255,.9); font-size:1.05rem; }
.field-body{ padding:42px 52px 52px; }
.field-tags{ display:flex; flex-wrap:wrap; gap:8px; margin:0 0 30px; }
.field-tags span{ border:1px solid rgba(43,88,49,.25); background:#fff; color:var(--green-text); padding:8px 12px; border-radius:999px; font-size:.78rem; font-weight:800; text-transform:uppercase; letter-spacing:.04em; }
.field-overview{ display:grid; grid-template-columns:repeat(3,1fr); background:#fff; border:1px solid rgba(43,88,49,.15); border-radius:var(--radius-md); overflow:hidden; margin-bottom:38px; }
.field-overview div{ padding:20px 22px; }
.field-overview div+div{ border-left:1px solid rgba(43,88,49,.15); }
.field-overview span{ display:block; color:var(--ink-soft); font-size:.72rem; font-weight:800; text-transform:uppercase; letter-spacing:.08em; margin-bottom:7px; }
.field-overview strong{ color:var(--green-text); line-height:1.35; }
.field-story{ display:grid; grid-template-columns:1fr 1fr; gap:32px; margin-bottom:42px; }
.field-story article{ padding:26px; border-top:3px solid var(--gold); background:rgba(255,255,255,.55); }
.field-story h3,.field-section-head h3{ margin:0 0 10px; color:var(--green-text); }
.field-story p{ margin:0; color:var(--ink-soft); }
.field-section{ margin-top:56px; padding-top:36px; border-top:1px solid rgba(43,88,49,.16); }
.field-section-head{ display:grid; grid-template-columns:minmax(280px,.8fr) minmax(360px,1.2fr); align-items:start; gap:56px; margin-bottom:24px; }
.field-section-head .card-label{ margin-bottom:8px; }
.field-section-head h3{ font-size:1.55rem; line-height:1.2; }
.field-section-head>p{ margin:0; color:var(--ink-soft); max-width:58ch; line-height:1.65; padding-top:23px; }
.field-feature,.field-gallery{ display:grid; gap:22px; }
.field-feature{ grid-template-columns:repeat(3,minmax(0,1fr)); }
.field-feature img,.field-gallery img{ display:block; width:100%; height:auto; object-fit:contain; cursor:zoom-in; }
.field-feature-side{ display:contents; }
.field-gallery{ grid-template-columns:repeat(2,minmax(0,1fr)); }
.field-gallery figure,.field-feature figure{ margin:0; display:flex; flex-direction:column; background:#fff; border:1px solid rgba(43,88,49,.12); border-radius:16px; overflow:hidden; box-shadow:0 10px 28px rgba(23,36,22,.08); }
.field-gallery figure img,.field-feature figure img{ border-radius:0; box-shadow:none; background:#f0ede4; }
.field-gallery figcaption,.field-feature figcaption{ padding:17px 19px 20px; color:var(--ink-soft); font-size:.88rem; line-height:1.5; }
.field-gallery figcaption strong{ display:block; color:var(--green-text); font-size:1rem; margin-bottom:3px; }
.field-feature figcaption strong{ display:block; color:var(--green-text); font-size:1rem; margin-bottom:3px; }
.field-feature-single{ grid-template-columns:1fr; }
.field-feature-single figure img{ max-height:none; }
.field-results{ display:grid; grid-template-columns:320px 1fr; align-items:stretch; margin-top:56px; border-radius:22px; background:var(--green-text); color:#fff; overflow:hidden; box-shadow:0 18px 38px rgba(23,36,22,.14); }
.field-results.field-results-top{ margin:0 0 42px; }
.field-results>div{ padding:38px 42px; }
.field-results>div:first-child{ display:flex; flex-direction:column; justify-content:center; border-right:1px solid rgba(255,255,255,.2); }
.field-results>div:last-child{ display:flex; flex-direction:column; justify-content:center; }
.field-results strong{ display:block; color:#f1d46b; font-size:clamp(5rem,9vw,7rem); line-height:.78; letter-spacing:-.055em; }
.field-results span{ display:block; margin-top:18px; font-size:.92rem; font-weight:900; text-transform:uppercase; letter-spacing:.11em; line-height:1.3; color:#fff; }
.field-results h3{ color:#fff; margin:0 0 12px; font-size:clamp(1.5rem,3vw,2rem); line-height:1.15; }
.field-results p{ margin:0; max-width:62ch; color:rgba(255,255,255,.82); line-height:1.65; }
.belt-modal{ background:#f4f0e8; }
.belt-modal .field-hero::after{ background:linear-gradient(90deg,rgba(18,16,14,.94) 0%,rgba(18,16,14,.7) 48%,rgba(18,16,14,.14) 82%); }
.belt-modal .field-hero-copy .card-label{ color:#ff6659; }
.belt-modal .field-tags span{ border-color:rgba(181,57,45,.25); color:#962f27; }
.belt-modal .field-overview{ border-color:rgba(181,57,45,.16); }
.belt-modal .field-overview div+div{ border-color:rgba(181,57,45,.16); }
.belt-modal .field-overview strong,.belt-modal .field-story h3,.belt-modal .field-section-head h3,
.belt-modal .field-gallery figcaption strong,.belt-modal .field-feature figcaption strong{ color:#79261f; }
.belt-modal .field-story article{ border-top-color:#b5392d; }
.belt-modal .field-section{ border-top-color:rgba(181,57,45,.18); }
.belt-modal .field-results{ grid-template-columns:320px 1fr; background:#1d1a18; }
.belt-modal .field-results strong{ color:#ff6659; }
.belt-modal .field-results .metric-stack{ display:flex; flex-direction:column; justify-content:center; gap:0; padding:28px 38px; }
.belt-modal .metric-stack div{ padding:18px 0 20px; }
.belt-modal .metric-stack div+div{ border-top:1px solid rgba(255,255,255,.16); }
.belt-modal .metric-stack strong{ font-size:clamp(3.2rem,5vw,4.8rem); line-height:.78; letter-spacing:-.045em; }
.belt-modal .metric-stack span{ font-size:.76rem; margin-top:10px; letter-spacing:.12em; }
.belt-modal .field-gallery figure img,.belt-modal .field-feature figure img{ background:#e7e1d7; }
.belt-cover{
  width:100%; aspect-ratio:16/9; margin:0; border-radius:var(--radius-md);
  overflow:hidden; background:#151512;
}
.belt-cover img{ display:block; width:100%; height:100%; object-fit:cover; object-position:center 47%; }


.unified-modal{ --case-accent:#a23b2f; --case-dark:#34221d; background:#f6f1e8; }
.unified-hero{ min-height:330px; display:flex; align-items:flex-end; padding:58px 52px 48px; color:#fff;
  border-radius:var(--radius-lg) var(--radius-lg) 0 0;
  background:linear-gradient(125deg,var(--case-dark),color-mix(in srgb,var(--case-dark) 74%,var(--case-accent))); }
.unified-hero-copy{ max-width:760px; }
.unified-hero .card-label{ color:color-mix(in srgb,var(--case-accent) 35%,white); }
.unified-hero h2{ margin:8px 0 14px; color:#fff; font-size:clamp(2.35rem,5vw,4rem); line-height:.98; }
.unified-hero p{ margin:0; max-width:62ch; color:rgba(255,255,255,.86); font-size:1.05rem; }
.unified-modal .field-tags span{ color:var(--case-accent); border-color:color-mix(in srgb,var(--case-accent) 24%,transparent); }
.unified-modal .field-overview{ border-color:color-mix(in srgb,var(--case-accent) 18%,transparent); }
.unified-modal .field-overview div+div{ border-color:color-mix(in srgb,var(--case-accent) 18%,transparent); }
.unified-modal .field-overview strong,.unified-modal .field-story h3,.unified-modal .field-section-head h3,
.unified-modal figcaption strong{ color:var(--case-dark); }
.unified-modal .field-story article{ border-top-color:var(--case-accent); }
.unified-modal .field-section{ border-top-color:color-mix(in srgb,var(--case-accent) 18%,transparent); }
.unified-results{ grid-template-columns:350px 1fr; background:var(--case-dark); }
.unified-results .metric-stack{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); padding:20px 34px; gap:0 24px; }
.unified-results .metric-stack div{ padding:18px 0; }
.unified-results .metric-stack strong{ color:color-mix(in srgb,var(--case-accent) 55%,white); font-size:clamp(2.7rem,5vw,4.6rem); }
.unified-results .metric-stack span{ margin-top:10px; font-size:.7rem; }
.unified-results .metric-stack div:nth-child(n+3){ border-top:1px solid rgba(255,255,255,.15); }
.dairy-results{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  grid-template-columns:1fr;
  min-height:0;
  background:
    linear-gradient(110deg,rgba(63,25,23,.97),rgba(91,38,32,.88)),
    url("assets/portfolio-image-47.png") center 48% / cover no-repeat;
}
.dairy-results::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(180deg,rgba(255,255,255,.025),rgba(0,0,0,.08));
}
.dairy-results .metric-stack{
  width:100%;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  padding:32px;
  gap:14px;
}
.dairy-results .metric-stack div{
  min-width:0;
  padding:24px 26px 22px;
  text-align:left;
  border:1px solid rgba(255,255,255,.18) !important;
  border-radius:14px;
  background:rgba(35,14,13,.48);
  backdrop-filter:blur(3px);
}
.dairy-results .metric-stack strong{
  display:block;
  color:#fff4e8;
  font-size:clamp(2.35rem,4vw,3.65rem);
  line-height:1;
  letter-spacing:-.045em;
  white-space:nowrap;
}
.dairy-results .metric-stack span{
  display:block;
  max-width:15ch;
  margin-top:9px;
  color:rgba(255,255,255,.82);
  font-size:.74rem;
  line-height:1.45;
  letter-spacing:.11em;
  text-transform:uppercase;
}
.dairy-results .metric-stack strong .currency{
  display:inline;
  max-width:none;
  margin:0 .03em 0 0;
  color:inherit;
  font-size:.55em;
  line-height:1;
  letter-spacing:0;
  vertical-align:.38em;
  opacity:.92;
}
.dairy-case-card .case-bullets strong{ color:#bd3b2f; font-size:1.12em; }
.dairy-case-card .case-bullets .currency{ font-size:.62em; vertical-align:.3em; margin-right:.03em; }

/* Compact evidence-first treatment for Case 03 */
.compact-case .unified-hero{ min-height:250px; padding-block:42px; }
.compact-case .field-body{ padding-top:30px; }
.compact-case .field-results{ margin-bottom:28px; grid-template-columns:1.1fr .9fr; }
.compact-case .unified-results .metric-stack{ grid-template-columns:repeat(3,minmax(0,1fr)); }
.compact-case .unified-results .metric-stack div:nth-child(n+3){ border-top:0; }
.compact-case .field-story{ margin-bottom:26px; gap:18px; }
.compact-case .field-story article{ padding:20px 22px; }
.compact-case .field-section{
  display:grid; grid-template-columns:minmax(210px,.7fr) minmax(0,1.3fr);
  gap:26px; align-items:start; padding:22px 0;
}
.compact-case .field-section-head{ display:block; margin:0; }
.compact-case .field-section-head>p{ padding-top:0; margin-top:8px; line-height:1.5; }
.compact-case .field-gallery{ display:none; }
.theme-tech{ --case-accent:#2f73d9; --case-dark:#172842; }
.theme-tech .field-hero{
  min-height:410px;
  display:grid;
  grid-template-columns:minmax(0,1.08fr) minmax(380px,.92fr);
  align-items:stretch;
  background:linear-gradient(135deg,#071f17 0%,#10253a 100%);
}
.theme-tech .field-hero::after{ display:none; }
.theme-tech .field-hero img{
  position:relative;
  inset:auto;
  grid-column:2;
  grid-row:1;
  height:100%;
  object-fit:cover;
  object-position:12% top;
  border-left:1px solid rgba(255,255,255,.09);
}
.theme-tech .field-hero-copy{
  grid-column:1;
  grid-row:1;
  align-self:center;
  max-width:none;
  padding:54px 48px;
}
.theme-tech .field-feature{ grid-template-columns:minmax(0,1fr); }
.theme-tech .field-feature figure{
  display:grid;
  grid-template-columns:minmax(0,1.55fr) minmax(240px,.65fr);
  align-items:stretch;
}
.theme-tech .field-feature figure img{
  width:100%;
  height:100%;
  min-height:300px;
  max-height:440px;
  object-fit:contain;
}
.theme-tech .field-feature figcaption{
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:28px;
  border-left:1px solid rgba(43,88,49,.12);
}
.theme-dairy{ --case-accent:#cc4c3e; --case-dark:#552c25; }
.theme-dairy .dairy-gallery{
  grid-template-columns:repeat(2,minmax(0,1fr));
  align-items:stretch;
}
.theme-dairy .dairy-gallery figure{
  display:grid;
  grid-template-rows:minmax(420px,58vh) auto;
}
.theme-dairy .dairy-gallery img{
  width:100%;
  height:100%;
  max-height:620px;
  object-fit:contain;
  background:#f7f3ec;
}
.outcome-only{
  display:block;
  padding:34px 38px;
}
.outcome-only > div{
  max-width:760px;
}
.outcome-only h3{
  font-size:clamp(1.65rem,3vw,2.45rem);
  margin-bottom:10px;
}
.theme-seasonal{ --case-accent:#d64332; --case-dark:#6f2018; }
.theme-seasonal .seasonal-gallery figure{
  grid-template-rows:minmax(260px,360px) auto;
}
.theme-seasonal .seasonal-gallery img{
  width:100%;
  height:100%;
  object-fit:contain;
  background:#fffaf5;
  padding:18px;
}
.theme-seasonal .seasonal-gallery .wide-asset{
  grid-column:1 / -1;
}
.theme-seasonal .seasonal-gallery .wide-asset img{
  max-height:310px;
}
.theme-commerce{ --case-accent:#b45a8d; --case-dark:#482238; }
.theme-bakery{ --case-accent:#bd7a39; --case-dark:#4f3323; }
@media(max-width:980px){
  .unified-results{ grid-template-columns:1fr; }
  .unified-results .metric-stack{ grid-template-columns:repeat(4,minmax(0,1fr)); }
  .unified-results .metric-stack div:nth-child(n+3){ border-top:0; }
  .dairy-results .metric-stack{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:600px){
  .unified-hero{ min-height:390px; padding:70px 24px 34px; }
  .unified-results .metric-stack{ grid-template-columns:1fr 1fr; }
  .unified-results .metric-stack div:nth-child(n+3){ border-top:1px solid rgba(255,255,255,.15); }
  .theme-tech .field-hero{ display:flex; min-height:0; flex-direction:column; }
  .theme-tech .field-hero img{
    order:1;
    width:100%;
    height:auto;
    max-height:260px;
    border-left:0;
    border-bottom:1px solid rgba(255,255,255,.09);
  }
  .theme-tech .field-hero-copy{ order:2; padding:34px 24px 38px; }
  .theme-tech .field-feature figure{ grid-template-columns:1fr; }
  .theme-tech .field-feature figure img{ min-height:0; max-height:none; }
  .theme-tech .field-feature figcaption{ border-left:0; border-top:1px solid rgba(43,88,49,.12); }
  .theme-dairy .dairy-gallery{ grid-template-columns:1fr; }
  .theme-dairy .dairy-gallery figure{ grid-template-rows:auto auto; }
  .theme-dairy .dairy-gallery img{ height:auto; max-height:none; }
  .dairy-results{ min-height:0; background-position:center; }
  .dairy-results .metric-stack{ grid-template-columns:1fr; padding:28px 24px; }
  .dairy-results .metric-stack div{ padding:20px; }
  .outcome-only{ padding:28px 24px; }
}

/* Compact Case 04 results: one simple, easy-to-scan strip */
.dairy-results{
  display:block;
  margin:0 0 30px;
  border-radius:16px;
  background:#4a211e !important;
  box-shadow:none;
}
.dairy-results::after{ display:none; }
.dairy-results .metric-stack{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:0;
  padding:18px 20px;
}
.dairy-results .metric-stack div{
  padding:8px 20px;
  text-align:center;
  border:0 !important;
  border-right:1px solid rgba(255,255,255,.18) !important;
  border-radius:0;
  background:transparent;
  backdrop-filter:none;
}
.dairy-results .metric-stack div:last-child{
  border-right:0 !important;
}
.dairy-results .metric-stack strong{
  font-size:clamp(1.8rem,3vw,2.65rem);
  letter-spacing:-.035em;
}
.dairy-results .metric-stack span{
  max-width:none;
  margin-top:6px;
  font-size:.68rem;
  line-height:1.25;
}
@media(max-width:700px){
  .dairy-results .metric-stack{
    grid-template-columns:repeat(2,minmax(0,1fr));
    padding:12px;
  }
  .dairy-results .metric-stack div{
    padding:14px 10px;
  }
  .dairy-results .metric-stack div:nth-child(2){
    border-right:0 !important;
  }
  .dairy-results .metric-stack div:nth-child(n+3){
    border-top:1px solid rgba(255,255,255,.18) !important;
  }
}

/* Safety net: guarantee [hidden] always wins regardless of any other display rule */
[hidden]{ display: none !important; }

.image-lightbox{ position:fixed; inset:0; background: rgba(10,8,5,0.85); z-index:300; display:flex; align-items:center; justify-content:center; padding: 40px; }
.image-lightbox-backdrop{ position:absolute; inset:0; }
.image-lightbox-dialog{ position:relative; max-width:90vw; max-height:90vh; margin:0; }
.image-lightbox-dialog img{ max-width:90vw; max-height:90vh; object-fit:contain; border-radius: 12px; }
.image-lightbox-close{ position:absolute; top:-16px; right:-16px; background:#fff; border:none; width:36px; height:36px; border-radius:50%; font-size:1.2rem; }

.num-accent{ color: var(--red); font-weight: 700; }
.timeline-year .num-accent{ color: var(--red-deep); }
.case-topline .num-accent{ color: inherit; font-weight:700; }

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

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .hero, .story-grid, .skills-layout, .case-split{ grid-template-columns: 1fr; }
  .hero{ gap:34px; }
  .hero-visual{ max-width:680px; width:100%; }
  .works .section-head,.skills .section-head{ grid-template-columns:1fr; gap:10px; }
  .works .section-head .eyebrow,.skills .section-head .eyebrow{ grid-row:auto; padding-top:0; }
  .drivers-grid{ grid-template-columns: 1fr; }
  .metrics{ grid-template-columns: repeat(2, 1fr); }
  .works-grid{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
  .modal-details.two-col-text{ grid-template-columns: 1fr; }
  .about-card{ position:static; }
  .field-feature,.field-story,.field-results{ grid-template-columns:1fr; }
  .field-feature{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .field-results>div:first-child{ border-right:0; border-bottom:1px solid rgba(255,255,255,.2); }
  .belt-modal .field-results .metric-stack{ grid-template-columns:repeat(3,1fr); }
}
@media (max-width: 600px){
  .shell{ padding: 0 18px; }
  .site-header{ margin:12px 12px 0; padding:10px 16px; }
  .hero{ padding-top:48px; }
  .portrait-card{ aspect-ratio: 16/10; }
  .metrics{ grid-template-columns: 1fr 1fr; }
  .case-media.three-up, .modal-gallery.three-up{ grid-template-columns: 1fr 1fr; }
  .field-hero{ min-height:430px; }
  .field-hero-copy{ padding:70px 24px 34px; }
  .field-body{ padding:30px 20px 36px; }
  .field-overview,.field-gallery{ grid-template-columns:1fr; }
  .field-overview div+div{ border-left:0; border-top:1px solid rgba(43,88,49,.15); }
  .field-section{ margin-top:42px; padding-top:28px; }
  .field-section-head{ grid-template-columns:1fr; gap:8px; }
  .field-section-head>p{ padding-top:0; }
  .field-feature{ grid-template-columns:1fr; }
  .field-results>div{ padding:30px 26px; }
  .belt-modal .field-results .metric-stack{ grid-template-columns:1fr; gap:26px; }
  .compact-case .field-results,
  .compact-case .field-section{ grid-template-columns:1fr; }
  .compact-case .unified-results .metric-stack{ grid-template-columns:1fr; }
  .compact-case .unified-results .metric-stack div+div{ border-top:1px solid rgba(255,255,255,.15); }
  .timeline-proof{ align-items:flex-start; flex-direction:column; gap:7px; }
  .timeline-proof.multi-proof{ align-items:flex-start; }
  .belt-cover{ aspect-ratio:16/9; }
}
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *, *::before, *::after{
    animation-duration:0.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:0.01ms !important;
  }
  .marquee-track{ transform:none !important; }
}

/* Case 01 results — matched to Case 02's compact horizontal panel */
.dairy-results{
  min-height:0;
  display:grid;
  grid-template-columns:320px minmax(0,1fr);
  align-items:stretch;
  background:#54231f;
  background-image:none !important;
}
.dairy-results::after{ display:none; }
.dairy-results .metric-stack{
  width:auto;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:0;
  padding:24px 38px;
  border-right:1px solid rgba(255,255,255,.18);
}
.dairy-results .metric-stack div{
  padding:13px 0 15px;
  border:0 !important;
  border-radius:0;
  background:transparent;
  backdrop-filter:none;
  text-align:left;
}
.dairy-results .metric-stack div + div{
  border-top:1px solid rgba(255,255,255,.16) !important;
}
.dairy-results .metric-stack strong{
  color:#fff3e8;
  font-size:1.5rem;
  line-height:1;
  letter-spacing:-.025em;
}
.dairy-results .metric-stack strong .currency{
  font-size:.72em;
  vertical-align:.18em;
}
.dairy-results .metric-stack span{
  max-width:none;
  margin-top:7px;
  color:rgba(255,255,255,.86);
  font-size:.68rem;
  line-height:1.25;
  letter-spacing:.11em;
}
.dairy-results .dairy-results-copy{
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:38px 42px;
}
.dairy-results .dairy-results-copy h3{
  margin:0 0 14px;
  color:#fff;
  font-size:clamp(1.8rem,3vw,2.65rem);
  line-height:1.08;
  letter-spacing:-.025em;
}
.dairy-results .dairy-results-copy p{
  max-width:62ch;
  margin:0;
  color:rgba(255,255,255,.8);
  font-size:1rem;
  line-height:1.6;
}
@media (max-width:760px){
  .dairy-results{ grid-template-columns:1fr; }
  .dairy-results .metric-stack{
    display:grid;
    grid-template-columns:1fr 1fr;
    padding:20px 24px;
    border-right:0;
    border-bottom:1px solid rgba(255,255,255,.18);
  }
  .dairy-results .metric-stack div{ padding:14px 0; }
  .dairy-results .metric-stack div + div{ border-top:0 !important; }
  .dairy-results .metric-stack div:nth-child(even){ padding-left:20px; border-left:1px solid rgba(255,255,255,.16) !important; }
  .dairy-results .metric-stack div:nth-child(n+3){ border-top:1px solid rgba(255,255,255,.16) !important; }
  .dairy-results .dairy-results-copy{ padding:30px 26px; }
}

/* Case 05 image refinements */
.theme-seasonal .field-section:first-of-type .seasonal-gallery figure:first-child{
  background:#fffaf4;
}
.theme-seasonal .field-section:first-of-type .seasonal-gallery figure:first-child img{
  width:min(72%, 430px);
  max-height:430px;
  margin:34px auto;
  object-fit:contain;
}
.theme-seasonal .field-section:last-of-type .seasonal-gallery{
  grid-template-columns:minmax(0, 1fr);
}
.theme-seasonal .field-section:last-of-type .seasonal-gallery figure{
  max-width:780px;
}


/* Balanced dairy and seasonal imagery */
.dairy-case-card .case-cover,
.case-card:nth-of-type(5) .case-cover{
  background:#f8f2e9;
}
.dairy-case-card .case-cover img,
.case-card:nth-of-type(5) .case-cover img{
  object-fit:contain;
  object-position:center;
  padding:10px;
}
.theme-dairy .dairy-gallery,
.theme-seasonal .seasonal-gallery{
  grid-template-columns:repeat(2,minmax(0,1fr));
  align-items:stretch;
}
.theme-dairy .dairy-gallery figure,
.theme-seasonal .seasonal-gallery figure{
  display:grid;
  grid-template-rows:360px auto;
  min-width:0;
}
.theme-dairy .dairy-gallery img,
.theme-seasonal .seasonal-gallery img,
.theme-seasonal .seasonal-gallery .wide-asset img{
  width:100%;
  height:360px;
  max-height:none;
  object-fit:contain;
  object-position:center;
  padding:16px;
  background:#fffaf5;
}
.theme-seasonal .seasonal-gallery .wide-asset{
  grid-column:auto;
}
@media(max-width:700px){
  .theme-dairy .dairy-gallery,
  .theme-seasonal .seasonal-gallery{
    grid-template-columns:1fr;
  }
  .theme-dairy .dairy-gallery figure,
  .theme-seasonal .seasonal-gallery figure{
    grid-template-rows:auto auto;
  }
  .theme-dairy .dairy-gallery img,
  .theme-seasonal .seasonal-gallery img,
  .theme-seasonal .seasonal-gallery .wide-asset img{
    height:auto;
    max-height:520px;
  }
}


    .case06-cover { background: #f7f5ef; }
    .case06-cover img { object-fit: contain; object-position: center; }
    .case06-dashboard { grid-template-columns: 1fr; }
    .case06-dashboard figure img { aspect-ratio: 16 / 9; object-fit: contain; background: #f7f5ef; }
    .case06-analytics { align-items: stretch; }
    .case06-analytics figure { display: flex; flex-direction: column; }
    .case06-analytics figure > img,
    .case06-analytics .trend-visual { width: 100%; min-height: 290px; aspect-ratio: 16 / 10; object-fit: contain; background: #fbfaf7; }
    .case06-analytics figure > img { padding: 24px; }
    .case06-analytics .trend-visual { display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 28px 24px; }
    .case06-analytics .trend-visual > img:first-child { width: 100%; height: auto; }
    .case06-analytics .trend-legend { width: min(320px, 68%); height: auto; align-self: flex-start; }
    .case06-product { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(320px, 1.28fr); gap: 34px; align-items: center; }
    .case06-product figure { margin: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fbfaf7; }
    .case06-product figure img { display: block; width: 100%; height: 340px; padding: 34px; object-fit: contain; }
    .case06-product figcaption { padding: 18px 20px 22px; }
    .case06-product figcaption strong { display: block; margin-bottom: 6px; }
    .case06-product > div { padding: 8px 0; }
    .case06-product > div h3 { margin-bottom: 16px; }
    .case06-product > div ul { margin: 0; padding-left: 20px; display: grid; gap: 12px; }
    @media (max-width: 760px) {
      .case06-analytics { grid-template-columns: 1fr; }
      .case06-product { grid-template-columns: 1fr; }
      .case06-product figure img { height: 270px; }
      .case06-analytics figure > img,
      .case06-analytics .trend-visual { min-height: 230px; }
    }

/* Final recruiter-scan refinements */
.intro-band{
  padding:22px 0;
  overflow:visible;
}
.marquee-track{
  width:100%;
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  align-items:center;
  gap:clamp(22px,3.6vw,64px);
  padding:0 34px;
  white-space:nowrap;
  animation:none;
}
.marquee-track span{
  position:relative;
  text-align:center;
  font-size:clamp(.7rem,1.05vw,.86rem);
  letter-spacing:.075em;
}
.marquee-track span::after{
  content:"•";
  position:absolute;
  right:calc(clamp(22px,3.6vw,64px) / -2 - .15em);
  color:var(--red);
  opacity:.62;
}
.marquee-track span:last-child::after{ display:none; }
.hero-facts strong{ white-space:nowrap; }

.dairy-case-card .case-bullets{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px 18px;
}
.dairy-case-card .case-bullets li{
  margin:0;
  display:flex;
  flex-direction:column;
  gap:5px;
  color:var(--ink-soft);
  font-size:.78rem;
  line-height:1.3;
}
.dairy-case-card .case-bullets strong{
  color:var(--red);
  font-family:'Inter',system-ui,sans-serif;
  font-size:1.55rem;
  font-weight:900;
  line-height:1;
  letter-spacing:-.035em;
}
.dairy-case-card .case-bullets .currency{
  font-size:.68em;
  vertical-align:.22em;
}
.dairy-results .metric-stack strong{
  font-family:'Inter',system-ui,sans-serif;
  font-size:clamp(2.4rem,4vw,3.45rem);
  font-weight:900;
  letter-spacing:-.045em;
}
.dairy-results .metric-stack strong .currency{
  font-size:.68em;
  vertical-align:.22em;
}

@media (max-width:900px){
  .intro-band{ overflow-x:auto; scrollbar-width:none; }
  .intro-band::-webkit-scrollbar{ display:none; }
  .marquee-track{
    display:flex;
    width:max-content;
    gap:44px;
    padding-inline:28px;
    animation:none;
  }
  .marquee-track span::after{ right:-25px; }
}
@media (max-width:560px){
  .hero-facts li{ min-width:100%; }
  .dairy-case-card .case-bullets{ grid-template-columns:1fr 1fr; }
}

/* Final consistency pass */
.intro-band{
  overflow:hidden;
  padding:22px 0;
}
.marquee-track{
  display:flex;
  width:max-content;
  grid-template-columns:none;
  gap:72px;
  padding-inline:36px;
  animation:marquee-continuous 30s linear infinite;
  will-change:transform;
}
.marquee-track span{
  flex:0 0 auto;
  min-width:max-content;
  text-align:left;
}
.marquee-track span::after{
  right:-40px;
}
.marquee-track span:nth-child(5)::after{
  display:block;
}
.marquee-track span:last-child::after{
  display:block;
}
@keyframes marquee-continuous{
  from{ transform:translateX(0); }
  to{ transform:translateX(calc(-50% - 18px)); }
}

.case-card .case-bullets{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px 20px;
}
.case-card .case-bullets li{
  margin:0;
  display:flex;
  flex-direction:column;
  gap:6px;
  color:var(--ink-soft);
  font-size:.78rem;
  line-height:1.3;
}
.case-card .case-bullets strong{
  color:var(--red);
  font-family:'Inter',system-ui,sans-serif;
  font-size:1.55rem;
  font-weight:900;
  line-height:1;
  letter-spacing:-.035em;
}
.case-card .case-bullets .currency,
.unified-results .metric-stack strong .currency{
  display:inline;
  margin-right:.03em;
  color:inherit;
  font-size:.68em;
  line-height:1;
  vertical-align:.22em;
}
.unified-results .metric-stack strong{
  font-family:'Inter',system-ui,sans-serif;
  font-weight:900;
  letter-spacing:-.045em;
}

/* Keep result numbers visually consistent across every portfolio preview. */
.case-card .case-bullets strong,
.metric-card strong,
.timeline-proof .metric-number,
.timeline-proof .metric-number .currency{
  color:#9a3028 !important;
}

/* New Entry cover card: match the white treatment used by Case 02. */
.works-grid > .case-card:first-child{
  background:var(--white);
  color:var(--ink);
}
.works-grid > .case-card:first-child .case-topline,
.works-grid > .case-card:first-child > p,
.works-grid > .case-card:first-child .case-bullets li,
.works-grid > .case-card:first-child .case-bullets span,
.works-grid > .case-card:first-child .case-note{
  color:var(--ink-soft);
}
.works-grid > .case-card:first-child .case-bullets strong{
  color:#9a3028 !important;
}
.works-grid > .case-card:first-child .chip-row span{
  color:var(--ink-soft);
  border-color:var(--line);
}
.works-grid > .case-card:first-child .text-link{
  color:var(--ink);
}
.works-grid > .case-card:first-child .case-topline span:first-child{
  color:var(--red);
}

/* New Entry internal case study: darken only the results/toolkit panel. */
#case07 .field-results.unified-results{
  background:#26352c;
  color:#fffaf0;
}
#case07 .field-results.unified-results .metric-stack{
  border-right-color:rgba(255,250,240,.18);
}
#case07 .field-results.unified-results .metric-stack strong{
  color:#e05b4e;
}
#case07 .field-results.unified-results .metric-stack span{
  color:rgba(255,250,240,.82);
}
#case07 .field-results.unified-results h3{
  color:#fffaf0;
}
#case07 .field-results.unified-results p{
  color:rgba(255,250,240,.78);
}

/* Experience results: color the full numeric value, never just the currency mark. */
.timeline-proof strong.metric-number,
.timeline-proof .proof-item strong.metric-number,
.timeline-proof strong.metric-number *{
  color:#9a3028 !important;
}

/* Final layout refinements */
.marquee-track span::after{
  display:none !important;
}
.story .section-head,
.drivers .section-head{
  display:grid;
  grid-template-columns:minmax(170px,.42fr) minmax(0,1.58fr);
  column-gap:64px;
  row-gap:20px;
  align-items:start;
  margin-bottom:68px;
}
.story .section-head .eyebrow,
.drivers .section-head .eyebrow{
  grid-column:1;
  grid-row:1 / span 2;
  padding-top:14px;
}
.story .section-head h2,
.drivers .section-head h2{
  grid-column:2;
  margin:0;
  max-width:1050px;
  font-size:clamp(3rem,5.7vw,6.4rem);
  line-height:.96;
  letter-spacing:-.055em;
}
.drivers .section-head .section-support{
  grid-column:2;
  margin:0;
  max-width:760px;
  font-size:clamp(1.08rem,1.5vw,1.35rem);
  line-height:1.65;
}
.case-card:nth-child(2) .case-bullets{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px 20px;
  margin-top:0;
}
.case-card:nth-child(2) .case-bullets li{
  display:flex;
  flex-direction:column;
  gap:6px;
  font-size:.78rem;
  font-weight:600;
}
.case-card:nth-child(2) .case-bullets strong{
  font-size:1.55rem;
}
@media (max-width:760px){
  .story .section-head,
  .drivers .section-head{
    grid-template-columns:1fr;
    row-gap:16px;
    margin-bottom:42px;
  }
  .story .section-head .eyebrow,
  .drivers .section-head .eyebrow,
  .story .section-head h2,
  .drivers .section-head h2,
  .drivers .section-head .section-support{
    grid-column:1;
    grid-row:auto;
    padding-top:0;
  }
  .story .section-head h2,
  .drivers .section-head h2{
    font-size:clamp(2.7rem,13vw,4.6rem);
  }
  .case-card:nth-child(2) .case-bullets{
    gap:14px 20px;
  }
}

/* Compact statement sections and readable deliverable lists */
.story .section-head,
.drivers .section-head{
  grid-template-columns:minmax(150px,.32fr) minmax(0,1.68fr);
  column-gap:52px;
  row-gap:14px;
  margin-bottom:48px;
}
.story .section-head .eyebrow,
.drivers .section-head .eyebrow{
  padding-top:8px;
}
.story .section-head h2,
.drivers .section-head h2{
  max-width:900px;
  font-size:clamp(2.35rem,4.25vw,4.8rem);
  line-height:1.02;
  letter-spacing:-.045em;
}
.drivers .section-head .section-support{
  max-width:680px;
  font-size:1.08rem;
  line-height:1.55;
}
.hero-facts li:last-child{
  min-width:150px;
}
.hero-facts li:last-child strong{
  white-space:nowrap;
}
.case-card .deliverable-list{
  display:flex;
  flex-direction:column;
  gap:9px;
}
.case-card .deliverable-list li{
  position:relative;
  display:block;
  padding-left:18px;
  color:var(--ink-soft);
  font-size:.88rem;
  font-weight:600;
  line-height:1.45;
}
.case-card .deliverable-list li::before{
  content:"";
  position:absolute;
  left:0;
  top:.58em;
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--red);
}
@media (max-width:760px){
  .story .section-head,
  .drivers .section-head{
    margin-bottom:36px;
  }
  .story .section-head h2,
  .drivers .section-head h2{
    font-size:clamp(2.25rem,10vw,3.8rem);
  }
}

.case06-product{
  grid-template-columns:minmax(300px,.9fr) minmax(360px,1.1fr);
  gap:28px;
  align-items:stretch;
}
.case06-product figure{
  display:grid;
  grid-template-rows:260px auto;
}
.case06-product figure img{
  height:260px;
  padding:26px 34px 18px;
  background:#fff;
  filter:none;
}
.case06-product figcaption{
  padding:16px 22px 20px;
}
.case06-product > div{
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:28px 34px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
}

@media (max-width:900px){
  .intro-band{ overflow:hidden; }
  .marquee-track{
    display:flex;
    width:max-content;
    gap:58px;
    padding-inline:30px;
    animation:marquee-continuous 26s linear infinite;
  }
  .marquee-track span::after{ right:-33px; }
}
@media (max-width:760px){
  .case06-product{ grid-template-columns:1fr; }
  .case06-product figure{ grid-template-rows:230px auto; }
  .case06-product figure img{ height:230px; }
}
@media (max-width:560px){
  .case-card .case-bullets{ grid-template-columns:1fr 1fr; }
  .case-card .case-bullets strong{ font-size:1.35rem; }
}
/* Verified compact layout — intentionally last so older refinements cannot override it */
.hero-facts li:last-child{
  flex:0 0 auto;
  min-width:220px;
}
.hero-facts li:last-child strong{
  display:inline-block;
  white-space:nowrap !important;
}

.story,
.drivers{
  padding-top:64px;
  padding-bottom:64px;
}
.story .section-head,
.drivers .section-head{
  display:grid;
  grid-template-columns:220px minmax(0,760px);
  justify-content:start;
  align-items:start;
  column-gap:72px;
  row-gap:12px;
  max-width:none;
  margin:0 0 44px;
}
.story .section-head .eyebrow,
.drivers .section-head .eyebrow{
  grid-column:1;
  grid-row:1 / span 2;
  margin:0;
  padding-top:7px;
}
.story .section-head h2,
.drivers .section-head h2{
  grid-column:2;
  grid-row:1;
  max-width:760px;
  margin:0;
  font-size:clamp(2.45rem,3.7vw,4rem);
  line-height:1.02;
  letter-spacing:-.045em;
}
.drivers .section-head .section-support{
  grid-column:2;
  grid-row:2;
  max-width:700px;
  margin:4px 0 0;
  font-size:1.02rem;
  line-height:1.55;
}

@media (max-width:760px){
  .hero-facts li:last-child{
    min-width:100%;
  }
  .story,
  .drivers{
    padding-top:48px;
    padding-bottom:48px;
  }
  .story .section-head,
  .drivers .section-head{
    grid-template-columns:1fr;
    row-gap:12px;
    margin-bottom:32px;
  }
  .story .section-head .eyebrow,
  .drivers .section-head .eyebrow,
  .story .section-head h2,
  .drivers .section-head h2,
  .drivers .section-head .section-support{
    grid-column:1;
    grid-row:auto;
    padding-top:0;
  }
  .story .section-head h2,
  .drivers .section-head h2{
    font-size:clamp(2.25rem,10vw,3.25rem);
  }
}


/* Case 07 and education alignment */
.hero-facts{
  display:grid !important;
  grid-template-columns:minmax(185px, .95fr) minmax(300px, 1.55fr) minmax(155px, .8fr) !important;
  align-items:stretch;
  width:100%;
}
.hero-facts li{
  min-width:0 !important;
  height:100%;
  overflow:hidden;
}
.hero-facts strong{
  white-space:nowrap;
  font-size:clamp(.86rem, 1.15vw, .98rem);
}
.case07-cover img{ object-fit:cover; object-position:center 48%; }
.case07-modal .bakery-product-grid{ grid-template-columns:repeat(3, minmax(0, 1fr)); }
.case07-modal .bakery-product-grid figure,
.case07-modal .bakery-social-grid figure{ display:flex; flex-direction:column; }
.case07-modal .bakery-product-grid img{
  width:100%; height:320px; object-fit:cover; background:#fff;
}
.case07-modal .bakery-social-grid img{
  width:100%; height:560px; object-fit:contain; background:#f4f1ea;
}
.workflow-list{
  display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:16px;
}
.workflow-list li{
  background:#fff; border:1px solid var(--line); border-radius:18px; padding:22px;
}
.workflow-list strong{ display:block; color:var(--red); font-size:1.05rem; margin-bottom:7px; }
.workflow-list span{ color:var(--ink-soft); }
@media (max-width:860px){
  .hero-facts{ grid-template-columns:1fr !important; }
  .hero-facts strong{ white-space:normal; }
  .case07-modal .bakery-product-grid,
  .workflow-list{ grid-template-columns:1fr; }
  .case07-modal .bakery-product-grid img{ height:auto; max-height:420px; object-fit:contain; }
  .case07-modal .bakery-social-grid img{ height:auto; max-height:620px; }
}
/* =========================================
   NEW ENTRY — VIRTUAL FARM DAY VIDEO SERIES
========================================= */

.field-video-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 24px;
  margin-top: 32px;
}

.field-video-card {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.25s ease;
}

.field-video-card:hover {
  transform: translateY(-4px);
}

.field-video-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.field-video-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 20px;
}


.field-video-caption span {
  font-size: 0.85rem;
  opacity: 0.65;
}

/* Mobile */
@media (max-width: 768px) {
  .field-video-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.field-video-caption .video-title,
.field-video-caption .video-title .num-accent {
  color: var(--ink) !important;
}
.project-pdf-link {
  display: inline-flex;
  align-items: center;
  margin-top: 22px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  transition: opacity 0.2s ease;
}

.project-pdf-link:hover {
  opacity: 0.6;
}

/* =========================================
   H-1B DATA PROJECT
========================================= */

.h1b-hero {
  min-height: auto !important;
  padding: 52px 52px 44px !important;
  background: #f7f4ec;
}

.h1b-hero .unified-hero-copy {
  padding: 0;
  color: var(--ink);
}

.h1b-hero .card-label {
  color: var(--red);
}

.h1b-hero h2 {
  color: var(--ink);
}

.h1b-hero .unified-hero-copy > p:last-child {
  color: var(--ink-soft);
}
/* H-1B · Data & Methods */
.h1b-process-section {
  margin-top: 44px;
  padding-top: 38px;
  border-top: 1px solid rgba(28, 26, 23, 0.12);
}

.h1b-method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.h1b-method-grid article {
  background: #fff;
  border: 1px solid rgba(28, 26, 23, 0.08);
  border-radius: 16px;
  padding: 26px 24px;
}

.h1b-method-grid article > span {
  display: block;
  margin-bottom: 18px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.h1b-method-grid h4 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 1.05rem;
}

.h1b-method-grid p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.6;
}

@media (max-width: 760px) {
  .h1b-method-grid {
    grid-template-columns: 1fr;
  }
}

/* H-1B · Full PDF */
.h1b-pdf-section {
  margin-top: 52px;
  padding-top: 42px;
  border-top: 1px solid rgba(28, 26, 23, 0.12);
}

.h1b-pdf-frame {
  width: 100%;
  height: 720px;
  margin-top: 30px;
  background: #fff;
  border: 1px solid rgba(28, 26, 23, 0.12);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(20, 16, 10, 0.08);
}

.h1b-pdf-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.h1b-pdf-button {
  display: inline-flex;
  margin-top: 20px;
}

@media (max-width: 760px) {
  .h1b-pdf-frame {
    height: 520px;
  }
}

/* Data Project 03 · Tech Volatility preview */
.project-single-image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 24px;
}

.project-single-image img {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
}

/* =========================================
   TECH STOCK VOLATILITY PROJECT
========================================= */

.volatility-hero {
  min-height: auto !important;
  padding: 52px 52px 44px !important;
  background: #f7f4ec;
}

.volatility-hero .unified-hero-copy {
  padding: 0;
  color: var(--ink);
}

.volatility-hero .card-label {
  color: var(--red);
}

.volatility-hero h2 {
  color: var(--ink);
}

.volatility-hero .unified-hero-copy > p:last-child {
  color: var(--ink-soft);
}

/* =========================================
   GLOBAL RETAIL PERFORMANCE PROJECT
========================================= */

.retail-hero {
  min-height: auto !important;
  padding: 52px 52px 44px !important;
  background: #f7f4ec;
}

.retail-hero .unified-hero-copy {
  padding: 0;
  color: var(--ink);
}

.retail-hero .card-label {
  color: var(--red);
}

.retail-hero h2 {
  color: var(--ink);
}

.retail-hero .unified-hero-copy > p:last-child {
  color: var(--ink-soft);
}

.retail-hero h2 {
  white-space: nowrap;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.h1b-hero h2 {
  white-space: nowrap;
  font-size: clamp(2rem, 4vw, 3.4rem);
}