/* =========================================================
   Frame Lab — portfolio
   Brand: red #F40030 · ink #151515 · white
   Type:  Lexend Giga (titles) · Figtree (text)
   ========================================================= */

:root {
  --red: #F40030;
  --ink: #151515;
  --white: #FFFFFF;

  --bg: #FFFFFF;
  --surface: #F4F4F2;
  --text: #151515;
  --muted: #6B6B6B;
  --line: #E4E4E1;
  --on-red: #FFFFFF;

  --font-title: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-brand: "Lexend Giga", "Figtree", system-ui, sans-serif; /* logo wordmark only */
  --font-text: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --title-tracking: normal;
  --title-weight: 700; /* Bold */

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --radius: 6px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Light mode only, even when the visitor's system is set to dark */
  color-scheme: only light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

::selection { background: var(--red); color: var(--on-red); }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

main { flex: 1; }

/* ---------- Type ---------- */
h1, h2, h3, .title {
  font-family: var(--font-title);
  font-weight: var(--title-weight);
  letter-spacing: var(--title-tracking);
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(30px, 4.6vw, 64px); }
h2 { font-size: clamp(22px, 2.6vw, 34px); }
h3 { font-size: clamp(16px, 1.3vw, 19px); }

p { margin: 0; text-wrap: pretty; }
.lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; color: var(--muted); max-width: 46ch; }
.lead strong { color: var(--text); font-weight: 600; }

.eyebrow {
  font-family: var(--font-text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--red);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  min-width: 0;
}
.brand-mark { width: 22px; height: auto; flex: none; }
.brand-name {
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand-by {
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
  padding-left: 14px;
  border-left: 1px solid var(--line);
  line-height: 1.2;
}

.nav { display: flex; gap: clamp(16px, 2.6vw, 40px); }
.nav a {
  position: relative;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  padding-block: 6px;
  transition: color .2s;
  white-space: nowrap;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

@media (max-width: 720px) {
  .site-header .wrap {
    height: auto;
    padding-block: 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .brand { gap: 10px; }
  .brand-by { padding-left: 10px; font-size: 13px; }
  .brand-name { font-size: 13px; }
}

/* ---------- Page intro ---------- */
.intro {
  padding-block: clamp(56px, 9vw, 128px) clamp(40px, 6vw, 80px);
  display: grid;
  gap: 28px;
}
.intro h1 { max-width: 18ch; }

/* "Site under construction": red eyebrow on small screens, rigid stamp on desktop */
.intro { position: relative; }
.intro-flag { color: var(--red); }
.stamp { display: none; }
@media (min-width: 1100px) {
  .intro-flag { display: none; }
  .stamp {
    position: absolute; right: clamp(24px, 4vw, 64px); top: 50%;
    display: grid; justify-items: center; gap: 10px;
    padding: 22px 30px 18px;
    border: 4px solid var(--red);
    color: var(--red); text-align: center; text-transform: uppercase;
    font-family: var(--font-brand); font-weight: 600; line-height: 1;
    transform: translateY(-50%) rotate(-8deg);
    opacity: .92; pointer-events: none; user-select: none;
  }
  /* inner frame as two L shapes, like the Frame Lab mark */
  .stamp::before, .stamp::after { content: ""; position: absolute; top: 8px; bottom: 8px; width: 64%; border: 0 solid var(--red); }
  .stamp::before { left: 8px; border-top-width: 3px; border-left-width: 3px; }
  .stamp::after { right: 8px; border-bottom-width: 3px; border-right-width: 3px; }
  .stamp-top, .stamp-foot { font-size: 12px; letter-spacing: .32em; }
  .stamp-main { font-size: 22px; letter-spacing: .08em; white-space: nowrap; line-height: 1.25; padding-block: 10px; border-block: 1.5px solid var(--red); }
}

/* ---------- Category nav (work page) ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color .2s, background .2s, color .2s;
}
.chip:hover { border-color: var(--text); }
.chip .count { color: var(--muted); font-size: 13px; }

/* ---------- Work sections ---------- */
.category {
  padding-block: clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--line);
  scroll-margin-top: 80px;
}
.category-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 48px;
  align-items: end;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.category-head .idx {
  font-family: var(--font-title);
  font-size: 13px;
  color: var(--red);
  display: block;
  margin-bottom: 14px;
  letter-spacing: 0;
}
.category-head p { color: var(--muted); max-width: 52ch; justify-self: end; }
@media (max-width: 720px) {
  .category-head { grid-template-columns: 1fr; }
  .category-head p { justify-self: start; }
}

/* ---------- Project grid: two per row ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 56px) clamp(16px, 2.4vw, 32px);
}
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
}

.card { text-decoration: none; display: block; }
.card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
/* Frame-mark corners: the logo's two L-brackets frame the image on hover */
.card-media::before,
.card-media::after {
  content: "";
  position: absolute;
  width: 34px; height: 34px;
  border: 0 solid var(--red);
  opacity: 0;
  z-index: 1;
  transition: opacity .3s var(--ease), transform .45s var(--ease);
  pointer-events: none;
}
.card-media::before {
  top: 14px; left: 14px;
  border-top-width: 5px; border-left-width: 5px;
  transform: translate(8px, 8px);
}
.card-media::after {
  bottom: 14px; right: 14px;
  border-bottom-width: 5px; border-right-width: 5px;
  transform: translate(-8px, -8px);
}
.card:hover .card-media img { transform: scale(1.035); }
.card:hover .card-media::before,
.card:hover .card-media::after { opacity: 1; transform: none; }

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-top: 18px;
}
.card-meta h3 { transition: color .2s; }
.card:hover .card-meta h3 { color: var(--red); }
.card-type { font-size: 15px; color: var(--muted); margin-top: 6px; }
.card-arrow {
  flex: none;
  font-size: 20px;
  line-height: 1;
  color: var(--muted);
  transition: transform .3s var(--ease), color .2s;
}
.card:hover .card-arrow { transform: translate(4px, -4px); color: var(--red); }

.badge {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 2;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--red);
  color: var(--on-red);
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: clamp(64px, 8vw, 120px);
  background: var(--ink);
  color: var(--white);
}
.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-block: 32px;
}
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .22);
  color: var(--white);
  transition: background .2s, border-color .2s, color .2s;
}
.pill:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.pill .ext { font-size: 13px; opacity: .6; }
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .22);
  color: var(--white);
  transition: background .2s, border-color .2s;
}
.icon-btn:hover { background: var(--red); border-color: var(--red); }
.icon-btn svg { width: 18px; height: 18px; fill: currentColor; }
.footer-note { font-size: 14px; color: rgba(255, 255, 255, .5); display: flex; align-items: center; gap: 10px; }
.footer-note img { width: 14px; }

/* ---------- Case study ---------- */
.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s, gap .2s;
}
.back:hover { color: var(--text); gap: 12px; }

.case-hero { padding-block: clamp(40px, 6vw, 80px) clamp(32px, 4vw, 56px); display: grid; gap: 28px; }
.case-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding-block: 28px;
  border-block: 1px solid var(--line);
  margin-top: 12px;
}
@media (max-width: 720px) { .case-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  /* no outline on imported visuals */
}
.figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
figcaption.cap { font-size: 14px; color: var(--muted); margin-top: 12px; }

.case-section {
  padding-block: clamp(48px, 7vw, 96px) 0;
  display: grid;
  gap: clamp(24px, 3vw, 40px);
}
.case-text {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 16px 48px;
}
.case-text p { color: var(--muted); max-width: 60ch; }
.case-text p + p { margin-top: 1em; }
@media (max-width: 720px) { .case-text { grid-template-columns: 1fr; } }

