/* ==========================================================================
   OnBoardIT - site styles
   Layout concept: "service desk" - a dark job-board panel opens the page,
   then calm, airy content with monospace readouts as the technical detail.
   ========================================================================== */

@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2-variations"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-latin-wght-normal.woff2") format("woff2-variations"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2-variations"); font-weight: 100 800; font-display: swap; }

:root {
  /* colour - light */
  --bg: #F3F5F7;
  --surface: #FFFFFF;
  --surface-2: #E9EEF2;
  --ink: #0D1B26;
  --muted: #4F6070;
  --line: #D6DEE5;
  --ocean: #0A6B78;          /* Indian Ocean teal - primary */
  --ocean-soft: #DDEFF1;
  --on-ocean: #FFFFFF;
  --sun: #D9262D;            /* OnBoardIT power-button red - action colour */
  --sun-soft: #FBE4E4;
  --sun-deep: #B01C22;
  --sun-ink: #FFFFFF;
  --sun-bright: #FF535A;     /* red on the dark desk panels */
  --amber: #F5A524;          /* "scheduled / after hours" status */
  --ok: #16874A;
  --shadow: 0 1px 2px rgba(13, 27, 38, .06), 0 12px 32px -12px rgba(13, 27, 38, .18);

  /* the "night desk" panels stay dark in both themes */
  --night: #0B1520;
  --night-2: #111F2D;
  --night-line: #22364A;
  --night-ink: #E8EFF5;
  --night-muted: #93A7B9;
  --glow: #3FC5D3;
  --led-ok: #3DDC84;
  
  /* type */
  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --t-h1: clamp(2.35rem, 1.4rem + 4.2vw, 4.4rem);
  --t-h2: clamp(1.75rem, 1.3rem + 1.9vw, 2.75rem);
  --t-h3: 1.2rem;
  --t-body: 1.0625rem;
  --t-small: .9rem;
  --t-mono: .78rem;

  /* space */
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 120px);
  --radius: 20px;
  --radius-lg: 28px;
  --header-h: 72px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A131C; --surface: #101C28; --surface-2: #152433; --ink: #E5ECF2; --muted: #97A9B9; --line: #213345;
    --ocean: #4CC3CF; --ocean-soft: #11303A; --on-ocean: #05151A;
    --sun: #E0282F; --sun-soft: #3A1618; --sun-deep: #FF7C81; --ok: #3ECF83;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 16px 40px -16px rgba(0,0,0,.6);
    --night: #070F17; --night-2: #0E1A26;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0A131C; --surface: #101C28; --surface-2: #152433; --ink: #E5ECF2; --muted: #97A9B9; --line: #213345;
  --ocean: #4CC3CF; --ocean-soft: #11303A; --on-ocean: #05151A;
  --sun: #E0282F; --sun-soft: #3A1618; --sun-deep: #FF7C81; --ok: #3ECF83;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 16px 40px -16px rgba(0,0,0,.6);
  --night: #070F17; --night-2: #0E1A26;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--t-body)/1.62 var(--f-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { font-family: var(--f-display); margin: 0; text-wrap: balance; color: var(--ink); }
h1 { font-size: var(--t-h1); font-weight: 700; line-height: 1.02; letter-spacing: -.035em; }
h2 { font-size: var(--t-h2); font-weight: 650; line-height: 1.08; letter-spacing: -.028em; }
h3 { font-size: var(--t-h3); font-weight: 620; line-height: 1.25; letter-spacing: -.012em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.mono { font-family: var(--f-mono); font-size: var(--t-mono); letter-spacing: .01em; }
.muted { color: var(--muted); }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }

.ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ico-sm { width: 1.05em; height: 1.05em; }
.ico-xs { width: .95em; height: .95em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .9em 1.35em; border-radius: 14px; border: 1px solid transparent;
  font: 600 1rem/1 var(--f-body); text-decoration: none; white-space: nowrap;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: .7em 1.05em; font-size: .92rem; border-radius: 12px; }
.btn-sun { background: var(--sun); color: var(--sun-ink); box-shadow: 0 8px 24px -10px var(--sun); }
.btn-sun:hover { box-shadow: 0 14px 30px -10px var(--sun); }
.btn-ghost { color: var(--night-ink); border-color: rgba(232, 239, 245, .22); background: rgba(232, 239, 245, .04); }
.btn-ghost:hover { border-color: rgba(232, 239, 245, .5); background: rgba(232, 239, 245, .08); }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-line { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-line:hover { border-color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow { display: inline-flex; align-items: center; gap: .45em; font-weight: 600; color: var(--ocean); text-decoration: none; }
.link-arrow .ico { transition: transform .2s ease; }
.link-arrow:hover .ico { transform: translateX(4px); }

/* ---------- status LEDs ---------- */
.led { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--led-ok); box-shadow: 0 0 0 3px rgba(61, 220, 132, .18); flex: none; }
.desk { display: inline-flex; align-items: center; gap: 10px; }
.desk-after .led, .desk-weekend .led { background: var(--amber); box-shadow: 0 0 0 3px rgba(245, 165, 36, .2); }
.desk-open .led, .led-live { animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(61, 220, 132, 0); } }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .25s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-row { height: var(--header-h); display: flex; align-items: center; gap: 24px; position: relative; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand { gap: 1px; }
.brand-mark { width: 34px; height: 34px; display: grid; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .25)); transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
.brand:hover .brand-mark { transform: rotate(-90deg); }
.brand-mark svg { width: 100%; height: 100%; }
.brand-word { font: 800 1.62rem/1 var(--f-display); letter-spacing: -.045em; margin-top: 1px; }
.slogan { color: var(--sun); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; }

.nav { margin-left: 12px; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px; padding: 10px 14px; border-radius: 10px;
  font: 500 .98rem/1 var(--f-body); color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer;
}
.nav-link:hover, .nav-link[aria-current="page"], .nav-link[aria-expanded="true"] { background: var(--surface-2); }
.nav-link .ico { transition: transform .2s ease; }
.nav-link[aria-expanded="true"] .ico { transform: rotate(180deg); }

.has-mega { position: static; }
.mega {
  position: absolute; top: calc(100% - 6px); left: var(--gutter); width: min(820px, calc(100% - 2 * var(--gutter)));
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; padding: 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.has-mega:hover .mega, .mega.is-open { opacity: 1; visibility: visible; transform: none; }
.mega-label { font: 600 var(--t-mono)/1 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: 6px 10px 10px; }
.mega-col { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mega-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: 12px; text-decoration: none; }
.mega-item:hover { background: var(--surface-2); }
.mega-item > .ico { margin-top: 2px; color: var(--ocean); }
.mega-item strong { display: block; font-weight: 600; font-size: .96rem; }
.mega-item small { display: block; color: var(--muted); font-size: .84rem; line-height: 1.4; }
.mega-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; margin-top: 8px; padding: 14px 12px 4px; border-top: 1px solid var(--line); font-weight: 600; color: var(--ocean); text-decoration: none; }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: .88rem; font-weight: 600; padding: 8px 10px; }
.theme-toggle, .menu-toggle {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); cursor: pointer;
}
.theme-toggle .ico-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .ico-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .ico-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .ico-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .ico-moon { display: block; }
}
.menu-toggle { display: none; align-content: center; gap: 6px; }
.menu-toggle span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s ease; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.drawer { display: none; }

