/* JSoft site styles.
   Brand system carried over from the previous site: Barlow Condensed (display, uppercase) with Barlow (body),
   square corners everywhere, and blueprint registration marks on framed objects. The accent is the cobalt
   of the logo. Every colour is a token on :root. Dark is the default theme for every visitor;
   [data-theme="light"] on <html> (set by the toggle and remembered) redefines the same tokens.

   Z-index scale: header 40, skip link 60. The mobile menu is a modal <dialog> and lives in the top layer. */

/* ---------- Fonts (self-hosted, Latin + Latin Extended) ---------- */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/barlow-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/barlow-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-500-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-700-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-600-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Tokens (dark is the default) ---------- */
:root {
  color-scheme: dark;
  --bg: #0d1220;
  --surface: #141b2d;
  --raised: #111829;
  --text: #e7ebf2;
  --muted: #a3adbf;
  --line: rgba(231, 235, 242, 0.12);
  --line-strong: rgba(231, 235, 242, 0.24);
  --field-border: #5d6880;
  --placeholder: #8e98ab;
  --mark: rgba(231, 235, 242, 0.45);
  --dot: rgba(231, 235, 242, 0.14);
  --accent: #2f66d6;
  --accent-hover: #2a5cc4;
  --accent-text: #7ea6f5;
  --on-accent: #f7f9fc;
  --accent-tint: #172648;
  --accent-tint-text: #b4cbfa;
  --danger: #ff8a80;
  --photo-tint: 0.45;
  --photo-filter: grayscale(1) contrast(1.06) brightness(0.86);

  --font-display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-h1: clamp(2.5rem, 1.6rem + 3vw, 3.75rem);
  --fs-h2: clamp(2rem, 1.45rem + 1.9vw, 3.125rem);
  --fs-h3: clamp(1.625rem, 1.25rem + 1.2vw, 2.25rem);
  --fs-lede: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 56px);
  --nav-h: 64px;
  --section-y: clamp(64px, 8vw, 104px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --z-header: 40;
  --z-skip: 60;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f4f6;
  --surface: #e8ebf0;
  --raised: #fbfcfd;
  --text: #131a2b;
  --muted: #475165;
  --line: rgba(19, 26, 43, 0.13);
  --line-strong: rgba(19, 26, 43, 0.26);
  --field-border: #7d8698;
  --placeholder: #5f6879;
  --mark: rgba(19, 26, 43, 0.5);
  --dot: rgba(19, 26, 43, 0.16);
  --accent: #1d58c9;
  --accent-hover: #1749ad;
  --accent-text: #1d58c9;
  --on-accent: #f7f9fc;
  --accent-tint: #e1e9f9;
  --accent-tint-text: #163f93;
  --danger: #b42318;
  --photo-tint: 0.5;
  --photo-filter: grayscale(1) contrast(1.06);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html:has(.menu[open]) { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
a { color: var(--accent-text); text-underline-offset: 3px; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }
::selection { background: color-mix(in srgb, var(--accent) 28%, transparent); }
section[id], [id="simulasi"] { scroll-margin-top: calc(var(--nav-h) + 16px); }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: var(--z-skip);
  padding: 12px 18px; background: var(--accent); color: var(--on-accent);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section-tint { background: var(--surface); }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes fade { from { opacity: 0; } }

/* Blueprint registration marks: four crosshairs centred on the corners of a bordered box. */
.marks { position: relative; }
.marks::after {
  content: "";
  position: absolute;
  inset: -6px;
  pointer-events: none;
  background:
    linear-gradient(var(--mark), var(--mark)) left 5px top 0 / 1px 11px no-repeat,
    linear-gradient(var(--mark), var(--mark)) left 0 top 5px / 11px 1px no-repeat,
    linear-gradient(var(--mark), var(--mark)) right 5px top 0 / 1px 11px no-repeat,
    linear-gradient(var(--mark), var(--mark)) right 0 top 5px / 11px 1px no-repeat,
    linear-gradient(var(--mark), var(--mark)) left 5px bottom 0 / 1px 11px no-repeat,
    linear-gradient(var(--mark), var(--mark)) left 0 bottom 5px / 11px 1px no-repeat,
    linear-gradient(var(--mark), var(--mark)) right 5px bottom 0 / 1px 11px no-repeat,
    linear-gradient(var(--mark), var(--mark)) right 0 bottom 5px / 11px 1px no-repeat;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 18px; height: 18px; transition: transform 0.3s var(--ease-out); }
.btn:hover .icon-arrow { transform: translateX(3px); }
.btn-primary { --mark: color-mix(in srgb, var(--accent) 70%, transparent); background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.btn-secondary { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn-secondary:hover { background: color-mix(in srgb, var(--text) 6%, transparent); border-color: var(--text); color: var(--text); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn-lg { min-height: 56px; padding: 0 26px; font-size: 17px; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.icon-btn:hover { background: color-mix(in srgb, var(--text) 6%, transparent); border-color: var(--text); }
.icon-btn .icon { width: 22px; height: 22px; }

.theme-switching *, .theme-switching *::before, .theme-switching *::after { transition: none !important; }

/* Theme-dependent assets: logo variants and the toggle icon (sun = switch to light, moon = switch to dark). */
.logo-on-light, .theme-toggle .i-moon { display: none; }
:root[data-theme="light"] .logo-on-dark, :root[data-theme="light"] .theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .logo-on-light, :root[data-theme="light"] .theme-toggle .i-moon { display: block; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.nav { display: flex; align-items: center; gap: 24px; height: var(--nav-h); }
.brand { display: flex; align-items: center; margin-right: auto; }
.brand img { height: 32px; width: auto; }
.nav-links { display: none; align-items: center; gap: clamp(18px, 2vw, 28px); }
.nav-links a {
  position: relative;
  padding: 8px 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.3s var(--ease-out);
}
.nav-links a:hover, .nav-links a[aria-current] { color: var(--accent-text); }
.nav-links a:hover::after, .nav-links a[aria-current]::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-cta { display: none; }
@media (min-width: 640px) { .nav-cta { display: inline-flex; } }
@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .menu-btn { display: none; }
}

.scroll-progress { display: none; }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .scroll-progress {
      display: block;
      position: absolute;
      left: 0;
      right: 0;
      bottom: -1px;
      height: 2px;
      background: var(--accent);
      transform-origin: 0 50%;
      animation: progress linear both;
      animation-timeline: scroll(root);
    }
    @keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  }
}

/* ---------- Mobile menu ---------- */
.menu {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--bg);
  color: var(--text);
}
.menu::backdrop { background: transparent; }
.menu-inner { display: flex; flex-direction: column; min-height: 100%; padding: 0 var(--gutter) 32px; }
.menu-top { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); border-bottom: 1px solid var(--line); }
.menu-top img { height: 30px; width: auto; }
.menu-links { list-style: none; margin: 16px 0 0; padding: 0; }
.menu-links a {
  display: block;
  padding: 10px 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 9vw, 44px);
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.menu-links a:hover { color: var(--accent-text); }
.menu .btn { align-self: flex-start; margin-top: 28px; }
@media (prefers-reduced-motion: no-preference) {
  .menu[open] { animation: fade 0.25s ease both; }
  .menu[open] .menu-links li { animation: rise 0.5s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 45ms + 60ms); }
}

/* ---------- Section heads ---------- */
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: var(--fs-h2); }
.section-head p { margin-top: 18px; max-width: 56ch; font-size: var(--fs-lede); color: var(--muted); }