.stack { display: grid; gap: clamp(16px, 2.4vw, 32px); }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
@media (max-width: 640px) { .pair { grid-template-columns: 1fr; } }
/* odd item count: last one sits centred at the same size */
@media (min-width: 641px) { .pair--odd-center > :last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc((100% - clamp(16px, 2.4vw, 32px)) / 2); } }

.swatches { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: clamp(12px, 2vw, 24px); }
.swatch {
  border-radius: var(--radius);
  min-height: 260px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  box-shadow: 0 0 0 1px var(--line);
}
.swatch strong { font-family: var(--font-title); font-weight: var(--title-weight); letter-spacing: var(--title-tracking); font-size: 18px; }
.swatch span { font-size: 14px; opacity: .75; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .swatches { grid-template-columns: 1fr 1fr; }
  .swatches .swatch:first-child { grid-column: 1 / -1; }
  .swatch { min-height: 160px; }
}

.specimen {
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(24px, 4vw, 56px);
  display: grid;
  gap: 24px;
  overflow: hidden;
}
.specimen .big {
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: clamp(36px, 7vw, 104px);
  letter-spacing: .1em;
  line-height: 1;
  text-transform: uppercase;
}
.specimen .row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 15px; }
.specimen .glyphs { font-family: var(--font-brand); font-size: clamp(16px, 2vw, 24px); letter-spacing: .06em; word-break: break-all; }

.next-project {
  margin-top: clamp(64px, 8vw, 120px);
  border-top: 1px solid var(--line);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.next-project a { text-decoration: none; }
.next-project .title { font-size: clamp(20px, 2.4vw, 32px); transition: color .2s; }
.next-project a:hover .title { color: var(--red); }

/* ---------- Contact ---------- */
.contact {
  padding-block: clamp(56px, 9vw, 128px) 0;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.contact-mail {
  display: inline-block;
  margin-top: 36px;
  font-family: var(--font-title);
  font-weight: var(--title-weight);
  letter-spacing: var(--title-tracking);
  font-size: clamp(20px, 3.2vw, 40px);
  text-decoration: none;
  background: linear-gradient(var(--red), var(--red)) left bottom / 100% 3px no-repeat;
  padding-bottom: 6px;
  overflow-wrap: anywhere;
  transition: color .2s;
}
.contact-mail:hover { color: var(--red); }
.contact-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.contact-list li { border-bottom: 1px solid var(--line); }
.contact-list a, .contact-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  text-decoration: none;
}
.contact-list span:first-child { color: var(--muted); }
.contact-list a span:last-child { font-weight: 500; transition: color .2s; }
.contact-list a:hover span:last-child { color: var(--red); }
.services { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.services span { font-size: 14px; padding: 8px 14px; border-radius: 999px; background: var(--surface); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* ---------- Creative wall ---------- */
.wall {
  columns: 3 280px;
  column-gap: clamp(12px, 1.6vw, 24px);
}
.wall figure {
  margin: 0 0 clamp(12px, 1.6vw, 24px);
  break-inside: avoid;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.wall img { width: 100%; transition: transform .8s var(--ease); }
.wall figure:hover img { transform: scale(1.03); }
.wall figcaption {
  position: absolute;
  left: 12px; bottom: 12px;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s, transform .35s var(--ease);
}
.wall figure:hover figcaption { opacity: 1; transform: none; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0s !important; }
}

/* ---------- Imported Behance projects ---------- */
.figure--natural img { aspect-ratio: auto; object-fit: initial; }
.long { width: 100%; max-width: none; margin-inline: auto; display: grid; gap: clamp(16px, 2.4vw, 32px); }

.gif-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.gif-cell {
  margin: 0;
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(16px, 3vw, 40px);
  display: grid;
  place-items: center;
}
.gif-cell img { width: auto; max-width: 100%; height: auto; max-height: min(70vh, 620px); border-radius: 4px; box-shadow: 0 10px 30px rgba(21, 21, 21, .12); }
@media (max-width: 640px) { .gif-grid { grid-template-columns: 1fr; } }

.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.play {
  position: absolute;
  left: 50%; top: 50%;
  z-index: 2;
  width: 72px; height: 72px;
  margin: -36px 0 0 -36px;
  border-radius: 50%;
  background: var(--red);
  display: grid;
  place-items: center;
  transition: transform .35s var(--ease);
}
.play::before {
  content: "";
  margin-left: 5px;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent var(--white);
}
.card:hover .play { transform: scale(1.08); }

.credits { font-size: 14px; color: var(--muted); max-width: 70ch; }
.gif-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .gif-grid--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .gif-grid--3 { grid-template-columns: 1fr; } }
.gif-grid:has(> :only-child) { grid-template-columns: minmax(0, 720px); justify-content: center; }
.video-embed--4x3 { aspect-ratio: 4 / 3; width: 100%; max-width: 720px; margin-inline: auto; }

/* ---------- Product case study: flows, use cases, design system ---------- */
.flow-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.flow-head h3 { font-size: clamp(18px, 1.6vw, 22px); }
.flow-head span { font-size: 14px; color: var(--muted); }
.flow {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(82%, 640px);
  gap: clamp(16px, 2vw, 28px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 14px;
  scrollbar-width: thin;
}
.flow-step { margin: 0; scroll-snap-align: start; display: grid; gap: 12px; align-content: start; }
.flow-step .shot {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  /* no outline on imported visuals */
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
}
.flow-step .shot img { width: 100%; height: 100%; object-fit: contain; }
.flow-step figcaption { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 15px; }
.flow-step .n {
  grid-row: span 2;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  display: grid;
  place-items: center;
}
.flow-step strong { font-weight: 600; }
.flow-step small { color: var(--muted); font-size: 14px; line-height: 1.5; }
.flows { display: grid; gap: clamp(40px, 5vw, 64px); }

.usecases { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: clamp(16px, 2vw, 24px); }
.usecase {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--bg);
}
.usecase img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top left; background: var(--surface); border-bottom: 1px solid var(--line); }
.usecase div { padding: 20px; display: grid; gap: 8px; align-content: start; }
.usecase h3 { font-size: 18px; }
.usecase p { color: var(--muted); font-size: 15px; line-height: 1.55; }
.role { justify-self: start; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--surface); color: var(--text); }
.role--owner { background: #0080E2; color: #fff; }

.roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); }
.roles > div { border-radius: var(--radius); background: var(--surface); padding: 22px; display: grid; gap: 6px; align-content: start; }
.roles h3 { font-size: 17px; }
.roles p { color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .roles { grid-template-columns: 1fr; } }

.devices { display: flex; flex-wrap: wrap; gap: clamp(16px, 3vw, 40px); align-items: flex-end; justify-content: center; padding: clamp(24px, 4vw, 56px); background: var(--surface); border-radius: var(--radius); }
.devices img { height: auto; border-radius: 10px; box-shadow: 0 20px 50px rgba(21, 21, 21, .14); }
.devices .phone { width: min(260px, 70vw); }
.devices .tablet { width: min(420px, 90vw); }
.devices .desk { width: min(620px, 100%); }

.wires { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.wires figure { margin: 0; display: grid; gap: 8px; }
.wires img { border-radius: 6px; }
.wires figcaption { font-size: 13px; color: var(--muted); }
.wires--wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }

.token-group { display: grid; gap: 12px; }
.token-group h3 { font-size: 15px; color: var(--muted); font-weight: 600; }
.tokens { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.token { border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px var(--line); font-size: 13px; }
.token i { display: block; height: 64px; background-image: linear-gradient(45deg, #eee 25%, transparent 25%, transparent 75%, #eee 75%), linear-gradient(45deg, #eee 25%, transparent 25%, transparent 75%, #eee 75%); background-size: 12px 12px; background-position: 0 0, 6px 6px; position: relative; }
.token i::after { content: ""; position: absolute; inset: 0; background: var(--c); }
.token span { display: block; padding: 8px 10px 0; font-weight: 600; }
.token code { display: block; padding: 2px 10px 10px; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }

.typescale { border-top: 1px solid var(--line); font-family: "Inter", var(--font-text); }
.typescale div { display: grid; grid-template-columns: 180px 1fr auto; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.typescale span { font-family: var(--font-text); font-size: 14px; color: var(--muted); }
.typescale code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--muted); white-space: nowrap; }
@media (max-width: 640px) { .typescale div { grid-template-columns: 1fr; gap: 4px; } }

.comp-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: clamp(16px, 2vw, 24px); }
.comp-group { border-radius: var(--radius); padding: 22px; display: grid; gap: 16px; align-content: start; box-shadow: 0 0 0 1px var(--line); }
.comp-group h3 { font-size: 15px; font-weight: 600; }
.comp-group--surface { background: #EFF3F7; }
.comp-group--blue { background: #0080E2; color: #fff; }
.comp-group--blue h3 { color: #fff; }
.comp-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.comp-row img { max-width: 100%; height: auto; }

.boards { columns: 3 260px; column-gap: clamp(12px, 1.6vw, 20px); }
.boards a { display: block; break-inside: avoid; margin-bottom: clamp(12px, 1.6vw, 20px); text-decoration: none; }
.boards img { width: 100%; border-radius: 6px; transition: opacity .2s; }
.boards a:hover img { opacity: .85; }
.boards span { display: block; font-size: 13px; color: var(--muted); padding-top: 6px; }

.manual { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.manual img { border-radius: 4px; box-shadow: 0 8px 24px rgba(21, 21, 21, .1); }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stats div { border-radius: var(--radius); background: var(--surface); padding: 18px; }
.stats strong { display: block; font-family: var(--font-title); font-weight: var(--title-weight); font-size: clamp(24px, 3vw, 36px); line-height: 1.1; }
.stats span { font-size: 14px; color: var(--muted); }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr 1fr; } }
.case-section { grid-template-columns: minmax(0, 1fr); }
.flows > * { min-width: 0; }
/* hairline so white covers keep their edge on the white page */
.card-media { outline: 1px solid var(--line); outline-offset: -1px; }

/* GIFs placed inline as on Behance: centred, natural proportion, no frame */
.inline-gif { margin: 0 auto; max-width: 100%; }
.inline-gif img { display: block; width: 100%; height: auto; }

/* Subsection inside a case-study section: same two-column rhythm, one step smaller */
.case-text--sub { margin-top: clamp(16px, 2vw, 32px); }
.case-text--sub h3 { font-size: clamp(17px, 1.5vw, 21px); }
.case-text p strong { color: var(--text); font-weight: 600; }
.inline-gif figcaption.cap { text-align: center; }

/* Larger section numbers in case studies */
.case-section > .case-text:not(.case-text--sub) .eyebrow {
  font-family: var(--font-title);
  font-size: clamp(32px, 3.6vw, 52px);
  font-weight: var(--title-weight);
  line-height: 1;
  letter-spacing: normal;
  color: var(--red);
}
.case-section > .case-text:not(.case-text--sub) .eyebrow::before { display: none; }

/* ---------- Image viewer (mobile / touch) ---------- */
@media (max-width: 900px), (pointer: coarse) {
  .zoomable { cursor: zoom-in; }
}
.lb {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(16, 16, 18, .96);
  display: none;
  flex-direction: column;
  touch-action: none;
}
.lb.is-open { display: flex; }
.lb-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px 10px 16px;
  color: rgba(255, 255, 255, .7);
  font-size: 13px;
  flex: none;
}
.lb-bar button {
  appearance: none;
  border: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.lb-stage { position: relative; flex: 1; overflow: hidden; }
.lb-stage img {
  position: absolute;
  left: 0; top: 0;
  max-width: none;
  transform-origin: 0 0;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform;
}
body.lb-lock { overflow: hidden; }
/* keep native-width GIFs from stretching the column on small screens */
.long { grid-template-columns: minmax(0, 1fr); }
.long > * { min-width: 0; }

/* Homepage category numbers: same treatment as case-study section numbers */
.category-head .idx {
  font-size: clamp(32px, 3.6vw, 52px);
  font-weight: var(--title-weight);
  line-height: 1;
  letter-spacing: normal;
  margin-bottom: 14px;
}

/* ---------- Shots grid (animated Dribbble shots) ---------- */
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 36px) clamp(12px, 1.6vw, 24px); }
@media (max-width: 960px) { .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .shots { grid-template-columns: 1fr; } }
.shot { margin: 0; display: grid; gap: 10px; }
.shot-media { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.shot-media img { width: 100%; height: 100%; object-fit: cover; }
.shot figcaption { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; font-weight: 500; }
.shot figcaption a { text-decoration: none; color: var(--muted); transition: color .2s; }
.shot figcaption a:hover { color: var(--red); }

/* Hover frame brackets: smaller, using the logo's own L proportions
   (arm 18 × 22 units, stroke 4 units → 1 unit = 0.75px) */
.card-media::before,
.card-media::after { width: 13.5px; height: 16.5px; }
.card-media::before { top: 12px; left: 12px; border-top-width: 3px; border-left-width: 3px; transform: translate(6px, 6px); }
.card-media::after { bottom: 12px; right: 12px; border-bottom-width: 3px; border-right-width: 3px; transform: translate(-6px, -6px); }

/* ---------- Business-oriented case study (We-Dentify) ---------- */
.brand-intro { margin: 0 auto; width: min(800px, 100%); }
.brand-intro img { width: 100%; height: auto; display: block; }
.impact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); }
@media (max-width: 720px) { .impact { grid-template-columns: 1fr; } }
/* one feature per screen-height: more air between features */
.case-section.feature { padding-top: clamp(56px, 8vw, 112px); }
.case-section.feature .case-text--sub { margin-top: 0; }

/* Before / after comparison rows */
.compare { border-top: 1px solid var(--line); }
.compare-row { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px clamp(20px, 3vw, 48px); padding: clamp(20px, 2.4vw, 28px) 0; border-bottom: 1px solid var(--line); }
.compare-row h3 { font-size: clamp(17px, 1.4vw, 20px); }
.compare-row p { color: var(--muted); }
.compare-row .after { color: var(--text); }
.compare-head { padding: 0 0 12px; border-bottom: 1px solid var(--line); }
.compare-head span { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.compare-head span:last-child { color: var(--red); }
.compare-label { display: none; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
@media (max-width: 760px) {
  .compare-head { display: none; }
  .compare-row { grid-template-columns: 1fr; gap: 10px; }
  .compare-label { display: block; }
  .compare-row .after .compare-label { color: var(--red); }
}
.summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); }
.summary > div { background: var(--surface); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); display: grid; gap: 8px; align-content: start; }
.summary h3 { font-size: clamp(17px, 1.4vw, 20px); }
.summary p { color: var(--muted); }
@media (max-width: 760px) { .summary { grid-template-columns: 1fr; } }

