/* ==========================================================================
   Ana sayfa — page styles (v5: hero → scroll story → concepts → areas → services)
   Hero → Nasıl çalışıyoruz (scroll story: dağınık araçlar → tek platform) →
   Ürün konseptleri → Odak alanları (problem areas → concepts) → Ne yapıyoruz.
   Canonical blocks live on their own pages; these are compact teasers.
   Everything is scoped under .home-* / .hs-* classes. Core components (.split,
   .features, .case-card, .story …) are only adjusted inside these scopes,
   never globally. Spacing comes from the core tokens.
   ========================================================================== */

/* ---------- Shared: section head (title left, quiet link right) ---------- */
.home-title { max-width: 30ch; }
.home-head + * { margin-top: clamp(20px, 2.2vw, 32px); }
.home-head + .home-sub { margin-top: 12px; }
.home-sub { max-width: 64ch; font-size: 1.0625rem; line-height: 1.5; color: var(--ink-2); }
.home-sub + * { margin-top: clamp(20px, 2.2vw, 32px); }
.home-nowrap { white-space: nowrap; }

/* ---------- 1. Hero ---------- */
.home-hero {
  padding-top: calc(var(--header-h) + clamp(32px, 5vw, 88px));
  padding-bottom: clamp(44px, 5vw, 80px);
}
/* Optical alignment: the icon's top edge sits on the cap height of the first line */
.home-hero__aside { padding-top: calc(var(--fs-display) * 0.13); }
.home-hero__mark { --size: clamp(48px, 6.6vw, 104px); }
.home-hero__title { max-width: 21ch; }
.home-hero__lead { margin-top: clamp(20px, 2.2vw, 32px); max-width: 54ch; color: var(--ink-2); }
.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  margin-top: clamp(24px, 2.6vw, 36px);
}

/* ---------- 2. Nasıl çalışıyoruz (scroll story) ----------
   Core [data-story] sets data-active (0–4) on .story; every state below is keyed on it.
   The rules without [data-active] are the FINAL state (step 4), so no-JS / print show
   the finished platform. Only transform, opacity and colours animate.
   Stage canvas: one SVG (viewBox 480 × 440) that scales as a whole, so desktop and the
   42vh phone band show the same picture.
     0 Bugün      scattered work tiles, each with a red follow-up dot
     1 Keşif      tiles straighten onto a process rail; two bottlenecks
     2 Prototip   tiles shrink into the slots of one grey wireframe
     3 İnşa       the wireframe turns into the live screen ("Canlı", example data)
     4 Büyüt      screen steps back, new modules + the module grid; the empty slot fills */
.home-story__story { margin-top: clamp(24px, 3vw, 40px); }

/* Step text */
.home-story .story__step h3 { margin-top: 10px; max-width: 20ch; }
.home-story .story__step p:not(.hs-kicker) { margin-top: 10px; max-width: 40ch; font-size: 1.0625rem; line-height: 1.5; color: var(--ink-2); }
.hs-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: var(--fs-label);
  font-weight: 500;
  line-height: 1.3;
  color: var(--muted);
}
/* Process numbers in ink: accent numbers belong to the journey stations (01 Nasıl çalışıyoruz …) */
.hs-kicker b { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.hs-kicker--now::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); }

/* Stage frame: step dots + current phase above the canvas */
.hs-frame {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 100%;
  padding: 16px 18px 18px;
  border-radius: var(--radius-lg);
  background: var(--paper-2);
}
.hs-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex: none; }
.hs-now { display: grid; justify-items: end; font-size: var(--fs-label); font-weight: 500; line-height: 1.3; }
.hs-now > span { grid-area: 1 / 1; opacity: 0; transition: opacity 0.3s var(--ease); }
.hs-now > span:last-child { opacity: 1; }
.hs-canvas { flex: 0 1 auto; min-height: 0; width: 100%; height: auto; aspect-ratio: 480 / 440; }