/* ---------- Photos (monochrome cobalt treatment, as on the previous site) ---------- */
.photo { position: relative; overflow: hidden; background: var(--surface); }
.photo img { width: 100%; height: 100%; object-fit: cover; filter: var(--photo-filter); }
.photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  mix-blend-mode: color;
  opacity: var(--photo-tint);
  pointer-events: none;
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(28px, 4vw, 56px) clamp(56px, 7vw, 96px); }
.hero-grid { display: grid; gap: 44px; align-items: center; }
.hero-title { font-size: var(--fs-h1); line-height: 0.98; margin-left: -0.04em; }
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 5vw, 80px); }
  /* Sized to the 7/12 column so the headline always sets on two lines, with ~5% slack for
     font-rendering differences: about 45px at 1024, 54px from roughly 1500 up. */
  .hero-title { font-size: clamp(2.75rem, 3vw + 0.9rem, 3.375rem); }
}
.hero-title .accent { color: var(--accent-text); }
.hero-lede { margin-top: 24px; max-width: 46ch; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); line-height: 1.55; color: var(--muted); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
@media (max-width: 479px) { .hero-ctas .btn { flex: 1 1 100%; } }
.hero-media { margin: 0; }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px; border: 1px solid var(--line-strong); background: var(--bg); }
.mosaic .photo:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.mosaic .photo:not(:first-child) { aspect-ratio: 4 / 3; }
@media (min-width: 1024px) { .mosaic { gap: 10px; padding: 10px; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-title, .hero-lede, .hero-ctas { animation: rise 0.8s var(--ease-out) both; }
  .hero-lede { animation-delay: 0.08s; }
  .hero-ctas { animation-delay: 0.16s; }
  .hero-media { animation: settle 1s var(--ease-out) 0.12s both; }
  @keyframes settle { from { opacity: 0; transform: translateY(12px) scale(0.985); } }
}

/* ---------- Proof band ---------- */
.proof { border-block: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.stat { display: flex; flex-direction: column; gap: 6px; padding: 28px 16px 28px 0; }
.stat:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
.stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
.stat dd { margin: 0; }
.stat-num {
  order: -1;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.75rem, 2rem + 2.6vw, 4.25rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-num span { color: var(--accent-text); }
.stat-label { margin-top: 6px; font-weight: 500; line-height: 1.35; }
.stat-note { font-size: 14px; color: var(--muted); }
@media (min-width: 1024px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stat:nth-child(n) { padding: 40px 28px; border-top: 0; border-left: 1px solid var(--line); }
  .stat:first-child { padding-left: 0; border-left: 0; }
}

/* ---------- Services bento ---------- */
.bento { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.cell { display: flex; flex-direction: column; gap: 12px; min-height: 240px; padding: clamp(22px, 2.4vw, 32px); background: var(--bg); border: 1px solid var(--line-strong); }
.cell .icon { width: 36px; height: 36px; color: var(--accent-text); }
.cell h3 { margin-top: 6px; font-size: clamp(1.5rem, 1.3rem + 0.6vw, 1.875rem); }
.cell p { font-size: 15.5px; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: auto 0 0; padding: 6px 0 0; list-style: none; }
.tag { display: inline-flex; align-items: center; padding: 7px 10px; font-size: 13px; font-weight: 500; line-height: 1; border: 1px solid var(--line-strong); color: var(--text); }
.cell-erp { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.cell-erp .icon { color: var(--on-accent); }
.cell-erp p { color: var(--on-accent); font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem); max-width: 44ch; }
.cell-erp h3 { font-size: clamp(1.875rem, 1.5rem + 1.2vw, 2.75rem); }
.cell-erp .modules-label { margin-top: auto; padding-top: 24px; font-size: 14px; font-weight: 600; }
.modules { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 28px; margin: 6px 0 0; padding: 0; list-style: none; }
.modules li { display: flex; align-items: center; gap: 10px; padding: 9px 0; font-weight: 500; border-top: 1px solid color-mix(in srgb, var(--on-accent) 24%, transparent); }
.cell-erp .modules .icon { width: 16px; height: 16px; }
@media (min-width: 480px) { .modules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cell-tint { background: var(--accent-tint); border-color: transparent; }
.cell-tint p { color: var(--text); }
.cell-tint .tag { border-color: color-mix(in srgb, var(--accent-tint-text) 40%, transparent); color: var(--accent-tint-text); }
.cell-dots { background-color: var(--bg); background-image: radial-gradient(var(--dot) 1px, transparent 1.5px); background-size: 14px 14px; }
.cell-head { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 768px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cell-erp { grid-column: 1 / -1; }
}
/* Desktop: ERP spans two rows on the left; Akuntansi is wide; Gudang and HRIS sit under it;
   Integrasi closes the grid as a full-width horizontal band. */
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .bento .cell:nth-child(1) { grid-column: 1 / 7; grid-row: 1 / 3; }
  .bento .cell:nth-child(2) { grid-column: 7 / 13; grid-row: 1; }
  .bento .cell:nth-child(3) { grid-column: 7 / 10; grid-row: 2; }
  .bento .cell:nth-child(4) { grid-column: 10 / 13; grid-row: 2; }
  .bento .cell:nth-child(5) { grid-column: 1 / 13; grid-row: 3; }
  .cell-band { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) auto; align-items: center; gap: 20px 48px; min-height: 0; }
  .cell-band .cell-head { flex-direction: row; align-items: center; gap: 18px; }
  .cell-band h3 { margin-top: 0; }
  .cell-band .tags { margin: 0; padding: 0; }
}

/* ---------- Industry tabs ---------- */
.tablist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line-strong); border-bottom: 0; }
.tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 10px 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s;
}
.tab + .tab { border-left: 1px solid var(--line-strong); }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--text); background: var(--bg); box-shadow: inset 0 3px 0 var(--accent); }
.tab .icon { width: 22px; height: 22px; }
@media (max-width: 479px) { .tab { flex-direction: column; gap: 6px; } }
.panel { display: grid; gap: 32px; padding: clamp(24px, 4vw, 56px); background: var(--bg); border: 1px solid var(--line-strong); }
.panel + .panel { border-top: 0; }
@media (min-width: 1024px) { .panel { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: start; } }
.panel h3 { font-size: var(--fs-h3); }
.panel p { margin-top: 18px; max-width: 52ch; color: var(--muted); }
.points { margin: 0; padding: 0; list-style: none; }
.points li { display: flex; align-items: center; gap: 14px; padding: 16px 0; font-weight: 500; }
.points li + li { border-top: 1px solid var(--line); }
.points .icon { width: 22px; height: 22px; color: var(--accent-text); }
.also { margin-top: 28px; max-width: 70ch; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .tabs-ready .panel:not([hidden]) { animation: rise 0.45s var(--ease-out) both; }
}

