/* ==========================================================================
   Adahlia Morgan — Portfolio
   Editorial serif + clean sans, warm neutrals with burgundy & cobalt accents
   ========================================================================== */

:root {
  --cream: #F7F2EA;
  --sand: #D8C7B3;
  --sand-soft: #EBE1D4;
  --espresso: #2F241F;
  --espresso-soft: #5A4A42;
  --burgundy: #7E2F43;
  --burgundy-deep: #64243A;
  --cobalt: #4B67B0;
  --cobalt-ink: #3B5396; /* cobalt for small text: passes AA on cream and sand */
  --blush: #D8A7A7;
  --blush-soft: #F0DCD8;
  --line: rgba(47, 36, 31, 0.14);

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(88px, 12vw, 160px);
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--espresso);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
[hidden] { display: none !important; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--blush); color: var(--espresso); }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--espresso); color: var(--cream); padding: 10px 16px; border-radius: 8px; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.04; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(44px, 6.4vw, 88px); }
h3 { font-size: clamp(28px, 3vw, 38px); line-height: 1.12; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
em, .italic { font-style: italic; }
.accent { color: var(--burgundy); font-style: italic; }
.accent-blue { color: var(--cobalt); font-style: italic; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--sans); font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--cobalt-ink);
  margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: currentColor; }
.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.65; color: var(--espresso-soft); max-width: 62ch; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--burgundy); --fg: var(--cream);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-size: 15px; font-weight: 700; letter-spacing: 0.02em;
  text-decoration: none; border: 1.5px solid var(--bg);
  transition: transform .4s var(--ease), background .3s, color .3s, border-color .3s;
}
.btn svg { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.btn:hover { background: var(--burgundy-deep); border-color: var(--burgundy-deep); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(0.97); }
.btn--ghost { --bg: transparent; --fg: var(--espresso); border-color: var(--espresso); }
.btn--ghost:hover { background: var(--espresso); color: var(--cream); border-color: var(--espresso); }
.btn--light { --bg: var(--cream); --fg: var(--burgundy); }
.btn--light:hover { background: #fff; border-color: #fff; color: var(--burgundy-deep); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 15px; text-decoration: none; color: var(--burgundy);
  padding-bottom: 4px; border-bottom: 1.5px solid currentColor;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 242, 234, 0.82);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { font-family: var(--serif); font-size: 26px; text-decoration: none; letter-spacing: -0.01em; }
.logo span { color: var(--burgundy); font-style: italic; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a:not(.btn) { font-size: 14.5px; font-weight: 600; text-decoration: none; position: relative; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 100%; height: 1.5px;
  background: var(--burgundy); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.nav a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { padding: 11px 22px; font-size: 14px; }
.nav-toggle { display: none; }

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--espresso);
    background: transparent; color: var(--espresso); cursor: pointer;
  }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; transition: transform .3s var(--ease), background .3s;
  }
  .nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
  .nav-toggle span::before { top: -6px; }
  .nav-toggle span::after { top: 6px; }
  .nav-open .nav-toggle span { background: transparent; }
  .nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
  .nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }
  .nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: flex-start; gap: 22px;
    padding: 28px var(--gutter) 36px; background: var(--cream); border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .nav a:not(.btn) { font-family: var(--serif); font-size: 32px; font-weight: 400; }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
}

/* ---------- Hero (typographic) ---------- */
.hero { padding: clamp(72px, 11vw, 150px) 0 clamp(80px, 11vw, 150px); position: relative; overflow: hidden; }
/* title on the left, tagline on the right: reads left to right */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: end; }
.hero-title { display: grid; grid-template-columns: 1fr; line-height: 0.86; letter-spacing: -0.03em; text-wrap: initial; }
.ht-the { font-style: italic; color: var(--burgundy); font-size: clamp(34px, 4.2vw, 62px); line-height: 1; margin: 0 0 0.12em 0.12em; }
.ht-big { display: block; font-size: clamp(76px, 12.4vw, 196px); }
.ht-big--2 { font-style: italic; color: var(--burgundy); padding-left: clamp(32px, 7vw, 120px); }
.ht-of {
  justify-self: start; margin-top: clamp(20px, 2.4vw, 34px); padding-left: 0.2em;
  font-size: clamp(17px, 1.7vw, 24px); letter-spacing: 0.32em; text-transform: uppercase; line-height: 1.3; color: var(--espresso-soft);
}
.hero-tagline {
  max-width: 20ch; margin: 0 0 0.4em; padding-top: 26px; border-top: 1px solid var(--line);
  font-family: var(--serif); font-size: clamp(26px, 2.6vw, 40px); line-height: 1.22;
}
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-tagline { margin: clamp(32px, 7vw, 56px) 0 0; max-width: 24ch; }
}
@media (max-width: 640px) {
  .ht-big { font-size: 19.5vw; }
  .ht-big--2 { padding-left: 9vw; }
  .ht-of { letter-spacing: 0.22em; padding: 0; }
}

