/* Niro Dev Studio: homepage. "Sketch & Blueprint".
   Two modes over one page. Design (default) is the finished site: porcelain,
   forest ink, sky blue, Funnel Display. Build flips every token to a
   blueprint: deep blue, a monospace face, outlined boxes, wireframed images.
   Frames are sharp rectangles throughout. */

@property --p { syntax: '<number>'; inherits: false; initial-value: 0; }
@property --n { syntax: '<integer>'; inherits: false; initial-value: 0; }

:root {
  --bg: #F2F3EE;          /* porcelain */
  --surface: #FFFFFF;
  --surface-2: #E7EAE2;
  --ink: #121813;         /* forest ink */
  --ink-2: #2E3730;
  --muted: #59645B;       /* 5.8:1 on --bg */
  --line: #D5DAD0;
  --line-2: #B4BCB0;
  --sky: #38BDF8;
  --sky-ink: #0A6A99;     /* sky for text on porcelain, 5.6:1 */
  --on-sky: #062A3D;
  --belt: #121813;
  --shadow: 0 30px 60px -32px rgba(18, 24, 19, .45);

  --f-display: 'Funnel Display', system-ui, sans-serif;
  --f-body: 'Funnel Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'Martian Mono', ui-monospace, Consolas, monospace;
  --f-eth: 'Noto Sans Ethiopic', 'Nyala', 'Ebrima', 'Abyssinica SIL', sans-serif;
  --fs: 1;                /* display size scale; the mono face runs wider */

  --shell: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
html[data-mode="build"] {
  --bg: #0B3264;          /* blueprint */
  --surface: #0E3B73;
  --surface-2: #12457F;
  --ink: #EAF3FF;
  --ink-2: #CFE2FA;
  --muted: #A6C2E4;
  --line: rgba(170, 210, 255, .24);
  --line-2: rgba(170, 210, 255, .45);
  --sky: #7DD3FC;
  --sky-ink: #7DD3FC;
  --on-sky: #062A3D;
  --belt: #082850;
  --shadow: none;
  --f-display: 'Martian Mono', ui-monospace, Consolas, monospace;
  --f-body: 'Martian Mono', ui-monospace, Consolas, monospace;
  --fs: .7;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
  padding-bottom: 76px; /* room for the mode switch */
}
html[data-mode="build"] body {
  font-size: 14px; font-stretch: 85%;
  background-image:
    linear-gradient(rgba(170, 210, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(170, 210, 255, .07) 1px, transparent 1px),
    linear-gradient(rgba(170, 210, 255, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(170, 210, 255, .12) 1px, transparent 1px);
  background-size: 24px 24px, 24px 24px, 120px 120px, 120px 120px;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset, legend { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
ul, ol { list-style: none; }
::selection { background: var(--sky); color: var(--on-sky); }
:focus-visible { outline: 2px solid var(--sky-ink); outline-offset: 3px; }
.shell { width: min(var(--shell), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 12px; }
.glyph { width: 1em; height: 1em; flex: none; vertical-align: -0.15em; }
.lead { color: var(--muted); font-size: clamp(16px, 1.3vw, 19px); max-width: 46ch; }

/* Headings. A *phrase* is shown like text selected in an editor. */
.big-title, .hero-title {
  font-family: var(--f-display); font-weight: 600; letter-spacing: -0.035em; line-height: .96; text-wrap: balance;
}
.big-title { font-size: calc(clamp(38px, 5.4vw, 84px) * var(--fs)); }
.big-title em, .hero-title em {
  font-style: normal; color: var(--on-sky);
  /* The highlight starts a little below the top of the line box, so it never
     paints over the descenders (g, j, p) of the line above it. */
  background: linear-gradient(var(--sky), var(--sky)) 0 100% / 100% 82% no-repeat;
  padding: 0 .06em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* ── Buttons: sharp rectangles; colour fills in from the left ── */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border: 1px solid var(--ink);
  font: 600 15px var(--f-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  background: linear-gradient(var(--sky), var(--sky)) left / 0 100% no-repeat;
  transition: background-size .45s var(--ease), color .25s, border-color .25s;
}
.pill-lg { min-height: 58px; padding: 0 30px; font-size: 16px; }
.pill-solid { background-color: var(--ink); color: var(--bg); }
.pill-line { background-color: transparent; color: var(--ink); }
.pill-sky { background-color: var(--sky); color: var(--on-sky); border-color: var(--sky); }
.pill:hover { background-size: 100% 100%; color: var(--on-sky); border-color: var(--sky); }
.pill-sky:hover { background-image: linear-gradient(var(--ink), var(--ink)); color: var(--bg); border-color: var(--ink); }
.pill:active { opacity: .85; }
.square {
  width: 48px; height: 48px; flex: none; display: grid; place-items: center;
  border: 1px solid var(--line-2); background: transparent; cursor: pointer; font-size: 18px;
  transition: background-color .2s, color .2s, border-color .2s;
}
.square:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ── Progress, cursor, inspector ── */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 120; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--sky); transform-origin: left; transform: scaleX(0); }
.cursor, .inspector { display: none; }
.has-cursor .cursor { display: block; position: fixed; inset: 0; z-index: 150; pointer-events: none; }
.has-cursor body, .has-cursor a, .has-cursor button, .has-cursor label { cursor: none; }
.has-cursor input, .has-cursor textarea, .has-cursor select { cursor: auto; }
.cursor-dot, .cursor-ring, .cursor-xy { position: absolute; left: 0; top: 0; will-change: transform; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--ink); }
.cursor-ring {
  width: 30px; height: 30px; margin: -15px 0 0 -15px; border: 1.5px solid var(--ink);
  display: grid; place-items: center;
  transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background-color .2s, border-color .2s, opacity .2s;
}
.cursor-label { font: 600 11px var(--f-body); color: var(--on-sky); opacity: 0; white-space: nowrap; transition: opacity .2s; }
.cursor.is-link .cursor-ring { width: 46px; height: 46px; margin: -23px 0 0 -23px; border-color: var(--sky-ink); }
.cursor.is-label .cursor-ring { width: 76px; height: 36px; margin: -18px 0 0 -38px; background: var(--sky); border-color: var(--sky); }
.cursor.is-label .cursor-label { opacity: 1; }
.cursor.is-label .cursor-dot, .cursor.is-hidden { opacity: 0; }
.cursor-xy { display: none; margin: 14px 0 0 14px; font: 500 10px var(--f-mono); color: var(--sky); white-space: nowrap; }
html[data-mode="build"] .cursor-xy { display: block; }
html[data-mode="build"] .cursor-ring { border-style: dashed; border-color: var(--sky); }
html[data-mode="build"] .cursor-dot { background: var(--sky); }
.inspector { position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none; border: 1px solid var(--sky); background: rgba(125, 211, 252, .08); transition: transform .12s, width .12s, height .12s; }
.inspector.on { display: block; }
.insp-tag { position: absolute; left: -1px; bottom: 100%; padding: 2px 7px; background: var(--sky); color: var(--on-sky); font: 600 10px/1.5 var(--f-mono); white-space: nowrap; }

/* ── Top bar ── */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 100;
  display: flex; align-items: center; gap: 28px; padding: 16px var(--gutter);
  border-bottom: 1px solid transparent;
  transition: transform .45s var(--ease), background-color .3s, border-color .3s, padding .3s;
}
.bar.scrolled { background: color-mix(in srgb, var(--bg) 86%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom-color: var(--line); padding-block: 10px; }
.bar.hide { transform: translateY(-100%); }
.bar-logo { display: block; }
.bar-logo img, .foot-grid img { height: 30px; width: auto; }
.logo-build { display: none !important; }
html[data-mode="build"] .logo-design { display: none !important; }
html[data-mode="build"] .logo-build { display: block !important; }
.bar-links { display: flex; gap: 4px; margin-left: auto; }
.bar-links a { position: relative; padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; transition: color .2s; }
.bar-links a::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; background: var(--sky); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.bar-links a:hover, .bar-links a.active { color: var(--ink); }
.bar-links a:hover::after, .bar-links a.active::after { transform: scaleX(1); transform-origin: left; }
.bar-cta { min-height: 44px; }
.bar-menu { display: none; margin-left: auto; width: 48px; height: 48px; border: 1px solid var(--ink); background: var(--bg); position: relative; cursor: pointer; }
.bar-menu span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--ink); }
.bar-menu span:first-child { top: 18px; } .bar-menu span:last-child { top: 27px; }

.menu {
  position: fixed; inset: 0; z-index: 130; display: flex; flex-direction: column; justify-content: space-between;
  padding: 92px var(--gutter) calc(32px + env(safe-area-inset-bottom)); background: var(--bg);
  clip-path: inset(0 0 100% 0); transition: clip-path .55s var(--ease); visibility: hidden;
}
.menu.open { clip-path: inset(0); visibility: visible; }
.menu-close { position: absolute; top: 14px; right: var(--gutter); font-size: 20px; }
.menu-links { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.menu-links a {
  padding: 14px 0; border-bottom: 1px solid var(--line);
  font: 600 calc(clamp(44px, 13vw, 84px) * var(--fs)) / 1 var(--f-display); letter-spacing: -0.04em;
  text-decoration: none; opacity: 0; transform: translateY(24px);
  transition: opacity .4s, transform .6s var(--ease), color .2s;
}
.menu.open .menu-links a { opacity: 1; transform: none; transition-delay: calc(.12s + var(--i) * .06s); }
.menu-links a:active, .menu-links a:hover { color: var(--sky-ink); }
.menu-foot { display: grid; gap: 8px; color: var(--muted); }
.menu-foot a { text-decoration: none; }

/* ── Design / Build switch ── */
.modebar {
  position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 110; translate: -50% 0;
  display: grid; grid-template-columns: 1fr 1fr; padding: 4px; background: var(--ink);
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .5);
}
.mode-btn { position: relative; z-index: 1; min-width: 92px; height: 40px; padding: 0 18px; border: 0; background: none; color: var(--bg); font-weight: 600; font-size: 14px; cursor: pointer; transition: color .3s; }
.mode-btn[aria-pressed="true"] { color: var(--on-sky); }
.mode-thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); background: var(--sky); transition: translate .45s var(--ease); }
html[data-mode="build"] .mode-thumb { translate: 100% 0; }
.modebar.nudge { animation: nudge 1.4s var(--ease) 2; }
@keyframes nudge { 30% { translate: -50% -8px; } 60% { translate: -50% 0; } }

/* Circular reveal when switching modes (browsers with View Transitions). */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { animation: mode-reveal .75s var(--ease); }
@keyframes mode-reveal {
  from { clip-path: circle(0 at var(--vt-x, 50%) var(--vt-y, 100%)); }
  to { clip-path: circle(150vmax at var(--vt-x, 50%) var(--vt-y, 100%)); }
}