/* ---------- ERP flow simulation ---------- */
.sim { --sim-ms: 4s; background: var(--bg); border: 1px solid var(--line-strong); }
.sim-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--line); }
.sim-bar img { width: 23px; height: 24px; }
.sim-app { font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 1; letter-spacing: 0.04em; text-transform: uppercase; }
.sim-badge { padding: 6px 10px; font-size: 12px; font-weight: 600; line-height: 1; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-text); border: 1px solid currentColor; }
.sim-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-left: auto;
  padding: 0 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-text);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
}
.sim-toggle:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.sim-toggle .icon { width: 18px; height: 18px; }
.sim-toggle .i-play, .sim.is-playing .sim-toggle .i-pause { display: block; }
.sim-toggle .i-pause, .sim.is-playing .sim-toggle .i-play { display: none; }

.sim-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.sim-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  min-height: 64px;
  padding: 10px clamp(8px, 1.6vw, 20px) 13px;
  color: var(--text);
  text-align: left;
  background: var(--bg);
  border: 0;
  cursor: pointer;
  transition: background-color 0.3s;
}
.sim-step + .sim-step { border-left: 1px solid var(--line); }
.sim-step:hover { background: color-mix(in srgb, var(--accent-tint) 55%, var(--bg)); }
.sim-step[aria-selected="true"] { background: var(--accent-tint); }
.sim-step .n { font-size: 12px; font-weight: 600; line-height: 1; letter-spacing: 0.06em; font-variant-numeric: tabular-nums; color: var(--muted); }
.sim-step.is-done .n, .sim-step[aria-selected="true"] .n { color: var(--accent-text); }
.sim-step .t { font-family: var(--font-display); font-weight: 600; font-size: clamp(14px, 1.7vw, 20px); line-height: 1; letter-spacing: 0.03em; text-transform: uppercase; }
.sim-fill { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }
.sim-step.is-done .sim-fill, .sim:not(.is-playing) .sim-step[aria-selected="true"] .sim-fill { transform: scaleX(1); }
.sim.is-playing .sim-step[aria-selected="true"] .sim-fill { animation: sim-fill var(--sim-ms) linear forwards; animation-play-state: paused; }
.sim.is-playing.is-running .sim-step[aria-selected="true"] .sim-fill { animation-play-state: running; }
@keyframes sim-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.sim-body { display: grid; }
@media (min-width: 1024px) { .sim-body { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.sim-side { display: flex; flex-direction: column; gap: 32px; padding: clamp(20px, 3vw, 40px); border-bottom: 1px solid var(--line); }
@media (min-width: 1024px) { .sim-side { border-bottom: 0; border-right: 1px solid var(--line); } }
.sim-copies { display: grid; }
.sim-copy { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 0.4s ease, transform 0.5s var(--ease-out), visibility 0s linear 0.45s; }
.sim-copy.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.sim-label { display: block; font-size: 12px; font-weight: 600; line-height: 1.2; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); }
.sim-copy h3 { margin-top: 12px; font-size: clamp(1.625rem, 1.3rem + 1vw, 2.375rem); }
.sim-copy p { margin-top: 14px; max-width: 44ch; color: var(--muted); }
.sim-log { display: none; }
@media (min-width: 1024px) { .sim-log { display: block; } }
.sim-log-title { margin-bottom: 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.sim-log ol { margin: 0; padding: 0; list-style: none; }
.sim-log li { display: grid; grid-template-columns: 8px 44px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 10px 8px; font-size: 14px; line-height: 1.45; color: var(--muted); border-top: 1px solid var(--line); transition: background-color 0.3s, color 0.3s; }
.sim-log li::before { content: ""; align-self: center; width: 8px; height: 8px; border: 1.5px solid var(--field-border); transition: background-color 0.3s, border-color 0.3s; }
.sim-log li.is-done { color: var(--text); }
.sim-log li.is-done::before { background: var(--accent); border-color: var(--accent); }
.sim-log li.is-current { background: var(--accent-tint); }
.sim-log time { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }

.sim-stage { display: grid; align-items: start; padding: clamp(16px, 3vw, 40px); background: var(--surface); overflow: hidden; }
.sim-panel { grid-area: 1 / 1; background: var(--bg); border: 1px solid var(--line-strong); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity 0.4s ease, transform 0.5s var(--ease-out), visibility 0s linear 0.45s; }
.sim-panel.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.sim-head { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 600; line-height: 1.3; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); }
.sim-head .num { font-size: 13px; letter-spacing: 0.02em; color: var(--text); }
.sim-panel-body { padding: 4px 16px 16px; font-size: 14px; }
.sim-kv { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 10px 0; }
.sim-kv strong { font-weight: 600; }
.sim-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: baseline; padding: 11px 0; border-top: 1px solid var(--line); }
.sim-row .amt { min-width: 8ch; font-weight: 600; text-align: right; }
.sim-row-2 { grid-template-columns: minmax(0, 1fr) auto; }
.sim-total { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; padding-top: 14px; border-top: 1px solid var(--text); }
.sim-k { display: block; font-size: 12px; font-weight: 600; line-height: 1; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.sim-big { display: block; margin-top: 8px; font-family: var(--font-display); font-weight: 600; font-size: 30px; line-height: 1; }
.swap { display: grid; justify-items: end; align-items: center; }
.swap > * { grid-area: 1 / 1; }
.swap-inline { display: inline-grid; }
.swap-inline > * { grid-area: 1 / 1; }
.sim-fake-btn { padding: 10px 16px; font-family: var(--font-display); font-weight: 600; font-size: 14px; line-height: 1; letter-spacing: 0.05em; text-transform: uppercase; background: var(--accent); color: var(--on-accent); }
.tag-accent { background: var(--accent-tint); border-color: transparent; color: var(--accent-tint-text); font-weight: 600; }
.tag-quiet { background: color-mix(in srgb, var(--text) 7%, transparent); border-color: transparent; color: var(--muted); font-weight: 600; }
.stock-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.stock-row strong { display: block; font-weight: 600; }
.stock-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.stock-meta .icon { width: 14px; height: 14px; }
.stock-new { font-weight: 600; color: var(--accent-text); }
.pick { display: grid; gap: 10px; padding-top: 14px; }
.pick-label { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; font-weight: 600; line-height: 1; letter-spacing: 0.08em; text-transform: uppercase; }
.pick-label span:last-child { color: var(--accent-text); }
.pick-bar { height: 4px; background: var(--line); overflow: hidden; }
.pick-bar span { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }
.route { display: grid; gap: 16px; padding: 24px 0 0; }
.route-track { position: relative; height: 40px; margin: 0 18px; }
.route-line, .route-fill { position: absolute; left: 0; right: 0; top: 50%; }
.route-line { height: 1px; background: var(--field-border); }
.route-fill { height: 3px; margin-top: -1px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }
.route-node { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; background: var(--bg); border: 1.5px solid var(--text); }
.route-truck { position: absolute; inset: 0; }
.route-truck span { position: absolute; left: -18px; top: 50%; display: grid; place-items: center; width: 36px; height: 36px; margin-top: -18px; background: var(--accent); color: var(--on-accent); }
.route-truck .icon { width: 20px; height: 20px; }
.route-labels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; font-size: 12px; font-weight: 600; line-height: 1.3; letter-spacing: 0.04em; text-transform: uppercase; }
.route-labels span:nth-child(2) { text-align: center; }
.route-labels span:nth-child(3) { text-align: right; }
.ship-row { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--line); }
.ship-row time { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--accent-text); }
.stamp { padding: 8px 12px; font-family: var(--font-display); font-weight: 600; font-size: 16px; line-height: 1; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-text); border: 2px solid currentColor; opacity: 0; transform: rotate(-4deg) scale(1.4); }
.sim-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sim-table th { padding: 8px 6px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-align: left; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line-strong); }
.sim-table td { padding: 9px 6px; border-bottom: 1px solid var(--line); }
.sim-table .r { text-align: right; }
.reports { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--text); }
.reports-label { margin-right: 4px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }

/* Staged items: hidden until their panel is active, then revealed at their own --at delay. */
.st { opacity: 0; transform: translateY(8px); transition: opacity 0.4s ease, transform 0.5s var(--ease-out); }
.st-pop { transform: scale(0.85); }
.st-out { transition: opacity 0.3s ease; }
.sim-panel.is-active .st { opacity: 1; transform: none; transition-delay: var(--at, 0s); }
.sim-panel.is-active .st-out { opacity: 0; transition-delay: var(--at, 0s); }
.sim-panel.is-active .pick-bar span { transform: scaleX(1); transition: transform 1.6s var(--ease-out) 0.4s; }
.sim-panel.is-active .route-fill { transform: scaleX(1); transition: transform 2.4s cubic-bezier(0.45, 0, 0.55, 1) 0.5s; }
.sim-panel.is-active .route-truck { transform: translateX(100%); transition: transform 2.4s cubic-bezier(0.45, 0, 0.55, 1) 0.5s; }
.sim-panel.is-active .route-node { background: var(--accent); transition: background-color 0.2s ease var(--at, 0s); }
.sim-panel.is-active .stamp { opacity: 1; transform: rotate(-4deg) scale(1); transition: opacity 0.25s ease 1.6s, transform 0.45s cubic-bezier(0.3, 1.5, 0.5, 1) 1.6s; }
@media (prefers-reduced-motion: reduce) {
  .sim *, .sim *::before { transition-duration: 0s !important; transition-delay: 0s !important; animation: none !important; }
}

