/* ==========================================================================
   PT DUTA KASIH SEJAHTERA — Design System
   Clean white · safety orange · editorial grid
   ========================================================================== */

/* -------------------------------------------------- 1. Tokens */
:root {
  /* Colour */
  --ink:        #0B0B0C;
  --ink-80:     #3A3A3E;
  --ink-60:     #6B6B72;
  --ink-40:     #9B9BA2;
  --ink-20:     #D6D6DA;
  --ink-10:     #E9E9EC;
  --ink-05:     #F4F4F6;
  --paper:      #FFFFFF;
  --accent:     #FF4D00;
  --accent-ink: #E03F00;

  /* Type */
  --font-display: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --fs-display: clamp(2.75rem, 8.2vw, 8.5rem);
  --fs-h1:      clamp(2.25rem, 5.6vw, 5.25rem);
  --fs-h2:      clamp(1.85rem, 4.2vw, 3.75rem);
  --fs-h3:      clamp(1.35rem, 2.1vw, 1.9rem);
  --fs-h4:      clamp(1.1rem, 1.5vw, 1.3rem);
  --fs-lead:    clamp(1.05rem, 1.55vw, 1.4rem);
  --fs-body:    clamp(0.975rem, 1.05vw, 1.0625rem);
  --fs-small:   0.875rem;
  --fs-micro:   0.6875rem;

  /* Space */
  --gutter:     clamp(1.25rem, 4vw, 3.5rem);
  --section:    clamp(4.5rem, 10vw, 11rem);
  --maxw:       1600px;
  --header-h:   76px;

  /* Motion */
  --ease:       cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io:    cubic-bezier(0.65, 0, 0.35, 1);
  --dur:        0.7s;
}

/* -------------------------------------------------- 2. Reset */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

/* UA stylesheets give <figure> `margin: 1em 40px` — that inset would shrink
   every media frame on the site. */
figure { margin: 0; }

a { color: inherit; text-decoration: none; }

ul, ol { margin: 0; padding: 0; }

button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* -------------------------------------------------- 3. Layout */
.shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(3rem, 6vw, 6rem); }
.section--flush-top { padding-top: 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.25rem, 2.6vw, 2.5rem);
}

.rule {
  height: 1px;
  background: var(--ink-10);
  border: 0;
  margin: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1.25rem;
  font-size: var(--fs-small);
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* -------------------------------------------------- 4. Type utilities */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-60);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.75rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
  flex: none;
}
.eyebrow--plain::before { display: none; }

.display  { font-size: var(--fs-display); line-height: 0.92; letter-spacing: -0.045em; }
.h1       { font-size: var(--fs-h1); }
.h2       { font-size: var(--fs-h2); }
.h3       { font-size: var(--fs-h3); letter-spacing: -0.025em; }
.h4       { font-size: var(--fs-h4); letter-spacing: -0.015em; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--ink-80);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.muted  { color: var(--ink-60); }
.accent { color: var(--accent); }
.measure     { max-width: 62ch; }
.measure-sm  { max-width: 46ch; }

.num {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: -0.04em;
}

/* -------------------------------------------------- 5. Buttons */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1.0625rem 1.75rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border-radius: 100px;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: -0.005em;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.35s var(--ease), background-color 0.35s var(--ease);
  will-change: transform;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform 0.45s var(--ease);
  z-index: -1;
}
.btn:hover::after, .btn:focus-visible::after { transform: translateY(0); }
.btn:hover { color: #fff; }

.btn--accent { --btn-bg: var(--accent); }
.btn--accent::after { background: var(--ink); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink-20);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--accent); }

.btn__ico {
  width: 15px; height: 15px;
  flex: none;
  transition: transform 0.4s var(--ease);
}
.btn:hover .btn__ico { transform: translateX(4px); }

