/* SP Portfolio — original starter. No frameworks, subscriptions, or external assets. */

/* ==========================================================================
   1. Design tokens (colours) — light theme is the default
   ========================================================================== */

:root {
  color-scheme: light;
  --bg: #f6f4ee;
  --surface: #eeebe3;
  --surface2: #e6e2d9;
  --ink: #182221;
  --muted: #5a6561;
  --line: #d7d3c8;
  --accent: #a64731;
  --accent-ink: #fff;
  --ghost: #fdfcf9;
  --marker: #d7ff74;
  --focus: #b2533b;
  --shadow: 0 24px 64px rgba(17, 29, 25, .06);
}

:root[data-theme=dark] {
  color-scheme: dark;
  --bg: #101817;
  --surface: #1c2825;
  --surface2: #27332e;
  --ink: #f4f2e9;
  --muted: #bac3ba;
  --line: #34433d;
  --accent: #ec977b;
  --accent-ink: #101817;
  --ghost: #151f1c;
  --marker: #d7ff74;
  --focus: #ffd39f;
  --shadow: 0 24px 64px rgba(0, 0, 0, .20);
}

/* ==========================================================================
   2. Base elements and typography
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
  transition: background .22s, color .22s;
}

a {
  color: inherit;
}

a:hover {
  text-decoration-color: var(--accent);
}

button {
  font: inherit;
}

::selection {
  background: var(--marker);
  color: #17211c;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
  border-radius: 3px;
}

p {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  line-height: 1.09;
  letter-spacing: -.044em;
  margin: 0;
  font-weight: 600;
}

h1 {
  font-size: clamp(3.65rem, 8.2vw, 8.6rem);
  letter-spacing: -.072em;
}

h2 {
  font-size: clamp(2.4rem, 5vw, 5.5rem);
  letter-spacing: -.06em;
}

h3 {
  font-size: clamp(1.35rem, 2.4vw, 2.1rem);
}

/* ==========================================================================
   3. Shared utilities
   ========================================================================== */

.serif {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -.065em;
}

.eyebrow {
  font-size: .69rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 750;
  color: var(--accent);
}

.subtle {
  color: var(--muted);
}

.small {
  font-size: .82rem;
}

.body-lg {
  font-size: clamp(1.02rem, 1.7vw, 1.32rem);
  line-height: 1.6;
  color: var(--muted);
}

.measure {
  max-width: 63ch;
}

.wrap {
  width: min(calc(100% - 60px), 1240px);
  margin-inline: auto;
}

.rule {
  border-top: 1px solid var(--line);
}

.skip {
  position: absolute;
  top: -100px;
  left: 15px;
  padding: 12px 18px;
  background: var(--marker);
  color: #111;
  z-index: 300;
}

.skip:focus {
  top: 12px;
}

/* Hidden on screen but still read aloud by screen readers. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   4. Header, navigation and theme toggle
   ========================================================================== */