@media (max-width: 1120px) { .header-phone { display: none; } }
@media (max-width: 980px) {
  .nav { display: none; }
  .menu-toggle { display: grid; }
  .drawer {
    display: block; position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 0 0; z-index: 49;
    background: var(--bg); overflow-y: auto; padding-block: 12px 120px;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .drawer.is-open { opacity: 1; visibility: visible; transform: none; }
  .drawer-inner { display: flex; flex-direction: column; gap: 2px; }
  .drawer .mega-label { padding: 18px 0 8px; }
  .drawer-link { display: flex; align-items: center; gap: 12px; padding: 12px 0; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
  .drawer-link .ico { color: var(--ocean); }
  .drawer-pages { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
  .drawer-pages a { padding: 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-weight: 600; }
  .drawer .desk { margin-top: 20px; color: var(--muted); }
}
@media (max-width: 560px) { .header-cta { display: none; } }

/* ==========================================================================
   Hero - the night desk
   ========================================================================== */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  margin: 8px clamp(8px, 1.4vw, 20px) 0; border-radius: var(--radius-lg);
  background: var(--night); color: var(--night-ink); border: 1px solid var(--night-line);
  padding-block: clamp(48px, 7vw, 96px) clamp(48px, 6vw, 88px);
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--night-line) 1px, transparent 1px), linear-gradient(90deg, var(--night-line) 1px, transparent 1px);
  background-size: 44px 44px; background-position: -1px -1px; opacity: .55;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 40%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 80% at 70% 40%, #000 20%, transparent 75%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(600px 380px at 82% 20%, rgba(63, 197, 211, .22), transparent 70%),
    radial-gradient(520px 320px at 8% 110%, rgba(217, 38, 45, .2), transparent 70%);
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; min-width: 0; }
.hero .desk { color: var(--night-muted); padding: 7px 14px 7px 12px; border: 1px solid var(--night-line); border-radius: 999px; background: rgba(255,255,255,.03); }
.hero h1 { color: var(--night-ink); }
.hero h1 em { font-style: normal; color: var(--sun-bright); }
.hero .lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--night-muted); max-width: 36em; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--night-muted); }
.hero-proof li { display: inline-flex; align-items: center; gap: 7px; }
.hero-proof .ico { color: var(--led-ok); }

