/* is-land Systems — "Night chart" design system
   Layout: a nautical chart of data islands; streams are shipping routes.
   Dark-first (night chart), with a day-chart light theme. */

:root {
  /* night chart (default) */
  --sea: #0a1e2c;        /* deep water, page ground */
  --sea-2: #0f2a3c;      /* shoal water, raised surfaces */
  --rule: #1f4259;       /* depth contours, hairlines */
  --land: #d3bd7c;       /* chart buff, islands & highlights */
  --land-ink: #d9c385;   /* buff used as text */
  --ink: #e6edec;        /* primary text */
  --mist: #8fa7b3;       /* secondary text */
  --route: #f26a2e;      /* is-land orange, routes & actions */
  --route-ink: #1c0a02;  /* text on orange */
  --tile: #ffffff;       /* logos keep their own colours on white tiles */
  --tile-edge: transparent;
  --logo-dark: inline-block; --logo-light: none;
  --code-bg: #071621;

  --f-display: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --f-body: "Archivo", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  --f-code: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --s-1: .8125rem;  /* 13 */
  --s0: 1rem;       /* 16 */
  --s1: 1.3125rem;  /* 21 */
  --s2: 1.75rem;    /* 28 */
  --s3: 2.375rem;   /* 38 */
  --s4: 3.125rem;   /* 50 */

  --wrap: 1200px;
  --gut: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --sea: #f4f6f2; --sea-2: #dcebf1; --rule: #b9cfd9; --land: #e7d49a; --land-ink: #85661a;
    --ink: #10293a; --mist: #4f6b7a; --route: #c2470f; --route-ink: #ffffff; --tile: #ffffff; --tile-edge: #cfdde4; --logo-dark: none; --logo-light: inline-block; --code-bg: #0f2a3c;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --sea: #f4f6f2; --sea-2: #dcebf1; --rule: #b9cfd9; --land: #e7d49a; --land-ink: #85661a;
  --ink: #10293a; --mist: #4f6b7a; --route: #c2470f; --route-ink: #ffffff; --tile: #ffffff; --tile-edge: #cfdde4; --logo-dark: none; --logo-light: inline-block; --code-bg: #0f2a3c;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--sea); color: var(--ink);
  font-family: var(--f-body); font-size: var(--s0); line-height: 1.8;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--route); outline-offset: 3px; border-radius: 2px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--route); color: var(--route-ink); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--f-display); font-weight: 900; line-height: 1.25; margin: 0; text-wrap: balance; letter-spacing: .01em; }
h1 { font-size: clamp(2.25rem, 5.2vw, 4.25rem); line-height: 1.18; }
h2 { font-size: clamp(1.75rem, 3.4vw, var(--s4)); }
h3 { font-size: var(--s1); font-weight: 700; line-height: 1.4; }
p { margin: 0; }
.lede { font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); color: var(--mist); max-width: 40em; }
.small { font-size: var(--s-1); color: var(--mist); line-height: 1.7; }
.latin { font-family: "Archivo", sans-serif; font-variation-settings: "wdth" 87; letter-spacing: .02em; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  background: color-mix(in srgb, var(--sea) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-head .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; padding: 8px 12px; font-size: .95rem; color: var(--mist); border-radius: 6px; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--route); border-radius: 0; }
.nav .btn { margin-left: 10px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--rule); color: var(--ink); border-radius: 6px; padding: 8px 12px; font: inherit; font-size: .9rem; cursor: pointer; }
@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
         background: var(--sea); border-bottom: 1px solid var(--rule); padding: 8px var(--gut) 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--rule); border-radius: 0; font-size: 1.05rem; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--route); padding-left: 14px; }
  .nav .btn { margin: 16px 0 0; text-align: center; justify-content: center; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; cursor: pointer;
  font: inherit; font-weight: 600; font-size: .95rem; line-height: 1;
  padding: 14px 22px; border-radius: 999px; border: 1px solid transparent;
}
.btn-route { background: var(--route); color: var(--route-ink); }
.btn-route:hover { filter: brightness(1.08); }
.btn-line { border-color: var(--rule); color: var(--ink); }
.btn-line:hover { border-color: var(--mist); }
.nav .btn-route { color: var(--route-ink); padding: 11px 18px; }