/* Text link with sweep underline */
.tlink {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: var(--fs-small);
  padding-bottom: 3px;
}
.tlink::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform-origin: right;
  transform: scaleX(1);
  transition: transform 0.4s var(--ease);
}
.tlink:hover { color: var(--accent); }
.tlink:hover::after { transform: scaleX(0); transform-origin: left; }

/* -------------------------------------------------- 6. Header */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, transform 0.45s var(--ease), background-color 0.3s;
}
.header.is-stuck { border-bottom-color: var(--ink-10); }
.header.is-hidden { transform: translateY(-100%); }

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex: none;
}
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__txt { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: -0.045em;
}
.brand__sub {
  font-size: 0.5625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-60);
  margin-top: 3px;
  font-weight: 500;
}

.nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2.25rem); }
.nav__link {
  position: relative;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--ink-80);
  padding: 0.35rem 0;
  transition: color 0.25s;
  white-space: nowrap;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.header__cta { flex: none; }
.header__cta .btn { padding: 0.8rem 1.35rem; }

/* Burger — the bars are absolutely positioned from the button's centre rather
   than laid out in a grid. A grid stretches its rows to fill the 44px button,
   which spread the bars 16px apart while the open-state transform only moved
   them 7.5px, so the two strokes never met and the close icon rendered as half
   an X. Anchoring every bar to the same centre makes the X exact by
   construction and the spacing independent of the button size. */
.burger {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  margin-right: -10px;
  border-radius: 6px;
  z-index: 2;
}
.burger span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24px; height: 2px;
  margin-left: -12px;
  margin-top: -1px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.4s var(--ease), opacity 0.2s;
}
.burger span:nth-child(1) { transform: translateY(-6px); }
.burger span:nth-child(3) { transform: translateY(6px); }

body.menu-open .burger span:nth-child(1) { transform: rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; transform: scaleX(0.3); }
body.menu-open .burger span:nth-child(3) { transform: rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--paper);
  padding: calc(var(--header-h) + 2rem) var(--gutter) 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.65s var(--ease);
  visibility: hidden;
  overflow-y: auto;
}
body.menu-open .drawer { clip-path: inset(0 0 0 0); visibility: visible; }

.drawer__nav { display: flex; flex-direction: column; }
.drawer__link {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 8vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--ink-10);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.25s;
}
body.menu-open .drawer__link { opacity: 1; transform: none; }
.drawer__link:active { color: var(--accent); }
.drawer__link span {
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  font-weight: 600;
  color: var(--ink-40);
  letter-spacing: 0.1em;
}
.drawer__foot { padding-top: 2rem; font-size: var(--fs-small); color: var(--ink-60); }
.drawer__foot a { font-weight: 600; color: var(--ink); }