/* progressive reveal: letters fade up from a soft blur, no sliding */
[data-progressive] .pw { display: inline-block; white-space: nowrap; }
.js [data-progressive] .pc { opacity: 0; filter: blur(10px); transition: opacity 1s var(--ease), filter 1.2s var(--ease); transition-delay: calc(var(--base, 0s) + var(--i) * 45ms); }
.js [data-progressive].is-in .pc { opacity: 1; filter: none; }

/* ---------- Floating words ---------- */
.marquee { border-block: 1px solid #E6D3D3; overflow: hidden; padding: 26px 0; background: var(--blush-soft); }
.marquee-track { display: flex; width: max-content; animation: marquee 52s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; flex-shrink: 0; }
.marquee-item { font-family: var(--serif); font-size: clamp(26px, 3vw, 40px); white-space: nowrap; padding: 0 30px; font-style: italic; color: var(--burgundy); }
.marquee-item:nth-child(4n+3) { font-style: normal; color: var(--espresso); transform: translateY(5px); }
.marquee-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cobalt); flex-shrink: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; position: relative; }
.section + .section:not(.section--warm):not(.section--wine) { border-top: 1px solid var(--line); }
.section--warm { background: #FBF8F3; }
.section--wine { background: var(--burgundy); color: var(--cream); }
.section-title { margin-bottom: clamp(48px, 6vw, 84px); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: end; margin-bottom: clamp(48px, 6vw, 84px); }
.section-head--inline { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 24px; }
@media (max-width: 820px) { .section-head { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.about-portrait { position: sticky; top: 120px; }
.about-portrait .frame { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--blush-soft); }
.about-portrait .frame img { width: 100%; height: 100%; object-fit: cover; }
.about-portrait::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 1px solid var(--burgundy); border-radius: var(--radius); z-index: -1; opacity: 0.6; }
.about h2 { margin-bottom: 40px; }
.about-copy p { font-size: 18px; line-height: 1.85; color: var(--espresso-soft); margin-bottom: 1.5em; max-width: 60ch; }
.about-copy .dropcap::first-letter { font-family: var(--serif); float: left; font-size: 4.4em; line-height: 0.8; padding: 0.08em 0.1em 0 0; color: var(--burgundy); }
.about-copy .about-pull { font-family: var(--serif); font-style: italic; font-size: clamp(26px, 2.5vw, 34px); line-height: 1.25; color: var(--burgundy); margin: 1.4em 0; max-width: 28ch; }
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about-portrait { position: relative; top: 0; max-width: 380px; }
  .about-portrait::before { inset: 14px -12px -14px 12px; }
}