.nav-shell {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav {
  min-height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

/* Brand: SP only — never a full name. The wordmark is plain text for now;
   it will be replaced by the SP logo from Figma (see the note in each page's header). */

.logo {
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.wordmark {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -.09em;
}

.logo-tagline {
  font-size: .65rem;
  letter-spacing: .14em;
  font-weight: 650;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-right {
  display: flex;
  gap: clamp(12px, 3vw, 40px);
  align-items: center;
}

.nav-right > a {
  text-decoration: none;
  font-size: .85rem;
  font-weight: 550;
  padding-block: 12px; /* taller tap area without changing the look */
  min-width: 24px;     /* minimum tap width (WCAG 2.2 target size) */
  text-align: center;
}

.nav-right > a:hover {
  color: var(--accent);
}

/* Theme toggle — an icon-only circle in the same thin-line style as the hero arrow.
   Light mode shows a moon (switch to dark); dark mode shows a sun (switch to light).
   The hidden screen-reader label is swapped at the same time. */

.theme-btn {
  position: relative;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}

.theme-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.theme-icon {
  width: 20px;
  height: 20px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-icon-sun,
.theme-text-to-light {
  display: none;
}

:root[data-theme=dark] .theme-icon-sun {
  display: block;
}

:root[data-theme=dark] .theme-text-to-light {
  display: inline;
}

:root[data-theme=dark] .theme-icon-moon,
:root[data-theme=dark] .theme-text-to-dark {
  display: none;
}

/* Without JavaScript the toggle cannot work, so hide it rather than show a dead button. */
:root:not([data-theme]) .theme-btn {
  display: none;
}

/* ==========================================================================
   5. Shared components (used on more than one page)
   ========================================================================== */

.section-intro {
  margin-top: 25px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 7px;
  align-self: flex-start;
  margin-top: 28px;
}

.text-link:hover {
  color: var(--accent);
}

.footer {
  padding: 62px 0 35px;
  border-top: 1px solid var(--line);
}

.footer-bottom {
  margin-top: 65px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  font-size: .78rem;
  color: var(--muted);
}

/* Footer "Back to top" link: a 24px+ click/tap area with no layout change
   (the padding is cancelled out by an equal negative margin). */
.footer-bottom a {
  padding-block: 3px;
  margin-block: -3px;
}

.footer-bottom--flush {
  margin-top: 0;
}

/* Shared footer contact links — accessible icon-only links with 44px targets. */
.contact-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.contact-link {
  flex: 0 0 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  text-decoration: none;
  transition: color .2s, border-color .2s;
}

.contact-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.contact-link svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Override generic footer link padding so the icon buttons remain 44px. */
.footer-bottom .contact-links {
  margin-top: 0;
}

.footer-bottom .contact-link {
  padding: 0;
  margin: 0;
}

/* ==========================================================================
   6. Case study pages
   ========================================================================== */

.page-hero {
  padding: 90px 0 80px;
}

.back-link {
  font-size: .81rem;
  text-decoration: none;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  /* 3px of padding gives a 24px+ click/tap area; the matching -3px top margin
     and 3px smaller bottom margin keep the layout exactly where it was. */
  padding-block: 3px;
  margin-top: -3px;
  margin-bottom: 53px;
  color: var(--muted);
}

.page-hero h1 {
  font-size: clamp(3.6rem, 7vw, 7.9rem);
  max-width: 1120px;
  margin-top: 24px;
}

.page-hero .intro {
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  color: var(--muted);
  max-width: 800px;
  margin-top: 38px;
  line-height: 1.55;
}

.details-row {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  padding: 27px 0;
  margin-top: 60px;
}

.details-row dt {
  font-size: .68rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 650;
}

.details-row dd {
  margin: 8px 0 0;
  font-size: .95rem;
}

.journey-banner {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 40px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.journey-banner .serif {
  font-size: clamp(2.4rem, 5vw, 5.5rem);
  line-height: 1.02;
}

.journey-banner p {
  font-size: 1.16rem;
  color: var(--muted);
  align-self: center;
}

/* Statistics */

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 34px 0 20px;
}

.stat {
  background: var(--surface);
  padding: clamp(26px, 5vw, 58px);
}

.stat strong {
  display: block;
  font-size: clamp(4.4rem, 9vw, 8rem);
  font-weight: 580;
  line-height: 1;
  letter-spacing: -.08em;
}

.stat p {
  font-size: 1.02rem;
  margin-top: 20px;
  max-width: 26ch;
}

.stat .eyebrow {
  margin-bottom: 18px;
}

.source-note {
  max-width: 800px;
  font-size: .8rem;
  color: var(--muted);
  line-height: 1.65;
}

.source-note a {
  text-underline-offset: 3px;
}

.source-note--spaced {
  margin-top: 22px;
}

/* Research methods */

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

.method {
  padding: 27px;
  background: var(--surface);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.method .num {
  color: var(--accent);
  font-size: .72rem;
  font-weight: 700;
}

.method h3 {
  font-size: 1.4rem;
  margin: 25px 0 10px;
}

.method p {
  font-size: .9rem;
  color: var(--muted);
}

/* Continuous research workflow diagram */

.workflow {
  background: var(--surface);
  padding: clamp(20px, 4vw, 50px);
  margin-top: 40px;
  border: 1px solid var(--line);
}

.workflow-row {
  display: grid;
  grid-template-columns: 180px repeat(3, 1fr);
  gap: 9px;
  align-items: stretch;
  margin: 9px 0;
}

.workflow-row > * {
  padding: 17px;
}

.workflow-row .row-name {
  display: flex;
  align-items: center;
  font-weight: 650;
  font-size: .84rem;
}

.workflow-cell {
  background: var(--bg);
  font-size: .83rem;
  display: grid;
  place-items: center;
  text-align: center;
  border-top: 3px solid var(--accent);
}

.loop {
  border: 1px dashed var(--accent);
  border-radius: 40px;
  margin-top: 22px;
  padding: 14px;
  text-align: center;
  color: var(--accent);
  font-size: .82rem;
}

.research-caption {
  font-size: .76rem;
  color: var(--muted);
  margin-top: 18px;
}

/* Service blueprint */

.blueprint {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 35px;
}

.bp-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 25px;
}

.bp-card .eyebrow {
  margin-bottom: 26px;
}

.bp-card h3 {
  font-size: 1.4rem;
  margin-bottom: 26px;
}

.bp-sub {
  font-size: .66rem;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: var(--accent);
  font-weight: 700;
  margin: 22px 0 6px;
}

.bp-card p {
  font-size: .88rem;
  color: var(--muted);
}

/* Opportunities */

.priority-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 30px;
}

.priority-card {
  border-top: 3px solid var(--accent);
  background: var(--surface);
  padding: 30px;
  min-height: 270px;
}

.priority-card h3 {
  margin: 38px 0 14px;
}

.priority-card p {
  color: var(--muted);
  font-size: .92rem;
}

/* Contribution, disclosure and article layout */

.quote-block {
  padding: 50px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 35px;
}

.quote-block blockquote {
  font-size: clamp(1.55rem, 3vw, 3rem);
  max-width: 980px;
  line-height: 1.25;
  letter-spacing: -.035em;
  margin: 16px 0 0;
}

.disclosure {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  padding: 35px 0;
}

.disclosure p {
  color: var(--muted);
  line-height: 1.7;
  margin-top: 20px;
}

.article-top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-bottom: 28px;
}

.reading-num {
  color: var(--accent);
  font-size: .71rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.article-section {
  padding: 95px 0;
}

.article-section h2 {
  max-width: 950px;
}

.callout {
  border-left: 3px solid var(--accent);
  padding-left: 26px;
  font-size: 1.15rem;
  max-width: 760px;
  margin-top: 24px;
}

.next-project {
  padding-bottom: 95px;
}

.newsletter {
  background: var(--surface);
  padding: 50px;
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: center;
}

.newsletter h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

/* ==========================================================================
   7. Responsive — tablets and small laptops (900px and below)
   ========================================================================== */

@media (max-width: 900px) {

  .details-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .blueprint {
    grid-template-columns: repeat(2, 1fr);
  }

  .workflow-row {
    grid-template-columns: 135px repeat(3, 1fr);
  }

  .workflow-row > * {
    padding: 12px;
  }

  .disclosure {
    grid-template-columns: 1fr;
  }

  .journey-banner {
    gap: 25px;
  }
}

/* ==========================================================================
   8. Responsive — phones (630px and below)
   ========================================================================== */

@media (max-width: 630px) {
  .wrap {
    width: min(calc(100% - 34px), 1240px);
  }

  .nav {
    min-height: 68px;
  }

  .nav-right {
    gap: 13px;
  }

  .nav-right > a {
    font-size: .78rem;
  }

  .logo-tagline {
    display: none;
  }

  .stat-grid,
  .method-grid,
  .priority-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    align-items: start;
    flex-direction: column;
  }

  .page-hero {
    padding: 56px 0;
  }

  .page-hero h1 {
    font-size: clamp(3.1rem, 12vw, 5.8rem);
  }

  .page-hero .intro {
    margin-top: 25px;
  }

  .back-link {
    margin-bottom: 32px;   /* 35px minus the 3px of padding added above */
  }

  .details-row {
    gap: 22px 12px;
    margin-top: 42px;
  }

  .journey-banner {
    display: block;
  }

  .journey-banner p {
    margin-top: 20px;
  }

  .stat {
    padding: 30px;
  }

  .stat strong {
    font-size: 5.3rem;
  }

  /* Workflow diagram: keep the three cycles side by side so the parallel
     workstreams still line up; each workstream name sits above its row. */
  .workflow {
    padding: 20px 12px;
  }

  .workflow-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin: 0 0 16px;
  }

  .workflow-row .row-name {
    grid-column: 1 / -1;
    padding: 0 2px;
    font-size: .8125rem;
  }

  .workflow-row > .workflow-cell {
    min-height: 64px;
    padding: 10px 6px;
    font-size: .75rem;
    line-height: 1.3;
    text-wrap: balance; /* "Collect /" + "Cycle A", not "Collect / Cycle" + "A" */
  }

  .blueprint {
    grid-template-columns: 1fr;
  }

  .bp-card {
    padding: 26px;
  }

  .article-section {
    padding: 65px 0;
  }

  .article-top {
    margin-bottom: 24px;
  }

  .newsletter {
    display: block;
    padding: 28px;
  }

  .newsletter .text-link {
    margin-top: 27px;
  }
}

/* ==========================================================================
   9. Responsive — very narrow phones (below 360px)
   ========================================================================== */

/* Shorten the nav link to "Lab" on screen; screen readers still hear "Vibe Coding Lab". */
@media (max-width: 359px) {
  .nav-label-long {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }
}

/* ==========================================================================
   10. Reduced motion — respect the visitor's operating-system setting
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body {
    transition: none !important;
  }
}

/* ==========================================================================
   11. Homepage (index.html only)
   Every rule here is scoped to body.home or uses an hp- class, so the
   case study pages are never affected.
   ========================================================================== */

/* Homepage dark palette — "cinematic charcoal".
   Scoped to the homepage for now; move into section 1 when the case study
   is redesigned so both pages share it. */
:root[data-theme=dark] .home {
  --bg: #141311;
  --surface: #1c1b18;
  --surface2: #26241f;
  --ink: #f3efe7;
  --muted: #b5aea3;
  --line: #3a3631;
  --accent: #e58d70;
  --accent-ink: #141311;
}

/* Dark "scene" colours, used by the flagship cover and the Lab band in both themes. */
.hp-cover--dark,
.hp-lab {
  --ink: #f3efe7;
  --muted: #b5aea3;
  --line: #45403a;
  --accent: #e58d70;
  --focus: #ffd39f;
  --surface: #1c1b18;
  color: var(--ink);
}

.hp-keep-case {
  text-transform: none;
}

.hp-nowrap {
  white-space: nowrap;
}

/* Even out line lengths in headings, so no word is left alone on a line. */
.hp-section__title,
.hp-feature__title,
.hp-card__title,
.hp-experiment__title,
.hp-about__lead,
.hp-footer__statement {
  text-wrap: balance;
}

/* --- Shared homepage parts ------------------------------------------------ */

.hp-index {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: .75rem;
  font-weight: 650;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.hp-index span {
  color: var(--accent);
}

.hp-kicker {
  font-size: .75rem;
  font-weight: 650;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}

.hp-section {
  padding-block: clamp(88px, 11vw, 168px);
  border-top: 1px solid var(--line);
}

.hp-section__head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  margin-bottom: clamp(48px, 6vw, 88px);
}

.hp-section__head > .hp-index {
  grid-column: 1 / span 3;
  padding-top: 1.1em;
}

.hp-section__head > div {
  grid-column: 4 / -1;
}

.hp-section__intro {
  max-width: 38em;
  margin-top: 28px;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  color: var(--muted);
}

/* --- Hero ----------------------------------------------------------------- */

.hp-hero {
  padding: clamp(64px, 10vw, 152px) 0 clamp(80px, 10vw, 152px);
}

.hp-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: clamp(36px, 5vw, 72px);
  font-size: .75rem;
  font-weight: 650;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.hp-hero__eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.hp-hero__title {
  font-size: clamp(2.9rem, 7.6vw, 7.4rem);
  line-height: .98;
  letter-spacing: -.068em;
  font-weight: 600;
}

.hp-hero__line {
  display: block;
}

/* Editorial offset: the second line steps in by one column on wide screens. */
.hp-hero__line + .hp-hero__line {
  padding-left: calc((100% + 24px) / 12);
}

.hp-hero__title .serif {
  color: var(--accent);
  letter-spacing: -.05em;
}

.hp-hero__foot {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  margin-top: clamp(48px, 7vw, 104px);
}

.hp-hero__intro {
  grid-column: 7 / -1;
  max-width: 32em;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  line-height: 1.55;
  color: var(--muted);
}

.hp-button {
  grid-column: 7 / -1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  margin-top: 36px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: .95rem;
  font-weight: 650;
  text-decoration: none;
  transition: background-color .2s, color .2s;
}

.hp-button:hover {
  background: var(--accent);
  color: var(--bg);
}

.hp-button__icon,
.hp-link__icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .2s;
}

.hp-button:hover .hp-button__icon {
  transform: translateY(3px);
}

/* --- Project covers (abstract, labelled "Illustrative") ------------------- */

.hp-cover {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(22px, 3vw, 40px);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  transition: border-color .2s;
}

/* Viewfinder corner marks — a quiet nod to film framing. */
.hp-cover::after {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: 2;
  pointer-events: none;
  opacity: .45;
  background:
    linear-gradient(currentColor 0 0) top left / 14px 1px,
    linear-gradient(currentColor 0 0) top left / 1px 14px,
    linear-gradient(currentColor 0 0) top right / 14px 1px,
    linear-gradient(currentColor 0 0) top right / 1px 14px,
    linear-gradient(currentColor 0 0) bottom left / 14px 1px,
    linear-gradient(currentColor 0 0) bottom left / 1px 14px,
    linear-gradient(currentColor 0 0) bottom right / 14px 1px,
    linear-gradient(currentColor 0 0) bottom right / 1px 14px;
  background-repeat: no-repeat;
}

.hp-cover__bar {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  white-space: nowrap;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.hp-cover--dark {
  background: #1c1b18;
}

.hp-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hp-art__dot {
  fill: var(--muted);
  opacity: .4;
}

.hp-art__line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
}

.hp-art__node {
  fill: var(--surface);
  stroke: var(--ink);
  stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
}

.hp-art__node--accent,
.hp-art__fill-accent {
  fill: var(--accent);
  stroke: var(--accent);
}

.hp-art__fill-ink {
  fill: var(--ink);
}

.hp-art__route {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-dasharray: 4 6;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.hp-art__faint {
  opacity: .35;
}

/* --- Selected work: flagship ---------------------------------------------- */

.hp-feature {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
}

.hp-feature__cover {
  grid-column: 1 / span 7;
  min-height: 540px;
}

/* Large hairline arc behind the journey */
.hp-feature__cover::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 640px;
  height: 640px;
  right: -260px;
  bottom: -420px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.hp-journey__quote {
  position: relative;
  max-width: 12em;
  margin: 48px 0;
  font-size: clamp(1.6rem, 2.8vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -.045em;
}

.hp-journey {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

/* The line runs from the first stop to the last stop. */
.hp-journey::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  width: 75%;
  height: 1px;
  background: var(--muted);
}

.hp-journey li {
  position: relative;
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 32px 12px 0 0;
}

.hp-journey li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 13px;
  height: 13px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: #1c1b18;
}

.hp-journey strong {
  font-size: .95rem;
  font-weight: 650;
}

.hp-journey span {
  font-size: .8125rem;
  color: var(--muted);
}

.hp-feature__body {
  grid-column: 8 / -1;
  display: flex;
  flex-direction: column;
  padding: 4px 0 0 clamp(0px, 2vw, 24px);
}

.hp-feature__title {
  margin: 20px 0 22px;
  font-size: clamp(2rem, 3.4vw, 3.3rem);
  line-height: 1.04;
  letter-spacing: -.05em;
}

.hp-feature__text {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--muted);
}

.hp-facts {
  margin: 32px 0 0;
  border-top: 1px solid var(--line);
}

.hp-facts > div {
  display: grid;
  grid-template-columns: 9.5em 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.hp-facts dt {
  padding-top: .2em;
  font-size: .75rem;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.hp-facts dd {
  margin: 0;
  font-size: .95rem;
}

.hp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.hp-tags li {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .75rem;
  color: var(--muted);
}

.hp-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 12px;
  margin-top: 36px;
  padding-bottom: 6px;
  border-bottom: 1px solid currentColor;
  font-size: .95rem;
  font-weight: 650;
  text-decoration: none;
}

/* Makes the whole flagship card clickable while keeping a single link. */
.hp-feature__link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.hp-feature:hover .hp-link {
  color: var(--accent);
}

.hp-feature:hover .hp-link__icon {
  transform: translateX(4px);
}

.hp-feature:hover .hp-feature__cover {
  border-color: var(--accent);
}

/* --- Selected work: supporting projects (staggered) ----------------------- */

.hp-projects {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 64px;
  align-items: start;
  margin-top: clamp(72px, 9vw, 136px);
}

.hp-card {
  grid-column: 1 / span 7;
}

.hp-card--offset {
  grid-column: 9 / -1;
  margin-top: clamp(80px, 12vw, 200px);
}

.hp-card__cover {
  aspect-ratio: 16 / 11;
}

.hp-card--offset .hp-card__cover {
  aspect-ratio: 4 / 5;
}

.hp-card__body {
  padding-top: 28px;
}

.hp-card__title {
  margin: 14px 0 12px;
  font-size: clamp(1.6rem, 2.4vw, 2.25rem);
  letter-spacing: -.045em;
}

.hp-card__text {
  max-width: 34em;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
}

/* Typographic project covers are illustrative placeholders, not deliverable screenshots. */
.hp-cover--placeholder {
  background: var(--surface2);
}

.hp-cover__graphic {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 24px 12px;
}

.hp-cover__graphic::before {
  content: "";
  position: absolute;
  width: min(60%, 210px);
  aspect-ratio: 1;
  border: 1px solid var(--accent);
  border-radius: 50%;
  opacity: .6;
}

.hp-cover__graphic-num {
  position: relative;
  font-size: clamp(4.5rem, 9vw, 8rem);
  line-height: 1;
  letter-spacing: -.1em;
  font-weight: 600;
}

.hp-cover__graphic-label {
  position: relative;
  font-size: .75rem;
  letter-spacing: .14em;
  font-weight: 650;
  text-align: center;
  color: var(--muted);
}

/* Status line: a hollow ring means "not launched / not public yet". */
.hp-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  font-size: .75rem;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}

.hp-status::before {
  content: "";
  flex: 0 0 8px;
  height: 8px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

/* --- Vibe Coding Lab: a darker band, like a scene change ------------------- */

.hp-lab {
  background: #1c1b18;
}

:root[data-theme=dark] .hp-lab {
  border-block: 1px solid var(--line);
}

.hp-lab .hp-section,
.hp-lab + .hp-section {
  border-top: 0;
}

.hp-experiments {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-left: calc((100% + 24px) / 4);
}

/* Dashed borders signal work that is still in progress. */
.hp-experiment {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 40px);
  border: 1px dashed var(--line);
}

.hp-experiment__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.hp-mono {
  font-size: .75rem;
  font-weight: 650;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.hp-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
}

.hp-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.hp-glyph {
  width: 240px;
  max-width: 100%;
  height: auto;
  margin: 40px 0 32px;
}

.hp-lab .hp-art__node {
  fill: #1c1b18;
}

.hp-experiment__title {
  font-size: clamp(1.6rem, 2.4vw, 2.25rem);
  letter-spacing: -.045em;
}

.hp-experiment__text {
  margin-top: 12px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
}

.hp-experiment__note {
  margin-top: auto;
  padding-top: 28px;
  font-size: .75rem;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- About ---------------------------------------------------------------- */

.hp-about {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 32px;
}

.hp-about__lead {
  grid-column: 4 / span 8;
  font-size: clamp(1.5rem, 2.6vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -.035em;
}

.hp-about__body {
  grid-column: 8 / -1;
  display: grid;
  gap: 16px;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--muted);
}

/* Career "reel": six confirmed stages, with overlapping education and work. */
.hp-reel {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: clamp(64px, 8vw, 112px) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.hp-reel__frame {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 28px 20px 8px;
  border-left: 1px solid var(--line);
}

.hp-reel__frame:first-child {
  padding-left: 0;
  border-left: 0;
}

/* Frame marker sitting on the rule */
.hp-reel__frame::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 32px;
  height: 3px;
  background: var(--ink);
}

.hp-reel__frame:not(:first-child)::before {
  left: 20px;
}

.hp-reel__frame--now::before {
  background: var(--accent);
}

.hp-reel__num {
  margin-bottom: 8px;
  font-size: .75rem;
  font-weight: 650;
  letter-spacing: .14em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.hp-reel__title {
  font-size: 1.1rem;
  font-weight: 650;
  letter-spacing: -.02em;
}

.hp-reel__meta {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.hp-reel__frame p {
  margin-top: 6px;
  font-size: .95rem;
  line-height: 1.5;
  color: var(--muted);
}

/* --- Footer ---------------------------------------------------------------- */

.hp-footer {
  padding: clamp(72px, 9vw, 128px) 0 36px;
  border-top: 1px solid var(--line);
}

.hp-footer__top {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
}

.hp-footer__top .hp-index {
  grid-column: 1 / span 3;
  padding-top: 1.1em;
}

.hp-footer__statement {
  grid-column: 4 / -1;
  font-size: clamp(2.4rem, 5.4vw, 5.25rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.06em;
}

.hp-footer__statement .serif {
  color: var(--accent);
}

.hp-footer__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 32px;
  margin-top: clamp(64px, 8vw, 112px);
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.hp-footer__brand {
  grid-column: 1 / span 3;
}

.hp-footer__brand p,
.hp-footer__contact p:not(.hp-footer__label) {
  margin-top: 6px;
  font-size: .95rem;
  color: var(--muted);
}

.hp-footer__nav {
  grid-column: 4 / span 5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hp-footer__nav a {
  padding-block: 6px;
  font-size: .95rem;
  text-decoration: none;
}

.hp-footer__nav a:hover {
  color: var(--accent);
}

.hp-footer__contact {
  grid-column: 9 / -1;
}

.hp-footer__label {
  font-size: .75rem;
  font-weight: 650;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.hp-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-top: 56px;
  font-size: .8125rem;
  color: var(--muted);
}

/* "Back to top": a 24px+ click/tap area with no layout change */
.hp-footer__bottom a {
  padding-block: 3px;
  margin-block: -3px;
}

/* --- Homepage: tablets and small laptops (900px and below) ---------------- */

@media (max-width: 900px) {
  .hp-section__head,
  .hp-footer__top {
    display: block;
  }

  .hp-section__head > .hp-index,
  .hp-footer__top .hp-index {
    margin-bottom: 24px;
    padding-top: 0;
  }

  .hp-hero__line + .hp-hero__line {
    padding-left: 0;
  }

  .hp-hero__intro,
  .hp-button {
    grid-column: 1 / -1;
  }

  .hp-feature {
    display: block;
  }

  .hp-feature__cover {
    min-height: 460px;
  }

  .hp-feature__body {
    padding: 36px 0 0;
  }

  .hp-projects {
    grid-template-columns: 1fr 1fr;
  }

  .hp-card,
  .hp-card--offset {
    grid-column: auto;
    margin-top: 0;
  }

  .hp-card__cover,
  .hp-card--offset .hp-card__cover {
    aspect-ratio: 4 / 3;
  }

  .hp-experiments {
    margin-left: 0;
  }

  .hp-about__lead,
  .hp-about__body {
    grid-column: 1 / -1;
  }

  .hp-about__body {
    max-width: 38em;
  }

  /* Reel becomes a vertical list of frames */
  .hp-reel {
    grid-template-columns: 1fr;
  }

  .hp-reel__frame,
  .hp-reel__frame:first-child {
    display: grid;
    grid-template-columns: 3.5rem 1fr;
    column-gap: 16px;
    row-gap: 4px;
    padding: 24px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .hp-reel__frame:not(:first-child)::before {
    left: 0;
  }

  .hp-reel__num {
    grid-row: 1 / span 3;
    margin: 0;
    padding-top: .25em;
  }

  .hp-reel__frame p {
    grid-column: 2;
    margin-top: 2px;
  }

  .hp-footer__brand {
    grid-column: 1 / span 4;
  }

  .hp-footer__nav {
    grid-column: 5 / span 4;
  }

  .hp-footer__contact {
    grid-column: 9 / -1;
  }
}

/* --- Homepage: phones (630px and below) ------------------------------------ */

@media (max-width: 630px) {
  .hp-hero__eyebrow::after {
    display: none;
  }

  .hp-feature__cover {
    min-height: 0;
  }

  .hp-journey__quote {
    margin: 36px 0 32px;
  }

  /* Journey: the line turns vertical so labels stay readable */
  .hp-journey {
    grid-template-columns: 1fr;
  }

  .hp-journey::before {
    display: none;
  }

  .hp-journey li {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 10px;
    padding: 0 0 18px 32px;
  }

  .hp-journey li:last-child {
    padding-bottom: 0;
  }

  .hp-journey li::before {
    top: 3px;
  }

  .hp-journey li::after {
    content: "";
    position: absolute;
    top: 16px;
    bottom: -3px;
    left: 6px;
    width: 1px;
    background: var(--muted);
  }

  .hp-journey li:last-child::after {
    display: none;
  }

  .hp-journey strong {
    font-size: 1rem;
  }

  .hp-facts > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .hp-projects,
  .hp-experiments {
    grid-template-columns: 1fr;
  }

  .hp-projects {
    row-gap: 56px;
  }

  .hp-footer__brand,
  .hp-footer__nav,
  .hp-footer__contact {
    grid-column: 1 / -1;
  }
}

/* --- Homepage: reduced motion ---------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .hp-button,
  .hp-button__icon,
  .hp-link__icon,
  .hp-cover {
    transition: none;
  }

  .hp-button:hover .hp-button__icon,
  .hp-feature:hover .hp-link__icon {
    transform: none;
  }
}

/* ==========================================================================
   14. Accessible rail case study — scoped refinements
   ========================================================================== */

/* Match the homepage's charcoal dark palette without changing other pages. */
:root[data-theme=dark] .case-study {
  --bg: #141311;
  --surface: #1c1b18;
  --surface2: #26241f;
  --ink: #f3efe7;
  --muted: #b5aea3;
  --line: #3a3631;
  --accent: #e58d70;
  --accent-ink: #141311;
  --ghost: #1c1b18;
}

.case-study .page-hero h1 {
  max-width: 1130px;
  text-wrap: balance;
}

.case-study .page-hero .intro {
  max-width: 780px;
}

.case-statement {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.case-onpage {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding-top: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.case-onpage__title {
  margin-right: auto;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-weight: 650;
  color: var(--muted);
}

.case-onpage a {
  font-size: .875rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding: 6px 0;
}

.case-onpage a:hover,
.case-onpage a:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.case-framing {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1px;
  margin-top: 44px;
  background: var(--line);
  border: 1px solid var(--line);
}

.case-framing > div {
  background: var(--surface);
  padding: clamp(24px, 4vw, 48px);
}

.case-framing__question > p {
  margin-top: 30px;
  max-width: 20ch;
  font-size: clamp(1.65rem, 3vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -.04em;
  font-weight: 550;
}

.case-framing__role > p:not(.case-framing__note) {
  margin-top: 30px;
  max-width: 33ch;
  font-size: clamp(1.08rem, 1.75vw, 1.4rem);
  line-height: 1.55;
}

.case-framing__note {
  display: block;
  margin-top: 32px;
  color: var(--muted);
  font-size: .8125rem;
  line-height: 1.5;
}

.case-evidence {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 32px;
}

.case-evidence > div {
  padding: clamp(22px, 3vw, 36px);
  background: var(--surface);
  border: 1px solid var(--line);
}

.case-evidence h3 {
  margin: 20px 0 14px;
}

.case-evidence p {
  max-width: 43ch;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 630px) {
  .case-framing,
  .case-evidence {
    grid-template-columns: 1fr;
  }

  .case-framing__question > p,
  .case-framing__role > p:not(.case-framing__note) {
    margin-top: 22px;
  }

  .case-onpage {
    gap: 6px 15px;
  }

  .case-onpage__title {
    width: 100%;
  }
}

/* --- UI polish: label size, card alignment and mobile density -------------- */

/* Labels on this page are at least 12px (homepage typography is unaffected). */
.case-study .eyebrow,
.case-study .reading-num,
.case-study .details-row dt,
.case-study .bp-sub {
  font-size: .75rem;
}

/* Research-method labels share the site's uppercase label treatment. */
.case-study .method .num {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* Method cards: anchor content to the top so every title starts at the same
   height, even when a description runs longer (e.g. Synthesis). */
.case-study .method {
  justify-content: flex-start;
}

.case-study .method h3 {
  margin-top: 48px;
}

@media (max-width: 630px) {
  /* Stack the section label above its grey note instead of squeezing them side by side. */
  .case-study .article-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  /* Cards size to their content on phones rather than keeping desktop heights. */
  .case-study .method,
  .case-study .priority-card {
    min-height: 0;
  }

  .case-study .method {
    padding: 22px 22px 24px;
  }

  .case-study .method h3 {
    margin: 18px 0 8px;
  }

  .case-study .priority-card {
    padding: 24px 22px 26px;
  }

  .case-study .priority-card h3 {
    margin: 20px 0 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .case-study {
    scroll-behavior: auto;
  }
}

/* ==========================================================================
   15. EatQuik concept case study (work/eatquik.html only)
   Every rule is scoped to body.eatquik-case; eq- classes are EatQuik-only.
   All interface visuals are conceptual mockups with placeholder content.
   ========================================================================== */

/* EatQuik product identity: a herb green used only inside product mockups
   and diagrams. Editorial labels keep the site's terracotta accent. */
.eatquik-case {
  --eq-green: #2e6a4c;
  --eq-green-soft: #e2ebe1;
  --eq-green-line: #b3c8b2;
  --eq-on-green: #ffffff;
  --eq-device: #1d1c19;
  --eq-screen: #fcfbf8;
  --eq-card: #ffffff;
  --eq-screen-line: #e4e0d6;
  --eq-skeleton: #e9e5dc;
  --eq-stage: #e8ede5;
  /* Service band in the system diagram */
  --eq-band-bg: #2e6a4c;
  --eq-band-border: #2e6a4c;
  --eq-band-ink: #ffffff;
  --eq-band-label: #ffffff;
}

:root[data-theme=dark] .eatquik-case {
  --eq-green: #8fcaa8;
  --eq-green-soft: #1f2d26;
  --eq-green-line: #3a5646;
  --eq-on-green: #141311;
  --eq-device: #3a3731;
  --eq-screen: #1a1917;
  --eq-card: #22201d;
  --eq-screen-line: #34312c;
  --eq-skeleton: #2c2a26;
  --eq-stage: #18201b;
  /* A quieter deep-green band in dark mode, instead of a bright mint block */
  --eq-band-bg: #1f2d26;
  --eq-band-border: #8fcaa8;
  --eq-band-ink: #f3efe7;
  --eq-band-label: #8fcaa8;
}

/* --- Shared EatQuik pieces ------------------------------------------------- */

.eatquik-case .eq-stage {
  margin: 0;
  padding: clamp(24px, 3.5vw, 44px);
  background: var(--eq-stage);
  border: 1px solid var(--line);
}

.eatquik-case .eq-caption {
  display: grid;
  justify-items: center;
  gap: 14px;
  font-size: .8125rem;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}

.eatquik-case .eq-concept-tag {
  display: inline-block;
  padding: 4px 12px;
  border: 1px dashed var(--muted);
  border-radius: 12px;
  font-size: .75rem;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.eatquik-case .eq-concept-tag--block {
  margin-top: 14px;
  letter-spacing: 0;
  text-transform: none;
}

/* --- Phone frame and screen ---------------------------------------------- */

.eatquik-case .eq-phone {
  position: relative;
  width: 100%;
  max-width: 296px;
  aspect-ratio: 9 / 18;
  padding: 9px;
  border-radius: 42px;
  background: var(--eq-device);
  box-shadow: 0 28px 50px -34px rgba(20, 19, 17, .55);
}

/* Camera pill */
.eatquik-case .eq-phone::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 17px;
  left: 50%;
  width: 62px;
  height: 18px;
  margin-left: -31px;
  border-radius: 999px;
  background: var(--eq-device);
}

.eatquik-case .eq-screen {
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 44px 16px 0;
  border-radius: 33px;
  background: var(--eq-screen);
  color: var(--ink);
  font-size: .8125rem;
  line-height: 1.35;
}

.eatquik-case .eq-screen svg,
.eatquik-case .eq-panel svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.eatquik-case .eq-screen__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.eatquik-case .eq-logo {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--eq-green);
}

.eatquik-case .eq-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--eq-skeleton);
}

.eatquik-case .eq-screen__title {
  font-size: 1.25rem;
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -.03em;
}

.eatquik-case .eq-screen__sub {
  margin-top: -6px;
  font-size: .8125rem;
  color: var(--muted);
}

.eatquik-case .eq-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--eq-skeleton);
  color: var(--muted);
}

.eatquik-case .eq-search svg {
  width: 16px;
  height: 16px;
}

/* Filter chips: a clipped row, as in a scrollable app filter bar */
.eatquik-case .eq-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  white-space: nowrap;
}

.eatquik-case .eq-chip {
  flex: none;
  padding: 5px 10px;
  border: 1px solid var(--eq-screen-line);
  border-radius: 999px;
  font-size: .75rem;
}

.eatquik-case .eq-chip.is-on {
  background: var(--eq-green);
  border-color: var(--eq-green);
  color: var(--eq-on-green);
}

/* Offer cards */
.eatquik-case .eq-offer {
  padding: 10px;
  border: 1px solid var(--eq-screen-line);
  border-radius: 14px;
  background: var(--eq-card);
}

.eatquik-case .eq-offer.is-suggested {
  border-color: var(--eq-green-line);
  background: var(--eq-green-soft);
}

.eatquik-case .eq-offer__tag {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: .75rem;
  font-weight: 650;
  color: var(--eq-green);
}

.eatquik-case .eq-offer__row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.eatquik-case .eq-bagtile {
  flex: 0 0 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--eq-green-soft);
  color: var(--eq-green);
}

.eatquik-case .eq-offer.is-suggested .eq-bagtile {
  background: var(--eq-card);
}

.eatquik-case .eq-offer.is-skeleton .eq-bagtile {
  background: var(--eq-skeleton);
}

.eatquik-case .eq-bagtile svg {
  width: 20px;
  height: 20px;
}

.eatquik-case .eq-offer__text {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.eatquik-case .eq-offer__text strong {
  font-size: .8125rem;
  font-weight: 650;
}

.eatquik-case .eq-offer__text > span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .75rem;
  color: var(--muted);
}

/* Placeholder lines stand in for real listing data */
.eatquik-case .eq-bar {
  display: block;
  width: 110px;
  max-width: 100%;
  height: 9px;
  border-radius: 99px;
  background: var(--eq-skeleton);
}

.eatquik-case .eq-bar--short {
  width: 70px;
}

.eatquik-case .eq-tabbar {
  display: flex;
  justify-content: space-around;
  margin-top: auto;
  padding: 12px 0 18px;
  border-top: 1px solid var(--eq-screen-line);
  font-size: .75rem;
  color: var(--muted);
}

.eatquik-case .eq-tabbar .is-on {
  font-weight: 650;
  color: var(--eq-green);
}

.eatquik-case .eq-btn {
  display: block;
  margin-top: auto;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--eq-green);
  color: var(--eq-on-green);
  font-size: .8125rem;
  font-weight: 650;
  text-align: center;
}

.eatquik-case .eq-btn--ghost {
  border: 1px solid var(--eq-green-line);
  background: transparent;
  color: var(--eq-green);
}

.eatquik-case .eq-btn--text {
  padding-inline: 4px;
  background: transparent;
  color: var(--eq-green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.eatquik-case .eq-note {
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--eq-green-soft);
  font-size: .75rem;
  line-height: 1.4;
}

/* --- Hero ----------------------------------------------------------------- */

.eatquik-case .eq-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  column-gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.eatquik-case .eq-hero .details-row {
  grid-column: 1 / -1;
}

.eatquik-case .page-hero h1 {
  font-size: clamp(3rem, 6vw, 6.2rem);
}

.eatquik-case .eq-hero__visual {
  display: grid;
  justify-items: center;
  gap: 24px;
}

/* --- 02 Two-sided system diagram ------------------------------------------ */

.eatquik-case .eq-system {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "collector partner"
    "c-link p-link"
    "service service"
    "handover handover";
  column-gap: 24px;
  margin-top: 40px;
}

.eatquik-case .eq-node {
  padding: clamp(22px, 3vw, 32px);
  background: var(--surface);
  border: 1px solid var(--line);
}

.eatquik-case .eq-node .num {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}

.eatquik-case .eq-node h3 {
  margin: 18px 0 8px;
  font-size: 1.4rem;
}

.eatquik-case .eq-node p {
  max-width: 42ch;
  font-size: .95rem;
  color: var(--muted);
}

.eatquik-case .eq-node--collector {
  grid-area: collector;
}

.eatquik-case .eq-node--partner {
  grid-area: partner;
}

/* The service layer sits beneath both sides, in the product colour:
   label and title on the left, the question on the right. */
.eatquik-case .eq-node--service {
  grid-area: service;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  grid-template-areas:
    "num text"
    "title text";
  column-gap: 32px;
  align-items: center;
  background: var(--eq-band-bg);
  border-color: var(--eq-band-border);
  color: var(--eq-band-ink);
}

.eatquik-case .eq-node--service .num {
  grid-area: num;
  align-self: end;
  color: var(--eq-band-label);
}

.eatquik-case .eq-node--service h3 {
  grid-area: title;
  align-self: start;
  margin: 10px 0 0;
}

.eatquik-case .eq-node--service p {
  grid-area: text;
  max-width: none;
  font-size: 1.05rem;
  color: var(--eq-band-ink);
}

/* Flow connectors: a dashed line with direction written out in words */
.eatquik-case .eq-link {
  position: relative;
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 24px 0 24px 32px;
}

.eatquik-case .eq-link::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 12px;
  border-left: 2px dashed var(--eq-green);
}

.eatquik-case .eq-link p {
  font-size: .9375rem;
}

.eatquik-case .eq-link p span {
  display: block;
  margin-bottom: 2px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--eq-green);
}

.eatquik-case .eq-link--collector {
  grid-area: c-link;
}

.eatquik-case .eq-link--partner {
  grid-area: p-link;
}

.eatquik-case .eq-handover {
  grid-area: handover;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 4px 14px;
  margin-top: 22px;
  padding: 18px 24px;
  border: 2px dashed var(--eq-green);
  border-radius: 999px;
  text-align: center;
}

.eatquik-case .eq-handover::before {
  content: "";
  position: absolute;
  top: -24px;
  left: 50%;
  height: 22px;
  border-left: 2px dashed var(--eq-green);
}

.eatquik-case .eq-handover strong {
  font-size: 1.05rem;
}

.eatquik-case .eq-handover span {
  font-size: .9375rem;
  color: var(--muted);
}

/* --- 03 Concept journey: four conceptual screens -------------------------- */

.eatquik-case .eq-journey {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}

/* Rail joining the four steps */
.eatquik-case .eq-journey::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  right: calc((100% - 60px) / 4 - 6px);
  height: 1px;
  background: var(--eq-green);
}

.eatquik-case .eq-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-top: 30px;
}

.eatquik-case .eq-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 13px;
  height: 13px;
  border: 2px solid var(--eq-green);
  border-radius: 50%;
  background: var(--bg);
}