/* -------------------------------------------------- 7. Hero */
.hero {
  position: relative;
  min-height: min(100svh, 980px);
  padding-top: calc(var(--header-h) + clamp(2.5rem, 7vw, 5.5rem));
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

/* The WebGL mass sits in the right-hand field and is feathered away with a
   mask, so the headline always reads against clean white. */
/* The WebGL structure sits in the right-hand field and is feathered away with
   a mask, so the headline always reads against clean white. */
.hero__canvas {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(66%, 1120px);
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(58% 86% at 84% 46%, #000 0%, #000 48%, transparent 100%);
  mask-image: radial-gradient(58% 86% at 84% 46%, #000 0%, #000 48%, transparent 100%);
}
.hero__canvas canvas { width: 100%; height: 100%; }

.hero__inner { position: relative; z-index: 1; width: 100%; }

.hero__title {
  font-size: var(--fs-display);
  line-height: 0.9;
  letter-spacing: -0.048em;
  font-weight: 700;
  margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
}
.hero__title em {
  font-style: normal;
  color: var(--accent);
}

.hero__meta {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.25rem, 2.6vw, 2.5rem);
  align-items: end;
  /* No rule here — the hero stays open, separated by space alone. */
  padding-top: clamp(1.5rem, 3vw, 2.25rem);
}
.hero__lead { grid-column: 1 / span 5; }
.hero__stats {
  grid-column: 7 / span 6;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.stat__val {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  display: block;
  font-variant-numeric: tabular-nums;
}
.stat__lbl {
  display: block;
  margin-top: 0.5rem;
  font-size: var(--fs-micro);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-60);
  font-weight: 600;
}

/* Scroll cue */
.scrollcue {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(2.5rem, 6vw, 4.5rem);
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--fs-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-40);
  font-weight: 600;
}
.scrollcue__line {
  width: 1px; height: 46px;
  background: linear-gradient(var(--ink-20), transparent);
  position: relative;
  overflow: hidden;
}
.scrollcue__line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  animation: cue 2.4s var(--ease-io) infinite;
}
@keyframes cue {
  0%   { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}

/* -------------------------------------------------- 8. Page hero (inner pages) */
.phero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 5rem));
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  min-height: min(74vh, 660px);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.phero__canvas {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(50%, 820px);
  z-index: 0;
  pointer-events: none;
  /* Centred in the right-hand half, which the text column now leaves clear. */
  -webkit-mask-image: radial-gradient(64% 86% at 56% 50%, #000 0%, #000 52%, transparent 100%);
  mask-image: radial-gradient(64% 86% at 56% 50%, #000 0%, #000 52%, transparent 100%);
}
.phero__canvas canvas { width: 100%; height: 100%; }
.phero__inner { width: 100%; }

/* --- Full-bleed generative interlude ------------------------------------- */
.fieldband {
  position: relative;
  overflow: hidden;
  height: clamp(360px, 54vh, 580px);
  margin-block: clamp(1rem, 3vw, 2.5rem);
}
.fieldband__canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 20%, #000 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 20%, #000 80%, transparent 100%);
}
.fieldband__canvas canvas { width: 100%; height: 100%; }
.fieldband__note {
  position: absolute;
  z-index: 1;
  max-width: 34ch;
  font-size: var(--fs-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-60);
  line-height: 1.7;
  /* Keeps the caption legible where it crosses the point field. */
  text-shadow: 0 0 10px #fff, 0 0 5px #fff, 0 0 2px #fff;
}
.fieldband__note--tl { left: var(--gutter); top: clamp(1.25rem, 3vw, 2.25rem); }
.fieldband__note--tr { right: var(--gutter); top: clamp(1.25rem, 3vw, 2.25rem); text-align: right; }
.fieldband__note b { display: block; color: var(--accent); }
.phero__inner { position: relative; z-index: 1; }
.phero__title { font-size: var(--fs-h1); margin-bottom: 1.5rem; }
/* Title and standfirst stack in the left column, leaving the right half of
   the band entirely to the machine. */
.phero__grid {
  display: block;
  max-width: 54%;
}
.phero__aside {
  margin-top: clamp(1.25rem, 2.2vw, 1.75rem);
  max-width: 48ch;
}

/* Breadcrumb */
.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-40);
  font-weight: 600;
  margin-bottom: 1.75rem;
  list-style: none;
}
.crumb li { display: flex; align-items: center; gap: 0.5rem; }
.crumb li + li::before { content: "/"; color: var(--ink-20); }
.crumb a:hover { color: var(--accent); }
.crumb [aria-current] { color: var(--ink); }

