/* dapurweb — home
   Direction: "the well-kept board". Every section is a set of flat tiles on one 12-column grid,
   8px gaps, one radius. Colours come from the logo: sky blues on a cool ground, deep navy ink. */

/* ---------- Tokens ---------- */
:root {
  --ground: #F2F5FA;
  --tile: #FFFFFF;
  --ink: #0E1538;
  --muted: #4A5474;
  --accent: #1D63ED;
  --accent-deep: #154FC4;
  --on-accent: #FFFFFF;

  --sky-1: #E8F2FF;
  --sky-2: #D2E6FF;
  --sky-3: #92C9FF;
  --sky-4: #55A6F5;
  --navy: #0E1538;
  --navy-2: #1A2452;
  --navy-3: #26316A;
  --on-navy: #FFFFFF;
  --on-navy-muted: #B9C6EC;

  --ok: #0F7A49;
  --ok-soft: #D6F3E4;
  --warn: #F3B23C;
  --warn-soft: #FDEFD3;

  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Five steps. */
  --step-small: 1rem;
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-sub: clamp(1.375rem, 1.05rem + 1.1vw, 2.125rem);
  --step-lead: clamp(1.25rem, 1rem + 0.55vw, 1.625rem);
  --step-title: clamp(1.75rem, 1rem + 2.1vw, 3rem);
  --step-head: clamp(2.125rem, 1.25rem + 3.3vw, 4.25rem);
  --step-monument: clamp(3.75rem, 1rem + 10vw, 11rem);

  --radius: 8px;
  --gap: 8px;
  --m: 12px;
  --pad: clamp(18px, 1.7vw, 26px);
  --section: clamp(72px, 9vw, 152px);
  --header-h: 68px;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --t-fast: 160ms;
  --t-med: 320ms;
}