/* Canvas paint (tokens; SVG presentation attributes cannot take var()) */
.hs-t { font-family: var(--font-sans); fill: var(--ink); }
.hs-card { fill: var(--paper); stroke: var(--line); stroke-width: 1; }
.hs-outline { fill: none; stroke: var(--line); stroke-width: 1; }
.hs-shadow { fill: var(--ink); opacity: 0.06; }
.hs-rule { fill: none; stroke: var(--line); stroke-width: 1; }
.hs-sk { fill: #e3e1db; }
.f-ink { fill: var(--ink); }
.f-acc { fill: var(--accent); }
.f-dan { fill: var(--danger); }
.f-p2 { fill: var(--paper-2); }
.f-p3 { fill: var(--paper-3); }
.s-ink { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.s-dan { fill: none; stroke: var(--danger); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.s-paper { fill: none; stroke: var(--paper); stroke-width: 1.2; }
.hs-bars { fill: none; stroke: #d9d7d0; stroke-width: 5; stroke-linecap: round; }
.hs-bars--dark { stroke: #9d9b95; }
.hs-bars--dan { stroke: var(--danger); }
.hs-bars--thin { stroke-width: 4; }
.hs-bars--inv { stroke: rgba(255, 255, 255, 0.55); stroke-width: 4; }
.hs-bars--md { stroke: #e3e1db; stroke-width: 9; }
.hs-bars--sm { stroke: #e3e1db; stroke-width: 7; }
.hs-bars--skel { stroke: #f1f0ec; stroke-width: 9; }
.hs-bars--skel-lg { stroke: #f1f0ec; stroke-width: 22; }
.hs-tint { fill: var(--danger); opacity: 0.1; }
.hs-avatar { fill: #bdbbb4; stroke: var(--paper); stroke-width: 1.5; }
.hs-erp { fill: #ecebe6; }
.hs-erp-bar { fill: #55555c; }
.hs-erp-btns { stroke: rgba(255, 255, 255, 0.5); stroke-width: 6; }
.hs-erp-btn { fill: #d9d7d0; stroke: #b5b3ac; stroke-width: 0.8; }
.hs-input { fill: var(--paper); stroke: #b5b3ac; stroke-width: 0.8; }
.hs-warn { fill: var(--danger); stroke: var(--paper); stroke-width: 2.5; }
.hs-halo { fill: var(--danger); opacity: 0.14; }
.hs-stem { fill: none; stroke: var(--ink); stroke-opacity: 0.35; stroke-width: 1; }
.hs-pill { fill: rgba(46, 60, 255, 0.1); }
.hs-live-dot { fill: var(--accent); }
.hs-status { fill: var(--paper-3); }
.hs-status--acc { fill: rgba(46, 60, 255, 0.1); }
.hs-status--ink { fill: var(--ink); }
.hs-tag { fill: var(--paper); stroke: var(--accent); stroke-width: 1.2; stroke-dasharray: 4 3; }
.hs-cursor { fill: var(--ink); stroke: var(--paper); stroke-width: 1.5; stroke-linejoin: round; }
.hs-mod { fill: var(--ink); }
.hs-slot { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 3 3; }
.hs-fill { fill: var(--accent); }

.hs-t--tile { font-size: 12.5px; font-weight: 600; }
.hs-t--meta { font-size: 10px; fill: var(--muted); }
.hs-t--row { font-size: 10.5px; fill: var(--ink-2); }
.hs-t--erp { font-size: 10.5px; font-weight: 600; fill: var(--paper); }
.hs-t--form { font-size: 9.5px; fill: #55555c; }
.hs-t--val { font-size: 9.5px; }
.hs-t--node { font-size: 12.5px; font-weight: 600; text-anchor: middle; }
.hs-t--app { font-size: 13px; font-weight: 600; }
.hs-t--live { font-size: 11px; font-weight: 600; fill: var(--accent); }
.hs-t--k { font-size: 10.5px; fill: var(--muted); }
.hs-t--num { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
.hs-t--h { font-size: 11px; font-weight: 600; }
.hs-t--axis { font-size: 8.5px; text-anchor: middle; fill: var(--muted); }
.hs-t--id { font-size: 10px; font-weight: 600; }
.hs-t--st { font-size: 9px; font-weight: 600; text-anchor: middle; fill: var(--ink-2); }
.hs-t--cap { font-size: 12.5px; font-weight: 500; fill: var(--ink-2); }
.hs-t--tag { font-size: 12.5px; font-weight: 600; }
.hs-t--chip { font-size: 12.5px; font-weight: 500; }
/* colour modifiers last, so they win over the size/role classes above */
.hs-t--dan { fill: var(--danger); }
.hs-t--acc { fill: var(--accent); }
.hs-t--inv { fill: var(--paper); }

/* ----- Motion (transitions keyed on data-active; reduced motion: core shortens them) ----- */
.hs-tile,
.hs-screen,
.hs-live,
.hs-map,
.hs-rail,
.hs-cap,
.hs-chip,
.hs-mod,
.hs-slot,
.hs-fill,
.hs-more { transition: transform 0.8s var(--ease-out), opacity 0.45s var(--ease); }

/* Tiles: transform composed from per-tile custom properties (--x0/--y0/--r0/--s0 scattered,
   --x1/--y1 on the rail, --xs/--ys/--ss in the screen slot) */
.hs-tile {
  --x: var(--xs); --y: var(--ys); --r: 0; --s: var(--ss);
  transform: translate(calc(var(--x) * 1px), calc(var(--y) * 1px)) rotate(calc(var(--r) * 1deg)) scale(var(--s));
  opacity: 0;
  transition-delay: var(--d, 0s), 0s;
}
.hs-real { opacity: 0; transition: opacity 0.35s var(--ease); }
.hs-skel { transition: opacity 0.35s var(--ease); }
.hs-warn { opacity: 0; transition: opacity 0.3s var(--ease); }
.hs-tile .hs-t { transition: opacity 0.3s var(--ease); }
.story[data-active="0"] .hs-tile { --x: var(--x0); --y: var(--y0); --r: var(--r0); --s: var(--s0); opacity: 1; }
.story[data-active="1"] .hs-tile { --x: var(--x1); --y: var(--y1); --r: 0; --s: 0.55; opacity: 1; }
.story[data-active="2"] .hs-tile { opacity: 1; }
.story[data-active="0"] .hs-real,
.story[data-active="1"] .hs-real { opacity: 1; }
.story[data-active="0"] .hs-skel,
.story[data-active="1"] .hs-skel { opacity: 0; }
.story[data-active="0"] .hs-warn { opacity: 1; }
/* Keşif: the tiles shrink to thumbnails on the map; their text would be unreadable (< 7px), so only
   icons, rules and bars remain */
.story[data-active="1"] .hs-tile .hs-t { opacity: 0; }

/* Screen frame + live layer: steps back in the final state to make room for the modules */
.hs-screen,
.hs-live { transform-origin: 240px 16px; transform: translate(0px, 0px) scale(0.84); }
.story[data-active="0"] :is(.hs-screen, .hs-live),
.story[data-active="1"] :is(.hs-screen, .hs-live) { transform: translate(0px, 10px) scale(0.97); opacity: 0; }
.story[data-active="2"] :is(.hs-screen, .hs-live),
.story[data-active="3"] :is(.hs-screen, .hs-live) { transform: translate(0px, 0px) scale(1); }
.story[data-active="2"] .hs-live { opacity: 0; }
.hs-wire { opacity: 0; transition: opacity 0.4s var(--ease); }
.story[data-active="2"] .hs-wire { opacity: 1; }

/* Process map */
.hs-map { opacity: 0; }
.hs-rail { transform-box: fill-box; transform-origin: 0 50%; transform: scaleX(0.2); }
.story[data-active="1"] .hs-map { opacity: 1; }
.story[data-active="1"] .hs-rail { transform: scaleX(1); }

/* Captions */
.hs-cap { opacity: 0; }
.story[data-active="0"] .hs-cap--0,
.story[data-active="1"] .hs-cap--1,
.story[data-active="2"] .hs-cap--2,
.story[data-active="3"] .hs-cap--3 { opacity: 1; }

/* Growth: chips, sidebar items and modules arrive one after another; the accent slot last */
.hs-chip { transition-delay: calc(var(--i) * 0.08s + 0.2s); }
.hs-mod { transform-box: fill-box; transform-origin: 50% 50%; transition-delay: calc(var(--i) * 0.06s + 0.25s); }
.hs-slot { transition-delay: 0.3s; }
.hs-fill { transform-box: fill-box; transform-origin: 50% 50%; transition-delay: 0.85s; }
.hs-more { transition-delay: 0.35s; }
.story[data-active]:not([data-active="4"]) :is(.hs-chip, .hs-mod, .hs-slot, .hs-fill, .hs-more) { opacity: 0; transition-delay: 0s; }
.story[data-active]:not([data-active="4"]) .hs-chip { transform: translateX(-6px); }
.story[data-active]:not([data-active="4"]) :is(.hs-mod, .hs-fill) { transform: scale(0.3); }

/* Phase name above the canvas */
.story[data-active] .hs-now > span:last-child { opacity: 0; }
.story[data-active="0"] .hs-now > span:nth-child(1),
.story[data-active="1"] .hs-now > span:nth-child(2),
.story[data-active="2"] .hs-now > span:nth-child(3),
.story[data-active="3"] .hs-now > span:nth-child(4),
.story[data-active="4"] .hs-now > span:nth-child(5) { opacity: 1; }

/* Desktop: steps stop growing on tall screens; the last step is shorter and the sticky stage is
   only as tall as its frame (core gives it a fixed height), so no empty band is left between the
   frame and the next section. */
@media (min-width: 900px) {
  .home-story .story__stage { height: auto; }
  .home-story .hs-frame { max-height: min(640px, calc(100vh - var(--header-h) - 48px)); }
  .home-story .story__step { min-height: min(52vh, 480px); }
  .home-story .story__step:first-child { min-height: min(40vh, 380px); }
  .home-story .story__step:last-child { min-height: min(36vh, 340px); }
}

/* Phones: the visual stays in a sticky 42vh band. A step becomes active as its first
   visible line enters the reading area just below the band. The padding and negative
   margin leave --hs-lead minus --hs-pull between text blocks without a long empty scroll. */
@media (max-width: 899px) {
  .home-story { --hs-pull: max(176px, calc(250px - 8vh)); --hs-lead: calc(var(--hs-pull) + 80px); }
  .home-story .story__stage { display: flex; flex-direction: column; }
  .home-story .story__stage::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 20px;
    background: linear-gradient(var(--paper), rgba(255, 255, 255, 0));
    pointer-events: none;
  }
  /* While the header is hidden, steps would scroll through the strip above the stuck stage and be cut
     by its top edge: a paper strip masks it. The story clips it (overflow-y: clip keeps sticky
     working), so it never covers the section head while the stage is not yet stuck. */
  .home-story .story { overflow-y: clip; }
  .home-story .story__stage::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: calc(var(--header-h) + 8px);
    background: var(--paper);
    pointer-events: none;
  }
  .hs-frame { gap: 8px; padding: 10px 12px 12px; }

  /* Canvas text at phone scale (≈0.68; 0.57 for the stepped-back screen in the final state):
     every visible label stays ≥ 7px, the example-data marker ≥ 9px; texture rows go. */
  .hs-tile :is(.hs-t--meta, .hs-t--row) { font-size: 11.5px; }
  .hs-tile :is(.hs-t--form, .hs-t--val) { font-size: 10.5px; }
  .hs-t--node { font-size: 15px; }
  .hs-badge { transform-box: view-box; transform-origin: 448px 35px; transform: scale(1.6); }
  .hs-t--app { font-size: 15px; }
  .hs-t--k { font-size: 12.5px; }
  .hs-t--h { font-size: 13px; }
  .hs-live .hs-t--row { font-size: 12.5px; }
  .hs-t--co { transform: translateX(-56px); }
  .hs-live > .hs-t--meta,
  .hs-t--axis,
  .hs-t--id,
  .hs-t--st { display: none; }

  .home-story .story__step { min-height: 0; padding: var(--hs-lead) 0 0; pointer-events: none; }
  .home-story .story__step > * { pointer-events: auto; }
  .home-story .story__step + .story__step { margin-top: calc(-1 * var(--hs-pull)); }
  .home-story .story__step:first-child { padding-top: 28px; }
  .home-story .story__steps { padding-bottom: 8px; }
  .home-story .story__step h3 { margin-top: 8px; }
  .home-story .story__step p:not(.hs-kicker) { margin-top: 8px; font-size: 1rem; }
}

/* ---------- 5. Ne yapıyoruz (services teaser) ----------
   Number beside the title (index-list rhythm) rather than on its own row */
.home-services__list { row-gap: clamp(18px, 2vw, 28px); }
.home-services__list .feature {
  position: relative;
  grid-template-columns: 2.2em minmax(0, 1fr);
  gap: 4px 8px;
  align-items: baseline;
  padding-top: 14px;
}
.home-services__list .feature::before { grid-area: 1 / 1; }
.home-services__list .feature > * { grid-column: 2; }
.home-services__list .feature p { max-width: 34ch; font-size: 1rem; }
.home-services__list h3 a { transition: color 0.2s var(--ease); }
/* The whole cell is the link target; the title carries the accessible name */
.home-services__list h3 a::after { content: ""; position: absolute; inset: 0; }
.home-services__list .feature:hover h3 a { color: var(--accent); }
.home-services__list h3 a:focus-visible { outline: none; }
.home-services__list .feature:has(a:focus-visible) { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 2px; }
/* The six capabilities open their hub anchors; the five service pages are named here as their h1s */
.home-services__pages { margin-top: clamp(18px, 2vw, 26px); padding-top: 14px; border-top: 1px solid var(--line); font-family: var(--font-sans); font-size: var(--fs-small); line-height: 1.9; color: var(--muted); }
.home-services__pages span { margin-right: 6px; }
.home-services__pages .link { color: var(--ink); white-space: nowrap; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); }
.home-services__pages .link:hover { color: var(--accent); text-decoration-color: currentColor; }

/* ---------- 3. Ürün konseptleri (three cards, visuals kept small) ---------- */
.home-concepts__note { margin-top: 14px; max-width: none; }
.home-concepts__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 3vw, 40px) var(--col-gap);
  margin-top: clamp(20px, 2.2vw, 32px);
}
@media (min-width: 700px) { .home-concepts__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.home-concepts__grid .case-card__meta { padding-top: 14px; gap: 6px; }
.home-concepts__grid .case-card__desc { font-size: 1rem; }
/* One row of three cards: title, company and summary rows line up across the
   cards even when one title wraps (subgrid rows; the meta box steps aside). */
@media (min-width: 700px) {
  .home-concepts__grid { row-gap: 0; }
  .home-concepts__grid > .case-card { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 6px; }
  .home-concepts__grid .case-card__meta { display: contents; }
  .home-concepts__grid .case-card__client { margin-top: 8px; align-items: flex-start; }
  .home-concepts__grid .case-card__client::before { margin-top: 0.38em; }
}
.home-by {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  justify-self: start;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--ink-2);
}

/* ---------- 4. Odak alanları (problem areas, each linked to its concept) ---------- */
.home-areas__list {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: var(--col-gap);
  border-top: 1px solid var(--line);
  list-style: none;
}
@media (min-width: 700px) { .home-areas__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .home-areas__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.home-area {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 6px;
  align-content: start;
  padding: 16px 0 14px;
  border-bottom: 1px solid var(--line);
}
/* Rows line up across the columns: title, line, links (subgrid) */
@media (min-width: 700px) {
  .home-area { grid-row: span 3; grid-template-rows: subgrid; }
}
.home-area__title { font-size: var(--fs-h4); line-height: 1.25; letter-spacing: -0.015em; }
/* The title links to the service page that owns the problem; same quiet hover as the services list */
/* A faint permanent underline marks the titles as links on touch screens too (no hover there) */
.home-area__title a { text-decoration: underline 1px color-mix(in srgb, currentColor 28%, transparent); text-underline-offset: 0.18em; transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease); }
.home-area__title a:hover { color: var(--accent); text-decoration-color: currentColor; }
.home-area__text { font-size: 1rem; line-height: 1.45; color: var(--muted); max-width: 40ch; }
.home-area__links { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 16px; list-style: none; }
/* Underlined concept name with its colour square; no arrow, so two names share one line */
.home-area__link { padding-block: 4px; font-size: 0.8125rem; }
.home-area__link::after { content: none; }
/* The concept's colour square, as on its card */
.home-area__link::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--mark, var(--accent));
  box-shadow: inset 0 0 0 1px rgba(11, 11, 12, 0.18);
}
.home-area__link:hover { color: var(--accent); }
.home-areas__sectors { margin-top: 14px; font-size: var(--fs-small); line-height: 1.5; color: var(--ink-2); }
.home-areas__sectors .link--arrow { font-size: var(--fs-label); white-space: nowrap; }

/* ---------- Phones: same content, fewer rows ---------- */
@media (max-width: 899px) {
  /* Label and section title sit closer once the split stacks */
  .home-services .split,
  .home-concepts .split,
  .home-areas .split,
  .home-story .split { row-gap: 12px; }
  .home-hero .split { row-gap: 20px; }
}
@media (max-width: 699px) {
  .home-head { gap: 12px; }

  /* Concept cards: one swipeable row with the next card peeking, so the
     visuals stay an example rather than three full-width screens */
  .home-concepts__grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 80%;
    gap: 16px;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .home-concepts__grid::-webkit-scrollbar { display: none; }
  .home-concepts__grid > .case-card { scroll-snap-align: start; }
  /* Cards sitting off-screen to the right would only fade in mid-swipe */
  .js .home-concepts__grid > [data-reveal] { opacity: 1; transform: none; }

  /* Services: a two-column index of titles; the one-liners live on Yetkinlikler */
  .home-services__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
  .home-services__list .feature { grid-template-columns: 1.9em minmax(0, 1fr); gap: 0 4px; padding-block: 12px 14px; }
  .home-services__list .feature p { display: none; }
  .home-services__list .feature h3 { font-size: 1rem; line-height: 1.3; }

  .home-area { padding: 12px 0 8px; gap: 2px; }
  .home-area__text { font-size: 0.9375rem; }
  .home-area__links { margin-top: 2px; }
}

/* Product-studio positioning: fewer competing sections, direct service discovery. */
.home-studio__columns { display: grid; gap: 32px; }
.home-studio__columns h2 { font-size: var(--fs-h3); max-width: 22ch; }
.home-studio__columns p { font-size: 1.125rem; line-height: 1.55; margin-block: 16px; max-width: 44ch; }
.home-service-index { list-style: none; }
.home-service-index li { border-bottom: 1px solid var(--line); }
.home-service-index a { display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; padding: 22px 0; }
.home-service-index h3 { font-size: clamp(1.2rem, 1.7vw, 1.6rem); }
.home-service-index p { grid-column: 1; font-size: 1.05rem; color: var(--ink-2); }
.home-service-index a > span { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 1.5rem; }
.home-service-index a:hover h3 { color: var(--accent); }
.home-guide-links { margin-top: 24px; font-size: 1rem; line-height: 1.8; }
@media (min-width: 900px) { .home-studio__columns { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 899px) {
  .home-hero__aside { display: none; }
  .home-hero__title { max-width: 19ch; font-size: clamp(2.65rem, 7.5vw, 4.4rem); }
  .home-hero__lead { font-size: 1.2rem; line-height: 1.45; }
  .home-hero__actions { gap: 20px; }
  .home-story .story__step h3 { max-width: none; }
  .home-service-index a { padding-block: 18px; }
  .home-studio__columns { gap: 16px; }
}
@media (max-width: 699px) {
  .home-concepts__grid { grid-auto-flow: row; grid-template-columns: 1fr; grid-auto-columns: auto; gap: 0; overflow: visible; margin: 20px 0 0; padding: 0; }
  .home-concepts__grid .case-card { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; padding-block: 18px; border-top: 1px solid var(--line); }
  .home-concepts__grid .case-card__media { aspect-ratio: 1; }
  .home-concepts__grid .case-card__meta { padding: 0; }
  .home-concepts__grid .case-card__client { font-size: 1.05rem; line-height: 1.3; }
  .home-concepts__grid .home-by { font-size: .7rem; }
  .home-concepts__grid .case-card__desc { font-size: .9rem; margin-top: 6px; }
  .home-concepts__grid .chip { display: none; } /* Section heading and visible disclaimer already identify every item as a concept. */
}

.home-concepts__note { border: 0; padding: 0; background: none; border-radius: 0; color: var(--muted); }
.home-concepts__note::before { display: none; }

/* Keep the scroll sequence visible; copy remains ordinary HTML when motion is reduced. */
.home-studio__details { margin-top: 0; }
.home-studio__details .home-studio__columns { padding-block: 16px; }
.home-story .story:not([data-active]) .story__step { min-height: 0; margin: 0; padding-block: 18px; }
.home-story .story:not([data-active]) .story__stage { position: static; height: auto; }
@media (prefers-reduced-motion: reduce) {
  .home-story .story__stage { position: static; height: auto; }
  .home-story .story__stage::before, .home-story .story__stage::after { display: none; }
  .home-story .story__step, .home-story .story__step:first-child, .home-story .story__step:last-child { min-height: 0; margin: 0; padding: 18px 0; }
}

/* 18 October visual refresh: a centred product showcase. Content, section
   anchors and the original scroll-driven process remain in the document. */
.home-hero { padding-top: calc(var(--header-h) + clamp(30px, 5vw, 66px)); padding-bottom: 24px; }
.home-hero > .split { display: block; text-align: center; }
.home-hero__title { margin-inline: auto; max-width: 21ch; font-size: clamp(2.125rem, 4.5vw, 4rem); line-height: 1.08; letter-spacing: -.045em; text-wrap: balance; }
.home-hero__lead { margin: 22px auto 0; max-width: 58ch; font-family: var(--font-sans); font-size: clamp(1rem, 1.7vw, 1.3rem); line-height: 1.5; }
.home-hero__actions { justify-content: center; margin-top: 24px; gap: 18px 28px; }
.home-hero__actions .btn { min-height: 48px; font-size: .9375rem; padding: 14px 26px; }
.home-hero__actions .link--arrow { color: var(--accent); }
.home-hero__explore { display: flex; justify-content: center; gap: 20px; margin-top: 18px; }
.home-hero__explore :is(.btn, .link--arrow) { padding: 3px 0; background: none; color: var(--muted); border: 0; border-radius: 0; font-size: .8125rem; min-height: 28px; text-decoration: underline; text-underline-offset: 4px; }
.home-hero__explore .btn__arrow { display: none; }
.home-hero__explore :is(.btn, .link--arrow):hover { color: var(--accent); }
.home-showcase { width: min(1000px, calc(100% - 2 * var(--gutter))); margin: 42px auto 0; container-type: inline-size; }
.showcase-devices { position: relative; aspect-ratio: 1.72; }
.showcase-slide { position: absolute; inset: 0; padding: 0 13% 5% 3%; opacity: 0; visibility: hidden; transition: opacity .65s ease, visibility 0s .65s; }
.showcase-slide.is-current { opacity: 1; visibility: visible; transition-delay: 0s; }
.showcase-laptop { position: relative; padding: 15px 8px 10px; border: 2px solid #93959a; border-radius: 21px 21px 10px 10px; background: linear-gradient(125deg,#37383c,#111114 32%,#25262a); box-shadow: 0 1px 0 #fff9 inset, 0 30px 50px -28px #1b22354d; }
.showcase-camera { position: absolute; width: 5px; height: 5px; top: 5px; left: calc(50% - 2.5px); border-radius: 50%; background: #242b36; box-shadow: 0 0 0 1px #08090c; }
.showcase-laptop::after { content: ''; position: absolute; left: -6%; bottom: -17px; width: 112%; height: 16px; background: linear-gradient(#e5e6e9 0%,#a9abb0 26%,#d2d3d7 60%,#71747a 100%); border: 1px solid #8c8e94; border-radius: 2px 2px 48% 48% / 2px 2px 85% 85%; box-shadow: 0 9px 12px -7px #0006; }
.showcase-laptop::before { content: ''; position: absolute; z-index: 2; bottom: -8px; left: 42%; width: 16%; height: 7px; background: linear-gradient(#96989e,#c6c8cc); border-radius: 0 0 7px 7px; }
.showcase-screen { border-radius: 9px; overflow: hidden; background: white; aspect-ratio: 1424 / 860; }
.showcase-screen img { display: block; width: 100%; height: 100%; object-fit: contain; }
.showcase-phone { position: absolute; right: 1%; bottom: 0; width: 23%; padding: 0; border: 0; border-radius: 16%; background: none; filter: drop-shadow(0 12px 12px #12172426); }
.showcase-phone img { display: block; width: 100%; height: auto; }
.home-showcase figcaption { text-align: center; color: var(--muted); font-size: .875rem; margin-top: 24px; font-family: var(--font-sans); }
.home-showcase figcaption span { display: block; font-size: .7rem; margin-top: 6px; }
.showcase-slide--medikal .showcase-phone { width: 31%; }
.home-showcase figcaption strong { display: block; font-size: .875rem; color: var(--ink); font-weight: 500; }
.showcase-controls:not([hidden]) { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin: 18px auto 0; }
.showcase-choices { display: flex; gap: 4px; padding: 3px; border: 1px solid #e7e8ed; border-radius: 99px; background: #f6f7f9; }
.showcase-choices button, .showcase-pause { min-height: 44px; padding: 9px 16px; border-radius: 99px; font-size: .8125rem; transition: background-color .2s, color .2s; white-space: nowrap; }
.showcase-choices button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.showcase-choices button:hover:not([aria-pressed="true"]) { background: #e9eaf0; }
.showcase-pause { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.showcase-controls button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 699px) {
  .showcase-controls:not([hidden]) { gap: 0; margin-top: 12px; }
  .showcase-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(100%, 340px); border-radius: 24px; }
  .showcase-choices button { font-size: .75rem; padding-inline: 10px; }
  .showcase-pause { flex-basis: 100%; }
  .showcase-pause { font-size: .6875rem; min-height: 36px; }
  .home-showcase figcaption { margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) { .showcase-slide { transition: none; } }
/* Centre section introductions without changing the footer's shared split layout. */
:is(.home-concepts, .home-story, .home-studio, .home-services, .home-areas) > .container { max-width: 1200px; display: block; }
:is(.home-concepts, .home-story, .home-studio, .home-services, .home-areas) .split__label { text-align: center; margin-bottom: 16px; }
:is(.home-concepts, .home-story, .home-services, .home-areas) .home-head { flex-direction: column; text-align: center; gap: 14px; }
:is(.home-concepts, .home-story, .home-services, .home-areas) .home-title { font-size: clamp(1.65rem, 3vw, 2.6rem); margin-inline: auto; max-width: 30ch; text-wrap: balance; }
.home-sub { margin-inline: auto; text-align: center; font-family: var(--font-sans); font-size: 1rem; }
.home-concepts { margin-top: 24px; padding-block: 56px; background: #f6f7f9; }
.home-concepts > .container, .home-story > .container, .home-services > .container, .home-areas > .container { border-top: 0; }
.home-concepts__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 30px; }
.home-concepts__grid > .case-card { display: flex; flex-direction: column; grid-row: auto; gap: 0; background: white; padding: 12px 12px 20px; border: 1px solid #e9ebef; border-radius: 16px; transition: transform .35s var(--ease), box-shadow .35s; }
.home-concepts__grid > .case-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px -24px #25294d55; }
.home-concepts__grid .case-card__media { aspect-ratio: 1.2; border-radius: 9px; }
.home-concepts__grid .case-card__media img { height: 100%; object-fit: cover; }
.home-concepts__grid .case-card__meta { display: flex; flex-direction: column; padding: 16px 5px 0; gap: 8px; }
.home-concepts__grid .case-card__client { font-size: 1.15rem; line-height: 1.25; margin-top: 0; }
.home-concepts__grid .case-card__client::before { display: none; }
.home-concepts__grid .home-by { color: var(--muted); font-size: .75rem; }
.home-concepts__grid .chip { display: none; }
.home-concepts__grid .case-card__desc { font-family: var(--font-sans); font-size: .875rem; line-height: 1.5; }
.home-card-link { color: var(--accent); font-size: .875rem; margin-top: 4px; }
.home-concepts__note { max-width: 72ch; margin: 18px auto 0; text-align: center; font-size: .8125rem; }
.home-story { padding-top: 64px; }
.home-story .story__step h3 { font-size: clamp(1.5rem, 2.5vw, 2.1rem); }
.home-story .story__step p:not(.hs-kicker) { font-family: var(--font-sans); font-size: 1rem; }
.home-studio { padding-block: 24px 40px; }
.home-studio__columns { text-align: center; }
.home-studio__columns :is(h2,p) { margin-inline: auto; }
.home-studio__columns h2 { font-size: 1.5rem; }
.home-studio__columns p { font-family: var(--font-sans); font-size: 1rem; }
.home-service-index { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 36px; margin-top: 28px; }
.home-service-index a { padding-block: 20px; }
.home-service-index h3 { font-size: 1.15rem; }
.home-service-index p { font-family: var(--font-sans); font-size: .9375rem; }
.home-guide-links { text-align: center; font-family: var(--font-sans); font-size: .875rem; }
.home-areas .home-head { margin-bottom: 24px; }
@media (max-width: 899px) {
  .home-concepts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-showcase { margin-top: 36px; }
  .showcase-laptop { padding: 12px 6px 8px; border-radius: 15px 15px 7px 7px; }
  .home-story .story__step h3 { font-size: 1.5rem; }
}
@media (max-width: 699px) {
  .home-hero__title { max-width: 20ch; font-size: clamp(2rem, 7.8vw, 2.8rem); }
  .home-hero__lead { max-width: 37ch; font-size: 1.0625rem; margin-top: 20px; }
  .home-hero__actions { flex-direction: column; gap: 20px; }
  .home-hero__actions .btn { min-width: 220px; }
  .home-hero__explore { gap: 18px; }
  .home-showcase { width: calc(100% - 32px); margin-top: 32px; }
  .showcase-laptop { padding: 8px 4px 5px; border-width: 1px; border-radius: 9px 9px 4px 4px; }
  .showcase-camera { top: 3px; width: 3px; height: 3px; }
  .showcase-screen { border-radius: 4px; }
  .showcase-laptop::after { bottom: -10px; height: 9px; }
  .showcase-laptop::before { bottom: -5px; height: 4px; }
  .home-showcase figcaption { margin-top: 20px; font-size: .75rem; }
  .home-showcase figcaption span { font-size: .625rem; }
  .home-concepts { padding-block: 36px; margin-top: 16px; }
  .home-concepts__grid { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 83%; gap: 14px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); }
  .home-concepts__grid > .case-card { display: flex; padding: 12px 12px 20px; scroll-snap-align: start; }
  .home-concepts__grid .case-card__media { aspect-ratio: 1.45; }
  .home-concepts__grid .case-card__client { font-size: 1.25rem; }
  .home-concepts__grid .case-card__desc { font-size: .875rem; }
  .home-concepts__grid .case-card__meta { padding: 14px 4px 0; }
  .home-story { padding-top: 40px; }
  .home-service-index { grid-template-columns: 1fr; }
  .home-service-index a { padding-block: 16px; }
  .home-studio__columns { text-align: left; }
  .home-studio__columns :is(h2,p) { margin-inline: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .showcase-laptop, .showcase-phone { transform: none; transition: none; }
  .home-concepts__grid > .case-card:hover { transform: none; }
}
:is(.home-concepts, .home-story, .home-services, .home-areas) .home-head { display: flex; align-items: center; }
.home-concepts__note { display: block; }
@media (max-width: 699px) { body[data-page="index"] > .cursor { display: none; } }


/* Compact homepage revision: shared footer and contact styles are untouched. */
body[data-page="index"] main {
  --home-heading: clamp(2rem, 3.6vw, 3rem);
  --home-intro: 1.0625rem;
  --home-card-heading: 1.125rem;
  --home-copy: 1rem;
}
.home-hero { padding-top: calc(var(--header-h) + 20px); padding-bottom: 12px; }
/* Equivalent section titles share the hero scale without changing h1/h2 semantics. */
body[data-page="index"] main :is(.home-hero__title, .home-title) { font-family: var(--font-sans); font-size: var(--home-heading); font-weight: 600; line-height: 1.08; letter-spacing: -.045em; color: var(--ink); }
.home-hero__title { max-width: 26ch; }
body[data-page="index"] main :is(.home-hero__lead, .home-sub) { font-family: var(--font-sans); font-size: var(--home-intro); font-weight: 400; line-height: 1.5; letter-spacing: -.005em; color: var(--ink-2); }
.home-hero__lead { margin-top: 14px; max-width: 78ch; font-size: 1.0625rem; line-height: 1.5; }
.home-hero__actions { margin-top: 18px; gap: 0; }
.home-hero__actions .btn, .home-concepts__cta { min-height: 44px; max-width: 100%; padding: 12px 26px; }
.home-showcase { width: min(900px, calc(100% - 2 * var(--gutter))); margin-top: 24px; }
.showcase-slide { transition-duration: .5s, 0s; transition-delay: 0s, .5s; }
.showcase-slide.is-current { transition-delay: 0s; }
.showcase-controls:not([hidden]) { flex-wrap: nowrap; gap: 8px; margin-top: 14px; }
.showcase-pause { display: inline-flex; flex: 0 0 44px; align-items: center; justify-content: center; width: 44px; height: 44px; min-height: 44px; padding: 0; color: var(--ink); background: #f6f7f9; border: 1px solid #e7e8ed; text-decoration: none; }
.showcase-pause:hover { background: #e9eaf0; }
.showcase-pause svg { fill: currentColor; }
.showcase-pause[hidden], .showcase-pause svg [hidden] { display: none; }
.home-showcase figcaption { margin-top: 10px; }
.home-showcase figcaption strong { font-size: .8125rem; }
body[data-page="index"] main .home-studio__columns h2 { font-size: var(--home-heading); line-height: 1.08; }
body[data-page="index"] main :is(.case-card__client, .home-service-index h3) { font-size: var(--home-card-heading); line-height: 1.3; }
.home-studio__columns p, .home-service-index p, .home-concepts__grid .case-card__desc { font-size: var(--home-copy); line-height: 1.5; }
.home-concepts { margin-top: 18px; padding-block: 42px; }
.home-concepts .home-sub { margin-block: 0; max-width: 78ch; }
.home-concepts .home-sub + .home-concepts__cta { margin-top: 4px; }
.home-concepts__grid { margin-top: 24px; }
.home-concepts__grid .case-card__meta { gap: 10px; }
.home-concepts__grid .case-card__desc { margin-top: 0; }
.home-studio { padding-block: 36px; }
.home-studio__columns { gap: 28px; }
.home-services { padding-block: 36px; }
.home-example-note { padding-block: 12px 24px; color: var(--muted); font-size: .75rem; line-height: 1.5; text-align: center; }
@media (min-width: 900px) {
  .home-showcase { width: min(900px, calc(100% - 2 * var(--gutter)), max(620px, calc((100svh - 360px) * 1.72))); }
}
@media (max-width: 699px) {
  .home-hero { padding-top: calc(var(--header-h) + 18px); }
  body[data-page="index"] main { --home-heading: clamp(1.75rem, 7.5vw, 2rem); --home-intro: 1rem; }
  .home-hero__title { max-width: 24ch; }
  .home-hero__lead { font-size: 1rem; margin-top: 12px; max-width: 38ch; }
  .home-hero__actions { margin-top: 16px; }
  .home-showcase { width: calc(100% - 24px); margin-top: 24px; }
  .showcase-choices { flex: 1 1 auto; width: auto; max-width: 340px; }
  .showcase-choices button { font-size: .6875rem; padding-inline: 7px; }
  .home-showcase figcaption { margin-top: 8px; }
  .home-concepts { padding-block: 28px; }
  .home-studio, .home-services { padding-block: 28px; }
}
@media (prefers-reduced-motion: reduce) { .showcase-slide { transition: none; } }

/* The three-step approach replaces the duplicate service/process blocks. */
.home-approach { padding-block: 42px 30px; text-align: center; }
.home-approach > .container { max-width: 1060px; }
.home-approach .home-head { display: grid; justify-items: center; gap: 12px; }
.home-approach .home-title { margin-inline: auto; max-width: 32ch; text-wrap: balance; }
.home-approach .home-sub { margin: 0; }
.home-approach__steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px; list-style: none; margin: 32px auto 0; }
.home-approach__steps > li { display: flex; flex-direction: column; align-items: center; }
.home-approach__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 12px; border-radius: 50%; background: #f5f6f8; }
.home-approach__icon svg { width: 25px; height: 25px; }
.home-approach__steps h3 { font-size: 1.125rem; line-height: 1.3; }
.home-approach__steps p { font-family: var(--font-sans); max-width: 26ch; margin-top: 6px; font-size: .9375rem; line-height: 1.5; color: #697184; text-wrap: balance; }
.home-approach__links { --approach-gap: 24px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); column-gap: var(--approach-gap); align-items: start; max-width: 820px; margin: 30px auto 0; font-size: .875rem; }
.home-approach__links > a { grid-row: 1; grid-column: 1; position: relative; z-index: 1; }
.home-approach__links > a + a { grid-column: 2; }
.home-approach__links > a,
.home-approach__resources summary { display: grid; grid-template-columns: minmax(0, 1fr) 1em; align-items: center; gap: 10px; height: calc(2lh + 24px); padding: 12px 8px; border-bottom: 1px solid #dfe1e5; color: var(--ink); font-size: inherit; font-weight: 500; line-height: 1.4; text-decoration: none; text-wrap: balance; transition: color .2s, border-color .2s; }
.home-approach__links > a:hover,
.home-approach__resources summary:hover { color: var(--accent); border-color: currentColor; }
.home-approach__links > a > span, .home-approach__resources summary > span { min-width: 0; overflow-wrap: anywhere; }
.home-approach__links > a::after { content: '↗'; }
.home-approach__links > a::after, .home-approach__resources summary::after { width: 1em; text-align: center; }
.home-approach__resources { grid-column: 1 / -1; grid-row: 1; min-width: 0; margin: 0; font-size: inherit; }
.home-approach__resources summary { width: calc((100% - 2 * var(--approach-gap)) / 3); margin-left: auto; list-style: none; cursor: pointer; }
.home-approach__resources summary::-webkit-details-marker { display: none; }
.home-approach__resources summary::after { content: '+'; flex: none; }
.home-approach__resources[open] summary::after { content: '−'; }
.home-approach__resources summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.home-approach__resources ul { list-style: none; display: grid; gap: 12px; padding: 24px 8px 4px; font-size: .8125rem; }
.home-approach__resources li a { color: var(--ink); text-decoration-color: #b8bdc6; text-underline-offset: 4px; }
.home-approach__resources li a:hover { color: var(--accent); text-decoration-color: currentColor; }
.showcase-interaction { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; border-radius: 18px; background: transparent; cursor: pointer; }
.showcase-interaction:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.showcase-interaction[hidden] { display: none; }
@media (max-width: 699px) {
  .home-approach { padding-block: 32px 24px; }
  .home-approach__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 24px; }
  .home-approach__icon { width: 48px; height: 48px; margin-bottom: 10px; }
  .home-approach__steps p { font-family: var(--font-sans); max-width: 19ch; font-size: .75rem; line-height: 1.45; }
  .home-approach__steps h3 { font-size: .8125rem; }
  .home-approach__icon { width: 40px; height: 40px; }
  .home-approach__links { --approach-gap: 10px; margin-top: 26px; font-size: .75rem; }
  .home-approach__links > a, .home-approach__resources summary { height: calc(4lh + 20px); gap: 5px; padding: 10px 1px; }
}

/* Supplied device frames. Screens retain their source aspect ratios; the PNG
   is a decorative overlay, with no second device shell inside it. */
.showcase-devices { aspect-ratio: 1.64; }
.showcase-slide { padding: 0; }
.showcase-laptop { position: absolute; inset: 0 auto auto 0; width: 90%; aspect-ratio: 3540 / 2300; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; filter: drop-shadow(0 18px 16px #18203016); }
.showcase-laptop::before, .showcase-laptop::after { display: none; }
.showcase-device-frame { position: relative; z-index: 2; display: block; width: 100%; height: auto; pointer-events: none; }
.showcase-screen { position: absolute; left: 9.27%; top: 9.48%; width: 81.42%; height: 82.91%; aspect-ratio: auto; overflow: hidden; border-radius: 1.2%; background: #fff; }
.showcase-screen img { width: 100%; height: 100%; object-fit: contain; }
.showcase-phone { position: absolute; right: 0; bottom: 0; width: 23%; aspect-ratio: 1350 / 2760; padding: 0; border: 0; border-radius: 0; background: none; filter: drop-shadow(0 12px 12px #12172426); }
.showcase-phone-screen { position: absolute; left: 5.19%; top: 2.46%; width: 89.63%; height: 95.18%; overflow: hidden; border-radius: 15.7% / 7.3%; background: #fff; }
.showcase-phone-screen img { display: block; width: 100%; height: 100%; object-fit: contain; }
.showcase-slide--medikal .showcase-phone { width: 32%; aspect-ratio: 1880 / 2640; }
.showcase-phone--tablet .showcase-phone-screen { left: 5.58%; top: 3.71%; width: 88.83%; height: 92.35%; border-radius: 4% / 2.8%; }
@media (max-width: 699px) {
  .showcase-controls:not([hidden]) { display: none; }
  .showcase-devices { aspect-ratio: 1.62; }
  .showcase-laptop { width: 91%; }
  .showcase-phone { width: 24%; }
  .showcase-slide--medikal .showcase-phone { width: 32%; }
}

.showcase-mobile-label { display: none; }
@media (min-width: 900px) {
  .home-showcase { width: min(960px, calc(100% - 2 * var(--gutter)), max(760px, calc((100svh - 330px) * 1.64))); }
}
@media (max-width: 699px) {
  .home-showcase .showcase-mobile-label { display: block; margin-top: 12px; font-size: .75rem; line-height: 1.4; color: var(--muted); }
}

/* Keep interface SVGs on their native vector layer; shadow only the frame. */
.showcase-laptop, .showcase-phone { filter: none; }
.showcase-laptop { z-index: 0; }
.showcase-phone { z-index: 1; }
.showcase-device-frame { filter: drop-shadow(0 8px 9px #18203018); }
.showcase-screen img, .showcase-phone-screen img { image-rendering: auto; }
.showcase-screen > svg, .showcase-phone-screen > svg { display: block; width: 100%; height: 100%; }
/* Hide the previous interface before fading the next one in. Cross-fading two
   detailed interfaces produces doubled text even when both sources are vectors. */
.showcase-slide { transition: none; }
.showcase-slide.is-current { animation: showcase-enter .24s ease-out; }
@keyframes showcase-enter { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .showcase-slide.is-current { animation: none; }
}
