/* ==========================================================================
   Oscar Rivas — Portfolio
   Shared styles for every page. Colors, type and spacing match the original
   Framer site; change the tokens below to restyle everything at once.
   ========================================================================== */

:root {
  /* Color */
  --ink: #141414;          /* headings, bold text */
  --muted: #6b6b6b;        /* body copy (readable on white and on gray cards) */
  --faint: #b3b3b3;        /* list numbers */
  --nav-ink: #444444;      /* inactive nav pills */
  --sand: #f2f2f2;         /* light gray: cards, pills, image wells */
  --sand-hover: #e8e8e8;   /* pills and buttons on hover, image backgrounds */
  --hairline: #e3e3e3;     /* thin border around white cards */
  --card-shadow: inset 0 0 0 1px var(--hairline), 0 1px 2px rgba(0, 0, 0, 0.04), 0 6px 16px rgba(0, 0, 0, 0.05);
  --periwinkle: #ececec;   /* before/after background */
  --bg: #ffffff;
  --arrow-bg: rgba(0, 0, 0, 0.2);

  /* Layout */
  --content: 1000px;
  --gutter: 20px;
  --space: 40px;           /* rhythm between blocks */
  --section: 80px;         /* rhythm between major sections */

  /* Shape */
  --radius-card: 30px;     /* every card */
  --radius-media: 24px;    /* every image and image area */

  /* Type: every text size on the site comes from this scale.
     Phone sizes are set once, in the "Responsive" section at the bottom. */
  --font: "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --fs-display: 42px;      /* hero tagline, case study titles */
  --fs-eyebrow: 32px;      /* "Oscar Rivas", "Behind the screens" */
  --fs-h2: 32px;           /* section titles */
  --fs-h3: 28px;           /* sub-headings */
  --fs-meta: 28px;         /* case study company / release date */
  --fs-h4: 24px;           /* small headings, concept titles */
  --fs-body: 20px;         /* paragraphs, lists, buttons, links */
  --fs-small: 18px;        /* text inside cards, screen labels */
  --fs-xs: 16px;           /* captions under card titles */
  --fs-ui: 15px;           /* nav, language switch, tags on images */
  --fs-stat: 60px;         /* big numbers */
  --lh-tight: 1.2;         /* one-line labels */
  --lh-heading: 1.3;
  --lh-body: 1.4;
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;        /* labels, card titles, buttons, inline links */
  --fw-bold: 600;          /* headings, bold text */
  --fw-display: 700;       /* hero and case study titles */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--muted);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video, iframe { display: block; max-width: 100%; }
/* Images scale with their container; the width/height attributes in the
   HTML only reserve space while they load. */