/* ---------- Process timeline ---------- */
.timeline { position: relative; display: grid; margin: 0; padding: 0; list-style: none; }
.step { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); align-content: start; column-gap: 20px; padding-bottom: 40px; }
.step:last-child { padding-bottom: 0; }
.step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 44px;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  transform-origin: 50% 0;
  transition: transform 0.8s var(--ease-out) calc(var(--d, 0) * 90ms + 0.25s);
}
.step-node {
  position: relative;
  z-index: 1;
  grid-row: 1 / span 4;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--accent-text);
  background: var(--bg);
  border: 1px solid var(--line-strong);
}
.step-dur { margin-top: 2px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-text); }
.step h3 { margin-top: 8px; font-size: clamp(1.5rem, 1.3rem + 0.6vw, 1.875rem); }
.step-desc { margin-top: 10px; max-width: 60ch; color: var(--muted); }
.step-out { margin-top: 12px; font-size: 14px; }
.step-out b { font-weight: 600; }
@media (min-width: 1280px) {
  /* Five columns; subgrid lines up durations, titles and descriptions across all steps. */
  .timeline { grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: repeat(5, auto); column-gap: 28px; }
  .step { grid-row: span 5; grid-template-rows: subgrid; grid-template-columns: minmax(0, 1fr); padding-bottom: 0; }
  .step:not(:last-child)::before { left: 44px; right: -28px; top: 21px; bottom: auto; width: auto; height: 2px; transform-origin: 0 50%; }
  .step-node { grid-row: auto; margin-bottom: 22px; }
}
@media (prefers-reduced-motion: no-preference) {
  .reveal-ready .step:not(.is-in)::before { transform: scaleY(0); }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 1280px) {
  .reveal-ready .step:not(.is-in)::before { transform: scaleX(0); }
}