/* ── Intro: a short counter, then the page opens down the middle. Once per visit. ── */
.intro { position: fixed; inset: 0; z-index: 300; pointer-events: none; }
html:not(.js) .intro { display: none; }
.intro-half { position: absolute; top: 0; bottom: 0; width: 50.5%; background: #121813; transition: transform .95s var(--ease); }
.intro-l { left: 0; } .intro-r { right: 0; }
.intro::after { content: ''; position: absolute; left: calc(50% - .5px); top: 0; bottom: 0; width: 1px; background: #38BDF8; transform-origin: top; transform: scaleY(var(--seam, 0)); transition: opacity .4s; }
.intro-c { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; color: #F2F3EE; transition: opacity .3s; }
/* The bloom is also the loader: it turns in eight steps while the page opens */
.intro-c img { width: 44px; height: auto; animation: spin 1s steps(8) infinite; }
.intro-n { font: 500 13px / 1 'Martian Mono', ui-monospace, monospace; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.intro-t { font-size: 12px; color: #9FB0A3; }
.intro.done .intro-l { transform: translateX(-101%); }
.intro.done .intro-r { transform: translateX(101%); }
.intro.done .intro-c, .intro.done::after { opacity: 0; }

/* ── Hero: who we are, and the work itself ── */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 112px 0 72px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(36px, 5vw, 80px); align-items: center; }
.hero-tag { display: inline-flex; align-items: center; gap: 12px; padding: 8px 14px; border: 1px solid var(--line-2); font-size: 14px; color: var(--muted); }
.live { width: 8px; height: 8px; background: var(--sky); animation: live 2.4s infinite; }
@keyframes live { 50% { opacity: .3; } }
/* The title also shrinks with its column (16cqi), which stops growing once the page hits its full width */
.hero-copy { container-type: inline-size; }
.hero-title { margin-top: 26px; font-size: calc(clamp(44px, min(6vw, 10.4vh, 16cqi), 98px) * var(--fs)); }
.caret-word { white-space: nowrap; }
.caret-word::after { content: ''; display: inline-block; width: .055em; height: .82em; margin-left: .08em; background: currentColor; vertical-align: -.08em; animation: caret 1.1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.js .hero-title { clip-path: inset(0 0 100% 0); translate: 0 40px; transition: clip-path 1s var(--ease), translate 1s var(--ease); }
.js .hero-title.in { clip-path: inset(-10% -10% -16% -10%); translate: 0 0; }
.hero-sub { margin-top: 26px; max-width: 44ch; color: var(--muted); font-size: clamp(16px, 1.3vw, 19px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* Selected work: a desktop screenshot in a browser frame, the phone one
   overlapping its corner. Screenshots keep their own proportions; frames
   shrink-wrap them, scaled to fit the stage, never cropped. */
.show { display: grid; gap: 16px; }
.show-stage { position: relative; aspect-ratio: 16 / 11; container-type: size; }
.show-slide {
  position: absolute; inset: 0; padding: 0; border: 0; background: none; text-align: left; cursor: pointer;
  opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility 0s .6s;
}
.show-slide.on { opacity: 1; visibility: visible; transition: opacity .6s var(--ease); }
/* (.show-slide in front: the shared .frame rule further down sets position: relative) */
.show-slide .show-desk {
  position: absolute; left: 0; top: 0; display: flex; flex-direction: column;
  border: 1px solid var(--ink); background: var(--surface); box-shadow: var(--shadow);
  transform: translateY(22px); transition: transform .9s var(--ease), translate .45s var(--ease);
}
.show-slide.on .show-desk { transform: none; }
.show-bar { flex: none; display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-bottom: 1px solid var(--ink); }
.show-bar i { width: 8px; height: 8px; border: 1px solid var(--ink); }
.show-bar span { margin-left: 8px; padding: 2px 10px; border: 1px solid var(--line-2); color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60%; }
.show-desk img { display: block; width: auto; height: auto; max-width: 88cqw; max-height: calc(86cqh - 32px); object-fit: contain; }
.show-slide .show-phone {
  position: absolute; right: 0; bottom: 0; padding: 5px; background: var(--ink); border: 1px solid var(--ink); box-shadow: var(--shadow);
  transform: translateY(44px); opacity: 0; transition: transform 1s var(--ease) .1s, opacity .6s var(--ease) .1s, translate .45s var(--ease);
}
.show-slide.on .show-phone { transform: none; opacity: 1; }
.show-phone img { display: block; width: auto; height: auto; max-height: 74cqh; max-width: 28cqw; object-fit: contain; }
/* A phone-first project shows its phone on its own, centred */
.show-slide.only-phone .show-phone { inset: 0; width: fit-content; height: fit-content; margin: auto; }
.show-slide.only-phone .show-phone img { max-height: 84cqh; max-width: 42cqw; }
.show-slide.only-phone:focus-visible .show-phone { outline: 2px solid var(--sky-ink); outline-offset: 4px; }
.show-slide:hover .show-desk, .show-slide:focus-visible .show-desk { translate: 0 -6px; }
.show-slide:hover .show-phone, .show-slide:focus-visible .show-phone { translate: 0 -10px; }
.show-slide:focus-visible { outline: none; }
.show-slide:focus-visible .show-desk { outline: 2px solid var(--sky-ink); outline-offset: 4px; }

.show-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.show-cat { font-size: 14px; color: var(--muted); }
.show-title { font: 600 calc(clamp(22px, 2vw, 30px) * var(--fs)) / 1.1 var(--f-display); letter-spacing: -0.02em; }
.show-nav { display: flex; align-items: center; gap: 8px; flex: none; }
.show-count { margin-right: 6px; font: 500 13px var(--f-mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.show-count b { color: var(--ink); font-weight: 600; }
.show-progress { display: flex; gap: 6px; }
.show-seg { flex: 1; padding: 10px 0; border: 0; background: none; cursor: pointer; }
.show-seg i { position: relative; display: block; height: 2px; background: var(--line); overflow: hidden; }
.show-seg i::after { content: ''; position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.show-seg.done i::after { transform: scaleX(1); }
.show-seg.on i::after { animation: seg 6s linear forwards; }
.show.paused .show-seg.on i::after { animation-play-state: paused; }
.show-seg:hover i { background: var(--line-2); }
@keyframes seg { to { transform: scaleX(1); } }

/* ── Try it: the business sketch ── */
.try { padding: clamp(80px, 10vw, 140px) 0; }
.try-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(36px, 5vw, 80px); align-items: start; }
.try-copy { position: sticky; top: 120px; display: grid; gap: 22px; }

/* The live sketch: a browser whose tabs, address bar and toolbar are the controls */
.frame { position: relative; }
.mock { min-width: 0; border: 1px solid var(--ink); background: var(--surface); box-shadow: var(--shadow); }
.mock-tabs { display: flex; height: 42px; overflow-x: auto; scrollbar-width: none; background: var(--bg); box-shadow: inset 0 -1px var(--ink); }
.mock-tabs::-webkit-scrollbar { display: none; }
.mock-dots { display: flex; flex: none; align-items: center; gap: 6px; padding: 0 16px 0 12px; }
.mock-dots i { width: 8px; height: 8px; border: 1px solid var(--ink); }
.mock-tab { position: relative; flex: none; padding: 0 18px; border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--muted); font: 600 13px var(--f-body); cursor: pointer; transition: color .2s, background-color .2s; }
.mock-tab:last-child { border-right: 1px solid var(--line); }
.mock-tab:hover { color: var(--ink); }
.mock-tab[aria-checked="true"] { background: var(--surface); color: var(--ink); }
.mock-tab[aria-checked="true"]::before { content: ''; position: absolute; inset: 0 0 auto; height: 2px; background: var(--sky); }
.mock-bar { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-bottom: 1px solid var(--ink); }
.mock-field { position: relative; display: flex; flex: 1; min-width: 0; }
.mock-url { width: 100%; height: 34px; padding: 0 12px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); font: 500 14px var(--f-body); transition: border-color .2s; }
.mock-url::placeholder { color: var(--muted); }
.mock-url:focus { outline: none; border-color: var(--ink); }
/* A blinking caret says "type here" until someone does */
.mock-field::before { content: ''; position: absolute; left: 12px; top: 9px; width: 1.5px; height: 16px; background: var(--sky-ink); opacity: 0; animation: blink 1.1s steps(1) infinite; }
.mock-field:has(.mock-url:placeholder-shown:not(:focus))::before { opacity: 1; }
.mock-field:has(.mock-url:placeholder-shown:not(:focus)) .mock-url { padding-left: 20px; }
@keyframes blink { 50% { visibility: hidden; } }
/* Colours: each swatch is the palette's background and accent, split corner to corner */
.swatches, .devices { display: flex; flex: none; }
.swatch { display: grid; place-items: center; width: 30px; height: 34px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.swatch::before { content: ''; width: 16px; height: 16px; border: 1px solid var(--line-2); background: linear-gradient(135deg, var(--sw-bg) 0 50%, var(--sw-accent) 50% 100%); transition: transform .2s var(--ease); }
.swatch:hover::before { transform: scale(1.15); }
.swatch[aria-checked="true"]::before { outline: 1.5px solid var(--ink); outline-offset: 2px; }
.devices { gap: 2px; padding-left: 10px; border-left: 1px solid var(--line); }
.device { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; background: transparent; color: var(--muted); cursor: pointer; transition: color .2s, background-color .2s; }
.device:hover { color: var(--ink); }
.device[aria-checked="true"] { background: var(--ink); color: var(--bg); }

/* The page area. On a phone preview the sample narrows to phone width on a dotted canvas. */
.mock-stage { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: radial-gradient(var(--line-2) 1px, transparent 1.5px) 0 0 / 16px 16px, var(--bg); }
.mock-progress { position: absolute; inset: 0 0 auto; z-index: 2; height: 2px; background: var(--sky); transform: scaleX(var(--p, 0)); transform-origin: left; }
.mock-view { position: absolute; inset: 0; margin: auto; overflow: hidden auto; scrollbar-width: none; container-type: size; background: var(--m-bg); transition: background-color .45s; }
.mock-view::-webkit-scrollbar { display: none; }
.mock.is-phone .mock-view { width: min(290px, 46%); inset-block: 18px; border: 1px solid var(--ink); box-shadow: var(--shadow); }
/* Touch screens scroll the page, not the sample; it pans by itself */
@media (hover: none) { .mock-view { overflow-y: hidden; } }
::view-transition-group(sketch-view) { animation-duration: .55s; animation-timing-function: var(--ease); }
::view-transition-old(sketch-view), ::view-transition-new(sketch-view) { height: 100%; object-fit: cover; object-position: 50% 0; }
html.vt-device::view-transition-new(root) { animation: none; }

/* ── The sample sites ──
   Each is a full homepage inside the browser frame (includes/sketches.php).
   It pans slowly on its own (site.js), pauses under the pointer, and can be
   scrolled by hand. Sizes are in em with 1em standing for 16px on a 1280px
   wide desktop page (or a 390px wide phone page, below), so each sample is
   laid out like the real site, just scaled to fit the frame. */
.site {
  --s-head: 'Manrope', system-ui, sans-serif; --s-body: 'Manrope', system-ui, sans-serif; --s-light: #F4F1EB; --s-line: color-mix(in srgb, var(--m-ink) 12%, transparent);
  display: none; min-height: 100cqh; font: 400 1.25cqw / 1.55 var(--s-body); color: var(--m-ink); background: var(--m-bg);
  transition: background-color .45s, color .45s;
}
.site.on { display: block; animation: site-in .5s var(--ease) both; }
@keyframes site-in { from { opacity: 0; } }
.site :is(p, ul) { margin: 0; }
.site ul { padding: 0; list-style: none; }
.site :is(i, em) { font-style: normal; }
.site b { font-weight: 700; }
.site img { width: 100%; object-fit: cover; background: var(--m-soft); }
.site :is(.s-room-img, .s-prod-img, .s-tile, .s-prog, .s-course-img, .s-coach-img, .s-shop-hero-img) img, .s-over > img { height: 100%; }
.site .s-i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* Shared building blocks */
.s-w { width: min(72em, 100% - 8em); margin-inline: auto; }
.s-sec { padding: 6em 0; }
.s-pt0 { padding-top: 0; }
.s-soft { background: var(--m-soft); }
.s-center { text-align: center; }
.s-mut { opacity: .62; }
.s-small { font-size: .875em; }
.s-eb { margin-bottom: 1em !important; font-size: .75em; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--m-accent); }
.s-h1 { font: 600 4.4em / 1.04 var(--s-head); letter-spacing: -.03em; text-wrap: balance; }
.s-h1 em { color: var(--m-accent); }
.s-h2 { font: 600 2.5em / 1.12 var(--s-head); letter-spacing: -.02em; text-wrap: balance; }
.s-h3 { font: 600 1.2em / 1.3 var(--s-head); }
.s-lead { margin-top: 1.25em !important; max-width: 33em; font-size: 1.125em; line-height: 1.6; opacity: .72; }
.s-btns { display: flex; flex-wrap: wrap; align-items: center; gap: .75em; margin-top: 2em; }
.s-btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; padding: 1em 1.6em; background: var(--m-accent); color: var(--m-bg); font-weight: 700; font-size: .9375em; line-height: 1; white-space: nowrap; }
.s-btn.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, currentColor 35%, transparent); }
.s-link { display: inline-flex; align-items: center; gap: .45em; font-weight: 700; font-size: .9375em; color: var(--m-accent); white-space: nowrap; }
.s-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 2em; margin-bottom: 2.75em; }
.s-head-row .s-eb { margin-bottom: .75em !important; }
.s-split { display: grid; grid-template-columns: 1fr 1fr; gap: 5em; align-items: center; }
.s-media img { aspect-ratio: 5 / 4; }

/* Navigation */
.s-nav { display: flex; align-items: center; gap: 2.5em; height: 5.25em; }
.s-logo { display: flex; align-items: center; gap: .55em; min-width: 0; font: 800 1.3em / 1 var(--s-head); letter-spacing: -.02em; white-space: nowrap; }
.s-logo span { overflow: hidden; text-overflow: ellipsis; }
.s-mark { display: grid; place-items: center; width: 1.75em; height: 1.75em; flex: none; background: var(--m-accent); color: var(--m-bg); }
.site .s-mark .s-i { width: 1.05em; height: 1.05em; stroke-width: 2.25; }
.s-links { display: flex; gap: 2.1em; margin-inline: auto; font-size: .9375em; font-weight: 500; }
.s-acts { display: flex; align-items: center; gap: 1.25em; }
.s-burger { display: none; }
.s-ico { position: relative; display: grid; place-items: center; }
.site .s-ico .s-i { width: 1.3em; height: 1.3em; }
.s-count { position: absolute; top: -.6em; right: -.75em; display: grid; place-items: center; min-width: 1.65em; height: 1.65em; padding: 0 .35em; border-radius: 1em; background: var(--m-accent); color: var(--m-bg); font-size: .62em; font-weight: 800; line-height: 1; }
.s-count:empty { display: none; }
.s-count.bump { animation: bump .4s var(--ease); }
@keyframes bump { 40% { transform: scale(1.5); } }

/* A section over a photo, with a dark wash for legible white type */
.s-over { position: relative; z-index: 0; color: #fff; }
.s-over > img { position: absolute; inset: 0; z-index: -2; }
.s-over::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, .5), rgba(0, 0, 0, .12) 38%, rgba(0, 0, 0, .55)); }
.s-over .s-nav { border-bottom: 1px solid rgba(255, 255, 255, .18); }
.s-hero-in { margin-block: auto; padding: 4em 0 7em; }
.s-hero-in .s-eb { color: #fff; opacity: .85; }
.s-over .s-lead { opacity: .85; }

/* Hero with copy beside a photo */
.s-hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 4.5em; align-items: center; padding: 3.5em 0 5.5em; }
.s-hero-media { position: relative; }
.s-proof { display: flex; align-items: center; gap: .9em; margin-top: 2.25em; font-size: .875em; line-height: 1.45; }
.s-stars { display: inline-flex; gap: .12em; color: #F2B01E; }
.site .s-stars .s-i { width: 1em; height: 1em; }
.s-faces { display: flex; }
.s-faces img { width: 2.7em; height: 2.7em; border-radius: 50%; border: .16em solid var(--m-bg); }
.s-faces img + img { margin-left: -.85em; }
.s-float { position: absolute; display: flex; align-items: center; gap: .85em; padding: 1em 1.3em; background: var(--m-bg); color: var(--m-ink); box-shadow: 0 1.5em 3em -1em rgba(0, 0, 0, .3); font-size: .875em; line-height: 1.35; }
.site .s-float > .s-i { width: 2.7em; height: 2.7em; padding: .65em; background: var(--m-soft); color: var(--m-accent); }
.s-float small { display: block; opacity: .6; }
.s-float b, .s-float span { display: block; }
.s-pill-note { display: inline-flex; align-items: center; gap: .55em; margin-bottom: 1.5em; padding: .5em .95em; background: var(--m-soft); color: var(--m-accent); font-size: .8125em; font-weight: 700; }
.s-dot { width: .55em; height: .55em; flex: none; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 .25em color-mix(in srgb, currentColor 22%, transparent); }

/* Rows of features with icons */
.s-feats { border-block: 1px solid var(--s-line); }
.s-feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.s-feat { display: flex; align-items: flex-start; gap: .9em; padding: 2em 1.6em; font-size: .875em; }
.s-feat + .s-feat { border-left: 1px solid var(--s-line); }
.site .s-feat > .s-i { width: 1.7em; height: 1.7em; color: var(--m-accent); stroke-width: 1.5; }
.s-feat b { display: block; font-size: 1.07em; }
.s-feat span { opacity: .62; }

/* Tabs, filters, picks */
.s-tabs, .s-filters { display: flex; gap: .3em; font-size: .875em; font-weight: 600; }
.s-tabs { padding: .3em; background: var(--m-soft); }
.s-soft .s-tabs { background: var(--m-bg); }
.s-tabs > * { padding: .6em 1.15em; transition: background-color .2s, color .2s; }
.s-tabs > .on { background: var(--m-bg); color: var(--m-accent); box-shadow: 0 .1em .5em rgba(0, 0, 0, .1); }
.s-soft .s-tabs > .on { background: var(--m-accent); color: var(--m-bg); }
.s-filters > * { padding: .6em 1.15em; border-radius: 2em; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--m-ink) 22%, transparent); transition: background-color .2s, color .2s; }
.s-filters > .on { background: var(--m-ink); color: var(--m-bg); box-shadow: none; }
.s-pane { display: none; }
.s-pane.on { display: grid; animation: site-in .35s var(--ease); }
.s-off { display: none !important; }
.s-tag { position: absolute; top: 1em; left: 1em; padding: .45em .8em; background: var(--m-bg); color: var(--m-ink); font-size: .7em; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.s-meta { display: flex; flex-wrap: wrap; gap: .4em 1.25em; margin-top: .6em !important; font-size: .85em; opacity: .7; }
.s-meta span { display: inline-flex; align-items: center; gap: .4em; }
.s-quote { max-width: 26em; margin: 1.25em auto 0 !important; font: 500 2em / 1.3 var(--s-head); letter-spacing: -.01em; }
.s-person { display: inline-flex; align-items: center; gap: .9em; margin-top: 2em; text-align: left; font-size: .9375em; }
.s-person img { width: 3.3em; height: 3.3em; border-radius: 50%; }
.s-person span { display: block; opacity: .6; font-size: .9em; }
.s-cta-band { display: flex; align-items: center; justify-content: space-between; gap: 2em; padding: 3.25em 3.5em; background: var(--m-accent); color: var(--m-bg); }
.s-cta-band .s-h2 { font-size: 2.1em; }
.s-cta-band p:not(.s-h2) { margin-top: .5em !important; opacity: .82; }
.s-cta-band .s-btn { background: var(--m-bg); color: var(--m-ink); }

/* Footer */
.s-foot { padding: 5em 0 2em; background: var(--m-deep); color: var(--s-light); font-size: .9375em; }
.s-foot-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr)); gap: 3em; }
.s-foot .s-logo { margin-bottom: 1em; }
.s-foot-p { max-width: 22em; opacity: .62; }
.s-foot-h { margin-bottom: 1.1em !important; font-weight: 700; }
.s-foot li { margin-bottom: .6em; opacity: .62; overflow-wrap: anywhere; }
.s-social { display: flex; gap: 1.1em; margin-top: 1.5em; }
.site .s-social .s-i { width: 1.25em; height: 1.25em; }
.s-foot-bar { display: flex; justify-content: space-between; gap: 1em; margin-top: 4em; padding-top: 1.6em; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .85em; opacity: .55; }