img, video { height: auto; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
strong, b { color: var(--ink); font-weight: var(--fw-bold); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

/* ---------- Layout ---------- */
.wrap {
  width: min(var(--content), 100% - var(--gutter) * 2);
  margin-inline: auto;
}
main { padding-bottom: 120px; }
section, [id] { scroll-margin-top: 110px; }
.block { margin-top: var(--space); }
.section { margin-top: var(--section); }

/* ---------- Type ---------- */
.eyebrow {            /* "Oscar Rivas", "Behind the screens" */
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-light);
  line-height: var(--lh-heading);
  color: var(--muted);
}
/* Your name on the home and bio pages: same size, more presence */
.eyebrow--name { color: var(--ink); font-weight: var(--fw-medium); letter-spacing: -0.01em; }
.display {            /* hero tagline, case study title */
  font-size: var(--fs-display);
  font-weight: var(--fw-display);
  line-height: var(--lh-heading);
  color: var(--ink);
  letter-spacing: -0.01em;
}
.h2 {
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
  color: var(--ink);
}
.h3 {
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
  color: var(--ink);
}
.h4 {
  font-size: var(--fs-h4);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
  color: var(--ink);
}
.prose p + p { margin-top: 26px; }

/* Spacing helpers for one-off gaps */
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.mt-50 { margin-top: 50px; }
.prose a, .link-ink {
  color: var(--ink);
  font-weight: var(--fw-medium);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.h2 + .prose, .h2 + .block-tight { margin-top: var(--space); }
/* The "+" in the hero tagline: lighter, so the two halves read as a pair */
.display .plus { color: var(--muted); font-weight: var(--fw-light); }
/* Text for screen readers only */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Top navigation (home) ---------- */
.site-nav {
  position: fixed;
  top: 32px;
  left: 0;
  right: 0;
  z-index: 50;
  pointer-events: none;
}
.site-nav .wrap { display: flex; justify-content: flex-end; align-items: center; gap: 16px; }
.nav-pills { display: flex; gap: 16px; pointer-events: auto; }
.nav-pill {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 4px 16px;
  border-radius: 80px;
  background: var(--sand);
  color: var(--nav-ink);
  font-size: var(--fs-ui);
  letter-spacing: -0.01em;
  line-height: 30px;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.nav-pill:hover { background: var(--sand-hover); }
.nav-pill.is-active { background: var(--ink); color: #fff; font-weight: var(--fw-medium); }

/* ---------- Language switch (EN / ES) ---------- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  flex: none;
  height: 38px;
  padding: 3px;
  border-radius: 80px;
  background: var(--sand);
  pointer-events: auto;
}
.lang-switch__opt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 80px;
  font-size: var(--fs-ui);
  font-weight: var(--fw-medium);
  color: var(--nav-ink);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.lang-switch__opt.is-current { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
a.lang-switch__opt:hover { background: var(--sand-hover); }
.flag { width: 18px; height: 12px; flex: none; border-radius: 2px; box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.15); }
/* Case studies and bio: sits just left of the close button */
.lang-fixed {
  position: fixed;
  top: 32px;
  right: calc(max(var(--gutter), (100% - var(--content)) / 2) + 50px);
  z-index: 50;
}

/* ---------- Close button (case studies, bio) ---------- */
.close-btn {
  position: fixed;
  top: 32px;
  right: max(var(--gutter), (100% - var(--content)) / 2);
  z-index: 50;
  width: 38px;
  height: 38px;
  border-radius: 80px;
  background: var(--sand);
  display: grid;
  place-items: center;
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease);
}
.close-btn:hover { transform: rotate(90deg); background: var(--sand-hover); }
.close-btn svg { width: 18px; height: 18px; }

/* ---------- Page header ---------- */
.page-head { padding-top: 112px; }   /* clears the floating nav with room to breathe */
.page-head .display { margin-top: 16px; }
.home-head { padding-top: 112px; padding-bottom: 40px; }
.home-head .display { margin-top: 12px; }   /* name sits a little apart */
/* The tagline sits on one line and, when the screen is too narrow, breaks only before the "+" */
.nowrap { white-space: nowrap; }
@media (max-width: 359px) {
  .nowrap { white-space: normal; }
  .nav-pills { gap: 4px; }
  .nav-pill { padding: 4px 10px; }   /* smallest phones: keep the Spanish menu on screen */
  .story-card { width: 88vw; padding: 16px; }   /* room for one-line titles on the smallest phones */
}
.positioning { margin-top: 4px;              /* tight to the tagline: one thought */
  font-size: var(--fs-body); color: var(--muted); }
.meta { margin-top: 6px; font-size: var(--fs-meta); line-height: var(--lh-body); color: var(--muted); }
.case-head .display { max-width: 900px; padding-right: 60px; }

/* ---------- Carousel ---------- */
.carousel { position: relative; }
.carousel-track {
  display: flex;
  gap: var(--gap, 20px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * { flex: 0 0 auto; scroll-snap-align: start; }
.carousel-btn {
  position: absolute;
  top: var(--arrow-top, 50%);
  translate: 0 -50%;
  width: 40px;
  height: 40px;
  border-radius: 40px;
  background: var(--arrow-bg);
  display: grid;
  place-items: center;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), background-color 0.2s;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.carousel-btn:hover { background: rgba(0, 0, 0, 0.35); }
.carousel-btn.is-visible { opacity: 1; pointer-events: auto; }
.carousel-btn--prev { left: 20px; }
.carousel-btn--next { right: 20px; }
.carousel-btn svg { width: 40px; height: 40px; }
.carousel-btn--prev svg { transform: scaleX(-1); }

/* ---------- Work cards (home) ---------- */
.work { --gap: 20px; --arrow-top: 160px; }
/* Room for the card shadows inside every scrolling row, without moving the cards */
.carousel-track { padding: 4px var(--gutter) 28px; margin: -4px calc(var(--gutter) * -1) -28px; scroll-padding-inline: var(--gutter); }
.work-card {
  width: 320px;
  display: flex;
  flex-direction: column;
  padding: 8px;
  border-radius: var(--radius-card);
  background: var(--bg);
  box-shadow: var(--card-shadow);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.work-card__media {
  width: 304px;
  height: 304px;
  border-radius: var(--radius-media);
  overflow: hidden;
  background: var(--sand-hover);
}
.work-card__media { position: relative; }
/* A hairline drawn above the picture, so white UI in a screenshot can't bleed into the card */
.work-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.07);
  pointer-events: none;
}
.work-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.work-card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--hairline), 0 2px 4px rgba(0, 0, 0, 0.05), 0 12px 28px rgba(0, 0, 0, 0.08); }
.work-card:hover .work-card__media img { transform: scale(1.04); }
/* Work in progress: same card, but it does not respond like a link */
.work-card--soon { cursor: default; }
.work-card--soon .work-card__media { position: relative; }
.well--hero-pay { position: relative; }
.well--hero-pay img { max-width: 560px; }
.draft-note { margin-top: 24px; padding: 14px 18px; border: 1px dashed #c8c8c8; border-radius: 12px; color: var(--muted); font-size: 14px; text-align: center; }
.work-card__badge {
  position: absolute; top: 50%; left: 50%; z-index: 1; transform: translate(-50%, -50%);
  padding: 8px 16px; border-radius: 80px; white-space: nowrap;
  background: rgba(17, 17, 17, .78); color: #fff;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 14px; font-weight: var(--fw-medium); letter-spacing: .01em;
}
.work-card--soon:hover { transform: none; box-shadow: var(--card-shadow); }
.work-card--soon:hover .work-card__media img { transform: none; }
/* Equal-height cards; tags sit along the bottom so they line up across cards */
.work .carousel-track > li { display: flex; }
.work-card__body { flex: 1; display: flex; flex-direction: column; padding: 20px 20px 22px; }
.work-card__title { font-size: var(--fs-small); font-weight: var(--fw-medium); line-height: var(--lh-heading); color: var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 14px; }
.tags li {
  padding: 4px 10px;
  border-radius: 80px;
  background: var(--sand);
  font-size: var(--fs-ui);
  line-height: var(--lh-tight);
  color: var(--nav-ink);
}
.work-card__meta { margin-top: 8px; font-size: var(--fs-xs); line-height: var(--lh-tight); color: var(--muted); }

/* ---------- About (home) ---------- */
.about-photo {
  width: 100%;
  aspect-ratio: 1000 / 606;
  object-fit: cover;
  border-radius: var(--radius-media);
  background: var(--sand);
}
.about-lead { margin-top: var(--space); }
.about-copy { margin-top: 10px; }
/* Secondary button: outlined pill, so it reads as tappable without competing with black buttons */
.dive-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  margin-top: 28px;
  padding: 0 20px;
  border-radius: 80px;
  box-shadow: inset 0 0 0 1.5px var(--ink);
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  color: var(--ink);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.dive-link:hover { background: var(--ink); color: #fff; }
.dive-link span { transition: transform 0.3s var(--ease); }
.dive-link:hover span { transform: translateX(4px); }

/* ---------- Numbered lists ---------- */
.num-list { display: grid; gap: 16px; }
.num-list li { display: grid; grid-template-columns: 26px 1fr; column-gap: 16px; align-items: start; }
.num-list .num { color: var(--faint); line-height: 1.2; padding-top: 1px; font-variant-numeric: tabular-nums; }
/* "My approach": two columns, each principle on its own line with one short line under it */
/* Columns follow the space: two side by side when each can be 320px+, otherwise one */
.num-list--grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); column-gap: 48px; row-gap: 28px; }
.num-list--grid strong, .num-list--grid .principle { display: block; }

/* ---------- Testimonials (home) ---------- */
.testimonials { --gap: 40px; --arrow-top: 50%; }
.t-card {
  width: 342px;
  min-height: 300px;
  padding: 8px;
  border-radius: var(--radius-card);
  background: var(--bg);
  box-shadow: var(--card-shadow);
  display: flex;
}
.t-card__inner { padding: 20px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.t-card__quote { font-size: var(--fs-small); line-height: var(--lh-body); color: var(--muted); }
.t-card__author { display: flex; align-items: center; gap: 12px; }
.t-card__avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; }
.t-card__name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--ink);
  line-height: var(--lh-tight);
}
.t-card__name:hover { text-decoration: underline; text-underline-offset: 3px; }
.t-card__role { margin-top: 6px; font-size: var(--fs-xs); line-height: var(--lh-tight); color: var(--muted); }
/* Same ↗ as the contact buttons: "opens somewhere else" */
.ext-arrow { font-weight: var(--fw-regular); }