/* ---------- About ---------- */
.about-media { padding: 8px; border: 1px solid var(--line-strong); }
.about-media .photo { aspect-ratio: 16 / 9; }
@media (min-width: 1024px) { .about-media { padding: 10px; } .about-media .photo { aspect-ratio: 21 / 8; } }
.about-grid { display: grid; gap: 40px; margin-top: clamp(32px, 5vw, 56px); }
@media (min-width: 1024px) { .about-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 72px; } }
.about-copy h2 { font-size: var(--fs-h2); }
.about-copy > p { margin-top: 18px; max-width: 52ch; font-size: var(--fs-lede); color: var(--muted); }
.tech { margin-top: 36px; }
.tech-label { font-size: 14px; font-weight: 500; color: var(--muted); }
.tech-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 22px; margin: 14px 0 0; padding: 0; list-style: none; }
.tech-logos svg { width: 26px; height: 26px; fill: currentColor; color: var(--muted); transition: color 0.2s; }
@media (min-width: 480px) { .tech-logos { gap: 22px 30px; } .tech-logos svg { width: 30px; height: 30px; } }
.tech-logos li:hover svg { color: var(--text); }
.values { margin: 0; padding: 0; list-style: none; }
.value { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 6px 18px; padding: 24px 0; }
.value:first-child { padding-top: 0; }
.value + .value { border-top: 1px solid var(--line); }
.value .icon { grid-row: span 2; width: 32px; height: 32px; color: var(--accent-text); }
.value h3 { font-size: 22px; line-height: 1.1; }
.value p { color: var(--muted); }