/* Café: warm and editorial, with an arched photo */
.site-cafe { --s-head: 'Fraunces', Georgia, serif; }
.site-cafe .s-logo { font: italic 600 1.6em / 1 var(--s-head); letter-spacing: -.01em; }
.site-cafe .s-h1 { font-weight: 500; font-size: 4.6em; letter-spacing: -.035em; }
.site-cafe .s-h1 em { font-style: italic; }
.site-cafe .s-h2 { font-weight: 500; }
.site-cafe .s-btn { border-radius: 2em; }
.site-cafe .s-hero-media img { aspect-ratio: 4 / 4.7; border-radius: 14em 14em 0 0; }
.site-cafe .s-float { left: -2.5em; bottom: 3em; border-radius: 1em; }
.site-cafe .s-float > .s-i { border-radius: 50%; }
.site-cafe .s-media img, .site-cafe .s-gallery img { border-radius: 1em; }
.s-items { grid-template-columns: 1fr 1fr; gap: 0 4em; }
.s-item { display: grid; grid-template-columns: 1fr auto auto; gap: 1.25em; align-items: center; padding: 1.35em 0; border-bottom: 1px dashed color-mix(in srgb, var(--m-ink) 20%, transparent); }
.s-item-h { font: 600 1.15em / 1.3 var(--s-head); }
.s-item-d { margin-top: .2em !important; font-size: .875em; opacity: .6; }
.s-item b { color: var(--m-accent); white-space: nowrap; }
.s-add { display: grid; place-items: center; width: 2.2em; height: 2.2em; border-radius: 50%; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--m-ink) 25%, transparent); transition: background-color .2s, color .2s, box-shadow .2s; }
.s-add:hover { background: var(--m-accent); color: var(--m-bg); box-shadow: none; }
.site .s-add .s-i { width: 1em; height: 1em; }
.s-stats { display: flex; gap: 3em; margin-top: 2.25em; }
.s-stats b { display: block; font: 600 2.2em / 1.1 var(--s-head); color: var(--m-accent); white-space: nowrap; }
.s-stats span { font-size: .875em; opacity: .62; }
.s-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1em; }
.s-gallery img { aspect-ratio: 1; }