/* ---------- Contact (home) ---------- */
.contact-lead { font-size: var(--fs-body); font-weight: var(--fw-bold); color: var(--ink); }
.contact-copy { margin-top: 10px; }
.contact-location { margin-top: 10px; color: var(--muted); }
.contact-links { display: flex; flex-wrap: wrap; gap: 12px 16px; margin-top: 28px; }
/* Outlined pill buttons, the same style as "Read my story" */
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 18px 0 16px;
  border-radius: 80px;
  box-shadow: inset 0 0 0 1.5px var(--ink);
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  color: var(--ink);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.contact-link:hover { background: var(--ink); color: #fff; }
.contact-link__icon { width: 20px; height: 20px; flex: none; }

/* ---------- Case study: media wells ---------- */
.well {
  border-radius: var(--radius-media);
  background: var(--sand);
  display: grid;
  place-items: center;
  padding: 40px;
  overflow: hidden;
}
.well img { width: 100%; height: auto; max-height: 650px; object-fit: contain; }
.well--hero-wf img { max-width: 671px; }
.well--hero-catch img { max-width: 876px; }
.well--hero-zelle img, .well--zelle-opportunity img { max-width: 920px; }
/* Marea hero is a full composed image: fill the box instead of floating inside it */
.well.well--hero-marea { padding: 0; background: var(--sand-hover); }
.well--hero-marea img { width: 100%; max-height: none; }
.media-plain { width: 100%; height: auto; border-radius: var(--radius-media); }
a.media-link { display: block; border-radius: var(--radius-media); overflow: hidden; }
a.media-link img { transition: transform 0.6s var(--ease); }
a.media-link:hover img { transform: scale(1.015); }
.subtle-link { display: inline-block; margin-top: 16px; font-size: var(--fs-body); font-weight: var(--fw-bold); color: var(--ink); }
.subtle-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Case study: "Long story short" cards ---------- */
.story { --gap: 24px; --arrow-top: 50%; }
.story-card {
  width: 336px;
  min-height: 163px;
  padding: 20px;
  border-radius: var(--radius-card);
  background: var(--bg);
  box-shadow: var(--card-shadow);
}
/* Step number in place of emoji: these six cards tell the story in order */
.story-card__num { margin-bottom: 8px; font-size: var(--fs-xs); line-height: var(--lh-tight); color: var(--faint); font-variant-numeric: tabular-nums; }
.story-card__title { font-size: var(--fs-small); font-weight: var(--fw-medium); line-height: var(--lh-heading); color: var(--ink); }
.story-card__text { margin-top: 8px; font-size: var(--fs-small); line-height: var(--lh-body); color: var(--muted); }

/* ---------- Case study: three-part summary (problem / what I did / outcome) ---------- */
/* Never 2 + 1: one row of three when there is room, otherwise one column. */
.summary { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 1000px) { .summary { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.summary-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: var(--radius-card);
  background: var(--bg);
  box-shadow: var(--card-shadow);
}
.summary-card__label { display: flex; align-items: center; gap: 8px; font-size: var(--fs-xs); font-weight: var(--fw-medium); line-height: var(--lh-tight); color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.summary-card__num { display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 6px; border-radius: 80px; background: var(--sand); color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.summary-card__head { margin-top: 20px; text-wrap: balance; font-size: var(--fs-h4); font-weight: var(--fw-bold); line-height: var(--lh-heading); color: var(--ink); letter-spacing: -0.01em; }
.summary-card__text { margin-top: 8px; font-size: var(--fs-small); line-height: var(--lh-body); color: var(--muted); }
/* The outcome is the payoff: inverted card with the result as a big number */
.summary-card--result { background: var(--ink); box-shadow: none; }
.summary-card--result .summary-card__label { color: rgba(255, 255, 255, 0.6); }
.summary-card--result .summary-card__num { background: rgba(255, 255, 255, 0.14); color: #fff; }
.summary-card--result .summary-card__head { margin-top: 12px; font-size: 48px; line-height: var(--lh-tight); letter-spacing: -0.02em; color: #fff; }
.summary-card--result .summary-card__text { color: rgba(255, 255, 255, 0.72); }
@media (max-width: 809px) { .summary-card--result .summary-card__head { font-size: 40px; } }
/* Phones: a little more room so short headings stay on one line */
@media (max-width: 599px) {
  .summary-card { padding: 20px; }
  .summary-card__head { text-wrap: pretty; }
}
.summary-card__mark { margin-left: 2px; font-size: 0.45em; vertical-align: top; color: rgba(255, 255, 255, 0.6); font-weight: var(--fw-medium); }
.summary-card__foot { margin-top: auto; padding-top: 12px; font-size: var(--fs-xs); color: rgba(255, 255, 255, 0.55); }

/* ---------- Case study: quote cards ---------- */
.quotes { --gap: 24px; --arrow-top: 50%; }
.quote-card {
  width: 320px;
  min-height: 158px;
  padding: 28px;
  border-radius: var(--radius-card);
  background: var(--bg);
  box-shadow: var(--card-shadow);
  font-size: var(--fs-small);
  line-height: var(--lh-body);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}
.quote-card__who { display: flex; align-items: center; gap: 10px; font-size: var(--fs-xs); line-height: var(--lh-tight); color: var(--muted); }
.quote-card__who strong { font-weight: var(--fw-medium); color: var(--ink); }
.quote-card__avatar { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--sand); color: var(--ink); font-weight: var(--fw-medium); font-size: var(--fs-small); }
.quotes-note { margin-top: 12px; font-size: var(--fs-xs); color: var(--muted); }
.list-rows.block { margin-top: 16px; }

/* ---------- Case study: before / after slider ---------- */
.compare {
  position: relative;
  aspect-ratio: 1000 / 756;
  border-radius: var(--radius-media);
  background: var(--periwinkle);
  overflow: hidden;
  --pos: 50%;
  user-select: none;
  touch-action: pan-y;
}
.compare img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.compare__after { clip-path: inset(0 0 0 var(--pos)); }
.compare__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
  pointer-events: none;
}
.compare__handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  translate: -50% -50%;
  border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141414' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center / 22px no-repeat;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.compare__tag {
  position: absolute;
  top: 16px;
  padding: 4px 12px;
  border-radius: 80px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  font-size: var(--fs-ui);
  font-weight: var(--fw-medium);
  pointer-events: none;
}
.compare__tag { transition: opacity 0.2s ease; }
.compare__tag.is-hidden { opacity: 0; }
.compare__tag--before { left: 16px; }
.compare__tag--after { right: 16px; }
.compare__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
}
.compare-note { margin-top: 10px; }
/* The range input is invisible, so outline the whole slider when it has keyboard focus */
.compare:has(.compare__range:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- Case study: workshop themes (synthesis of the stakeholder board) ---------- */
.themes__label { font-size: var(--fs-xs); font-weight: var(--fw-medium); line-height: var(--lh-tight); color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.themes__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; padding: 0; list-style: none; }
.theme-card { padding: 24px; border-radius: var(--radius-card); background: var(--bg); box-shadow: var(--card-shadow); }
.theme-card .summary-card__num { display: inline-grid; }
.theme-card__head { margin-top: 16px; font-size: var(--fs-h4); font-weight: var(--fw-bold); line-height: var(--lh-heading); color: var(--ink); letter-spacing: -0.01em; text-wrap: balance; }
.theme-card__quote { margin-top: 8px; font-size: var(--fs-small); line-height: var(--lh-body); color: var(--muted); }
.themes__link { display: inline-block; margin-top: 20px; font-size: var(--fs-small); font-weight: var(--fw-medium); color: var(--ink); }
.themes__link:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 599px) {
  .themes__grid { grid-template-columns: 1fr; gap: 12px; }
  /* Phones: number and theme on one line, tighter card */
  .theme-card { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; padding: 16px 20px; }
  .theme-card__head { margin-top: 0; font-size: var(--fs-body); }
  .theme-card__quote { grid-column: 1 / -1; margin-top: 6px; }
}

/* ---------- Case study: opportunity (insight → baseline numbers → opening) ---------- */
.opp__lead { font-size: var(--fs-h3); font-weight: var(--fw-bold); line-height: var(--lh-heading); color: var(--ink); letter-spacing: -0.01em; text-wrap: pretty; }
/* Baseline numbers as a plain list: number on the left, what it means on the right */
.baseline { margin-top: 28px; }
.baseline__label { font-size: var(--fs-xs); font-weight: var(--fw-medium); line-height: var(--lh-tight); color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.baseline__grid { margin-top: 8px; }
.baseline__grid > div { display: grid; grid-template-columns: 120px 1fr; align-items: baseline; column-gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--hairline); }
.baseline__num { font-size: var(--fs-h4); font-weight: var(--fw-bold); line-height: var(--lh-tight); color: var(--ink); font-variant-numeric: tabular-nums; }
.baseline__text { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--muted); }
.opp__body { margin-top: 24px; font-size: var(--fs-body); line-height: var(--lh-body); color: var(--muted); }
@media (max-width: 599px) { .baseline__grid > div { grid-template-columns: 76px 1fr; column-gap: 12px; padding: 12px 0; } .baseline__text { font-size: var(--fs-small); } }

/* ---------- Plain list rows: bold term + gray description, hairlines between (no container) ---------- */
.list-label { font-size: var(--fs-xs); font-weight: var(--fw-medium); line-height: var(--lh-tight); color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.list-rows { margin: 0; padding: 0; list-style: none; }
.list-label + .list-rows { margin-top: 8px; }
.list-rows li { padding: 14px 0; border-bottom: 1px solid var(--hairline); }
.list-rows__term { text-wrap: balance; font-size: var(--fs-body); font-weight: var(--fw-bold); line-height: var(--lh-heading); color: var(--ink); }
.list-rows__text { margin-top: 4px; font-size: var(--fs-small); line-height: var(--lh-body); color: var(--muted); }
/* Two-column rows (takeaway on the left, detail on the right), like the opportunity baseline */
.list-rows--cols li { display: grid; grid-template-columns: 260px 1fr; align-items: baseline; column-gap: 24px; }
.list-rows--cols .list-rows__text { margin-top: 0; font-size: var(--fs-body); }
@media (max-width: 599px) { .list-rows--cols li { grid-template-columns: 1fr; } .list-rows--cols .list-rows__text { margin-top: 4px; font-size: var(--fs-small); } }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; }
@media (max-width: 809px) { .split { grid-template-columns: 1fr; } }

/* ---------- Case study: next project (end of page) ---------- */
.next-card { display: flex; align-items: center; gap: 20px; margin-top: 12px; padding: 16px; border-radius: var(--radius-card); background: var(--bg); box-shadow: var(--card-shadow); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.next-card:hover { transform: translateY(-2px); }
.next-card__media { flex: none; width: 96px; height: 96px; overflow: hidden; border-radius: 16px; background: var(--sand-hover); }
.next-card__media img { width: 100%; height: 100%; object-fit: cover; }
.next-card__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.next-card__title { font-size: var(--fs-h4); font-weight: var(--fw-bold); line-height: var(--lh-heading); color: var(--ink); text-wrap: balance; }
.next-card__meta { font-size: var(--fs-small); color: var(--muted); }
.next-card__arrow { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); transition: background 0.2s ease, color 0.2s ease; }
.next-card__arrow svg { width: 20px; height: 20px; }
.next-card:hover .next-card__arrow { background: var(--ink); color: #fff; }
.next-contact { margin-top: 16px; font-size: var(--fs-small); color: var(--muted); }
.next-contact a { color: var(--ink); font-weight: var(--fw-medium); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 599px) {
  .next-card { gap: 14px; padding: 12px; }
  .next-card__media { width: 72px; height: 72px; border-radius: 12px; }
  .next-card__title { font-size: var(--fs-body); }
  .next-card__arrow { width: 36px; height: 36px; }
}

/* ---------- Process steps: numbered, side by side, joined by a line ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: var(--space) 0 0; padding: 0; list-style: none; counter-reset: none; }
.step { position: relative; padding-top: 22px; }
.step::before { content: ""; position: absolute; top: 15px; left: 32px; right: -24px; height: 1px; background: var(--hairline); }
.step:last-child::before { display: none; }
.step__num { position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font-size: var(--fs-xs); font-weight: var(--fw-medium); font-variant-numeric: tabular-nums; }
.step__title { margin-top: 28px; font-size: var(--fs-body); font-weight: var(--fw-bold); line-height: var(--lh-heading); color: var(--ink); text-wrap: balance; }
.step__text { margin-top: 8px; font-size: var(--fs-small); line-height: var(--lh-body); color: var(--muted); }
@media (max-width: 809px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { padding: 0 0 24px 48px; }
  .step::before { top: 34px; bottom: 4px; left: 15px; right: auto; width: 1px; height: auto; }
  .step__title { margin-top: 4px; }
}

/* ---------- One screen per app tab ---------- */
.tab-shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.tab-shot { margin: 0; }
.tab-shot img { display: block; width: 100%; height: auto; border-radius: 24px; box-shadow: var(--card-shadow); }
.tab-shot__title { margin-top: 20px; font-size: var(--fs-body); font-weight: var(--fw-bold); line-height: var(--lh-heading); color: var(--ink); }
.tab-shot__text { margin-top: 6px; font-size: var(--fs-small); line-height: var(--lh-body); color: var(--muted); }
@media (max-width: 809px) {
  /* Phones: swipe through the tabs */
  .tab-shots { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; margin: var(--space) calc(var(--gutter) * -1) 0; padding: 4px var(--gutter) 20px; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .tab-shots::-webkit-scrollbar { display: none; }
  .tab-shot { flex: 0 0 62%; scroll-snap-align: start; }
}

/* ---------- Case study: wins ---------- */
/* Heading with a small gray note under it (e.g. "Projected by end of 2026") */
.wins-head { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.tag-pill { font-size: var(--fs-small); font-weight: var(--fw-regular); line-height: var(--lh-body); color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: var(--space); text-align: center; }
.stat__num { font-size: var(--fs-stat); font-weight: var(--fw-bold); line-height: var(--lh-tight); color: var(--ink); letter-spacing: -0.02em; }
.stat__label { margin-top: 16px; }
.stat__num:has(.stat__mark) { display: inline-block; position: relative; }
/* The asterisk hangs outside the number so the value itself stays centered */
.stat__mark { position: absolute; top: 0.05em; left: 100%; margin-left: 2px; font-size: 0.45em; line-height: 1; color: var(--muted); font-weight: var(--fw-medium); }
.stats-note { margin-top: 24px; font-size: var(--fs-xs); color: var(--muted); text-align: center; }
.jump { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: var(--space); }
/* Chapter break between the short version and the full case study */
.story-break {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 72px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
}
.story-break__label { font-size: var(--fs-xs); font-weight: var(--fw-medium); line-height: var(--lh-tight); color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.story-break__skip { font-size: var(--fs-small); font-weight: var(--fw-medium); color: var(--ink); }
.story-break__skip:hover { text-decoration: underline; text-underline-offset: 3px; }
/* The break introduces what follows, so keep the next block close */
section:has(.story-break) + * { margin-top: 56px; }
@media (max-width: 809px) { .story-break { margin-top: 56px; padding-top: 24px; } section:has(.story-break) + * { margin-top: 44px; } }
.btn-dark {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 8px 16px;
  border-radius: 50px;
  background: var(--ink);
  color: #fff;
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  transition: transform 0.3s var(--ease), background-color 0.3s;
}
.btn-dark:hover { transform: translateY(-2px); background: #000; }
.read-more { font-size: var(--fs-body); font-weight: var(--fw-medium); color: var(--ink); }
.read-more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Case study: team / timeline ---------- */
.team { margin-top: var(--section); }
/* Project facts: timeline + team, in one soft gray panel */
.facts {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) 3fr;
  gap: 24px 40px;
  padding: 24px 28px;
  border-radius: var(--radius-card);
  background: var(--sand);
}
.facts__label { font-size: var(--fs-xs); font-weight: var(--fw-medium); line-height: var(--lh-tight); color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.facts__value { margin-top: 10px; font-size: var(--fs-h4); font-weight: var(--fw-bold); line-height: var(--lh-heading); color: var(--ink); }
.facts__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; padding: 0; list-style: none; }
.facts__chips li { padding: 6px 12px; border-radius: 80px; background: var(--bg); font-size: var(--fs-small); line-height: var(--lh-tight); color: var(--ink); }
.facts__chips span { margin-left: 2px; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 599px) {
  .facts { grid-template-columns: 1fr; gap: 16px; padding: 20px; }
  .facts__value { margin-top: 6px; }
  /* On phones the roles read as one compact line instead of pills */
  .facts__chips { display: block; margin-top: 6px; font-size: var(--fs-small); line-height: var(--lh-body); }
  .facts__chips li { display: inline-block; padding: 0; background: none; white-space: nowrap; }
  .facts__chips li:not(:last-child)::after { content: " ·"; color: var(--faint); }
  .facts__chips li:not(:last-child) { margin-right: 4px; }
}
.team p + p { margin-top: 8px; }
.team .timeline { color: var(--ink); font-weight: var(--fw-medium); }

/* ---------- Case study: final design phones ---------- */
.screens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.screens--two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 680px; }
.screen__label { font-size: var(--fs-small); font-weight: var(--fw-medium); color: var(--ink); line-height: var(--lh-heading); }
.screen__desc { margin-top: 10px; font-size: var(--fs-small); line-height: var(--lh-body); color: var(--muted); }
.screen__well {
  position: relative;
  margin-top: 28px;
  height: 320px;
  border-radius: var(--radius-media);
  background: var(--sand);
  overflow: hidden;
}
.screen__well img {
  position: absolute;
  left: 50%;
  top: 24px;
  width: 89%;
  max-width: 282px;
  translate: -50% 0;
  transition: transform 1.6s var(--ease);
}
/* Tall phone screens glide up on hover to reveal the rest of the screen */
.screen__well--tall:hover img { transform: translateY(calc(-100% + 296px)); }
.screen__well--crop img { top: 0; height: 100%; object-fit: cover; object-position: top; }
/* Touch screens can't hover, so let visitors scroll inside tall screens instead */
@media (hover: none) {
  .screen__well--tall { overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .screen__well--tall img { position: static; translate: none; margin: 24px auto; transition: none; }
  .screen__well--tall:hover img { transform: none; }   /* ignore sticky tap-hover */
}

/* ---------- Case study: video ---------- */
.video-well {
  border-radius: var(--radius-media);
  background: var(--sand);
  display: grid;
  place-items: center;
  padding: 40px;
}
.video-well video { width: 100%; height: auto; }
.video-well--square video { max-width: 720px; }
.video-well--phone video { max-width: 328px; }
.video-well--wide video { border-radius: 16px; }
.video-label { font-size: var(--fs-small); font-weight: var(--fw-medium); color: var(--ink); margin-bottom: 40px; }
.embed { position: relative; aspect-ratio: 1000 / 527; border-radius: var(--radius-media); overflow: hidden; background: var(--sand); }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Case study: concepts ---------- */
.concepts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.concept img { width: 100%; height: auto; aspect-ratio: 317 / 669; object-fit: cover; border-radius: var(--radius-media); }
.concept__title { margin-top: 32px; font-size: var(--fs-h4); font-weight: var(--fw-bold); color: var(--ink); line-height: var(--lh-heading); }
.concept__label { margin-top: 32px; font-size: var(--fs-xs); font-weight: var(--fw-medium); line-height: var(--lh-tight); color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.concept__label + .concept__title { margin-top: 6px; }
.concept__text { margin-top: 12px; }
.plan-rows { margin-top: 28px; }

/* ---------- Bio ---------- */
.bio-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 40px; margin-top: 86px; }
.bio-copy p + p { margin-top: 26px; }
.bio-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.bio-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-media); background: var(--sand); }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 809px) {
  :root {
    --space: 32px;
    --section: 64px;
    /* Phone type scale (matches the Framer site's iPhone sizes, except section
       titles stay smaller than the hero and buttons/stats shrink with the text) */
    --fs-display: 28px;
    --fs-eyebrow: 24px;
    --fs-h2: 24px;
    --fs-h3: 22px;
    --fs-h4: 20px;
    --fs-meta: 18px;
    --fs-body: 18px;
    --fs-small: 18px;
    --fs-xs: 16px;
    --fs-stat: 48px;
  }
  .site-nav, .close-btn { top: 20px; }
  .home-head, .page-head { padding-top: 84px; }
  .case-head .display { padding-right: 0; }

  .work-card { width: min(320px, 82vw); }
  .work-card__media { width: 100%; height: auto; aspect-ratio: 1; }
  .work { --arrow-top: calc(min(320px, 82vw) / 2); }
  .t-card { width: min(342px, 85vw); }
  .story-card { width: min(336px, 80vw); }
  .quote-card { width: min(320px, 80vw); }
  .carousel-btn { display: none; }   /* swipe on touch screens */
  .num-list--grid { column-gap: 32px; row-gap: 20px; }


  .well, .video-well { padding: 20px; }
  .stats { grid-template-columns: 1fr; gap: 28px; }
  .stat__label { margin-top: 6px; }

  .screens, .concepts { grid-template-columns: 1fr; gap: 40px; }
  .screen__well { height: 360px; }
  .screen__well--tall img { max-width: 260px; }
  .concept { width: 100%; max-width: 340px; margin-inline: auto; text-align: center; }
  .concept__label { margin-top: 24px; }

  .bio-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 40px; }
  .bio-photos { gap: 12px; }
  .lang-fixed { top: 20px; }
}

/* Phones: tighter nav, and the switch shrinks to just the other language's flag */
@media (max-width: 480px) {
  .site-nav .wrap { gap: 8px; }
  .nav-pills { gap: 6px; }
  :root { --fs-ui: 14px; }
  .nav-pill { padding: 4px 12px; }
  .lang-switch .is-current, .lang-switch__code { display: none; }
  .lang-switch__opt { padding: 0 9px; }
}

/* Stats: three across whenever they fit (placed last so it wins over the phone block) */
@media (min-width: 600px) and (max-width: 809px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .stat__num { font-size: 40px; }
}

/* ---------- Password screen (NDA case studies) ---------- */
.gate { min-height: 100vh; min-height: 100svh; }
.gate__eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.gate__lock { display: inline-flex; width: 18px; height: 18px; }
.gate__lock svg { width: 100%; height: 100%; }
.gate__card { max-width: 560px; margin-top: 40px; padding: 32px; border-radius: var(--radius-card); background: var(--sand); }
.gate__lead { color: var(--ink); line-height: 1.5; }
.gate__form { margin-top: 24px; }
.gate__label { display: block; margin-bottom: 8px; font-size: 14px; color: var(--muted); }
.gate__row { display: flex; gap: 8px; }
.gate__input {
  flex: 1; min-width: 0; height: 48px; padding: 0 16px; border: 1px solid var(--hairline); border-radius: 12px;
  background: #fff; color: var(--ink); font: inherit; font-size: 16px;
}
.gate__input:focus { outline: 2px solid var(--ink); outline-offset: 1px; border-color: transparent; }
.gate__btn {
  height: 48px; padding: 0 20px; border: 0; border-radius: 80px; background: var(--ink); color: #fff;
  font: inherit; font-size: 15px; font-weight: var(--fw-medium); cursor: pointer; white-space: nowrap;
}
.gate__btn:hover:not(:disabled) { background: #333; }
.gate__btn:disabled { background: #d4d4d4; color: #fff; cursor: not-allowed; }
.gate__form.is-busy .gate__btn { opacity: .6; pointer-events: none; }
.gate__error { margin-top: 10px; font-size: 14px; color: #b42318; }
.gate__help { margin-top: 20px; font-size: 14px; color: var(--muted); }
.gate__help a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.gate__form.is-shake .gate__row { animation: gate-shake .35s; }
@keyframes gate-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
html.gate-checking .gate { visibility: hidden; }
@media (max-width: 599px) {
  .gate__card { padding: 24px 20px; margin-top: 28px; }
  .gate__row { flex-direction: column; }
  .gate__input { flex: none; width: 100%; }
  .gate__btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .gate__form.is-shake .gate__row { animation: none; } }

/* Lock marker on protected work cards */
.work-card__lock {
  position: absolute; top: 12px; right: 12px; z-index: 1; display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
}
.work-card__lock svg { width: 16px; height: 16px; }

/* Password dialog (bottom sheet on phones) */
.lock-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; }
.lock-modal[hidden] { display: none; }
.lock-modal__backdrop { position: absolute; inset: 0; background: rgba(17, 17, 17, .45); opacity: 0; transition: opacity .25s ease; }
.lock-modal__panel {
  position: relative; width: 100%; max-width: 480px; padding: 32px; border-radius: 24px; background: #fff;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .18); opacity: 0; transform: translateY(12px) scale(.98);
  transition: opacity .25s ease, transform .25s ease;
}
.lock-modal.is-open .lock-modal__backdrop { opacity: 1; }
.lock-modal.is-open .lock-modal__panel { opacity: 1; transform: none; }
.lock-modal__grip { display: none; }
.lock-modal__x {
  position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 36px; height: 36px;
  border: 0; border-radius: 50%; background: var(--sand); color: var(--ink); cursor: pointer;
}
.lock-modal__x:hover { background: var(--sand-hover); }
.lock-modal__x svg { width: 18px; height: 18px; }
.lock-modal__eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.lock-modal__lock { display: inline-flex; width: 16px; height: 16px; }
.lock-modal__lock svg { width: 100%; height: 100%; }
.lock-modal__title { margin-top: 10px; padding-right: 40px; font-size: 24px; font-weight: var(--fw-medium); line-height: 1.25; color: var(--ink); text-wrap: balance; }
.lock-modal__lead { margin-top: 12px; font-size: 16px; color: var(--muted); line-height: 1.5; }
.lock-modal .gate__help a, .gate__help a { white-space: nowrap; }
html.lock-open { overflow: hidden; }
@media (max-width: 599px) {
  .lock-modal { place-items: end stretch; padding: 0; }
  .lock-modal__panel {
    max-width: none; padding: 28px 20px calc(24px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0;
    transform: translateY(100%);
  }
  .lock-modal.is-open .lock-modal__panel { transform: none; }
  .lock-modal__grip { display: block; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--hairline); }
  .lock-modal__title { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { .lock-modal__panel, .lock-modal__backdrop { transition: none; } }