.eatquik-case .eq-step__head h3 {
  margin-top: 10px;
  font-size: 1.35rem;
  letter-spacing: -.03em;
}

.eatquik-case .eq-phone--mini {
  aspect-ratio: 9 / 15.5;
  padding: 8px;
  border-radius: 34px;
}

.eatquik-case .eq-phone--mini::before {
  top: 15px;
  width: 54px;
  height: 16px;
  margin-left: -27px;
}

.eatquik-case .eq-phone--mini .eq-screen {
  padding: 40px 14px 14px;
  border-radius: 27px;
}

.eatquik-case .eq-step__notes {
  margin: 0;
}

.eatquik-case .eq-step__notes div:first-child dt {
  margin-top: 0;
}

.eatquik-case .eq-step__notes dd {
  margin: 0;
  font-size: .9rem;
  color: var(--muted);
}

/* Mini-screen parts */
.eatquik-case .eq-baghero {
  position: relative;
  flex: none;
  height: 96px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--eq-green-soft);
  color: var(--eq-green);
}

.eatquik-case .eq-baghero svg {
  width: 56px;
  height: 56px;
  stroke-width: 1.2;
}

.eatquik-case .eq-baghero .serif {
  position: absolute;
  top: 38px;
  font-size: 1.6rem;
  line-height: 1;
}

.eatquik-case .eq-facts {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.eatquik-case .eq-facts li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--eq-screen-line);
  font-size: .75rem;
}

.eatquik-case .eq-facts li span:first-child {
  color: var(--muted);
}

.eatquik-case .eq-confirm {
  flex: none;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--eq-green);
  color: var(--eq-on-green);
}

.eatquik-case .eq-confirm svg {
  width: 26px;
  height: 26px;
  stroke-width: 2;
}

.eatquik-case .eq-status {
  display: grid;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.eatquik-case .eq-status li {
  position: relative;
  padding: 0 0 16px 24px;
  font-size: .75rem;
  color: var(--muted);
}

.eatquik-case .eq-status li::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 0;
  width: 11px;
  height: 11px;
  border: 1.5px solid var(--eq-green-line);
  border-radius: 50%;
  background: var(--eq-screen);
}

.eatquik-case .eq-status li::after {
  content: "";
  position: absolute;
  top: 15px;
  bottom: 0;
  left: 5px;
  border-left: 1px solid var(--eq-green-line);
}

.eatquik-case .eq-status li:last-child::after {
  display: none;
}

.eatquik-case .eq-status li.is-done {
  font-weight: 650;
  color: var(--ink);
}

.eatquik-case .eq-status li.is-done::before {
  border-color: var(--eq-green);
  background: var(--eq-green);
}

.eatquik-case .eq-map {
  flex: none;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background:
    repeating-linear-gradient(0deg, transparent 0 22px, var(--eq-green-line) 22px 23px),
    repeating-linear-gradient(90deg, transparent 0 30px, var(--eq-green-line) 30px 31px),
    var(--eq-green-soft);
  color: var(--eq-green);
}

.eatquik-case .eq-map svg {
  width: 32px;
  height: 32px;
  fill: var(--eq-screen);
}

.eatquik-case .eq-code {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px dashed var(--eq-green-line);
  border-radius: 12px;
  font-size: .75rem;
  color: var(--muted);
}

.eatquik-case .eq-code strong {
  font-size: .9375rem;
  letter-spacing: .08em;
  color: var(--ink);
}

/* --- 04 AI & trust ----------------------------------------------------------- */

.eatquik-case .eq-ai {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 24px;
  margin: 40px 0 24px;
}

.eatquik-case .eq-ai__mock {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 20px;
}

/* A single interface panel (no phone frame) */
.eatquik-case .eq-panel {
  width: 100%;
  max-width: 360px;
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--eq-screen-line);
  border-radius: 22px;
  background: var(--eq-screen);
  box-shadow: 0 24px 44px -34px rgba(20, 19, 17, .5);
  font-size: .8125rem;
  color: var(--ink);
}

.eatquik-case .eq-panel__title {
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -.02em;
}

.eatquik-case .eq-reasons {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.eatquik-case .eq-reasons li {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Small tick drawn with borders */
.eatquik-case .eq-reasons li::before {
  content: "";
  flex: none;
  width: 5px;
  height: 10px;
  margin: 0 3px 3px;
  border-right: 2px solid var(--eq-green);
  border-bottom: 2px solid var(--eq-green);
  transform: rotate(45deg);
}

.eatquik-case .eq-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.eatquik-case .eq-actions .eq-btn {
  display: inline-block;
  margin-top: 0;
}

/* Matching model: consider -> suggest -> person decides, plus hard limits */
.eatquik-case .eq-model {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--surface);
  border: 1px solid var(--line);
}

.eatquik-case .eq-model__col {
  position: relative;
  padding: clamp(20px, 2.5vw, 28px);
  border-right: 1px solid var(--line);
}

.eatquik-case .eq-model__col:nth-child(3) {
  border-right: 0;
}

.eatquik-case .eq-model__col + .eq-model__col::before {
  content: "→";
  content: "→" / "";
  position: absolute;
  top: 50%;
  left: -13px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  margin-top: -12px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
  font-size: .875rem;
  color: var(--eq-green);
}

.eatquik-case .eq-model__col--brand {
  background: var(--eq-green-soft);
}

.eatquik-case .eq-model__label {
  display: block;
  margin-bottom: 12px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--eq-green);
}

.eatquik-case .eq-model ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.eatquik-case .eq-model li,
.eatquik-case .eq-model p {
  font-size: .95rem;
  line-height: 1.45;
}

.eatquik-case .eq-model__never {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 28px;
  padding: 20px clamp(20px, 2.5vw, 28px);
  border-top: 1px solid var(--line);
}

.eatquik-case .eq-model__never .eq-model__label {
  margin: 0;
  color: var(--accent);
}

.eatquik-case .eq-model__never ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}

.eatquik-case .eq-model__never li::before {
  content: "×";
  content: "×" / "";
  margin-right: 8px;
  color: var(--accent);
  font-weight: 700;
}

/* --- 05 Design directions: both sides of the marketplace ------------------ */

.eatquik-case .eq-sides {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 24px;
  margin: 40px 0 24px;
}

.eatquik-case .eq-sides__label {
  display: block;
  margin-bottom: 24px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--eq-green);
}

.eatquik-case .eq-bag__body {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  align-items: center;
  gap: 32px;
}

.eatquik-case .eq-bag__art {
  width: 100%;
  height: auto;
}

.eatquik-case .eq-bag__shape {
  fill: var(--eq-screen);
  stroke: var(--eq-green);
  stroke-width: 2;
  stroke-linejoin: round;
}

.eatquik-case .eq-bag__shape + .eq-bag__shape {
  fill: none;
}

.eatquik-case .eq-bag__mark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 64px;
  font-style: italic;
  fill: var(--eq-green);
}

.eatquik-case .eq-bag__lists {
  display: grid;
  gap: 22px;
}

.eatquik-case .eq-bag__head {
  margin-bottom: 10px;
  font-weight: 650;
}

.eatquik-case .eq-ticks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.eatquik-case .eq-ticks li {
  padding: 5px 12px;
  border: 1px solid var(--eq-green-line);
  border-radius: 999px;
  background: var(--eq-screen);
  font-size: .875rem;
}

/* Dashed outline = deliberately uncertain */
.eatquik-case .eq-ticks--open li {
  border-style: dashed;
  border-color: var(--eq-green);
}

.eatquik-case .eq-bag .eq-caption,
.eatquik-case .eq-partner .eq-caption {
  justify-items: start;
  margin-top: 24px;
  text-align: left;
}

.eatquik-case .eq-partner {
  display: grid;
  align-content: start;
}

.eatquik-case .eq-form {
  max-width: none;
  gap: 4px;
}

.eatquik-case .eq-form .eq-panel__title {
  margin-bottom: 6px;
}

.eatquik-case .eq-field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--eq-screen-line);
}

.eatquik-case .eq-field > span:first-child {
  color: var(--muted);
}

.eatquik-case .eq-field--stack {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  border-bottom: 0;
}

.eatquik-case .eq-stepper {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 650;
}

.eatquik-case .eq-stepper b {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--eq-green-line);
  border-radius: 50%;
  font-weight: 500;
  color: var(--eq-green);
}

.eatquik-case .eq-time {
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--eq-green-soft);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: var(--eq-green);
}

.eatquik-case .eq-textarea {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--eq-screen-line);
  border-radius: 10px;
}

.eatquik-case .eq-form .eq-btn {
  margin-top: 8px;
}

/* --- EatQuik: tablets and small laptops (900px and below) ------------------ */

@media (max-width: 900px) {
  .eatquik-case .eq-hero {
    grid-template-columns: 1fr;
  }

  .eatquik-case .eq-hero__visual {
    margin-top: 40px;
  }

  .eatquik-case .eq-journey {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 48px;
  }

  .eatquik-case .eq-journey::before,
  .eatquik-case .eq-step::before {
    display: none;
  }

  .eatquik-case .eq-step {
    padding-top: 0;
  }

  .eatquik-case .eq-ai,
  .eatquik-case .eq-sides {
    grid-template-columns: 1fr;
  }
}

/* --- EatQuik: phones (630px and below) -------------------------------------- */

@media (max-width: 630px) {
  .eatquik-case .eq-system {
    grid-template-columns: 1fr;
    grid-template-areas:
      "collector"
      "c-link"
      "service"
      "p-link"
      "partner"
      "handover";
  }

  .eatquik-case .eq-node--service {
    grid-template-columns: 1fr;
    grid-template-areas:
      "num"
      "title"
      "text";
  }

  .eatquik-case .eq-node--service p {
    margin-top: 10px;
  }

  .eatquik-case .eq-handover {
    border-radius: 20px;
  }

  .eatquik-case .eq-journey {
    grid-template-columns: 1fr;
  }

  .eatquik-case .eq-phone--mini {
    max-width: 280px;
  }

  .eatquik-case .eq-model {
    grid-template-columns: 1fr;
  }

  .eatquik-case .eq-model__col {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .eatquik-case .eq-model__col + .eq-model__col::before {
    content: "↓";
    content: "↓" / "";
    top: -13px;
    left: 50%;
    margin: 0 0 0 -12px;
  }

  .eatquik-case .eq-bag__body {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .eatquik-case .eq-bag__art {
    width: 110px;
  }
}

/* --- EatQuik: reading key (conceptual vs documented vs implemented) ------- */

.eatquik-case .eq-key {
  display: grid;
  grid-template-columns: minmax(0, 12em) minmax(0, 1fr);
  gap: 16px 32px;
  padding-top: 26px;
}

.eatquik-case .eq-key__title {
  padding-top: 2px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.eatquik-case .eq-key__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.eatquik-case .eq-key__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .875rem;
  line-height: 1.5;
  color: var(--muted);
}

.eatquik-case .eq-key__list strong {
  display: block;
  font-weight: 650;
  color: var(--ink);
}

.eatquik-case .eq-key__swatch {
  flex: none;
  width: 28px;
  height: 18px;
  margin-top: 2px;
  border-radius: 6px;
}

/* Dashed = conceptual mockup (matches the dashed caption tags) */
.eatquik-case .eq-key__swatch--mockup {
  border: 1.5px dashed var(--muted);
}

/* Solid green = documented flow (matches the route chains) */
.eatquik-case .eq-key__swatch--flow {
  border: 2px solid var(--eq-green);
  background: var(--eq-green-soft);
}

/* Struck-through ring = nothing implemented */
.eatquik-case .eq-key__swatch--none {
  width: 18px;
  margin-inline: 5px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  background: linear-gradient(45deg, transparent 46%, var(--accent) 46% 56%, transparent 56%);
}

/* --- EatQuik: research instruments as document cards ---------------------- */

.eatquik-case .eq-docs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 35px;
}

/* A sheet with a folded top-right corner */
.eatquik-case .eq-doc {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 26px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%);
}