/* job board */
.board {
  position: relative; min-width: 0;
  padding: 16px; border-radius: 22px;
  background: linear-gradient(180deg, rgba(17, 31, 45, .92), rgba(11, 21, 32, .92));
  border: 1px solid var(--night-line);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255,255,255,.05);
  display: flex; flex-direction: column; gap: 10px;
  transform: perspective(1400px) rotateY(var(--ry, -7deg)) rotateX(var(--rx, 3deg));
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.board-head { display: flex; justify-content: space-between; align-items: center; color: var(--night-muted); padding: 4px 6px 6px; }
.board-head > span:first-child { display: inline-flex; align-items: center; gap: 9px; color: var(--night-ink); font-weight: 600; }
.ticket, .readout {
  background: rgba(232, 239, 245, .035); border: 1px solid var(--night-line); border-radius: 14px; padding: 14px 16px;
  animation: slot-in .7s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i) * 140ms + 150ms);
}
.ticket { display: flex; flex-direction: column; gap: 8px; }
.ticket-top { display: flex; justify-content: space-between; color: var(--night-muted); }
.chip { padding: 2px 8px; border-radius: 6px; border: 1px solid var(--night-line); color: var(--night-ink); }
.ticket-title { font-weight: 600; font-size: .98rem; line-height: 1.35; color: var(--night-ink); }
.ticket-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--night-muted); }
.ticket-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.status { color: var(--night-ink); }
.status-live .led { background: var(--glow); box-shadow: 0 0 0 3px rgba(63, 197, 211, .2); animation: pulse-glow 1.6s ease-in-out infinite; }
.status-sched .led { background: var(--amber); box-shadow: 0 0 0 3px rgba(245, 165, 36, .2); }
@keyframes pulse-glow { 50% { box-shadow: 0 0 0 6px rgba(63, 197, 211, 0); } }
.bar { height: 4px; border-radius: 4px; background: var(--night-line); overflow: hidden; }
.bar span { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--led-ok); transform-origin: left; animation: fill 1.4s cubic-bezier(.2, .7, .2, 1) .5s both; }
.bar-live span { background: linear-gradient(90deg, var(--glow), #9BEAF2, var(--glow)); background-size: 200% 100%; animation: fill 1.4s cubic-bezier(.2, .7, .2, 1) .5s both, shimmer 2s linear infinite; }
.ticket:nth-of-type(3) .bar span { background: var(--amber); }
@keyframes fill { from { transform: scaleX(0); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes slot-in { from { opacity: 0; transform: translateY(14px); } }
.readout { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.readout div { display: flex; flex-direction: column; gap: 2px; }
.readout small { color: var(--night-muted); font-size: .7rem; }
.readout strong { font-family: var(--f-display); font-size: 1.45rem; font-weight: 650; letter-spacing: -.02em; color: var(--night-ink); line-height: 1.1; }
.board-note { color: var(--night-muted); opacity: .7; text-align: right; padding: 2px 6px 0; font-size: .7rem; }

@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; }
  .board { --ry: 0deg; --rx: 0deg; }
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding-block: var(--section); }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 46rem; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; }
.section-head-row { max-width: none; flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.section-head-row > div { display: flex; flex-direction: column; gap: 14px; }
.eyebrow { color: var(--ocean); text-transform: uppercase; letter-spacing: .12em; font-weight: 600; display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }

/* modes strip */
.modes { padding-block: clamp(28px, 4vw, 44px) 0; }
.modes-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.mode { display: flex; gap: 16px; padding: 22px clamp(16px, 2.4vw, 32px); border-left: 1px solid var(--line); }
.mode:first-child { border-left: 0; padding-left: 0; }
.mode > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mode p:not(.mode-kicker) { color: var(--muted); font-size: .96rem; }
.mode-kicker { color: var(--ocean); font-weight: 600; }
.mode-title { font-size: 1.22rem; font-weight: 640; letter-spacing: -.015em; }
.mode-ico { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 14px; background: var(--ocean-soft); color: var(--ocean); }
.mode-ico .ico { width: 22px; height: 22px; }
@media (max-width: 860px) {
  .modes-grid { grid-template-columns: 1fr; }
  .mode, .mode:first-child { border-left: 0; border-top: 1px solid var(--line); padding: 20px 0; }
  .mode:first-child { border-top: 0; }
}

/* services bento */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: dense; gap: 16px; }
.svc {
  position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0;
  padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  text-decoration: none; overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.svc:hover { transform: translateY(-4px); border-color: var(--ocean); box-shadow: var(--shadow); }
.svc h3 { padding-right: 48px; }
.svc p { color: var(--muted); font-size: .98rem; }
.svc-ico { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 14px; background: var(--ocean-soft); color: var(--ocean); margin-bottom: 6px; }
.svc-ico .ico { width: 24px; height: 24px; }
.svc-build .svc-ico { background: var(--sun-soft); color: var(--sun-deep); }
.svc-wide { grid-column: span 2; }
.svc-wide h3 { font-size: 1.5rem; }
.svc-wide p { max-width: 34em; font-size: 1.04rem; }
.svc-wide::after {
  content: ""; position: absolute; right: -80px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, var(--ocean-soft), transparent 70%); pointer-events: none; z-index: 0;
}
.svc-build.svc-wide::after { background: radial-gradient(circle, var(--sun-soft), transparent 70%); }
.svc > * { position: relative; z-index: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.tags li { padding: 4px 9px; border-radius: 7px; border: 1px solid var(--line); color: var(--muted); font-size: .72rem; background: var(--bg); }
.svc-go {
  position: absolute !important; top: 26px; right: 26px; width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line); color: var(--ink); transition: all .25s ease;
}
.svc:hover .svc-go { background: var(--ink); color: var(--bg); border-color: var(--ink); transform: rotate(-45deg); }
@media (max-width: 960px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .bento { grid-template-columns: 1fr; } .svc-wide { grid-column: auto; } .svc-wide h3 { font-size: 1.3rem; } }

/* numbers */
.numbers { border-block: 1px solid var(--line); background: var(--surface); }
.numbers-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.num { display: flex; flex-direction: column; gap: 6px; padding: clamp(24px, 3vw, 40px) clamp(12px, 2vw, 28px); border-left: 1px solid var(--line); }
.num:first-child { border-left: 0; padding-left: 0; }
.num strong { font: 650 clamp(2.2rem, 1.6rem + 2vw, 3.3rem)/1 var(--f-display); letter-spacing: -.04em; color: var(--ocean); font-variant-numeric: tabular-nums; }
.num span { color: var(--muted); font-size: .94rem; max-width: 16em; }
@media (max-width: 820px) {
  .numbers-row { grid-template-columns: 1fr 1fr; }
  .num:nth-child(3) { border-left: 0; padding-left: 0; }
  .num:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* web design feature */
.web-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.web-copy { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.web-copy > p:not(.eyebrow) { color: var(--muted); font-size: 1.06rem; }
.checks { display: flex; flex-direction: column; gap: 14px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; }
.checks .ico { color: var(--ocean); margin-top: 3px; }
.checks span { color: var(--muted); }
.checks strong { color: var(--ink); font-weight: 600; }

.report {
  margin: 0; padding: 20px; border-radius: var(--radius-lg); background: var(--night); color: var(--night-ink);
  border: 1px solid var(--night-line); box-shadow: 0 40px 80px -40px rgba(10, 30, 45, .55);
  display: flex; flex-direction: column; gap: 18px; min-width: 0;
}
.report-head { display: flex; align-items: center; gap: 14px; color: var(--night-muted); padding-bottom: 14px; border-bottom: 1px solid var(--night-line); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dots { display: inline-flex; gap: 6px; flex: none; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--night-line); }
.dots i:first-child { background: var(--sun-bright); }
.gauges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.gauge { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.gauge svg { width: 100%; max-width: 92px; aspect-ratio: 1; transform: rotate(-90deg); }
.g-track, .g-fill { fill: none; stroke-width: 5; }
.g-track { stroke: var(--night-line); }
.g-fill { stroke: var(--led-ok); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 6; transition: stroke-dashoffset 1.4s cubic-bezier(.2, .7, .2, 1); }
.gauge.is-pending .g-fill { stroke-dashoffset: 100; }
.gauge strong { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 92px; aspect-ratio: 1; display: grid; place-items: center; font-size: 1.05rem; color: var(--led-ok); }
.gauge span { font-size: .8rem; color: var(--night-muted); line-height: 1.25; }
.report-list { display: flex; flex-direction: column; border-top: 1px solid var(--night-line); }
.report-list div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 2px; border-bottom: 1px dashed var(--night-line); }
.report-list dt { color: var(--night-muted); }
.report-list dd { margin: 0; color: var(--night-ink); text-align: right; }
.report-list dd.ok { color: var(--led-ok); }
.report figcaption { color: var(--night-muted); font-size: .7rem; }
@media (max-width: 900px) { .web-grid { grid-template-columns: 1fr; } }
@media (max-width: 440px) { .gauges { grid-template-columns: 1fr 1fr; row-gap: 18px; } }

/* why */
.why { background: var(--surface); border-block: 1px solid var(--line); }
.why-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.why-head { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--header-h) + 32px); }
.why-head p:not(.eyebrow) { color: var(--muted); font-size: 1.06rem; }
.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 32px; }
.why-list li { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 1px solid var(--line); }
.why-list li > .ico { width: 26px; height: 26px; color: var(--ocean); }
.why-list div { display: flex; flex-direction: column; gap: 6px; }
.why-list p { color: var(--muted); font-size: .97rem; }
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr; } .why-head { position: static; } }
@media (max-width: 560px) { .why-list { grid-template-columns: 1fr; gap: 24px; } }