/* ---------- hero chart ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--rule); }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 620px) 1fr; padding-block: clamp(64px, 10vw, 128px) clamp(96px, 12vw, 150px); pointer-events: none; }
.nb { display: inline-block; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.9rem); }
.hero-copy { display: grid; gap: 24px; pointer-events: auto; }
.hero-copy .lede { color: var(--ink); opacity: .82; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.chart-legend { position: absolute; left: var(--gut); bottom: 18px; font-size: .75rem; color: var(--mist); display: flex; gap: 20px; flex-wrap: wrap; pointer-events: none; }
.chart-legend .key { display: inline-flex; align-items: center; gap: 8px; }
.chart-legend i { display: inline-block; width: 22px; height: 0; border-top: 2px dashed var(--route); }
.chart-legend i.land { width: 12px; height: 12px; border: 1px solid var(--land); background: color-mix(in srgb, var(--land) 30%, transparent); border-radius: 50%; }
@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; padding-block: 48px 300px; }
  .hero-copy { background: color-mix(in srgb, var(--sea) 70%, transparent); }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section + .section { border-top: 1px solid var(--rule); }
.section-head { display: grid; gap: 16px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.tint { background: var(--sea-2); }

/* proof row */
.proof { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--rule); }
.proof > div { padding: 28px 24px 30px; border-left: 1px solid var(--rule); display: grid; gap: 6px; align-content: start; }
.proof > div:first-child { border-left: 0; padding-left: 0; }
.proof b { font-family: var(--f-display); font-size: var(--s2); font-weight: 900; line-height: 1.2; color: var(--land-ink); }
.proof p { font-size: .92rem; color: var(--mist); line-height: 1.7; }
@media (max-width: 860px) {
  .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof > div { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); }
  .proof > div:nth-child(-n+2) { border-top: 0; }
  .proof > div:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--rule); }
}

/* problem → approach rows */
.rows { border-top: 1px solid var(--rule); }
.row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) minmax(0, .85fr); gap: 32px; padding-block: 28px; border-bottom: 1px solid var(--rule); text-decoration: none; align-items: baseline; }
.row h3 { font-family: var(--f-display); font-size: var(--s1); }
.row p { color: var(--mist); }
.row:hover h3 { color: var(--land-ink); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: .78rem; line-height: 1; padding: 7px 10px; border: 1px solid var(--rule); border-radius: 999px; color: var(--ink); white-space: nowrap; }
.tag.own { border-color: var(--land); color: var(--land-ink); }
@media (max-width: 860px) { .row { grid-template-columns: 1fr; gap: 10px; } }

/* route / waypoints */
.route { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; margin-top: 12px; }
.route::before { content: ""; position: absolute; left: 0; right: 0; top: 15px; border-top: 2px dashed var(--route); opacity: .7; }
.wp { position: relative; padding-right: 18px; display: grid; gap: 8px; align-content: start; }
.wp-dot { width: 32px; height: 32px; border-radius: 50%; background: var(--sea); border: 2px solid var(--route); display: grid; place-items: center; font-size: .78rem; font-weight: 700; color: var(--route); position: relative; font-variant-numeric: tabular-nums; }
.tint .wp-dot { background: var(--sea-2); }
.wp h3 { font-size: 1.05rem; margin-top: 6px; }
.wp p { font-size: .88rem; color: var(--mist); line-height: 1.7; }
.wp .tags { margin-top: 4px; }
@media (max-width: 900px) {
  .route { grid-template-columns: 1fr; gap: 26px; }
  .route::before { left: 15px; right: auto; top: 0; bottom: 0; border-top: 0; border-left: 2px dashed var(--route); }
  .wp { grid-template-columns: 32px 1fr; column-gap: 18px; padding-right: 0; }
  .wp-dot { grid-row: span 4; }
  .wp h3 { margin-top: 2px; }
}

