/* =========================================================
   Penny Asawa — portfolio styles
   Edit the tokens below to restyle the whole site.
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,400..700;1,14..32,400..700&display=swap");
@import url("https://api.fontshare.com/v2/css?f[]=satoshi@500,700,500i&display=swap");

:root {
  /* colors — light theme, built from the brand berry + lavender
     Berry  #cc3f79  ·  Blush  #fcebef  ·  Lavender  #efedff  ·  Plum ink  #241b2b */
  --bg: #fcfafc;        /* page background: warm, faintly blush white */
  --text: #241b2b;      /* default text: deep plum ink, softer than black */
  --soft: #3a3040;      /* sub-headings */
  --muted: #74697c;     /* secondary text */
  --grey: #8d8394;
  --surface: #ffffff;   /* cards / info boxes sit as white on the tinted page */
  --surface-tint: #f6f3fd; /* lavender wash */
  --card-tint: #f3eefc;    /* project & playground cards */
  --line: #ece4ef;      /* dividers & card borders */
  --chip: #f1ebf6;      /* small buttons, labels */
  --footer: var(--bg);    /* footer blends into the page */
  --white: #ffffff;
  --ink: #241b2b;
  --dark: #3a3040;
  --pink: #cc3f79;      /* brand berry: links, eyebrows, buttons */
  --blue: #7a5bd1;      /* section labels: violet to pair with berry */
  --sky: #7a5bd1;
  --yellow: #b07a12;    /* Jeep mode colors, muted for light bg */
  --green: #3f8a58;
  --error: #c4405a;
  --shadow: 0 1px 2px rgba(60, 25, 70, .05), 0 10px 30px -12px rgba(60, 25, 70, .16);
  --nav-bg: rgba(252, 250, 252, .82);
  --eyebrow: var(--pink);          /* "✧ About …" labels */
  --chip-hover: #e7def0;
  --media-outline: rgba(60, 25, 70, .06);
  --on-dark-bg: var(--ink);        /* backdrop for see-through PNGs */
  color-scheme: light;

  /* fonts */
  --f-inter: "Inter", system-ui, sans-serif;
  --f-display: "Inter", system-ui, sans-serif; /* "Inter Display" = Inter at large optical size */
  --f-pt: "Inter", system-ui, sans-serif;   /* small caps labels (was PT Sans) */
  --f-satoshi: "Satoshi", system-ui, sans-serif;

  --nav-h: 72px;
  --gutter: 16px;
}

/* Dark theme: the original Framer colors. Turned on by the moon button
   (site.js sets data-theme="dark" on <html>). */
:root[data-theme="dark"] {
  --bg: #050505;
  --text: #ffffff;
  --soft: #e6e6e6;
  --muted: #ababab;
  --grey: #878787;
  --surface: #141414;
  --surface-tint: #141414;
  --line: #222222;
  --chip: #242424;
  --chip-hover: #333333;
  --footer: var(--bg);
  --blue: #7dadff;
  --sky: #77b9f2;
  --yellow: #ffff00;
  --green: #6ac275;
  --error: #cf4848;
  --shadow: none;
  --nav-bg: rgba(5, 5, 5, .82);
  --eyebrow: #ffffff;
  --media-outline: transparent;
  --on-dark-bg: transparent;
  color-scheme: dark;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-inter);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6, p, ol, ul { margin: 0; }
img, video { display: block; width: 100%; height: auto; object-fit: cover; }
a { color: inherit; text-decoration: none; }
p a, h1 a, h2 a, h5 a, li a { color: inherit; }
code { font: inherit; }
strong { font-weight: 700; }
svg { display: block; flex: none; }

/* ---------- page shell ---------- */
.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 120px var(--gutter) 40px;
  min-height: calc(100vh - 65px);
}
.page > * { max-width: 100%; }
.cell { min-width: 0; }
.abs { position: absolute; }
.blk { display: block; color: inherit; }
[id] { scroll-margin-top: calc(var(--nav-h) + 24px); }

/* ---------- type styles ----------
   The class names come from the original Framer text styles. */
.t-body      { font: 400 16px/22.4px var(--f-inter); }
.t-body + .t-body { margin-top: 1.4em; }
.t-small     { font: 400 14px/19.6px var(--f-inter); letter-spacing: -0.4px; }
.t-small + .t-small { margin-top: 1em; }
.t-title     { font: 500 25px/30px var(--f-display); font-optical-sizing: auto; font-variation-settings: "opsz" 32; }
.t-eyebrow   { font: 400 16px/25.6px var(--f-pt); letter-spacing: -0.32px; }
.t-meta      { font: 700 14px/16.8px var(--f-pt); letter-spacing: 2.24px; text-transform: capitalize; }
.t-detail    { font: 400 15px/24px var(--f-inter); letter-spacing: -0.3px; }
.t-foot      { line-height: 18px; letter-spacing: 0; }
.t-card      { font: 500 15px/24px var(--f-inter); letter-spacing: -0.3px; }
.t-btn       { font: 500 14px/19.6px var(--f-display); letter-spacing: -0.4px; font-variation-settings: "opsz" 32; }
.t-display   { font: 500 33px/39.6px var(--f-satoshi); }
.t-display-sm{ font: 500 30px/36px var(--f-satoshi); }
.t-stat      { font: 500 22px/26.4px var(--f-display); font-variation-settings: "opsz" 32; }
.t-statlabel { font: 500 20px/24px var(--f-display); font-variation-settings: "opsz" 32; }
.t-cardtitle { font: 500 18px/25.2px var(--f-inter); letter-spacing: -0.36px; }
.t-huge      { font: 500 100px/120px var(--f-satoshi); }
.t-tiny      { font: 500 12px/16.8px var(--f-inter); letter-spacing: -0.4px; }
.t-note      { font: 400 12px/18px var(--f-inter); letter-spacing: -0.24px; color: var(--error); }
.t-lead      { font: 600 17px/27.2px var(--f-inter); letter-spacing: -0.34px; }
.t-btn2      { font: 700 16px/19.2px var(--f-satoshi); }
.t-label     { font: 700 14px/16.8px var(--f-satoshi); letter-spacing: 2.24px; }
.list        { padding-left: 1.1em; }
.list li + li { margin-top: 0.2em; }

.i { font-style: italic; }
.center { text-align: center; }
.right { text-align: right; }

.c-ink   { color: var(--ink); }
.c-black { color: #000; }
.c-soft  { color: var(--soft); }
.c-muted { color: var(--muted); }
.c-grey  { color: var(--grey); }
.c-pink  { color: var(--pink); }
.c-blue  { color: var(--blue); }
.c-sky   { color: var(--sky); }
.c-dark  { color: var(--dark); }

/* ---------- nav ---------- */
.site-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  background: var(--bg);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 80px;
}
.site-nav .logo img { width: 47px; height: 36px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 27px; }
.nav-link {
  position: relative; display: block; overflow: hidden;
  height: 40px; padding: 0 4px;
  font: 700 16px/40px var(--f-satoshi); color: var(--text);
}
.nav-link span { display: block; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.nav-link span + span { position: absolute; left: 4px; top: 100%; }
.nav-link:hover span { transform: translateY(-100%); }
.nav-cta {
  display: grid; place-items: center;
  width: 126px; height: 52px; border-radius: 16px;
  background: var(--pink); color: var(--white);
  font: 700 16px/1 var(--f-satoshi);
  transition: filter .2s, transform .2s;
}
.nav-cta:hover { filter: brightness(1.1); transform: translateY(-1px); }
.nav-toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--text);
}
.nav-toggle span { display: block; width: 28px; height: 2px; background: currentColor; margin: 7px 0; transition: transform .25s, opacity .25s; }