/* process */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: s; }
.steps li { position: relative; display: flex; flex-direction: column; gap: 10px; padding-top: 28px; }
.steps li::before { content: ""; position: absolute; top: 0; left: 0; right: -24px; height: 2px; background: var(--line); }
.steps li:last-child::before { right: 0; }
.steps li::after { content: ""; position: absolute; top: -5px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--ocean); }
.step-n { font-size: .85rem; color: var(--ocean); font-weight: 700; }
.steps p { color: var(--muted); font-size: .97rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 36px; } .steps li::before { right: 0; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* areas */
.areas { padding-top: 0; }
.areas-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.areas-grid > div { display: flex; flex-direction: column; gap: 16px; }
.areas-grid > div > p:not(.eyebrow) { color: var(--muted); }
.area-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.area-chips li { padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .92rem; }
.areas-card { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; padding: 30px; border-radius: var(--radius-lg); background: var(--ocean); color: var(--on-ocean); }
.areas-card h3 { color: var(--on-ocean); font-size: 1.45rem; }
.areas-card p { opacity: .9; }
.areas-card .mode-ico { background: color-mix(in srgb, var(--on-ocean) 16%, transparent); color: var(--on-ocean); }
.areas-card .link-arrow { color: var(--on-ocean); }
@media (max-width: 860px) { .areas-grid { grid-template-columns: 1fr; } }

/* reviews */
.reviews { padding-top: 0; }
.review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.review { margin: 0; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.review blockquote { margin: 0; }
.review figcaption { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); }
.review figcaption strong { color: var(--ink); }
.stars { display: inline-flex; gap: 2px; color: var(--sun); }
.stars-lg .ico { width: 26px; height: 26px; }
.review-cta {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px; align-items: center;
  padding: clamp(24px, 3vw, 40px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line);
}
.review-cta h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); }
.review-cta p { color: var(--muted); margin-top: 6px; }
@media (max-width: 900px) { .review-cta { grid-template-columns: 1fr; gap: 18px; } .review-grid { grid-template-columns: 1fr; } }