/* ---------- Testimonials ---------- */
/* Follows the About section directly, so it only needs half the usual top spacing. */
.testimonials { padding-top: calc(var(--section-y) * 0.4); }
.quotes { display: grid; gap: 40px; }
.quote { margin: 0; }
.quote blockquote { margin: 0; }
.quote-lead blockquote p { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.625rem, 1.2rem + 1.2vw, 2.25rem); line-height: 1.15; }
.quote-stack { display: grid; gap: 32px; }
.quote-stack .quote + .quote { padding-top: 32px; border-top: 1px solid var(--line); }
.quote-stack blockquote p { font-size: clamp(1.1875rem, 1.1rem + 0.3vw, 1.375rem); line-height: 1.45; font-weight: 500; }
@media (max-width: 767px) { .quote-lead blockquote p { font-size: 1.375rem; } }
/* Hanging opening quote marks, once there is enough gutter for them to hang into. */
@media (min-width: 768px) {
  .quote-lead blockquote p { text-indent: -0.32em; }
  .quote-stack blockquote p { text-indent: -0.4em; }
}
.quote figcaption { margin-top: 18px; font-size: 15px; line-height: 1.45; color: var(--muted); }
.quote figcaption strong { display: block; font-weight: 600; color: var(--text); }
@media (min-width: 1024px) {
  .quotes { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0; align-items: center; }
  .quote-lead { padding-right: 56px; }
  .quote-stack { padding-left: 56px; border-left: 1px solid var(--line); }
}

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: 8px; }
@media (min-width: 1024px) {
  .faq-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
  .faq-grid .section-head { position: sticky; top: calc(var(--nav-h) + 32px); margin-bottom: 0; }
}
.faq-list { border-top: 1px solid var(--line-strong); }
.faq { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  gap: 16px;
  align-items: center;
  padding: 20px 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.1875rem, 1.05rem + 0.5vw, 1.4375rem);
  line-height: 1.2;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-text); }