/* Comparison rows: more air and an icon per process (icons from we-dentify.com) */
.compare-row { padding: clamp(28px, 3.4vw, 44px) 0; align-items: start; }
.compare-head { padding: 0 0 16px; }
.compare-title { display: grid; gap: 14px; justify-items: start; }
.compare-icon { width: 56px; height: 56px; border-radius: 50%; background: #0080E2; display: grid; place-items: center; }
.compare-icon img { width: 100%; height: 100%; }
@media (max-width: 760px) { .compare-title { grid-template-columns: auto 1fr; align-items: center; } .compare-icon { width: 48px; height: 48px; } }
/* Team cards with use-case illustrations */
.summary > div { justify-items: center; text-align: center; padding: clamp(28px, 3.4vw, 44px) clamp(22px, 3vw, 32px); gap: 12px; }
.summary img { width: clamp(108px, 10vw, 140px); height: auto; margin-bottom: 8px; }
.summary p { max-width: 30ch; }

/* ---------- Frame Lab logo page: thin light-gray stroke around each image ---------- */
.stroke-visuals figure img:not([data-gif]) { outline: 1px solid var(--line); outline-offset: -1px; }

/* ---------- We-Dentify impact cards ---------- */
.impact-card {
  position: relative; overflow: hidden; display: grid; gap: 12px; align-content: start;
  padding: clamp(24px, 3vw, 36px); border-radius: var(--radius);
  background: linear-gradient(160deg, #F2F9FE 0%, #FFFFFF 60%); border: 1px solid #DCEEF9;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.impact-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, #0AA1E6, #26BFB4); transform: scaleX(.18); transform-origin: left; transition: transform .6s var(--ease); }
.impact-card:hover { transform: translateY(-4px); border-color: #BFE3F6; box-shadow: 0 18px 40px rgba(10, 161, 230, .12); }
.impact-card:hover::before { transform: scaleX(1); }
.impact-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.impact-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: #0AA1E6; box-shadow: 0 8px 18px rgba(10, 161, 230, .28); }
.impact-icon svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.impact-card:nth-child(even) .impact-icon { background: #26BFB4; box-shadow: 0 8px 18px rgba(38, 191, 180, .28); }
.impact-num { font-family: var(--font-title); font-weight: 800; font-size: clamp(36px, 3.4vw, 48px); line-height: 1; color: #E1EFF8; }
.impact-card h3 { font-size: clamp(19px, 1.7vw, 23px); }
.impact-card p { color: var(--muted); max-width: 46ch; }
.impact-shift { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; font-weight: 600; }
.impact-shift span { padding: 6px 12px; border-radius: 999px; }
.impact-shift .was { background: #F1F1EF; color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(107, 107, 107, .5); }
.impact-shift .arrow { padding: 0; color: #0AA1E6; font-size: 16px; }
.impact-shift .now { background: #E3F4FC; color: #0679AE; }
.impact-card:nth-child(even) .impact-shift .arrow { color: #26BFB4; }
.impact-card:nth-child(even) .impact-shift .now { background: #E1F6F4; color: #138A82; }

/* ---------- Project meta: icons, bold labels, coloured tags ---------- */
.case-meta { gap: 28px 24px; align-items: start; }
.case-meta dt { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text); }
.meta-icon { width: 30px; height: 30px; flex: none; border-radius: 8px; display: grid; place-items: center; background: #FDE7EC; }
.meta-icon svg { width: 17px; height: 17px; fill: none; stroke: var(--red); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.case-meta dd { margin: 0; font-weight: 600; font-size: 16px; line-height: 1.45; }
.case-meta dd a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.meta-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-block; padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; line-height: 1.3; }
.tag--scope { background: #FDE7EC; color: #C70027; }
.tag--tools { background: #EEF0FF; color: #3F4BC4; }
.tag--platform { background: #E7F6EE; color: #17804A; }
.tag--format { background: #FFF2DE; color: #A35F00; }
.case-meta { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.meta-item--tools, .meta-item--scope { grid-column: span 2; }
@media (max-width: 720px) { .case-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Lists as plain text with red bullets: project details and contact services */
.meta-tags, .services { display: flex; flex-wrap: wrap; gap: 0; }
.services { font-size: 16px; font-weight: 600; line-height: 1.6; }
.case-meta .tag, .services span { display: inline; padding: 0; border-radius: 0; background: none; color: inherit; font: inherit; white-space: nowrap; }
.case-meta .tag:not(:last-child)::after,
.services span:not(:last-child)::after { content: "\00a0\2022\00a0"; color: var(--red); }
/* Each project detail in its own very light gray box */
.case-meta { gap: 12px; padding-block: 0; border-block: 0; align-items: stretch; }
.meta-item { background: #F8F8F7; border-radius: var(--radius); padding: 20px 22px 22px; }
.meta-icon { background: #fff; }
.meta-item { min-width: 0; overflow-wrap: anywhere; }
.case-meta .tag:only-child { white-space: normal; }
/* "Back to work" link and arrow in red */
.back, .back:hover { color: var(--red); }

/* Footer mark in white */
.footer-note img { filter: brightness(0) invert(1); }
/* Contact: single column, details right under the e-mail */
.contact { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.contact .contact-list { margin-top: 28px; }
.contact .services { margin-top: 32px; }
/* Inline text link */
.text-link { color: var(--red); font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* About: plain message */
.about-note { max-width: 860px; }
.about-note .lead { max-width: none; }
.about-wont { font-family: var(--font-title); font-weight: var(--title-weight); font-size: clamp(32px, 4vw, 56px); line-height: 1.05; color: var(--text); margin: 8px 0; }
.about-illo { margin: clamp(8px, 2vw, 24px) 0 0; width: min(440px, 100%); }
.about-illo img { display: block; width: 100%; height: auto; }

/* ---------- Creative wall: 100 random visuals in a tiled grid ---------- */
.wall--tiles { columns: auto; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: clamp(90px, 13vw, 200px); grid-auto-flow: dense; gap: clamp(6px, .8vw, 12px); }
.wall--tiles .tile { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--surface); break-inside: auto; }
.wall--tiles .tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease); }
.wall--tiles .tile:hover img { transform: scale(1.04); }
.wall--tiles .tile--wide { grid-column: span 2; }
.wall--tiles .tile--tall { grid-row: span 2; }
.wall--tiles .tile--big { grid-column: span 2; grid-row: span 2; }
@media (max-width: 900px) { .wall--tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 22vw; } }
@media (max-width: 560px) { .wall--tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 44vw; } }
.wall--tiles .tile--light { background: #F4F4F2; }
.wall--tiles .tile--light img { object-fit: contain; padding: 8%; mix-blend-mode: multiply; }
.wall--tiles .tile--video { position: relative; display: block; }
.tile-play { position: absolute; left: 50%; top: 50%; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%; background: rgba(21, 21, 21, .72); transition: transform .3s var(--ease), background .3s; }
.tile-play::after { content: ""; position: absolute; left: 24px; top: 19px; border-style: solid; border-width: 11px 0 11px 17px; border-color: transparent transparent transparent #fff; }
.tile--video:hover .tile-play { transform: scale(1.1); background: var(--red); }

/* Slideshow: stacked frames, one visible at a time */
.slideshow-frame { display: grid; }
.slideshow-frame .slide { grid-area: 1 / 1; width: 100%; height: auto; opacity: 0; }
.slideshow-frame .slide.is-active { opacity: 1; }
.slideshow-count { color: var(--muted); margin-left: 8px; font-variant-numeric: tabular-nums; }
/* stroke sits outside the frame so fading slides can never paint over it */
.stroke-visuals .slideshow-frame { outline: 1px solid var(--line); outline-offset: 0; }
.stroke-visuals .slideshow-frame .slide { outline: 0; }
.figure video { display: block; width: 100%; height: auto; }
.stroke-visuals figure video { outline: 1px solid var(--line); outline-offset: -1px; }
.slideshow-frame .slide { transition: opacity .5s ease-in-out; }
.solo-video { width: min(560px, 100%); margin-inline: auto; }

/* ---------- Sofascore case study ---------- */
.ownership-note { max-width: 760px; padding: 18px 22px; border-radius: var(--radius); background: #F8F8F7; border-left: 3px solid var(--red); font-size: 15px; line-height: 1.6; color: var(--muted); }
.ownership-note strong { color: var(--text); }
.meta-links { display: flex; flex-direction: column; gap: 4px; }
.meta-links a { color: var(--red); text-decoration: none; }
.meta-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.role-list { list-style: none; margin: 0; padding: 0; counter-reset: role; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.role-list li { counter-increment: role; background: #F8F8F7; border-radius: var(--radius); padding: 24px 24px 26px; display: grid; gap: 8px; align-content: start; }
.role-list li::before { content: counter(role, decimal-leading-zero); font-family: var(--font-title); font-weight: 800; font-size: 28px; line-height: 1; color: var(--red); margin-bottom: 6px; }
.role-list h3 { font-size: 18px; }
.role-list p { color: var(--muted); font-size: 15px; }
.screens { display: grid; gap: clamp(8px, 1.2vw, 16px); }
.screens img { width: 100%; height: auto; display: block; border-radius: var(--radius); }
.screens--phone { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.screens--tablet { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.screens--tv { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.screens--watch { grid-template-columns: repeat(3, minmax(0, 200px)); justify-content: center; margin-top: clamp(16px, 3vw, 40px); }
.screens--watch img { border-radius: 50%; }
@media (max-width: 560px) { .screens--phone { grid-template-columns: repeat(2, minmax(0, 1fr)); } .screens--tv { grid-template-columns: 1fr; } }

/* Sofascore: platform links */
.platform-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.platform-link { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 14px; background: #F8F8F7; color: var(--text); text-decoration: none; border: 1px solid transparent; transition: border-color .25s, transform .25s var(--ease), background .25s; }
.platform-link:hover { border-color: var(--text); transform: translateY(-2px); background: #fff; }
.platform-icon { width: 52px; height: 52px; flex: none; border-radius: 14px; display: grid; place-items: center; color: #fff; }
.platform-icon svg { width: 26px; height: 26px; }
.platform-link--web .platform-icon { background: #374DF5; }
.platform-link--ios .platform-icon { background: #151515; }
.platform-link--android .platform-icon { background: #1BAA55; }
.platform-text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.platform-text small { font-size: 13px; color: var(--muted); }
.platform-text strong { font-family: var(--font-title); font-size: clamp(18px, 1.6vw, 22px); font-weight: 700; line-height: 1.15; }
.platform-arrow { font-size: 20px; color: var(--muted); transition: color .2s; }
.platform-link:hover .platform-arrow { color: var(--red); }
@media (max-width: 760px) { .platform-links { grid-template-columns: 1fr; } }

/* Sofascore: device stages */
.stage { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; }
.stage--light { background: #F4F4F2; }
.stage--white { background: #fff; outline: 1px solid var(--line); outline-offset: -1px; }
.stage--blue { background: radial-gradient(120% 90% at 30% 10%, #5468FF 0%, #374DF5 45%, #2234C9 100%); }
.stage--dark { background: radial-gradient(120% 100% at 50% 0%, #2A2E36 0%, #121418 70%); }
.stage .device { position: absolute; height: auto; z-index: 2; filter: drop-shadow(0 24px 40px rgba(21, 21, 21, .22)) drop-shadow(0 4px 10px rgba(21, 21, 21, .12)); transition: transform .8s var(--ease); }
.stage .device--back { z-index: 1; }
.stage--blue .device { filter: drop-shadow(0 30px 50px rgba(8, 14, 80, .45)); }
.stage-label { position: absolute; z-index: 3; padding: 10px 16px; border-radius: 12px; background: #00C424; color: #fff; font-family: var(--font-title); font-weight: 800; font-size: clamp(18px, 2.2vw, 30px); box-shadow: 0 12px 30px rgba(0, 120, 30, .3); }
.stage .watch { position: absolute; width: 22%; aspect-ratio: 1; border-radius: 50%; box-shadow: 0 0 0 6px #2C3038, 0 20px 40px rgba(0, 0, 0, .5); }
.duo { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(12px, 2vw, 24px); align-items: stretch; }
.duo .stage { aspect-ratio: auto !important; min-height: 100%; }
.duo-store { margin: 0; border-radius: var(--radius); overflow: hidden; }
.duo-store img { width: 100%; height: 100%; object-fit: cover; display: block; }
.duo .stage .device { width: 48% !important; left: 26% !important; top: 7% !important; }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } .duo .stage { aspect-ratio: 4 / 5 !important; } }
.screens--tv { margin-top: clamp(12px, 2vw, 24px); }
.duo .stage { aspect-ratio: 4 / 5 !important; min-height: 0; }
.duo-store { position: relative; min-height: 320px; }
.duo-store img { position: absolute; inset: 0; object-position: top center; }
.stage-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); }
.stage-pair .stage { aspect-ratio: 4 / 5; }
@media (max-width: 760px) { .stage-pair { grid-template-columns: 1fr; } }


/* Thumbnails: no hover brackets; a thin light-gray stroke drawn above the (parallax) image */
.card-media::before { display: none; }
.card-media::after, .card:hover .card-media::after {
  display: block; content: ""; position: absolute; inset: 0; z-index: 2; width: auto; height: auto;
  border: 1px solid var(--line); border-radius: inherit; opacity: 1; transform: none; pointer-events: none;
}
.pair--fit { display: grid; gap: clamp(12px, 2vw, 24px); align-items: center; }
.pair--fit img { width: 100%; height: auto; display: block; }
@media (max-width: 720px) { .pair--fit { grid-template-columns: 1fr !important; } }

/* Video project galleries under the player */
.under-video { display: grid; gap: clamp(12px, 2vw, 24px); margin-top: clamp(24px, 4vw, 48px); }
.under-video .pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); }
.stills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); }
@media (max-width: 640px) { .stills, .under-video .pair { grid-template-columns: 1fr; } }
.video-embed video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }
.wall--tiles .tile video { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-meme { margin: clamp(8px, 2vw, 20px) 0 0; width: min(480px, 100%); }
.about-meme img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.about-meme figcaption { margin-top: 6px; font-size: 12px; }
.about-meme figcaption a { color: var(--muted); text-decoration: none; }
.role-list li::before { display: none; }
.role-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #FDE7EC; margin-bottom: 8px; }
.role-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--red); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card-year { font-weight: 500; color: var(--muted); white-space: nowrap; }
.title-year { color: var(--muted); font-weight: 500; white-space: nowrap; }

/* Category chips: red stroke by default, filled red on hover */
.chip { border-color: var(--red); }
.chip:hover { border-color: var(--red); background: var(--red); color: #fff; }
.chip:hover .count { color: rgba(255, 255, 255, .8); }

/* About: "Under the hood" workflow diagrams */
.under-hood { display: grid; gap: clamp(14px, 2vw, 20px); padding-block: clamp(56px, 8vw, 104px) 0; }
.under-hood-head { display: grid; gap: 14px; margin-bottom: clamp(8px, 2vw, 20px); }
.under-hood-head h2 { font-size: clamp(30px, 3.6vw, 48px); }
.tier { background: #F8F8F7; border-radius: 14px; padding: clamp(22px, 3vw, 36px); display: grid; gap: clamp(18px, 2.4vw, 28px); }
.tier-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 16px; }
.tier-num { font-family: var(--font-title); font-weight: 800; font-size: clamp(24px, 2.4vw, 32px); color: var(--red); line-height: 1; }
.tier-head h3 { font-size: clamp(20px, 2vw, 26px); flex: 1 1 auto; }
.tier-tools { display: flex; flex-wrap: wrap; align-items: center; font-size: 14px; font-weight: 600; }
.tier-tools-label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 10px; }
.tier-tools span:not(.tier-tools-label):not(:last-child)::after { content: "\00a0\2022\00a0"; color: var(--red); }
.flow { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 0; }
.flow-step { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; min-height: 52px; box-shadow: 0 1px 2px rgba(21, 21, 21, .04); }
.flow-step--end { border-color: var(--red); }
.flow-i { font-size: 11px; font-weight: 700; color: var(--red); font-variant-numeric: tabular-nums; }
.flow-label { font-size: 15px; font-weight: 600; line-height: 1.25; display: grid; gap: 2px; }
.flow-label small { font-size: 12px; font-weight: 500; color: var(--muted); }
.flow-arrow { display: grid; place-items: center; width: 34px; flex: none; }
.flow-arrow svg, .flow-loop svg { width: 20px; height: 20px; fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.flow-loop { display: flex; align-items: center; gap: 8px; margin-left: 14px; padding: 10px 16px; border-radius: 999px; background: var(--red); color: #fff; font-size: 14px; font-weight: 700; }
.flow-loop svg { stroke: #fff; }
@media (max-width: 720px) {
  .flow { flex-direction: column; align-items: stretch; }
  .flow-arrow { width: 100%; height: 28px; }
  .flow-arrow svg { transform: rotate(90deg); }
  .flow-loop { margin: 10px 0 0; align-self: flex-start; }
}
.tier-tools .tool { display: inline-flex; align-items: center; gap: 6px; }
.tool-logo { width: 16px; height: 16px; flex: none; }

/* We-Dentify impact cards in the Frame Lab tone: light gray cards, red icons and accents, no gradients */
.impact-card { background: #F8F8F7; border: 0; border-radius: 14px; box-shadow: none; }
.impact-card::before { display: none; }
.impact-card:hover { transform: none; box-shadow: none; background: #F4F4F2; }
.impact-icon, .impact-card:nth-child(even) .impact-icon { width: 44px; height: 44px; border-radius: 12px; background: #FDE7EC; box-shadow: none; }
.impact-icon svg { width: 24px; height: 24px; stroke: var(--red); }
.impact-num { font-size: clamp(24px, 2.4vw, 32px); color: var(--red); }
.impact-shift { font-size: 14px; }
.impact-shift .was { background: #fff; color: var(--muted); }
.impact-shift .arrow, .impact-card:nth-child(even) .impact-shift .arrow { color: var(--red); }
.impact-shift .now, .impact-card:nth-child(even) .impact-shift .now { background: var(--red); color: #fff; }
.impact-shift .now, .impact-card:nth-child(even) .impact-shift .now { background: #fff; color: var(--text); box-shadow: inset 0 0 0 1px var(--red); }
.platform-rating { display: grid; justify-items: end; font-family: var(--font-title); font-weight: 700; font-size: 18px; line-height: 1.1; margin-right: 4px; white-space: nowrap; }
.platform-rating small { font-family: var(--font-text); font-weight: 500; font-size: 12px; color: var(--muted); }
.platform-stars { color: #F5B700; margin-right: 4px; }
.platform-rating { grid-template-columns: auto auto; column-gap: 0; }
.platform-rating small { grid-column: 1 / -1; }
.platform-rating { display: block; justify-items: initial; grid-template-columns: none; margin: 4px 0 0; font-family: var(--font-text); font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.platform-rating b { color: var(--text); font-weight: 700; }
.platform-stars { margin: 0; }

/* MotaMeet case study */
.ui-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 3vw, 44px); padding: clamp(24px, 5vw, 72px); border-radius: var(--radius); align-items: start; }
.ui-row--light { background: #F4F4F2; }
.ui-row--dark { background: #2C1F47; }
.ui-row img { display: block; width: 100%; height: auto; border-radius: clamp(10px, 1.6vw, 22px); box-shadow: 0 18px 44px rgba(21, 21, 21, .16); }
.ui-row figure:nth-child(2) { margin-top: clamp(14px, 3vw, 44px) !important; }
.ui-row .cap { margin-top: 12px; text-align: center; }
.ui-row--dark .cap { color: rgba(255, 255, 255, .72); }
.moti-stage { display: grid; justify-items: center; gap: 20px; padding: clamp(20px, 4vw, 48px); background: #F4F4F2; border-radius: var(--radius); }
#moti-canvas { display: block; width: min(460px, 100%); aspect-ratio: 1; cursor: pointer; }
.moti-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.moti-btn { background: #fff; color: var(--text); cursor: pointer; font-family: inherit; }
.map-frame { outline: 1px solid var(--line); outline-offset: -1px; }
.map-link { display: block; }
.web-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); }
.web-pair .figure { outline: 1px solid var(--line); outline-offset: -1px; }
.carousel { display: grid; gap: 14px; }
.carousel + .carousel { margin-top: clamp(20px, 3vw, 36px); }
.carousel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.carousel-nav { display: flex; gap: 8px; }
.carousel-btn { width: 44px; height: 44px; border-radius: 12px; border: 0; padding: 0; display: grid; place-items: center; background: #FEE4E7; cursor: pointer; transition: background .2s; }
.carousel-btn svg { width: 24px; height: 24px; fill: none; stroke: #F24972; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: stroke .2s; }
.carousel-btn:hover { background: #F24972; }
.carousel-btn:hover svg { stroke: #fff; }
.carousel-track { display: flex; gap: clamp(10px, 1.4vw, 18px); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: thin; }
.carousel-track img { flex: none; width: clamp(200px, 23vw, 300px); height: auto; border-radius: var(--radius); scroll-snap-align: start; }
@media (max-width: 720px) {
  /* the three screens stay side by side and swipe sideways */
  .ui-row { display: flex; gap: 16px; padding: 24px 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; overscroll-behavior-x: contain; scrollbar-width: none; }
  .ui-row::-webkit-scrollbar { display: none; }
  .ui-row figure { flex: 0 0 51%; scroll-snap-align: center; }
  .ui-row figure:nth-child(2) { margin-top: 0 !important; }
  .web-pair { grid-template-columns: 1fr; } }

/* ---------- MotaMeet: diagrams, stages, feature lists ---------- */
.stage--sand { background: #F1EDE8; }
.stage--mint { background: #D8F5EA; }
.stage--pink { background: #FEE4E7; }
.stage--indigo { background: radial-gradient(120% 100% at 50% 0%, #4B3470 0%, #2C1F47 55%, #1B1030 100%); }
.stage--indigo .device { filter: drop-shadow(0 30px 50px rgba(10, 4, 30, .55)); }
.stage--trio .device { width: 21%; top: 19%; }
.stage--trio .device:nth-child(1) { left: 18.5%; }
.stage--trio .device:nth-child(2) { left: 38.5%; width: 23%; top: 11%; }
.stage--trio .device:nth-child(3) { left: 60.5%; }
.stage-tag { position: absolute; z-index: 3; padding: 10px 16px; border-radius: 12px; background: #F24972; color: #fff; font-family: var(--font-title); font-weight: 800; font-size: clamp(15px, 1.9vw, 26px); line-height: 1.1; white-space: nowrap; box-shadow: 0 12px 30px rgba(242, 73, 114, .35); }
.stage-tag--green { background: #0CC19E; box-shadow: 0 12px 30px rgba(12, 150, 120, .35); }
@media (max-width: 760px) {
  .stage--trio { aspect-ratio: 1 / 1.08; }
  .stage--trio .device { width: 33%; top: 14%; }
  .stage--trio .device:nth-child(1) { left: 1%; }
  .stage--trio .device:nth-child(2) { left: 31%; width: 38%; top: 5%; }
  .stage--trio .device:nth-child(3) { left: 66%; }
  .stage-tag { top: auto !important; bottom: 4%; left: 50% !important; transform: translateX(-50%); padding: 8px 14px; }
}

.role-list--mm .role-icon { background: #FEE4E7; }
.role-list--mm .role-icon svg { stroke: #F24972; }
.role-list--mm li:nth-child(2) .role-icon { background: #D8F5EA; }
.role-list--mm li:nth-child(2) .role-icon svg { stroke: #169378; }
.role-list--mm li:nth-child(3) .role-icon { background: #FEEBD2; }
.role-list--mm li:nth-child(3) .role-icon svg { stroke: #BF810D; }
.role-list--mm li:nth-child(4) .role-icon { background: #CFECFE; }
.role-list--mm li:nth-child(4) .role-icon svg { stroke: #117BA8; }

/* How it works: the loop */
.mm-loop { background: #F1EDE8; border-radius: var(--radius); padding: clamp(28px, 4.5vw, 56px) clamp(16px, 3vw, 40px); }
.mm-loop-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.mm-loop-steps li { position: relative; display: grid; justify-items: center; align-content: start; text-align: center; gap: 6px; padding: 0 10px; }
.mm-loop-steps li:not(:last-child)::after { content: ""; position: absolute; top: 31px; left: calc(50% + 42px); right: calc(-50% + 42px); border-top: 2px dashed rgba(44, 31, 71, .28); }
.mm-loop-steps li:not(:last-child)::before { content: ""; position: absolute; top: 27px; right: calc(-50% + 36px); border-left: 8px solid rgba(44, 31, 71, .4); border-block: 5px solid transparent; }
.mm-node { width: 64px; height: 64px; border-radius: 50%; background: var(--c); display: grid; place-items: center; margin-bottom: 8px; box-shadow: 0 10px 24px rgba(44, 31, 71, .14); }
.mm-node svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.mm-loop-steps b { font-family: var(--font-title); font-size: clamp(15px, 1.4vw, 18px); color: #2C1F47; }
.mm-loop-steps small { font-size: 14px; line-height: 1.4; color: var(--muted); }
.mm-loop-back { position: relative; height: 40px; margin: 18px 10% 18px; border: 2px dashed rgba(44, 31, 71, .28); border-top: 0; border-radius: 0 0 28px 28px; }
.mm-loop-back span { position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 50%); display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: #2C1F47; color: #fff; font-family: var(--font-title); font-weight: 700; font-size: 14px; white-space: nowrap; }
.mm-loop-back svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 760px) {
  .mm-loop-steps { grid-template-columns: 1fr; gap: 22px; }
  .mm-loop-steps li { grid-template-columns: 56px 1fr; justify-items: start; text-align: left; column-gap: 16px; row-gap: 2px; padding: 0; }
  .mm-node { width: 56px; height: 56px; margin: 0; grid-row: span 2; }
  .mm-loop-steps li:not(:last-child)::after { top: 60px; bottom: -20px; left: 27px; right: auto; border-top: 0; border-left: 2px dashed rgba(44, 31, 71, .28); }
  .mm-loop-steps li:not(:last-child)::before { display: none; }
  .mm-loop-back { height: auto; margin: 24px 0 0; border: 0; }
  .mm-loop-back span { position: static; transform: none; }
}

/* Getting set up: onboarding flow */
.mm-setup { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px; }
.mm-setup li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 18px 12px 20px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.mm-setup li:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: -21px; border-left: 9px solid #F24972; border-block: 6px solid transparent; transform: translateY(-50%); }
.mm-step { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #2C1F47; color: #fff; font-size: 13px; font-weight: 700; }
.mm-setup b { font-family: var(--font-title); font-size: 15px; line-height: 1.25; color: #2C1F47; }
.mm-setup small { font-size: 13px; color: var(--muted); }
.mm-moti { width: 72px; height: 72px; }
.mm-opts { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.mm-opts i { font-style: normal; font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; border: 1px solid #D6D0C8; color: #4F4943; }
.mm-opts i.on { background: #F24972; border-color: #F24972; color: #fff; }
.mm-motas { display: grid; grid-template-columns: repeat(3, 32px); gap: 6px; }
.mm-motas img { width: 32px; height: 32px; padding: 6px; border-radius: 50%; background: #F24972; }
.mm-setup-end { background: #2C1F47 !important; border-color: #2C1F47 !important; }
.mm-setup-end .mm-step { background: #F24972; }
.mm-setup-end b { color: #fff; }
.mm-big { font-family: var(--font-title); font-weight: 800; font-size: 40px; line-height: 1; color: #0CC19E; }
.mm-setup-end small { color: rgba(255, 255, 255, .7); }
@media (max-width: 1000px) {
  .mm-setup { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .mm-setup li::after { display: none; }
}
@media (max-width: 560px) { .mm-setup { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Matching: who shares which mota */
.mm-match { position: relative; aspect-ratio: 1000 / 600; background: #F1EDE8; border-radius: var(--radius); container-type: inline-size; font-family: var(--font-title); color: #2C1F47; }
.mm-match-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.mm-match-lines rect { fill: #fff; }
.mm-match-lines path { fill: none; stroke-width: 2.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.mm-match-lines .j { stroke: #0CC19E; }
.mm-match-lines .s { stroke: #F24972; }
.mm-mota { position: absolute; top: calc(48.3% - 4.5cqw); transform: translateX(-50%); display: grid; justify-items: center; gap: .9cqw; font-size: clamp(10px, 1.5cqw, 15px); font-weight: 600; white-space: nowrap; }
.mm-mota i { width: 9cqw; height: 9cqw; border-radius: 50%; background: #0CC19E; display: grid; place-items: center; }
.mm-mota i.own { background: #F24972; }
.mm-mota i.both { box-shadow: 0 0 0 .5cqw #fff, 0 0 0 1cqw #2C1F47; }
.mm-mota img { width: 62%; height: 62%; }
.mm-person { position: absolute; display: flex; align-items: center; gap: 1.4cqw; margin: -4cqw 0 0 -4cqw; }
.mm-person img { width: 8cqw; height: 8cqw; border-radius: 50%; object-fit: cover; border: .5cqw solid #fff; box-shadow: 0 6px 16px rgba(44, 31, 71, .18); flex: none; }
.mm-person > span { display: grid; gap: .5cqw; justify-items: start; }
.mm-person b { font-size: clamp(11px, 1.9cqw, 19px); white-space: nowrap; }
.mm-person em { font-style: normal; font-size: clamp(9px, 1.3cqw, 13px); font-weight: 700; color: #fff; background: #0CC19E; padding: .3cqw 1cqw; border-radius: 999px; }
.mm-person em.s { background: #F24972; }
.mm-person--r { flex-direction: row-reverse; margin: -4cqw 0 0 0; transform: translateX(calc(-100% + 4cqw)); }
.mm-person--r > span { justify-items: end; }
.mm-own { position: absolute; display: flex; align-items: center; gap: .8cqw; font-size: clamp(10px, 1.4cqw, 14px); font-weight: 700; color: #484985; }
.mm-own img { width: 3.6cqw; height: 3.6cqw; border-radius: 50%; object-fit: cover; }
@media (max-width: 560px) { .mm-mota { font-size: 9px; gap: 3px; } .mm-own { font-size: 9px; } }

/* ---------- About hero (big type) ---------- */
.about-hero { padding-block: clamp(64px, 11vw, 160px) clamp(24px, 4vw, 48px); }
.about-line {
  max-width: 16ch;
  margin: 0;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(36px, 6.7vw, 106px);
  line-height: 1.1;
  letter-spacing: -.035em;
  color: var(--text);
  text-wrap: balance;
}
.about-line .w { display: inline-block; }
.about-line .soft { font-weight: 400; color: var(--muted); }
.js .about-line .w { animation: heroWord .8s var(--ease) both; animation-delay: calc(var(--i) * 70ms + 120ms); }
@keyframes heroWord { from { opacity: 0; transform: translateY(.45em) rotate(3deg); } to { opacity: 1; transform: none; } }

.hero-link {
  position: relative;
  color: var(--red);
  text-decoration: none;
  white-space: nowrap;
  background: linear-gradient(var(--red), var(--red)) left 92% / 100% .07em no-repeat;
  transition: background-size .45s var(--ease), color .3s var(--ease);
  padding-inline: .04em;
  margin-inline: -.04em;
  border-radius: .08em;
}
.hero-link:hover, .hero-link:focus-visible { background-size: 100% 100%; color: var(--on-red); background-position: left bottom; }
.hero-arrow { display: inline-block; font-size: .62em; vertical-align: .55em; margin-left: .06em; transition: transform .35s var(--ease); }
.hero-link:hover .hero-arrow { transform: translate(.12em, -.12em); }

.bull-sym { display: inline-block; color: var(--red); min-width: 2.1ch; font-variant-numeric: tabular-nums; }
.bull:hover .bull-sym { cursor: default; }

.about-bye {
  display: flex; align-items: center; gap: .45em;
  margin: clamp(28px, 4vw, 56px) 0 0;
  font-size: clamp(22px, 2.6vw, 36px);
  font-weight: 500;
  color: var(--muted);
}
.bye-star { width: 1em; height: 1em; fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round; animation: byeSpin 9s linear infinite; }
.js .about-bye { animation: heroWord .8s var(--ease) both; animation-delay: 1.1s; }
@keyframes byeSpin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .js .about-line .w, .js .about-bye, .bye-star { animation: none; }
}

/* Under the hood: accented tier boxes */
.tier {
  position: relative;
  background: var(--surface);
  border-radius: 18px;
  padding: clamp(24px, 3.6vw, 48px);
  gap: clamp(22px, 3vw, 36px);
  overflow: hidden;
}
.tier::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--red); }
.tier-head { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px clamp(16px, 2.4vw, 32px); }
.tier-num { grid-row: span 2; font-size: clamp(52px, 7vw, 104px); font-weight: 800; letter-spacing: -.04em; line-height: .85; }
.tier-head h3 { font-size: clamp(26px, 3.2vw, 44px); letter-spacing: -.02em; line-height: 1.05; align-self: end; }
.tier-tools { align-self: start; }
.flow-step { border-color: transparent; box-shadow: 0 1px 2px rgba(21, 21, 21, .05); }
.flow-step--end { border-color: var(--red); }
.flow-loop { margin-left: 10px; padding: 12px 16px; min-height: 52px; border-radius: 12px; background: #fff; color: var(--text); font-size: 15px; font-weight: 600; box-shadow: 0 1px 2px rgba(21, 21, 21, .05); }
.flow-loop svg { stroke: var(--red); }
@media (max-width: 720px) {
  .tier-head { grid-template-columns: 1fr; }
  .tier-num { grid-row: auto; }
}

/* MotaMeet matching diagram v2: cards, dashed wires */
.mm-match { aspect-ratio: auto; background: none; overflow-x: auto; border-radius: var(--radius); }
.mm-match-svg { display: block; width: 100%; min-width: 680px; height: auto; font-family: var(--font-title); border-radius: var(--radius); }
.mm-match-svg .m-card { fill: #fff; }
.mm-match-svg .m-mine { fill: #F24972; }
.mm-match-svg .m-match { fill: #0CC19E; }
.mm-match-svg .m-def { fill: #fff; stroke: #484985; stroke-width: 2; }
.mm-match-svg .m-lbl { font-size: 11px; font-weight: 600; fill: #2C1F47; text-anchor: middle; }
.mm-match-svg .m-name { font-size: 22px; font-weight: 700; fill: #fff; letter-spacing: -.01em; }
.mm-match-svg .m-pill { font-size: 11px; font-weight: 700; fill: #fff; }
.mm-match-svg .m-pill-you { fill: #F24972; }
.mm-match-svg .m-pill-match { fill: #0CC19E; }
.mm-match-svg .m-wire { fill: none; stroke: #0CC19E; stroke-width: 1.6; stroke-dasharray: 5 5; stroke-linecap: round; }
.mm-match-svg .m-port { fill: #fff; stroke: #0CC19E; stroke-width: 1.6; }
.mm-match-svg .m-join { fill: #0CC19E; }
.mm-match-svg .m-legend text { font-size: 13px; font-weight: 600; fill: #2C1F47; }
@media (prefers-reduced-motion: reduce) { .js .mm-match.is-in .m-wire { animation: none; } }

/* About hero: simplified, one weight, one colour, red links only */
.about-line { font-weight: 600; letter-spacing: -.03em; }
.about-line .hero-link { color: var(--red); background: none; padding: 0; margin: 0; border-radius: 0; text-decoration: none; transition: opacity .2s; }
.about-line .hero-link:hover, .about-line .hero-link:focus-visible { color: var(--red); text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .12em; }
.about-bye { display: block; }

/* Under the hood: tools row at the bottom of each tier */
.tier-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding-top: clamp(16px, 2vw, 22px); border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.tier-tools span:not(.tier-tools-label):not(:last-child)::after { content: none; }
.tier-tools .tool { gap: 8px; }
.tier-tools .tool-logo { width: 18px; height: 18px; }
.tool--other { color: var(--muted); }
.tier-head .tier-num { grid-row: auto; }
.tier-head h3 { align-self: center; }

/* Work page: large section titles so each section start is obvious */
.category { padding-block: clamp(64px, 9vw, 128px) clamp(40px, 6vw, 72px); }
.category-head { align-items: end; margin-bottom: clamp(32px, 5vw, 64px); }
.category-head > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 clamp(14px, 2vw, 28px); }
.category-head .idx { font-size: clamp(48px, 7vw, 108px); font-weight: 800; letter-spacing: -.04em; line-height: .9; margin: 0; }
.category-head h2 { font-size: clamp(40px, 6vw, 92px); line-height: .98; letter-spacing: -.03em; margin: 0; }
.category-head { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.category-head > div { display: grid; gap: clamp(6px, 1vw, 12px); }
@media (max-width: 720px) { .category-head { grid-template-columns: 1fr; } }

/* Work-in-progress tag on case-study sections */
.wip-tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: #FFF4DB; color: #8A5A00; font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.wip-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #F2A516; }

/* 25% smaller figure grid (OPG product visuals) */
@media (min-width: 721px) { .stack--75 { width: 75%; margin-inline: auto; } }

/* MotaMeet — On the web */
.web-cta { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; padding: 14px 22px; border-radius: 999px; background: #F24972; color: #fff; font-weight: 700; text-decoration: none; transition: transform .25s var(--ease), background .25s; }
.web-cta:hover { background: #d93a62; transform: translateY(-2px); }
.web-cta span { transition: transform .25s var(--ease); }
.web-cta:hover span { transform: translate(2px, -2px); }
.web-stack { display: grid; gap: clamp(12px, 2vw, 24px); margin-bottom: clamp(12px, 2vw, 24px); }
.web-shot { margin: 0; }
.web-shot .figure { outline: 1px solid var(--line); outline-offset: -1px; }
.web-shot figcaption { margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--muted); }
.web-steps { row-gap: clamp(20px, 3vw, 36px); }

/* Sofascore — On the web */
.web-cta--sofa { background: #374DF5; }
.web-cta--sofa:hover { background: #2234C9; }
.stage .web-browser { border-radius: clamp(6px, 1vw, 14px); }
.stage .web-phone { border: clamp(3px, .5vw, 7px) solid #151515; border-radius: clamp(14px, 2.4vw, 34px); background: #151515; }
.web-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px) clamp(12px, 2vw, 24px); margin-top: clamp(20px, 3vw, 36px); }
.web-grid .stage { aspect-ratio: 4 / 3; }
@media (max-width: 760px) { .web-grid { grid-template-columns: 1fr; } }