.eatquik-case .eq-doc::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 24px;
  height: 24px;
  background: linear-gradient(225deg, transparent 50%, var(--line) 50%);
}

.eatquik-case .eq-doc__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-right: 20px;
}

.eatquik-case .eq-doc .num {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}

.eatquik-case .eq-doc__icon {
  flex: none;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--eq-green);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.eatquik-case .eq-doc h3 {
  margin: 26px 0 10px;
  font-size: 1.4rem;
}

.eatquik-case .eq-doc > p:not(.eq-doc__status) {
  font-size: .9rem;
  color: var(--muted);
}

.eatquik-case .eq-doc__themes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.eatquik-case .eq-doc__themes li {
  padding: 4px 10px;
  border: 1px solid var(--eq-green-line);
  border-radius: 999px;
  background: var(--eq-green-soft);
  font-size: .75rem;
}

/* Hollow ring = designed but not verified (same signal as the homepage cards) */
.eatquik-case .eq-doc__status {
  margin-top: auto;
  padding-top: 22px;
  font-size: .75rem;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.eatquik-case .eq-doc__status::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border: 1px solid currentColor;
  border-radius: 50%;
  vertical-align: 1px;
}

/* --- EatQuik: collection routes as step chains ----------------------------- */

.eatquik-case .eq-routes > div {
  display: flex;
  flex-direction: column;
}

.eatquik-case .eq-flow-tag {
  align-self: flex-start;
  margin: 0 0 16px;
  padding: 4px 12px;
  border: 1px solid var(--eq-green);
  border-radius: 12px;
  background: var(--eq-green-soft);
  font-size: .75rem;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--eq-green);
}

.eatquik-case .eq-actors {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.eatquik-case .eq-actors li {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  font-size: .75rem;
  font-weight: 650;
}

.eatquik-case .eq-route {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  counter-reset: eq-step;
}

.eatquik-case .eq-route li {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 0 0 16px 36px;
  font-size: .9375rem;
  counter-increment: eq-step;
}

/* Numbered stop; the list itself already conveys order to screen readers */
.eatquik-case .eq-route li::before {
  content: counter(eq-step);
  content: counter(eq-step) / "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--eq-green);
  font-size: .75rem;
  font-weight: 700;
  color: var(--eq-on-green);
}

/* Line joining each stop to the next */
.eatquik-case .eq-route li::after {
  content: "";
  position: absolute;
  top: 23px;
  bottom: 1px;
  left: 10px;
  border-left: 2px solid var(--eq-green);
}

.eatquik-case .eq-route li:last-child {
  padding-bottom: 0;
}

.eatquik-case .eq-route li:last-child::after {
  display: none;
}

.eatquik-case .eq-route__who {
  flex: none;
  font-size: .75rem;
  font-weight: 650;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: right;
  color: var(--muted);
}

@media (max-width: 900px) {
  .eatquik-case .eq-key {
    grid-template-columns: 1fr;
  }

  .eatquik-case .eq-docs {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 630px) {
  .eatquik-case .eq-key__list {
    grid-template-columns: 1fr;
  }

  .eatquik-case .eq-route li {
    flex-direction: column;
    gap: 2px;
  }

  .eatquik-case .eq-route__who {
    text-align: left;
  }
}

/* --- EatQuik: real UI designs from the Figma concept prototype -------------- */

/* A plain device frame. Nothing is drawn over the exported design; only the
   outer corners are rounded, as on a phone. */
.eatquik-case .eq-device {
  width: 100%;
  max-width: 300px;
  padding: 8px;
  border-radius: 44px;
  background: var(--eq-device);
  box-shadow: 0 28px 50px -34px rgba(20, 19, 17, .55);
}

.eatquik-case .eq-device img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 36px;
  background: var(--eq-screen);
}

/* Solid outline = real EatQuik UI design (dashed tags = conceptual mockups) */
.eatquik-case .eq-design-tag {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--ink);
  border-radius: 12px;
  font-size: .75rem;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
}

.eatquik-case .eq-key__list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.eatquik-case .eq-key__swatch--design {
  width: 14px;
  height: 22px;
  margin: 0 7px;
  border: 2px solid var(--ink);
  border-radius: 4px;
}

.eatquik-case .eq-fullsize {
  font-size: .8125rem;
  font-weight: 650;
  color: var(--ink);
  text-underline-offset: 3px;
  /* 24px+ click/tap area; the negative margin cancels the padding */
  padding-block: 3px;
  margin-block: -3px;
}

.eatquik-case .eq-shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 64px 32px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

/* Editorial stagger: the middle column sits lower */
.eatquik-case .eq-shot:nth-child(3n + 2) {
  margin-top: 72px;
}

.eatquik-case .eq-shot figure {
  display: grid;
  justify-items: start;
  gap: 22px;
  margin: 0;
}

.eatquik-case .eq-shot .eq-device {
  max-width: 360px;
}

.eatquik-case .eq-shot figcaption {
  display: grid;
  justify-items: start;
  gap: 8px;
  max-width: 360px;
}

.eatquik-case .eq-shot h3 {
  font-size: 1.35rem;
  letter-spacing: -.03em;
}

.eatquik-case .eq-shot p {
  font-size: .95rem;
  line-height: 1.55;
  color: var(--muted);
}

@media (max-width: 900px) {
  .eatquik-case .eq-shots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 56px 24px;
  }

  .eatquik-case .eq-shot:nth-child(3n + 2) {
    margin-top: 0;
  }
}

@media (max-width: 630px) {
  .eatquik-case .eq-key__list {
    grid-template-columns: 1fr;
  }

  .eatquik-case .eq-shots {
    grid-template-columns: 1fr;
  }

  .eatquik-case .eq-shot .eq-device {
    max-width: 340px;
  }
}

/* ==========================================================================
   16. AR navigation case study (work/ar-navigation.html only)
   Every rule is scoped to body.ar-case. All visuals are original portfolio
   reconstructions: no Google map tiles, Street View imagery or logos.
   ========================================================================== */

/* Project accent: a restrained cyan, defined for both themes.
   --ar-cyan is text-safe; --ar-cyan-bright is for arrows, routes and buttons. */
.ar-case {
  --ar-cyan: #0b7480;
  --ar-cyan-bright: #087f89;
  --ar-on-cyan: #ffffff;
  --ar-cyan-soft: #dbeeee;
  --ar-stage: #e5ecea;
  --ar-chip: #fbfaf7;
  --ar-halo: #ffffff;
  --ar-device: #1d1c19;
  --ar-map: #ebe7de;
  --ar-map-street: #fbfaf6;
  --ar-map-minor: #f3f0e9;
  --ar-sky: #dde5e4;
  --ar-ground: #cfd3cc;
  --ar-road: #bcc1ba;
  --ar-bld: #a7b0ad;
  --ar-bld2: #b9c1be;
  --ar-edge: #8a928f;
}

:root[data-theme=dark] .ar-case {
  --ar-cyan: #6ad3dc;
  --ar-cyan-bright: #4fc9d3;
  --ar-on-cyan: #0a1f21;
  --ar-cyan-soft: #14292b;
  --ar-stage: #142022;
  --ar-chip: #1f1e1b;
  --ar-halo: #0f1a1b;
  --ar-device: #3a3731;
  --ar-map: #1f1e1b;
  --ar-map-street: #2f2d29;
  --ar-map-minor: #282622;
  --ar-sky: #24302f;
  --ar-ground: #2c3331;
  --ar-road: #363d3b;
  --ar-bld: #46504e;
  --ar-bld2: #3b4442;
  --ar-edge: #5c6562;
}

/* --- Shared AR pieces -------------------------------------------------------- */

.ar-case .num {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ar-cyan);
}

.ar-case .ar-recon-tag {
  display: inline-block;
  padding: 4px 12px;
  border: 1px dashed var(--ar-cyan);
  border-radius: 12px;
  font-size: .75rem;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ar-cyan);
}

.ar-case .ar-caption {
  font-size: .8125rem;
  line-height: 1.5;
  text-align: center;
  color: var(--muted);
}

.ar-case .ar-caption--left {
  text-align: left;
}

.ar-case .ar-subhead {
  margin: 64px 0 20px;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  letter-spacing: -.03em;
}

.ar-case .ar-stage {
  display: grid;
  justify-items: center;
  gap: 18px;
  margin: 0;
  padding: clamp(20px, 3vw, 36px);
  background: var(--ar-stage);
  border: 1px solid var(--line);
}

/* --- Illustration palette (shared by the hero, diagrams and concept screens) - */

.ar-case .ar-h-map { fill: var(--ar-map); }
.ar-case .ar-h-street { fill: none; stroke: var(--ar-map-street); stroke-width: 14; }
.ar-case .ar-h-street--minor { stroke: var(--ar-map-minor); stroke-width: 6; }
.ar-case .ar-h-route-halo { fill: none; stroke: var(--ar-halo); stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; }
.ar-case .ar-h-route { fill: none; stroke: var(--ar-cyan-bright); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.ar-case .ar-h-cone { fill: var(--ar-cyan-bright); opacity: .22; }
.ar-case .ar-h-dot-ring { fill: var(--ar-halo); }
.ar-case .ar-h-dot { fill: var(--ar-cyan-bright); }
.ar-case .ar-h-device,
.ar-case .ar-h-camera { fill: var(--ar-device); }
.ar-case .ar-h-chip { fill: var(--ar-chip); }
.ar-case .ar-h-chip-icon { fill: none; stroke: var(--ar-cyan-bright); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.ar-case .ar-h-chip-bar { fill: var(--ar-edge); opacity: .55; }

.ar-case .ar-s-sky { fill: var(--ar-sky); }
.ar-case .ar-s-ground { fill: var(--ar-ground); }
.ar-case .ar-s-bld { fill: var(--ar-bld); }
.ar-case .ar-s-bld2 { fill: var(--ar-bld2); }
.ar-case .ar-s-road,
.ar-case .ar-s-cross { fill: var(--ar-road); }
.ar-case .ar-s-edge { fill: none; stroke: var(--ar-edge); stroke-width: 1.5; }
.ar-case .ar-s-win { fill: none; stroke: var(--ar-edge); stroke-width: 1; opacity: .5; }
.ar-case .ar-s-halo { fill: none; stroke: var(--ar-halo); stroke-width: 22; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.ar-case .ar-s-arrow { fill: none; stroke: var(--ar-cyan-bright); stroke-width: 14; stroke-linecap: round; stroke-linejoin: round; }
.ar-case .ar-s-head { fill: var(--ar-cyan-bright); stroke: var(--ar-halo); stroke-width: 3; stroke-linejoin: round; }
.ar-case .ar-s-arrow--dim { stroke: var(--ar-edge); opacity: .8; }
.ar-case .ar-s-arrow--paused { stroke: var(--ar-edge); stroke-dasharray: 2 20; }
.ar-case .ar-s-ghost { fill: none; stroke: var(--ar-cyan-bright); stroke-width: 10; stroke-dasharray: 2 16; stroke-linecap: round; opacity: .7; }
.ar-case .ar-s-ring { fill: none; stroke: var(--ar-halo); stroke-width: 10; stroke-linecap: round; opacity: .85; }
.ar-case .ar-s-ring-on { fill: none; stroke: var(--ar-cyan-bright); stroke-width: 10; stroke-linecap: round; }
.ar-case .ar-s-clutter { fill: var(--ar-chip); stroke: var(--ar-edge); stroke-width: 1.5; opacity: .92; }
.ar-case .ar-t-north { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.ar-case .ar-t-maybe { fill: none; stroke: var(--ar-halo); stroke-width: 6; stroke-dasharray: 2 10; stroke-linecap: round; }
.ar-case .ar-t-q { fill: var(--ar-chip); stroke: var(--ar-cyan-bright); stroke-width: 2; }
.ar-case .ar-t-qmark { font-family: Georgia, "Times New Roman", serif; font-size: 22px; font-style: italic; fill: var(--ar-cyan); }

/* The hero phone is smaller in its viewBox, so its arrow is drawn thinner */
.ar-case .ar-hero-art .ar-s-halo { stroke-width: 16; }
.ar-case .ar-hero-art .ar-s-arrow { stroke-width: 10; }

/* --- Hero ----------------------------------------------------------------- */

.ar-case .ar-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  column-gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.ar-case .ar-hero .details-row {
  grid-column: 1 / -1;
}

.ar-case .page-hero h1 {
  font-size: clamp(3rem, 6vw, 6.2rem);
}

.ar-case .ar-hero-art {
  width: 100%;
  max-width: 520px;
  height: auto;
}

.ar-case .ar-details {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

/* --- 01 Challenge ------------------------------------------------------------- */

.ar-case .ar-translate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 18px 28px;
  max-width: 900px;
  margin: 40px 0 0;
}

.ar-case .ar-translate__panel {
  display: grid;
  gap: 10px;
}

.ar-case .ar-translate__panel svg {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.ar-case .ar-translate__label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.ar-case .ar-translate__bridge {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.ar-case .ar-translate__arrow {
  position: relative;
  width: 72px;
  height: 2px;
  background: var(--ar-cyan);
}

.ar-case .ar-translate__arrow::after {
  content: "";
  position: absolute;
  top: -5px;
  right: -1px;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--ar-cyan);
  border-right: 2px solid var(--ar-cyan);
  transform: rotate(45deg);
}

.ar-case .ar-translate__text {
  font-size: .8125rem;
  font-weight: 650;
  color: var(--ar-cyan);
}

.ar-case .ar-translate .ar-caption {
  grid-column: 1 / -1;
}

.ar-case .ar-questions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.ar-case .ar-questions li {
  padding: 24px;
  background: var(--surface);
  border-top: 3px solid var(--ar-cyan-bright);
}

.ar-case .ar-questions p {
  margin-top: 14px;
  font-size: 1.02rem;
  line-height: 1.5;
}

/* --- 02 Role ------------------------------------------------------------------ */

.ar-case .ar-role {
  margin-top: 36px;
  padding: clamp(22px, 3vw, 32px);
  background: var(--surface);
  border: 1px solid var(--line);
}

.ar-case .ar-role__label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.ar-case .ar-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.ar-case .ar-chips li {
  padding: 7px 14px;
  border: 1px solid var(--ar-cyan);
  border-radius: 999px;
  background: var(--ar-cyan-soft);
  font-size: .9rem;
}

.ar-case .ar-chips--quiet li {
  background: transparent;
  border-color: var(--line);
}

.ar-case .ar-role__note {
  margin-top: 18px;
  font-size: .875rem;
  color: var(--muted);
}

/* --- 03 Research: three kinds of evidence, kept visibly apart ------------------ */

.ar-case .ar-evidence {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}

.ar-case .ar-ev {
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 3vw, 30px);
  background: var(--surface);
  border: 1px solid var(--line);
}

.ar-case .ar-ev__tag {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.ar-case .ar-ev--team .ar-ev__tag {
  border: 1px solid var(--ar-cyan);
  background: var(--ar-cyan-soft);
  color: var(--ar-cyan);
}

.ar-case .ar-ev--public .ar-ev__tag {
  border: 1px solid var(--ink);
  color: var(--ink);
}

.ar-case .ar-ev--hypothesis .ar-ev__tag {
  border: 1px dashed var(--accent);
  color: var(--accent);
}

.ar-case .ar-ev h3 {
  margin: 18px 0 14px;
  font-size: 1.35rem;
}

.ar-case .ar-ev ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 1.1em;
  font-size: .95rem;
  line-height: 1.5;
}

.ar-case .ar-ev__note {
  margin-top: auto;
  padding-top: 18px;
  font-size: .8125rem;
  line-height: 1.5;
  color: var(--muted);
}

.ar-case .ar-ev__note a {
  color: var(--ink);
  text-underline-offset: 3px;
}

.ar-case .ar-landscape {
  border-top: 1px solid var(--line);
}

.ar-case .ar-landscape__row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: .95rem;
  line-height: 1.5;
}

.ar-case .ar-landscape__row [role=rowheader] {
  font-weight: 650;
}

.ar-case .ar-landscape__row [role=cell] {
  color: var(--muted);
}

.ar-case .ar-landscape__row--head span {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- 04 Experience mapping ----------------------------------------------------- */

.ar-case .ar-people {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: 24px;
  margin-top: 40px;
}

/* Dashed outline = scenario, not a real participant */
.ar-case .ar-persona {
  padding: clamp(22px, 3vw, 32px);
  background: var(--surface);
  border: 1.5px dashed var(--ar-cyan);
}

.ar-case .ar-flag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  background: var(--ar-cyan-soft);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ar-cyan);
}

.ar-case .ar-persona h3 {
  margin: 18px 0 6px;
  font-size: 1.6rem;
}

.ar-case .ar-persona__lead {
  font-size: .95rem;
  color: var(--muted);
}

.ar-case .ar-persona dl {
  margin: 20px 0 0;
  border-top: 1px solid var(--line);
}

.ar-case .ar-persona dl > div {
  display: grid;
  grid-template-columns: 8.5em minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.ar-case .ar-persona dt {
  padding-top: .2em;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.ar-case .ar-persona dd {
  margin: 0;
  font-size: .95rem;
  line-height: 1.5;
}

.ar-case .ar-empathy {
  display: grid;
  gap: 14px;
  margin: 0;
}

.ar-case .ar-empathy__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--surface);
  border: 1px solid var(--line);
}

.ar-case .ar-empathy__q {
  padding: clamp(20px, 2.6vw, 28px);
}

.ar-case .ar-empathy__q:nth-child(1),
.ar-case .ar-empathy__q:nth-child(2) {
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.ar-case .ar-empathy__q:nth-child(3),
.ar-case .ar-empathy__q:nth-child(4) {
  padding-top: 40px;
}

.ar-case .ar-empathy__q:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.ar-case .ar-empathy__q h3 {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ar-cyan);
}

.ar-case .ar-empathy__q ul {
  display: grid;
  gap: 6px;
  margin: 12px 0 0;
  padding-left: 1.1em;
  font-size: .95rem;
  line-height: 1.45;
}

.ar-case .ar-empathy__centre {
  position: absolute;
  top: 50%;
  left: 50%;
  padding: 8px 16px;
  border: 1px solid var(--ar-cyan);
  border-radius: 999px;
  background: var(--bg);
  font-size: .8125rem;
  font-weight: 650;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}

/* Journey map: four phases with aligned rows (subgrid) */
.ar-case .ar-journey {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: auto repeat(4, auto);
  column-gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ar-case .ar-phase {
  display: grid;
  grid-row: span 5;
  grid-template-rows: subgrid;
}

.ar-case .ar-phase__head {
  position: relative;
  padding: 26px 0 16px;
  border-top: 2px solid var(--ar-cyan-bright);
}

.ar-case .ar-phase__head::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  width: 14px;
  height: 14px;
  border: 2px solid var(--ar-cyan-bright);
  border-radius: 50%;
  background: var(--bg);
}

.ar-case .ar-phase__head h4 {
  margin-top: 8px;
  font-size: 1.15rem;
  line-height: 1.25;
  letter-spacing: -.02em;
}

.ar-case .ar-phase__cell {
  padding: 14px 16px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.ar-case .ar-phase__cell--opp {
  background: var(--ar-cyan-soft);
}

.ar-case .ar-phase__label {
  display: block;
  margin-bottom: 4px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.ar-case .ar-phase__cell--opp .ar-phase__label {
  color: var(--ar-cyan);
}

.ar-case .ar-phase__cell p {
  font-size: .9rem;
  line-height: 1.5;
}

/* --- 05 Information architecture ------------------------------------------------ */

.ar-case .ar-ia {
  margin: 40px 0 0;
}

.ar-case .ar-ia__flow {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ar-case .ar-ia__step {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ar-case .ar-ia__node {
  position: relative;
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 92px;
  padding: 16px;
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: 12px;
}

.ar-case .ar-ia__node strong {
  font-size: .95rem;
  line-height: 1.3;
}

/* Arrow to the next step on the main route */
.ar-case .ar-ia__step:not(:last-child) .ar-ia__node::after {
  content: "";
  position: absolute;
  top: 40px;
  right: -15px;
  width: 14px;
  height: 10px;
  background: var(--ink);
  clip-path: polygon(0 40%, 55% 40%, 55% 0, 100% 50%, 55% 100%, 55% 60%, 0 60%);
}

.ar-case .ar-ia__branches {
  position: relative;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0 0 0 16px;
  list-style: none;
}

.ar-case .ar-ia__branches::before {
  content: "";
  position: absolute;
  top: -12px;
  bottom: 18px;
  left: 6px;
  border-left: 1.5px dashed var(--muted);
}

.ar-case .ar-ia__branch {
  position: relative;
  padding: 10px 12px;
  border: 1.5px dashed var(--muted);
  border-radius: 10px;
  font-size: .8125rem;
  line-height: 1.35;
}

.ar-case .ar-ia__branch::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -11px;
  width: 9px;
  border-top: 1.5px dashed var(--muted);
}

.ar-case .ar-ia__branch--fallback {
  border-color: var(--ar-cyan);
  background: var(--ar-cyan-soft);
}

.ar-case .ar-ia__legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin-top: 24px;
  font-size: .8125rem;
  color: var(--muted);
}

.ar-case .ar-ia__key::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 14px;
  margin-right: 8px;
  vertical-align: -2px;
  border-radius: 4px;
}

.ar-case .ar-ia__key--main::before {
  border: 1.5px solid var(--ink);
}

.ar-case .ar-ia__key--opt::before {
  border: 1.5px dashed var(--muted);
}

.ar-case .ar-ia__key--fallback::before {
  border: 1.5px dashed var(--ar-cyan);
  background: var(--ar-cyan-soft);
}

/* --- 05 Low-fidelity wireframes (monochrome, HTML/CSS) ----------------------- */

.ar-case .ar-wfs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px 28px;
}

.ar-case .ar-wf {
  display: grid;
  justify-items: start;
  gap: 14px;
  margin: 0;
}

.ar-case .ar-wf__phone {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 250px;
  aspect-ratio: 9 / 17;
  padding: 36px 16px 18px;
  background: var(--bg);
  border: 2px solid var(--ink);
  border-radius: 30px;
  overflow: hidden;
}

.ar-case .ar-wf__phone::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  width: 46px;
  height: 6px;
  margin-left: -23px;
  border-radius: 3px;
  background: var(--line);
}

.ar-case .ar-wf figcaption {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: .95rem;
  font-weight: 650;
}

.ar-case .wf-field,
.ar-case .wf-bar,
.ar-case .wf-banner {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: .75rem;
}

.ar-case .wf-field {
  border: 1.5px solid var(--ink);
  color: var(--muted);
}

.ar-case .wf-bar {
  background: var(--surface2);
  font-weight: 650;
}

.ar-case .wf-banner {
  border: 1.5px dashed var(--ink);
  font-weight: 650;
}

.ar-case .wf-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
}