@media (max-width: 1199px) {
  .site-nav { padding: 0 24px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 0 0 auto 0; z-index: -1;
    flex-direction: column; gap: 27px;
    padding: 80px 0 32px;
    background: var(--bg);
    border-radius: 0 0 32px 32px;
    transform: translateY(-105%);
    transition: transform .35s cubic-bezier(.2,.8,.2,1);
  }
  .nav-cta { height: 34px; border-radius: 16px; }
  .nav-open .nav-links { transform: none; }
  .nav-open .logo { position: absolute; left: 50%; transform: translateX(-50%); }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
}

/* ---------- footer ---------- */
.site-footer { background: var(--footer); padding: 23px 40px 24px; }
.site-footer p { font: 400 13px/18px var(--f-inter); color: var(--muted); }

/* ---------- home ---------- */
.hero {
  position: relative; isolation: isolate;
  width: 100%;
  padding: 80px 0 40px;
}
.hero::before {
  content: ""; position: absolute; inset: 0 calc((100% - 80vw) / 2) auto; /* background card = 80% of page */ height: 797px; z-index: -1;
  border-radius: 100px;
  background:
    radial-gradient(53% 80.08% at 50% 69.5%, #fcebef 0%, rgba(252,252,255,0) 100%),
    linear-gradient(rgba(255,255,255,0) 0%, #fcfcff 52%),
    linear-gradient(-47deg, #f19bbd 0%, #efedff 100%);
}
.hero-intro { width: min(1004px, 80vw - 64px); margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.hero-chip {
  align-self: flex-start;
  padding: 6px 20px; border-radius: 32px;
  background: linear-gradient(125deg, rgba(255,255,255,.6) 0%, #efedff 100%);
  backdrop-filter: blur(7px);
  color: #000;
}
.hero-intro .soft { font-weight: 400; font-style: italic; }
.work-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  width: 90vw; /* project cards = 90% of page */
  margin: 120px auto 0;
}
.work-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 15px; border-radius: 40px;
  background: radial-gradient(50% 50%, #fcebef 0%, #efedff 100%);
  box-shadow: rgba(0,0,0,.18) 0 .6px 1.8px -1.25px, rgba(0,0,0,.16) 0 2.29px 6.87px -2.5px, rgba(0,0,0,.06) 0 10px 30px -3.75px;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
}
.work-card.pink { background: #fcebef; }
.work-card .thumb { border-radius: 28px; overflow: hidden; }
.work-card img { aspect-ratio: 1.5; /* lower = taller cards */ border-radius: 28px; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.work-card:hover { transform: translateY(-4px); }
.work-card:hover img { transform: scale(1.03); }

/* ---------- generic hover for linked cards (playground etc.) ---------- */
a.blk { transition: transform .35s cubic-bezier(.2,.8,.2,1), filter .2s; }
a.blk:hover { transform: translateY(-3px); }

/* ---------- appear-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- tablet ---------- */
@media (max-width: 1099px) {
  .cs-layout > .cell:first-child { display: none; }  /* case-study sidebar */
  .cs-layout { width: 720px !important; }
}

/* ---------- phone ---------- */
@media (max-width: 809px) {
  :root { --nav-h: 68px; }
  .page { gap: 32px; }
  .row:not(.media) { flex-direction: column; }
  .row:not(.media) > .cell { flex: none !important; width: 100%; }
  .hero { padding: 40px 16px 0; }
  .hero::before { border-radius: 30px; height: 100%; inset: 0 12px; }
  .hero-intro { width: calc(100% - 48px); }
  .work-grid { grid-template-columns: 1fr; margin-top: 48px; width: 100%; }
  .work-card { border-radius: 30px; }
  .work-card img { border-radius: 20px; }
  .site-footer { padding: 20px 16px; }
  .site-footer p { font-size: 12px; }

  .t-display   { font-size: 26px; line-height: 32px; }
  .t-display-sm{ font-size: 22px; line-height: 28px; }
  .t-title     { font-size: 20px; line-height: 26px; }
  .t-body      { font-size: 15px; line-height: 21px; }
  .t-stat      { font-size: 18px; line-height: 23px; }
  .t-statlabel { font-size: 16px; line-height: 20px; }
  .t-huge      { font-size: 56px; line-height: 64px; }
  .t-meta, .t-label { font-size: 12px; letter-spacing: 1.6px; }
  .t-eyebrow   { font-size: 15px; }
}

/* ---------- carousel (final presentation) ---------- */
.carousel { position: relative; }
.carousel-track {
  display: flex; align-items: center;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; padding-block: 10px;
}
.carousel-track::-webkit-scrollbar { display: none; }
.slide { scroll-snap-align: center; min-width: 0; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border: 0; border-radius: 40px; cursor: pointer;
  display: grid; place-items: center;
  background: rgba(0,0,0,.2); backdrop-filter: blur(4px);
  transition: background .2s;
}
.carousel-btn:hover { background: rgba(0,0,0,.4); }
.carousel-btn.prev { left: 20px; }
.carousel-btn.next { right: 20px; }

/* pill buttons keep their natural width */
.pill { display: inline-block; align-self: flex-start; color: var(--white); }
.page .pill:hover { filter: brightness(1.1); }

/* =========================================================
   Light theme polish
   ========================================================= */

/* frosted nav that lets the page tint show through */
.site-nav {
  background: var(--nav-bg);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
}
@media (max-width: 1199px) {
  .nav-links { background: var(--bg); box-shadow: var(--shadow); }
}
.nav-link:hover { color: var(--pink); }
.nav-cta { box-shadow: 0 6px 18px -8px rgba(204, 63, 121, .6); }

/* info cards: white on the tinted page, hairline border + soft shadow */
[style*="background:var(--surface)"] {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

/* screenshots & videos: lift them off the page so white UIs don't blend in */
.page img[style*="border-radius:1"],
.page img[style*="border-radius:2"],
.page img[style*="border-radius:3"],
.page video {
  box-shadow: var(--shadow);
  outline: 1px solid var(--media-outline);
  outline-offset: -1px;
}

/* section labels (OVERVIEW, RESEARCH…) become small violet caps */
.t-eyebrow.c-blue,
.t-eyebrow.c-sky {
  font-weight: 700; font-size: 13px; letter-spacing: 1.6px; text-transform: uppercase;
}
/* "✧ About …" eyebrows pick up the brand berry */
.t-eyebrow:not([class*="c-"]):not([style*="color"]) { color: var(--eyebrow); }

/* links inside text */
.page p a, .page li a { color: var(--pink); }
.cs-layout .t-detail a { color: var(--muted); transition: color .2s; }
.cs-layout .t-detail a:hover { color: var(--pink); }

/* back button & chips */
a.blk[style*="background:var(--chip)"] { color: var(--text); transition: background .2s; }
a.blk[style*="background:var(--chip)"]:hover { background: var(--chip-hover) !important; }

/* playground cards */
.page a.blk[style*="#fcebef"], .page a.blk[style*="#efedff"] {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

/* carousel arrows on light */
.carousel-btn { background: rgba(36, 27, 43, .35); }
.carousel-btn:hover { background: rgba(36, 27, 43, .55); }

/* footer */
.site-footer { border-top: 0; }

::selection { background: #f6cfe0; color: var(--text); }

/* see-through PNGs made for the old dark page (detected in site.js) */
.page img.on-dark {
  background: var(--on-dark-bg);
  border-radius: 16px;
  box-shadow: var(--shadow);
  outline: none;
}

/* ---------- light / dark switch ---------- */
.nav-right { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.theme-toggle {
  width: 40px; height: 40px; border-radius: 40px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); cursor: pointer;
  display: grid; place-items: center; transition: background .2s, transform .2s;
}
.theme-toggle:hover { transform: rotate(-12deg); }
.theme-toggle .moon { display: block; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
body, .site-nav, .site-footer, [style*="background:var(--surface)"] { transition: background-color .3s, color .3s; }
@media (max-width: 1199px) { .nav-right { gap: 8px; } }

/* ---------- light mode cards ----------
   One card style everywhere: white, hairline border, soft shadow, with a
   faint lavender wash behind the image. Dark mode keeps the original colors. */
:root:not([data-theme="dark"]) .work-card,
:root:not([data-theme="dark"]) .work-card.pink {
  background: var(--card-tint);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
:root:not([data-theme="dark"]) .work-card:hover {
  box-shadow: 0 2px 4px rgba(60, 25, 70, .06), 0 24px 48px -20px rgba(60, 25, 70, .28);
  border-color: #e3d6ea;
}
:root:not([data-theme="dark"]) .work-card .thumb { background: #f1edfb; }

/* playground cards: white so the text fade underneath matches */
:root:not([data-theme="dark"]) .page a.blk[style*="#fcebef"],
:root:not([data-theme="dark"]) .page a.blk[style*="#efedff"] {
  background: var(--card-tint) !important;
}
/* the text fade at the bottom of playground cards matches the tint */
:root:not([data-theme="dark"]) .page a.blk [style*="#ffffff 49%"] {
  background-image: linear-gradient(rgba(249, 247, 255, 0) 0%, var(--card-tint) 49%) !important;
}

/* ---------- light mode contrast ----------
   Hero card: full-strength lavender → berry gradient (no fade to white at
   the bottom), plus stronger borders/shadows on cards so they read on the
   near-white page. */
:root:not([data-theme="dark"]) .hero::before {
  background:
    radial-gradient(60% 70% at 18% 20%, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 70%),
    linear-gradient(150deg, #e9e2ff 0%, #f3d9ec 48%, #efb3cd 100%);
  box-shadow: inset 0 0 0 1px rgba(204, 63, 121, .10);
}
:root:not([data-theme="dark"]) .work-card,
:root:not([data-theme="dark"]) .work-card.pink,
:root:not([data-theme="dark"]) .page a.blk[style*="#fcebef"],
:root:not([data-theme="dark"]) .page a.blk[style*="#efedff"] {
  border-color: #e2d6ef;
  box-shadow: 0 1px 2px rgba(60, 25, 70, .06), 0 14px 34px -14px rgba(60, 25, 70, .26);
}
:root:not([data-theme="dark"]) .work-card .thumb { background: #ebe4f8; }
:root:not([data-theme="dark"]) [style*="background:var(--surface)"] {
  background: var(--card-tint) !important;
  border-color: #e2d6ef;
}

/* project card caption: headline left, label right, on one line */
.work-card {
  display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 16px; row-gap: 12px;
}
.work-card .thumb { grid-column: 1 / -1; }
.work-card .t-cardtitle { grid-row: 2; grid-column: 1; text-align: left; padding-left: 4px; }
.work-card .t-meta { grid-row: 2; grid-column: 2; text-align: right; white-space: nowrap; padding-right: 4px; color: var(--grey); }
@media (max-width: 809px) {
  .work-card { grid-template-columns: 1fr; }
  .work-card .t-meta, .work-card .t-cardtitle { grid-column: 1; text-align: left; }
  .work-card .t-cardtitle { grid-row: 2; }
  .work-card .t-meta { grid-row: 3; }
}

/* headline stays on one line: shrinks a little on smaller screens, never wraps */
.work-card .t-cardtitle {
  min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-size: clamp(11px, 1.12vw, 18px);
}
.work-card .t-meta { font-size: clamp(10px, 0.85vw, 14px); letter-spacing: .12em; }
@media (max-width: 999px) {
  .work-card { grid-template-columns: 1fr; }
  .work-card .t-cardtitle { grid-row: 2; grid-column: 1; text-align: left; font-size: 16px; white-space: normal; }
  .work-card .t-meta { grid-row: 3; grid-column: 1; font-size: 12px; }
}

/* ---------- "◕ᴗ◕ VIEW ME" cursor on homepage project cards (from the original site) ---------- */
.view-cursor {
  position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none;
  display: flex; align-items: center; gap: 5px;
  padding: 7px 13px; border-radius: 999px;
  background: var(--pink); color: #fff;
  font: 500 13px/1 var(--f-satoshi); letter-spacing: .3px; white-space: nowrap;
  box-shadow: 0 8px 20px -8px rgba(204, 63, 121, .6);
  transition: transform .28s cubic-bezier(.2, .9, .3, 1.2), opacity .2s ease, background-color .2s;
  transform: translate(-50%, -50%) scale(0); opacity: 0;
  will-change: left, top, transform;
}
.view-cursor .face { font-size: 12px; letter-spacing: 0; }
.view-cursor.purple { background: #7b52d9; box-shadow: 0 8px 20px -8px rgba(123, 82, 217, .6); }   /* HeyContent + Jeep */
.view-cursor.show { transform: translate(-50%, -50%) scale(1); opacity: 1; }
@media (hover: hover) and (pointer: fine) and (min-width: 1100px) {
  .work-card { cursor: none; }
}

/* ---------- custom cursor: pink dot + light ✦ sparkle trail (desktop only) ---------- */
.has-cursor, .has-cursor * { cursor: none !important; }
.cursor-dot {
  position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none;
  width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%;
  background: var(--pink); border: 1.5px solid var(--pink);
  transition: width .2s ease, height .2s ease, margin .2s ease, background-color .2s ease, opacity .2s ease;
  will-change: transform;
}
.cursor-dot.on-link { width: 22px; height: 22px; margin: -11px 0 0 -11px; background: transparent; }
.cursor-dot.hidden { opacity: 0; }
.cursor-spark {
  position: fixed; left: 0; top: 0; z-index: 9998; pointer-events: none;
  font-size: 10px; line-height: 1; opacity: .7;
  transition: transform .6s ease-out, opacity .6s ease-out;
  will-change: transform, opacity;
}
/* popups sit on the browser's top layer (above the custom cursor), so use the normal cursor there */
.has-cursor dialog[open], .has-cursor dialog[open] * { cursor: auto !important; }
.has-cursor dialog[open] a, .has-cursor dialog[open] button, .has-cursor dialog[open] .uv-gallery img { cursor: pointer !important; }

/* =========================================================
   Homepage polish (light-mode review)
   ========================================================= */

/* 3. project labels: readable size and a darker grey */
.work-card .t-meta { font-size: clamp(12px, 0.9vw, 13px); letter-spacing: .1em; color: var(--muted); }
@media (max-width: 999px) { .work-card .t-meta { font-size: 12px; } }

/* 4. light mode: white cards so page, card and image read as three clear layers */
:root:not([data-theme="dark"]) .work-card,
:root:not([data-theme="dark"]) .work-card.pink { background: var(--surface); }
:root[data-theme="dark"] .work-card .t-meta { color: #6f6878; }   /* dark mode cards stay light, so a darker grey */
@media (max-width: 1159px) {
  .work-card { grid-template-columns: 1fr; }
  .work-card .t-cardtitle { grid-row: 2; grid-column: 1; text-align: left; font-size: 16px; white-space: normal; }
  .work-card .t-meta { grid-row: 3; grid-column: 1; text-align: left; font-size: 12px; }
}

/* hero card ends about a third of the way into the first row of projects,
   so the top row looks like it rises out of it (height set in site.js) */
@media (min-width: 810px) {
  .hero::before { height: var(--hero-bg-h, 797px); }
}

/* option 4: no bottom edge — the hero card fades softly into the page around the first row */
@media (min-width: 810px) {
  .hero::before {
    border-radius: 100px 100px 0 0;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 40%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 0%, #000 40%, transparent 100%);
  }
}

/* more breathing room below each project's title */
.work-card { padding-bottom: 26px; row-gap: 14px; }
@media (max-width: 1159px) { .work-card { row-gap: 8px; } .work-card .t-meta { margin-top: 2px; } }

/* ---------- headline line: a tangle under "complexity" that becomes a clean underline under "clarity" ---------- */
.hero-line { position: relative; }
.hero-line .line-svg { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.hero-line .line-svg path {
  fill: none; stroke: #e48ab0; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: .85;
}
.hero-intro .soft { font-weight: 700; }   /* "complexity" and "clarity" stand out */

/* ---------- hero: big serif statement + "Currently / Previously" ---------- */
.hero-intro { width: min(1080px, 80vw - 120px); gap: 0; }
.hero-statement {
  /* your original headline font: Inter Display (Inter at display size) */
  margin: 0; font-family: var(--f-display); font-weight: 500; font-variation-settings: "opsz" 32;
  font-size: clamp(30px, 3.1vw, 44px); line-height: 1.15; letter-spacing: -0.02em;
  color: var(--ink); text-wrap: balance;
}
.hero-statement .soft { font-style: italic; font-weight: 600; }
.hero-facts { display: grid; grid-template-columns: var(--facts-col, 320px) minmax(0, 1fr); column-gap: 0; row-gap: 24px; margin-top: 32px; }
.hero-facts .hero-fact { white-space: nowrap; display: inline-block; }   /* measured in site.js */
.hero-label { margin: 0 0 8px; font: 400 15px/1.4 var(--f-inter); color: #8a8193; }
.hero-fact { margin: 0; font: 400 16px/1.6 var(--f-inter); color: #4a4152; }
@media (max-width: 809px) {
  .hero-intro { width: calc(100% - 40px); }
  .hero-statement { font-size: 28px; line-height: 1.18; }
  .hero-facts { grid-template-columns: 1fr; gap: 20px; margin-top: 28px; }
  .hero-label { font-size: 14px; } .hero-fact { font-size: 15px; }
}

/* hero text sits centered between the top of the card and the first row of projects */
.hero { padding-top: 96px; }
.work-grid { margin-top: 96px; }
@media (max-width: 809px) { .hero { padding-top: 44px; } .work-grid { margin-top: 44px; } }

/* headline: the sentence is a darker soft grey so "complexity" and "clarity" stand out in full ink */
.hero-statement { color: #4e4556; }
.hero-statement .soft { color: var(--ink); font-weight: 600; }

/* ---------- page load: a soft, quick entrance (no big animation) ---------- */
@keyframes load-fade { from { opacity: 0; } }
@keyframes load-rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes load-drop { from { opacity: 0; transform: translateY(-8px); } }
@keyframes load-card { from { opacity: 0; transform: scale(.98); } }
.page { animation: load-fade .5s ease-out both; }
.site-nav { animation: load-drop .6s cubic-bezier(.2, .8, .2, 1) both; }
.hero::before { animation: load-card .9s cubic-bezier(.2, .8, .2, 1) both; transform-origin: 50% 0; }
.hero-statement { animation: load-rise .8s cubic-bezier(.2, .8, .2, 1) .12s both; }
.hero-facts > div { animation: load-rise .8s cubic-bezier(.2, .8, .2, 1) .3s both; }
.hero-facts > div + div { animation-delay: .38s; }
/* project cards fade up one after another */
.work-card.reveal { transition-duration: .8s; }
.work-card:nth-child(2).reveal { transition-delay: .08s; }
.work-card:nth-child(3).reveal { transition-delay: .16s; }
.work-card:nth-child(4).reveal { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .page, .site-nav, .hero::before, .hero-statement, .hero-facts > div { animation: none; }
}

/* ---------- case study layout: content centered on the page, sidebar on the left ----------
   (turned on per page with <body class="cs-centered">) */
.cs-centered .cs-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 880px) minmax(0, 1fr);
  column-gap: 40px; width: min(1310px, 100%) !important;
}
.cs-centered .cs-layout > .cell:first-child { grid-column: 1; justify-self: start; width: 183px; }
.cs-centered .cs-layout > .cell:last-child { grid-column: 2; }
/* everything inside the content column shares the same left and right edges */
.cs-centered .cs-layout > .cell:last-child [style*="align-items:center"] > :not([style*="width:"]):not(.row) { align-self: stretch; }

/* case studies without a sidebar (WellNest): every section uses the same centered 800px column */
.cs-flat .page > * { width: min(880px, 100%) !important; margin-inline: auto !important; }
.cs-flat .page > * [style*="width:"] { max-width: 100%; }
.cs-flat .page [style*="align-items:center"] > :not([style*="width:"]):not(.row) { align-self: stretch; }

/* case study Back button: sized to its content with even padding all around */
.cs-layout > .cell:first-child a.blk[href="/"] {
  width: auto !important; align-self: flex-start;
  padding: 6px 14px 6px 10px !important;   /* the arrow icon has ~4px of built-in space on its left */
}
.cs-layout > .cell:first-child a.blk[href="/"] .row { gap: 6px !important; }
.cs-layout > .cell:first-child a.blk[href="/"] .cell { flex: none !important; }
.cs-layout > .cell:first-child a.blk[href="/"] .t-tiny { line-height: 20px; }
/* case study sidebar: section links left-aligned under the Back button */
.cs-layout > .cell:first-child [style*="align-items:center"] { align-items: flex-start !important; }
.cs-layout > .cell:first-child p { text-align: left; }

/* ---------- case study sidebar lines up with the nav logo (80px from the edge) ----------
   sidebar 160px + 40px gap on each side of the 880px content column; hidden when there's no room */
.cs-centered .cs-layout {
  width: 100% !important;
  grid-template-columns: minmax(0, 1fr) min(880px, calc(100% - 2 * (80px - var(--gutter) + 160px + 40px))) minmax(0, 1fr) !important;
  column-gap: 0 !important;
}
.cs-centered .cs-layout > .cell:first-child { margin-left: calc(80px - var(--gutter)); width: 160px; }
@media (max-width: 1159px) {
  .cs-centered .cs-layout > .cell:first-child { display: none; }
  .cs-centered .cs-layout { grid-template-columns: minmax(0, 1fr) min(880px, 100%) minmax(0, 1fr) !important; }
  .cs-centered .cs-layout > .cell:last-child { grid-column: 2; }
}

/* ---------- page edge: nav + case study sidebar sit closer to the screen edge ---------- */
:root { --edge: 24px; }                       /* distance from the screen edge on desktop */
@media (max-width: 1199px) { :root { --edge: 16px; } }
.site-nav { padding-left: var(--edge); padding-right: var(--edge); }
.cs-centered .cs-layout {
  grid-template-columns: minmax(0, 1fr) min(880px, calc(100% - 2 * (var(--edge) - var(--gutter) + 160px + 40px))) minmax(0, 1fr) !important;
}
.cs-centered .cs-layout > .cell:first-child { margin-left: calc(var(--edge) - var(--gutter)); }
@media (max-width: 1159px) {   /* no sidebar: content centered, up to 880px */
  .cs-centered .cs-layout { grid-template-columns: minmax(0, 1fr) min(880px, 100%) minmax(0, 1fr) !important; }
}

/* ---------- case study summary cards (Product / Details / Problem…) ---------- */
/* the tall right-hand card stretches to match the two stacked cards beside it */
.cs-layout .row > .cell > [style*="background:var(--surface)"] { height: 100%; display: flex; flex-direction: column; justify-content: center; padding-top: 22px !important; padding-bottom: 22px !important; }
.cs-layout .row > .cell > [style*="background:var(--surface)"] > div { flex: 1; justify-content: space-evenly; gap: 18px !important; align-items: stretch !important; }
/* even inner padding and spacing in every card section */
.cs-layout [style*="background:var(--surface)"] [style*="padding:0 15px"] { padding: 0 22px !important; gap: 10px !important; }
/* dividers run the full width of the card text */
.cs-layout [style*="background:var(--surface)"] [style*="background:var(--line);height:2px"] { width: auto !important; margin: 0 22px !important; height: 1px !important; }
/* cards whose text block had a fixed narrow width (HeyContent): use the full card width, even side padding */
.cs-layout .row > .cell > [style*="padding:19px 53px"] { padding-left: 22px !important; padding-right: 22px !important; }
.cs-layout [style*="background:var(--surface)"] > [style*="width:319px"] { width: auto !important; }
/* drop stray divider lines left at the very bottom of a card */
.cs-layout [style*="background:var(--surface)"] [style*="background:var(--line);height:2px"]:last-child,
.cs-layout [style*="background:var(--surface)"] [style*="background:var(--line);height:2px"]:has(+ [style*="background:var(--line);height:2px"]:last-child) { display: none; }

/* Details card: value first (bold), label underneath — e.g. "Lead Product Designer" / "My Role" */
.cs-layout [style*="background:var(--surface)"] div:has(> h5.t-meta.c-muted + p.t-detail) { flex-direction: column-reverse !important; gap: 2px !important; }
.cs-layout [style*="background:var(--surface)"] div:has(> h5.t-meta.c-muted + p.t-detail) > p.t-detail { font-weight: 600; color: var(--text); }
/* the small labels under each value (My Role, Surface, Timeline, Team) are not bold */
.cs-layout [style*="background:var(--surface)"] div:has(> h5.t-meta.c-muted + p.t-detail) > h5.t-meta { font-weight: 400; }
/* same "value first, label underneath" style on WellNest's role + timeline */
.cs-flat div:has(> h5.t-meta + p.t-btn), .cs-flat div:has(> h5.t-meta + a > p.t-btn) { flex-direction: column-reverse !important; gap: 2px !important; }
.cs-flat div:has(> h5.t-meta + p.t-btn) > h5.t-meta, .cs-flat div:has(> h5.t-meta + a > p.t-btn) > h5.t-meta { font-weight: 400; color: var(--muted); }
.cs-flat div:has(> h5.t-meta + p.t-btn) > p.t-btn, .cs-flat div:has(> h5.t-meta + a > p.t-btn) p.t-btn { font: 600 15px/24px var(--f-inter); letter-spacing: -.3px; color: var(--text); }

/* case study cards: lighter shadow */
.cs-layout [style*="background:var(--surface)"],
.cs-flat .page [style*="background:var(--surface)"] {
  box-shadow: 0 1px 2px rgba(60, 25, 70, .03), 0 6px 18px -12px rgba(60, 25, 70, .12) !important;
}
/* case study cards: lighter border */
:root:not([data-theme="dark"]) .cs-layout [style*="background:var(--surface)"],
:root:not([data-theme="dark"]) .cs-flat .page [style*="background:var(--surface)"] { border-color: #ede6f3 !important; }
/* divider after the summary cards: same space above it as below it (84px) */
.cs-layout > .cell:last-child > div > [style="background:var(--line);height:1px"] { margin-top: 54px; }

/* case study videos: never cropped — each keeps its own real shape */
.page video { object-fit: contain; }
.page video:not(.abs *):not(.carousel *) { aspect-ratio: auto !important; height: auto; }

/* case study sub-titles ("✧ About Orava", "✧ My Role"…): dark, semibold, same size as the section labels */
.cs-centered .t-eyebrow:not(.c-blue):not(.c-sky):not([style*="color"]),
.cs-flat .t-eyebrow:not(.c-blue):not(.c-sky):not([style*="color"]) {
  color: var(--text); font-size: 15px; font-weight: 600; letter-spacing: -.1px;
}
/* sidebar links land with some breathing room below the nav */
.cs-layout [id], .cs-flat .page [id] { scroll-margin-top: 120px; }

/* sidebar: the section you're reading gets a pink dot and pink text */
.toc-link { position: relative; transition: color .25s ease; }
.toc-link::before {
  content: ""; position: absolute; left: -14px; top: 50%; width: 6px; height: 6px; margin-top: -3px;
  border-radius: 50%; background: var(--pink); opacity: 0; transform: scale(.4);
  transition: opacity .25s ease, transform .25s ease;
}
.cs-layout .t-detail a.toc-link.is-active { color: var(--pink); }
.toc-link.is-active::before { opacity: 1; transform: scale(1); }

/* ---------- prototype slides: a video playing inside a computer screen ---------- */
.proto-card {
  display: flex; flex-direction: column; gap: 28px; align-items: center;
  padding: 40px 40px 44px; border-radius: 30px;
}
.proto-head { align-self: stretch; display: flex; flex-direction: column; gap: 6px; }
.device { width: min(100%, 640px); }
.device-screen {
  background: #141118; border-radius: 18px; padding: 12px 12px 26px;
  box-shadow: 0 2px 4px rgba(20, 10, 40, .12), 0 24px 50px -22px rgba(20, 10, 40, .45);
  position: relative;
}
.device-screen::after {           /* tiny camera dot on the bottom bezel */
  content: ""; position: absolute; left: 50%; bottom: 10px; width: 6px; height: 6px; margin-left: -3px;
  border-radius: 50%; background: #2b2632;
}
.device-screen video { display: block; width: 100%; height: auto; border-radius: 6px; object-fit: contain; background: #000; }
.device-neck {
  width: 16%; height: 54px; margin: 0 auto;
  background: linear-gradient(#bdb7c7, #d6d1de);
  clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%);
}
.device-base { width: 34%; height: 10px; margin: 0 auto; border-radius: 6px 6px 3px 3px; background: #cfc9d8; box-shadow: 0 6px 12px -6px rgba(20, 10, 40, .35); }
@media (max-width: 809px) {
  .proto-card { padding: 24px 18px 28px; gap: 20px; border-radius: 22px; }
  .device-screen { border-radius: 12px; padding: 7px 7px 16px; }
  .device-screen::after { bottom: 6px; width: 4px; height: 4px; margin-left: -2px; }
  .device-neck { height: 30px; }
}
/* bigger computer mockup: fills nearly the whole slide */
.device { width: 100%; max-width: 800px; }
.proto-card { padding: 36px 28px 40px; }
@media (max-width: 809px) { .proto-card { padding: 22px 12px 26px; } }
/* carousel arrows sit just outside the slide on wide screens so they don't cover the mockup */
@media (min-width: 1160px) {
  .proto-card ~ .carousel-btn, .carousel:has(.proto-card) .carousel-btn.prev { left: -58px; }
  .carousel:has(.proto-card) .carousel-btn.next { right: -58px; }
  .carousel:has(.proto-card) .carousel-btn { background: var(--chip); }
  .carousel:has(.proto-card) .carousel-btn svg path { stroke: var(--text); }
  .carousel:has(.proto-card) .carousel-btn:hover { background: var(--pink); }
  .carousel:has(.proto-card) .carousel-btn:hover svg path { stroke: #fff; }
}

/* ---------- project summary cards (Product / Details / Problem·Solution·Result) ---------- */
.cs-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: stretch; }
.sum-col { display: flex; flex-direction: column; gap: 10px; }
.sum-col .sum-card:last-child { flex: 1; }
.sum-card {
  padding: 24px; border-radius: 20px; background: var(--card-tint);
  border: 1px solid #ede6f3;
  box-shadow: 0 1px 2px rgba(60, 25, 70, .03), 0 6px 18px -12px rgba(60, 25, 70, .12);
}
:root[data-theme="dark"] .sum-card { background: var(--surface); border-color: var(--line); }
.sum-stack { display: flex; flex-direction: column; justify-content: space-between; }
.sum-stack .sum-sec + .sum-sec { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 18px; }
.sum-sec { display: flex; flex-direction: column; }
.sum-label { margin: 0 0 6px; font: 700 13px/1.3 var(--f-inter); letter-spacing: 2px; text-transform: capitalize; color: var(--text); }
.sum-title { margin: 0 0 10px; font: italic 500 22px/1.2 var(--f-display); font-variation-settings: "opsz" 32; color: var(--soft); }
.sum-text { margin: 0; font: 400 15px/1.6 var(--f-inter); letter-spacing: -.2px; color: var(--muted); }
.sum-rows { display: flex; flex-direction: column; }
.sum-row { padding: 12px 0; border-top: 1px solid var(--line); }
.sum-row:first-child { border-top: 0; padding-top: 4px; }
.sum-value { margin: 0; font: 600 15px/1.45 var(--f-inter); letter-spacing: -.2px; color: var(--text); }
.sum-key { margin: 2px 0 0; font: 400 13px/1.3 var(--f-inter); letter-spacing: 2px; color: var(--muted); }
@media (max-width: 809px) {
  .cs-summary { grid-template-columns: 1fr; }
  .sum-card { padding: 20px; }
  .sum-title { font-size: 19px; }
}
/* tall card: share the extra height evenly so each divider sits centered between sections */
.sum-stack { justify-content: flex-start; }
.sum-stack .sum-sec { flex: 1; justify-content: center; padding: 16px 0; }
.sum-stack .sum-sec:first-child { padding-top: 0; }
.sum-stack .sum-sec:last-child { padding-bottom: 0; }
.sum-stack .sum-sec + .sum-sec { margin-top: 0; padding-top: 16px; }

/* ---- Impact / Experience Goals card (same card styling as the summary cards) ---- */
.sum-impact .sum-label { margin-bottom: 14px; }
.sum-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.sum-stat { display: flex; flex-direction: column; gap: 4px; padding: 0 20px; border-left: 1px solid var(--line); }
.sum-stat:first-child { padding-left: 0; border-left: 0; }
.sum-stat:last-child { padding-right: 0; }
.sum-num { margin: 0; font: italic 500 22px/1.2 var(--f-display); font-variation-settings: "opsz" 32; color: var(--text); }
.sum-stat-title { margin: 0 0 2px; font: 600 15px/1.45 var(--f-inter); letter-spacing: -.2px; color: var(--soft); }
.sum-stat .sum-text { font-size: 14px; line-height: 1.5; }

/* equal padding on all four sides: stretched cards spread their content instead of leaving empty space at the bottom */
.sum-col .sum-card:last-child { display: flex; flex-direction: column; }
.sum-col .sum-card:last-child .sum-rows { flex: 1; justify-content: space-between; }
.sum-card > :last-child, .sum-sec > :last-child, .sum-stat > :last-child, .sum-row > :last-child { margin-bottom: 0; }

@media (max-width: 809px) {
  .sum-stats { grid-template-columns: 1fr; }
  .sum-stat, .sum-stat:first-child, .sum-stat:last-child { padding: 14px 0; border-left: 0; border-top: 1px solid var(--line); }
  .sum-stat:first-child { padding-top: 0; border-top: 0; }
  .sum-stat:last-child { padding-bottom: 0; }
}
.sum-row:last-child { padding-bottom: 0; }
/* tall Problem/Solution/Result card: first section hugs the top, last hugs the bottom, so the padding stays even */
.sum-stack .sum-sec:first-child { justify-content: flex-start; }
.sum-stack .sum-sec { justify-content: flex-start; }
/* sections keep their natural height (no stretching to fill the card) */
.sum-stack .sum-sec { flex: none; }
/* section labels (OVERVIEW, RESEARCH…) in brand pink */
.t-eyebrow.c-blue { color: var(--pink); }
/* prototype slides: every card in a carousel is as tall as the tallest one; the device sits centered in the space under the title */
.carousel-track:has(.proto-card) { align-items: stretch; }
.slide:has(> .proto-card) { display: flex; }
.slide > .proto-card { flex: 1; }
.proto-card .device { margin-block: auto; }
/* Jeep x Raízes co-brand mark: transparent, centered in the content column; turns light in dark mode */
.cobrand-logo { display: block; width: min(300px, 70%); height: auto; margin: 0 auto; }
:root[data-theme="dark"] .cobrand-logo { filter: invert(1); }
.page img.cobrand-logo { background: none; box-shadow: none; outline: none; border-radius: 0; }

/* ---------- case-study building blocks (Jeep): feature cards + media/text rows ---------- */
.fx-sub { display: flex; flex-direction: column; gap: 20px; padding-top: 40px; }
.cs-centered [id] > .fx-sub:first-of-type, #conceptecosystem-1 > .fx-sub { padding-top: 0; }
.fx-stack { display: flex; flex-direction: column; gap: 48px; margin-top: 12px; }
.feat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 14px; }
.feat { display: flex; flex-direction: column; gap: 16px; }
.feat > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 20px; }
.feat-wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 32px; align-items: center; }
.feat-wide > img { aspect-ratio: 2048 / 897; }
.fx-row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 36px; align-items: center; }
.fx-row.flip { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.fx-text { display: flex; flex-direction: column; gap: 10px; }
.fx-text .t-title { margin-bottom: 6px; }
.fx-text .t-small + .t-small { margin-top: 6px; }
.fx-media img, .fx-media video, .fx-hero { display: block; width: 100%; height: auto; border-radius: 20px; }
.fx-pair { display: flex; flex-direction: column; gap: 10px; max-width: 420px; margin-left: auto; }
.fx-pair .fx-strip { border-radius: 10px; }
.fx-compose { position: relative; padding-bottom: 16%; }
.fx-compose > img:first-child { width: 84%; }
.fx-compose .fx-overlay { position: absolute; right: 0; bottom: 0; width: 38%; box-shadow: 0 18px 40px -16px rgba(20, 10, 40, .45); }
.fx-narrow { max-width: 420px; margin-left: auto; }
.fx-chip { padding: 14px 20px; background: var(--chip); border-radius: 15px; }
@media (max-width: 809px) {
  .feat-grid, .feat-wide, .fx-row, .fx-row.flip { grid-template-columns: 1fr; gap: 18px; }
  .feat-grid { gap: 36px; }
  .fx-row.flip .fx-media { order: -1; }      /* media always above its text on phones */
  .fx-pair, .fx-narrow { max-width: none; margin-left: 0; }
  .fx-stack { gap: 32px; }
}
/* three equal columns with even gutters (Jeep: The Shift Toward 2050) */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
.t-eyebrow + .trio { margin-top: 10px; }
@media (max-width: 809px) { .trio { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 809px) { .trio > [style*="span 2"] { grid-column: auto !important; } }
/* first feature card: image matches the cards below (half width, 16:9); text lines up with the right-hand column */
.feat-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.feat-wide > img { aspect-ratio: 16 / 9; object-fit: contain; }
.feat-wide > .fx-text { padding-left: 0; }
@media (max-width: 809px) { .feat-wide { grid-template-columns: 1fr; gap: 16px; } }
/* first feature card: image runs wider (to ~70%), text in the remaining column */
.feat-wide { grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); gap: 28px; }
.feat-wide > img { aspect-ratio: 2.85; object-fit: contain; }
@media (max-width: 809px) { .feat-wide { grid-template-columns: 1fr; gap: 16px; } .feat-wide > img { aspect-ratio: 2.28; } }
/* Productivity row: top aligned; the 4-ring strip sits at the bottom of the text column, level with the image's bottom edge */
.fx-row.fx-top { align-items: stretch; }
.fx-top > .fx-text { justify-content: flex-start; }
.fx-top > .fx-text .fx-strip { display: block; width: 100%; height: auto; border-radius: 10px; margin-top: auto; }
@media (max-width: 809px) { .fx-top > .fx-text .fx-strip { margin-top: 10px; } }
/* Productivity row: image column sized to the image (no empty gutter); ring strip right under the text */
.fx-row.flip.fx-top { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 36px; align-items: start; }
.fx-top .fx-pair { max-width: none; margin-left: 0; }
.fx-top > .fx-text .fx-strip { margin-top: 14px; }
@media (max-width: 809px) { .fx-row.flip.fx-top { grid-template-columns: 1fr; gap: 18px; } }
/* text-first rows (Productivity, Charge Pad, Beanalyzer) share one grid: text | 420px media */
.fx-row.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 36px; }
.fx-row.flip .fx-narrow { max-width: none; margin-left: 0; }
@media (max-width: 809px) { .fx-row.flip { grid-template-columns: 1fr; gap: 18px; } }
.fx-row.flip { align-items: start; }   /* text-first rows: text starts at the top of the image */
.fx-hero + .fx-row { margin-top: 12px; }   /* same 32px under every large image */
.feat-grid > .feat-wide { margin-bottom: -12px; }   /* 32px under the wide Ring + Lens card (grid row gap is 44) */
@media (max-width: 809px) { .feat-grid > .feat-wide { margin-bottom: 0; } }
/* phone: content above these two headings stacks tighter, so add the missing 14px back (keeps the 60px rhythm) */
@media (max-width: 809px) { .sp-phone-fix { margin-top: calc(var(--mt) + 14px) !important; } }
.fx-stack { gap: 32px; }   /* rows match the 32px under each large image */
.fx-row { align-items: start; }   /* all media/text rows: text starts at the top of the image */
/* Jeep final presentation: full content width, every slide the same height, photos centered */
.pres-wrap { width: 100%; }
.pres-carousel .carousel-track { align-items: stretch; }
.pres-carousel .slide { display: flex; }
.pres-carousel .slide > div { flex: 1; display: flex; flex-direction: column; justify-content: center; }
/* Jeep final presentation: poster full width, then a photo grid with level bottoms */
.pres-grid { width: 100%; display: flex; flex-direction: column; gap: 14px; }
.pres-grid img { display: block; width: 100%; border-radius: 20px; background: none !important; box-shadow: var(--shadow); outline: none; }
.pres-poster { aspect-ratio: 2048 / 1707; }
.pres-photos { display: grid; grid-template-columns: 381fr 457fr; gap: 14px; }
.pres-stack { display: flex; flex-direction: column; gap: 14px; }
.pres-stack img { aspect-ratio: 16 / 10; object-fit: cover; }
.pres-tall { height: 100%; object-fit: cover; }
@media (max-width: 809px) {
  .pres-photos { grid-template-columns: 1fr; }
  .pres-tall { height: auto; aspect-ratio: 1904 / 2048; }
}

/* ---------- WellNest (shared case-study shell, class-based spacing) ---------- */
/* rhythm: 60px between top-level blocks and sections; 60px between ✧ sub-sections; 20px from a section label to its first sub-section */
.ws-col { display: flex; flex-direction: column; gap: 60px; }
.ws-sec { display: flex; flex-direction: column; gap: 60px; }
.ws-sec > .t-eyebrow.c-blue + * { margin-top: -40px; }
.ws-sub { display: flex; flex-direction: column; gap: 24px; }
.ws-head { display: flex; flex-direction: column; gap: 10px; }
.ws-sub > img, .ws-sub > video, .ws-sub .trio img, .journey img, .ba img { display: block; width: 100%; height: auto; border-radius: 20px; }
.ws-sub > video { border-radius: 24px; }
.ws-plain { border-radius: 0 !important; box-shadow: none !important; outline: none !important; }
.trio.stats .t-huge { margin-bottom: 8px; }
/* label / description lists (Key Insights, Design Decisions…) */
.kv { display: flex; flex-direction: column; }
.kv > .t-small { margin-bottom: 8px; }
.kv-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 24px; padding: 12px 0; border-top: 1px solid var(--line); }
/* user journey: six steps in a row */
.journey { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.journey figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.journey span, .journey figcaption { font: 500 14px/1.3 var(--f-inter); color: var(--text); }
.journey span { color: var(--muted); }
/* before / after pairs */
.ba { display: flex; flex-direction: column; gap: 16px; padding-top: 16px; }
.ba-title { margin: 0; font: 600 17px/1.4 var(--f-inter); color: var(--text); }
.ba-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ba-pair figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.ba-pair figcaption { font: 600 13px/1.3 var(--f-inter); letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); text-align: center; }
.ba-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ba-notes .t-small + .t-small { margin-top: 6px; }
/* prototype slides with a video (no device frame: the Vision Pro UI floats in the room) */
.proto-media { width: 100%; margin-block: auto; }
.proto-media video { display: block; width: 100%; height: auto; border-radius: 20px; box-shadow: 0 18px 40px -20px rgba(20, 10, 40, .45); }
@media (max-width: 809px) {
  .ws-col, .ws-sec { gap: 48px; }
  .ws-sec > .t-eyebrow.c-blue + * { margin-top: -28px; }
  .kv-row { grid-template-columns: 1fr; gap: 4px; }
  .journey { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 20px; }
  .ba-pair, .ba-notes { grid-template-columns: 1fr; }
  .ba-notes { gap: 16px; }
}
.ws-sub p, .ws-sub h2, .ws-sub h6, .kv p, .ba p { margin: 0; }
.kv-row { align-items: baseline; }
.ws-sub > .t-body + .t-body { margin-top: -8px; }   /* consecutive paragraphs: 16px apart */
.kv-row:last-child { padding-bottom: 0; }
@media (max-width: 809px) { .ws-col, .ws-sec { gap: 60px; } .ws-sec > .t-eyebrow.c-blue + * { margin-top: -40px; } }
.ws-sub .trio:not(.stats) { gap: 14px; }   /* image rows (pillars, competitors) use the 14px image gap */
/* label/description lists: no lines between rows, one line under the last row */
.kv-row { border-top: 0; padding: 10px 0; }
.kv-row:last-child { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
#outcome_d .kv-row:last-child { border-bottom: 0; padding-bottom: 0; }   /* WellNest Expected Impact: no closing line */
.ws-sub > .kv:last-child .kv-row:last-child { border-bottom: 0; padding-bottom: 0; }   /* no closing line when a list ends its sub-section */

/* ---------- phone: hero card like desktop (fades away at the bottom), cards as wide as it, less space under the nav ---------- */
@media (max-width: 809px) {
  .page:has(> .hero) { padding-top: calc(var(--nav-h) + 12px); }
  .hero { padding: 32px 12px 0; }                       /* 12px = the card's inset, so project cards match its width */
  .hero::before {
    height: var(--hero-bg-h, 100%);
    border-radius: 30px 30px 0 0;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
  }
}
@media (max-width: 809px) {
  .hero-facts .hero-fact { white-space: normal; }       /* narrow phones: let the long line wrap instead of running past the card */
}

/* ---------- case studies: shorter copy on phones ----------
   Long paragraphs hold both versions: .cs-long (desktop/tablet) and .cs-short (phones). */
.cs-short { display: none; }
@media (max-width: 809px) {
  .cs-long { display: none; }
  .cs-short { display: inline; }
}

/* phones: a stacked text row (e.g. "15 Interviews" + its description) keeps its label close to the text,
   instead of the 50px side-by-side gap from desktop. Rows with images keep their spacing. */
@media (max-width: 809px) {
  .row:not(.media):not(:has(img, video, picture, svg, canvas)) { gap: 6px !important; }
}
/* phones: more air between each label + description pair (the pairs themselves stay tight) */
@media (max-width: 809px) {
  /* every label + description list gets the same spacing between pairs, whatever gap its desktop layout uses */
  div[style*="flex-direction:column"]:has(> .row:not(.media) + .row:not(.media)):not(:has(img, video, picture, canvas)) { gap: 32px !important; }
}

/* ---------- case studies: a new category (pink label) gets clearly more room than a new section inside it ----------
   sections stay ~60px apart; categories get ~120px (phones ~96px). Padding, so it stacks with the existing layout spacing. */
.t-eyebrow.c-blue { padding-top: 60px; }
@media (max-width: 809px) { .t-eyebrow.c-blue { padding-top: 36px; } }
/* WellNest's REFLECTION sat 50px lower than the other categories; bring it in line */
#reflection_d > .t-eyebrow.c-blue { margin-top: -50px; }
@media (max-width: 809px) { #reflection_d > .t-eyebrow.c-blue { margin-top: -36px; } }
/* the first category sits right under the divider: same space below the line as above it (no extra category padding) */
.t-eyebrow.c-blue.cat-first { padding-top: 0; margin-top: -8px !important; }   /* -8px: optical, the small caps sit low in their tall line box */

/* ---------- case studies on phones/tablets: "current section" pill + jump-to-section sheet ---------- */
.sec-pill, .sec-sheet { display: none; }
@media (max-width: 1099px) {
  .sec-pill {
    display: flex; align-items: center; gap: 10px;
    position: fixed; z-index: 80; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom));
    max-width: calc(100vw - 32px); padding: 11px 16px 13px 14px; border: 0; border-radius: 999px; cursor: pointer;
    background: rgba(36, 27, 43, .92); color: #fff;
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 12px 30px -10px rgba(36, 27, 43, .55);
    font: 600 14px/1 var(--f-inter); white-space: nowrap; overflow: hidden;
    transform: translate(-50%, 140%); opacity: 0;
    transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .3s ease;
  }
  .sec-pill.show { transform: translate(-50%, 0); opacity: 1; }
  .sec-pill-icon { display: grid; gap: 3px; flex: none; }
  .sec-pill-icon i { display: block; width: 14px; height: 2px; border-radius: 2px; background: currentColor; }
  .sec-pill-icon i:nth-child(2) { width: 10px; }
  .sec-pill-name { overflow: hidden; text-overflow: ellipsis; }
  .sec-pill-count { flex: none; font-weight: 500; opacity: .6; font-size: 12.5px; }
  .sec-pill-bar { position: absolute; left: 18px; right: 18px; bottom: 5px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .18); }
  .sec-pill-bar i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); border-radius: inherit; background: #f2a9c8; }
  :root[data-theme="dark"] .sec-pill { background: rgba(255, 255, 255, .92); color: #241b2b; }
  :root[data-theme="dark"] .sec-pill-bar { background: rgba(36, 27, 43, .15); }
  :root[data-theme="dark"] .sec-pill-bar i { background: var(--pink); }
  .nav-open ~ .sec-pill, body:has(.nav-open) .sec-pill { opacity: 0; pointer-events: none; }

  .sec-sheet[open] {
    display: block; position: fixed; inset: auto 0 0 0; margin: 0; width: 100%; max-width: none;
    max-height: 80vh; overflow-y: auto; border: 0; padding: 10px 16px calc(20px + env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0; background: var(--bg, #fdfbfe); color: var(--text);
    box-shadow: 0 -20px 50px -20px rgba(36, 27, 43, .45);
    animation: sec-up .35s cubic-bezier(.2, .8, .2, 1);
  }
  .sec-sheet::backdrop { background: rgba(20, 12, 28, .35); backdrop-filter: blur(2px); }
  .sec-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 4px 8px; }
  .sec-sheet-head::before { content: ""; position: absolute; left: 50%; top: 8px; width: 36px; height: 4px; border-radius: 4px; background: var(--line); transform: translateX(-50%); }
  .sec-sheet-head p { margin: 8px 0 0; font: 700 12px/1 var(--f-pt); letter-spacing: 1.6px; text-transform: uppercase; color: var(--pink); }
  .sec-sheet-close { margin-top: 6px; width: 34px; height: 34px; border: 0; border-radius: 50%; cursor: pointer; background: var(--line); color: var(--text); font-size: 14px; }
  .sec-sheet ol { list-style: none; margin: 6px 0 0; padding: 0; }
  .sec-sheet li button {
    display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 12px; border: 0; border-radius: 14px;
    background: none; color: inherit; text-align: left; cursor: pointer; font: 500 16px/1.25 var(--f-inter);
  }
  .sec-sheet li .n { font: 600 12px/1 var(--f-inter); opacity: .45; font-variant-numeric: tabular-nums; }
  .sec-sheet li.is-active button { background: rgba(204, 63, 121, .1); color: var(--pink); font-weight: 600; }
  .sec-sheet li.is-active .n { opacity: 1; }
  @keyframes sec-up { from { transform: translateY(100%); } }
}
@media (prefers-reduced-motion: reduce) { .sec-pill { transition: opacity .2s; } .sec-sheet[open] { animation: none; } }

/* Jeep: Challenge + Target Region side by side on phones (short copy) */
@media (max-width: 809px) {
  .trio.jeep-ctx { grid-template-columns: 1fr 1fr; gap: 36px; }
  .trio.jeep-ctx .t-title { font-size: 17px; line-height: 22px; }
  .trio.jeep-ctx .t-body { font-size: 13.5px; line-height: 1.5; }
}

/* feature / interaction titles: a step below section headlines (25px) */
.t-sub { font-size: 21px; line-height: 27px; }
@media (max-width: 809px) { .t-sub { font-size: 18px; line-height: 24px; } }
.fx-text .t-body + .t-body { margin-top: 6px; }
/* WellNest competitors: keep the three logos in one row on phones */
@media (max-width: 809px) {
  .trio.logo-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .trio.logo-row img { border-radius: 10px; }
}
/* WellNest pillars: all three in one row on phones */
@media (max-width: 809px) {
  .trio.swipe-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .trio.swipe-row > img { border-radius: 10px; }
}

/* phones: hide lines that repeat the headline or only bridge sections (desktop keeps them) */
@media (max-width: 809px) { .m-hide { display: none !important; } }
/* WellNest iterations on phones: before / after side by side */
@media (max-width: 809px) {
  .ba-pair { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px; }
  .ba-pair img { border-radius: 10px !important; }
}
/* phones: WellNest label lists (Key Insights, Design Decisions, Expected Impact…) use the same 6px label → text as every other list */
@media (max-width: 809px) {
  .kv-row { gap: 6px; padding: 12px 0; }
  .kv-row .t-small + .t-small { margin-top: 0; }
}
/* phones: hero card + project cards run the full content width, lining up with the logo */
@media (max-width: 809px) {
  .hero { padding-left: 0; padding-right: 0; }
  .hero::before { inset: 0 0 auto; }
}