/* ---------- Areas of expertise ---------- */
.services { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.service {
  grid-column: span 2; position: relative; padding: 34px 30px 30px; border-radius: var(--radius);
  background: var(--cream); border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: border-color .4s, box-shadow .6s var(--ease);
}
.service:nth-child(4), .service:nth-child(5) { grid-column: span 3; }
.service { transition: background-color .45s var(--ease), border-color .45s, box-shadow .6s var(--ease), color .45s; }
/* hover: burgundy card, white lettering; returns to normal when the cursor leaves */
.service:hover { background: var(--burgundy); border-color: var(--burgundy); color: #fff; box-shadow: 0 30px 60px -36px rgba(100, 36, 58, 0.6); }
.service:hover .service-num, .service:hover > p, .service:hover > p span, .service:hover .service-cta { color: #fff; }
.service-num, .service > p, .service > p span, .service-cta { transition: color .45s var(--ease); }
/* each card links to Selected Work */
a.service { text-decoration: none; color: inherit; }
.service-cta { margin-top: auto; display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; padding: 10px 0 0; font: 700 14px/1 var(--sans); color: var(--burgundy); letter-spacing: 0.02em; }
.service-cta svg { width: 15px; height: 15px; transition: transform .4s var(--ease); }
.service:hover .service-cta svg { transform: translateX(5px); }
.service-num { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--burgundy); display: block; margin-bottom: 44px; }
.service h3 { margin-bottom: 12px; }
.service > p { margin: 0 0 26px; font-size: 15px; color: var(--espresso-soft); line-height: 1.75; text-wrap: wrap; }
.service > p span { color: var(--burgundy); padding: 0 2px; }
@media (max-width: 980px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .service, .service:nth-child(4), .service:nth-child(5) { grid-column: span 1; }
  .service:nth-child(5) { grid-column: span 2; }
}
@media (max-width: 600px) {
  .services { grid-template-columns: 1fr; }
  .service:nth-child(5) { grid-column: span 1; }
  .service-num { margin-bottom: 24px; }
}

/* ---------- Selected work ---------- */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3.4vw, 52px); align-items: start; }
.case { display: flex; flex-direction: column; text-decoration: none; }
/* logo panel: the organization's original logo is the card's visual */
.case-logo {
  display: grid; place-items: center; aspect-ratio: 16 / 10; margin-bottom: 26px; padding: 12%;
  border-radius: var(--radius); background: #FBF8F3; border: 1px solid var(--line);
  transition: border-color .4s, box-shadow .6s var(--ease);
}
.case-logo img { width: 100%; height: 100%; max-height: 150px; object-fit: contain; transition: transform 1.2s var(--ease); }
.case:hover .case-logo { border-color: rgba(126, 47, 67, 0.35); box-shadow: 0 24px 50px -38px rgba(47, 36, 31, 0.4); }
.case:hover .case-logo img { transform: scale(1.04); }
.case-tags { font-size: 13px; font-weight: 600; color: var(--cobalt-ink); margin: 0 0 12px; letter-spacing: 0.02em; }
.case-tags span { color: var(--blush); padding: 0 4px; }
.case h3 { font-size: clamp(28px, 2.4vw, 36px); line-height: 1.08; margin-bottom: 14px; transition: color .3s; }
.case:hover h3 { color: var(--burgundy); }
.case-summary { font-size: 15.5px; color: var(--espresso-soft); margin: 0 0 22px; }
.case-cta { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; font-weight: 700; font-size: 14.5px; color: var(--burgundy); padding-bottom: 4px; border-bottom: 1.5px solid currentColor; }
.case-cta svg { width: 15px; height: 15px; transition: transform .4s var(--ease); }
.case:hover .case-cta svg { transform: translateX(5px); }
@media (max-width: 980px) { .cases { grid-template-columns: 1fr 1fr; } .cases .case:last-child { grid-column: span 2; max-width: calc(50% - 20px); } }
@media (max-width: 640px) { .cases { grid-template-columns: 1fr; gap: 56px; } .cases .case:last-child { grid-column: auto; max-width: none; } }