/* Hotel: quiet luxury, a full-bleed photo and a booking bar */
.site-hotel { --s-head: 'Cormorant Garamond', Georgia, serif; }
.site-hotel .s-logo { font: 600 1.05em / 1 var(--s-body); letter-spacing: .34em; text-transform: uppercase; }
.site-hotel .s-h1 { font-weight: 500; font-size: 5.6em; line-height: .98; letter-spacing: -.01em; }
.site-hotel .s-h1 em { font-style: italic; color: inherit; }
.site-hotel .s-h2 { font-weight: 500; font-size: 2.9em; }
.site-hotel .s-h3 { font-weight: 600; font-size: 1.65em; }
.site-hotel .s-btn { padding: 1.3em 2.1em; font-size: .75em; letter-spacing: .14em; text-transform: uppercase; }
.site-hotel .s-over .s-btn.ghost { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6); }
.site-hotel .s-quote { font-style: italic; font-size: 2.3em; }
.s-hotel-hero { display: flex; flex-direction: column; min-height: 46em; }
.s-hotel-hero .s-hero-in { text-align: center; }
.s-hotel-hero .s-h1 { max-width: 11em; margin-inline: auto; }
.s-booking { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr 1.25fr auto; margin-top: -3.6em; background: var(--m-bg); box-shadow: 0 2em 4em -2em rgba(0, 0, 0, .4); }
.s-field { display: flex; align-items: center; gap: .9em; padding: 1.4em 1.6em; border-right: 1px solid var(--s-line); font-size: .9375em; }
.site .s-field > .s-i { width: 1.4em; height: 1.4em; color: var(--m-accent); }
.site .s-field > .s-i:last-child { width: 1.1em; margin-left: auto; opacity: .5; color: inherit; }
.s-field small { display: block; font-size: .72em; letter-spacing: .12em; text-transform: uppercase; opacity: .6; }
.s-booking .s-btn { height: 100%; padding-inline: 2.4em; }
.s-intro { max-width: 20em; margin-inline: auto; }
.s-rooms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2em; }
.s-room-img { position: relative; overflow: hidden; aspect-ratio: 4 / 3; }
.s-room-b { padding-top: 1.25em; }
.s-room-f { display: flex; align-items: center; justify-content: space-between; margin-top: 1.25em; padding-top: 1.1em; border-top: 1px solid var(--s-line); }
.s-room-f b { font-size: 1.1em; }
.s-amen { padding: 3.5em 0; background: var(--m-soft); }
.s-amen-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.5em; text-align: center; font-size: .875em; }
.site .s-amen-grid .s-i { display: block; width: 2em; height: 2em; margin: 0 auto .8em; color: var(--m-accent); stroke-width: 1.3; }
.s-hours { margin-top: 1.75em !important; max-width: 24em; font-size: .9375em; }
.s-hours li { display: flex; justify-content: space-between; padding: .7em 0; border-bottom: 1px solid var(--s-line); }

/* Clinic: clean and calm, rounded */
.site-clinic .s-h1 { font-weight: 800; font-size: 4.2em; letter-spacing: -.045em; }
.site-clinic .s-h2 { font-weight: 800; letter-spacing: -.035em; }
.site-clinic .s-h3 { font-weight: 800; }
.site-clinic :is(.s-btn, .s-float, .s-svc, .s-appt, .s-doc, .s-days > *, .s-slots > *, .s-hero-media img, .s-cta-band, .s-pill-note, .s-mark) { border-radius: .8em; }
.site-clinic .s-hero-media img { aspect-ratio: 1 / .95; }
.site-clinic .s-float { right: -1.75em; bottom: 2.5em; }
.site-clinic .s-float > .s-i { border-radius: .6em; }
.s-topbar { background: var(--m-deep); color: var(--s-light); font-size: .8125em; }
.s-topbar .s-w { display: flex; gap: 2.25em; padding: .75em 0; }
.s-topbar span { display: inline-flex; align-items: center; gap: .5em; opacity: .85; }
.s-topbar span:last-child { margin-left: auto; }
.s-svcs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5em; }
.s-svc { padding: 2em; background: var(--m-bg); }
.site .s-svc > .s-i { width: 3em; height: 3em; padding: .7em; border-radius: .7em; background: var(--m-soft); color: var(--m-accent); }
.s-svc .s-h3 { margin-top: 1.4em !important; }
.s-svc-d { margin-top: .5em !important; font-size: .9375em; opacity: .65; }
.s-svc .s-link { margin-top: 1.25em; }
.s-checks { display: grid; gap: 1em; margin-top: 2em !important; }
.s-checks li { display: flex; align-items: center; gap: .8em; }
.site .s-checks .s-i { width: 1.6em; height: 1.6em; padding: .3em; border-radius: 50%; background: var(--m-soft); color: var(--m-accent); stroke-width: 2.5; }
.s-appt { padding: 2em; background: var(--m-bg); border: 1px solid var(--s-line); box-shadow: 0 2em 4em -2em rgba(0, 0, 0, .25); }
.s-appt-h { display: flex; align-items: center; justify-content: space-between; font-weight: 800; }
.s-days, .s-slots { display: grid; grid-template-columns: repeat(5, 1fr); gap: .6em; margin-top: 1.25em; }
.s-slots { grid-template-columns: repeat(3, 1fr); }
.s-days > * { padding: .75em 0; text-align: center; font-size: .8125em; border: 1px solid color-mix(in srgb, var(--m-ink) 14%, transparent); transition: background-color .2s, color .2s; }
.s-days b { display: block; font-size: 1.45em; }
.s-days .on { background: var(--m-accent); border-color: var(--m-accent); color: var(--m-bg); }
.s-slots > * { padding: .75em 0; text-align: center; font-size: .875em; font-weight: 700; background: var(--m-soft); transition: background-color .2s, color .2s; }
.s-slots .on { background: var(--m-bg); color: var(--m-accent); box-shadow: inset 0 0 0 2px var(--m-accent); }
.s-slots .full { opacity: .35; text-decoration: line-through; pointer-events: none; }
.s-appt-doc { display: flex; align-items: center; gap: .85em; margin-top: 1.5em; padding-top: 1.25em; border-top: 1px solid var(--s-line); font-size: .875em; line-height: 1.4; }
.s-appt-doc img { width: 2.8em; height: 2.8em; border-radius: 50%; object-position: top; }
.s-confirm { display: flex; width: 100%; margin-top: 1.25em; }
.s-docs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5em; }
.s-doc { overflow: hidden; background: var(--m-bg); }
.s-doc img { aspect-ratio: 1 / 1.02; object-position: top; }
.s-doc-b { padding: 1.25em 1.4em 1.5em; }
.s-doc-b > span { font-size: .875em; opacity: .65; }
.s-avail { display: flex; align-items: center; gap: .55em; margin-top: .9em !important; font-size: .8em; font-weight: 700; color: var(--m-accent); }

/* Shop: an editorial fashion store */
.site-shop { --s-head: 'Instrument Serif', Georgia, serif; }
.s-announce { padding: .75em 1em; background: var(--m-deep); color: var(--s-light); text-align: center; font-size: .78em; letter-spacing: .04em; }
.site-shop .s-nav { display: grid; grid-template-columns: 1fr auto 1fr; }
.site-shop .s-links { margin: 0; gap: 1.8em; font-size: .875em; }
.site-shop .s-logo { font: 400 2em / 1 var(--s-head); letter-spacing: -.01em; }
.site-shop .s-acts { justify-content: flex-end; gap: 1.4em; }
.site-shop .s-h1 { font-weight: 400; font-size: 5.4em; line-height: .95; letter-spacing: -.02em; }
.site-shop .s-h1 em { font-style: italic; color: inherit; }
.site-shop .s-h2 { font-weight: 400; font-size: 2.9em; }
.site-shop .s-btn { padding: 1.4em 2.1em; font-size: .72em; letter-spacing: .12em; text-transform: uppercase; }
.s-shop-hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 40em; }
.s-shop-hero-img { position: relative; }
.s-shop-hero-img img { position: absolute; inset: 0; }
.s-shop-hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 4em 5em; background: var(--m-soft); }
.s-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25em; }
.s-tile { position: relative; overflow: hidden; aspect-ratio: 4 / 5; color: #fff; }
.s-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(0, 0, 0, .55)); }
.s-tile span { position: absolute; left: 1.2em; bottom: 1em; z-index: 1; display: flex; align-items: center; gap: .4em; font: 400 1.8em / 1 var(--s-head); }
.site .s-tile .s-i { width: .7em; height: .7em; }
.s-prods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5em 1.5em; }
.s-prod-img { position: relative; overflow: hidden; aspect-ratio: 4 / 5; }
.s-like { position: absolute; top: .8em; right: .8em; display: grid; place-items: center; width: 2.4em; height: 2.4em; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #1B1A17; }
.site .s-like .s-i { width: 1.1em; height: 1.1em; }
.s-like.on { color: #D0342C; }
.site .s-like.on .s-i { fill: currentColor; }
.s-add-bag { position: absolute; left: .8em; right: .8em; bottom: .8em; padding: 1em; background: var(--m-ink); color: var(--m-bg); text-align: center; font-size: .72em; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: 0; translate: 0 .6em; transition: opacity .25s, translate .25s var(--ease); }
.s-prod:hover .s-add-bag { opacity: 1; translate: 0 0; }
.s-prod-n { margin-top: 1em !important; font-size: .9375em; font-weight: 600; }
.s-prod-p { margin-top: .2em !important; font-size: .9375em; }
.s-prod-p s { margin-left: .45em; opacity: .45; }
.s-swatch-dots { display: flex; gap: .5em; margin-top: .75em; }
.s-swatch-dots i { width: .95em; height: .95em; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.s-swatch-dots .on { outline: 1px solid var(--m-ink); outline-offset: 2px; }
.s-news { padding: 5em 0; background: var(--m-soft); text-align: center; }
.s-news .s-lead { margin-inline: auto; }
.s-news-form { display: flex; max-width: 30em; margin: 2em auto 0; background: var(--m-bg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--m-ink) 25%, transparent); }
.s-news-form span:first-child { flex: 1; padding: 1.15em 1.25em; text-align: left; font-size: .9375em; opacity: .5; }

/* Gym: loud, dark and condensed */
.site-gym { --s-head: 'Anton', Impact, 'Arial Narrow', sans-serif; }
.site-gym .s-logo { font: 400 1.5em / 1 var(--s-head); letter-spacing: .04em; text-transform: uppercase; }
.site-gym :is(.s-h1, .s-h2, .s-h3) { font-weight: 400; text-transform: uppercase; letter-spacing: .005em; }
.site-gym .s-h1 { font-size: 7.4em; line-height: .92; }
.site-gym .s-h2 { font-size: 3.4em; line-height: 1; }
.site-gym .s-h3 { font-size: 1.7em; }
.site-gym .s-btn { padding: 1.3em 2em; font-size: .8125em; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.site-gym .s-links { font-size: .8125em; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.site-gym .s-over .s-link { color: #fff; }
.s-gym-hero { display: flex; flex-direction: column; min-height: 50em; }
.s-gym-hero::before { background: linear-gradient(90deg, rgba(0, 0, 0, .82), rgba(0, 0, 0, .3) 65%, rgba(0, 0, 0, .1)), linear-gradient(transparent 55%, rgba(0, 0, 0, .75)); }
.s-gym-hero .s-hero-in { padding: 5em 0 3em; }
.s-gym-hero .s-h1 em { color: var(--m-accent); }
.s-hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); padding: 2em 0 2.5em; border-top: 1px solid rgba(255, 255, 255, .2); }
.s-hero-stats b { display: block; font: 400 2.6em / 1.05 var(--s-head); }
.s-hero-stats span { font-size: .75em; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.s-progs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1em; }
.s-prog { position: relative; overflow: hidden; aspect-ratio: 4 / 5; color: #fff; }
.s-prog::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0, 0, 0, .8)); }
.s-prog div { position: absolute; left: 1.4em; right: 1.4em; bottom: 1.3em; z-index: 1; }
.s-prog b { display: block; font: 400 1.9em / 1.05 var(--s-head); text-transform: uppercase; }
.s-prog span { font-size: .8125em; opacity: .8; }
.s-table { gap: 0; }
.s-row { display: grid; grid-template-columns: 6em 1.5fr 1fr 6em auto; align-items: center; gap: 1.5em; padding: 1.1em 1.5em; background: var(--m-bg); border-bottom: 1px solid var(--s-line); }
.s-row > b { font: 400 1.35em / 1 var(--s-head); }
.s-cls { font-weight: 700; }
.s-book { display: inline-flex; justify-content: center; min-width: 8.5em; padding: .75em 1.2em; box-shadow: inset 0 0 0 1.5px var(--m-accent); color: var(--m-accent); font-size: .75em; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; transition: background-color .2s, color .2s; }
.s-book .y { display: none; align-items: center; gap: .4em; }
.s-book.on { background: var(--m-accent); color: var(--m-bg); }
.s-book.on .n { display: none; }
.s-book.on .y { display: inline-flex; }
.s-coaches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5em; }
.s-coach-img { overflow: hidden; aspect-ratio: 4 / 4.4; margin-bottom: 1.1em; }
.s-coach-img img { object-position: top; }
.s-coach > span { font-size: .875em; color: var(--m-accent); font-weight: 600; }
.s-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5em; align-items: stretch; }
.s-plan { display: flex; flex-direction: column; padding: 2.25em; background: var(--m-bg); }
.s-plan.pop { background: var(--m-accent); color: var(--m-bg); }
.s-plan-tag { align-self: flex-start; margin-bottom: 1em; padding: .4em .75em; background: var(--m-bg); color: var(--m-accent); font-size: .7em; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.s-plan-n { font: 400 1.5em / 1 var(--s-head); text-transform: uppercase; }
.s-plan-p { margin-top: .5em !important; font: 400 3em / 1 var(--s-head); }
.s-plan-p small { font: 500 .3em var(--s-body); opacity: .7; }
.s-plan ul { display: grid; gap: .75em; margin: 1.75em 0 2em; font-size: .9375em; }
.s-plan li { display: flex; align-items: center; gap: .6em; }
.site .s-plan li .s-i { color: var(--m-accent); stroke-width: 2.5; }
.site .s-plan.pop li .s-i { color: inherit; }
.s-plan .s-btn { margin-top: auto; }
.s-plan.pop .s-btn { background: var(--m-bg); color: var(--m-ink); }
.site-gym .s-cta-band .s-h2 { font-size: 3em; }

/* School: bright and friendly, with a course search */
.site-school { --s-head: 'Plus Jakarta Sans', system-ui, sans-serif; --s-body: 'Plus Jakarta Sans', system-ui, sans-serif; }
.site-school .s-h1 { font-weight: 800; font-size: 4.5em; letter-spacing: -.04em; }
.site-school .s-h1 em { background: linear-gradient(transparent 64%, color-mix(in srgb, var(--m-accent) 20%, transparent) 64%); }
.site-school :is(.s-h2, .s-h3) { font-weight: 800; letter-spacing: -.03em; }
.site-school :is(.s-btn, .s-float, .s-pill-note, .s-cta-band, .s-mark) { border-radius: .75em; }
.site-school :is(.s-search, .s-course, .s-step, .s-hero-media img, .s-media img) { border-radius: 1.25em; }
.site-school .s-hero-media img { aspect-ratio: 1 / .95; }
.site-school .s-float { left: -2em; bottom: 2.5em; }
.site-school .s-float > .s-i { border-radius: .7em; }
.site-school .s-quote { margin-inline: 0 !important; font-size: 1.9em; font-weight: 700; letter-spacing: -.02em; }
.s-search { display: flex; align-items: center; gap: .8em; max-width: 31em; margin-top: 2em; padding: .5em .5em .5em 1.25em; background: var(--m-bg); box-shadow: 0 1em 2.5em -1.2em rgba(0, 0, 0, .3), inset 0 0 0 1px var(--s-line); }
.site .s-search > .s-i { opacity: .5; }
.s-search > span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9375em; opacity: .5; }
.s-courses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5em; }
.s-course { overflow: hidden; background: var(--m-bg); box-shadow: inset 0 0 0 1px var(--s-line); }
.s-course-img { position: relative; overflow: hidden; aspect-ratio: 3 / 2; }
.s-course-b { padding: 1.4em; }
.s-course-cat { font-size: .72em; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--m-accent); }
.s-course .s-h3 { margin-top: .35em !important; font-size: 1.3em; }
.s-course-f { display: flex; align-items: center; justify-content: space-between; margin-top: 1.25em; padding-top: 1.1em; border-top: 1px solid var(--s-line); }
.s-rate { display: inline-flex; align-items: center; gap: .3em; font-size: .875em; font-weight: 700; }
.site .s-rate .s-i { width: 1em; height: 1em; color: #F2B01E; }
.s-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5em; }
.s-step { padding: 2em; background: var(--m-soft); }
.site .s-step > .s-i { width: 3em; height: 3em; padding: .7em; border-radius: .8em; background: var(--m-bg); color: var(--m-accent); }
.s-step-n { margin: 1.4em 0 .3em !important; font-size: .75em; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--m-accent); }
.s-step .s-mut { margin-top: .5em !important; font-size: .9375em; }