/* -------------------------------------------------- 9. Marquee */
.marquee {
  border-block: 1px solid var(--ink-10);
  padding-block: clamp(0.9rem, 1.6vw, 1.35rem);
  overflow: hidden;
  white-space: nowrap;
  --mq-dur: 38s;
}
.marquee--accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
  animation: mq var(--mq-dur) linear infinite;
  will-change: transform;
}
.marquee__item {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
}
.marquee__item::after {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.marquee--accent .marquee__item::after { background: #fff; }
@keyframes mq { to { transform: translateX(-50%); } }

/* -------------------------------------------------- 10. Section headers */
.shead {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.25rem, 2.6vw, 2.5rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.shead__title { grid-column: 1 / span 7; }
.shead__aside {
  grid-column: 9 / span 4;
  padding-bottom: 0.5rem;
  font-size: var(--fs-small);
  color: var(--ink-60);
}

/* -------------------------------------------------- 11. Services list */
.svc { border-top: 1px solid var(--ink-10); }
.svc__item { border-bottom: 1px solid var(--ink-10); }

.svc__link {
  display: grid;
  grid-template-columns: 5rem 1fr minmax(0, 30ch) 3rem;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  align-items: center;
  padding-block: clamp(1.5rem, 3vw, 2.5rem);
  position: relative;
  transition: padding-inline 0.5s var(--ease);
}
.svc__link::before {
  content: "";
  position: absolute;
  inset: 0 -1.25rem;
  background: var(--ink-05);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  z-index: -1;
}
.svc__link:hover::before { opacity: 1; }
.svc__link:hover { padding-inline: 1.25rem; }

.svc__no {
  font-family: var(--font-display);
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--ink-40);
  letter-spacing: 0;
  transition: color 0.3s;
}
.svc__link:hover .svc__no { color: var(--accent); }

.svc__name {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  transition: color 0.3s;
}
.svc__link:hover .svc__name { color: var(--accent); }

.svc__desc { font-size: var(--fs-small); color: var(--ink-60); line-height: 1.5; }

.svc__arrow {
  width: 2.75rem; height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--ink-20);
  display: grid;
  place-items: center;
  justify-self: end;
  transition: background-color 0.35s var(--ease), border-color 0.35s, transform 0.4s var(--ease);
}
.svc__arrow svg { width: 14px; height: 14px; transition: transform 0.4s var(--ease); }
.svc__link:hover .svc__arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.svc__link:hover .svc__arrow svg { transform: translate(3px, -3px); }

/* -------------------------------------------------- 12. Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(1.25rem, 2.6vw, 2.25rem);
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--ink-10);
  padding: clamp(1.5rem, 2.4vw, 2.25rem);
  transition: border-color 0.35s, transform 0.5s var(--ease);
  height: 100%;
}
a.card:hover { border-color: var(--ink); transform: translateY(-4px); }
.card__no {
  font-family: var(--font-display);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.card__title { font-size: var(--fs-h3); margin-bottom: 0.85rem; }
.card__body { font-size: var(--fs-small); color: var(--ink-60); line-height: 1.6; }
.card__foot { margin-top: auto; padding-top: 1.75rem; }

/* Figure/media */
.media {
  position: relative;
  overflow: hidden;
  background: var(--ink-05);
}
/* <picture> is inline by default — without this the <img> inside it sizes to
   its intrinsic width instead of filling the frame. */
.media picture {
  display: block;
  width: 100%;
  height: 100%;
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.media--4x3  { aspect-ratio: 4 / 3; }
.media--3x4  { aspect-ratio: 3 / 4; }
.media--16x9 { aspect-ratio: 16 / 9; }
.media--21x9 { aspect-ratio: 21 / 9; }
.media--1x1  { aspect-ratio: 1 / 1; }
a:hover .media img, .zoomable:hover .media img { transform: scale(1.045); }

figcaption {
  margin-top: 0.85rem;
  font-size: var(--fs-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-40);
  font-weight: 600;
}

/* -------------------------------------------------- 13. Projects */
.proj { border-top: 1px solid var(--ink-10); }
.proj__row {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) 14rem;
  gap: clamp(1rem, 2.4vw, 2.25rem);
  align-items: baseline;
  padding-block: clamp(1.35rem, 2.4vw, 1.9rem);
  border-bottom: 1px solid var(--ink-10);
  transition: background-color 0.35s var(--ease);
}
.proj__row:hover { background: var(--ink-05); }
.proj__no { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-small); color: var(--ink-40); }
.proj__name { font-family: var(--font-display); font-size: clamp(1.05rem, 1.5vw, 1.35rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.proj__note { font-size: var(--fs-micro); color: var(--ink-40); margin-top: 0.45rem; letter-spacing: 0.02em; line-height: 1.5; }
.proj__loc { font-size: var(--fs-small); color: var(--ink-60); text-align: right; }

/* -------------------------------------------------- Bento gallery */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(150px, 14.5vw, 235px);
  gap: clamp(0.5rem, 0.9vw, 0.875rem);
}

.bento__item { position: relative; }
.bento__item picture { display: block; width: 100%; height: 100%; }

/* Accent rule sweeps in on hover, matching the link treatment elsewhere. */
.bento__item::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
  z-index: 2;
}
.bento__item:hover::after { transform: scaleX(1); }
.bento__item:hover img { transform: scale(1.05); }