/* faq */
.faq { padding-top: 0; }
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 88px); align-items: start; }
.faq-grid > div:first-child { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.faq-grid > div:first-child p:not(.eyebrow) { color: var(--muted); }
.faq-grid > div:first-child p a { color: var(--ocean); font-weight: 600; white-space: nowrap; }
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 0; font: 600 1.08rem/1.35 var(--f-display); letter-spacing: -.01em;
}
.accordion summary::-webkit-details-marker { display: none; }
.plus { position: relative; width: 28px; height: 28px; flex: none; border-radius: 50%; border: 1px solid var(--line); }
.plus::before, .plus::after { content: ""; position: absolute; top: 50%; left: 50%; width: 11px; height: 1.6px; background: currentColor; transform: translate(-50%, -50%); transition: transform .25s ease; }
.plus::after { transform: translate(-50%, -50%) rotate(90deg); }
details[open] .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.accordion details p { color: var(--muted); padding: 0 48px 22px 0; max-width: 62ch; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }

/* articles */
.articles { padding-top: 0; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.post {
  display: flex; flex-direction: column; gap: 12px; padding: 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: transform .25s ease, border-color .25s ease;
}
.post:hover { transform: translateY(-4px); border-color: var(--ocean); }
.post-cat { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; background: var(--ocean-soft); color: var(--ocean); font-weight: 600; }
.post p { color: var(--muted); font-size: .96rem; }
@media (max-width: 900px) { .post-grid { grid-template-columns: 1fr; } }

/* cta band */
.cta-band { position: relative; overflow: hidden; isolation: isolate; margin: 0 clamp(8px, 1.4vw, 20px) clamp(8px, 1.4vw, 20px); border-radius: var(--radius-lg); background: var(--night); color: var(--night-ink); border: 1px solid var(--night-line); padding-block: clamp(48px, 6vw, 80px); }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(520px 300px at 90% 120%, rgba(217, 38, 45, .32), transparent 70%), radial-gradient(500px 300px at 0% -20%, rgba(63, 197, 211, .2), transparent 70%); }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-inner > div:first-child { display: flex; flex-direction: column; gap: 12px; max-width: 40rem; }
.cta-band h2 { color: var(--night-ink); }
.cta-band p { color: var(--night-muted); font-size: 1.06rem; }