@media (max-width: 760px) {
  :root { --m: 8px; --gap: 6px; --header-h: 60px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure, blockquote, fieldset { margin: 0; padding: 0; }
h1, h2, h3 { text-wrap: balance; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; text-align: inherit; }
address { font-style: normal; }
kbd { font: inherit; }
::selection { background: var(--sky-3); color: var(--ink); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.tone-accent :focus-visible, .tone-navy :focus-visible, .site-footer :focus-visible { outline-color: #FFFFFF; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius);
  transition: top var(--t-fast) var(--ease-out);
}
.skip-link:focus { top: 12px; }

.icon-arrow { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; transition: transform var(--t-med) var(--ease-out); }

/* ---------- Board and tiles ---------- */
.board {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  padding-inline: var(--m);
}
.tile {
  position: relative;
  border-radius: var(--radius);
  background: var(--tile);
  overflow: hidden;
}
.tone-white { background: var(--tile); }
.tone-sky-1 { background: var(--sky-1); }
.tone-sky-2 { background: var(--sky-2); }
.tone-sky-3 { background: var(--sky-3); }
.tone-sky-4 { background: var(--sky-4); }
.tone-navy { background: var(--navy); color: var(--on-navy); }
.tone-navy-2 { background: var(--navy-2); color: var(--on-navy); }
.tone-accent { background: var(--accent); color: var(--on-accent); }

.section { margin-top: var(--section); }
.section-tight { margin-top: var(--gap); }

/* ---------- Buttons and links ---------- */
.btn {
  --btn-bg: var(--accent); --btn-fg: var(--on-accent); --btn-hover: var(--accent-deep);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 0 24px;
  border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 500; font-size: var(--step-body); line-height: 1;
  white-space: nowrap;
  transition: transform var(--t-fast) var(--ease-out), color var(--t-med) var(--ease-out);
  will-change: transform;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--btn-hover); border-radius: inherit;
  transform: translateY(101%); transition: transform var(--t-med) var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:hover .icon-arrow, .btn:focus-visible .icon-arrow { transform: translateX(4px); }
.btn:hover .icon-arrow--up { transform: translateY(-3px); }
.btn:active { transform: scale(.97); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: var(--step-small); }
.btn--accent { --btn-bg: var(--accent); --btn-fg: var(--on-accent); --btn-hover: var(--accent-deep); }
.btn--paper { --btn-bg: #FFFFFF; --btn-fg: var(--accent); --btn-hover: var(--sky-1); }
.btn--ink { --btn-bg: var(--sky-1); --btn-fg: var(--ink); --btn-hover: #FFFFFF; }

.link-arrow {
  position: relative;
  display: inline-flex; align-items: center; gap: .45em;
  font-weight: 500;
  padding-bottom: 3px;
}
.link-arrow::after {
  content: ""; position: absolute; left: 0; right: 1.6em; bottom: 0; height: 2px; border-radius: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform var(--t-med) var(--ease-out);
}
.link-arrow:hover::after, .link-arrow:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.link-arrow:hover .icon-arrow, .link-arrow:focus-visible .icon-arrow { transform: translateX(4px); }
.link-inline { font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; text-decoration-color: var(--sky-4); transition: text-decoration-color var(--t-fast); }
.link-inline:hover { text-decoration-color: currentColor; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--ground);
  transition: transform var(--t-med) var(--ease-out);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__bar {
  height: var(--header-h);
  display: flex; align-items: center; gap: 24px;
  padding-inline: calc(var(--m) + 12px);
}
.site-header__logo img { width: 148px; height: auto; }
.site-nav { margin-left: auto; }
.site-nav__list { display: flex; gap: clamp(14px, 1.8vw, 30px); }
.site-nav__link {
  position: relative; display: block; padding: 8px 0;
  font-size: var(--step-small); font-weight: 500; color: var(--ink);
}
.site-nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; border-radius: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: right;
  transition: transform var(--t-med) var(--ease-out);
}
.site-nav__link:hover::after, .site-nav__link:focus-visible::after, .site-nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.site-header__actions { display: flex; align-items: center; gap: 14px; margin-left: clamp(8px, 2vw, 28px); }

.lang-switch { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--sky-1); }
.lang-switch__item {
  min-width: 38px; padding: 6px 10px; border-radius: 999px; text-align: center;
  font-size: var(--step-small); font-weight: 500; color: var(--muted);
  transition: background var(--t-fast), color var(--t-fast);
}
.lang-switch__item:hover { color: var(--ink); }
.lang-switch__item.is-active { background: var(--tile); color: var(--ink); }

.menu-toggle { display: none; align-items: center; gap: 10px; height: 40px; padding: 0 6px 0 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: var(--step-small); font-weight: 500; }
.menu-toggle__icon { position: relative; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); }
.menu-toggle__icon i { position: absolute; left: 8px; right: 8px; height: 2px; border-radius: 2px; background: #fff; transition: transform var(--t-med) var(--ease-out), top var(--t-med) var(--ease-out); }
.menu-toggle__icon i:first-child { top: 11px; }
.menu-toggle__icon i:last-child { top: 16px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon i:first-child { top: 13px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon i:last-child { top: 13px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 59;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: 24px calc(var(--m) + 12px) 32px;
  background: var(--ground);
  overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu__list a { display: block; padding: 10px 0; font-size: var(--step-head); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
.mobile-menu__list a[aria-current="page"] { color: var(--accent); }
.mobile-menu__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.mobile-menu.is-open .mobile-menu__list li { animation: menu-in 480ms var(--ease-out) both; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(2) { animation-delay: 40ms; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(3) { animation-delay: 80ms; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(4) { animation-delay: 120ms; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(5) { animation-delay: 160ms; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(6) { animation-delay: 200ms; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(7) { animation-delay: 240ms; }
@keyframes menu-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

@media (max-width: 1100px) {
  .site-nav, .site-header__actions > .lang-switch { display: none; }
  .site-header__actions { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 420px) {
  .site-header__actions > .btn { display: none; }
}

/* ---------- Shared UI fragments (data-ui) ---------- */
[data-ui] { font-family: var(--font); }
[data-ui] svg { flex: none; }
.browser { display: flex; flex-direction: column; background: var(--tile); border-radius: var(--radius); overflow: hidden; color: var(--ink); }
.browser__bar { flex: none; display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 14px; background: var(--sky-1); }
.browser__dots { display: flex; gap: 6px; }
.browser__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--sky-3); }
.browser__dots i:first-child { background: var(--sky-4); }
.browser__address {
  display: inline-flex; align-items: center; gap: 6px; flex: 1; max-width: 340px; height: 24px; padding: 0 10px;
  border-radius: 999px; background: var(--tile); font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden;
}
.browser__address svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }
.browser__view { position: relative; flex: 1; overflow: hidden; background: #1b1b1b; }
.browser__view img { width: 100%; height: auto; }
.browser__view--crop img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.chip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--sky-1); color: var(--accent-deep); font-style: normal; font-size: 13px; font-weight: 500; }
.chip--ok { background: var(--ok-soft); color: var(--ok); }
.chip--warn { background: var(--warn-soft); color: #8A5A00; }

.ui-status { display: inline-flex; align-items: center; gap: .45em; padding: .35em .7em; border-radius: .4em; background: var(--sky-1); color: var(--ink); font-weight: 500; font-size: 1em; line-height: 1.2; white-space: nowrap; }
.ui-status--ok { background: var(--ok); color: #fff; }
.ui-status--accent { background: var(--accent); color: #fff; }
.ui-status--lg { font-size: 1.6em; }
.ui-pulse { position: relative; width: .45em; height: .45em; border-radius: 50%; background: #fff; }
.ui-pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #fff; animation: pulse 1.8s var(--ease-out) infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(3); opacity: 0; } }
.ui-caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -0.15em; background: var(--accent); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* ---------- Hero ---------- */
.hero { padding-top: 4px; }
.hero__board {
  height: calc(100svh - var(--header-h) - 4px);
  min-height: 700px; max-height: 1040px;
  grid-template-rows: clamp(150px, 14vw, 230px) 60px minmax(0, 1fr) auto;
}
.hero__band { grid-column: 1 / -1; grid-row: 1; background: var(--navy); }
.hero__band img { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; object-fit: cover; will-change: transform; }

.hero__paths { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.hero__path {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 20px; font-weight: 500;
  transition: background var(--t-med) var(--ease-out), color var(--t-med) var(--ease-out);
}
.hero__path .icon-arrow { color: var(--accent); }
.hero__path:hover, .hero__path:focus-visible { background: var(--ink); color: #fff; }
.hero__path:hover .icon-arrow, .hero__path:focus-visible .icon-arrow { color: #fff; transform: translateX(6px); }

.hero__screen { grid-column: 3 / 11; grid-row: 3 / 5; background: var(--sky-2); }
.hero__browser {
  position: absolute; top: 28px; right: 5%;
  width: min(58%, 640px); height: calc(100% + 120px);
}
.hero__browser .browser__view img { will-change: transform; }
.hero__toast {
  position: absolute; top: 18%; right: calc(5% + min(58%, 640px) - 48px);
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: var(--radius);
  background: var(--ink); color: #fff; font-size: 14px; line-height: 1.25; white-space: nowrap;
  z-index: 2;
}
.hero__toast b { display: block; font-weight: 600; }
.hero__toast-dot { width: 10px; height: 10px; border-radius: 50%; background: #3DDC97; flex: none; }
.hero__statement {
  position: absolute; left: 0; bottom: 0; z-index: 3;
  /* a step under --step-title, and just wide enough for it on two lines, so more of the screenshot shows */
  --title-size: clamp(1.75rem, 0.75rem + 1.9vw, 2.75rem);
  width: min(74%, calc(var(--title-size) * 12.2 + 2 * var(--pad)));
  padding: 28px var(--pad) var(--pad);
  background: var(--ground);
  border-top-right-radius: var(--radius);
}
.hero__title {
  font-size: var(--title-size);
  font-weight: 600; line-height: 1.02; letter-spacing: -0.035em;
  max-width: 25ch;
  text-wrap: balance;
}
.hero__title .word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.hero__title .word > span { display: inline-block; }
.hero__lead { margin-top: 16px; max-width: 54ch; color: var(--ink); }

.hero__phone { grid-column: 1 / 3; grid-row: 3; background: var(--navy); }
.phone {
  position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: min(86%, 230px); height: calc(100% + 60px);
  padding: 14px 14px 0; border-radius: 26px 26px 0 0;
  background: var(--tile); color: var(--ink);
}
.phone__top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.phone__top b { color: var(--ink); font-weight: 600; }
.phone__title { margin: 14px 0 8px; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.phone__list li { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 6px; padding: 9px 10px; margin-bottom: 6px; border-radius: 10px; background: var(--sky-1); font-size: 13px; line-height: 1.25; }
.phone__list li span { grid-column: 1 / -1; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone__list li em { font-style: normal; color: var(--muted); }
.phone__list li .chip { height: 20px; padding: 0 7px; }
.phone__tabs { display: flex; justify-content: space-around; margin-top: 10px; }
.phone__tabs i { width: 22px; height: 6px; border-radius: 3px; background: var(--sky-2); }
.phone__tabs i.is-on { background: var(--accent); }

.hero__facts { grid-column: 1 / 3; grid-row: 4; padding: 18px 20px; background: var(--tile); }
.hero__facts li { font-size: var(--step-small); line-height: 1.35; padding: 4px 0; }
.hero__facts li:first-child { font-weight: 600; }

.hero__rail { grid-column: 11 / 13; grid-row: 3 / 5; display: grid; grid-template-rows: repeat(4, minmax(0, 1fr)) minmax(0, 1.35fr); gap: var(--gap); }
.hero__note { padding: 16px 18px; font-size: var(--step-small); font-weight: 500; line-height: 1.3; }
.hero__action span { font-size: var(--step-lead); line-height: 1; letter-spacing: -0.03em; }
.hero__note.tone-1 { background: var(--sky-1); }
.hero__note.tone-2 { background: var(--sky-2); }
.hero__note.tone-3 { background: var(--sky-3); }
.hero__note.tone-4 { background: var(--sky-4); }
.hero__action {
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 18px; background: var(--accent); color: var(--on-accent);
  font-size: var(--step-body); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em;
  transition: background var(--t-med) var(--ease-out);
}
.hero__action .icon-arrow { align-self: flex-end; width: 34px; height: 34px; }
.hero__action:hover, .hero__action:focus-visible { background: var(--accent-deep); }
.hero__action:hover .icon-arrow { transform: translateX(6px); }

/* Hero entrance: tiles are clipped until the script opens them (see app.js). */
.js:not(.no-anim):not(.hero-in) [data-hero-tile] { clip-path: inset(0 0 100% 0 round var(--radius)); }

@media (max-width: 1280px) {
  .hero__screen { grid-column: 3 / 10; }
  .hero__rail { grid-column: 10 / 13; }
  .hero__browser { width: 62%; right: 4%; }
}
@media (max-width: 1024px) {
  .hero__board { height: auto; max-height: none; min-height: 0; grid-template-rows: clamp(110px, min(16vw, 15svh), 170px) auto auto auto; }
  .hero__paths { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__path { min-height: 60px; }
  .hero__screen { grid-column: 1 / -1; grid-row: 3; min-height: 540px; } /* keeps the title on a landscape tablet's first screen */
  .hero__phone { grid-column: 1 / 5; grid-row: 4; min-height: 340px; }
  .hero__facts { grid-column: 5 / 9; grid-row: 4; }
  .hero__rail { grid-column: 9 / 13; grid-row: 4; }
}
@media (max-width: 760px) {
  .hero__board { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
  .hero__band { grid-column: 1 / -1; grid-row: auto; height: 32vw; order: 1; }
  .hero__screen { grid-column: 1 / -1; grid-row: auto; order: 2; min-height: 0; display: flex; flex-direction: column; }
  .hero__statement { position: relative; width: auto; order: 1; padding: 22px 18px 24px; border-radius: 0; background: var(--tile); }
  .hero__title { font-size: 7.4vw; max-width: none; }
  .hero__lead { margin-top: 12px; font-size: 1rem; }
  .hero__browser { position: relative; order: 2; top: auto; right: auto; width: auto; height: 78vw; margin: 18px 18px -40px; }
  .hero__toast { top: auto; bottom: 18px; right: auto; left: 12px; font-size: 13px; }
  .hero__rail { grid-column: 1 / -1; grid-row: auto; order: 3; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
  .hero__note { min-height: 76px; }
  .hero__action { grid-column: 1 / -1; min-height: 92px; flex-direction: row; align-items: center; }
  .hero__action .icon-arrow { align-self: center; }
  .hero__paths { grid-column: 1 / -1; grid-row: auto; order: 4; }
  .hero__path { min-height: 64px; padding: 12px 14px; font-size: var(--step-small); align-items: flex-end; }
  .hero__phone { grid-column: 1; grid-row: auto; order: 5; min-height: 300px; }
  .hero__facts { grid-column: 2; grid-row: auto; order: 5; padding: 14px; }
}

/* ---------- Clients ---------- */
/* On desktop the heading shares its row with two logos; it takes their height (3:2 tiles) instead of a fixed minimum,
   so the first row lines up with the rows of logos below it. */
.clients__head { grid-column: span 6; display: flex; align-items: flex-start; padding: var(--pad); background: var(--accent); color: var(--on-accent); }
.clients { margin-top: clamp(40px, 5vw, 80px); }
.clients__title { font-size: var(--step-title); font-weight: 600; line-height: 1.02; letter-spacing: -0.035em; max-width: 14ch; }
.clients__logo { grid-column: span 3; display: grid; place-items: center; aspect-ratio: 3 / 2; background: var(--tile); }
.clients__logo img {
  width: 62%; height: 70%; object-fit: contain;
  mix-blend-mode: multiply; filter: grayscale(1) contrast(1.05); opacity: .78;
  transition: filter var(--t-med) var(--ease-out), opacity var(--t-med) var(--ease-out), transform 600ms var(--ease-out);
}
.clients__logo:hover img { filter: none; opacity: 1; transform: scale(1.04); }
.clients__more { grid-column: span var(--span-lg, 9); display: flex; flex-direction: column; justify-content: space-between; gap: 20px; padding: var(--pad); background: var(--sky-1); }
.clients__more p { font-size: var(--step-sub); font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; max-width: 26ch; }
.clients__more .link-arrow { align-self: flex-start; color: var(--accent-deep); }
@media (max-width: 1024px) {
  .clients__head { grid-column: 1 / -1; min-height: 150px; }
  .clients__logo { grid-column: span 4; }
  .clients__more { grid-column: span var(--span-md, 8); }
}
@media (max-width: 760px) {
  .clients__board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clients__head { min-height: 120px; }
  .clients__logo { grid-column: span 1; }
  .clients__more { grid-column: span var(--span-sm, 1); padding: 16px; }
  .clients__more p { font-size: 1.0625rem; }
}

/* ---------- Services ---------- */
.services__board { grid-auto-rows: 104px; }
.services__head { grid-column: 1 / 7; grid-row: 1 / 4; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: var(--pad); background: transparent; }
.services__title { font-size: var(--step-head); font-weight: 600; line-height: .96; letter-spacing: -0.03em; max-width: 13ch; }
.services__lead { max-width: 46ch; }
.services__head .link-arrow { color: var(--accent-deep); margin-top: auto; }

.svc { display: flex; flex-direction: column; justify-content: flex-end; padding: var(--pad); transition: background var(--t-med) var(--ease-out); }
.svc__text { position: relative; z-index: 1; max-width: 34ch; }
.svc__text h3 { font-size: var(--step-body); font-weight: 600; line-height: 1.15; letter-spacing: -0.015em; }
.svc__text h3 a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: transparent; transition: text-decoration-color var(--t-med) var(--ease-out); }
.svc:hover .svc__text h3 a, .svc__text h3 a:focus-visible { text-decoration-color: currentColor; }
.svc__text p { margin-top: 4px; font-size: var(--step-small); line-height: 1.4; }
.tone-navy .svc__text p { color: var(--on-navy-muted); }
.svc__links { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 2px; margin-top: 12px; }
.svc__links a { font-size: var(--step-small); font-weight: 500; display: inline-flex; gap: .4em; }
.svc__links a::before { content: "→"; color: var(--accent); transition: transform var(--t-fast) var(--ease-out); }
.svc__links a:hover::before { transform: translateX(3px); }
.svc__links a:hover { color: var(--accent-deep); }
.svc__links--inline { flex-direction: row; flex-wrap: wrap; gap: 2px 14px; margin-top: 8px; }
.svc__ui { position: absolute; z-index: 0; pointer-events: none; will-change: transform; }

/* Placement on the 12-column board, 104px rows. */
.svc--seo { grid-column: 7 / 10; grid-row: 1 / 4; }
.svc--ads { grid-column: 10 / 13; grid-row: 1 / 4; }
.svc--web { grid-column: 1 / 7; grid-row: 4 / 8; }
.svc--app { grid-column: 7 / 10; grid-row: 4 / 8; }
.svc--social { grid-column: 10 / 13; grid-row: 4 / 6; }
.svc--brand { grid-column: 10 / 13; grid-row: 6 / 8; }
.svc--erp { grid-column: 1 / 7; grid-row: 8 / 10; }
.svc--host { grid-column: 7 / 10; grid-row: 8 / 10; }
.svc--care { grid-column: 10 / 13; grid-row: 8 / 10; }
.svc--check { grid-column: 1 / 7; grid-row: 10 / 12; }
.svc--content { grid-column: 7 / 10; grid-row: 10 / 12; }
.svc--maps { grid-column: 10 / 13; grid-row: 10 / 12; }

/* SEO: the search box, enlarged and cut by the right edge. */
.svc--seo .svc__ui { top: 22px; left: var(--pad); right: var(--pad); font-size: 20px; display: grid; gap: 10px; }
.ui-result { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 10px; background: var(--tile); font-size: 14px; line-height: 1.3; transform: translateY(var(--ry, 0)); transition: transform 600ms var(--ease-out); }
.ui-result__url { color: var(--ok); }
.ui-result__title { color: var(--accent-deep); font-size: 16px; font-weight: 600; }
.ui-result__desc { color: var(--muted); }
.svc--seo.is-live .ui-result { --ry: -4px; }
.ui-search { display: flex; align-items: center; gap: .5em; height: 2.3em; padding: 0 1em 0 .8em; border-radius: 999px; background: var(--tile); white-space: nowrap; font-weight: 500; }
.ui-search svg { width: 1em; height: 1em; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; }

/* Ads: budget slider. */
.svc--ads .svc__ui { top: 22px; left: var(--pad); right: var(--pad); font-size: 16px; }
.ui-channels { display: grid; gap: 6px; margin-top: 18px; }
.ui-channels li { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px 8px 12px; border-radius: 10px; background: var(--sky-1); font-size: 14px; font-weight: 500; }
.ui-channels .ui-toggle { font-size: 12px; background: var(--sky-3); }
.ui-channels .ui-toggle.is-on { background: var(--accent); }
.svc--ads.is-live .ui-channels li:last-child .ui-toggle { background: var(--accent); }
.svc--ads.is-live .ui-channels li:last-child .ui-toggle > span { transform: translateX(1.3em); }
.ui-slider { display: grid; grid-template-columns: 1fr; gap: 4px; }
.ui-slider__label { font-size: 14px; color: var(--muted); }
.ui-slider__value { font-size: 2em; font-weight: 600; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.ui-slider__track { position: relative; height: 10px; margin-top: 14px; border-radius: 5px; background: var(--sky-2); }
.ui-slider__fill { position: absolute; left: 0; top: 0; bottom: 0; width: var(--v, 42%); border-radius: inherit; background: var(--accent); transition: width 700ms var(--ease-out); }
.ui-slider__thumb { position: absolute; top: 50%; left: var(--v, 42%); width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: var(--tile); border: 7px solid var(--accent); transition: left 700ms var(--ease-out); }
.svc--ads.is-live .ui-slider { --v: 71%; }
.ui-notif--2 { opacity: .9; transform: translateY(var(--ny2, 0)) scale(.97); transform-origin: top; }
.svc--app.is-live .ui-notif--2 { --ny2: -6px; opacity: 1; }

/* Website: a shop window. */
.svc--web .svc__ui { top: 28px; right: 22px; width: 54%; min-width: 320px; font-size: 17px; }
.svc--web .svc__text { max-width: 40%; }
.ui-shop { position: relative; border-radius: var(--radius); background: var(--tile); }
.ui-shop__bar { display: flex; align-items: center; gap: 8px; height: 2.4em; padding: 0 1em; border-radius: var(--radius) var(--radius) 0 0; background: var(--sky-1); font-size: .85em; color: var(--muted); }
.ui-shop__bar svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; }
.ui-shop__body { display: grid; grid-template-columns: 1fr 1.1fr; gap: 1em; padding: 1em; }
.ui-shop__thumb, .mock__art, .mock__thumb {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill='%2392C9FF'%3E%3Cellipse cx='20' cy='9' rx='5' ry='8'/%3E%3Cellipse cx='20' cy='31' rx='5' ry='8'/%3E%3Cellipse cx='9' cy='20' rx='8' ry='5'/%3E%3Cellipse cx='31' cy='20' rx='8' ry='5'/%3E%3C/g%3E%3Ccircle cx='20' cy='20' r='2.2' fill='%23F3B23C'/%3E%3C/svg%3E");
}
.ui-shop__thumb {
  aspect-ratio: 1; border-radius: 6px; background-color: var(--navy);
  background-size: 32%;
  transition: background-size 900ms var(--ease-out);
}
.svc--web.is-live .ui-shop__thumb { background-size: 26%; }
.ui-shop__info { display: flex; flex-direction: column; gap: .3em; }
.ui-shop__info span:first-child { font-weight: 500; }
.ui-shop__info b { font-size: 1.5em; letter-spacing: -0.02em; }
.ui-btn { margin-top: auto; display: inline-flex; justify-content: center; padding: .7em 1em; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 500; font-size: .9em; white-space: nowrap; transition: background var(--t-med); }
.svc--web.is-live .ui-btn { background: var(--ink); }
.ui-cart { position: absolute; top: -.7em; left: -.7em; display: grid; place-items: center; width: 2.8em; height: 2.8em; border-radius: 50%; background: var(--ink); color: #fff; }
.ui-cart svg { width: 1.3em; height: 1.3em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.ui-cart span { position: absolute; top: -.25em; right: -.25em; display: grid; place-items: center; width: 1.5em; height: 1.5em; border-radius: 50%; background: var(--warn); color: var(--ink); font-style: normal; font-size: .75em; font-weight: 600; transition: transform 400ms var(--ease-out); }
.svc--web.is-live .ui-cart span { animation: bump 520ms var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.45); } }

/* Mobile app: notification and toggle on navy. */
.svc--app .svc__ui { top: 26px; left: var(--pad); right: -40px; font-size: 16px; display: grid; gap: 10px; }
.ui-notif { display: flex; align-items: center; gap: .8em; padding: .9em 1em; border-radius: 14px; background: var(--tile); color: var(--ink); transform: translateY(var(--ny, 0)); transition: transform 600ms var(--ease-out); }
.ui-notif__icon { display: grid; place-items: center; width: 2.4em; height: 2.4em; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 600; flex: none; }
.ui-notif__body { display: flex; flex-direction: column; line-height: 1.25; font-size: .95em; }
.ui-notif__body b { font-weight: 600; }
.ui-toggle-row { display: flex; align-items: center; justify-content: space-between; padding: .9em 1em; border-radius: 14px; background: var(--navy-3); color: #fff; }
.ui-toggle { position: relative; width: 3.1em; height: 1.8em; border-radius: 999px; background: var(--navy); transition: background var(--t-med); }
.ui-toggle > span { position: absolute; top: .2em; left: .2em; width: 1.4em; height: 1.4em; border-radius: 50%; background: #fff; transition: transform 380ms var(--ease-out); }
.ui-toggle.is-on { background: #3DDC97; }
.ui-toggle.is-on > span { transform: translateX(1.3em); }
.svc--app.is-live .ui-notif { --ny: -6px; }
.svc--app.is-live .ui-toggle { background: var(--navy); }
.svc--app.is-live .ui-toggle > span { transform: translateX(0); }

/* Social: initials discs. */
.svc--social .svc__ui { top: 22px; right: 22px; font-size: 16px; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.ui-discs { display: flex; }
.ui-discs span { display: grid; place-items: center; width: 3.2em; height: 3.2em; margin-left: -.8em; border-radius: 50%; border: 3px solid var(--tile); font-style: normal; font-weight: 600; transition: transform 420ms var(--ease-out); }
.ui-discs span:nth-child(1) { background: var(--sky-3); }
.ui-discs span:nth-child(2) { background: var(--ink); color: #fff; }
.ui-discs span:nth-child(3) { background: var(--accent); color: #fff; }
.svc--social.is-live .ui-discs span:nth-child(1) { transform: translateX(-10px); }
.svc--social.is-live .ui-discs span:nth-child(3) { transform: translateX(10px); }

/* Brand: key caps and swatches. */
.svc--brand .svc__ui { top: 20px; right: 20px; font-size: 16px; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.ui-keys { display: flex; gap: 8px; }
.ui-keys kbd { display: grid; place-items: center; width: 2.9em; height: 2.9em; border-radius: 10px; background: var(--tile); border-bottom: 5px solid var(--sky-3); font-size: 1.4em; font-weight: 600; transition: transform var(--t-fast) var(--ease-out), border-width var(--t-fast); }
.svc--brand.is-live .ui-keys kbd:first-child { transform: translateY(3px); border-bottom-width: 2px; }
.ui-swatches { display: flex; gap: 6px; }
.ui-swatches span { width: 1.6em; height: 1.6em; border-radius: 50%; }
.ui-swatches span:nth-child(1) { background: var(--ink); }
.ui-swatches span:nth-child(2) { background: var(--accent); }
.ui-swatches span:nth-child(3) { background: var(--sky-3); }

/* ERP: list of records. */
.svc--erp .svc__ui { top: 22px; right: 22px; width: 48%; font-size: 15px; }
.svc--erp .svc__text { max-width: 44%; }
.ui-rows { display: grid; gap: 6px; }
.ui-rows li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: .7em .9em; border-radius: 8px; background: var(--sky-1); transition: transform 500ms var(--ease-out); }
.ui-rows li span { font-weight: 500; white-space: nowrap; }
.svc--erp.is-live .ui-rows li:nth-child(2) { transform: translateX(-12px); }

/* Hosting. */
.svc--host .svc__ui { top: 22px; left: var(--pad); font-size: 15px; display: flex; align-items: center; gap: 8px; }

/* Maintenance. */
.svc--care .svc__ui { top: 22px; left: var(--pad); right: -40px; font-size: 16px; }
.ui-check { display: flex; align-items: center; gap: .8em; padding: .8em 1em; border-radius: 12px; background: var(--tile); }
.ui-check svg { width: 2em; height: 2em; padding: .35em; border-radius: 50%; background: var(--ok); fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 0; }
.svc--care.is-live .ui-check svg path { animation: draw 700ms var(--ease-out); }
@keyframes draw { from { stroke-dashoffset: 24; } }
.ui-check span { display: flex; flex-direction: column; line-height: 1.25; color: var(--muted); font-size: .9em; }
.ui-check b { color: var(--ink); font-size: 1.1em; }

/* Health check form. */
.svc--check { justify-content: flex-end; gap: 16px; }
.svc--check .svc__text { max-width: none; }
.svc--check .svc__text h3 { font-size: var(--step-sub); letter-spacing: -0.03em; }
.svc--check .svc__text p { color: rgba(255, 255, 255, .92); font-size: var(--step-small); }
.check-form { display: flex; gap: 8px; padding: 6px; border-radius: 999px; background: rgba(255, 255, 255, .16); max-width: 560px; }
.check-form input { flex: 1; min-width: 0; height: 48px; padding: 0 20px; border: 0; border-radius: 999px; background: #fff; color: var(--ink); font-size: var(--step-body); }
.check-form input::placeholder { color: #6B7594; }
.check-form input:focus-visible { outline: 3px solid var(--ink); outline-offset: 0; }
.check-form.is-invalid { animation: shake 380ms var(--ease-out); }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* Content. */
.svc--content .svc__ui { top: 22px; left: var(--pad); right: -60px; font-size: 18px; }
.ui-doc { display: flex; flex-direction: column; gap: 6px; padding: .8em 1em; border-radius: 10px; background: var(--sky-1); }
.ui-doc__title { font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.ui-doc__meta { font-size: 14px; color: var(--muted); }

/* Google Business Profile. */
.svc--maps .svc__ui { top: 22px; right: 22px; font-size: 16px; }
.ui-pin { display: flex; align-items: center; gap: .7em; padding: .7em 1em .7em .7em; border-radius: 999px; background: var(--tile); }
.ui-pin svg { width: 2.2em; height: 2.2em; padding: .35em; border-radius: 50%; background: #E5484D; fill: #E5484D; stroke: #fff; stroke-width: 1.6; transition: transform 500ms var(--ease-out); }
.ui-pin svg circle { fill: #fff; stroke: none; }
.ui-pin span { display: flex; flex-direction: column; line-height: 1.2; font-size: .9em; color: var(--ok); }
.ui-pin b { color: var(--ink); font-size: 1.05em; }
.svc--maps.is-live .ui-pin svg { transform: translateY(-4px); }

@media (max-width: 1280px) {
  .svc--web .svc__ui { width: 52%; }
  .svc--web .svc__text { max-width: 44%; }
}
@media (max-width: 1024px) {
  .services__board { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 96px; }
  .services__head { grid-column: 1 / -1; grid-row: auto / span 2; }
  .svc--web, .svc--erp, .svc--check { grid-column: 1 / -1; }
  .svc--check { flex-direction: column; align-items: stretch; justify-content: center; }
  .svc--check .svc__text { flex: none; }
  .svc--check .check-form { flex: none; }
  .svc--web { grid-row: auto / span 4; }
  .svc--erp, .svc--check { grid-row: auto / span 2; }
  .svc--social, .svc--brand, .svc--host, .svc--care, .svc--content, .svc--maps { grid-column: span 3; grid-row: auto / span 2; }
  .svc--seo, .svc--ads { grid-column: span 3; grid-row: auto / span 3; }
  .svc--app { grid-column: span 3; grid-row: auto / span 4; }
  .svc--social, .svc--brand { grid-row: auto / span 2; }
}
@media (max-width: 760px) {
  .services__board { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 28vw; grid-auto-flow: row dense; }
  .services__head { grid-column: 1 / -1; grid-row: auto / span 3; padding: 4px 10px 12px; }
  .services__title { font-size: 10vw; }
  .svc { padding: 14px; }
  .svc__text p { font-size: 0.875rem; }
  .svc__text h3 { font-size: 1.0625rem; }
  .svc--web { grid-column: 1 / -1; grid-row: auto / span 4; }
  .svc--web .svc__ui { top: 16px; right: -60px; width: 300px; min-width: 0; font-size: 14px; }
  .svc--web .svc__text { max-width: 50%; }
  .svc--erp, .svc--check { grid-column: 1 / -1; grid-row: auto / span 3; }
  .svc--erp .svc__ui { width: auto; left: 14px; right: 14px; top: 14px; font-size: 13px; }
  .svc--erp .svc__text { max-width: 54%; }
  .svc--app { grid-column: span 1; grid-row: auto / span 4; }
  .svc--app .svc__ui { top: 16px; left: 14px; right: -60px; font-size: 13px; }
  .svc--seo, .svc--ads, .svc--social, .svc--brand, .svc--host, .svc--care, .svc--content, .svc--maps { grid-column: span 1; grid-row: auto / span 3; }
  .svc--seo .svc__ui { top: 14px; left: 14px; right: 14px; font-size: 14px; }
  .ui-result { font-size: 13px; padding: 10px; }
  .ui-result__title { font-size: 14px; }
  .svc--ads .svc__ui { top: 14px; left: 14px; right: 14px; font-size: 13px; }
  .ui-channels li { font-size: 13px; padding: 6px 8px; }
  .svc--social .svc__ui, .svc--brand .svc__ui, .svc--maps .svc__ui { top: 14px; right: 14px; font-size: 12px; }
  .svc--host .svc__ui, .svc--care .svc__ui, .svc--content .svc__ui { top: 14px; left: 14px; font-size: 13px; }
  .svc--check { flex-direction: column; align-items: stretch; justify-content: center; padding: 18px; }
  .svc--check .svc__text { flex: none; max-width: none; }
  .svc--check .check-form { flex: none; }
  .check-form { flex-direction: column; border-radius: 18px; }
  .check-form input { flex: none; }
  .check-form .btn { width: 100%; }
  .svc__links--inline { flex-direction: column; }
}

/* ---------- Process ---------- */
.process__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 10px; align-items: end; padding-inline: var(--m); }
.process__title { grid-column: 1 / 6; grid-row: 1; align-self: start; font-size: var(--step-head); font-weight: 600; line-height: .96; letter-spacing: -0.03em; max-width: 12ch; padding-left: 14px; }
.process__stage { grid-row: 1; }
.process__stage--1 { grid-column: 1 / 3; }
.process__stage--2 { grid-column: 3 / 6; }
.process__stage--3 { grid-column: 6 / 9; }
.process__stage--4 { grid-column: 9 / 13; }
.process__tile { display: grid; place-items: center; padding: 18px; }
.process__stage--1 .process__tile { height: max(28vh, 220px); }
.process__stage--2 .process__tile { height: max(38vh, 290px); }
.process__stage--3 .process__tile { height: max(50vh, 380px); }
.process__stage--4 .process__tile { height: max(64vh, 480px); }
.process__stage h3 { margin-top: 16px; padding-inline: 14px 4px; font-size: var(--step-body); font-weight: 600; letter-spacing: -0.015em; }
.process__stage p { margin-top: 4px; padding-inline: 14px 4px; max-width: 36ch; color: var(--muted); font-size: var(--step-small); min-height: 6em; }

.ui-brief { display: flex; flex-direction: column; gap: 8px; width: 100%; padding: 14px; border-radius: 8px; background: var(--tile); font-size: 13px; line-height: 1.3; transform: rotate(-2deg); }
.ui-brief b { font-size: 15px; }
.ui-brief span { padding-top: 6px; color: var(--muted); }
.ui-brief span::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 2px; background: var(--sky-3); }

/* The sample site (home/partials/mock-site) and its wireframe, sized in em so each stage scales it. */
.process__browser { width: 88%; }
.process__stage--2 .process__browser { font-size: 11px; }
.process__stage--3 .process__browser { width: 92%; font-size: 12px; }
.process__stage--4 .process__tile { place-items: start center; padding-top: 28px; }
.process__live { width: 92%; font-size: 14px; }
.mock { display: grid; gap: .9em; padding: .9em; background: var(--tile); color: var(--ink); line-height: 1.2; }
.mock__nav { display: flex; align-items: center; gap: 1em; font-size: .85em; color: var(--muted); white-space: nowrap; }
.mock__nav b { margin-right: auto; color: var(--ink); font-size: 1.15em; letter-spacing: -0.02em; }
.mock__cart { padding: .35em .75em; border-radius: 999px; background: var(--ink); color: #fff; }
.mock__hero { display: grid; grid-template-columns: 1.15fr 1fr; min-height: 8.5em; border-radius: .5em; overflow: hidden; background: var(--navy); color: #fff; }
.mock__copy { display: flex; flex-direction: column; justify-content: center; gap: .45em; padding: 1em; }
.mock__copy b { font-size: 1.35em; line-height: 1.05; letter-spacing: -0.025em; }
.mock__copy span { font-size: .8em; color: var(--on-navy-muted); }
.mock__copy .mock__btn { align-self: flex-start; margin-top: .3em; padding: .5em .9em; border-radius: 999px; background: var(--warn); color: var(--ink); font-weight: 600; }
.mock__art { background-color: var(--navy-3); background-size: 3.4em; }
.mock__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6em; }
.mock__card { display: flex; flex-direction: column; gap: .25em; font-size: .85em; }
.mock__thumb { aspect-ratio: 4 / 3; margin-bottom: .2em; border-radius: .4em; background-color: var(--sky-2); background-size: 2.6em; }
.mock__card:nth-child(2) .mock__thumb { background-color: var(--navy); }
.mock__card:nth-child(3) .mock__thumb { background-color: var(--sky-4); }
.mock__card em { font-style: normal; color: var(--muted); }
.mock--wire .mock__hero { background: var(--sky-1); }
.mock--wire .mock__art, .mock--wire .mock__thumb { background-image: none; background-color: var(--sky-2) !important; }
.wire { display: block; height: .7em; border-radius: .25em; background: var(--sky-2); }
.wire--logo { width: 5em; height: 1em; margin-right: auto; background: var(--sky-3); }
.wire--link { width: 3em; }
.wire--pill { width: 5.5em; height: 1.6em; border-radius: 999px; background: var(--sky-3); }
.wire--title { width: 90%; height: 1.1em; background: var(--sky-3); }
.wire--short { width: 60%; }
.wire--text { width: 70%; }
.mock__card .wire--text { width: 80%; margin-top: .3em; }
.process__checks { position: absolute; left: 18px; bottom: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.process__checks li { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px 7px 8px; border-radius: 999px; background: var(--tile); color: var(--ink); font-size: 14px; font-weight: 500; }
.process__checks svg { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--ok); fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 1024px) {
  .process__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 10px; align-items: end; }
  .process__title { grid-column: 1 / -1; }
  .process__stage { grid-row: auto; grid-column: auto !important; }
  .process__stage--1 .process__tile { height: 34vw; }
  .process__stage--2 .process__tile { height: 42vw; }
  .process__stage--3 .process__tile { height: 50vw; }
  .process__stage--4 .process__tile { height: 58vw; }
}
@media (max-width: 760px) {
  .process__grid { grid-template-columns: 1fr; gap: 28px; }
  .process__title { font-size: 9vw; }
  .process__stage--1 .process__tile { height: 46vw; }
  .process__stage--2 .process__tile { height: 80vw; }
  .process__stage--3 .process__tile { height: 92vw; }
  .process__stage--4 .process__tile { height: auto; display: flex; flex-direction: column; align-items: center; gap: 14px; padding-bottom: 18px; }
  .process__checks { position: static; align-self: flex-start; }
  .process__stage--3 .process__browser { font-size: 12.5px; }
  .process__live { font-size: 13px; }
  .process__stage p { min-height: 0; }
  .ui-brief { width: 80%; }
}

/* ---------- Marquee ---------- */
.marquee { margin-top: var(--section); overflow: hidden; padding-block: 8px; }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__item {
  flex: none; padding-right: .6em;
  font-size: var(--step-monument); font-weight: 600; letter-spacing: -0.035em; line-height: 1;
  white-space: nowrap; color: var(--ink);
}
.marquee__item::after { content: "."; color: var(--accent); }

/* ---------- Stats ---------- */
.stats__board { align-items: start; }
.stats__tile { display: flex; flex-direction: column; justify-content: space-between; padding: 28px; }
.stats__tile--a { grid-column: 1 / 7; grid-row: 1; height: max(70vh, 500px); }
.stats__tile--b { grid-column: 7 / 10; grid-row: 1; height: max(44vh, 320px); margin-top: max(14vh, 120px); }
.stats__tile--c { grid-column: 10 / 13; grid-row: 1; height: max(34vh, 250px); margin-top: max(26vh, 200px); }
.stats__title { grid-column: 7 / 13; grid-row: 1; padding: 4px 4px 0; font-size: var(--step-sub); font-weight: 600; line-height: 1.05; letter-spacing: -0.03em; }
.stats__figure { font-size: var(--step-head); font-weight: 600; line-height: .9; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.stats__tile--a .stats__figure { font-size: var(--step-monument); }
.stats__caption { max-width: 30ch; font-size: var(--step-body); line-height: 1.4; }
.stats__tile--a .stats__caption { font-size: var(--step-sub); line-height: 1.15; letter-spacing: -0.02em; max-width: 22ch; }
.stats__tile--b .stats__caption { color: var(--on-navy-muted); }

@media (max-width: 760px) {
  .stats__board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats__title { grid-column: 1 / -1; grid-row: 1; font-size: 1.625rem; padding: 0 10px 6px; }
  .stats__tile { padding: 18px; }
  .stats__tile--a { grid-column: 1 / -1; grid-row: 2; height: auto; min-height: 92vw; }
  .stats__tile--b { grid-column: 1; grid-row: 3; height: 64vw; margin-top: 0; }
  .stats__tile--c { grid-column: 2; grid-row: 3; height: 64vw; margin-top: 32px; }
  .stats__figure { font-size: 11vw; }
  .stats__tile--a .stats__figure { font-size: 22vw; }
  .stats__caption { font-size: 0.9375rem; }
}

/* ---------- Promises (rows board) ---------- */
.promises { padding-inline: var(--m); }
.promises__board { padding: clamp(20px, 2.4vw, 40px) 12px 12px; }
.promises__title { padding: 0 clamp(8px, 1.2vw, 16px) clamp(24px, 3vw, 48px); font-size: var(--step-head); font-weight: 600; line-height: .96; letter-spacing: -0.03em; }
.rows { display: grid; gap: 4px; }
.rows__item { border-radius: 6px; background: var(--navy-2); transition: background var(--t-med) var(--ease-out); }
.rows__item:hover { background: var(--navy-3); }
.rows__head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; gap: 8px;
  width: 100%; min-height: 76px; padding: 12px clamp(14px, 1.4vw, 22px);
}
.rows__name { grid-column: 1 / 7; font-size: var(--step-sub); font-weight: 500; line-height: 1.1; letter-spacing: -0.025em; }
.rows__fact { grid-column: 7 / 11; font-size: var(--step-small); color: var(--on-navy-muted); }
.rows__status { grid-column: 11 / 13; justify-self: end; padding: 6px 12px; border-radius: 6px; background: var(--sky-3); color: var(--ink); font-size: var(--step-small); font-weight: 600; white-space: nowrap; transition: background var(--t-med), color var(--t-med); }
.rows__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 520ms var(--ease-out); }
.rows__panel > div { overflow: hidden; }
.rows__panel p { max-width: 62ch; padding: 0 clamp(14px, 1.4vw, 22px) 26px; font-size: var(--step-body); line-height: 1.5; color: #fff; }
.rows__item.is-open { background: var(--accent); }
.rows__item.is-open .rows__panel { grid-template-rows: 1fr; }
.rows__item.is-open .rows__fact { color: #fff; }
.rows__item.is-open .rows__status { background: #fff; color: var(--accent-deep); }
.rows__item.is-open .rows__head { min-height: 96px; }
.no-js-rows .rows__panel { grid-template-rows: 1fr; }

@media (max-width: 760px) {
  .promises__board { padding: 20px 8px 8px; }
  .promises__title { font-size: 9vw; padding: 0 8px 20px; }
  .rows__head { grid-template-columns: 1fr auto; min-height: 64px; padding: 12px; }
  .rows__name { grid-column: 1; font-size: 1.125rem; }
  .rows__fact { display: none; }
  .rows__status { grid-column: 2; font-size: 0.8125rem; padding: 5px 8px; }
  .rows__item.is-open .rows__fact { display: block; grid-column: 1 / -1; grid-row: 2; font-size: 0.9375rem; }
  .rows__panel p { padding: 0 12px 18px; font-size: 1rem; }
}

/* ---------- Products (compact, as portfolio pieces) ---------- */
.products__head { grid-column: 1 / 4; display: flex; flex-direction: column; gap: 14px; padding: var(--pad) 8px var(--pad) 14px; }
.products__title { font-size: var(--step-title); font-weight: 600; line-height: 1; letter-spacing: -0.035em; max-width: 9ch; }
.products__head p { max-width: 34ch; }
.product { grid-column: span 3; display: flex; flex-direction: column; transition: background var(--t-med) var(--ease-out); }
.product__pic { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.product__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.product__text { display: flex; flex-direction: column; gap: 2px; padding: 18px 20px 0; }
.product__name { font-size: var(--step-body); font-weight: 600; letter-spacing: -0.015em; }
.product__text > span { font-size: var(--step-small); color: var(--muted); }
.product__go { display: inline-flex; align-items: center; gap: .4em; margin-top: auto; padding: 14px 20px 18px; font-size: var(--step-small); font-weight: 500; color: var(--accent-deep); }
.product:hover, .product:focus-visible { background: var(--sky-1); }
.product:hover .product__pic img, .product:focus-visible .product__pic img { transform: scale(1.05); }
.product:hover .icon-arrow, .product:focus-visible .icon-arrow { transform: translate(3px, -3px); }

@media (max-width: 1024px) {
  .products__head { grid-column: 1 / -1; padding: 0 8px 8px 14px; }
  .products__title { max-width: none; }
  .product { grid-column: span 4; }
}
@media (max-width: 760px) {
  .products__board { grid-template-columns: 1fr; }
  .products__head { grid-column: 1; padding: 0 10px 10px; }
  .product { grid-column: 1; display: grid; grid-template-columns: 42% 1fr; grid-template-rows: auto 1fr; }
  .product__pic { grid-row: 1 / 3; aspect-ratio: auto; height: 100%; min-height: 104px; }
  .product__text { padding: 14px 14px 0; }
  .product__go { padding: 6px 14px 14px; }
  /* On the products page the tiles are the page, so each keeps its picture full width. */
  .page-products .product { display: flex; }
  .page-products .product__pic { aspect-ratio: 16 / 9; height: auto; min-height: 0; }
  .page-products .product__text { padding: 16px 18px 0; }
  .page-products .product__go { padding: 10px 18px 18px; }
}

/* ---------- FAQ ---------- */
.faq { padding-inline: var(--m); }
.faq__board { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; padding: clamp(24px, 3vw, 48px); overflow: visible; }
.faq__list { grid-column: 1 / 6; }
.faq__title { margin-bottom: 24px; font-size: var(--step-sub); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
.faq__q {
  position: relative; display: block; width: 100%;
  padding: 9px 0 9px 22px;
  font-size: var(--step-body); line-height: 1.35; color: var(--muted);
  transition: color var(--t-fast);
}
.faq__q::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 8px; height: 8px; border-radius: 50%; background: var(--sky-3); transition: background var(--t-fast), transform var(--t-med) var(--ease-out); }
.faq__q:hover { color: var(--ink); }
.faq__item.is-active .faq__q { color: var(--ink); font-weight: 500; }
.faq__item.is-active .faq__q::before { background: var(--accent); transform: scale(1.4); }
.faq__a p { padding: 2px 0 14px 22px; font-size: var(--step-body); max-width: 60ch; }
.faq__pane { grid-column: 7 / 13; display: none; }
.faq__pane-text { position: sticky; top: 120px; max-width: 36ch; font-size: var(--step-lead); line-height: 1.3; letter-spacing: -0.015em; transition: opacity 150ms linear; }
.faq__pane-text.is-swapping { opacity: 0; }

@media (min-width: 901px) {
  .js .faq__a { display: none; }
  .js .faq__pane { display: block; }
}
@media (max-width: 900px) {
  .faq__list { grid-column: 1 / -1; }
  .faq__board { padding: 22px 16px; }
  .js .faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 420ms var(--ease-out); }
  .js .faq__a > p { overflow: hidden; min-height: 0; padding-top: 0; padding-bottom: 0; transition: padding-bottom 420ms var(--ease-out); }
  .js .faq__item.is-active .faq__a > p { padding-bottom: 14px; }
  .js .faq__item.is-active .faq__a { grid-template-rows: 1fr; }
  .faq__a p { font-size: 1.1875rem; }
}

/* ---------- CTA ---------- */
.cta__row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.cta__flank { min-height: 460px; }
.cta__flank:first-child { grid-column: 1 / 3; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.cta__flank:last-child { grid-column: 11 / 13; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.cta__flank--photo img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; object-position: 30% center; }
.cta__main { grid-column: 3 / 11; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 18px; padding: clamp(28px, 3vw, 48px); }
.cta__title { font-size: var(--step-head); font-weight: 600; line-height: .96; letter-spacing: -0.03em; }
.cta__lead { max-width: 54ch; }
.picker { display: grid; gap: 12px; width: 100%; }
.picker__legend { padding: 0; margin-bottom: 10px; font-weight: 600; }
.picker__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .16); color: #fff; font-size: var(--step-small); font-weight: 500;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast) var(--ease-out);
}
.chip-btn::before { content: ""; width: 0; height: 14px; overflow: hidden; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D63ED' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; transition: width var(--t-med) var(--ease-out); }
.chip-btn:hover { background: rgba(255, 255, 255, .28); }
.chip-btn:active { transform: scale(.96); }
.chip-btn[aria-pressed="true"] { background: #fff; color: var(--accent-deep); }
.chip-btn[aria-pressed="true"]::before { width: 14px; }
.picker__result { min-height: 3em; font-size: var(--step-body); line-height: 1.45; }
.picker__result b { font-weight: 600; }
.picker__result.is-swapping { animation: swap-in 420ms var(--ease-out); }
@keyframes swap-in { from { opacity: 0; transform: translateY(8px); } }
.cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.cta__mail { font-size: var(--step-small); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .5); }
.cta__mail:hover { text-decoration-color: #fff; }

@media (max-width: 1024px) {
  .cta__flank:first-child { grid-column: 1 / 2; }
  .cta__flank:last-child { grid-column: 12 / 13; }
  .cta__main { grid-column: 2 / 12; }
}
@media (max-width: 760px) {
  .cta__row { grid-template-columns: 1fr 1fr; padding-inline: var(--m); }
  .cta__main { grid-column: 1 / -1; grid-row: 1; padding: 24px 18px; }
  .cta__title { font-size: 9vw; }
  .cta__flank { min-height: 120px; }
  .cta__flank:first-child { grid-column: 1; grid-row: 2; border-radius: var(--radius); }
  .cta__flank:last-child { grid-column: 2; grid-row: 2; border-radius: var(--radius); }
  .cta__actions .btn { width: 100%; }
}

/* ---------- Services page ---------- */
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--step-small); color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--sky-4); }
.breadcrumb a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color var(--t-fast), color var(--t-fast); }
.breadcrumb a:hover { color: var(--ink); text-decoration-color: currentColor; }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 500; }

.svc-hero { padding-top: 4px; }
.svc-hero__main { grid-column: 1 / -1; display: flex; flex-direction: column; gap: clamp(48px, 7vw, 120px); padding: clamp(24px, 3vw, 48px); }
.svc-hero__copy { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; gap: 24px var(--gap); }
.svc-hero__aside { grid-column: 8 / 13; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.svc-hero__title { grid-column: 1 / 8; font-size: var(--step-head); font-weight: 600; line-height: .98; letter-spacing: -0.03em; max-width: 16ch; }
.svc-hero__title .word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.svc-hero__title .word > span { display: inline-block; }
.svc-hero__lead { max-width: 56ch; }
.svc-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.svc-hero__actions .link-arrow { color: var(--accent-deep); }
.svc-hero__actions .link-arrow:hover .icon-arrow { transform: translateY(3px); }

.svc-index { grid-column: 1 / -1; display: flex; flex-direction: column; gap: var(--gap); }
.svc-index__grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); grid-auto-rows: 104px; gap: var(--gap); }
.svc-index__grid li { display: flex; }
.svc-index__item {
  position: relative; flex: 1; display: flex; align-items: flex-end; padding: 12px 14px;
  font-size: var(--step-small); font-weight: 500; line-height: 1.2;
  transition: background var(--t-med) var(--ease-out), color var(--t-med) var(--ease-out);
}
.svc-index__item::after {
  content: ""; position: absolute; top: 12px; right: 12px; width: 18px; height: 18px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M6 13l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M6 13l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0; transform: translateY(-6px); transition: opacity var(--t-med), transform var(--t-med) var(--ease-out);
}
.svc-index__item:hover, .svc-index__item:focus-visible { background: var(--accent); color: #fff; }
.svc-index__item:hover::after, .svc-index__item:focus-visible::after { opacity: 1; transform: none; }
.svc-index__legend { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 6px 10px 0; font-size: var(--step-small); }
.svc-index__legend a { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); transition: color var(--t-fast); }
.svc-index__legend a:hover { color: var(--ink); }
.svc-index__legend span { width: 12px; height: 12px; border-radius: 3px; }

.svc-group__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: start; padding-inline: var(--m); }
.svc-group__side { grid-column: 1 / 5; position: sticky; top: calc(var(--header-h) + 12px); }
.svc-group__list { grid-column: 5 / 13; display: grid; gap: var(--gap); }
.svc-group--flip .svc-group__side { grid-column: 9 / 13; grid-row: 1; }
.svc-group--flip .svc-group__list { grid-column: 1 / 9; grid-row: 1; }
.svc-group__card { display: flex; flex-direction: column; gap: 14px; min-height: min(72svh, 600px); padding: var(--pad); }
.svc-group__title { font-size: var(--step-head); font-weight: 600; line-height: .96; letter-spacing: -0.03em; }
.svc-group__card > p { max-width: 34ch; }
.svc-group__card.tone-navy > p:not(.svc-group__count) { color: var(--on-navy-muted); }
.svc-group__count { font-weight: 600; }
.svc-group__ui { display: grid; gap: 10px; margin-top: auto; font-size: 15px; will-change: transform; }
.svc-group__ui .ui-shop { max-width: 380px; }
.svc-group__ui .ui-search { justify-self: start; font-size: 18px; }
.svc-group__status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.svc-item {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px clamp(24px, 3vw, 48px);
  padding: clamp(22px, 2.4vw, 36px);
  scroll-margin-top: calc(var(--header-h) + 12px);
  transition: background var(--t-med) var(--ease-out);
}
.svc-item:hover { background: var(--sky-1); }
.svc-item__main { display: flex; flex-direction: column; align-items: flex-start; }
.svc-item__name { font-size: var(--step-sub); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
.svc-item__tag { margin-top: 6px; font-size: var(--step-small); font-weight: 500; color: var(--accent-deep); }
.svc-item__desc { margin-top: 14px; max-width: 52ch; }
/* "Selengkapnya": the arrow is a background so the link keeps the shared underline. */
.svc-item__more {
  margin-top: auto; padding-top: 20px; padding-right: 1.6em; color: var(--accent-deep);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23154FC4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") right 0.1em bottom 0.45em / 1.15em no-repeat;
  transition: background-position var(--t-med) var(--ease-out);
}
.svc-item__more:hover, .svc-item__more:focus-visible { background-position: right -0.15em bottom 0.45em; }
.svc-item__features { display: grid; align-content: start; gap: 12px; padding-top: 4px; }
.svc-item__features li { display: flex; align-items: flex-start; gap: 12px; font-size: var(--step-small); line-height: 1.4; }
.svc-item__features li::before {
  content: ""; flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--sky-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D63ED' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat;
  transition: background-color var(--t-med), transform 520ms var(--ease-out);
}
.svc-item:hover .svc-item__features li::before { background-color: #fff; }
.js:not(.no-anim) .svc-item:not(.is-in) .svc-item__features li::before { transform: scale(0) rotate(-30deg); }
.svc-item.is-in .svc-item__features li:nth-child(2)::before { transition-delay: 0ms, 90ms; }
.svc-item.is-in .svc-item__features li:nth-child(3)::before { transition-delay: 0ms, 180ms; }
.svc-item.is-in .svc-item__features li:nth-child(4)::before { transition-delay: 0ms, 270ms; }
.page-services .clients, .page-contacts .clients { margin-top: var(--section); }
.svc-group[id], #konsultasi { scroll-margin-top: calc(var(--header-h) + 12px); }

@media (max-width: 1100px) {
  .svc-hero__title, .svc-hero__aside { grid-column: 1 / -1; }
  .svc-index__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .svc-group__side, .svc-group--flip .svc-group__side { position: relative; top: auto; grid-column: 1 / -1; grid-row: auto; }
  .svc-group__list, .svc-group--flip .svc-group__list { grid-column: 1 / -1; grid-row: auto; }
  .svc-group__card { min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; column-gap: 24px; }
  .svc-group__card > :not(.svc-group__ui) { grid-column: 1; }
  .svc-group__ui { grid-column: 2; grid-row: 1 / span 3; align-self: end; }
}
@media (max-width: 760px) {
  .svc-hero__main { padding: 20px 18px 24px; gap: 28px; }
  .svc-hero__title { font-size: 7.6vw; }
  .svc-index__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 72px; }
  .svc-group__card { display: flex; align-items: stretch; padding: 20px 18px; }
  .svc-group__title { font-size: 8vw; }
  .svc-group__ui { margin-top: 10px; font-size: 13px; align-self: stretch; }
  .svc-group__ui .ui-search { font-size: 15px; }
  .svc-item { display: flex; flex-direction: column; gap: 0; padding: 20px 18px; }
  .svc-item__main { display: contents; }
  .svc-item__features { order: 1; margin-top: 18px; }
  .svc-item__more { order: 2; align-self: flex-start; margin-top: 0; padding-top: 18px; }
}

/* ---------- About page ---------- */
.about-hero { padding-top: 4px; }
.about-hero__board { grid-template-rows: repeat(2, minmax(0, 1fr)); min-height: min(calc(100svh - var(--header-h) - 4px), 600px); }
.about-hero__main { grid-column: 1 / 8; grid-row: 1 / 3; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: clamp(24px, 3vw, 48px); }
.about-hero__copy { display: flex; flex-direction: column; gap: 20px; }
.about-hero__title { font-size: var(--step-head); font-weight: 600; line-height: .98; letter-spacing: -0.03em; max-width: 16ch; }
.about-hero__title .word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.about-hero__title .word > span { display: inline-block; }
.about-hero__lead { max-width: 46ch; font-size: var(--step-lead); line-height: 1.35; }
.about-hero__stat { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; padding: var(--pad); }
.about-hero__stat:nth-of-type(2) { grid-column: 8 / 10; grid-row: 1; }
.about-hero__stat:nth-of-type(3) { grid-column: 10 / 13; grid-row: 1; }
.about-hero__stat:nth-of-type(4) { grid-column: 8 / 11; grid-row: 2; }
.about-hero__stat:nth-of-type(5) { grid-column: 11 / 13; grid-row: 2; }
.about-hero__figure { font-size: clamp(3rem, 1rem + 5vw, 6rem); font-weight: 600; line-height: .9; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.about-hero__stat p:last-child { font-weight: 500; }

.story { padding-inline: var(--m); }
.story__board { padding: clamp(28px, 4vw, 64px) var(--pad) 0; }
.story__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.story__cols p { color: #fff; max-width: 46ch; }
.story__motto {
  margin-top: clamp(56px, 9vw, 160px); margin-bottom: -0.14em;
  font-size: var(--step-monument); font-weight: 600; line-height: 1; letter-spacing: -0.04em;
  white-space: nowrap; color: var(--sky-3); will-change: transform;
}

.timeline__stage { display: flex; flex-direction: column; gap: clamp(20px, 2.4vw, 32px); padding: 24px var(--m); }
.timeline__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; gap: 16px var(--gap); padding-inline: 14px; }
.timeline__title { grid-column: 1 / 7; font-size: var(--step-head); font-weight: 600; line-height: .96; letter-spacing: -0.03em; }
.timeline__head p { grid-column: 8 / 13; max-width: 44ch; }
/* Swipeable by default; the script pins the section and drives the track on desktop instead. */
.timeline__viewport { overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; overscroll-behavior-x: contain; border-radius: var(--radius); }
.timeline__viewport::-webkit-scrollbar { display: none; }
.timeline.is-pinned .timeline__viewport { overflow: hidden; }
/* Inset the clip edge so text sliding past it never sits against the screen edge. */
.timeline__viewport { margin-inline: max(0px, calc(18px - var(--m))); }
.timeline__item { scroll-snap-align: start; }
.timeline__track { display: flex; gap: var(--gap); width: max-content; will-change: transform; }
.timeline__item { flex: none; display: flex; flex-direction: column; gap: 10px; width: clamp(290px, 25vw, 380px); min-height: clamp(340px, 44svh, 440px); padding: var(--pad); }
.timeline__year { margin-bottom: auto; font-size: var(--step-head); font-weight: 600; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.timeline__item h3 { font-size: var(--step-sub); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
.timeline__item.tone-navy p, .timeline__item.tone-accent p { color: #fff; }
.timeline__progress { height: 6px; margin-inline: 4px; border-radius: 3px; background: var(--sky-2); overflow: hidden; }
.timeline__progress span { display: block; width: 100%; height: 100%; border-radius: inherit; background: var(--accent); transform: scaleX(0); transform-origin: left; }

.vision__board { align-items: stretch; }
.vision__title { grid-column: 1 / -1; padding: 0 14px 16px; font-size: var(--step-head); font-weight: 600; line-height: .96; letter-spacing: -0.03em; }
.vision__tile { grid-column: span 6; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; min-height: clamp(260px, 30vw, 380px); padding: clamp(24px, 3vw, 44px); }
.vision__tile h3 { font-size: var(--step-body); font-weight: 600; }
.vision__tile p { max-width: 34ch; font-size: var(--step-lead); line-height: 1.3; letter-spacing: -0.01em; }

.values__head { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; gap: 16px var(--gap); padding: 0 14px 16px; }
.values__title { grid-column: 1 / 8; font-size: var(--step-head); font-weight: 600; line-height: .96; letter-spacing: -0.03em; max-width: 16ch; }
.values__head p { grid-column: 8 / 13; max-width: 40ch; }
.values__item { display: flex; flex-direction: column; gap: 14px; min-height: clamp(220px, 22vw, 300px); padding: clamp(22px, 2.6vw, 40px); transition: background var(--t-med) var(--ease-out); }
.values__item h3 { font-size: var(--step-sub); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
.values__item p { margin-top: auto; max-width: 46ch; }
.values__item--a { grid-column: 1 / 8; }
.values__item--b { grid-column: 8 / 13; }
.values__item--c { grid-column: 1 / 6; }
.values__item--d { grid-column: 6 / 13; }
.values__item:hover { background: var(--sky-1); }
.values__item.tone-sky-2:hover, .values__item.tone-sky-3:hover { background: var(--sky-4); }

.tech__head { grid-column: 1 / 6; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: clamp(24px, 3vw, 44px); }
.tech__title { font-size: var(--step-sub); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
.tech__head p { color: #fff; }
.tech__names { grid-column: 6 / 13; display: flex; align-items: center; padding: clamp(24px, 3vw, 48px); }
.tech__names p { font-size: var(--step-lead); font-weight: 500; line-height: 1.5; letter-spacing: -0.01em; }
.tech__name { white-space: nowrap; transition: color var(--t-fast); }
.tech__name img { display: inline-block; width: .8em; height: .8em; margin-right: .3em; vertical-align: -0.06em; transition: transform var(--t-med) var(--ease-out); }
.tech__name:hover { color: var(--accent); }
.tech__name:hover img { transform: rotate(-12deg) scale(1.15); }

@media (max-width: 1100px) {
  .about-hero__board { grid-template-rows: none; min-height: 0; }
  .about-hero__main { grid-column: 1 / -1; grid-row: auto; min-height: 360px; }
  .about-hero__stat:nth-of-type(n) { grid-column: span 3; grid-row: auto; min-height: 180px; }
  .story__cols { grid-template-columns: 1fr 1fr; }
  .story__cols p:last-child { grid-column: 1 / -1; }
  .tech__head, .tech__names { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .timeline__viewport { scroll-snap-type: x mandatory; }
  .timeline__item { width: 78vw; }
  .timeline__head { grid-template-columns: 1fr; }
  .timeline__title, .timeline__head p { grid-column: 1; }
}
@media (max-width: 760px) {
  .about-hero__main { padding: 20px 18px 24px; min-height: 0; }
  .about-hero__title { font-size: 7.6vw; }
  .about-hero__stat:nth-of-type(n) { grid-column: span 6; min-height: 140px; padding: 18px; }
  .about-hero__figure { font-size: 14vw; }
  .story__board { padding: 24px 18px 0; }
  .story__cols { grid-template-columns: 1fr; gap: 18px; }
  .story__motto { font-size: 19vw; line-height: .92; white-space: normal; margin-top: 40px; margin-bottom: 0; padding-bottom: 18px; }
  .timeline__head { padding-inline: 10px; }
  .timeline__title { font-size: 9vw; }
  .timeline__item { min-height: 320px; padding: 20px 18px; }
  .vision__title, .values__head { padding-inline: 10px; }
  .vision__title, .values__title { font-size: 9vw; }
  .vision__tile { grid-column: 1 / -1; min-height: 220px; gap: 28px; padding: 22px 18px; }
  .values__head { grid-template-columns: 1fr; }
  .values__title, .values__head p { grid-column: 1; }
  .values__item--a, .values__item--b, .values__item--c, .values__item--d { grid-column: 1 / -1; min-height: 0; padding: 22px 18px; }
  .values__item p { margin-top: 8px; }
  .tech__head, .tech__names { padding: 22px 18px; }
  .tech__names p { font-size: 1.375rem; }
}

/* ---------- Portfolio page ---------- */
.pf-feature__screen { grid-column: 1 / 8; display: flex; flex-direction: column; align-items: center; min-height: clamp(420px, 50vw, 640px); padding: clamp(24px, 3vw, 48px) clamp(24px, 3vw, 48px) 0; }
.pf-feature__browser { flex: 1; width: 100%; max-width: 640px; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.pf-feature__view { position: relative; flex: 1; min-height: 320px; overflow: hidden; background: #1b1b1b; }
.pf-feature__view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transition: object-position 5s var(--ease-in-out); }
.pf-feature__screen:hover .pf-feature__view img { object-position: 50% 100%; }
.pf-feature__info { grid-column: 8 / 13; display: flex; flex-direction: column; gap: 18px; padding: clamp(24px, 3vw, 48px); }
.pf-feature__title { font-size: var(--step-head); font-weight: 600; line-height: .96; letter-spacing: -0.03em; }
.pf-feature__info > p { max-width: 44ch; }
.pf-feature__facts { display: grid; gap: 10px; }
.pf-feature__facts li { display: flex; align-items: center; gap: 12px; font-size: var(--step-small); }
.pf-feature__facts li::before {
  content: ""; flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--sky-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D63ED' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.pf-feature__actions { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.pf-feature__actions .link-arrow { color: var(--accent-deep); }
.pf-feature__open { align-self: flex-start; }
.pf-feature__open:hover .icon-arrow { transform: scale(1.12); }

.shot-dialog { width: min(720px, calc(100vw - 32px)); max-height: calc(100svh - 32px); padding: 0; border: 0; border-radius: var(--radius); background: var(--tile); color: var(--ink); overflow: hidden; box-shadow: 0 24px 64px rgba(14, 21, 56, .35); }
.shot-dialog[open] { display: flex; flex-direction: column; animation: dialog-in 320ms var(--ease-out); }
.shot-dialog::backdrop { background: rgba(14, 21, 56, .72); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.shot-dialog__bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 10px 10px 18px; background: var(--sky-1); font-weight: 600; }
.shot-dialog__close { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: var(--step-small); font-weight: 500; transition: background var(--t-fast); }
.shot-dialog__close:hover { background: var(--accent); }
.shot-dialog__close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.shot-dialog__body { overflow-y: auto; overscroll-behavior: contain; }
.shot-dialog__body img { width: 100%; height: auto; }

.pf-clients__head { grid-column: 1 / 5; grid-row: 1 / 3; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: clamp(24px, 3vw, 44px); }
.pf-clients__title { font-size: var(--step-head); font-weight: 600; line-height: .96; letter-spacing: -0.03em; }
.pf-clients__head p { max-width: 30ch; }
.pf-client { grid-column: span 2; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; padding: 16px; background: var(--tile); }
.pf-client img { width: 100%; height: clamp(90px, 9vw, 130px); object-fit: contain; mix-blend-mode: multiply; filter: grayscale(1) contrast(1.05); opacity: .8; transition: filter var(--t-med) var(--ease-out), opacity var(--t-med), transform 600ms var(--ease-out); }
.pf-client:hover img { filter: none; opacity: 1; transform: scale(1.04); }
.pf-client figcaption { font-size: var(--step-small); font-weight: 500; line-height: 1.25; }
.pf-clients__more { grid-column: span var(--span-lg, 2); display: flex; align-items: flex-end; padding: 16px; }
.pf-clients__more p { font-weight: 500; line-height: 1.3; }

@media (max-width: 1100px) {
  .pf-feature__screen, .pf-feature__info { grid-column: 1 / -1; }
  .pf-feature__screen { min-height: 480px; }
  .pf-clients__head { grid-column: 1 / -1; grid-row: auto; }
  .pf-client { grid-column: span 3; }
  .pf-clients__more { grid-column: span var(--span-md, 3); }
}
@media (max-width: 760px) {
  .pf-feature__screen { min-height: 0; height: 110vw; padding: 18px 18px 0; }
  .pf-feature__view { min-height: 0; }
  .pf-feature__info { padding: 22px 18px; }
  .pf-feature__title, .pf-clients__title { font-size: 9vw; }
  .pf-clients__head { padding: 22px 18px; }
  .pf-client, .pf-clients__more { grid-column: span 6; padding: 12px; }
  .pf-clients__more { grid-column: span var(--span-sm, 6); }
  .pf-client img { height: 80px; }
}

/* ---------- Blog index ---------- */
.blog-filter { padding: 0 var(--m); margin-bottom: var(--gap); }
.blog-filter ul { display: flex; flex-wrap: wrap; gap: var(--gap); }
.blog-filter__item {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
  background: var(--tile); font-size: var(--step-small); font-weight: 500;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast) var(--ease-out);
}
.blog-filter__item:hover { background: var(--sky-1); }
.blog-filter__item:active { transform: scale(.96); }
.blog-filter__item[aria-current="true"] { background: var(--ink); color: #fff; }

.blog-meta { font-size: var(--step-small); color: var(--muted); }
.blog-feature { grid-column: 1 / 8; display: flex; flex-direction: column; }
.blog-feature__pic { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.blog-feature__pic img, .blog-card__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.blog-feature:hover .blog-feature__pic img, .blog-card:hover .blog-card__pic img { transform: scale(1.05); }
.blog-feature__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 12px; padding: clamp(22px, 2.6vw, 40px); }
.blog-feature__title { font-size: var(--step-sub); font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; max-width: 26ch; }
.blog-feature__body > p:not(.blog-meta) { max-width: 58ch; }
.blog-feature__more { margin-top: auto; padding-top: 8px; color: var(--accent-deep); }
.blog-feature__title a, .blog-card__title a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: transparent; transition: text-decoration-color var(--t-med); }
.blog-feature:hover .blog-feature__title a, .blog-card:hover .blog-card__title a, .blog-feature__title a:focus-visible, .blog-card__title a:focus-visible { text-decoration-color: currentColor; }
.blog__side { grid-column: 8 / 13; display: grid; gap: var(--gap); align-content: start; }
.blog-card { display: grid; grid-template-columns: minmax(0, 38%) minmax(0, 1fr); }
.blog-card__pic { display: block; overflow: hidden; min-height: 180px; }
.blog-card__body { display: flex; flex-direction: column; gap: 8px; padding: 20px; }
.blog-card__title { font-size: var(--step-body); font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
.blog-card__excerpt { font-size: var(--step-small); line-height: 1.45; }
.blog__empty { grid-column: 1 / -1; padding: var(--pad); }
.blog__grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.blog-card--stack { display: flex; flex-direction: column; }
.blog-card--stack .blog-card__pic { aspect-ratio: 4 / 3; min-height: 0; }
.blog-card--stack .blog-card__body { flex: 1; }
.blog [data-category][hidden] { display: none; }
.blog.is-filtered .blog__side { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------- Blog post ---------- */
.read-progress { position: fixed; inset: 0 0 auto 0; z-index: 70; height: 4px; pointer-events: none; }
.read-progress span { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.post-head { padding-top: 4px; }
.post-head__main { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 28px; padding: clamp(24px, 3vw, 48px); }
.post-head__title { margin-top: auto; font-size: clamp(2rem, 1.1rem + 2.4vw, 3.25rem); font-weight: 600; line-height: 1.02; letter-spacing: -0.03em; max-width: 30ch; }
.post-head__title .word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.post-head__title .word > span { display: inline-block; }
.post-head__meta { display: flex; flex-direction: column; gap: 16px; }
.share { display: flex; flex-wrap: wrap; gap: 8px; }
.share__item {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px;
  background: var(--sky-1); font-size: var(--step-small); font-weight: 500;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast) var(--ease-out);
}
.share__item:hover { background: var(--ink); color: #fff; }
.share__item:active { transform: scale(.96); }
.share__item.is-done { background: var(--ok); color: #fff; }
.post-head__cover { grid-column: 1 / -1; height: clamp(240px, 32vw, 460px); }
.post-head__cover img { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; }

.post-layout { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: start; padding-inline: var(--m); }
.post-toc { grid-column: 1 / 4; position: sticky; top: calc(var(--header-h) + 12px); padding: var(--pad); }
.post-toc__title { margin-bottom: 12px; font-weight: 600; }
.post-toc ol { display: grid; gap: 2px; }
.post-toc a { position: relative; display: block; padding: 7px 0 7px 18px; font-size: var(--step-small); line-height: 1.35; color: var(--muted); transition: color var(--t-fast); }
.post-toc a::before { content: ""; position: absolute; left: 0; top: 1em; width: 8px; height: 8px; border-radius: 50%; background: var(--sky-2); transition: background var(--t-fast), transform var(--t-med) var(--ease-out); }
.post-toc a:hover { color: var(--ink); }
.post-toc a[aria-current="true"] { color: var(--ink); font-weight: 500; }
.post-toc a[aria-current="true"]::before { background: var(--accent); transform: scale(1.3); }
.prose { grid-column: 4 / 13; padding: clamp(24px, 4vw, 72px) clamp(22px, 6vw, 112px); }
.prose > * { max-width: 60ch; }
.prose p { margin-bottom: 1.15em; line-height: 1.7; }
.prose .prose__lead { font-size: var(--step-lead); line-height: 1.45; letter-spacing: -0.01em; margin-bottom: 1.4em; }
.prose h2 { margin: 1.8em 0 .55em; font-size: var(--step-sub); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; scroll-margin-top: calc(var(--header-h) + 16px); }
.prose > h2:first-child { margin-top: 0; }
.prose__note { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 2em; padding: var(--pad); border-radius: var(--radius); background: var(--sky-1); }
.prose__note p { margin: 0; }
.prose__note .link-arrow { color: var(--accent-deep); }

.post-related__head { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 0 14px 16px; }
.post-related__title { font-size: var(--step-head); font-weight: 600; line-height: .96; letter-spacing: -0.03em; }
.post-related__head .link-arrow { color: var(--accent-deep); }
.post-related .blog-card { grid-column: span 6; }

@media (max-width: 1100px) {
  .blog-feature, .blog__side { grid-column: 1 / -1; }
  .blog__side { grid-template-columns: 1fr 1fr; }
  .blog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blog-card { grid-template-columns: 1fr; }
  .blog-card__pic { aspect-ratio: 16 / 10; min-height: 0; }
  .post-head__main, .post-head__cover { grid-column: 1 / -1; }
  .post-head__cover { min-height: 0; }
  .post-toc { display: none; }
  .prose { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .blog-filter { padding-inline: var(--m); }
  /* Index cards go two across with the picture on top, so the board stays centred. */
  .blog__side, .blog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blog .blog-card { display: flex; flex-direction: column; }
  .blog .blog-card__pic { aspect-ratio: 4 / 3; min-height: 0; }
  .blog .blog-card__title { font-size: 1rem; }
  .blog-card { grid-template-columns: minmax(0, 36%) minmax(0, 1fr); }
  .blog-card__pic { aspect-ratio: auto; min-height: 140px; }
  .blog-card__body { padding: 14px; }
  .blog-card__excerpt { display: none; }
  .post-head__main { padding: 20px 18px 24px; }
  .post-head__title { font-size: 6vw; }
  .blog-feature__title { font-size: 1.25rem; }
  .prose { padding: 24px 18px; }
  .post-related__head { padding-inline: 10px; }
  .post-related__title { font-size: 9vw; }
  .post-related .blog-card { grid-column: span 6; display: flex; flex-direction: column; }
  .post-related .blog-card__pic { aspect-ratio: 4 / 3; min-height: 0; }
  .post-related .blog-card__title { font-size: 1rem; }
}

/* ---------- Contact page ---------- */
.contact__board { align-items: start; }
.contact__info { grid-column: 1 / 6; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.contact-wa {
  grid-column: 1 / -1; display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
  min-height: 240px; padding: clamp(22px, 2.6vw, 40px);
  transition: background var(--t-med) var(--ease-out);
}
.contact-wa:hover, .contact-wa:focus-within { background: var(--accent-deep); }
/* The number is the link; its ::after stretches the click area over the whole tile. */
.contact-wa__number::after { content: ""; position: absolute; inset: 0; }
.contact-wa__label { font-weight: 600; }
.contact-wa__number { font-size: var(--step-sub); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.contact-wa__hint { display: inline-flex; align-items: center; gap: .5em; font-size: var(--step-small); }
.contact-wa:hover .icon-arrow { transform: translateX(5px); }
.contact-item { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 130px; padding: var(--pad); transition: background var(--t-med) var(--ease-out); }
a.contact-item:hover { background: var(--sky-1); }
.contact-item--wide { grid-column: 1 / -1; min-height: 0; }
.contact-item__label { font-size: var(--step-small); color: var(--muted); }
.contact-item.tone-navy .contact-item__label { color: var(--on-navy-muted); }
.contact-item__value { font-weight: 600; overflow-wrap: anywhere; }
.contact-item .link-arrow { margin-top: 8px; color: var(--accent-deep); }
.contact-social { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 4px; }
.contact-social a { font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: transparent; transition: text-decoration-color var(--t-fast); }
.contact-social a:hover { text-decoration-color: currentColor; }

.contact-form { grid-column: 6 / 13; padding: clamp(24px, 3vw, 48px); }
.contact-form__title { font-size: var(--step-sub); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.contact-form__lead { margin-top: 6px; color: var(--muted); font-size: var(--step-small); }
.form { display: grid; gap: 18px; margin-top: 24px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.field { display: grid; gap: 8px; align-content: start; }
.field label { font-size: var(--step-small); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 14px 16px; border: 0; border-radius: var(--radius);
  background: var(--sky-1); color: var(--ink); font-size: 1rem;
  transition: background var(--t-fast), outline-color var(--t-fast);
}
.field textarea { min-height: 160px; resize: vertical; line-height: 1.5; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { background: #fff; outline: 3px solid var(--accent); outline-offset: 0; }
.field__select { position: relative; }
.field__select select { appearance: none; padding-right: 44px; cursor: pointer; }
.field__select::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 14px; height: 14px; margin-top: -7px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E1538' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { background: #FDECEC; outline: 2px solid #D92D20; outline-offset: 0; }
.field__error { font-size: var(--step-small); color: #B42318; }
.field__error:empty { display: none; }
/* Server replies after posting the contact or newsletter form. */
.form__notice { margin-bottom: 18px; padding: 14px 16px; border-radius: var(--radius); background: #E7F6EE; color: var(--ok); font-weight: 500; }
.news-form__note { margin-top: 10px; font-size: var(--step-small); }
.field__foot { display: flex; align-items: flex-start; gap: 12px; }
.field__count { margin-left: auto; font-size: var(--step-small); color: var(--muted); font-variant-numeric: tabular-nums; }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 4px; }
.form.is-invalid { animation: shake 380ms var(--ease-out); }
.form button[disabled] { opacity: .7; cursor: progress; }

.contact-map__head { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; gap: 16px var(--gap); padding: 0 14px 16px; }
.contact-map__title { grid-column: 1 / 8; font-size: var(--step-head); font-weight: 600; line-height: .96; letter-spacing: -0.03em; }
.contact-map__head p { grid-column: 8 / 13; max-width: 44ch; }
.contact-map__frame { grid-column: 1 / -1; height: clamp(320px, 40vw, 520px); background: var(--sky-2); }
.contact-map__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

@media (max-width: 1100px) {
  .contact__info, .contact-form { grid-column: 1 / -1; }
  .contact-wa { min-height: 180px; }
}
@media (max-width: 760px) {
  .contact__info { grid-template-columns: 1fr; }
  .contact-item { min-height: 0; padding: 18px; }
  .contact-form { padding: 22px 18px; }
  .form__row { grid-template-columns: 1fr; }
  .form__actions .btn { width: 100%; }
  .contact-map__head { grid-template-columns: 1fr; padding-inline: 10px; }
  .contact-map__title, .contact-map__head p { grid-column: 1; }
  .contact-map__title { font-size: 9vw; }
  .contact-map__frame { height: 90vw; }
}

/* ---------- Service detail ---------- */
/* Titles run to 53 characters, so the headline gets the full width and the intro sits under it. */
.sd-hero__title { grid-column: 1 / -1; font-size: clamp(2rem, 0.6rem + 4.2vw, 4.5rem); max-width: 26ch; text-wrap: balance; }
.sd-hero .svc-hero__aside { grid-column: 7 / 13; }
.sd-features__board { align-items: start; }
.sd-features__head { grid-column: 1 / 5; position: sticky; top: calc(var(--header-h) + 12px); display: flex; flex-direction: column; gap: 14px; min-height: 320px; padding: clamp(24px, 3vw, 44px); }
.sd-features__title { font-size: var(--step-title); font-weight: 600; line-height: .96; letter-spacing: -0.03em; }
.sd-features__head p { color: var(--on-navy-muted); max-width: 34ch; }
.sd-features__head .sd-features__count { margin-top: auto; color: #fff; font-weight: 600; }
.sd-features__list { grid-column: 5 / 13; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.sd-feature { display: flex; flex-direction: column; gap: 10px; min-height: 190px; padding: clamp(22px, 2.4vw, 34px); transition: background var(--t-med) var(--ease-out); }
.sd-feature::before {
  content: ""; width: 32px; height: 32px; margin-bottom: 8px; border-radius: 50%;
  background: var(--sky-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D63ED' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform var(--t-med) var(--ease-out), background-color var(--t-med);
}
.sd-feature:nth-child(4n + 2), .sd-feature:nth-child(4n + 3) { background: var(--sky-1); }
.sd-feature:nth-child(4n + 2)::before, .sd-feature:nth-child(4n + 3)::before { background-color: #fff; }
.sd-feature:hover::before { transform: scale(1.12) rotate(-8deg); }
.sd-feature h3 { font-size: var(--step-lead); font-weight: 600; line-height: 1.2; letter-spacing: -0.015em; }
.sd-feature p { font-size: var(--step-small); line-height: 1.5; }

.sd-sections__board { align-items: stretch; }
.sd-section { grid-column: span 6; display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 3vw, 48px); }
.sd-section:only-child { grid-column: 1 / -1; }
.sd-section__title { font-size: var(--step-sub); font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; max-width: 26ch; }
.sd-section p { max-width: 62ch; }
.sd-section__list { display: grid; gap: 8px; padding-left: 1.2em; list-style: disc; }

.sd-related__head { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 0 14px 16px; }
.sd-related__title { font-size: var(--step-head); font-weight: 600; line-height: .96; letter-spacing: -0.03em; }
.sd-related__head .link-arrow { color: var(--accent-deep); }
.sd-related__item { grid-column: span 4; display: flex; flex-direction: column; gap: 8px; min-height: 180px; padding: var(--pad); transition: background var(--t-med) var(--ease-out); }
.sd-related__item:hover, .sd-related__item:focus-visible { background: var(--sky-1); }
.sd-related__name { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
.sd-related__tag { font-size: var(--step-small); color: var(--muted); }
.sd-related__go {
  margin-top: auto; align-self: flex-end; width: 26px; height: 26px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D63ED' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform var(--t-med) var(--ease-out);
}
.sd-related__item:hover .sd-related__go { transform: translateX(6px); }
.page-service .clients { margin-top: var(--section); }
/* "Panduan gratis terkait": paired ebooks with the chapters picked for this service */
.sd-ebooks__head { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 32px; padding: 0 14px 16px; }
.sd-ebooks__title { font-size: var(--step-head); font-weight: 600; line-height: .96; letter-spacing: -0.03em; }
.sd-ebooks__lead { max-width: 46ch; color: var(--muted); }
.sd-ebook { grid-column: span 6; display: grid; grid-template-columns: minmax(96px, 30%) 1fr; align-items: start; gap: 24px; padding: var(--pad); }
.sd-ebook:only-of-type { grid-column: 1 / -1; grid-template-columns: minmax(120px, 200px) 1fr; }
.sd-ebook__text { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; }
.sd-ebook__name { font-size: var(--step-lead); font-weight: 600; line-height: 1.2; letter-spacing: -0.015em; }
.sd-ebook__name a:hover { color: var(--accent-deep); }
.sd-ebook__chapters { display: flex; flex-direction: column; gap: 2px; width: 100%; margin: 4px 0; border-top: 1px solid var(--sky-2); }
.sd-ebook__chapters a { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--sky-2); font-weight: 500; line-height: 1.35; transition: color var(--t-fast) var(--ease-out); }
.sd-ebook__chapters a:hover, .sd-ebook__chapters a:focus-visible { color: var(--accent-deep); }
.sd-ebook__chapters span { font-size: var(--step-small); font-weight: 400; color: var(--muted); }
.sd-ebook .link-arrow { color: var(--accent-deep); }

/* ---------- Blog post: long titles, CMS markup ---------- */
.breadcrumb li.breadcrumb__current { min-width: 0; max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prose > p:first-child { font-size: var(--step-lead); line-height: 1.45; letter-spacing: -0.01em; margin-bottom: 1.4em; }
.prose ul, .prose ol { margin: 0 0 1.15em; padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: .45em; line-height: 1.65; }
.prose h3 { margin: 1.4em 0 .4em; font-size: var(--step-lead); font-weight: 600; line-height: 1.25; scroll-margin-top: calc(var(--header-h) + 16px); }
.prose blockquote { margin: 1.4em 0; padding: var(--pad); border-radius: var(--radius); background: var(--sky-1); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }
.post-layout--no-toc .prose { grid-column: 1 / -1; }

@media (max-width: 1100px) {
  .sd-hero .svc-hero__aside { grid-column: 1 / -1; }
  .sd-features__head { grid-column: 1 / -1; position: relative; top: auto; min-height: 0; }
  .sd-features__list { grid-column: 1 / -1; }
  .sd-related__item { grid-column: span 6; }
  .sd-ebook { grid-column: 1 / -1; grid-template-columns: minmax(110px, 180px) 1fr; }
  .post-head__title { font-size: 4.2vw; }
  .post-head__cover { height: 46vw; }
}
@media (max-width: 760px) {
  .sd-hero__title { font-size: 6vw; }
  .sd-features__head { padding: 22px 18px; }
  .sd-features__title, .sd-related__title, .sd-ebooks__title { font-size: 9vw; }
  .sd-ebooks__head { padding-inline: 10px; }
  .sd-ebook, .sd-ebook:only-of-type { grid-template-columns: 1fr; gap: 18px; padding: 20px 18px; }
  .sd-ebook__cover { max-width: 160px; }
  .sd-features__list { grid-template-columns: 1fr; }
  .sd-feature { min-height: 0; padding: 20px 18px; }
  .sd-feature:nth-child(n) { background: var(--tile); }
  .sd-feature:nth-child(even) { background: var(--sky-1); }
  .sd-section { grid-column: 1 / -1; padding: 22px 18px; }
  .sd-related__head { padding-inline: 10px; }
  .sd-related__item { grid-column: 1 / -1; min-height: 0; }
  .breadcrumb ol { flex-wrap: nowrap; }
  .breadcrumb li { flex-shrink: 0; }
  .breadcrumb li.breadcrumb__current { flex-shrink: 1; max-width: none; }
  .post-head__title { font-size: 6vw; max-width: none; }
  .post-head__cover { height: 62vw; }
}

/* ---------- Local landing (jasa pembuatan website jogja) ---------- */
.local-hero__title { font-size: clamp(2.5rem, 0.6rem + 6.2vw, 7rem); line-height: .95; max-width: 14ch; }
.page-local .clients { margin-top: var(--section); }

.local-types__board { align-items: stretch; }
.local-types__head { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 48px; padding: 0 14px 16px; }
.local-types__title { font-size: var(--step-head); font-weight: 600; line-height: .96; letter-spacing: -0.03em; max-width: 14ch; }
.local-types__head p { max-width: 46ch; }
.local-types__item { grid-column: span 3; min-height: 210px; }
/* Checkerboard over two rows of four. */
.local-types__item:nth-child(8n + 3), .local-types__item:nth-child(8n + 5), .local-types__item:nth-child(8n + 6), .local-types__item:nth-child(8n + 8) { background: var(--sky-1); }
.local-types__item:nth-child(8n + 3):hover, .local-types__item:nth-child(8n + 5):hover, .local-types__item:nth-child(8n + 6):hover, .local-types__item:nth-child(8n + 8):hover { background: var(--sky-2); }

.local-industries__title { grid-column: 1 / -1; padding: 0 14px 16px; font-size: var(--step-head); font-weight: 600; line-height: .96; letter-spacing: -0.03em; max-width: 16ch; }

.local-area__board { align-items: stretch; }
.local-area__places { grid-column: 1 / 8; display: flex; flex-direction: column; gap: 20px; padding: clamp(24px, 3vw, 48px); }
.local-area__title { font-size: var(--step-head); font-weight: 600; line-height: .96; letter-spacing: -0.03em; }
.local-area__list { max-width: 24ch; font-size: var(--step-title); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; color: var(--accent-deep); }
.local-area__list li { display: inline; }
.local-area__list li:not(:last-child)::after { content: ","; }
.local-area__elsewhere { font-size: var(--step-lead); color: var(--muted); }
.local-area__text { margin-top: auto; max-width: 58ch; }
.local-area__office { grid-column: 8 / 13; display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 3vw, 48px); }
.local-area__office-title { font-size: var(--step-sub); font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; }
.local-area__address { font-style: normal; font-size: var(--step-lead); line-height: 1.35; }
.local-area__visit { color: var(--on-navy-muted); max-width: 40ch; }
.local-area__links { margin-top: auto; padding-top: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.local-area__links a:not(.btn) { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color var(--t-fast); }
.local-area__links a:not(.btn):hover { text-decoration-color: currentColor; }
.local-area__links .btn { margin-bottom: 6px; }

@media (max-width: 1100px) {
  .local-types__item { grid-column: span 6; min-height: 0; }
  .local-area__places, .local-area__office { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .local-hero__title { font-size: 8.6vw; } /* "Website Development" must fit one line on a 360px phone */
  .local-types__head { padding-inline: 10px; }
  .local-types__item { grid-column: 1 / -1; }
  .local-types__item:nth-child(n) { background: var(--tile); }
  .local-types__item:nth-child(even) { background: var(--sky-1); }
  .local-types__title, .local-industries__title, .local-area__title { font-size: 9vw; }
  .local-industries__title { padding-inline: 10px; }
  .local-area__places, .local-area__office { padding: 22px 18px; }
  .local-area__list { font-size: 7vw; }
}

/* Long-form guide on the local landing page: blog post layout, with h3/h4 under the section's h2. */
.local-article__title { padding: 0 calc(var(--m) + 14px) 16px; font-size: var(--step-head); font-weight: 600; line-height: .96; letter-spacing: -0.03em; max-width: 26ch; }
.local-article .prose h3 { margin: 1.8em 0 .55em; font-size: var(--step-sub); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; scroll-margin-top: calc(var(--header-h) + 16px); }
.local-article .prose h4 { margin: 1.4em 0 .4em; font-size: var(--step-lead); font-weight: 600; line-height: 1.25; }
@media (max-width: 760px) {
  .local-article__title { padding-inline: calc(var(--m) + 10px); font-size: 6.8vw; }
}

/* ---------- Footer ---------- */
.site-footer { margin-top: var(--section); padding: var(--m) var(--m) 20px; background: var(--navy); color: var(--on-navy); }
.site-footer .tile { background: var(--navy-2); color: var(--on-navy); }
.site-footer__top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.site-footer__brand { grid-column: 1 / 8; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: clamp(24px, 3vw, 44px) var(--pad) var(--pad); }
.site-footer__logo { width: 150px; height: auto; filter: brightness(0) invert(1); }
.site-footer__statement { font-size: var(--step-title); font-weight: 600; line-height: 1.04; letter-spacing: -0.025em; max-width: 20ch; text-wrap: balance; }
.site-footer__address { margin-top: auto; color: var(--on-navy-muted); }
.site-footer__news { grid-column: 8 / 13; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; padding: var(--pad); }
.site-footer__news h3 { font-size: var(--step-sub); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.news-form label { display: block; margin-bottom: 12px; color: var(--on-navy-muted); }
.news-form__field { display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: var(--navy); }
.news-form input { flex: 1; min-width: 0; height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: #fff; font-size: 1rem; }
.news-form input::placeholder { color: #8E9BC6; }
.news-form input:focus-visible { outline: 2px solid #fff; outline-offset: 0; }

.site-footer__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); margin-top: var(--gap); }
.site-footer__col { grid-column: span 3; padding: var(--pad); transition: background var(--t-med) var(--ease-out); }
.site-footer__col:hover { background: var(--navy-3); }
.site-footer__col h3 { margin-bottom: 14px; font-size: var(--step-body); font-weight: 600; }
.site-footer__col li, .site-footer__contact address > * { display: block; padding: 3px 0; font-size: var(--step-small); color: var(--on-navy-muted); }
.site-footer a { transition: color var(--t-fast); }
.site-footer a:hover { color: #fff; }
.site-footer__col li a { display: inline-block; transition: color var(--t-fast), transform var(--t-med) var(--ease-out); }
.site-footer__col li a:hover { transform: translateX(4px); }

.site-footer__base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 22px var(--pad) 4px; font-size: var(--step-small); color: var(--on-navy-muted); }
.site-footer__social { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-footer__social a { color: #fff; }

@media (max-width: 1100px) {
  .site-footer__brand { grid-column: 1 / -1; }
  .site-footer__news { grid-column: 1 / -1; }
  .site-footer__col { grid-column: span 6; }
}
@media (max-width: 760px) {
  .site-footer__top, .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { padding: 24px 10px 16px; }
  .site-footer__statement { font-size: 1.5rem; }
  .site-footer__col { grid-column: span 1; padding: 18px 16px; }
  .site-footer__col:first-child, .site-footer__contact { grid-column: 1 / -1; }
  .site-footer__col:first-child ul { columns: 2; column-gap: 16px; }
  .site-footer__col:first-child li { break-inside: avoid; }
  .site-footer__base { flex-direction: column; align-items: flex-start; padding-inline: 10px; }
}

/* ---------- Entrances ---------- */
.js:not(.no-anim) [data-reveal] { opacity: 0; }

/* ---------- Ebooks (/ebook, /ebook/{slug}, /ebook/{slug}/{chapter}) ---------- */
/* Cover drawn in CSS: title on the ebook's tone, a darker spine, and rising bars like the home banner. */
.ebook-cover {
  position: relative; isolation: isolate; container-type: inline-size;
  aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden;
}
.ebook-cover__inner {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: 4cqi;
  padding: 9cqi 8cqi 8cqi 12cqi;
  border-left: 3cqi solid rgba(14, 21, 56, .16); /* the spine */
}
.ebook-cover.tone-sky-2, .ebook-cover.tone-sky-3 { color: var(--ink); }
.ebook-cover__title { font-size: 8.4cqi; font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
.ebook-cover__brand { margin-top: auto; font-size: 5.4cqi; font-weight: 700; letter-spacing: -0.01em; }
.ebook-cover__bars { position: absolute; z-index: -1; right: 8%; bottom: 0; display: flex; align-items: flex-end; gap: 6%; width: 52%; height: 46%; }
.ebook-cover__bars i { flex: 1; border-radius: 1.2cqi 1.2cqi 0 0; background: currentColor; opacity: .14; }
.ebook-cover__bars i:nth-child(1) { height: 30%; }
.ebook-cover__bars i:nth-child(2) { height: 52%; }
.ebook-cover__bars i:nth-child(3) { height: 40%; }
.ebook-cover__bars i:nth-child(4) { height: 74%; }
.ebook-cover__bars i:nth-child(5) { height: 100%; opacity: .26; }

/* List of ebooks */
.ebook-list { align-items: stretch; }
.ebook-card { grid-column: span 4; display: flex; flex-direction: column; gap: 18px; padding: 14px; transition: background var(--t-med) var(--ease-out); }
.ebook-card:hover, .ebook-card:focus-visible { background: var(--sky-1); }
.ebook-card .ebook-cover { transition: transform var(--t-med) var(--ease-out); }
.ebook-card:hover .ebook-cover { transform: translateY(-4px); }
.ebook-card__text { display: flex; flex-direction: column; gap: 6px; padding: 0 6px 6px; }
.ebook-card__title { font-size: var(--step-lead); font-weight: 600; line-height: 1.2; letter-spacing: -0.015em; }
.ebook-card__sub { color: var(--muted); }
.ebook-list__empty { grid-column: 1 / -1; padding: var(--pad); color: var(--muted); }

/* Cover page */
.ebook-hero__main { grid-column: 1 / 9; display: flex; flex-direction: column; gap: 28px; padding: clamp(24px, 3vw, 48px); }
.ebook-hero__title { font-size: var(--step-head); font-weight: 600; line-height: .98; letter-spacing: -0.03em; max-width: 18ch; text-wrap: balance; }
.ebook-hero__lead { max-width: 52ch; font-size: var(--step-lead); line-height: 1.35; }
.ebook-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: auto; }
.ebook-hero__cover { grid-column: 9 / 13; display: grid; place-items: center; padding: clamp(24px, 3vw, 48px); }
.ebook-hero__cover .ebook-cover { width: min(100%, 340px); }

.ebook-about__tile { grid-column: span 4; display: flex; flex-direction: column; gap: 14px; padding: var(--pad); }
.ebook-about__tile h2 { font-size: var(--step-sub); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
.ebook-about__tile ul { display: grid; gap: 10px; }
.ebook-about__tile li { position: relative; padding-left: 26px; }
.ebook-about__tile li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); color: var(--accent); }
.tone-accent.ebook-about__tile li::before, .tone-navy.ebook-about__tile li::before { color: #fff; }
.ebook-about__tile .link-arrow { margin-top: auto; }

.ebook-toc__head { grid-column: 1 / -1; padding: 0 14px 16px; }
.ebook-toc__title { font-size: var(--step-head); font-weight: 600; line-height: .96; letter-spacing: -0.03em; }
.ebook-toc__list { grid-column: 1 / -1; display: grid; gap: var(--gap); counter-reset: none; }
.ebook-toc__item { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 4px 20px; padding: 20px var(--pad); transition: background var(--t-med) var(--ease-out); }
.ebook-toc__item:hover, .ebook-toc__item:focus-visible { background: var(--sky-1); }
.ebook-toc__num { grid-row: span 2; font-size: var(--step-small); font-weight: 600; color: var(--accent-deep); }
.ebook-toc__name { font-size: var(--step-lead); font-weight: 600; line-height: 1.2; letter-spacing: -0.015em; }
.ebook-toc__summary { grid-column: 2; color: var(--muted); }
.ebook-toc__time { grid-row: 1 / span 2; grid-column: 3; font-size: var(--step-small); color: var(--muted); white-space: nowrap; }

.ebook-download { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px var(--gap); padding: clamp(24px, 3vw, 48px); scroll-margin-top: calc(var(--header-h) + 16px); }
.ebook-download__text { grid-column: 1 / 6; display: flex; flex-direction: column; gap: 14px; }
.ebook-download__text h2 { font-size: var(--step-title); font-weight: 600; line-height: 1.02; letter-spacing: -0.03em; }
.ebook-download__form { grid-column: 7 / 13; align-self: end; }
.ebook-download__form .form { margin-top: 0; }
.ebook-download__consent { font-size: var(--step-small); color: var(--on-navy-muted, rgba(255, 255, 255, .78)); }
.ebook-download__consent a { text-decoration: underline; text-underline-offset: 3px; }
.ebook-download .field label { color: #fff; }

/* Chapter page: no cover photo, so the chapter title leads the first screen. */
.page-ebook-chapter .post-head__title { font-size: clamp(2.25rem, 1rem + 4.6vw, 5.25rem); max-width: 22ch; text-wrap: balance; }
.ebook-chapter__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: var(--step-small); color: var(--muted); }
.ebook-chapter__meta a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }
.ebook-nav__chapters { display: grid; gap: 2px; }
.ebook-nav__chapters > li > a { display: block; padding: 7px 0; font-size: var(--step-small); line-height: 1.35; color: var(--muted); transition: color var(--t-fast); }
.ebook-nav__chapters > li > a:hover { color: var(--ink); }
.ebook-nav__chapters > li > a::before { display: none; } /* chapters carry their number; the dots mark the open chapter's sections */
.ebook-nav__chapters > li > a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.ebook-nav__chapters ol { margin: 2px 0 8px; padding-left: 4px; }
.ebook-pager { align-items: stretch; }
.ebook-pager__link { grid-column: span 6; display: flex; flex-direction: column; gap: 8px; min-height: 140px; padding: var(--pad); transition: background var(--t-med) var(--ease-out); }
.ebook-pager__link:hover, .ebook-pager__link:focus-visible { background: var(--sky-1); }
.ebook-pager__link--next { grid-column: 7 / 13; text-align: right; align-items: flex-end; }
.ebook-pager__dir { font-size: var(--step-small); color: var(--muted); }
.ebook-pager__name { font-size: var(--step-lead); font-weight: 600; line-height: 1.2; letter-spacing: -0.015em; }
.ebook-pager__pdf { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: var(--pad); }
.ebook-pager__pdf p { max-width: 60ch; }

/* Ebook parts in the tables of contents */
.ebook-toc__part { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 8px; padding: 32px 14px 12px; }
.ebook-toc__part:first-child { padding-top: 0; }
.ebook-toc__part h3 { font-size: var(--step-sub); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
.ebook-toc__part p { max-width: 70ch; color: var(--muted); }
/* A whole book is longer than the screen: the sticky list scrolls on its own. */
.page-ebook-chapter .post-toc { max-height: calc(100vh - var(--header-h) - 24px); overflow-y: auto; overscroll-behavior: contain; }
.ebook-nav__part { margin: 16px 0 4px; font-size: .8125rem; font-weight: 600; line-height: 1.35; color: var(--ink); }
.ebook-nav__label { display: block; font-size: .75rem; color: var(--muted); }

/* Book furniture inside a chapter: labelled boxes, tick-box checklists, tables, code */
.ebook-box { margin: 1.6em 0; padding: var(--pad); border-left: 4px solid var(--accent); border-radius: var(--radius); background: var(--sky-1); }
.ebook-box > :last-child { margin-bottom: 0; }
.ebook-box__label { margin-bottom: .5em !important; font-weight: 700; }
.ebook-box--peringatan { border-left-color: #D97706; background: #FFF6E5; }
.ebook-box--tugas { border-left-color: var(--accent-deep); background: var(--sky-2); }
.ebook-box--godaan { border-left-color: #BE123C; background: #FFF1F2; }
.prose li.is-check { position: relative; margin-left: -1.3em; padding-left: 1.75em; list-style: none; }
.prose li.is-check::before { content: ""; position: absolute; left: 0; top: .32em; width: 1em; height: 1em; border: 2px solid var(--accent); border-radius: 3px; }
.prose li > p { margin-bottom: .3em; }
.prose__table { margin: 1.4em 0; overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--sky-2); }
.prose__table table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: var(--step-small); }
.prose__table th, .prose__table td { padding: 10px 14px; border-bottom: 1px solid var(--sky-2); text-align: left; vertical-align: top; line-height: 1.5; }
.prose__table th { background: var(--sky-1); font-weight: 600; }
.prose__table tr:last-child td { border-bottom: 0; }
.prose__table p { margin: 0; line-height: 1.5; }
.prose__table p:empty::before { content: "\00a0"; } /* a blank row is a row for the reader to fill in: keep it a full line tall */
.prose code { padding: .1em .35em; border-radius: 4px; background: var(--sky-1); font-family: ui-monospace, Consolas, "Courier New", monospace; font-size: .9em; }
.prose pre { margin: 1.4em 0; padding: 18px; overflow-x: auto; border-radius: var(--radius); background: var(--ink); color: #E8F2FF; font-size: .875rem; line-height: 1.6; }
/* Long lines (regex, URLs) wrap inside the box instead of hiding behind a scrollbar; copying still gives one line. */
.prose pre code { padding: 0; background: none; color: inherit; font-size: inherit; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Promotion: blog list band and home tile */
.ebook-promo { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; gap: 20px clamp(16px, 2vw, 32px); padding: clamp(20px, 2.4vw, 36px); }
.ebook-promo__cover { grid-column: 1 / 3; }
.ebook-promo__text { grid-column: 3 / 10; display: flex; flex-direction: column; gap: 10px; }
.ebook-promo__label { font-size: var(--step-small); font-weight: 600; opacity: .85; }
.ebook-promo__title { font-size: var(--step-sub); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
.ebook-promo__actions { grid-column: 10 / 13; justify-self: end; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }

@media (max-width: 1024px) {
  .ebook-card { grid-column: span 6; }
  .ebook-hero__main { grid-column: 1 / -1; }
  .ebook-hero__cover { grid-column: 1 / -1; }
  .ebook-about__tile { grid-column: span 6; }
  .ebook-about__tile:last-child { grid-column: 1 / -1; }
  .ebook-download__text, .ebook-download__form { grid-column: 1 / -1; }
  .ebook-promo__cover { grid-column: 1 / 4; }
  .ebook-promo__text { grid-column: 4 / 13; }
  .ebook-promo__actions { grid-column: 4 / 13; justify-self: start; }
}
@media (max-width: 760px) {
  .ebook-card, .ebook-about__tile, .ebook-pager__link, .ebook-pager__link--next { grid-column: 1 / -1; }
  .ebook-hero__title { font-size: 8vw; }
  .ebook-toc__title { font-size: 9vw; }
  .page-ebook-chapter .post-head__title { font-size: 7vw; }
  .ebook-hero__cover .ebook-cover { width: min(70%, 260px); }
  .ebook-toc__item { grid-template-columns: 44px minmax(0, 1fr); padding: 16px; }
  .ebook-toc__time { grid-row: auto; grid-column: 2; }
  .ebook-pager__link--next { text-align: left; align-items: flex-start; }
  .ebook-promo__cover { grid-column: 1 / 5; }
  .ebook-promo__text, .ebook-promo__actions { grid-column: 5 / 13; }
  .ebook-promo__title { font-size: var(--step-lead); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .js [data-reveal] { opacity: 1 !important; }
  .js [data-hero-tile] { clip-path: none !important; }
}