.bento--a    { grid-column: span 2; grid-row: span 2; }
.bento--tall { grid-row: span 2; }
.bento--wide { grid-column: span 2; }

.bento__label {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  margin: 0;
  padding: clamp(0.9rem, 1.5vw, 1.35rem);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  text-transform: none;
  letter-spacing: normal;
  color: #fff;
  background: linear-gradient(to top,
    rgba(11, 11, 12, 0.78) 0%,
    rgba(11, 11, 12, 0.34) 55%,
    rgba(11, 11, 12, 0) 100%);
  transition: transform 0.5s var(--ease);
}
.bento__item:hover .bento__label { transform: translateY(-3px); }

.bento__kicker {
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}
.bento__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.95rem, 1.1vw, 1.15rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.bento__cta { margin-top: clamp(2rem, 3.5vw, 3rem); }

/* Gallery strip */
.strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(78vw, 78vw);
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  scrollbar-width: thin;
}
.strip > * { scroll-snap-align: start; }
.strip::-webkit-scrollbar { height: 3px; }
.strip::-webkit-scrollbar-track { background: var(--ink-10); }
.strip::-webkit-scrollbar-thumb { background: var(--ink-40); }

/* -------------------------------------------------- 14. Tables */
.tbl-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-top: 1px solid var(--ink);
}
.tbl {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  font-size: var(--fs-small);
}
.tbl caption {
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 700;
  letter-spacing: -0.02em;
  padding-bottom: 1rem;
  caption-side: top;
}
.tbl th, .tbl td {
  text-align: left;
  padding: 0.9rem 1rem 0.9rem 0;
  border-bottom: 1px solid var(--ink-10);
  vertical-align: top;
}
.tbl thead th {
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-60);
  font-weight: 600;
  padding-block: 0.9rem;
  white-space: nowrap;
}
.tbl tbody tr { transition: background-color 0.25s; }
.tbl tbody tr:hover { background: var(--ink-05); }
.tbl td:first-child { font-variant-numeric: tabular-nums; color: var(--ink-40); width: 3rem; }
.tbl .t-name { font-weight: 600; color: var(--ink); }
.tbl .t-num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* -------------------------------------------------- 15. Stats band */
.band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 1px;
  background: var(--ink-10);
  border: 1px solid var(--ink-10);
}
.band__cell {
  background: var(--paper);
  padding: clamp(1.5rem, 2.6vw, 2.5rem);
}
.band__val {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.band__lbl {
  margin-top: 0.75rem;
  font-size: var(--fs-micro);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-60);
  font-weight: 600;
}

/* -------------------------------------------------- 16. Feature split */
.split {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.5rem, 3vw, 3.5rem);
  align-items: center;
}
.split__media { grid-column: 1 / span 6; }
.split__body  { grid-column: 8 / span 5; }
.split--flip .split__media { grid-column: 7 / span 6; order: 2; }
.split--flip .split__body  { grid-column: 1 / span 5; order: 1; }

/* Column-span utilities. These used to be inline styles, which beat the
   responsive rules below and left three-across galleries stuck at three
   across on a phone. */