.ar-case .wf-pin,
.ar-case .wf-flag {
  flex: none;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--ink);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.ar-case .wf-text {
  font-size: .75rem;
  color: var(--muted);
}

.ar-case .wf-text--strong {
  font-size: .9rem;
  font-weight: 700;
  color: var(--ink);
}

.ar-case .wf-box {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  overflow: hidden;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  font-size: .75rem;
  color: var(--muted);
}

/* A plain street-grid pattern stands in for any map */
.ar-case .wf-box--map {
  height: 116px;
  background:
    repeating-linear-gradient(0deg, transparent 0 26px, var(--line) 26px 28px),
    repeating-linear-gradient(90deg, transparent 0 34px, var(--line) 34px 36px),
    var(--surface);
}

.ar-case .wf-box--tall {
  flex: 1;
  height: auto;
  min-height: 110px;
}

.ar-case .wf-box--keys {
  height: 72px;
  margin-top: auto;
  background:
    repeating-linear-gradient(90deg, transparent 0 22px, var(--line) 22px 23px),
    repeating-linear-gradient(0deg, transparent 0 22px, var(--line) 22px 23px),
    var(--surface);
}

.ar-case .wf-box--camera {
  flex: 1;
  background: var(--surface);
}

.ar-case .wf-route {
  position: absolute;
  top: 24%;
  left: 30%;
  width: 40%;
  height: 52%;
  border-top: 3px solid var(--ink);
  border-left: 3px solid var(--ink);
}

.ar-case .wf-dot {
  position: absolute;
  bottom: 22%;
  left: calc(30% - 5px);
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--ink);
}

.ar-case .wf-box .wf-flag {
  width: 20px;
  height: 20px;
  border-width: 2px;
}

/* Perspective street and a single arrow for the AR wireframe */
.ar-case .wf-persp {
  position: absolute;
  inset: 0;
}

.ar-case .wf-persp::before {
  content: "";
  position: absolute;
  right: 6%;
  bottom: 0;
  left: 6%;
  height: 58%;
  background: var(--line);
  clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%);
}

.ar-case .wf-persp::after {
  content: "";
  position: absolute;
  top: 42%;
  right: 0;
  left: 0;
  border-top: 1.5px dashed var(--muted);
}

.ar-case .wf-arrow {
  position: absolute;
  bottom: 12%;
  left: 50%;
  width: 40px;
  height: 66px;
  margin-left: -20px;
  background: var(--ink);
  clip-path: polygon(50% 0, 100% 42%, 66% 42%, 66% 100%, 34% 100%, 34% 42%, 0 42%);
}

.ar-case .wf-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
}

.ar-case .wf-line {
  display: block;
  width: 70%;
  height: 8px;
  border-radius: 4px;
  background: var(--line);
}

.ar-case .wf-btn {
  display: block;
  padding: 8px 12px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 650;
  text-align: center;
}

.ar-case .wf-btn--primary {
  background: var(--ink);
  color: var(--bg);
}

.ar-case .wf-btn--small {
  align-self: flex-end;
  padding: 6px 14px;
}

.ar-case .wf-link {
  font-size: .75rem;
  text-align: center;
  text-decoration: underline;
}

/* --- 06 AR concept screens ---------------------------------------------------- */

.ar-case .ar-concepts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 28px;
  margin-top: 40px;
}

.ar-case .ar-concept {
  display: grid;
  align-content: start;
  gap: 18px;
  margin: 0;
}

.ar-case .ar-concept figcaption {
  display: grid;
  gap: 6px;
}

.ar-case .ar-concept h3 {
  font-size: 1.25rem;
  letter-spacing: -.02em;
}

.ar-case .ar-concept p {
  font-size: .95rem;
  line-height: 1.55;
  color: var(--muted);
}

.ar-case .ar-phone {
  position: relative;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 9 / 18;
  padding: 8px;
  border-radius: 40px;
  background: var(--ar-device);
  box-shadow: 0 28px 50px -34px rgba(20, 19, 17, .55);
}

.ar-case .ar-phone::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 16px;
  left: 50%;
  width: 56px;
  height: 16px;
  margin-left: -28px;
  border-radius: 999px;
  background: var(--ar-device);
}

.ar-case .ar-view {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 32px;
  background: var(--ar-sky);
}

.ar-case .ar-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ar-case .ar-chip,
.ar-case .ar-pill {
  position: absolute;
  left: 50%;
  width: max-content;
  max-width: 84%;
  border-radius: 999px;
  background: var(--ar-chip);
  font-weight: 650;
  text-align: center;
  transform: translateX(-50%);
  box-shadow: 0 8px 20px -12px rgba(0, 0, 0, .5);
}

.ar-case .ar-chip {
  top: 44px;
  padding: 9px 14px;
  font-size: .8125rem;
}

.ar-case .ar-pill {
  bottom: 22px;
  padding: 6px 12px;
  font-size: .75rem;
  color: var(--muted);
}

.ar-case .ar-view--split .ar-scene {
  height: 60%;
}

.ar-case .ar-mini-map {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 44%;
  overflow: hidden;
  background: var(--ar-map);
  border-top: 3px solid var(--ar-cyan-bright);
  border-radius: 20px 20px 0 0;
}

.ar-case .ar-mini-map svg {
  display: block;
  width: 100%;
  height: 100%;
}

.ar-case .ar-switch {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--ar-chip);
}

.ar-case .ar-switch b,
.ar-case .ar-alert__actions b {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
}

.ar-case .ar-switch .is-on,
.ar-case .ar-alert__actions .is-primary {
  background: var(--ar-cyan-bright);
  color: var(--ar-on-cyan);
}

.ar-case .ar-view--uncertain .ar-scene {
  opacity: .55;
}

.ar-case .ar-alert {
  position: absolute;
  right: 14px;
  bottom: 18px;
  left: 14px;
  display: grid;
  gap: 6px;
  padding: 16px;
  background: var(--ar-chip);
  border: 1.5px dashed var(--ar-cyan);
  border-radius: 18px;
  font-size: .8125rem;
  line-height: 1.4;
}

.ar-case .ar-alert strong {
  font-size: .95rem;
}

.ar-case .ar-alert__actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.ar-case .ar-alert__actions b {
  flex: 1;
  padding: 8px;
  border: 1px solid var(--line);
  text-align: center;
}

.ar-case .ar-alert__actions .is-primary {
  border-color: transparent;
}

.ar-case .ar-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 380px;
}

.ar-case .ar-phone--small {
  max-width: 180px;
  padding: 6px;
  border-radius: 30px;
}

.ar-case .ar-phone--small::before {
  top: 12px;
  width: 40px;
  height: 12px;
  margin-left: -20px;
}

.ar-case .ar-phone--small .ar-view {
  border-radius: 24px;
}

.ar-case .ar-compare__label {
  position: absolute;
  bottom: 16px;
  left: 50%;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--ar-chip);
  font-size: .75rem;
  font-weight: 700;
  transform: translateX(-50%);
}