/* ---------- Numbers ---------- */
.section--wine .section-title em { color: #EBC8C8; }
.results { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.result { padding: 30px clamp(18px, 2.4vw, 36px) 8px 0; border-top: 1px solid rgba(247, 242, 234, 0.3); }
.result + .result { padding-left: clamp(18px, 2.4vw, 36px); border-left: 1px solid rgba(247, 242, 234, 0.18); }
.result-figure { font-family: var(--serif); font-size: clamp(48px, 4.8vw, 76px); line-height: 1; letter-spacing: -0.02em; display: flex; align-items: baseline; white-space: nowrap; gap: 0.16em; margin-bottom: 22px; color: var(--cream); }
.result-figure .from { color: #E8C9CC; font-size: 0.56em; }
.result-figure .arrow { width: 0.4em; height: 0.4em; color: #E8C9CC; align-self: center; }
.result-label { font-weight: 700; font-size: 15px; margin: 0 0 6px; color: var(--cream); }
.result p:not(.result-label) { font-size: 14.5px; color: var(--cream); margin: 0; max-width: 26ch; }
@media (max-width: 1080px) {
  .results { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .result:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 560px) {
  .results { grid-template-columns: 1fr; row-gap: 32px; }
  .result:nth-child(n) { padding: 26px 0 0; border-left: 0; }
}

/* ---------- Strategy to execution: discipline tabs ---------- */
.gallery-tabs { display: flex; flex-wrap: wrap; gap: 6px 24px; border-bottom: 1px solid var(--line); margin-bottom: clamp(40px, 5vw, 64px); }
.gallery-tab {
  position: relative; background: none; border: 0; padding: 14px 0; cursor: pointer;
  font: 600 14.5px/1.3 var(--sans); color: var(--espresso-soft); transition: color .3s; white-space: nowrap;
}
.gallery-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--burgundy); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.gallery-tab:hover { color: var(--espresso); }
.gallery-tab[aria-selected="true"] { color: var(--burgundy); }
.gallery-tab[aria-selected="true"]::after { transform: scaleX(1); }
@media (min-width: 1240px) {
  /* all seven disciplines on a single row */
  .gallery-tabs { flex-wrap: nowrap; justify-content: space-between; gap: 14px; }
  .gallery-tab { font-size: 13.5px; }
}
.stx-panel:focus-visible { outline-offset: 10px; }
.js .stx-panel:not([hidden]) { animation: panel-in .5s var(--ease); }
@keyframes panel-in { from { opacity: 0; } }
@media (max-width: 600px) {
  /* all disciplines visible at once: two-column list instead of a scrolling row */
  .gallery-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; border-bottom: 0; }
  .gallery-tab { text-align: left; padding: 13px 0; font-size: 14.5px; border-bottom: 1px solid var(--line); white-space: normal; }
  .gallery-tab::after { bottom: -1px; }
}

/* shared pieces */
.stx-intro { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.75; color: var(--espresso-soft); max-width: 70ch; margin: 0 0 clamp(36px, 4vw, 52px); }
.stx-intro + .chips--intro { margin: calc(clamp(36px, 4vw, 52px) * -0.55) 0 clamp(40px, 5vw, 60px); }
.stx-lead { font-family: var(--serif); font-size: clamp(30px, 3.4vw, 48px); line-height: 1.1; margin: 0 0 clamp(36px, 4vw, 56px); max-width: 22ch; }
.stx-lead em { color: var(--burgundy); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(126, 47, 67, 0.28); background: #FBF8F3; font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--burgundy); }
.role-line { display: grid; gap: 12px; margin-top: 22px; }
.role-label, .stat-head, .card-label {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cobalt-ink); margin: 0;
}

/* project card: visual on top, copy beneath */
.wc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 5vw, 72px); align-items: start; }
.wc { display: flex; flex-direction: column; }
.wc-media {
  display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; position: relative;
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10.5; background: var(--sand-soft); margin-bottom: 26px;
}
.wc-media img, .wc-media video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.wc-media:hover img, .wc-media:hover video { transform: scale(1.03); }
.wc-media--contain { background: transparent; }
.wc-media--contain img, .wc-media--contain video { object-fit: contain; }
.wc-media--blush { background: var(--blush-soft); }
.wc-meta { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--burgundy); margin: 0 0 10px; }
.wc-meta span { color: var(--blush); padding: 0 4px; }
.wc-title { font-size: clamp(30px, 2.8vw, 42px); line-height: 1.06; margin-bottom: 10px; }
.wc-sub { font-size: 15px; font-weight: 600; color: var(--espresso-soft); margin: 0 0 16px; }
.wc-desc { font-size: 16px; line-height: 1.75; color: var(--espresso-soft); margin: 0 0 22px; max-width: 62ch; }
.wc-desc em { font-style: italic; }
.wc > .chips { margin-top: 2px; }
.wc-tools { font-size: 14px; color: var(--espresso-soft); margin: 16px 0 0; }
/* single featured project: video on top, copy beneath */
.wc--feature { max-width: 900px; }
.wc--feature .wc-media { aspect-ratio: 16 / 9; }

/* stats: large serif figures in open columns */
.stat-head { margin-top: 6px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); margin: 16px 0 0; border-top: 1px solid var(--line); }
.stat-row div { padding: 20px 18px 6px 0; }
.stat-row div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.stat-row dt, .stat-grid dt { font-family: var(--serif); font-size: clamp(32px, 2.8vw, 42px); line-height: 1; letter-spacing: -0.01em; color: var(--burgundy); margin-bottom: 10px; }
.stat-row dd, .stat-grid dd { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--espresso-soft); }
.stat-row dd b { display: block; font-size: 14px; color: var(--espresso); margin-bottom: 4px; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 14px 0 22px; border-top: 1px solid var(--line); }
.stat-grid div { padding: 18px 14px 16px 0; border-bottom: 1px solid var(--line); }
.stat-grid div:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--line); }
.stat-grid--3 { grid-template-columns: 1fr; }
.stat-grid--3 div:nth-child(even) { padding-left: 0; border-left: 0; }