.split__body--wide    { grid-column: 1 / span 6; }
.split__body--narrow  { grid-column: 1 / span 5; }
.split__media--narrow { grid-column: 8 / span 5; }
.split__media--wide   { grid-column: 7 / span 6; }
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }

/* Checklist */
.checks { list-style: none; display: grid; gap: 0.85rem; margin-top: 1.75rem; }
.checks li {
  display: grid;
  grid-template-columns: 1.1rem 1fr;
  gap: 0.85rem;
  font-size: var(--fs-small);
  color: var(--ink-80);
  line-height: 1.55;
}
.checks li::before {
  content: "";
  width: 7px; height: 7px;
  margin-top: 0.55em;
  background: var(--accent);
  border-radius: 50%;
}

/* Numbered process */
.steps { counter-reset: s; display: grid; gap: 0; border-top: 1px solid var(--ink-10); }
.steps li {
  counter-increment: s;
  list-style: none;
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  padding-block: clamp(1.35rem, 2.4vw, 2rem);
  border-bottom: 1px solid var(--ink-10);
}
.steps li::before {
  content: "0" counter(s);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-small);
  color: var(--accent);
}
.steps h3 { font-size: var(--fs-h4); margin-bottom: 0.5rem; }
.steps p { font-size: var(--fs-small); color: var(--ink-60); max-width: 62ch; }

/* -------------------------------------------------- 17. Org chart */
.org {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 1px;
  background: var(--ink-10);
  border: 1px solid var(--ink-10);
}
.org__cell { background: var(--paper); padding: 1.5rem; }
.org__role {
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.65rem;
}
.org__name { font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.02em; }