.ar-case .ar-principles {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ar-case .ar-principles li {
  min-height: 150px;
  padding: 22px;
  background: var(--surface);
  border-top: 3px solid var(--ar-cyan-bright);
}

.ar-case .ar-principles h4 {
  margin-top: 14px;
  font-size: 1.02rem;
  line-height: 1.3;
  letter-spacing: -.01em;
}

/* --- 07 Reflection and 08 references ------------------------------------------ */

.ar-case .ar-reflect {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 40px;
  margin-top: 36px;
}

.ar-case .ar-reflect__lead {
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  line-height: 1.4;
  letter-spacing: -.02em;
}

.ar-case .ar-refs__title {
  margin: 32px 0 12px;
  font-size: 1.1rem;
}

.ar-case .ar-refs {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.ar-case .ar-refs li {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.ar-case .ar-refs a {
  font-weight: 650;
  text-underline-offset: 3px;
}

.ar-case .ar-refs a::after {
  content: " ↗";
  content: " ↗" / "";
}

.ar-case .ar-refs span {
  font-size: .875rem;
  color: var(--muted);
}

.ar-case .ar-refs__note {
  margin-top: 18px;
  font-size: .875rem;
  color: var(--muted);
}

/* --- AR: tablets and small laptops (900px and below) ---------------------------- */

@media (max-width: 900px) {
  .ar-case .ar-hero,
  .ar-case .ar-people,
  .ar-case .ar-reflect {
    grid-template-columns: 1fr;
  }

  .ar-case .ar-hero__visual {
    margin-top: 40px;
  }

  .ar-case .ar-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ar-case .ar-questions,
  .ar-case .ar-evidence {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ar-case .ar-evidence .ar-ev--hypothesis {
    grid-column: 1 / -1;
  }

  /* Journey: phases become cards, two per row */
  .ar-case .ar-journey {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    gap: 32px 14px;
  }

  .ar-case .ar-phase {
    display: flex;
    flex-direction: column;
  }

  /* IA: the route runs downwards, with optional paths beside each step */
  .ar-case .ar-ia__flow {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .ar-case .ar-ia__step {
    display: grid;
    grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
    align-items: start;
    gap: 12px 28px;
    padding-bottom: 26px;
  }

  .ar-case .ar-ia__node {
    min-height: 0;
  }

  .ar-case .ar-ia__step:not(:last-child) .ar-ia__node::after {
    top: auto;
    right: auto;
    bottom: -21px;
    left: 26px;
    width: 10px;
    height: 16px;
    clip-path: polygon(40% 0, 60% 0, 60% 55%, 100% 55%, 50% 100%, 0 55%, 40% 55%);
  }

  .ar-case .ar-ia__branches::before {
    display: none;
  }

  .ar-case .ar-ia__branches {
    padding-left: 0;
  }

  .ar-case .ar-ia__branch::before {
    left: -24px;
    width: 22px;
  }

  .ar-case .ar-wfs,
  .ar-case .ar-concepts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ar-case .ar-principles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* --- AR: phones (630px and below) -------------------------------------------- */

@media (max-width: 630px) {
  .ar-case .ar-translate {
    grid-template-columns: 1fr;
  }

  .ar-case .ar-translate__arrow {
    transform: rotate(90deg);
    margin: 28px 0;
  }

  .ar-case .ar-questions,
  .ar-case .ar-evidence,
  .ar-case .ar-journey,
  .ar-case .ar-wfs,
  .ar-case .ar-concepts,
  .ar-case .ar-principles {
    grid-template-columns: 1fr;
  }

  .ar-case .ar-principles li {
    min-height: 0;
  }

  .ar-case .ar-persona dl > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .ar-case .ar-empathy__grid {
    grid-template-columns: 1fr;
    padding-top: 52px;
  }

  .ar-case .ar-empathy__q,
  .ar-case .ar-empathy__q:nth-child(n) {
    padding: 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .ar-case .ar-empathy__q:last-of-type {
    border-bottom: 0;
  }

  .ar-case .ar-empathy__centre {
    top: 14px;
    transform: translateX(-50%);
  }

  /* The landscape table stacks; each cell shows its column name */
  .ar-case .ar-landscape__row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .ar-case .ar-landscape__row--head {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .ar-case .ar-landscape__row [role=cell]::before {
    content: attr(data-label) ": ";
    font-weight: 650;
    color: var(--ink);
  }

  .ar-case .ar-ia__step {
    grid-template-columns: 1fr;
    padding-left: 0;
  }

  .ar-case .ar-ia__branches {
    padding-left: 28px;
  }

  .ar-case .ar-ia__branch::before {
    left: -18px;
    width: 16px;
  }

  .ar-case .ar-ia__branches::before {
    display: block;
    top: -12px;
    left: 10px;
  }
}

/* ==========================================================================
   17. VR gestures case study (work/vr-gestures.html only)
   Every rule is scoped to body.vr-case. All hand illustrations and diagrams
   are original portfolio reconstructions drawn as inline SVG.
   ========================================================================== */

/* Project accent: a restrained violet, defined for both themes.
   --vr-violet is text-safe; --vr-violet-bright is for marks and graphics. */
.vr-case {
  --vr-violet: #5a45ad;
  --vr-violet-bright: #6a51d4;
  --vr-violet-soft: #ebe6f7;
  --vr-on-violet: #ffffff;
  --vr-stage: #ece8f2;
  --vr-hand: #f4efe8;
  --vr-hand-line: #2b2535;
  --vr-panel: #fbfaf7;
  --vr-panel-line: #d6cfe4;
  --vr-tile: #e6e0f1;
  --vr-film: #ddd8e3;
}

:root[data-theme=dark] .vr-case {
  --vr-violet: #b9a8ff;
  --vr-violet-bright: #a690ff;
  --vr-violet-soft: #221d33;
  --vr-on-violet: #16121f;
  --vr-stage: #19161f;
  --vr-hand: #2f2a38;
  --vr-hand-line: #d9d1ec;
  --vr-panel: #1f1d24;
  --vr-panel-line: #3b3548;
  --vr-tile: #2b2636;
  --vr-film: #26222c;
}

/* --- Shared pieces ---------------------------------------------------------- */

.vr-case .num {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--vr-violet);
}

.vr-case .vr-recon {
  display: inline-block;
  padding: 3px 10px;
  border: 1px dashed var(--vr-violet);
  border-radius: 12px;
  font-size: .75rem;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--vr-violet);
}

.vr-case .vr-caption {
  margin-top: 16px;
  font-size: .8125rem;
  line-height: 1.5;
  color: var(--muted);
}

.vr-case .vr-art {
  display: block;
  width: 100%;
  height: auto;
}

/* Hand illustration system: outline pass, fill pass, then fine creases */
.vr-case .vr-h-o {
  fill: var(--vr-hand-line);
  stroke: var(--vr-hand-line);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vr-case .vr-h-f {
  fill: var(--vr-hand);
  stroke: var(--vr-hand);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vr-case .vr-h-d {
  fill: none;
  stroke: var(--vr-hand-line);
  stroke-width: 1.4;
  stroke-linecap: round;
  opacity: .4;
}

/* Faint copies show movement */
.vr-case .vr-ghost {
  opacity: .22;
}

/* Tinted "mesh" hand for the inversion illustration */
.vr-case .vr-mesh .vr-h-o {
  fill: var(--vr-violet-bright);
  stroke: var(--vr-violet-bright);
}

.vr-case .vr-mesh .vr-h-f {
  fill: var(--vr-violet-soft);
  stroke: var(--vr-violet-soft);
}

.vr-case .vr-mesh .vr-h-d {
  stroke: var(--vr-violet-bright);
  stroke-dasharray: 3 4;
  opacity: .8;
}

/* List beside the vertical-wave gesture */
.vr-case .vr-list rect {
  fill: var(--vr-tile);
  stroke: var(--vr-panel-line);
  stroke-width: 1;
}

.vr-case .vr-list rect.is-on {
  fill: var(--vr-violet-bright);
  stroke: var(--vr-violet-bright);
}

/* The window framed by the two-handed L-frame */
.vr-case .vr-frame-glow {
  fill: var(--vr-violet-soft);
  stroke: var(--vr-violet-bright);
  stroke-width: 1.5;
  stroke-dasharray: 5 5;
}

.vr-case .vr-motion {
  fill: none;
  stroke: var(--vr-violet-bright);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vr-case .vr-x {
  fill: none;
  stroke: var(--accent);
  stroke-width: 4;
  stroke-linecap: round;
}

.vr-case .vr-q {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 44px;
  font-style: italic;
  fill: var(--vr-violet-bright);
}

.vr-case .vr-q--sm {
  font-size: 30px;
  opacity: .7;
}

.vr-case .vr-glyph path {
  fill: var(--vr-violet-bright);
  stroke: var(--vr-violet-bright);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vr-case .vr-glyph path + path {
  fill: none;
}

/* Spatial interface pieces */
.vr-case .vr-panel {
  fill: var(--vr-panel);
  stroke: var(--vr-panel-line);
  stroke-width: 1.5;
}

.vr-case .vr-panel--back {
  opacity: .55;
}

.vr-case .vr-panel-bar,
.vr-case .vr-tile {
  fill: var(--vr-tile);
}

.vr-case .vr-panel-dot {
  fill: var(--vr-panel-line);
}

.vr-case .vr-tile--target {
  fill: var(--vr-violet-soft);
  stroke: var(--vr-violet-bright);
  stroke-width: 3;
}

.vr-case .vr-floor {
  fill: var(--vr-violet-bright);
  opacity: .08;
}

.vr-case .vr-film {
  fill: var(--vr-film);
  stroke: var(--vr-panel-line);
  stroke-width: 1.5;
}

.vr-case .vr-contact {
  fill: var(--vr-violet-bright);
  opacity: .9;
}

.vr-case .vr-contact-ring {
  fill: none;
  stroke: var(--vr-violet-bright);
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
  animation: vr-pulse 2.8s ease-out infinite;
}

@keyframes vr-pulse {
  0% { opacity: .9; transform: scale(.5); }
  70% { opacity: 0; transform: scale(1.35); }
  100% { opacity: 0; transform: scale(1.35); }
}

/* --- Hero ------------------------------------------------------------------- */

.vr-case .vr-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  column-gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.vr-case .vr-hero .details-row {
  grid-column: 1 / -1;
}

.vr-case .page-hero h1 {
  font-size: clamp(3rem, 6vw, 6.2rem);
}

.vr-case .vr-stage-panel {
  margin: 0;
  padding: clamp(20px, 3vw, 36px);
  background: var(--vr-stage);
  border: 1px solid var(--line);
  text-align: center;
}

.vr-case .vr-stage-panel .vr-art {
  max-width: 500px;
  margin: 0 auto;
}

/* --- 01 Questions ------------------------------------------------------------ */

.vr-case .vr-versus {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 40px;
  background: var(--line);
  border: 1px solid var(--line);
}

.vr-case .vr-versus__card {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  grid-template-rows: auto auto 1fr auto;
  column-gap: 28px;
  padding: clamp(22px, 3.5vw, 40px);
  background: var(--surface);
}

.vr-case .vr-versus__card--open {
  background: var(--vr-violet-soft);
}

.vr-case .vr-versus__art {
  grid-row: 1 / -1;
  align-self: start;
}

.vr-case .vr-versus__q {
  margin-top: 14px;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.25;
  letter-spacing: -.02em;
}

.vr-case .vr-versus__traits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.vr-case .vr-versus__traits li {
  padding: 5px 12px;
  border: 1px solid var(--vr-violet);
  border-radius: 999px;
  font-size: .8125rem;
}

.vr-case .vr-versus .case-framing__note {
  display: block;
  margin-top: 22px;
  font-size: .8125rem;
  line-height: 1.5;
  color: var(--muted);
}

.vr-case .vr-midas-fig {
  margin: 36px 0 0;
}

.vr-case .vr-midas {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vr-case .vr-midas__step {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px;
  background: var(--surface);
  border-top: 3px solid var(--accent);
}

.vr-case .vr-midas__step--answer {
  background: var(--vr-violet-soft);
  border-top-color: var(--vr-violet-bright);
}

.vr-case .vr-midas__step p {
  font-size: .95rem;
  line-height: 1.45;
}

.vr-case .vr-midas__art {
  margin-bottom: 6px;
  padding: 10px;
  background: var(--vr-panel);
  border-radius: 12px;
}

.vr-case .vr-btn {
  fill: var(--vr-tile);
  stroke: var(--vr-panel-line);
  stroke-width: 1.5;
}

.vr-case .vr-btn--hover {
  fill: var(--vr-violet-soft);
  stroke: var(--vr-violet-bright);
  stroke-width: 2;
  stroke-dasharray: 4 4;
}

.vr-case .vr-btn--fired {
  fill: var(--accent);
  stroke: var(--accent);
}

.vr-case .vr-btn--chosen {
  fill: var(--vr-violet-bright);
  stroke: var(--vr-violet-bright);
}

.vr-case .vr-trail {
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  stroke-dasharray: 2 6;
  stroke-linecap: round;
}

.vr-case .vr-burst {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
}

/* --- 02 Method: separate stages ----------------------------------------------- */

.vr-case .vr-stages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.vr-case .vr-stage {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(20px, 2.5vw, 28px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.vr-case .vr-stage__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px;
}

.vr-case .vr-stage__kind {
  font-size: .75rem;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.vr-case .vr-stage h3 {
  font-size: 1.35rem;
}

.vr-case .vr-stage > p:last-child {
  margin-top: auto;
  font-size: .9rem;
  line-height: 1.55;
  color: var(--muted);
}

.vr-case .vr-stage__count {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 1rem;
  color: var(--muted);
}

.vr-case .vr-stage__count strong {
  font-size: clamp(2.6rem, 4vw, 3.4rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.05em;
  color: var(--ink);
}

.vr-case .vr-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vr-case .vr-chips li {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .8125rem;
}

/* Unit dots: one dot per response or participant, within one stage only */
.vr-case .vr-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.vr-case .vr-dots i {
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--vr-violet-bright);
  border-radius: 50%;
}

.vr-case .vr-dots i.is-on {
  background: var(--vr-violet-bright);
}

.vr-case .vr-dots--lg {
  gap: 8px;
}

.vr-case .vr-dots--lg i {
  width: 18px;
  height: 18px;
  border-width: 2px;
}

.vr-case .vr-separate {
  margin-top: 18px;
  padding: 12px 16px;
  border-left: 3px solid var(--vr-violet-bright);
  font-size: .9rem;
  color: var(--ink);
}

/* --- 03 Elicitation mapping ------------------------------------------------- */

.vr-case .vr-map {
  margin: 40px 0 0;
}

.vr-case .vr-map__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.vr-case .vr-map__row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 56px minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  transition: background-color .2s;
}

.vr-case .vr-map__row:hover {
  background: var(--vr-violet-soft);
}

.vr-case .vr-map__glyph {
  width: 96px;
  height: 96px;
  padding: 6px;
  background: var(--vr-panel);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.vr-case .vr-map__glyph .vr-art {
  height: 100%;
}

.vr-case .vr-map__gesture {
  font-size: 1.1rem;
  font-weight: 650;
}

.vr-case .vr-map__arrow {
  position: relative;
  height: 2px;
  background: var(--vr-violet-bright);
}

.vr-case .vr-map__arrow::after {
  content: "";
  position: absolute;
  top: -5px;
  right: 0;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--vr-violet-bright);
  border-right: 2px solid var(--vr-violet-bright);
  transform: rotate(45deg);
}

.vr-case .vr-map__fn {
  justify-self: start;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--vr-violet-soft);
  font-size: .95rem;
  font-weight: 650;
}

.vr-case .vr-map__status {
  font-size: .8125rem;
  color: var(--muted);
}

.vr-case .vr-map__row.is-existing .vr-map__fn {
  background: transparent;
  border: 1px solid var(--line);
}

.vr-case .vr-map__row.is-removed .vr-map__gesture,
.vr-case .vr-map__row.is-removed .vr-map__fn {
  text-decoration: line-through;
  text-decoration-color: var(--accent);
}

.vr-case .vr-map__row.is-removed .vr-map__arrow {
  background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 11px);
}

.vr-case .vr-map__row.is-removed .vr-map__arrow::after {
  border-color: var(--accent);
}

.vr-case .vr-map__row.is-removed .vr-map__status {
  color: var(--accent);
  font-weight: 650;
}

/* --- 04 Prototype pivot ------------------------------------------------------ */

.vr-case .vr-pivot {
  display: grid;
  gap: 0;
  margin-top: 40px;
}

.vr-case .vr-lane {
  padding: clamp(20px, 3vw, 32px);
  border-radius: 20px;
}

.vr-case .vr-lane--attempted {
  border: 1.5px dashed var(--accent);
}

.vr-case .vr-lane--completed {
  background: var(--vr-violet-soft);
  border: 1.5px solid var(--vr-violet-bright);
}

.vr-case .vr-lane__label {
  margin-bottom: 18px;
  font-size: .875rem;
  color: var(--muted);
}

.vr-case .vr-lane__label span {
  margin-right: 8px;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.vr-case .vr-lane--attempted .vr-lane__label span {
  border: 1px dashed var(--accent);
  color: var(--accent);
}

.vr-case .vr-lane--completed .vr-lane__label span {
  background: var(--vr-violet-bright);
  color: var(--vr-on-violet);
}

.vr-case .vr-lane__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vr-case .vr-lane--attempted .vr-lane__steps {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 66%;
}

.vr-case .vr-step {
  position: relative;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.vr-case .vr-step h3 {
  font-size: 1.15rem;
}

.vr-case .vr-step p {
  font-size: .9rem;
  line-height: 1.5;
  color: var(--muted);
}

/* Arrows between steps within a lane */
.vr-case .vr-step:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 50%;
  right: -13px;
  width: 12px;
  height: 10px;
  margin-top: -5px;
  background: var(--muted);
  clip-path: polygon(0 40%, 55% 40%, 55% 0, 100% 50%, 55% 100%, 55% 60%, 0 60%);
}

.vr-case .vr-step--blocked {
  border-style: dashed;
  border-color: var(--accent);
}

.vr-case .vr-step--blocked .num {
  color: var(--accent);
}

.vr-case .vr-step__art {
  width: 90px;
}

.vr-case .vr-pivot__turn {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 26px 0;
}

.vr-case .vr-pivot__turn::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  border-left: 2px dashed var(--vr-violet-bright);
}

.vr-case .vr-pivot__turn span {
  position: relative;
  padding: 6px 16px;
  border: 1px solid var(--vr-violet-bright);
  border-radius: 999px;
  background: var(--bg);
  font-size: .875rem;
  font-weight: 650;
  color: var(--vr-violet);
}

.vr-case .vr-composite {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin: 32px 0 0;
}

/* Panels share one row and captions the next, so they always line up */
.vr-case .vr-composite__layer {
  display: contents;
}

.vr-case .vr-composite__layer > .vr-art {
  grid-row: 1;
}

.vr-case .vr-composite__layer > p {
  grid-row: 2;
  align-self: start;
}

.vr-case .vr-composite__layer:nth-of-type(1) > * {
  grid-column: 1;
}

.vr-case .vr-composite__layer:nth-of-type(2) > * {
  grid-column: 3;
}

.vr-case .vr-composite__layer:nth-of-type(3) > * {
  grid-column: 5;
}

.vr-case .vr-composite__op {
  grid-row: 1;
}

.vr-case .vr-composite__layer p {
  display: grid;
  gap: 2px;
  font-size: .875rem;
}

.vr-case .vr-composite__op {
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--vr-violet);
}

.vr-case .vr-composite .vr-caption {
  grid-row: 3;
  grid-column: 1 / -1;
}

@media (max-width: 630px) {
  .vr-case .vr-composite .vr-caption {
    grid-row: auto;
  }
}

/* --- 05 Evaluation ------------------------------------------------------------ */

.vr-case .vr-finding {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  margin-top: 40px;
  padding: clamp(24px, 4vw, 44px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.vr-case .vr-finding__stat {
  display: flex;
  align-items: baseline;
  gap: 6px;
  line-height: 1;
}

.vr-case .vr-finding__stat strong {
  font-size: clamp(5rem, 10vw, 8.5rem);
  font-weight: 580;
  letter-spacing: -.07em;
  color: var(--vr-violet);
}

.vr-case .vr-finding__stat span {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--muted);
}

.vr-case .vr-finding__lead {
  margin-bottom: 18px;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1.35;
  letter-spacing: -.01em;
}

.vr-case .vr-finding__meta {
  margin-top: 16px;
  font-size: .8125rem;
  color: var(--muted);
}

.vr-case .vr-decision {
  margin: 28px 0 0;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.vr-case .vr-decision__root {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--ink);
  font-size: .9rem;
  font-weight: 650;
  color: var(--bg);
}

.vr-case .vr-decision__branches {
  display: grid;
  gap: 10px;
  margin: 18px 0 0 22px;
  padding: 0 0 0 26px;
  list-style: none;
  border-left: 2px solid var(--line);
}

.vr-case .vr-decision__branches li {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  padding: 12px 16px;
  background: var(--surface);
  border-radius: 12px;
}

.vr-case .vr-decision__branches li::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -26px;
  width: 24px;
  border-top: 2px solid var(--line);
}

.vr-case .vr-decision__branches strong {
  font-size: 1rem;
}

.vr-case .vr-decision__branches span:not(.vr-decision__mark) {
  font-size: .875rem;
  color: var(--muted);
}

.vr-case .vr-decision__mark {
  align-self: center;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--vr-violet-bright);
}

.vr-case .vr-decision__branches .is-existing .vr-decision__mark {
  background: transparent;
  border: 2px solid var(--ink);
}

/* The discarded branch: dashed, struck through and labelled in words */
.vr-case .vr-decision__branches .is-removed {
  background: transparent;
  border: 1.5px dashed var(--accent);
}

.vr-case .vr-decision__branches .is-removed::before {
  border-top-style: dashed;
  border-top-color: var(--accent);
}

.vr-case .vr-decision__branches .is-removed strong {
  text-decoration: line-through;
  text-decoration-color: var(--accent);
}

.vr-case .vr-decision__branches .is-removed .vr-decision__mark {
  background: transparent;
  border: 2px solid var(--accent);
}

.vr-case .vr-decision__branches .is-removed span:not(.vr-decision__mark) {
  color: var(--accent);
}

.vr-case .vr-accept {
  margin-top: 28px;
  padding: clamp(20px, 3vw, 32px);
  background: var(--surface);
  border-radius: 22px;
}

.vr-case .vr-accept__title {
  margin-bottom: 14px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.vr-case .vr-accept__rows {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vr-case .vr-accept__rows li {
  display: grid;
  grid-template-columns: 11em auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.vr-case .vr-accept__rows span:first-child {
  font-weight: 650;
}

.vr-case .vr-accept__rows em {
  font-size: .875rem;
  font-style: normal;
  color: var(--muted);
}

.vr-case .vr-limit {
  margin-top: 18px;
  padding: 12px 16px;
  border: 1.5px dashed var(--accent);
  border-radius: 12px;
  font-size: .875rem;
  line-height: 1.5;
}

/* --- 06 Final three-gesture triptych ------------------------------------------ */

.vr-case .vr-triptych {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 40px;
}

.vr-case .vr-tri {
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 2.6vw, 30px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  transition: border-color .2s;
}

.vr-case .vr-tri:hover {
  border-color: var(--vr-violet-bright);
}

.vr-case .vr-tri__tag {
  align-self: flex-start;
  padding: 4px 10px;
  border: 1px solid var(--vr-violet);
  border-radius: 12px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--vr-violet);
}

.vr-case .vr-tri__art {
  display: grid;
  place-items: center;
  height: 230px;
  margin: 20px 0 22px;
  padding: 16px;
  background: var(--vr-stage);
  border-radius: 18px;
}

.vr-case .vr-tri__art .vr-art {
  width: auto;
  max-width: 100%;
  height: 100%;
}

.vr-case .vr-tri__name {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--vr-violet);
}

.vr-case .vr-tri h3 {
  margin-top: 6px;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  letter-spacing: -.04em;
}

.vr-case .vr-tri__tagline {
  margin-top: 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.35;
  color: var(--muted);
}

.vr-case .vr-tri dl {
  margin: 22px 0 0;
  border-top: 1px solid var(--line);
}

.vr-case .vr-tri dl > div {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.vr-case .vr-tri dt {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.vr-case .vr-tri dd {
  margin: 4px 0 0;
  font-size: .925rem;
  line-height: 1.5;
}

.vr-case .vr-pinch-note {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  padding: 12px 18px 12px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  width: fit-content;
  max-width: 100%;
  font-size: .95rem;
  font-weight: 650;
}

.vr-case .vr-pinch-note__art {
  flex: none;
  width: 40px;
  height: 48px;
}

.vr-case .vr-pinch-note__art .vr-art {
  height: 100%;
}

/* --- 07 Reflection takeaways and 08 reconstruction note ----------------------- */

.vr-case .vr-takes {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 36px 0 12px;
  padding: 0;
  list-style: none;
}

.vr-case .vr-take {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 22px;
  background: var(--surface);
  border-top: 3px solid var(--vr-violet-bright);
}

.vr-case .vr-take--lim {
  border-top: 3px dashed var(--accent);
}

.vr-case .vr-take--lim .num {
  color: var(--accent);
}

.vr-case .vr-take h3 {
  font-size: 1.05rem;
  line-height: 1.3;
  letter-spacing: -.01em;
}

.vr-case .vr-take p {
  font-size: .875rem;
  line-height: 1.5;
  color: var(--muted);
}

.vr-case .vr-recon-note {
  display: grid;
  gap: 10px;
  max-width: 820px;
  margin-top: 28px;
  padding: 20px 22px;
  border: 1px dashed var(--vr-violet);
  border-radius: 16px;
}

.vr-case .vr-recon-note p:last-child {
  font-size: .925rem;
  line-height: 1.55;
}

/* --- VR: tablets and small laptops (900px and below) -------------------------- */

@media (max-width: 900px) {
  .vr-case .vr-hero,
  .vr-case .vr-versus {
    grid-template-columns: 1fr;
  }

  .vr-case .vr-hero__visual {
    margin-top: 40px;
  }

  .vr-case .vr-midas,
  .vr-case .vr-stages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vr-case .vr-map__row {
    grid-template-columns: 80px minmax(0, 1fr) 36px minmax(0, 1fr);
  }

  .vr-case .vr-map__glyph {
    width: 80px;
    height: 80px;
  }

  .vr-case .vr-map__status {
    grid-column: 2 / -1;
    margin-top: -10px;
  }

  .vr-case .vr-lane--attempted .vr-lane__steps {
    max-width: none;
  }

  .vr-case .vr-triptych {
    grid-template-columns: 1fr;
    max-width: 560px;
  }

  .vr-case .vr-takes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* --- VR: phones (630px and below) -------------------------------------------- */

@media (max-width: 630px) {
  .vr-case .vr-versus__card {
    grid-template-columns: 1fr;
  }

  .vr-case .vr-versus__art {
    grid-row: auto;
    width: 110px;
    margin-bottom: 12px;
  }

  .vr-case .vr-midas,
  .vr-case .vr-stages,
  .vr-case .vr-takes {
    grid-template-columns: 1fr;
  }

  .vr-case .vr-map__row {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 6px 16px;
  }

  .vr-case .vr-map__glyph {
    grid-row: span 3;
    width: 72px;
    height: 72px;
  }

  .vr-case .vr-map__arrow {
    display: none;
  }

  .vr-case .vr-map__fn {
    font-size: .875rem;
  }

  .vr-case .vr-map__status {
    grid-column: 2;
    margin-top: 0;
  }

  .vr-case .vr-lane__steps,
  .vr-case .vr-lane--attempted .vr-lane__steps {
    grid-template-columns: 1fr;
  }

  .vr-case .vr-step:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: -13px;
    left: 26px;
    width: 10px;
    height: 12px;
    margin-top: 0;
    clip-path: polygon(40% 0, 60% 0, 60% 55%, 100% 55%, 50% 100%, 0 55%, 40% 55%);
  }

  .vr-case .vr-composite {
    grid-template-columns: 1fr;
  }

  .vr-case .vr-composite__layer {
    display: grid;
    gap: 10px;
  }

  .vr-case .vr-composite__layer > *,
  .vr-case .vr-composite__op {
    grid-row: auto;
    grid-column: auto;
  }

  .vr-case .vr-composite__op {
    justify-self: center;
  }

  .vr-case .vr-finding {
    grid-template-columns: 1fr;
  }

  .vr-case .vr-decision__branches {
    margin-left: 8px;
    padding-left: 18px;
  }

  .vr-case .vr-decision__branches li::before {
    left: -18px;
    width: 16px;
  }

  .vr-case .vr-accept__rows li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .vr-case .vr-pinch-note {
    border-radius: 18px;
  }
}

/* --- VR: reduced motion ---------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .vr-case .vr-contact-ring {
    animation: none;
    opacity: .6;
  }

  .vr-case .vr-map__row,
  .vr-case .vr-tri {
    transition: none;
  }
}

/* ==========================================================================
   18. Finacle design-system case study (work/finacle.html only)
   Every rule is scoped to body.finacle-case. All interface elements, screens
   and diagrams are original portfolio reconstructions with fictional data.
   ========================================================================== */

/* Project accent: a restrained oxblood. On this page it also replaces the
   terracotta label accent, so the page uses one red family, not two. */
.finacle-case {
  --accent: #7f2434;
  --fn-ox: #7f2434;
  --fn-ox-bright: #952c3f;
  --fn-ox-soft: #f4e6e6;
  --fn-on-ox: #ffffff;
  --fn-stage: #efe9e4;
  --fn-screen: #ffffff;
  --fn-screen-2: #f8f6f2;
  --fn-ui-line: #dcd7ce;
  --fn-ui-ink: #1d2428;
  --fn-ui-muted: #5c6467;
  --fn-ink-bar: #1d2428;
  --fn-on-ink: #ffffff;
  --fn-success: #1d6a44;
  --fn-success-soft: #e2f1e7;
  --fn-warning: #7f5200;
  --fn-warning-soft: #fbefd8;
  --fn-action: #9a3412;
  --fn-action-soft: #fdebdc;
  --fn-error: #b42318;
  --fn-error-soft: #fde8e5;
  --fn-info: #1e5a8c;
  --fn-info-soft: #e3eef7;
  --fn-neutral: #4d5558;
  --fn-neutral-soft: #eceae5;
  --fn-focus: #1e5a8c;
  --fn-lowc: #b8b3aa;
}

:root[data-theme=dark] .finacle-case {
  --accent: #eea4ae;
  --fn-ox: #eea4ae;
  --fn-ox-bright: #e3808e;
  --fn-ox-soft: #2e1a1e;
  --fn-on-ox: #141311;
  --fn-stage: #1d1a1a;
  --fn-screen: #1f1e1c;
  --fn-screen-2: #262422;
  --fn-ui-line: #3a3632;
  --fn-ui-ink: #f1ede6;
  --fn-ui-muted: #b8b0a6;
  --fn-ink-bar: #3d3a36;
  --fn-on-ink: #ffffff;
  --fn-success: #86d4a6;
  --fn-success-soft: #162a1f;
  --fn-warning: #f0c36d;
  --fn-warning-soft: #2c2413;
  --fn-action: #ffb27a;
  --fn-action-soft: #33200f;
  --fn-error: #ff9e91;
  --fn-error-soft: #36191a;
  --fn-info: #93c5f2;
  --fn-info-soft: #16242f;
  --fn-neutral: #c4bdb3;
  --fn-neutral-soft: #2a2825;
  --fn-focus: #93c5f2;
  --fn-lowc: #55504a;
}

/* --- Shared pieces ----------------------------------------------------------- */

.finacle-case .num {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fn-ox);
}

.finacle-case .fn-tag {
  display: inline-block;
  padding: 4px 12px;
  border: 1px dashed var(--fn-ox);
  border-radius: 12px;
  font-size: .75rem;
  font-weight: 650;
  letter-spacing: .04em;
  line-height: 1.4;
  color: var(--fn-ox);
}

.finacle-case .fn-tag--strong {
  border-style: solid;
  background: var(--fn-ox-soft);
}

.finacle-case .fn-note {
  margin-top: 16px;
  font-size: .8125rem;
  line-height: 1.5;
  color: var(--muted);
}

.finacle-case .fn-i {
  flex: none;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Numbered anatomy markers */
.finacle-case .fn-pin {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--fn-ox-bright);
  font-size: .75rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  color: var(--fn-on-ox);
}

.finacle-case .fn-sheet__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin: 72px 0 24px;
}

.finacle-case .fn-sheet__head h3 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  letter-spacing: -.035em;
}

/* --- Generic UI parts (used by specimens and screens) ------------------------ */

.finacle-case .fn-field,
.finacle-case .fn-mf,
.finacle-case .fn-val__frame,
.finacle-case .fn-a11y__stage {
  display: grid;
  gap: 6px;
}

.finacle-case .fn-field__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8125rem;
  font-weight: 650;
  color: var(--fn-ui-ink);
}

.finacle-case .fn-field__input {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  background: var(--fn-screen);
  border: 1.5px solid var(--fn-ui-muted);
  border-radius: 8px;
  font-size: .9375rem;
  color: var(--fn-ui-ink);
}

.finacle-case .fn-field__input > span {
  flex: 1;
  min-width: 0;
}

.finacle-case .fn-field__input--ph {
  color: var(--fn-ui-muted);
}

.finacle-case .fn-field__input--err {
  border-color: var(--fn-error);
  border-width: 2px;
}

.finacle-case .fn-field__help {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8125rem;
  color: var(--fn-ui-muted);
}

.finacle-case .fn-field__error,
.finacle-case .fn-field__ok,
.finacle-case .fn-field__vague {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.4;
}

.finacle-case .fn-field__error,
.finacle-case .fn-field__vague {
  color: var(--fn-error);
}

.finacle-case .fn-field__ok {
  color: var(--fn-success);
}

.finacle-case .fn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1.5px solid transparent;
  border-radius: 8px;
  font-size: .875rem;
  font-weight: 650;
  white-space: nowrap;
  cursor: default;
}

.finacle-case .fn-btn--primary {
  background: var(--fn-ox-bright);
  color: var(--fn-on-ox);
}

.finacle-case .fn-btn--secondary {
  background: var(--fn-screen);
  border-color: var(--fn-ui-ink);
  color: var(--fn-ui-ink);
}

.finacle-case .fn-btn--text {
  padding: 0 6px;
  color: var(--fn-ox);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.finacle-case .fn-btn.is-hover {
  background: var(--fn-ox);
}

.finacle-case .fn-btn.is-focus {
  outline: 3px solid var(--fn-focus);
  outline-offset: 2px;
}

.finacle-case .fn-btn.is-disabled {
  background: var(--fn-neutral-soft);
  border-color: var(--fn-ui-line);
  color: var(--fn-ui-muted);
}

.finacle-case .fn-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 3px 10px 3px 7px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 650;
  line-height: 1.4;
  white-space: nowrap;
}

.finacle-case .fn-badge .fn-i {
  width: 14px;
  height: 14px;
}

.finacle-case .fn-badge--success { color: var(--fn-success); background: var(--fn-success-soft); }
.finacle-case .fn-badge--warning { color: var(--fn-warning); background: var(--fn-warning-soft); }
.finacle-case .fn-badge--action { color: var(--fn-action); background: var(--fn-action-soft); }
.finacle-case .fn-badge--error { color: var(--fn-error); background: var(--fn-error-soft); }
.finacle-case .fn-badge--info { color: var(--fn-info); background: var(--fn-info-soft); }
.finacle-case .fn-badge--neutral { color: var(--fn-neutral); background: var(--fn-neutral-soft); }

/* Dense data rows */
.finacle-case .fn-table {
  display: grid;
  background: var(--fn-screen);
  border: 1px solid var(--fn-ui-line);
  border-radius: 10px;
  overflow: hidden;
}

.finacle-case .fn-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 7.6rem 6.4rem;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-top: 1px solid var(--fn-ui-line);
  font-size: .875rem;
  color: var(--fn-ui-ink);
}

.finacle-case .fn-row--head {
  border-top: 0;
  background: var(--fn-screen-2);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--fn-ui-muted);
}

.finacle-case .fn-row--head > span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.finacle-case .fn-row__main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.finacle-case .fn-row__main strong {
  font-weight: 650;
}

.finacle-case .fn-row__main span {
  font-size: .8125rem;
  color: var(--fn-ui-muted);
}

.finacle-case .fn-row__amt {
  justify-self: end;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  text-align: right;
}

.finacle-case .fn-row__amt.is-credit {
  color: var(--fn-success);
}

/* --- Hero ------------------------------------------------------------------ */

.finacle-case .fn-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  column-gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.finacle-case .fn-hero .details-row {
  grid-column: 1 / -1;
}

.finacle-case .page-hero h1 {
  font-size: clamp(3rem, 6vw, 6.2rem);
}

.finacle-case .fn-stage {
  display: grid;
  justify-items: center;
  gap: 16px;
  margin: 0;
  padding: clamp(18px, 3vw, 32px);
  background: var(--fn-stage);
  border: 1px solid var(--line);
  text-align: center;
}

.finacle-case .fn-hero-art {
  width: 100%;
  max-width: 540px;
  height: auto;
}

.finacle-case .fn-h-dot { fill: var(--fn-ui-line); }
.finacle-case .fn-h-window { fill: var(--fn-screen); stroke: var(--fn-ui-line); stroke-width: 1.5; }
.finacle-case .fn-h-guide { fill: none; stroke: var(--fn-ox-bright); stroke-width: 1; stroke-dasharray: 2 5; opacity: .35; }
.finacle-case .fn-h-ink { fill: var(--fn-ink-bar); }
.finacle-case .fn-h-onink { fill: var(--fn-on-ink); opacity: .55; }
.finacle-case .fn-h-heading { fill: var(--fn-ui-ink); }
.finacle-case .fn-h-bar { fill: var(--fn-ui-muted); opacity: .55; }
.finacle-case .fn-h-bar--soft { opacity: .3; }
.finacle-case .fn-h-field { fill: var(--fn-screen); stroke: var(--fn-ui-muted); stroke-width: 1.5; }
.finacle-case .fn-h-primary { fill: var(--fn-ox-bright); }
.finacle-case .fn-h-onprimary { fill: var(--fn-on-ox); opacity: .85; }
.finacle-case .fn-h-secondary { fill: var(--fn-screen); stroke: var(--fn-ui-ink); stroke-width: 1.5; }
.finacle-case .fn-h-row { fill: var(--fn-screen); stroke: var(--fn-ui-line); stroke-width: 1.5; }
.finacle-case .fn-h-line { fill: none; stroke: var(--fn-ui-line); stroke-width: 1.5; }
.finacle-case .fn-h-badge { fill: var(--fn-success-soft); stroke: var(--fn-success); stroke-width: 1; }
.finacle-case .fn-h-badge-dot,
.finacle-case .fn-h-success { fill: var(--fn-success); }
.finacle-case .fn-h-tick { fill: none; stroke: var(--fn-screen); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.finacle-case .fn-h-toast { fill: var(--fn-success-soft); stroke: var(--fn-success); stroke-width: 1.2; }
.finacle-case .fn-h-toast--float { filter: drop-shadow(0 10px 14px rgba(20, 19, 17, .18)); }
.finacle-case .fn-h-link { fill: none; stroke: var(--fn-ox-bright); stroke-width: 1.6; stroke-dasharray: 3 5; stroke-linecap: round; }
.finacle-case .fn-h-node { fill: var(--fn-ox-bright); }

/* --- 01 Context diagram -------------------------------------------------------- */

.finacle-case .fn-layers {
  margin: 40px 0 32px;
}

.finacle-case .fn-layers__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "digital patterns"
    "core patterns";
  gap: 14px;
}

.finacle-case .fn-layer {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: clamp(20px, 2.6vw, 28px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.finacle-case .fn-layer--digital { grid-area: digital; }
.finacle-case .fn-layer--core { grid-area: core; }

.finacle-case .fn-layer--patterns {
  grid-area: patterns;
  align-content: center;
  background: var(--fn-ox-soft);
  border: 1.5px solid var(--fn-ox-bright);
}

.finacle-case .fn-layer__kind {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.finacle-case .fn-layer--patterns .fn-layer__kind {
  color: var(--fn-ox);
}

.finacle-case .fn-layer h3 {
  font-size: 1.4rem;
}

.finacle-case .fn-layer p {
  font-size: .95rem;
  line-height: 1.5;
}

.finacle-case .fn-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.finacle-case .fn-chips li {
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  font-size: .8125rem;
}

.finacle-case .fn-chips--ox li {
  border-color: var(--fn-ox-bright);
}

.finacle-case .fn-distinct {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  padding: 16px 20px;
  border: 1px dashed var(--line);
  border-radius: 16px;
}

.finacle-case .fn-distinct p {
  display: grid;
  gap: 2px;
  font-size: .95rem;
}

.finacle-case .fn-distinct span:not(.fn-distinct__ne) {
  font-size: .8125rem;
  color: var(--muted);
}

.finacle-case .fn-distinct__ne {
  font-size: 2rem;
  line-height: 1;
  color: var(--fn-ox);
}

/* --- 02 Design considerations -------------------------------------------------- */

.finacle-case .fn-considers {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.finacle-case .fn-consider {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px;
  background: var(--surface);
  border-top: 3px solid var(--fn-ox-bright);
}

.finacle-case .fn-consider__art {
  margin-bottom: 8px;
  padding: 10px;
  background: var(--fn-screen);
  border-radius: 10px;
}

.finacle-case .fn-mini {
  display: block;
  width: 100%;
  height: auto;
}

.finacle-case .fn-consider h3 {
  font-size: 1.1rem;
}

.finacle-case .fn-consider p {
  font-size: .875rem;
  line-height: 1.5;
  color: var(--muted);
}

.finacle-case .fn-m-bar { fill: var(--fn-ui-muted); opacity: .6; }
.finacle-case .fn-m-soft { opacity: .3; }
.finacle-case .fn-m-guide { fill: none; stroke: var(--fn-ox-bright); stroke-width: 1.2; stroke-dasharray: 3 3; }
.finacle-case .fn-m-frame { fill: var(--fn-screen-2); stroke: var(--fn-ui-line); stroke-width: 1.2; }
.finacle-case .fn-m-ink { fill: var(--fn-ink-bar); }
.finacle-case .fn-m-primary { fill: var(--fn-ox-bright); }
.finacle-case .fn-m-field { fill: var(--fn-screen); stroke: var(--fn-ui-muted); stroke-width: 1.4; }
.finacle-case .fn-m-focus { fill: none; stroke: var(--fn-focus); stroke-width: 2.2; }
.finacle-case .fn-m-error { stroke: var(--fn-error); stroke-width: 1.8; }
.finacle-case .fn-m-err-dot { fill: var(--fn-error); }
.finacle-case .fn-m-ok { fill: var(--fn-success); }
.finacle-case .fn-m-tick { fill: none; stroke: var(--fn-screen); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.finacle-case .fn-m-link { fill: none; stroke: var(--fn-ox-bright); stroke-width: 1.4; stroke-dasharray: 2 3; }

/* --- 03 Role panel -------------------------------------------------------------- */

.finacle-case .fn-team {
  margin-top: 40px;
  padding: 14px;
  border: 1.5px dashed var(--line);
  border-radius: 24px;
}

.finacle-case .fn-team__label {
  padding: 4px 8px 14px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.finacle-case .fn-role {
  padding: clamp(20px, 3vw, 32px);
  background: var(--surface);
  border: 1.5px solid var(--fn-ox-bright);
  border-radius: 18px;
}

.finacle-case .fn-role__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.finacle-case .fn-role__head span:first-child {
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -.02em;
}

.finacle-case .fn-role__head span:last-child {
  font-size: .875rem;
  color: var(--muted);
}

.finacle-case .fn-role__groups {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 1px;
  margin-top: 20px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.finacle-case .fn-role__group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background: var(--bg);
}

.finacle-case .fn-role__group h3 {
  font-size: 1.25rem;
}

.finacle-case .fn-role__group p {
  font-size: .9rem;
  line-height: 1.55;
  color: var(--muted);
}

.finacle-case .fn-role__areas {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: auto 0 0;
  padding: 8px 0 0;
  list-style: none;
}

.finacle-case .fn-role__areas li {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--fn-ox-soft);
  font-size: .8125rem;
  font-weight: 650;
  color: var(--fn-ox);
}

.finacle-case .fn-role__not {
  margin-top: 18px;
  font-size: .875rem;
  color: var(--muted);
}

/* --- 04 Research-to-pattern flow ------------------------------------------------- */

.finacle-case .fn-flow {
  margin: 40px 0 0;
}

.finacle-case .fn-flow__steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.finacle-case .fn-flow__step {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
}

.finacle-case .fn-flow__node {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 10px 14px;
  background: var(--fn-ox-soft);
  border: 1.5px solid var(--fn-ox-bright);
  border-radius: 12px;
  font-size: .9375rem;
  font-weight: 650;
  line-height: 1.25;
  color: var(--ink);
}

/* Arrow to the next node */
.finacle-case .fn-flow__step:not(:last-child) .fn-flow__node::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -15px;
  width: 14px;
  height: 10px;
  margin-top: -5px;
  background: var(--fn-ox-bright);
  clip-path: polygon(0 40%, 55% 40%, 55% 0, 100% 50%, 55% 100%, 55% 60%, 0 60%);
}

.finacle-case .fn-flow__card {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px;
  background: var(--surface);
  border-radius: 12px;
}

.finacle-case .fn-flow__card h3 {
  font-size: 1.15rem;
}

.finacle-case .fn-flow__card p {
  font-size: .875rem;
  line-height: 1.5;
  color: var(--muted);
}

/* --- 05 Component specimen sheet ---------------------------------------------- */

.finacle-case .fn-specs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.finacle-case .fn-spec {
  display: flex;
  flex-direction: column;
  margin: 0;
  background: var(--fn-stage);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}

.finacle-case .fn-spec--a,
.finacle-case .fn-spec--b { grid-column: span 3; }
.finacle-case .fn-spec--c,
.finacle-case .fn-spec--d,
.finacle-case .fn-spec--e { grid-column: span 2; }
.finacle-case .fn-spec--f { grid-column: span 4; }
.finacle-case .fn-spec--g { grid-column: span 2; }

.finacle-case .fn-spec__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 18px 20px 0;
}

.finacle-case .fn-spec__head h4 {
  font-size: 1.05rem;
}

/* The specimen canvas, like a page in a component sheet */
.finacle-case .fn-spec__stage {
  margin: 14px 20px 0;
  padding: 22px;
  background: var(--fn-screen);
  border: 1px solid var(--fn-ui-line);
  border-radius: 14px;
  background-image: radial-gradient(var(--fn-ui-line) 1px, transparent 1px);
  background-size: 16px 16px;
  background-position: -8px -8px;
}

.finacle-case .fn-spec__notes {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding: 16px 20px 20px;
}

.finacle-case .fn-anat {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.finacle-case .fn-anat li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .875rem;
}

.finacle-case .fn-why {
  font-size: .875rem;
  line-height: 1.5;
  color: var(--muted);
}

.finacle-case .fn-why strong {
  display: block;
  margin-bottom: 2px;
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fn-ox);
}

.finacle-case .fn-field {
  max-width: 380px;
}

.finacle-case .fn-mfs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}

.finacle-case .fn-mf__state {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fn-ox);
}

.finacle-case .fn-mf--focus .fn-field__input {
  outline: 3px solid var(--fn-focus);
  outline-offset: 2px;
}

.finacle-case .fn-mf--disabled .fn-field__input {
  background: var(--fn-neutral-soft);
  border-color: var(--fn-ui-line);
  color: var(--fn-ui-muted);
}

.finacle-case .fn-mf--error .fn-field__input {
  border-color: var(--fn-error);
  border-width: 2px;
}

.finacle-case .fn-acts {
  display: grid;
  gap: 20px;
}

.finacle-case .fn-acts__row,
.finacle-case .fn-acts__states,
.finacle-case .fn-pair {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.finacle-case .fn-acts__states {
  gap: 14px 12px;
  padding-top: 16px;
  border-top: 1px dashed var(--fn-ui-line);
}

.finacle-case .fn-acts__states > span {
  display: grid;
  justify-items: center;
  gap: 6px;
}

.finacle-case .fn-acts__states em {
  font-size: .75rem;
  font-style: normal;
  font-weight: 650;
  color: var(--fn-ui-muted);
}

.finacle-case .fn-val {
  display: grid;
  gap: 10px;
}

.finacle-case .fn-val__arrow {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fn-ui-muted);
}

.finacle-case .fn-val__arrow::before {
  content: "";
  width: 2px;
  height: 18px;
  background: var(--fn-ui-line);
}

.finacle-case .fn-val__frame--error .fn-field__input {
  border-color: var(--fn-error);
  border-width: 2px;
}

.finacle-case .fn-val__frame--ok .fn-field__input {
  border-color: var(--fn-success);
  border-width: 2px;
}

.finacle-case .fn-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.finacle-case .fn-confirm {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--fn-success-soft);
  border: 1px solid var(--fn-success);
  border-left-width: 4px;
  border-radius: 10px;
  color: var(--fn-ui-ink);
}

.finacle-case .fn-confirm__icon {
  color: var(--fn-success);
}

.finacle-case .fn-confirm__icon .fn-i {
  width: 22px;
  height: 22px;
}

.finacle-case .fn-confirm > div {
  display: grid;
  gap: 4px;
  font-size: .875rem;
  line-height: 1.45;
}

.finacle-case .fn-confirm strong {
  font-size: 1rem;
}

.finacle-case .fn-confirm__link {
  font-weight: 650;
  color: var(--fn-ox);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- 05 Accessibility comparisons ---------------------------------------------- */

.finacle-case .fn-a11ys {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.finacle-case .fn-a11y {
  display: grid;
  grid-template-columns: minmax(0, 11rem) minmax(0, 2.4fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 18px 20px;
  background: var(--surface);
  border-radius: 16px;
}

.finacle-case .fn-a11y h4 {
  font-size: 1.1rem;
}

.finacle-case .fn-a11y > p {
  font-size: .875rem;
  line-height: 1.5;
  color: var(--muted);
}

.finacle-case .fn-a11y__pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.finacle-case .fn-a11y__side {
  display: grid;
  gap: 8px;
}

.finacle-case .fn-a11y__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.finacle-case .fn-a11y__side--after .fn-a11y__tag {
  color: var(--fn-success);
}

.finacle-case .fn-a11y__stage {
  align-content: center;
  min-height: 104px;
  padding: 14px;
  background: var(--fn-screen);
  border: 1px solid var(--fn-ui-line);
  border-radius: 12px;
}

.finacle-case .fn-a11y__side--before .fn-a11y__stage {
  border-style: dashed;
}

/* Deliberately low contrast: the "harder to use" demonstration only */
.finacle-case .fn-lowc {
  color: var(--fn-lowc);
}

.finacle-case .fn-dots-only {
  display: flex;
  gap: 14px;
}

.finacle-case .fn-dots-only i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.finacle-case .fn-dots-only .is-g { background: var(--fn-success); }
.finacle-case .fn-dots-only .is-a { background: var(--fn-warning); }
.finacle-case .fn-dots-only .is-r { background: var(--fn-error); }

.finacle-case .fn-badges--sm {
  gap: 6px;
}

/* --- 05 Conceptual screens ----------------------------------------------------- */

.finacle-case .fn-sub__intro {
  max-width: 63ch;
  margin-bottom: 28px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
}

.finacle-case .fn-screen {
  margin: 0 0 32px;
  padding: clamp(14px, 2.4vw, 28px);
  background: var(--fn-stage);
  border: 1px solid var(--line);
  border-radius: 24px;
}

.finacle-case .fn-screen__label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  margin-bottom: 18px;
}

.finacle-case .fn-screen__name {
  font-size: .875rem;
  font-weight: 650;
}

.finacle-case .fn-app {
  overflow: hidden;
  background: var(--fn-screen-2);
  border: 1px solid var(--fn-ui-line);
  border-radius: 16px;
  box-shadow: 0 30px 60px -44px rgba(20, 19, 17, .55);
  color: var(--fn-ui-ink);
}

.finacle-case .fn-app__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: var(--fn-ink-bar);
  color: var(--fn-on-ink);
}

.finacle-case .fn-app__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9375rem;
  font-weight: 650;
}

.finacle-case .fn-app__brand i {
  width: 18px;
  height: 18px;
  border: 2px solid var(--fn-on-ink);
  border-radius: 5px;
}

.finacle-case .fn-app__user {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  font-size: .75rem;
  font-weight: 700;
}

.finacle-case .fn-app__body {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
}

.finacle-case .fn-app__nav {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 18px 12px;
  background: var(--fn-screen);
  border-right: 1px solid var(--fn-ui-line);
  font-size: .875rem;
}

.finacle-case .fn-app__nav span {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--fn-ui-muted);
}

.finacle-case .fn-app__nav .is-on {
  background: var(--fn-ox-soft);
  font-weight: 650;
  color: var(--fn-ox);
  box-shadow: inset 3px 0 0 var(--fn-ox-bright);
}

.finacle-case .fn-app__main {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.finacle-case .fn-app__title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
}

.finacle-case .fn-app__title strong {
  font-size: 1.35rem;
  letter-spacing: -.02em;
}

.finacle-case .fn-app__title span {
  font-size: .8125rem;
  color: var(--fn-ui-muted);
}

.finacle-case .fn-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.finacle-case .fn-card {
  display: grid;
  gap: 4px;
  padding: 16px;
  background: var(--fn-screen);
  border: 1px solid var(--fn-ui-line);
  border-radius: 12px;
}

.finacle-case .fn-card span,
.finacle-case .fn-card em {
  font-size: .8125rem;
  font-style: normal;
  color: var(--fn-ui-muted);
}

.finacle-case .fn-card strong {
  font-size: 1.45rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}

.finacle-case .fn-app__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.finacle-case .fn-alert {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--fn-info-soft);
  border: 1px solid var(--fn-info);
  border-radius: 10px;
  font-size: .875rem;
  color: var(--fn-ui-ink);
}

.finacle-case .fn-alert > .fn-i {
  color: var(--fn-info);
}

.finacle-case .fn-alert > span:first-of-type {
  flex: 1;
}

.finacle-case .fn-alert--warn {
  background: var(--fn-warning-soft);
  border-color: var(--fn-warning);
}

.finacle-case .fn-alert--warn > .fn-i {
  color: var(--fn-warning);
}

.finacle-case .fn-app--flow {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}

.finacle-case .fn-pay {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 24px;
  background: var(--fn-screen);
}

.finacle-case .fn-pay--done {
  justify-items: start;
  background: var(--fn-screen-2);
  border-left: 1px solid var(--fn-ui-line);
}

.finacle-case .fn-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.finacle-case .fn-steps li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1px solid var(--fn-ui-line);
  border-radius: 999px;
  font-size: .8125rem;
  color: var(--fn-ui-muted);
}