/* Hare spotlight */
.spot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (min-width: 901px) { .spot > figure { margin-top: 150px !important; position: sticky; top: 110px; } }
.spot-title { display: flex; align-items: center; gap: 16px; margin-top: 18px; flex-wrap: wrap; }
.spot-title img { width: clamp(72px, 9vw, 108px); height: auto; }
.spot-name { font-family: "Archivo", sans-serif; font-variation-settings: "wdth" 100; font-weight: 800; font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 1.05; letter-spacing: -.02em; color: var(--land-ink); }
.feat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; margin-top: 28px; }
.feat div { border-top: 1px solid var(--rule); padding-top: 14px; }
.feat h3 { font-family: var(--f-body); font-size: 1rem; font-weight: 700; }
.feat p { font-size: .9rem; color: var(--mist); margin-top: 4px; line-height: 1.7; }
.code { background: var(--code-bg); color: #d8e4e6; border-radius: 10px; border: 1px solid var(--rule); overflow: hidden; min-width: 0; }
.code-bar { display: flex; justify-content: space-between; gap: 12px; padding: 12px 18px; font-size: .78rem; color: #8fa7b3; border-bottom: 1px solid #1f4259; flex-wrap: wrap; }
.code pre { margin: 0; padding: 20px 18px 24px; overflow-x: auto; font-family: var(--f-code); font-size: .84rem; line-height: 1.75; }
.code .k { color: #f58cbd; } .code .s { color: #d3bd7c; } .code .c { color: #6f8c99; } .code .t { color: #9fd6e0; }
.code-out { border-top: 1px solid #1f4259; padding: 12px 18px; font-size: .8rem; color: #8fa7b3; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .spot { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .feat { grid-template-columns: 1fr; } }

/* product index (partners strip) */
.prod-groups { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 48px; }
.prod-groups h3 { font-family: var(--f-body); font-size: .95rem; font-weight: 600; color: var(--mist); padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
@media (max-width: 760px) { .prod-groups { grid-template-columns: 1fr; gap: 40px; } }

/* industries */
.ind { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 40px; }
.ind div { display: grid; gap: 8px; align-content: start; }
.ind h3 { font-size: 1.2rem; }
.ind p { color: var(--mist); font-size: .95rem; }
@media (max-width: 860px) { .ind { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .ind { grid-template-columns: 1fr; } }

/* clients */
/* news */
.news { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.news article { display: grid; gap: 10px; align-content: start; border-top: 2px solid var(--land); padding-top: 18px; }
.news time, .news-list time { font-size: .82rem; color: var(--mist); font-variant-numeric: tabular-nums; }
.news h3 { font-size: 1.15rem; }
.news p { color: var(--mist); font-size: .93rem; }
@media (max-width: 860px) { .news { grid-template-columns: 1fr; gap: 28px; } }

/* CTA band */
.cta-band { background: var(--sea-2); border-top: 1px solid var(--rule); }
.cta-band .wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: end; padding-block: clamp(56px, 8vw, 96px); }
.cta-band .contact-lines { display: grid; gap: 4px; font-size: .95rem; color: var(--mist); }
.cta-band .contact-lines b { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) { .cta-band .wrap { grid-template-columns: 1fr; } }

/* page header (inner pages) */
.page-head { border-bottom: 1px solid var(--rule); position: relative; overflow: hidden; }
.page-head .wrap { padding-block: clamp(56px, 8vw, 104px) clamp(40px, 6vw, 72px); display: grid; gap: 20px; position: relative; }
.page-head canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.crumb { font-size: .85rem; color: var(--mist); }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--ink); }

/* long-form blocks (inner pages) */
.block { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); padding-block: clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--rule); scroll-margin-top: 80px; }
.block:last-child { border-bottom: 0; }
.block-side { display: grid; gap: 14px; align-content: start; }
.block-side .tags { margin-top: 4px; }
.block-body { display: grid; gap: 22px; align-content: start; }
.block-body > p { max-width: 42em; }
.block-body h4 { margin: 0; font-size: 1rem; font-weight: 700; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { padding-left: 22px; position: relative; color: var(--mist); max-width: 42em; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .78em; width: 10px; border-top: 2px solid var(--route); }
.ticks li b { color: var(--ink); font-weight: 600; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.two > div { display: grid; gap: 10px; align-content: start; }
.kicker { font-family: var(--f-display); font-size: 1.05rem; font-weight: 700; color: var(--land-ink); }
@media (max-width: 860px) { .block, .two { grid-template-columns: 1fr; } }
@media (min-width: 861px) { .block-side { position: sticky; top: 100px; align-self: start; } }

/* local index (jump links) */
.jump { display: flex; flex-wrap: wrap; gap: 8px; }
.jump a { text-decoration: none; font-size: .88rem; padding: 8px 14px; border: 1px solid var(--rule); border-radius: 999px; color: var(--mist); }
.jump a:hover { color: var(--ink); border-color: var(--mist); }

/* product sheet */
.sheet-meta { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; font-size: .9rem; margin: 0; }
.sheet-meta dt { color: var(--mist); }
.sheet-meta dd { margin: 0; }
.own-badge { display: inline-block; font-size: .78rem; padding: 6px 10px; border-radius: 999px; background: var(--land); color: #1d1606; font-weight: 700; line-height: 1; justify-self: start; }
.partner-badge { display: inline-block; font-size: .78rem; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--rule); color: var(--mist); line-height: 1; justify-self: start; }
.prod-name { font-family: "Archivo", sans-serif; font-variation-settings: "wdth" 100; font-weight: 800; font-size: clamp(2rem, 3.6vw, 2.8rem); line-height: 1.05; letter-spacing: -.02em; }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px dashed var(--route); }
.timeline li { position: relative; padding: 0 0 34px 28px; display: grid; gap: 4px; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--sea); border: 2px solid var(--route); }
.timeline time { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--land-ink); }
.timeline p { color: var(--mist); max-width: 40em; }
.timeline li:last-child { padding-bottom: 0; }

/* offices */
.offices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.office { border: 1px solid var(--rule); border-radius: 12px; padding: 26px; display: grid; gap: 10px; align-content: start; }
.office h3 { font-size: 1.2rem; }
.office .coord { font-size: .8rem; color: var(--mist); font-variant-numeric: tabular-nums; }
.office dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; font-size: .95rem; }
.office dt { color: var(--mist); }
.office dd { margin: 0; }
@media (max-width: 760px) { .offices { grid-template-columns: 1fr; } }