/* email: three cards side by side */
.card-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.card { display: flex; flex-direction: column; padding: clamp(24px, 2.6vw, 34px); border-radius: var(--radius); background: #FBF8F3; border: 1px solid var(--line); }
.card .card-label { margin-bottom: 18px; }
.card .wc-media { aspect-ratio: 4 / 3; margin-bottom: 20px; }
.card .wc-title { font-size: clamp(26px, 2.2vw, 32px); }
.card .chips { margin: 14px 0 22px; }
.card-link { align-self: flex-start; margin-top: auto; background: none; border: 0; border-bottom: 1.5px solid currentColor; cursor: pointer; font-family: var(--sans); padding: 0 0 4px; }
.bench { list-style: none; margin: 12px 0 0; padding: 0; }
.bench li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.bench b { font-family: var(--serif); font-weight: 400; font-size: 24px; color: var(--burgundy); line-height: 1; grid-row: span 2; align-self: center; }
.bench span { font-weight: 600; }
.bench em { font-style: normal; color: var(--espresso-soft); font-size: 13px; }

/* experiential: project header + photo mosaic */
.xp + .xp { margin-top: clamp(64px, 8vw, 110px); padding-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); }
.xp-head { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(24px, 4vw, 64px); margin-bottom: clamp(28px, 3vw, 40px); }
.xp-title { font-size: clamp(32px, 3.4vw, 50px); line-height: 1.04; }
.mosaic { columns: 3 260px; column-gap: 14px; }
.tile { display: block; width: 100%; margin: 0 0 14px; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: var(--sand-soft); cursor: zoom-in; position: relative; break-inside: avoid; }
.tile img { display: block; width: 100%; height: auto; transition: transform 1.2s var(--ease); }
.tile:hover img { transform: scale(1.04); }
.tile--hero { column-span: all; aspect-ratio: 16 / 7.5; }
.tile--hero img { height: 100%; object-fit: cover; }
.tile-play { position: absolute; left: 12px; bottom: 12px; width: 38px; height: 38px; border-radius: 50%; background: rgba(247, 242, 234, 0.94); }
.tile-play::before { content: ""; position: absolute; left: 15px; top: 12px; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent var(--espresso); }

@media (max-width: 980px) {
  .card-trio { grid-template-columns: 1fr; }
  .xp-head { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .wc-grid { grid-template-columns: 1fr; }
  .mosaic { columns: 2; column-gap: 10px; }
  .tile { margin-bottom: 10px; }
  .tile--hero { aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) {
  .stat-row { grid-template-columns: 1fr; }
  .stat-row div, .stat-row div + div { padding: 16px 0 6px; border-left: 0; }
  .stat-row div + div { border-top: 1px solid var(--line); }
}

/* ---------- Lightbox: the work itself, nothing else ---------- */
.lightbox { width: min(1240px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: calc(var(--radius) + 4px); background: var(--cream); color: var(--espresso); box-shadow: 0 40px 120px -30px rgba(20, 12, 10, 0.6); overflow: hidden; }
.lightbox::backdrop { background: rgba(35, 24, 22, 0.78); backdrop-filter: blur(4px); }
.lightbox[open] { display: block; animation: lb-in .45s var(--ease); }
@keyframes lb-in { from { opacity: 0; transform: translateY(12px) scale(0.985); } }
/* plain block layout: Safari collapses a flex:1 media area to zero height inside a dialog */
.lb-media { display: block; background: var(--sand-soft); line-height: 0; }
.lb-media img, .lb-media video { display: block; margin: 0 auto; width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 32px - 78px); max-height: calc(100dvh - 32px - 78px); }
.lb-nav { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 16px; }
.lb-count { margin: 0; min-width: 56px; text-align: center; font-size: 14px; font-weight: 600; color: var(--espresso-soft); }
.lb-nav button, .lb-close {
  width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--espresso); background: var(--cream); color: var(--espresso);
  display: inline-grid; place-items: center; cursor: pointer; transition: background .3s, color .3s;
}
.lb-nav button:hover, .lb-close:hover { background: var(--espresso); color: var(--cream); }
.lb-nav svg { width: 16px; height: 16px; }
.lb-close { position: absolute; top: 14px; right: 14px; z-index: 2; font-size: 26px; line-height: 1; }

/* ---------- Skills & tools: category + pills ---------- */
.skill-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(32px, 5vw, 72px); border-top: 1px solid var(--line); }
.skill-group { padding: 28px 0 30px; border-bottom: 1px solid var(--line); }
.skill-group h3 { font-size: clamp(24px, 2.1vw, 30px); margin-bottom: 16px; }
.skill-group .chips li { padding: 9px 16px; font-size: 14px; background: var(--cream); }
@media (max-width: 760px) { .skill-groups { grid-template-columns: 1fr; } }