/* Parts of the samples answer to the pointer the way the real site would */
.site :is([data-tab], [data-f], [data-pick] > *, [data-add], .s-like, .s-book, [data-card], .s-btn, .s-link, .s-links > *, .s-ico) { cursor: pointer; }
.site :is(.s-btn, .s-links > *) { transition: opacity .2s, color .2s; }
.site .s-btn:hover { opacity: .86; }
.site .s-links > :hover { color: var(--m-accent); }
.s-over .s-links > :hover { color: #fff; opacity: .7; }
.site .s-link:hover { text-decoration: underline; text-underline-offset: .25em; }
.site :is(.s-room-img, .s-prod-img, .s-tile, .s-prog, .s-course-img, .s-coach-img, .s-doc) img { transition: transform .7s var(--ease); }
.site :is(.s-room, .s-prod, .s-tile, .s-prog, .s-course, .s-coach, .s-doc):hover img { transform: scale(1.05); }
.site .picked { outline: 2px solid var(--m-accent); outline-offset: .4em; }
@media (hover: none) {
  .s-add-bag { left: auto; padding: .8em 1em; opacity: 1; translate: none; }
}

/* In a narrow frame the samples switch to their phone layouts, like the
   real sites would: 1em is now 16px on a 390px wide phone. */
@container (max-width: 520px) {
  .site { font-size: 4.1cqw; }
  .s-w { width: calc(100% - 2.5em); }
  .s-sec { padding: 3.5em 0; }
  .s-pt0 { padding-top: 0; }
  .s-links, .s-hide-m { display: none !important; }
  .s-burger { display: grid; }
  .site .s-burger .s-i { width: 1.5em; height: 1.5em; }
  .s-nav { gap: 1.1em; height: 4.25em; }
  .s-logo { margin-right: auto; font-size: 1.1em; }
  .site .s-h1 { font-size: 2.6em; }
  .site .s-h2 { font-size: 1.85em; }
  .s-lead { font-size: 1em; }
  .s-hero, .s-split { grid-template-columns: 1fr; gap: 2.25em; }
  .s-hero { padding: 1.25em 0 3em; }
  .s-head-row { flex-direction: column; align-items: flex-start; gap: 1.1em; margin-bottom: 1.75em; }
  .s-btns { margin-top: 1.5em; }
  .s-btn { padding: 1em 1.35em; }
  .s-feat-grid { grid-template-columns: 1fr 1fr; }
  .s-feat { flex-direction: column; gap: .6em; padding: 1.4em .75em; }
  .s-feat + .s-feat { border-left: 0; }
  .s-feat:nth-child(even) { border-left: 1px solid var(--s-line); }
  .s-feat:nth-child(n+3) { border-top: 1px solid var(--s-line); }
  .s-float { font-size: .8em; }
  .site .s-float { left: .8em; right: auto; bottom: .8em; }
  .s-cta-band { flex-direction: column; align-items: flex-start; padding: 2em 1.5em; }
  .site .s-cta-band .s-h2 { font-size: 1.6em; }
  .s-quote { font-size: 1.5em !important; }
  .s-foot { padding: 3em 0 1.5em; }
  .s-foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2em 1.5em; }
  .s-foot-grid > :first-child { grid-column: 1 / -1; }
  .s-foot-bar { flex-direction: column; gap: .4em; margin-top: 2.5em; }
  /* Rows of cards become a strip that peeks past the edge */
  .s-rooms, .s-docs, .s-coaches, .s-courses, .s-tiles { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 80%; gap: 1em; overflow: hidden; }
  .s-items { grid-template-columns: 1fr; }
  .s-stats { gap: 1.5em; }
  .s-stats b { font-size: 1.75em; }
  .s-gallery { grid-template-columns: 1fr 1fr; gap: .6em; }
  .site-cafe .s-tabs { width: 100%; }
  .site-cafe .s-tabs > * { flex: 1; padding-inline: .5em; text-align: center; }
  .s-hotel-hero { min-height: 30em; }
  .s-hotel-hero .s-hero-in { padding-bottom: 5em; }
  .site-hotel .s-h1 { font-size: 3.1em; }
  .s-booking { grid-template-columns: 1fr 1fr; margin-top: -2.5em; }
  .s-field { padding: 1em; border-bottom: 1px solid var(--s-line); }
  .s-field:nth-child(2) { border-right: 0; }
  .s-booking :is(.s-field:nth-child(3), .s-btn) { grid-column: 1 / -1; }
  .s-booking .s-btn { padding: 1.3em; }
  .s-amen-grid { grid-template-columns: repeat(3, 1fr); gap: 1.75em .5em; }
  .s-topbar span:not(:first-child) { display: none; }
  .s-svcs { grid-template-columns: 1fr 1fr; gap: .75em; }
  .s-svc { padding: 1.25em; }
  .s-svc :is(.s-svc-d, .s-link) { display: none; }
  .s-appt { padding: 1.4em; }
  .s-days { gap: .35em; }
  .site-shop .s-nav { display: flex; }
  .site-shop .s-logo { font-size: 1.55em; }
  .s-shop-hero { grid-template-columns: 1fr; min-height: 0; }
  .s-shop-hero-img { aspect-ratio: 4 / 4.5; }
  .s-shop-hero-copy { padding: 2.25em 1.25em; }
  .s-tiles { grid-auto-columns: 62%; }
  .s-prods { grid-template-columns: 1fr 1fr; gap: 1.75em .75em; }
  .s-news-form { flex-direction: column; gap: .5em; background: transparent; box-shadow: none; }
  .s-news-form span:first-child { background: var(--m-bg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--m-ink) 25%, transparent); }
  .s-gym-hero { min-height: 36em; }
  .site-gym .s-h1 { font-size: 3.9em; }
  .site-gym .s-h2 { font-size: 2.3em; }
  .s-hero-stats { grid-template-columns: 1fr 1fr; gap: 1.25em; }
  .s-progs { grid-template-columns: 1fr 1fr; gap: .6em; }
  .s-prog b { font-size: 1.4em; }
  .site-gym .s-tabs { width: 100%; }
  .site-gym .s-tabs > * { flex: 1; padding-inline: 0; text-align: center; }
  .s-row { grid-template-columns: 3.6em 1fr auto; gap: .75em; padding: 1em .9em; }
  .s-row > :is(:nth-child(3), :nth-child(4)) { display: none; }
  .s-book { min-width: 0; }
  .s-plans { grid-template-columns: 1fr; }
  .s-search { padding-left: .9em; }
  .s-search > span:nth-child(2) { font-size: .8em; }
  .s-steps { grid-template-columns: 1fr; gap: .75em; }
  .s-filters { flex-wrap: wrap; }
}