/* news list page */
.year-group { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 24px; padding-block: 34px; border-bottom: 1px solid var(--rule); }
.year-group > h2 { font-family: "Archivo", sans-serif; font-variation-settings: "wdth" 100; font-weight: 800; font-size: var(--s3); color: var(--land-ink); line-height: 1; }
.news-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.news-list li { display: grid; gap: 4px; }
.news-list h3 { font-size: 1.1rem; }
.news-list p { color: var(--mist); font-size: .95rem; max-width: 46em; }
@media (max-width: 640px) { .year-group { grid-template-columns: 1fr; gap: 14px; } }

/* form */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .9rem; color: var(--mist); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--sea); border: 1px solid var(--rule); border-radius: 8px; padding: 12px 14px; width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--route); outline-offset: 1px; border-color: transparent; }
.form-note { grid-column: 1 / -1; font-size: .88rem; color: var(--mist); }
.form-status { grid-column: 1 / -1; padding: 14px 16px; border-left: 3px solid var(--land); background: var(--sea); font-size: .95rem; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-panel { background: var(--sea-2); border: 1px solid var(--rule); border-radius: 14px; padding: clamp(22px, 3vw, 36px); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--rule); padding-block: 56px 40px; font-size: .9rem; color: var(--mist); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 36px; }
.foot-grid h4 { margin: 0 0 12px; color: var(--ink); font-size: .95rem; font-weight: 600; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { color: var(--ink); }
.foot-base { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .82rem; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- logos ---------- */
.brand img { height: 38px; width: auto; }
.site-foot .brand img { height: 64px; }
.logo-dark { display: var(--logo-dark); }
.logo-light { display: var(--logo-light); }

.client-groups { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.client-group { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; padding-block: 30px; border-bottom: 1px solid var(--rule); align-items: start; }
.client-group h3 { padding-top: 6px; }
.client-group h3 { font-family: var(--f-body); font-size: .95rem; font-weight: 600; color: var(--mist); }
.logo-wall { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 22px 14px; }
.client { display: grid; gap: 9px; align-content: start; }
.client-name { font-size: .8rem; line-height: 1.45; color: var(--mist); text-align: center; text-wrap: balance; }
.client:hover .client-name { color: var(--ink); }
.tile { background: var(--tile); border: 1px solid var(--tile-edge); border-radius: 10px; height: 80px; padding: 10px 14px; display: flex; align-items: center; justify-content: center; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
.client:hover .tile { transform: translateY(-4px); box-shadow: 0 14px 28px -16px rgba(0, 0, 0, .55); }
.tile img, .chip img { max-width: 100%; height: auto; }
.chip { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--tile); border: 1px solid var(--tile-edge); border-radius: 8px; padding: 8px 14px; min-height: 54px; min-width: 146px; }
.logo-row .chip { min-width: 0; min-height: 42px; padding: 6px 10px; }
.block-body .two .chip { margin-bottom: 8px; }
@media (max-width: 760px) {
  .client-group { grid-template-columns: 1fr; gap: 18px; }
  .logo-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

.partner-list { list-style: none; margin: 0; padding: 0; }
.partner-list li { border-bottom: 1px solid var(--rule); }
.partner-list a { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; text-decoration: none; min-height: 78px; }
.partner-list span { font-size: .88rem; color: var(--mist); text-align: right; }
.partner-list a:hover span { color: var(--ink); }

.stack { margin-top: 26px; display: grid; gap: 10px; }
.logo-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; }
.prod-logo { margin-top: 8px; }

/* ---------- code result ---------- */
.code-result { border-top: 1px solid #1f4259; padding: 14px 18px 4px; overflow-x: auto; }
.code-result table { border-collapse: collapse; width: 100%; font-family: var(--f-code); font-size: .8rem; color: #d8e4e6; font-variant-numeric: tabular-nums; }
.code-result th { text-align: left; color: #8fa7b3; font-weight: 500; padding: 4px 10px 6px 0; border-bottom: 1px solid #1f4259; }
.code-result td { padding: 6px 10px 6px 0; border-bottom: 1px solid #12324a; white-space: nowrap; }
.code-result td.n, .code-result th.n { text-align: right; }

/* ---------- motion ----------
   Armed only when the inline head script adds .motion (JS present, motion allowed),
   so the page reads complete without it. */
.motion [data-r] { opacity: 0; transform: translate3d(0, 30px, 0); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1), clip-path 1s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 70ms); will-change: opacity, transform; }
.motion [data-r="left"] { transform: translate3d(-36px, 0, 0); }
.motion [data-r="pop"] { transform: translate3d(0, 18px, 0) scale(.9); }
.motion [data-r="title"] { clip-path: inset(0 0 100% 0); transform: translate3d(0, 46px, 0); }
.motion [data-r].in { opacity: 1; transform: none; clip-path: none; }
.motion [data-r="title"].in { clip-path: inset(-20% -20% -20% -20%); }

/* hero entrance */
@keyframes rise { from { opacity: 0; transform: translate3d(0, 40px, 0); } to { opacity: 1; transform: none; } }
.motion .hero h1 .nb, .motion .hero .lede, .motion .hero-cta, .motion .chart-legend { animation: rise 1.1s cubic-bezier(.2,.7,.2,1) both; }
.motion .hero h1 .nb:nth-child(2) { animation-delay: .14s; }
.motion .hero .lede { animation-delay: .32s; }
.motion .hero-cta { animation-delay: .48s; }
.motion .chart-legend { animation-delay: 1.4s; }
.motion .page-head h1 .nb, .motion .page-head .lede, .motion .crumb { animation: rise 1s cubic-bezier(.2,.7,.2,1) both; }
.motion .page-head h1 .nb:nth-child(2) { animation-delay: .12s; }
.motion .page-head .lede { animation-delay: .28s; }
.hero .wrap, .hero canvas { will-change: transform; }

/* reading progress drawn as a route under the header */
.scroll-route { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--route); transform-origin: 0 50%; transform: scaleX(var(--sp, 0)); }
.site-head { transition: box-shadow .3s, background-color .3s; }
.site-head.scrolled { box-shadow: 0 10px 30px -20px rgba(0, 0, 0, .7); }

/* the transaction's journey lights up as you scroll */
.route::after { content: ""; position: absolute; left: 0; right: 0; top: 15px; border-top: 2px solid var(--route); transform-origin: 0 50%; transform: scaleX(0); opacity: 0; }
.motion .route::after { opacity: 1; transform: scaleX(var(--p, 0)); }
.packet { display: none; }
.motion .packet { display: block; position: absolute; top: 9px; left: calc(var(--p, 0) * (100% - 14px)); width: 14px; height: 14px; border-radius: 50%; background: var(--route); box-shadow: 0 0 0 6px color-mix(in srgb, var(--route) 22%, transparent), 0 0 22px var(--route); z-index: 2; pointer-events: none; }
.wp-dot { transition: background-color .4s, color .4s, box-shadow .4s, transform .4s; }
.motion .wp.lit .wp-dot { background: var(--route); color: var(--route-ink); box-shadow: 0 0 0 6px color-mix(in srgb, var(--route) 20%, transparent); transform: scale(1.08); }
.motion .wp h3, .motion .wp p { transition: opacity .5s; }
.motion .wp:not(.lit) h3, .motion .wp:not(.lit) p { opacity: .45; }
@media (max-width: 900px) {
  .route::after { left: 15px; right: auto; top: 0; bottom: 0; border-top: 0; border-left: 2px solid var(--route); transform-origin: 50% 0; }
  .motion .route::after { transform: scaleY(var(--p, 0)); }
  .motion .packet { left: 9px; top: calc(var(--p, 0) * (100% - 14px)); }
}

/* timeline line draws with the scroll */
.timeline { position: relative; }
.timeline::after { content: ""; position: absolute; left: -2px; top: 0; width: 2px; height: 100%; background: var(--route); transform-origin: 50% 0; transform: scaleY(0); opacity: 0; }
.motion .timeline::after { opacity: 1; transform: scaleY(var(--p, 0)); }
.timeline li::before { transition: background-color .4s, transform .4s; }
.motion .timeline li.lit::before { background: var(--route); transform: scale(1.15); }

/* SQL types itself in, then the result rows land */
.motion .code .ln { opacity: 0; transform: translateX(-10px); display: inline-block; transition: opacity .3s, transform .3s; transition-delay: calc(var(--i, 0) * 140ms + 250ms); }
.motion .code.in .ln { opacity: 1; transform: none; }
.motion .code-result tr, .motion .code-out { opacity: 0; transition: opacity .5s; transition-delay: calc(var(--i, 0) * 120ms + 1.7s); }
.motion .code.in .code-result tr, .motion .code.in .code-out { opacity: 1; }

/* tags and chips arrive in a ripple */
.motion .row .tag { opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s; transition-delay: calc(var(--i, 0) * 80ms + .35s); }
.motion .row.in .tag { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .motion [data-r], .motion .code .ln, .motion .code-result tr, .motion .row .tag { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
  .motion .hero *, .motion .page-head * { animation: none !important; }
}

/* ---------- news cards, list rows, articles ---------- */
.news-link { display: grid; gap: 10px; text-decoration: none; align-content: start; }
.news-pic { display: block; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--sea-2); border: 1px solid var(--rule); margin-bottom: 6px; }
.news-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.news-pic-empty { background: repeating-linear-gradient(135deg, var(--sea-2) 0 12px, color-mix(in srgb, var(--rule) 40%, var(--sea-2)) 12px 13px); }
.news-link:hover .news-pic img { transform: scale(1.05); }
.news-link:hover h3 { color: var(--land-ink); }
.more { font-size: .85rem; color: var(--route); font-weight: 600; }
.news article { border-top: 0; padding-top: 0; }

.news-list { gap: 4px; }
.news-row { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 22px; padding: 14px; margin-inline: -14px; border-radius: 12px; text-decoration: none; align-items: start; transition: background-color .3s; }
a.news-row:hover { background: var(--sea-2); }
a.news-row:hover h3 { color: var(--land-ink); }
.row-pic { display: block; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: var(--sea-2); border: 1px solid var(--rule); }
.row-pic img { width: 100%; height: 100%; object-fit: cover; }
.row-pic-empty { background: repeating-linear-gradient(135deg, var(--sea-2) 0 10px, color-mix(in srgb, var(--rule) 40%, var(--sea-2)) 10px 11px); }
.row-text { display: grid; gap: 4px; min-width: 0; }
@media (max-width: 640px) { .news-row { grid-template-columns: 110px minmax(0, 1fr); gap: 14px; } .news-row p { display: none; } }

.art-head .wrap { gap: 14px; }
.art-date { font-size: .9rem; color: var(--land-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.art-title { font-size: clamp(1.9rem, 3.6vw, 3rem); max-width: 22em; }
.art { padding-top: clamp(40px, 6vw, 72px); }
.art-grid { display: grid; grid-template-columns: minmax(0, 46em) 1fr; gap: 48px; }
.art-body { display: grid; gap: 18px; align-content: start; }
.art-body p { font-size: 1.05rem; line-height: 1.95; overflow-wrap: anywhere; }
.art-body a { color: var(--route); }
.art-sub { font-family: var(--f-body); font-size: 1.05rem; color: var(--land-ink); margin-top: 10px; }
.art-lead { margin: 0 0 10px; }
.zoom { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; width: 100%; border-radius: 12px; overflow: hidden; }
.art-lead img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--rule); }
.art-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-top: 14px; }
.art-gallery .zoom { aspect-ratio: 4 / 3; border: 1px solid var(--rule); }
.art-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.art-gallery .zoom:hover img { transform: scale(1.06); }
.art-side { align-self: start; position: sticky; top: 100px; }
.art-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--rule); }
.art-nav a { display: grid; gap: 4px; text-decoration: none; padding: 16px 18px; border: 1px solid var(--rule); border-radius: 12px; font-weight: 600; line-height: 1.5; }
.art-nav a span { font-size: .8rem; color: var(--mist); font-weight: 500; }
.art-nav a.older { text-align: right; }
.art-nav a:hover { border-color: var(--route); }
@media (max-width: 860px) { .art-grid { grid-template-columns: 1fr; } .art-side { position: static; } .art-nav { grid-template-columns: 1fr; } .art-nav a.older { text-align: left; } }

.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(4, 12, 18, .92); display: grid; place-items: center; padding: 48px 16px; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.8); animation: lb-in .35s cubic-bezier(.2,.7,.2,1); }
@keyframes lb-in { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.lb-close { position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); right: 16px; font: inherit; color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 8px 16px; cursor: pointer; }