/* ---------- Education & certifications ---------- */
.creds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cred { padding: clamp(28px, 3vw, 40px); border-radius: var(--radius); border: 1px solid var(--line); background: #FBF8F3; }
.cred-kind { font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cobalt-ink); margin: 0 0 18px; }
.cred h3 { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.1; margin-bottom: 12px; }
.cred-org { font-weight: 600; margin: 0; }
.cred-date { font-size: 14.5px; color: var(--espresso-soft); margin: 4px 0 0; }
.cred .link-arrow { margin-top: 22px; }
@media (max-width: 760px) { .creds { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.cta { background: var(--burgundy); color: var(--cream); text-align: center; padding: clamp(110px, 14vw, 190px) 0; position: relative; overflow: hidden; }
.cta h2 { font-size: clamp(52px, 8.4vw, 124px); max-width: 13ch; margin: 0 auto 44px; line-height: 0.98; }
.cta h2 em { color: #EBC8C8; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.cta-actions .btn { padding: 16px 28px 16px 24px; gap: 12px; }
.brand-icon { width: 20px; height: 20px; flex-shrink: 0; }
.cta-actions .btn:hover svg { transform: none; }
.brand-icon--gmail { fill: #EA4335; }
.brand-icon--linkedin { fill: #0A66C2; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.cta-bg { position: absolute; inset: 0; pointer-events: none; opacity: 0.16; }
.cta-bg span { position: absolute; border-radius: 50%; border: 1.5px solid var(--cream); }

/* Footer */
.site-footer { background: var(--espresso); color: rgba(247, 242, 234, 0.7); padding: 54px 0; font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: center; }
.site-footer .logo { color: var(--cream); }
.site-footer .logo span { color: var(--blush); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 26px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--cream); }

/* ==========================================================================
   Case study pages
   ========================================================================== */
.cs-hero { padding: clamp(40px, 6vw, 80px) 0 clamp(40px, 5vw, 64px); }
.back-link { display: flex; width: fit-content; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--espresso-soft); margin-bottom: 40px; }
.back-link svg { width: 15px; height: 15px; transition: transform .4s var(--ease); }
.back-link:hover svg { transform: translateX(-4px); }
.cs-hero h1 { font-size: clamp(46px, 7vw, 104px); line-height: 0.98; letter-spacing: -0.02em; max-width: 16ch; margin-bottom: 30px; }
.cs-hero h1 em { color: var(--burgundy); }
.cs-hero .lede { margin-bottom: 34px; }
.focus-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.focus-tags span { padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; border: 1px solid var(--line); background: #FBF8F3; }

.cs-cover { border-radius: calc(var(--radius) + 6px); overflow: hidden; background: var(--sand-soft); margin-top: clamp(40px, 5vw, 64px); }
.cs-cover img, .cs-cover video { width: 100%; height: auto; }
.cs-cover--contain { background: var(--blush-soft); display: grid; place-items: center; aspect-ratio: 16 / 7; }
.cs-cover--contain img { width: min(60%, 520px); height: auto; }

.glance { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-block: 1px solid var(--line); margin: clamp(56px, 7vw, 96px) 0 0; }
.glance div { padding: 34px 26px 36px 0; }
.glance div + div { padding-left: 26px; border-left: 1px solid var(--line); }
.glance strong { display: flex; align-items: baseline; gap: 0.18em; flex-wrap: wrap; font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 4.2vw, 62px); line-height: 1; margin-bottom: 12px; color: var(--burgundy); }
.glance strong .from { font-size: 0.6em; color: var(--espresso-soft); }
.glance strong .arrow { width: 0.42em; height: 0.42em; align-self: center; color: var(--cobalt); }
.glance div > span { font-size: 14px; font-weight: 600; color: var(--espresso-soft); line-height: 1.5; display: block; }
.glance.glance--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) {
  .glance, .glance.glance--3 { grid-template-columns: 1fr 1fr; }
  .glance div, .glance div + div { padding: 28px 16px 28px 0; border-left: 0; }
  .glance div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .glance div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .glance, .glance.glance--3 { grid-template-columns: 1fr; }
  .glance div, .glance div:nth-child(even) { padding: 24px 0; border-left: 0; }
  .glance div + div { border-top: 1px solid var(--line); }
}

.chapter { padding: clamp(80px, 10vw, 140px) 0; border-top: 1px solid var(--line); }
.chapter:first-of-type { border-top: 0; }
.chapter-grid { display: grid; grid-template-columns: 260px 1fr; gap: clamp(32px, 6vw, 96px); }
.chapter-label { position: sticky; top: 110px; align-self: start; }
.chapter-label .num { font-family: var(--serif); font-style: italic; font-size: 64px; line-height: 1; color: var(--burgundy); display: block; margin-bottom: 10px; }
.chapter-label .name { font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cobalt-ink); }
.chapter h2 { font-size: clamp(38px, 5vw, 70px); margin-bottom: 32px; max-width: 18ch; }
.chapter .body { font-size: 18px; color: var(--espresso-soft); max-width: 64ch; }
.chapter .body strong { color: var(--espresso); font-weight: 700; }
.pull { font-family: var(--serif); font-size: clamp(28px, 3vw, 40px); line-height: 1.2; color: var(--espresso); border-left: 3px solid var(--burgundy); padding: 6px 0 6px 28px; margin: 40px 0; max-width: 30ch; }
.pull em { color: var(--burgundy); }
@media (max-width: 860px) {
  .chapter-grid { grid-template-columns: 1fr; gap: 20px; }
  .chapter-label { position: static; display: flex; align-items: baseline; gap: 16px; }
  .chapter-label .num { font-size: 44px; margin: 0; }
}

.big-stat { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; background: var(--espresso); color: var(--cream); border-radius: calc(var(--radius) + 6px); padding: clamp(36px, 5vw, 64px); margin: 44px 0; }
.big-stat strong { font-family: var(--serif); font-weight: 400; font-size: clamp(96px, 14vw, 200px); line-height: 0.85; color: var(--blush); letter-spacing: -0.03em; }
.big-stat p { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 34px); line-height: 1.2; margin: 0; }
.big-stat p span { display: block; font-family: var(--sans); font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(247, 242, 234, 0.6); margin-top: 18px; font-weight: 700; }
@media (max-width: 640px) { .big-stat { grid-template-columns: 1fr; } }