.finacle-case .fn-steps .is-done {
  color: var(--fn-success);
  border-color: var(--fn-success);
}

.finacle-case .fn-steps .is-current {
  background: var(--fn-ox-bright);
  border-color: var(--fn-ox-bright);
  font-weight: 650;
  color: var(--fn-on-ox);
}

.finacle-case .fn-pay__title {
  font-size: 1.35rem;
  letter-spacing: -.02em;
}

.finacle-case .fn-review {
  margin: 0;
  border-top: 1px solid var(--fn-ui-line);
}

.finacle-case .fn-review > div {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--fn-ui-line);
  font-size: .9375rem;
}

.finacle-case .fn-review dt {
  color: var(--fn-ui-muted);
}

.finacle-case .fn-review dd {
  margin: 0;
  font-weight: 600;
}

.finacle-case .fn-review__amt {
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
}

.finacle-case .fn-pay__check {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--fn-success-soft);
  color: var(--fn-success);
}

.finacle-case .fn-pay__check .fn-i {
  width: 30px;
  height: 30px;
}

.finacle-case .fn-pay__text,
.finacle-case .fn-pay__ref {
  font-size: .9375rem;
  line-height: 1.5;
}

.finacle-case .fn-pay__ref {
  color: var(--fn-ui-muted);
}