/* ==========================================================================
   Inner pages
   ========================================================================== */
.page-hero { padding-block: clamp(36px, 5vw, 72px) clamp(40px, 5vw, 72px); }
.page-hero .hero-inner { align-items: start; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
.page-hero h1 { font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.6rem); }
.page-hero-slim .hero-copy { max-width: 52rem; }
.eyebrow-night { color: var(--glow); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; color: var(--night-muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a { color: var(--night-muted); text-decoration: none; }
.crumbs a:hover { color: var(--night-ink); }
.crumbs [aria-current] { color: var(--night-ink); }

.spec {
  min-width: 0; align-self: center; padding: 16px; border-radius: 22px;
  background: linear-gradient(180deg, rgba(17, 31, 45, .92), rgba(11, 21, 32, .92));
  border: 1px solid var(--night-line); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7);
  animation: slot-in .7s cubic-bezier(.2, .7, .2, 1) .15s both;
}
.spec-list { margin: 6px 0 0; display: flex; flex-direction: column; }
.spec-list div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 6px; border-top: 1px dashed var(--night-line); }
.spec-list dt { color: var(--night-muted); flex: none; }
.spec-list dd { margin: 0; color: var(--night-ink); text-align: right; }
.spec-list dd.yes { color: var(--led-ok); }
.spec-list dd.no { color: var(--night-muted); opacity: .7; }
.spec-list dd.yes::before { content: "\2713  "; }