.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 40px; }
.pillars.pillars--3 { grid-template-columns: repeat(3, 1fr); }
.pillar { padding: 30px 28px; border-radius: var(--radius); background: #FBF8F3; border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.pillar:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -34px rgba(47, 36, 31, 0.45); }
.pillar .n { font-size: 12.5px; font-weight: 700; letter-spacing: 0.16em; color: var(--cobalt-ink); display: block; margin-bottom: 30px; }
.pillar h3 { font-size: 28px; margin-bottom: 12px; }
.pillar p { font-size: 15.5px; color: var(--espresso-soft); margin: 0; }
@media (max-width: 900px) { .pillars.pillars--3 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .pillars { grid-template-columns: 1fr; } }

.figure { margin: 44px 0 0; }
.figure .media { border-radius: var(--radius); overflow: hidden; background: var(--sand-soft); }
.figure .media img, .figure .media video { width: 100%; height: auto; }
.figure figcaption { font-size: 13.5px; color: var(--espresso-soft); margin-top: 14px; display: flex; gap: 10px; }
.figure figcaption::before { content: "—"; color: var(--burgundy); }
.figure-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 44px; align-items: start; }
.figure-row .figure { margin: 0; }
.figure-row--phones { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 700px) {
  .figure-row { grid-template-columns: 1fr; }
  /* phone-format media becomes a swipeable row */
  .figure-row--phones {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 68%;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 8px; scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .figure-row--phones::-webkit-scrollbar { display: none; }
  .figure-row--phones .figure { scroll-snap-align: start; }
}

.media--phone { border-radius: 30px !important; border: 7px solid var(--espresso); background: var(--espresso) !important; }
.media--phone video, .media--phone img { aspect-ratio: 9 / 16; object-fit: cover; width: 100%; height: auto; }
.figure--tall { max-width: 380px; }
.figure--tall .media img, .figure--tall .media video { max-height: 78vh; width: 100%; object-fit: contain; }
.figure-row--phones .figure figcaption { font-size: 13px; }

.placeholder {
  display: grid; place-items: center; text-align: center; gap: 6px; aspect-ratio: 16 / 9; padding: 24px;
  border-radius: var(--radius); border: 1.5px dashed rgba(47, 36, 31, 0.28);
  background: repeating-linear-gradient(-45deg, var(--sand-soft), var(--sand-soft) 14px, #E5D9CA 14px, #E5D9CA 28px);
  color: var(--espresso-soft); font-size: 14px; font-weight: 600;
}
.placeholder b { display: block; font-family: var(--serif); font-weight: 400; font-size: 24px; color: var(--espresso); }

.execution { display: grid; gap: clamp(56px, 7vw, 96px); margin-top: 48px; }
.exec-item { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.exec-item h3 { font-size: clamp(30px, 3vw, 40px); margin-bottom: 14px; }
.exec-item p { font-size: 16.5px; color: var(--espresso-soft); }
.exec-item .figure { margin: 0; }
@media (max-width: 860px) { .exec-item { grid-template-columns: 1fr; } }

.outcomes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 40px; }
.outcome { padding: 34px 30px; border-radius: var(--radius); background: var(--blush-soft); }
.outcome:nth-child(2) { background: #DDE3F3; }
.outcome:nth-child(3) { background: var(--sand-soft); }
.outcome:nth-child(4) { background: #EADBDD; }
.outcome .label { font-size: 12.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--espresso-soft); display: block; margin-bottom: 12px; }
.outcome strong { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 4vw, 56px); line-height: 1; color: var(--burgundy); margin-bottom: 12px; }
.outcome p { margin: 0; font-size: 15.5px; color: var(--espresso-soft); }
@media (max-width: 640px) { .outcomes { grid-template-columns: 1fr; } }

.press { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 40px; }
.press-card { padding: 34px 30px; border-radius: var(--radius); border: 1px solid var(--line); background: #FBF8F3; }
.press-card .outlet { font-family: var(--serif); font-size: 30px; display: block; margin-bottom: 10px; }
.press-card p { margin: 0; color: var(--espresso-soft); font-style: italic; font-family: var(--serif); font-size: 21px; line-height: 1.3; }
@media (max-width: 640px) { .press { grid-template-columns: 1fr; } }

.role { display: grid; grid-template-columns: auto 1fr; gap: 28px 56px; align-items: center; padding: clamp(32px, 4vw, 52px); border-radius: calc(var(--radius) + 6px); background: var(--sand-soft); }
.role .eyebrow { margin: 0; grid-column: 1 / -1; }
.role h3 { font-size: clamp(30px, 3.4vw, 46px); }
.role p:not(.eyebrow) { margin: 0; color: var(--espresso-soft); font-weight: 600; }
@media (max-width: 700px) { .role { grid-template-columns: 1fr; } }

.next-case { display: block; text-decoration: none; padding: clamp(80px, 10vw, 140px) 0; background: var(--espresso); color: var(--cream); }
.next-case .eyebrow { color: var(--blush); }
.next-case h2 { font-size: clamp(42px, 6vw, 88px); max-width: 18ch; transition: color .4s; }
.next-case:hover h2 { color: var(--blush); }
.next-case .link-arrow { color: var(--cream); margin-top: 36px; }

/* Case study openers: official logo sized to complement the copy, not dominate it */
.cs-logo { margin-top: clamp(40px, 5vw, 60px); }
.cs-logo img { width: min(300px, 68%); height: auto; }

/* images with transparent or self-contained backgrounds sit straight on the page */
.media--clear { background: transparent !important; border-radius: 0 !important; }
.figure--portrait { max-width: 360px; }

/* Partner Resources: typographic treatment instead of an image */
.exec-type { padding: clamp(32px, 4vw, 48px) 0 0; border-top: 1px solid var(--line); }
.exec-type h3 { font-size: clamp(30px, 3vw, 40px); margin-bottom: 18px; }
.exec-statement { font-family: var(--serif); font-size: clamp(34px, 4.4vw, 60px); line-height: 1.08; letter-spacing: -0.015em; color: var(--espresso); max-width: 20ch; margin: 0; }
.exec-statement em { color: var(--burgundy); }

/* ---------- Reveal motion (only when JS is running) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="fade"] { transform: none; }
.js .split-line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.js .split-line > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js .is-in .split-line > span, .js .split-line.is-in > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .js [data-reveal], .js .split-line > span, .js [data-progressive] .pc { opacity: 1 !important; transform: none !important; filter: none !important; }
}