/* ---------- company facts, certifications ---------- */
.facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0; border-top: 1px solid var(--rule); }
.facts > div { padding: 16px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 2px; }
.facts dt { font-size: .82rem; color: var(--mist); }
.facts dd { margin: 0; font-weight: 600; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.facts dd .small { font-weight: 400; }
.certs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.cert { display: flex; align-items: center; gap: 18px; padding: 16px; border: 1px solid var(--rule); border-radius: 14px; background: var(--sea); }
.cert-mark { flex-shrink: 0; width: 146px; height: 86px; border-radius: 8px; background: var(--tile); border: 1px solid var(--tile-edge); display: grid; place-items: center; overflow: hidden; }
.cert-mark img { max-width: 92%; max-height: 92%; width: auto; height: auto; }
.cert-mark.dark { background: #16110a; }
.cert .chip { width: 146px; min-width: 146px; height: 86px; }
.cert-text { display: grid; gap: 2px; }
.cert-text b { font-size: 1.05rem; }
.cert-text span { font-size: .88rem; color: var(--mist); line-height: 1.6; }
.foot-cert { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.foot-cert img { background: #fff; border-radius: 3px; padding: 2px; }
.foot-cert:hover { color: var(--ink); }

/* logo-like news covers are shown whole on white */
.fit-contain { background: #fff; }
.fit-contain img { object-fit: contain !important; padding: 8% 10%; }
.art-lead.fit-contain { border-radius: 12px; }
.art-lead.fit-contain img { max-height: 340px; padding: 24px; border: 0; }

/* client wall folds on phones; the button only appears when JS can unfold it */
.show-all { margin-top: 22px; }
@media (max-width: 760px) {
  .client-groups.folded .client-group:nth-child(n+2) .client:nth-child(n+5),
  .client-groups.folded .client-group:first-child .client:nth-child(n+7) { display: none; }
}
@media (min-width: 761px) { .show-all { display: none !important; } }

/* route line runs behind the waypoint numbers */
.route::before, .route::after { z-index: 0; }
.wp-dot { z-index: 2; }
.motion .packet { z-index: 1; }
.route .wp { z-index: 1; }

/* contact hand-off choices */
.form-status b { display: block; margin-bottom: 12px; }
.fo-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.fo-btns .btn { padding: 11px 16px; font-size: .9rem; }
.form-status small { color: var(--mist); font-size: .85rem; }
.fo-to { color: var(--ink); user-select: all; }
.btn-line { background: transparent; color: var(--ink); }
.map-link { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--route) 55%, transparent); text-underline-offset: 4px; transition: color .2s, text-decoration-color .2s; }
.map-link::after { content: "↗"; display: inline-block; margin-left: 4px; font-size: .8em; color: var(--route); transition: transform .2s; }
.map-link:hover { color: var(--route); text-decoration-color: var(--route); }
.map-link:hover::after { transform: translate(2px, -2px); }
.btn.ext::after { content: "↗"; margin-left: 6px; font-size: .9em; color: var(--route); transition: transform .2s; display: inline-block; }
.btn.ext:hover::after { transform: translate(2px, -2px); }

/* ---------- services: on-site staffing ---------- */
.staff-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.staff-modes > div { border-top: 2px solid var(--route); padding-top: 22px; display: grid; gap: 10px; align-content: start; }
.staff-modes .sm-no { font-family: var(--f-display); font-size: 2.4rem; line-height: 1; color: var(--route); font-variant-numeric: tabular-nums; }
.staff-modes h3 { font-size: 1.3rem; }
.staff-modes p { color: var(--mist); margin: 0; }
.staff-train-head { display: grid; gap: 6px; margin: clamp(56px, 7vw, 88px) 0 28px; }
.staff-train-head h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
.staff-train-head p { color: var(--mist); margin: 0; }
.staff-train { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; position: relative; }
.staff-train > div { position: relative; border: 1px solid var(--rule); border-radius: 14px; padding: 22px 20px 24px; display: grid; gap: 12px; align-content: start;
  background: color-mix(in srgb, var(--ink) 3%, transparent); }
.staff-train .st-when { margin: 0; font-size: .8rem; font-weight: 700; letter-spacing: .08em; color: var(--route); display: flex; align-items: center; gap: 8px; }
.staff-train .st-when::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--route); box-shadow: 0 0 0 4px color-mix(in srgb, var(--route) 22%, transparent); }
.staff-train h4 { font-size: 1.12rem; margin: 0; font-family: var(--f-display); }
.staff-train .ticks { gap: 8px; font-size: .94rem; }
@media (max-width: 1000px) { .staff-train { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .staff-modes, .staff-train { grid-template-columns: 1fr; } }

/* ---------- home: staffing entry ---------- */
.home-staff .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.hs-intro { display: grid; gap: 16px; align-content: start; }
.hs-intro .hero-cta { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }
.hs-detail { display: grid; gap: 28px; }
.hs-modes { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.hs-modes li { display: grid; grid-template-columns: 11em 1fr; gap: 16px; align-items: baseline; padding: 18px 0 18px 18px; border-bottom: 1px solid var(--rule); position: relative; }
.hs-modes li::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 2px; background: var(--route); transform-origin: top; }
.hs-modes b { font-family: var(--f-display); font-size: 1.12rem; font-weight: 700; }
.hs-modes span { color: var(--mist); }
.hs-train p { margin: 0 0 12px; font-size: .85rem; font-weight: 700; letter-spacing: .06em; color: var(--mist); }
.hs-train ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; counter-reset: none; }
.hs-train li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid var(--rule); border-radius: 999px; font-size: .92rem; }
.hs-train li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--route); }
.hs-train li + li { position: relative; }
@media (max-width: 900px) { .home-staff .wrap { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .hs-modes li { grid-template-columns: 1fr; gap: 4px; } }