.faq-icon { display: grid; place-items: center; width: 36px; height: 36px; color: var(--text); border: 1px solid var(--line-strong); transition: background-color 0.3s, color 0.3s, border-color 0.3s; }
.faq-icon .icon { width: 16px; height: 16px; transition: transform 0.4s var(--ease-out); }
.faq[open] .faq-icon { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.faq[open] .faq-icon .icon { transform: rotate(45deg); }
.faq-a { max-width: 62ch; padding: 0 52px 22px 0; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) { .faq[open] .faq-a { animation: rise 0.45s var(--ease-out) both; } }

/* ---------- Contact ---------- */
.contact { display: grid; background: var(--bg); border: 1px solid var(--line-strong); }
.contact-info, .contact-main { padding: clamp(24px, 4vw, 48px); }
.contact-info { border-bottom: 1px solid var(--line); }
@media (min-width: 1024px) {
  .contact { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .contact-info { border-bottom: 0; border-right: 1px solid var(--line); }
}
.contact-info h2 { font-size: var(--fs-h2); }
.contact-info > p { margin-top: 18px; max-width: 42ch; color: var(--muted); }
.contact-list { margin: 28px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.contact-list li + li { border-top: 1px solid var(--line); }
.contact-list a, .contact-list .item { display: flex; align-items: center; gap: 14px; padding: 14px 0; font-weight: 500; color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--accent-text); }
.contact-list .icon { width: 22px; height: 22px; color: var(--accent-text); }
.contact-list .icon-ext { width: 16px; height: 16px; margin-left: auto; color: var(--muted); }
.contact-sla { margin-top: 18px; font-size: 14px; color: var(--muted); }

.form { display: grid; gap: 22px; }
.form-row { display: grid; gap: 22px; }
@media (min-width: 640px) { .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: 8px; align-content: start; }
.field > label, .group legend { padding: 0; font-size: 15px; font-weight: 500; color: var(--text); }
.req { margin-left: 6px; font-size: 13px; font-weight: 400; color: var(--muted); }
.input {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  caret-color: var(--accent);
  background: var(--raised);
  border: 1px solid var(--field-border);
  border-radius: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input::placeholder { color: var(--placeholder); opacity: 1; }
.input:hover { border-color: var(--text); }
.input:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
.input[aria-invalid="true"] { border-color: var(--danger); }
textarea.input { min-height: 132px; resize: vertical; }
.help { font-size: 14px; color: var(--muted); }
.field-error { font-size: 14px; font-weight: 500; color: var(--danger); }
.field-error:empty { display: none; }
.group { min-width: 0; margin: 0; padding: 0; border: 0; }
.group .help { margin-top: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { position: relative; }
.chip input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.chip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  border: 1px solid var(--field-border);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.chip span:hover { border-color: var(--text); }
.chip .icon { display: none; width: 16px; height: 16px; }
.chip input:checked + span { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.chip input:checked + span .icon { display: block; }
.chip input:focus-visible + span { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding-top: 4px; }
.form-success { display: grid; justify-items: start; gap: 14px; padding: 8px 0; }
.form-success > .icon { width: 52px; height: 52px; color: var(--accent-text); }
.form-success h3 { font-size: clamp(1.75rem, 1.5rem + 0.8vw, 2.25rem); }
.form-success p { max-width: 42ch; color: var(--muted); }
.form-success .form-actions { margin-top: 6px; }

/* ---------- Footer ---------- */
.site-footer { padding-top: clamp(48px, 6vw, 80px); background: var(--surface); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; }
.footer-brand, .footer-contact { grid-column: 1 / -1; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .footer-contact { grid-column: auto; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); } .footer-brand { grid-column: auto; } }
.footer-brand img { height: 40px; width: auto; }
.footer-brand p { margin-top: 18px; max-width: 36ch; color: var(--muted); }
.footer-h { margin-bottom: 14px; font-size: 15px; letter-spacing: 0.08em; color: var(--muted); }
.footer-links { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.footer-links a:hover { color: var(--accent-text); text-decoration: underline; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-block: 20px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); }
.footer-base a { color: var(--muted); }
.footer-base a:hover { color: var(--accent-text); }

/* ---------- Scroll reveal (only when JS has wired the observer and motion is allowed) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal-ready [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
  .reveal-ready [data-reveal].is-in { opacity: 1; transform: none; }
}