.finacle-case .fn-pay__ref strong {
  font-variant-numeric: tabular-nums;
  color: var(--fn-ui-ink);
}

/* --- 06 External references ------------------------------------------------------ */

.finacle-case .fn-refs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 35px;
}

.finacle-case .fn-ref {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.finacle-case .fn-ref h3 {
  font-size: 1.3rem;
}

.finacle-case .fn-ref p {
  font-size: .9rem;
  line-height: 1.5;
  color: var(--muted);
}

.finacle-case .fn-ref p:last-child {
  margin-top: auto;
  padding-top: 8px;
}

.finacle-case .fn-ref a {
  font-weight: 650;
  color: var(--ink);
  text-underline-offset: 3px;
}

.finacle-case .fn-ref__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: .75rem;
  font-weight: 650;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- 07 Recognition -------------------------------------------------------------- */

.finacle-case .fn-award {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 640px;
  margin-top: 32px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--fn-ox-bright);
  border-radius: 4px 16px 16px 4px;
  background: var(--surface);
}

.finacle-case .fn-award__mark {
  flex: none;
  width: 52px;
  height: auto;
}

.finacle-case .fn-aw-disc { fill: var(--fn-ox-soft); stroke: var(--fn-ox-bright); stroke-width: 2; }
.finacle-case .fn-aw-ring { fill: none; stroke: var(--fn-ox-bright); stroke-width: 1.2; opacity: .5; }
.finacle-case .fn-aw-star { fill: var(--fn-ox-bright); }
.finacle-case .fn-aw-ribbon { fill: none; stroke: var(--fn-ox-bright); stroke-width: 2; stroke-linejoin: round; }

.finacle-case .fn-award__body {
  display: grid;
  gap: 4px;
}

.finacle-case .fn-award__kind {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fn-ox);
}

.finacle-case .fn-award__title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-style: italic;
  line-height: 1.2;
}

.finacle-case .fn-award__meta {
  font-size: .8125rem;
  color: var(--muted);
}

/* --- 08 Disclosure labels key ------------------------------------------------------ */

.finacle-case .fn-key__title {
  margin-top: 36px;
  font-size: 1.1rem;
}

.finacle-case .fn-key {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.finacle-case .fn-key li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.finacle-case .fn-key li > span:last-child {
  font-size: .875rem;
  color: var(--muted);
}

/* --- Finacle: tablets and small laptops (900px and below) -------------------------- */

@media (max-width: 900px) {
  .finacle-case .fn-hero {
    grid-template-columns: 1fr;
  }

  .finacle-case .fn-hero__visual {
    margin-top: 40px;
  }

  .finacle-case .fn-considers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .finacle-case .fn-role__groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .finacle-case .fn-role__group--wide {
    grid-column: 1 / -1;
  }

  /* The flow runs downwards */
  .finacle-case .fn-flow__steps {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .finacle-case .fn-flow__step {
    grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
    grid-template-rows: none;
    align-items: start;
  }

  .finacle-case .fn-flow__step:not(:last-child) .fn-flow__node::after {
    top: auto;
    right: auto;
    bottom: -19px;
    left: 22px;
    width: 10px;
    height: 14px;
    margin-top: 0;
    clip-path: polygon(40% 0, 60% 0, 60% 55%, 100% 55%, 50% 100%, 0 55%, 40% 55%);
  }

  .finacle-case .fn-specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .finacle-case .fn-spec--a,
  .finacle-case .fn-spec--b,
  .finacle-case .fn-spec--f {
    grid-column: 1 / -1;
  }

  .finacle-case .fn-spec--c,
  .finacle-case .fn-spec--d,
  .finacle-case .fn-spec--e,
  .finacle-case .fn-spec--g {
    grid-column: span 1;
  }

  .finacle-case .fn-a11y {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .finacle-case .fn-app__body {
    grid-template-columns: 1fr;
  }

  /* Sidebar becomes a horizontal tab row */
  .finacle-case .fn-app__nav {
    display: flex;
    gap: 4px;
    overflow: hidden;
    padding: 8px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--fn-ui-line);
  }

  .finacle-case .fn-app__nav span {
    flex: none;
  }

  .finacle-case .fn-app__nav .is-on {
    box-shadow: inset 0 -3px 0 var(--fn-ox-bright);
  }

  .finacle-case .fn-refs {
    grid-template-columns: 1fr;
  }
}

/* --- Finacle: phones (630px and below) ------------------------------------------- */

@media (max-width: 630px) {
  .finacle-case .fn-layers__grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "digital"
      "patterns"
      "core";
  }

  .finacle-case .fn-distinct {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 6px;
  }

  .finacle-case .fn-considers,
  .finacle-case .fn-role__groups,
  .finacle-case .fn-specs,
  .finacle-case .fn-mfs,
  .finacle-case .fn-a11y__pair,
  .finacle-case .fn-cards,
  .finacle-case .fn-app--flow {
    grid-template-columns: 1fr;
  }

  .finacle-case .fn-spec--c,
  .finacle-case .fn-spec--d,
  .finacle-case .fn-spec--e,
  .finacle-case .fn-spec--g {
    grid-column: auto;
  }

  .finacle-case .fn-flow__step {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .finacle-case .fn-spec__stage {
    margin: 12px 12px 0;
    padding: 14px;
  }

  .finacle-case .fn-spec__head,
  .finacle-case .fn-spec__notes {
    padding-left: 14px;
    padding-right: 14px;
  }

  .finacle-case .fn-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 10px;
    padding: 10px 12px;
  }

  /* Phones: status sits under the description; amount stays right-aligned */
  .finacle-case .fn-row > .fn-badge {
    grid-column: 1;
    grid-row: 2;
  }

  .finacle-case .fn-row > .fn-row__amt {
    grid-column: 2;
    grid-row: 1;
  }

  .finacle-case .fn-row--head > span:nth-child(2) {
    display: none;
  }

  .finacle-case .fn-app__main,
  .finacle-case .fn-pay {
    padding: 16px;
  }

  /* Phones: the illustrative tab row shows three tabs rather than clipping two */
  .finacle-case .fn-app__nav span:nth-child(n+4) {
    display: none;
  }

  .finacle-case .fn-pay--done {
    border-left: 0;
    border-top: 1px solid var(--fn-ui-line);
  }

  .finacle-case .fn-review > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .finacle-case .fn-award {
    align-items: flex-start;
    padding: 20px;
  }
}