/* -------------------------------------------------- 18. CTA block */
.cta {
  background: var(--ink);
  color: #fff;
  padding-block: clamp(3.5rem, 8vw, 7rem);
  position: relative;
  overflow: hidden;
}
.cta__canvas {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(64%, 1040px);
  pointer-events: none;
  -webkit-mask-image: radial-gradient(60% 92% at 74% 50%, #000 0%, #000 46%, transparent 100%);
  mask-image: radial-gradient(60% 92% at 74% 50%, #000 0%, #000 46%, transparent 100%);
}
.cta__canvas canvas { width: 100%; height: 100%; }
.cta .shell { position: relative; z-index: 1; }
.cta__title { font-size: var(--fs-h2); margin-bottom: 2rem; max-width: 20ch; }
.cta__title em { font-style: normal; color: var(--accent); }
.cta .eyebrow { color: rgba(255,255,255,0.6); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.cta .btn--ghost { --btn-fg: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25); }

/* -------------------------------------------------- 19. Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.5rem, 3vw, 3.5rem);
}
.contact-grid__info { grid-column: 1 / span 5; }
.contact-grid__form { grid-column: 7 / span 6; }

.dl { display: grid; gap: 0; border-top: 1px solid var(--ink-10); }
.dl__row {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1.25rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--ink-10);
  font-size: var(--fs-small);
}
.dl__k { font-size: var(--fs-micro); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-60); font-weight: 600; padding-top: 2px; }
.dl__v { color: var(--ink); }
.dl__v a:hover { color: var(--accent); }

.field { display: grid; gap: 0.5rem; margin-bottom: 1.25rem; }
.field label {
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-60);
  font-weight: 600;
}
.field input, .field textarea, .field select {
  font: inherit;
  font-size: var(--fs-small);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--ink-20);
  border-radius: 0;
  padding: 0.9rem 1rem;
  width: 100%;
  transition: border-color 0.25s;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B6B72' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
  padding-right: 2.5rem;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); outline: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

.formnote { font-size: var(--fs-micro); color: var(--ink-40); margin-top: 1rem; line-height: 1.6; }

.map-frame {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--ink-10);
  background: var(--ink-05);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* -------------------------------------------------- 20. Footer */
.footer {
  background: var(--paper);
  border-top: 1px solid var(--ink-10);
  padding-top: clamp(3rem, 6vw, 5rem);
}
.footer__top {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.footer__brand { grid-column: 1 / span 4; }
.footer__col   { grid-column: span 2; }
.footer__col:nth-of-type(1) { grid-column: 6 / span 2; }

.footer__wordmark {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  margin-bottom: 1rem;
}
.footer__tag { font-size: var(--fs-small); color: var(--ink-60); max-width: 34ch; }

.footer__head {
  font-size: var(--fs-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-40);
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.footer__list { list-style: none; display: grid; gap: 0.7rem; font-size: var(--fs-small); }
.footer__list a { color: var(--ink-80); transition: color 0.25s; }
.footer__list a:hover { color: var(--accent); }

.footer__bar {
  border-top: 1px solid var(--ink-10);
  padding-block: 1.5rem 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-micro);
  color: var(--ink-40);
  letter-spacing: 0.04em;
}
.footer__bar a:hover { color: var(--accent); }

.footer__giant {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.5rem, 15.5vw, 16rem);
  line-height: 0.82;
  letter-spacing: -0.055em;
  color: var(--ink-05);
  text-align: center;
  padding-block: clamp(1rem, 3vw, 2rem) 0;
  margin-bottom: -0.12em;
  user-select: none;
  overflow: hidden;
  white-space: nowrap;
}

/* WhatsApp float */
.wa {
  position: fixed;
  right: clamp(1rem, 2.5vw, 1.75rem);
  bottom: clamp(1rem, 2.5vw, 1.75rem);
  z-index: 90;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 28px rgba(11,11,12,0.22);
  transition: background-color 0.3s, transform 0.4s var(--ease);
}
.wa:hover { background: var(--accent); transform: translateY(-3px); }
.wa svg { width: 24px; height: 24px; }

/* -------------------------------------------------- 21. Reveal animation (CSS fallback + GSAP target) */
/* Content is visible by default. The hidden state is armed by an inline script
   in <head> (before first paint, so there is no flash) and disarmed again by a
   failsafe timer if main.js never runs — so a script failure can never leave
   the page blank. */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js-reveal [data-reveal].is-in { opacity: 1; transform: none; }

/* Overflow-hidden would guillotine descenders (g, j, y) and commas, so the
   inner span is padded out and the mask pulled back by the same amount. */
.line-mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.16em;
  margin-bottom: -0.16em;
}
.line-mask > span {
  display: block;
  padding-bottom: 0.16em;
  margin-bottom: -0.16em;
  will-change: transform;
}

/* -------------------------------------------------- 22. Responsive */
@media (max-width: 1100px) {
  .hero__lead   { grid-column: 1 / span 6; }
  .hero__stats  { grid-column: 7 / span 6; }
  .shead__title { grid-column: 1 / span 8; }
  .shead__aside { grid-column: 9 / span 4; }
  .phero__grid { max-width: 60%; }
  .split__media, .split--flip .split__media { grid-column: 1 / span 6; order: 0; }
  .split__body,  .split--flip .split__body  { grid-column: 7 / span 6; order: 0; }
  .contact-grid__info { grid-column: 1 / span 5; }
  .contact-grid__form { grid-column: 6 / span 7; }
  .footer__brand { grid-column: 1 / span 12; }
  .footer__col, .footer__col:nth-of-type(1) { grid-column: span 4; }
}

@media (max-width: 900px) {
  :root { --header-h: 66px; }

  .nav, .header__cta { display: none; }
  .burger { display: block; }

  /* The desktop composition puts the machine beside the text. There is no room
     for that on a phone, so the canvas leaves the background, drops out of its
     mask and becomes a full-width band below the copy. */
  .hero__canvas,
  .phero__canvas,
  .cta__canvas {
    position: relative;
    inset: auto;
    width: 100%;
    height: clamp(270px, 64vw, 350px);
    -webkit-mask-image: none;
    mask-image: none;
  }
  .phero__canvas,
  .cta__canvas {
    order: 2;
    margin-top: clamp(1.75rem, 5vw, 2.5rem);
  }
  .phero__inner { order: 1; }

  /* The hero canvas sits inside the text column, so pull it out to the screen
     edges — the machine reads far better full-bleed. */
  .hero__canvas {
    width: calc(100% + var(--gutter) * 2);
    margin: clamp(1.25rem, 4vw, 2rem) calc(var(--gutter) * -1) clamp(0.25rem, 1.5vw, 0.75rem);
  }

  .phero { display: flex; flex-direction: column; }

  .cta { display: flex; flex-direction: column; }
  .cta .shell { order: 1; }
  .cta__canvas { height: clamp(200px, 44vw, 280px); margin-bottom: -1rem; }

  .hero { min-height: auto; padding-bottom: clamp(3rem, 8vw, 4rem); }
  .hero__meta { grid-template-columns: 1fr; gap: 2rem; }
  .hero__lead, .hero__stats { grid-column: 1 / -1; }
  .hero__stats { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .scrollcue { display: none; }

  .shead { grid-template-columns: 1fr; }
  .phero { min-height: 0; }
  .phero__grid { max-width: none; }
  .shead__title, .shead__aside,
  .phero__title-wrap, .phero__aside { grid-column: 1 / -1; }

  .svc__link { grid-template-columns: 2.5rem 1fr 2.25rem; row-gap: 0.65rem; }
  .svc__no   { grid-row: 1; }
  .svc__name { grid-row: 1; }
  .svc__desc { grid-column: 2 / span 2; grid-row: 2; }
  .svc__arrow { width: 2.25rem; height: 2.25rem; grid-row: 1; }

  .proj__row { grid-template-columns: 2.25rem 1fr; row-gap: 0.5rem; }
  .proj__loc { grid-column: 2; font-size: var(--fs-micro); text-align: left; }

  .split { grid-template-columns: 1fr; }
  .split__media, .split__body,
  .split--flip .split__media, .split--flip .split__body,
  .split__body--wide, .split__body--narrow,
  .split__media--narrow, .split__media--wide { grid-column: 1 / -1; }

  .col-3, .col-4 { grid-column: span 6; }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-grid__info, .contact-grid__form { grid-column: 1 / -1; }

  .dl__row { grid-template-columns: 1fr; gap: 0.3rem; }
  .field-row { grid-template-columns: 1fr; gap: 0; }

  .steps li { grid-template-columns: 2.5rem 1fr; }

  .footer__col, .footer__col:nth-of-type(1) { grid-column: span 6; }

  .strip { grid-auto-columns: minmax(84vw, 84vw); }

  .bento {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: clamp(135px, 26vw, 195px);
  }

  /* The full-bleed interlude is decorative and would mean a third WebGL
     context on a phone; the hero machine and the CTA band are the ones worth
     the budget. */
  .fieldband { display: none; }
}

@media (max-width: 560px) {
  .col-3, .col-4, .col-6 { grid-column: 1 / -1; }

  /* One column — every tile falls back to a single consistent ratio. */
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .bento__item { aspect-ratio: 4 / 3; }
  .bento--a, .bento--tall, .bento--wide { grid-column: auto; grid-row: auto; }
  .bento__cta .btn { width: 100%; justify-content: center; }

  .hero__stats { grid-template-columns: 1fr 1fr; row-gap: 1.5rem; }
  .hero__stats > :last-child { grid-column: 1 / -1; }
  .brand__sub { display: none; }
  .footer__col, .footer__col:nth-of-type(1) { grid-column: span 12; }
}

/* -------------------------------------------------- 23. Motion / print prefs */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .marquee__track { animation: none; }
}

@media print {
  .header, .drawer, .wa, .scrollcue, .hero__canvas, .phero__canvas,
  .cta__canvas, .fieldband, .marquee { display: none !important; }
  body { color: #000; }
  a::after { content: " (" attr(href) ")"; font-size: 0.8em; }
  .footer__giant { display: none; }
}