/* ── Partners belt (a dark strip: the logos are cut out for a dark ground) ── */
.logos { padding: clamp(64px, 8vw, 104px) 0; }
.logos-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 28px; }
.logos-title { font: 600 calc(clamp(24px, 2.4vw, 32px) * var(--fs)) var(--f-display); letter-spacing: -0.02em; }
.logos-hint { font-size: 14px; color: var(--muted); }
.belt { background: var(--belt); overflow: hidden; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.belt.grabbing { cursor: grabbing; }
.belt-track { display: flex; width: max-content; will-change: transform; }
html:not(.js) .belt-track { animation: belt 40s linear infinite; }
@keyframes belt { to { transform: translateX(-50%); } }
.belt-set { display: flex; }
.logo { border-right: 1px solid rgba(255, 255, 255, .1); }
.logo-in { display: flex; align-items: center; justify-content: center; width: clamp(190px, 19vw, 270px); height: clamp(116px, 10vw, 140px); padding: 0 28px; text-decoration: none; transition: background-color .3s; }
a.logo-in:hover { background: rgba(255, 255, 255, .06); }
.logo img { height: 40px; width: auto; max-width: 170px; object-fit: contain; pointer-events: none; }
.logo.on-chip .logo-in img { background: #F2F3EE; padding: 12px 18px; height: 62px; }
.logo-name { color: #fff; font-weight: 700; font-size: 18px; }

/* ── Section heads ── */
.section-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }

/* ── Services: rows on the left, the active one's live demo on the right ── */
.services { padding: clamp(80px, 10vw, 140px) 0; border-top: 1px solid var(--line); }
.svc { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.svc-list { border-top: 1px solid var(--ink); }
.svc-item { border-bottom: 1px solid var(--line-2); }
.svc-item h3 { font: inherit; }
.svc-row { width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 22px 0; border: 0; background: none; text-align: left; cursor: pointer; }
.svc-icon { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--muted); transition: background-color .3s, color .3s, border-color .3s; }
.svc-name { font: 600 calc(clamp(24px, 2.6vw, 38px) * var(--fs)) / 1.05 var(--f-display); letter-spacing: -0.03em; color: var(--muted); transition: color .3s, translate .45s var(--ease); }
.svc-plus { position: relative; width: 26px; height: 26px; }
.svc-plus::before, .svc-plus::after { content: ''; position: absolute; left: 4px; right: 4px; top: 12px; height: 2px; background: var(--ink); transition: rotate .4s var(--ease); }
.svc-plus::after { rotate: 90deg; }
.svc-item.on .svc-plus::after { rotate: 0deg; }
.svc-item.on .svc-name, .svc-row:hover .svc-name { color: var(--ink); }
.svc-item.on .svc-name { translate: 8px 0; }
.svc-item.on .svc-icon { background: var(--ink); color: var(--sky); border-color: var(--ink); }
.svc-detail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.svc-item.on .svc-detail { grid-template-rows: 1fr; }
.svc-detail-in { min-height: 0; overflow: hidden; display: grid; gap: 14px; padding-left: 64px; }
.svc-item.on .svc-detail-in { padding-bottom: 26px; }
.svc-detail p { color: var(--muted); max-width: 52ch; }
.svc-ask { justify-self: start; display: inline-flex; align-items: center; gap: 8px; color: var(--sky-ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.svc-ask .glyph { transition: translate .3s var(--ease); }
.svc-ask:hover .glyph { translate: 4px 0; }
.svc-demo-inline { display: none; }

.svc-stage { position: sticky; top: 110px; aspect-ratio: 4 / 3.3; border: 1px solid var(--ink); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.svc-scene { position: absolute; inset: 0; display: grid; place-items: center; padding: 8% 9% 14%; opacity: 0; translate: 0 16px; transition: opacity .4s, translate .5s var(--ease); }
.svc-scene.on { opacity: 1; translate: 0 0; }
.svc-scene-name { position: absolute; left: 20px; bottom: 16px; font-size: 13px; font-weight: 600; color: var(--muted); }

/* ── Service demos (play only while their service is open) ── */
.demo { position: relative; width: 100%; aspect-ratio: 4 / 3; --dc: var(--ink); }
/* Website design: a page lays itself out */
.demo-layout i { position: absolute; display: block; border: 1.5px solid var(--dc); transform-origin: left; }
.demo-layout .d-nav { left: 0; right: 0; top: 0; height: 9%; }
.demo-layout .d-hero { left: 0; top: 15%; width: 54%; height: 44%; background: var(--sky); border-color: var(--sky); }
.demo-layout .d-copy { left: 58%; top: 15%; right: 0; height: 44%; background: repeating-linear-gradient(var(--dc) 0 2px, transparent 2px 14%); border: 0; opacity: .45; }
.demo-layout .d-c1, .demo-layout .d-c2, .demo-layout .d-c3 { top: 65%; height: 35%; width: 31.3%; }
.demo-layout .d-c1 { left: 0; } .demo-layout .d-c2 { left: 34.35%; } .demo-layout .d-c3 { right: 0; }
.on .demo-layout i { animation: lay 5s var(--ease) infinite both; }
.on .demo-layout i:nth-child(2) { animation-delay: .15s; } .on .demo-layout i:nth-child(3) { animation-delay: .3s; }
.on .demo-layout i:nth-child(4) { animation-delay: .45s; } .on .demo-layout i:nth-child(5) { animation-delay: .6s; } .on .demo-layout i:nth-child(6) { animation-delay: .75s; }
@keyframes lay { 0% { transform: scaleX(0); opacity: 0; } 14% { transform: scaleX(1); opacity: 1; } 84% { opacity: 1; } 100% { opacity: 0; } }
/* Web applications: a dashboard */
.demo-chart { display: flex; flex-direction: column; gap: 6%; }
.d-kpi { font-size: 14px; color: var(--muted); }
.d-kpi b { display: block; font: 700 calc(34px * var(--fs)) var(--f-display); color: var(--ink); letter-spacing: -0.02em; }
.d-bars { flex: 1; display: flex; align-items: flex-end; gap: 4%; border-bottom: 1.5px solid var(--ink); border-left: 1.5px solid var(--ink); padding: 0 4%; }
.d-bars span { flex: 1; height: var(--h); background: var(--ink); transform-origin: bottom; }
.d-bars span:nth-child(6) { background: var(--sky); }
.on .d-bars span { animation: grow 4.5s var(--ease) infinite both; animation-delay: calc(var(--i) * .08s); }
@keyframes grow { 0% { transform: scaleY(0); } 22%, 86% { transform: scaleY(1); } 100% { transform: scaleY(0); } }
/* E-commerce: products go into the cart */
.demo-store { display: flex; flex-direction: column; justify-content: center; gap: 8%; }
.d-prods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5%; }
.d-prods span { aspect-ratio: 3 / 4; border: 1.5px solid var(--ink); background: linear-gradient(var(--surface-2), var(--surface-2)) top / 100% 62% no-repeat; position: relative; }
.d-prods span::after { content: ''; position: absolute; left: 10%; right: 30%; bottom: 10%; height: 6%; background: var(--ink); opacity: .5; }
.on .d-prods span { animation: pick 4.8s var(--ease) infinite; animation-delay: calc(var(--i) * 1.1s); }
@keyframes pick { 0%, 8% { box-shadow: none; translate: 0 0; } 12%, 22% { box-shadow: 0 0 0 3px var(--sky); translate: 0 -6px; } 30%, 100% { box-shadow: none; translate: 0 0; } }
.d-cart { align-self: flex-end; display: flex; align-items: center; gap: 10px; padding: 8px 14px; border: 1.5px solid var(--ink); font-weight: 600; }
.d-count { min-width: 26px; height: 26px; display: grid; place-items: center; background: var(--sky); color: var(--on-sky); font-size: 13px; }
/* The counter is set on the element itself: its ::after cannot see the animated --n. */
.d-count { counter-reset: n var(--n); }
.d-count::after { content: counter(n); }
.on .d-count { animation: count3 4.8s steps(1) infinite; }
@keyframes count3 { 0% { --n: 0; } 22% { --n: 1; } 45% { --n: 2; } 68% { --n: 3; } }
/* Integrations: data travels between systems */
.demo-flow { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; place-items: center; }
.d-node { z-index: 1; padding: 10px 14px; border: 1.5px solid var(--ink); background: var(--surface); font-weight: 600; font-size: 14px; }
.d-node.n1 { grid-column: 1 / -1; background: var(--ink); color: var(--bg); }
.d-wire { position: absolute; top: 30%; height: 42%; width: 1.5px; background: repeating-linear-gradient(var(--ink) 0 6px, transparent 6px 12px); background-size: 100% 12px; }
.d-wire.w1 { left: 33%; rotate: 32deg; } .d-wire.w2 { right: 33%; rotate: -32deg; }
.on .d-wire { animation: flow .6s linear infinite; }
@keyframes flow { to { background-position: 0 12px; } }
/* Performance: a score ring sweeps to 98 */
.demo-score { display: grid; place-items: center; align-content: center; gap: 14px; }
.d-ring { width: 54%; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(closest-side, var(--surface) 78%, transparent 79%), conic-gradient(var(--sky) calc(var(--p) * 1%), var(--line) 0); }
.d-num { font: 700 calc(42px * var(--fs)) var(--f-display); letter-spacing: -0.03em; }
.d-num { counter-reset: n var(--n); }
.d-num::after { content: counter(n); }
.on .d-ring { animation: ring 4.6s var(--ease) infinite; }
.on .d-num { animation: score 4.6s var(--ease) infinite; }
@keyframes ring { 0% { --p: 0; } 45%, 90% { --p: 98; } 100% { --p: 98; } }
@keyframes score { 0% { --n: 0; } 45%, 100% { --n: 98; } }
.demo-score p { color: var(--muted); font-size: 14px; }
/* Support: a checklist ticks itself off */
.demo-list { display: grid; align-content: center; gap: 10px; }
.demo-list span { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line-2); font-weight: 500; }
.demo-list span::before { content: ''; width: 18px; height: 18px; flex: none; border: 1.5px solid var(--ink); background: linear-gradient(var(--sky), var(--sky)) center / 0 0 no-repeat; }
.on .demo-list span::before { animation: tick 5s steps(1) infinite; animation-delay: calc(var(--i) * .7s); }
.on .demo-list span { animation: done 5s steps(1) infinite; animation-delay: calc(var(--i) * .7s); }
@keyframes tick { 0% { background-size: 0 0; } 10%, 90% { background-size: 100% 100%; } }
@keyframes done { 0% { border-color: var(--line-2); } 10%, 90% { border-color: var(--ink); } }
/* Anything else: code being written */
.demo-code { display: grid; align-content: center; gap: 14px; padding: 0 6%; }
.demo-code i { display: block; height: 10px; width: var(--w); background: var(--ink); transform-origin: left; opacity: .7; }
.demo-code i:nth-child(3) { background: var(--sky); opacity: 1; }
.on .demo-code i { animation: type 4.2s steps(12) infinite both; animation-delay: calc(var(--i) * .25s); }
@keyframes type { 0% { transform: scaleX(0); } 30%, 85% { transform: scaleX(1); } 100% { transform: scaleX(0); } }

/* ── Work: a sideways gallery while you scroll (pinned on desktop) ── */
.work { position: relative; border-top: 1px solid var(--line); padding: clamp(80px, 10vw, 120px) 0; }
.work.pinned { padding: 0; }
.work.pinned .work-pin { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding-top: 40px; }
.work-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 3.5vw, 48px); }
.work-tools { display: grid; gap: 14px; justify-items: end; }
.tabs { display: flex; border: 1px solid var(--ink); }
.tab { min-height: 44px; padding: 0 18px; border: 0; background: none; color: var(--ink); font-weight: 600; font-size: 14px; cursor: pointer; transition: background-color .2s, color .2s; }
.tab + .tab { border-left: 1px solid var(--ink); }
.tab sup { font-size: 10px; margin-left: 2px; color: var(--muted); }
.tab.active { background: var(--ink); color: var(--bg); }
.tab.active sup { color: inherit; }
.work-progress { width: 220px; height: 3px; background: var(--line); }
.work-progress span { display: block; height: 100%; background: var(--sky); transform-origin: left; transform: scaleX(0); }
.work:not(.pinned) .work-progress { display: none; }
.work-rail { overflow: visible; }
.work-track { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; width: min(var(--shell), 100% - 2 * var(--gutter)); margin-inline: auto; }
.work.pinned .work-track { display: flex; width: max-content; gap: 36px; margin: 0; padding: 0 var(--gutter); will-change: transform; }
.work.pinned .card { flex: none; width: min(46vw, 760px); }
.card.out { display: none; }
.card-btn { width: 100%; display: grid; gap: 16px; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.card-shot { display: block; border: 1px solid var(--ink); background: var(--surface); box-shadow: var(--shadow); transition: translate .45s var(--ease), box-shadow .45s var(--ease); }
.card-shot { position: relative; overflow: hidden; }
.card-shot img { width: 100%; height: 100%; object-fit: contain; }
/* A phone-first project: its phone screenshot stands in a phone frame on a
   dotted canvas, so the card keeps the same shape as the rest of the row. */
.card-shot.is-phone { background: radial-gradient(var(--line-2) 1px, transparent 1.5px) 0 0 / 16px 16px, var(--bg); }
.card-shot.is-phone img { position: absolute; top: 7%; left: 0; right: 0; width: auto; max-width: 80%; height: 86%; margin: 0 auto; padding: 4px; background: var(--ink); box-shadow: var(--shadow); }
.card-none { display: grid; place-items: center; height: 100%; padding: 24px; text-align: center; color: var(--muted); font: 600 calc(22px * var(--fs)) / 1.15 var(--f-display); }
.card-btn:hover .card-shot, .card-btn:focus-visible .card-shot { translate: 0 -8px; box-shadow: 0 40px 70px -34px rgba(18, 24, 19, .6), 0 0 0 1px var(--sky); }
.card-meta { display: grid; grid-template-columns: auto 1fr auto; column-gap: 16px; align-items: center; }
.card-n { grid-row: span 2; align-self: start; padding-top: 4px; font: 500 13px var(--f-mono); color: var(--muted); }
.card-title { font: 600 calc(clamp(22px, 2vw, 30px) * var(--fs)) / 1.1 var(--f-display); letter-spacing: -0.02em; }
.card-cat { grid-column: 2; color: var(--muted); font-size: 15px; }
.card-go { grid-column: 3; grid-row: 1 / span 2; width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--ink); font-size: 18px; transition: background-color .3s, color .3s; }
.card-go .glyph { transition: rotate .4s var(--ease); }
.card-btn:hover .card-go { background: var(--sky); border-color: var(--sky); color: var(--on-sky); }
.card-btn:hover .card-go .glyph { rotate: 45deg; }
.card-end { align-self: stretch; }
.card-next { height: 100%; min-height: 240px; display: grid; align-content: center; justify-items: start; gap: 22px; padding: 40px; border: 1px dashed var(--line-2); text-decoration: none; transition: border-color .3s, background-color .3s; }
.card-next:hover { border-color: var(--ink); background: var(--surface); }
.card-next-q { font: 600 calc(clamp(26px, 2.6vw, 40px) * var(--fs)) / 1.05 var(--f-display); letter-spacing: -0.03em; max-width: 12ch; }
.work.pinned .card-end { width: min(30vw, 420px); }
.work.pinned .card-next { height: auto; aspect-ratio: 4 / 3; }

/* ── Numbers ── */
.numbers-band { border-top: 1px solid var(--line); }
.numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.number { display: flex; flex-direction: column; padding: clamp(32px, 4vw, 52px) 24px clamp(32px, 4vw, 52px) 0; }
.number + .number { padding-left: 24px; border-left: 1px solid var(--line); }
.number dt { order: 2; margin-top: 10px; font-weight: 600; }
.number-big { order: 1; font: 600 calc(clamp(52px, 6vw, 96px) * var(--fs)) / 1 var(--f-display); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.number-suffix { color: var(--sky-ink); }
.number-desc { order: 3; margin-top: 4px; color: var(--muted); font-size: 14px; }

/* ── Process: Ethiopic numerals on a rail that fills as you scroll ── */
.process { padding: clamp(80px, 10vw, 140px) 0; border-top: 1px solid var(--line); }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.steps::before, .steps::after { content: ''; position: absolute; left: 0; right: 0; top: 40px; height: 2px; }
.steps::before { background: var(--line); }
.steps::after { background: var(--sky); transform-origin: left; transform: scaleX(var(--fill, 0)); }
.step { position: relative; }
.step-n { position: relative; z-index: 1; width: 82px; height: 82px; display: grid; place-items: center; border: 1px solid var(--ink); background: var(--bg); font: 700 40px/1 var(--f-eth); transition: background-color .4s, color .4s, border-color .4s; }
.step.on .step-n { background: var(--sky); border-color: var(--sky); color: var(--on-sky); }
.step-latin { position: absolute; left: 92px; top: 6px; font: 500 12px var(--f-mono); color: var(--muted); }
.step h3 { margin-top: 26px; font: 600 calc(clamp(24px, 2.2vw, 32px) * var(--fs)) / 1.1 var(--f-display); letter-spacing: -0.02em; }
.step p { margin-top: 10px; color: var(--muted); max-width: 32ch; }

/* ── Contact ── */
.contact { padding: clamp(80px, 10vw, 140px) 0; border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-side { display: grid; gap: 22px; position: sticky; top: 110px; }
.direct { border-top: 1px solid var(--ink); margin-top: 8px; }
.direct-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 16px; padding: 18px 2px; border-bottom: 1px solid var(--line-2); text-decoration: none; background: linear-gradient(var(--surface), var(--surface)) left / 0 100% no-repeat; transition: background-size .45s var(--ease); }
.direct-row small { grid-column: 1; color: var(--muted); font-size: 13px; }
.direct-row span { grid-column: 1; font: 600 calc(clamp(18px, 1.7vw, 23px) * var(--fs)) var(--f-display); overflow-wrap: anywhere; transition: translate .4s var(--ease); }
.direct-row .glyph { grid-column: 2; grid-row: 1 / span 2; font-size: 20px; transition: rotate .4s var(--ease), color .2s; }
.direct-row:hover { background-size: 100% 100%; }
.direct-row:hover span { translate: 8px 0; }
.direct-row:hover .glyph { rotate: 45deg; color: var(--sky-ink); }

.brief { padding: clamp(24px, 3.4vw, 44px); border: 1px solid var(--ink); background: var(--surface); box-shadow: var(--shadow); }
.brief-top { display: grid; gap: 12px; margin-bottom: 28px; }
.brief-step { font-size: 14px; font-weight: 600; color: var(--muted); }
.brief-bar { height: 3px; background: var(--line); }
.brief-bar span { display: block; height: 100%; width: 33.4%; background: var(--sky); transition: width .6s var(--ease); }
html:not(.js) .brief-top, html:not(.js) #stepNext, html:not(.js) #stepBack { display: none !important; }
.form-alert { margin-bottom: 18px; padding: 12px 16px; border-left: 3px solid #C62828; background: rgba(198, 40, 40, .08); color: #9B1C1C; }
html[data-mode="build"] .form-alert { color: #FFC9C4; background: rgba(255, 120, 110, .14); }
#contactForm { display: grid; gap: 22px; }
.js .step-set { display: none; }
.js .step-set.is-current { display: grid; animation: step-in .45s var(--ease); }
.js .step-set.back { animation-name: step-back; }
@keyframes step-in { from { opacity: 0; translate: 26px 0; } }
@keyframes step-back { from { opacity: 0; translate: -26px 0; } }
.step-set { gap: 18px; }
.step-q { font: 600 calc(clamp(24px, 2.4vw, 34px) * var(--fs)) / 1.1 var(--f-display); letter-spacing: -0.025em; margin-bottom: 6px; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-2); border-left: 1px solid var(--line-2); }
.choice { position: relative; cursor: pointer; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.choice input, .chip input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.choice span { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 14px 16px; font-size: 15px; transition: background-color .2s, color .2s; }
.choice span svg { flex: none; color: var(--muted); }
.choice b { font-weight: 600; }
.choice:hover span { background: var(--surface-2); }
.choice input:checked + span { background: var(--ink); color: var(--bg); }
.choice input:checked + span svg { color: var(--sky); }
.choice input:focus-visible + span, .chip input:focus-visible + span { outline: 2px solid var(--sky-ink); outline-offset: -4px; }
.form-group { display: grid; gap: 6px; }
.form-label { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 600; color: var(--muted); }
.optional, .char-count { font-weight: 400; white-space: nowrap; }
.field {
  width: 100%; min-height: 54px; padding: 12px 0; border: 0; border-bottom: 1.5px solid var(--line-2); background: transparent; color: var(--ink); font-size: 18px;
  background-image: linear-gradient(var(--sky), var(--sky)); background-size: 0 2px; background-position: left bottom; background-repeat: no-repeat;
  transition: background-size .45s var(--ease), border-color .2s;
}
.field::placeholder { color: var(--line-2); }
.field:focus { outline: none; background-size: 100% 2px; }
.field-area { min-height: 140px; padding: 14px 16px; border: 1.5px solid var(--line-2); resize: vertical; line-height: 1.55; }
.has-error .field { border-color: #C62828; }
.has-error .choices { outline: 1.5px solid #C62828; }
.field-error { color: #B42318; font-size: 14px; }
html[data-mode="build"] .field-error { color: #FFB4AB; }
.field-error:empty { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border: 1px solid var(--line-2); font-size: 14px; font-weight: 500; transition: background-color .2s, color .2s, border-color .2s; }
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.brief-nav { display: flex; gap: 10px; margin-top: 6px; }
.brief-nav .pill-solid { flex: 1; }
.js .form-submit { display: none; }
.js .form-submit.show { display: inline-flex; }
.form-submit .spinner { display: none; width: 20px; height: 20px; background: url('../../brand/nirodev-mark-on-dark.svg') center / contain no-repeat; animation: spin 1s steps(8) infinite; }
.form-submit.loading .spinner { display: block; }
.form-submit:disabled { opacity: .7; cursor: progress; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-note { font-size: 13px; color: var(--muted); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-success { display: grid; justify-items: start; gap: 10px; }
.success-mark { width: 60px; height: 60px; display: grid; place-items: center; background: var(--sky); color: var(--on-sky); font-size: 26px; animation: pop .5s var(--ease); }
@keyframes pop { from { scale: 0; } }
.success-ref { font-weight: 700; color: var(--sky-ink); }
.form-success .pill { margin-top: 10px; }

/* ── Closing: say selam ── */
.closing { padding: clamp(80px, 10vw, 140px) 0; border-top: 1px solid var(--line); }
.closing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 64px; align-items: center; }
.closing-grid .lead { margin-top: 22px; }
.closing-label { margin-bottom: 14px; color: var(--sky-ink); font-weight: 600; }
.selam { display: grid; justify-items: end; gap: 10px; text-decoration: none; text-align: right; }
.selam-word { font: 700 clamp(110px, 17vw, 270px) / .9 var(--f-eth); letter-spacing: -0.02em; transition: color .35s, letter-spacing .6s var(--ease); }
.selam:hover .selam-word { color: var(--sky-ink); letter-spacing: .04em; }
.selam-note { color: var(--muted); max-width: 30ch; }
.selam-note b { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }

/* ── Footer ── */
.foot { padding: clamp(48px, 6vw, 80px) 0 28px; border-top: 1px solid var(--ink); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 36px; }
.foot-grid .lead { margin-top: 16px; font-size: 16px; }
.foot-col { display: grid; gap: 10px; align-content: start; }
.foot-col a { color: var(--muted); text-decoration: none; transition: color .2s; }
.foot-col a:hover { color: var(--ink); }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot-bottom a { color: var(--muted); }

/* ── Project viewer ── */
.viewer {
  position: fixed; inset: 0; z-index: 140; display: grid; grid-template-rows: auto 1fr auto; gap: 18px;
  padding: 18px var(--gutter) calc(18px + env(safe-area-inset-bottom)); background: var(--bg);
  clip-path: inset(var(--cy, 50%) calc(100% - var(--cx, 50%)) calc(100% - var(--cy, 50%)) var(--cx, 50%)); visibility: hidden;
  transition: clip-path .6s var(--ease), visibility 0s .6s;
}
.viewer.open { clip-path: inset(0); visibility: visible; transition: clip-path .6s var(--ease); }
.viewer-top, .viewer-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.viewer-top { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.viewer-foot { padding-top: 16px; border-top: 1px solid var(--line); }
.viewer-cat { color: var(--muted); font-size: 14px; }
.viewer-title { font: 600 calc(clamp(28px, 3.6vw, 50px) * var(--fs)) / 1 var(--f-display); letter-spacing: -0.03em; }
.viewer-actions, .viewer-nav { display: flex; align-items: center; gap: 10px; }
.viewer-count { margin-right: 6px; color: var(--muted); font-variant-numeric: tabular-nums; }
.viewer-summary { color: var(--muted); max-width: 60ch; }
.viewer-stage { min-height: 0; display: flex; align-items: center; justify-content: center; gap: clamp(20px, 3vw, 44px); touch-action: pan-y; container-type: size; }
.viewer-stage.swap > * { animation: swap .5s var(--ease); }
@keyframes swap { from { opacity: 0; translate: var(--dir, 40px) 0; } }
/* Frames shrink-wrap the screenshot, scaled (never cropped or stretched) to fit. */
.v-desktop { flex: 0 1 auto; min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--ink); background: var(--surface); box-shadow: var(--shadow); }
.v-bar { flex: none; display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-bottom: 1px solid var(--ink); }
.v-bar i { width: 8px; height: 8px; border: 1px solid var(--ink); }
.v-bar span { margin-left: 8px; padding: 2px 10px; border: 1px solid var(--line-2); color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-desktop img { width: auto; height: auto; max-width: min(1100px, 74cqw); max-height: calc(100cqh - 32px); object-fit: contain; }
.v-phone { flex: none; padding: 6px; background: var(--ink); border: 1px solid var(--ink); box-shadow: var(--shadow); }
.v-phone img { width: auto; height: auto; max-height: min(calc(100cqh - 14px), 640px); max-width: 30cqw; object-fit: contain; }

/* ── Titles slide up out of a mask once ── */
.js .reveal-lines { clip-path: inset(0 0 100% 0); translate: 0 36px; transition: clip-path .9s var(--ease), translate .9s var(--ease); }
.js .reveal-lines.in { clip-path: inset(-10% -10% -14% -10%); translate: 0 0; }

/* ════ BUILD MODE: the blueprint ════ */
html[data-mode="build"] main > section, html[data-mode="build"] .foot { position: relative; }
html[data-mode="build"] main > section::before, html[data-mode="build"] .foot::before {
  content: '<section id="' attr(id) '">'; position: absolute; top: 10px; left: var(--gutter); z-index: 2;
  font: 500 11px var(--f-mono); color: var(--sky); opacity: .9;
}
html[data-mode="build"] .foot::before { content: '<footer>'; }
html[data-mode="build"] :is(h1, h2, h3, .lead, .hero-sub, .pill, .tab, .mock-tab, .mock-url, .svc-row, .card-meta, .number, .step, .direct-row, .field-area, .brief, .menu-links a) {
  outline: 1px dashed rgba(125, 211, 252, .5); outline-offset: 3px;
}
html[data-mode="build"] .big-title em, html[data-mode="build"] .hero-title em { background: none; color: var(--sky); padding: 0; }
html[data-mode="build"] .big-title em::before, html[data-mode="build"] .hero-title em::before { content: '<em>'; font-size: .3em; vertical-align: .9em; opacity: .8; }
html[data-mode="build"] .caret-word::after { content: none; }
html[data-mode="build"] .big-title em::after, html[data-mode="build"] .hero-title em::after { content: '</em>'; display: inline; width: auto; height: auto; margin: 0; background: none; font-size: .3em; vertical-align: .9em; opacity: .8; animation: none; }
/* Screenshots become wireframes labelled with their size */
html[data-mode="build"] .frame:has(> img) { background: linear-gradient(to top right, transparent calc(50% - .75px), var(--line-2) calc(50% - .75px), var(--line-2) calc(50% + .75px), transparent calc(50% + .75px)), linear-gradient(to bottom right, transparent calc(50% - .75px), var(--line-2) calc(50% - .75px), var(--line-2) calc(50% + .75px), transparent calc(50% + .75px)); }
html[data-mode="build"] .frame > img { opacity: 0; }
html[data-mode="build"] .frame { border: 1px solid var(--sky) !important; box-shadow: none; }
html[data-mode="build"] .frame::after {
  content: attr(data-dims); position: absolute; left: -1px; top: -1px; translate: 0 -100%; padding: 2px 7px;
  background: var(--sky); color: var(--on-sky); font: 600 10px/1.5 var(--f-mono); white-space: nowrap; z-index: 3;
}
html[data-mode="build"] .card-shot::after { top: auto; bottom: -1px; translate: 0 100%; }
/* The live sketch turns into its own wireframe */
html[data-mode="build"] :is(.mock-view, .site) { background: transparent; color: var(--ink); font-family: var(--f-mono); }
html[data-mode="build"] .site * { background: transparent !important; color: var(--ink) !important; border-color: var(--sky) !important; box-shadow: none !important; outline: 1px dashed rgba(125, 211, 252, .55); font-family: var(--f-mono) !important; text-decoration-color: var(--sky) !important; }
html[data-mode="build"] .site img { opacity: 0; }
html[data-mode="build"] .site .s-over::before { content: none; }
html[data-mode="build"] :is(.mock-bar, .v-bar) { border-color: var(--sky); }
html[data-mode="build"] .mock-tabs { box-shadow: inset 0 -1px var(--sky); }
html[data-mode="build"] .mock-stage { background: transparent; }
html[data-mode="build"] .selam-word { color: transparent; -webkit-text-stroke: 1.5px var(--sky); }
html[data-mode="build"] .step-n { font-family: var(--f-eth); }
html[data-mode="build"] .belt .logo { border-right-style: dashed; }
/* The showcase: wireframed screenshots are enough; the phone frame drops its ink fill */
html[data-mode="build"] .show-phone { background: transparent; }
html[data-mode="build"] .show-seg i::after { background: var(--sky); }

/* ── Tablet ── */
@media (max-width: 1080px) {
  .section-head, .contact-grid, .closing-grid, .try-grid { grid-template-columns: 1fr; }
  .contact-side, .try-copy { position: static; }
  .svc { grid-template-columns: 1fr; }
  .svc-stage { display: none; }
  .svc-demo-inline { display: block; max-width: 440px; padding: 18px; border: 1px solid var(--line-2); background: var(--surface); }
  .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .number:nth-child(3) { padding-left: 0; border-left: 0; }
  .number:nth-child(n+3) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .steps::before, .steps::after { display: none; }
  .selam { justify-items: start; text-align: left; }
  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .show { max-width: 760px; }
}

/* ── Phone ── */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .bar-links, .bar-cta { display: none; }
  .bar-menu { display: block; }
  .bar { padding: 12px var(--gutter); }
  .bar-logo img { height: 26px; }
  .hero { padding: 96px 0 56px; }
  .hero-grid { gap: 40px; }
  .hero-tag { padding: 6px 10px; font-size: 12px; }
  .hero-title { font-size: calc(clamp(42px, 12vw, 68px) * var(--fs)); }
  .hero-actions { width: 100%; }
  .hero-actions .pill { flex: 1 1 0; padding: 0 12px; }
  .show-stage { aspect-ratio: 16 / 12; }
  .show-phone img { max-width: 30cqw; }
  .show-bar { height: 24px; }
  .show-desk img { max-height: calc(86cqh - 26px); }
  .devices { display: none; }
  .mock-stage { aspect-ratio: 4 / 5; }
  .mock-tab { padding: 0 14px; }
  .logos-head { flex-direction: column; gap: 4px; }
  .logo-in { width: 168px; height: 100px; padding: 0 20px; }
  .logo img { height: 32px; max-width: 124px; }
  .logo.on-chip .logo-in img { height: 52px; padding: 10px 14px; }
  .svc-row { gap: 14px; padding: 18px 0; }
  .svc-icon { width: 40px; height: 40px; }
  .svc-detail-in { padding-left: 0; }
  .svc-demo-inline { max-width: none; }
  .work-track { grid-template-columns: 1fr; gap: 40px; }
  .work-tools { justify-items: start; width: 100%; }
  .tabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; }
  .card-next { min-height: 200px; padding: 28px; }
  .numbers { grid-template-columns: 1fr 1fr; }
  .number { padding-right: 12px; }
  .number + .number { padding-left: 14px; }
  .steps { grid-template-columns: 1fr; row-gap: 0; }
  .step { display: grid; grid-template-columns: 64px 1fr; column-gap: 18px; padding-bottom: 32px; }
  .step::before { content: ''; position: absolute; left: 31px; top: 64px; bottom: 0; width: 2px; background: var(--line); }
  .step:last-child::before { display: none; }
  .step-n { grid-row: 1 / span 2; width: 64px; height: 64px; font-size: 30px; }
  .step-latin { display: none; }
  .step h3 { margin-top: 6px; }
  .choices { grid-template-columns: 1fr; }
  .selam-word { font-size: clamp(96px, 34vw, 160px); }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; }
  .modebar { bottom: calc(12px + env(safe-area-inset-bottom)); }
  .mode-btn { min-width: 80px; height: 38px; }

  .viewer { padding-top: 14px; gap: 14px; }
  .viewer-top { align-items: flex-start; }
  .viewer-actions .pill { min-height: 46px; padding: 0 16px; }
  .viewer-stage { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter)); padding: 8px var(--gutter); scrollbar-width: none; touch-action: auto; }
  .viewer-stage::-webkit-scrollbar { display: none; }
  .v-desktop { flex: 0 0 auto; scroll-snap-align: center; }
  .v-desktop img { max-width: calc(100cqw - 2 * var(--gutter)); max-height: calc(100cqh - 48px); }
  .v-phone { scroll-snap-align: center; }
  .v-phone img { max-width: 62cqw; max-height: calc(100cqh - 28px); }
  .viewer-foot { flex-direction: column; align-items: stretch; }
  .viewer-summary { font-size: 15px; }
  .viewer-nav { justify-content: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal-lines { clip-path: none; translate: none; }
  .mock-view { overflow-y: auto; }
}