.section-tint { background: var(--surface); border-block: 1px solid var(--line); }
.intro-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.prose { display: flex; flex-direction: column; gap: 18px; max-width: 40rem; }
.prose > p:not(.eyebrow) { color: var(--muted); font-size: 1.07rem; }
.problem-card { padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.problem-card ul { display: flex; flex-direction: column; gap: 10px; }
.problem-card li { display: flex; gap: 10px; align-items: flex-start; font-size: .98rem; }
.problem-card .ico { color: var(--ok); margin-top: 4px; }
@media (max-width: 900px) { .intro-grid, .page-hero .hero-inner { grid-template-columns: 1fr; } }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature { display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.feature p { color: var(--muted); font-size: .97rem; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }
.brands { margin-top: 36px; display: flex; flex-direction: column; gap: 12px; }
.brands > p { color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }

.who-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.who-grid > div { display: flex; flex-direction: column; gap: 14px; }
.who-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 24px; }
.who-list li { display: flex; flex-direction: column; gap: 8px; padding-top: 18px; border-top: 2px solid var(--ocean); }
.who-list p { color: var(--muted); font-size: .97rem; }
@media (max-width: 860px) { .who-grid { grid-template-columns: 1fr; } }

.service-page .process, .service-page .areas { padding-top: 0; }
.related { padding-top: 0; }
.bento-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bento-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 960px) { .bento-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .bento-3, .bento-2 { grid-template-columns: 1fr; } }
.modes-page { padding-block: clamp(40px, 5vw, 64px); }


/* glance list (about / contact) */
.glance { margin: 0; display: flex; flex-direction: column; }
.glance div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px dashed var(--line); }
.glance div:first-child { border-top: 0; }
.glance dt { color: var(--muted); }
.glance dd { margin: 0; text-align: right; font-weight: 600; }
.problem-card .btn { align-self: flex-start; margin-top: 6px; }
.svc-ico.is-build { background: var(--sun-soft); color: var(--sun-deep); }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.contact-side { display: flex; flex-direction: column; gap: 12px; }
.contact-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
.contact-card:hover { border-color: var(--ocean); transform: translateY(-2px); }
.contact-card > span:nth-child(2) { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.contact-card small { color: var(--muted); }
.contact-card strong { font-weight: 600; overflow-wrap: anywhere; }
.contact-card > .ico:last-child { color: var(--muted); }
.contact-card.is-wa { background: var(--sun); border-color: var(--sun); color: var(--sun-ink); }
.contact-card.is-wa small, .contact-card.is-wa > .ico:last-child { color: var(--sun-ink); opacity: .85; }
.contact-card.is-wa .mode-ico { background: rgba(255, 255, 255, .18); color: var(--sun-ink); }
.hours-card { padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 10px; }
.hours-head { display: inline-flex; align-items: center; gap: 8px; color: var(--ocean); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.form-card { padding: clamp(22px, 3vw, 36px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.form-card > h2 { font-size: 1.7rem; }
.form { display: flex; flex-direction: column; gap: 18px; margin-top: 10px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label, .field legend { font-weight: 600; font-size: .95rem; padding: 0; }
.field input[type=text], .field input[type=tel], .field input[type=email], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ocean); box-shadow: 0 0 0 3px var(--ocean-soft); }
.field [aria-invalid="true"] { border-color: var(--sun); }
.field-error { color: var(--sun-deep); font-size: .88rem; }
.form-alert { padding: 12px 14px; border-radius: 12px; background: var(--sun-soft); color: var(--sun-deep); font-weight: 600; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); font-weight: 500; cursor: pointer; font-size: .92rem; }
.seg input:checked + label { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.seg input:focus-visible + label { outline: 2px solid var(--sun); outline-offset: 2px; }
.check { display: flex !important; gap: 12px; align-items: flex-start; font-weight: 400 !important; color: var(--muted); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ocean); flex: none; }
.check a { color: var(--ocean); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.form-success { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; padding: 12px 0; }
.form-success .mode-ico { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.form-success p { color: var(--muted); }
.form-success a:not(.btn) { color: var(--ocean); font-weight: 600; }
.contact + .process { padding-top: 0; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .form-card { order: -1; } }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* faq page */
.faq-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.faq-jump a { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--night-line); color: var(--night-muted); text-decoration: none; }
.faq-jump a:hover { color: var(--night-ink); border-color: var(--night-muted); }
.faq-stack { display: flex; flex-direction: column; gap: clamp(40px, 5vw, 64px); max-width: 920px; }
.faq-group { scroll-margin-top: calc(var(--header-h) + 24px); }
.faq-group-head { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; flex-wrap: wrap; }
.faq-group-head h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); flex: 1; min-width: 12ch; }
.faq-group-head .svc-ico { margin: 0; }

/* legal */
.legal { max-width: 46rem; display: flex; flex-direction: column; gap: 14px; }
.legal h2 { font-size: 1.35rem; margin-top: 22px; }
.legal p, .legal li { color: var(--muted); }
.legal ul { list-style: disc; padding-left: 1.3em; display: flex; flex-direction: column; gap: 8px; }
.legal strong { color: var(--ink); }
.legal a { color: var(--ocean); }

/* articles */
.article-hero h1 { max-width: 22ch; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--night-muted); }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.article-body { max-width: 68ch; font-size: 1.08rem; line-height: 1.75; display: flex; flex-direction: column; gap: 18px; }
.article-body > p:first-child { font-size: 1.2rem; line-height: 1.65; color: var(--ink); }
.article-body p, .article-body li { color: color-mix(in srgb, var(--ink) 82%, var(--muted)); }
.article-body h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); margin-top: 22px; }
.article-body h3 { font-size: 1.2rem; margin-top: 8px; }
.article-body ul, .article-body ol { padding-left: 1.3em; display: flex; flex-direction: column; gap: 8px; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li::marker { color: var(--ocean); font-weight: 700; }
.article-body a { color: var(--ocean); font-weight: 600; }
.article-body code { font-family: var(--f-mono); font-size: .88em; padding: 2px 6px; border-radius: 6px; background: var(--surface-2); }
.callout { padding: 18px 20px; border-radius: 16px; background: var(--ocean-soft); border: 1px solid color-mix(in srgb, var(--ocean) 30%, transparent); }
.callout p { color: var(--ink) !important; }
.callout-warn { background: var(--sun-soft); border-color: color-mix(in srgb, var(--sun) 35%, transparent); }
.article-aside { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 14px; }
.aside-card { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.aside-card h2 { font-size: 1.25rem; }
.aside-card p:not(.aside-kicker) { color: var(--muted); font-size: .94rem; }
.aside-kicker { color: var(--ocean); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.share { display: flex; gap: 8px; flex-wrap: wrap; }
.share a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: .9rem; }
.share a:hover { border-color: var(--ink); }
.article-section + .articles { padding-top: 0; }
@media (max-width: 960px) { .article-grid { grid-template-columns: 1fr; } .article-aside { position: static; } }
.post-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .post-grid-2 { grid-template-columns: 1fr; } }
.post-meta { margin-top: auto; padding-top: 8px; color: var(--muted); }
.post-title { font-size: var(--t-h3); }
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter button { font: inherit; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.filter button.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { padding-block: clamp(48px, 6vw, 80px) 24px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 18px; }
.footer-brand > p { color: var(--muted); font-size: .96rem; max-width: 30em; }
.footer-contact { display: flex; flex-direction: column; gap: 10px; font-size: .95rem; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .ico { color: var(--ocean); margin-top: 4px; }
.footer-contact a { text-decoration: none; font-weight: 600; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.footer-col a:hover { color: var(--ink); }
.footer-head { font: 600 var(--t-mono)/1 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink); margin-bottom: 6px; }
.social { display: flex; gap: 8px; margin-top: 10px; }
.social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); color: var(--ink); }
.social a:hover { border-color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* mobile action bar */
.action-bar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
  .action-bar {
    display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--night); border-top: 1px solid var(--night-line);
  }
  .action-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 8px; border-radius: 12px; color: var(--night-ink); text-decoration: none; font-weight: 600; font-size: .95rem; border: 1px solid var(--night-line); }
  .action-bar a.is-wa { background: var(--sun); color: var(--sun-ink); border-color: var(--sun); }
}

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .board { transform: none !important; }
}
