/* ═══════════════════════════════════════════════════════════════════
   REPRESENT DIGITAL — single-page memorandum, technical edition
   Dark by default. Brand cube colors as living signals.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  /* ── Surfaces & ink ── */
  --bg:           #08090b;            /* page background — near-black with cool cast */
  --surface:      #0f1115;            /* cards, sticky bars */
  --surface-2:    #15181d;            /* raised */
  --line:         #1d2028;            /* hairlines */
  --line-strong:  #2a2e36;
  --line-glow:    #3a4150;
  --ink:          #e8ebef;            /* primary text */
  --ink-2:        #b8bec6;            /* secondary text */
  --ink-mute:     #7c828a;            /* muted labels */
  --ink-low:      #565b63;

  /* ── Brand cube — exact logo hex values ── */
  --c-blue:        #317ec8;            /* right face */
  --c-blue-lite:   #4aa7f5;            /* top face — also our primary signal on dark */
  --c-blue-deep:   #1b5fa0;
  --c-orange:      #ed6f2d;            /* left face — secondary signal */
  --c-orange-lite: #f09e41;            /* top wedge */

  /* Aliased semantic tokens (so we can re-skin later without grepping) */
  --signal:       var(--c-blue-lite);
  --signal-deep:  var(--c-blue);
  --accent:       var(--c-orange);
  --accent-lite:  var(--c-orange-lite);

  /* ── Type ── */
  --display: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body:    "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* ── Spatial ── */
  --rail:    clamp(24px, 5vw, 96px);
  --gut:     clamp(16px, 3vw, 40px);
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 10px;

  /* ── Motion ── */
  --ease:     cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

/* ─── reset & defaults ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, li, dl, dt, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
code { font-family: var(--mono); font-size: 0.92em; color: var(--signal); }
::selection { background: var(--signal); color: var(--bg); }

body {
  font-family: var(--body);
  font-size: clamp(15px, 0.9vw + 9px, 16.5px);
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  font-feature-settings: "ss01", "ss02", "cv11", "tnum";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  letter-spacing: -0.005em;
}

/* ═══════════════════════════════════════════════════════════════
   MASTHEAD
   ═══════════════════════════════════════════════════════════════ */
.mast {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.mast-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 14px var(--rail);
}
.brand { display: inline-flex; align-items: center; padding: 4px 0; }
.brand-img {
  display: block; width: auto; height: 26px;
  user-select: none; -webkit-user-drag: none;
}

.nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.4vw, 22px);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0;
}
.nav a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  color: var(--ink-2);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav a:hover, .nav a:focus-visible {
  color: var(--ink);
  background: color-mix(in srgb, var(--signal) 8%, transparent);
}
.nav-tag { color: var(--ink-mute); font-size: 11px; }
.nav-lbl { font-weight: 500; }
.nav-cta {
  color: var(--signal) !important;
  font-weight: 600;
  padding-left: 12px !important;
}
.nav-cta-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--signal) 20%, transparent);
  animation: pulse 2.2s ease-in-out infinite;
}

.mast-status {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0;
}
.status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #2ecc71;
  box-shadow: 0 0 0 3px color-mix(in srgb, #2ecc71 18%, transparent);
  animation: pulse 2.4s ease-in-out infinite;
}
.status-txt { color: var(--ink-2); }

@media (max-width: 920px) {
  .nav { display: none; }
  .mast-status { display: none; }
  .mast-grid { grid-template-columns: 1fr; padding: 12px var(--rail); }
}

/* ═══════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  padding: clamp(36px, 5vw, 76px) var(--rail) 0;
  min-height: calc(100svh - 56px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  isolation: isolate;
  overflow: hidden;
}

/* Schematic grid background */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 30%, transparent 80%);
  opacity: 0.6;
  pointer-events: none;
  z-index: -1;
}
.hero-grid-bg::after {
  /* a slow scanline shimmer */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--signal) 6%, transparent) 50%, transparent 100%);
  background-size: 100% 200%;
  animation: scan 16s linear infinite;
  mix-blend-mode: screen;
}

/* Rail / breadcrumb-y top line */
.hero-rail {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.rail-tag {
  display: inline-flex;
  padding: 3px 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--signal);
  background: color-mix(in srgb, var(--signal) 6%, transparent);
}
.rail-sep { color: var(--ink-low); }
.rail-end { margin-left: auto; }

.hero-inner {
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(36px, 6vw, 80px) 0 clamp(32px, 5vw, 60px);
  position: relative;
  z-index: 1;
  max-width: 1200px;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-2);
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  align-self: start;
}
.eyebrow-pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--signal) 18%, transparent);
  animation: pulse 2.4s ease-in-out infinite;
}

.hero-h {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(44px, 8.5vw, 132px);
  line-height: 0.96;
  letter-spacing: -0.04em;
  margin: clamp(24px, 4vw, 56px) 0 0;
  max-width: 16ch;
}
.hero-line {
  display: block;
  opacity: 0;
  transform: translateY(20px);
  animation: lineUp 1s var(--ease-out) forwards;
}
.hero-line:nth-child(1) { animation-delay: 0.10s; }
.hero-line:nth-child(2) { animation-delay: 0.22s; }
.hero-line:nth-child(3) { animation-delay: 0.34s; }
.hero-mark {
  position: relative;
  color: var(--signal);
  font-weight: 500;
}
.hero-mark::after {
  /* The underline that draws across "technical answer" */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -0.05em;
  height: 2px;
  background: linear-gradient(90deg, var(--c-orange) 0%, var(--c-blue-lite) 50%, var(--c-blue) 100%);
  transform-origin: left;
  transform: scaleX(0);
  animation: drawUnder 1.2s var(--ease-out) 0.7s forwards;
}

.hero-foot {
  margin-top: clamp(48px, 6vw, 96px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: start;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 0.6s forwards;
}
.hero-lede {
  font-size: clamp(15px, 0.8vw + 9px, 18px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 56ch;
}
.hero-lede b {
  color: var(--ink);
  font-weight: 600;
}
.hero-cta-row {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-self: end;
}
.cta {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0;
  padding: 12px 16px;
  border-radius: var(--r-md);
  white-space: nowrap;
  transition: transform .2s var(--ease), background .25s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.cta svg { transition: transform .2s var(--ease); }
.cta:hover svg { transform: translate(2px, 0); }
.cta-primary {
  background: var(--signal);
  color: var(--bg);
  border: 1px solid var(--signal);
  font-weight: 600;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--signal) 0%, transparent);
}
.cta-primary:hover {
  background: var(--c-blue-lite);
  border-color: var(--c-blue-lite);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--signal) 18%, transparent);
}
.cta-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.cta-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-lite);
}

/* Live cube in the corner — sits above the grid but below content */
.hero-cube {
  position: absolute;
  right: calc(var(--rail) - 12px);
  top: clamp(120px, 16vw, 200px);
  width: clamp(120px, 16vw, 220px);
  height: clamp(120px, 16vw, 220px);
  z-index: 0;
  filter: drop-shadow(0 24px 48px rgba(74, 167, 245, 0.15));
  animation: bob 9s ease-in-out infinite alternate;
  pointer-events: none;
}
.hero-cube-img {
  width: 100%; height: 100%;
  object-fit: contain;
}

@media (max-width: 880px) {
  .hero-foot { grid-template-columns: 1fr; }
  .hero-cta-row { justify-self: start; }
  .hero-cube {
    position: relative;
    right: auto; bottom: auto;
    width: 120px; height: 120px;
    margin-top: 24px;
  }
}

/* Ticker */
.ticker {
  position: relative;
  z-index: 1;
  margin: 0 calc(var(--rail) * -1);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  padding: 14px 0;
}
.ticker-track {
  display: inline-flex;
  gap: 36px;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-mute);
  animation: ticker 42s linear infinite;
}
.ticker .t { flex-shrink: 0; }
.ticker .t:nth-child(odd) { color: var(--signal); }

/* ═══════════════════════════════════════════════════════════════
   SECTION HEADER (shared across all sections)
   ═══════════════════════════════════════════════════════════════ */
.sec-head {
  padding: 0 var(--rail);
  display: grid;
  gap: 14px;
  margin-bottom: clamp(40px, 5vw, 64px);
  max-width: 980px;
}
.sec-id {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--signal);
  letter-spacing: 0;
  padding: 4px 9px;
  border: 1px solid color-mix(in srgb, var(--signal) 30%, var(--line));
  border-radius: var(--r-sm);
  justify-self: start;
  background: color-mix(in srgb, var(--signal) 6%, transparent);
}
.sec-h {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.sec-sub {
  font-size: clamp(15px, 1vw + 6px, 19px);
  color: var(--ink-2);
  max-width: 56ch;
}
.sec-sub i {
  font-style: italic;
  color: var(--accent-lite);
}

/* ═══════════════════════════════════════════════════════════════
   01 THESIS
   ═══════════════════════════════════════════════════════════════ */
.thesis {
  padding: clamp(80px, 10vw, 140px) 0;
  position: relative;
}
.thesis-body {
  padding: 0 var(--rail);
  display: grid;
  gap: 22px;
  max-width: 72ch;
}
.thesis-body p {
  font-size: clamp(17px, 1vw + 8px, 22px);
  line-height: 1.55;
  color: var(--ink-2);
}
.thesis-body p .hl {
  color: var(--ink);
  background: linear-gradient(180deg, transparent 70%, color-mix(in srgb, var(--signal) 22%, transparent) 70%);
  padding: 0 2px;
}

/* ═══════════════════════════════════════════════════════════════
   02 PRACTICE
   ═══════════════════════════════════════════════════════════════ */
.practice {
  padding: clamp(80px, 10vw, 140px) 0;
  border-top: 1px solid var(--line);
}
.services {
  padding: 0 var(--rail);
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  margin: 0 var(--rail);
  overflow: hidden;
}
.service {
  background: var(--surface);
  padding: clamp(28px, 3.5vw, 44px);
  display: grid;
  grid-template-columns: 220px 1fr 200px;
  gap: clamp(20px, 3vw, 48px);
  align-items: start;
  transition: background .3s var(--ease);
  position: relative;
}
.service:hover {
  background: var(--surface-2);
}
.service::before {
  /* glowing left border on hover */
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--signal);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .4s var(--ease-out);
}
.service:hover::before { transform: scaleY(1); }

.service--accent { background: color-mix(in srgb, var(--c-orange) 4%, var(--surface)); }
.service--accent::before { background: var(--accent); }
.service--accent:hover { background: color-mix(in srgb, var(--c-orange) 7%, var(--surface)); }
.service--accent .svc-tag {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  color: var(--accent-lite);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.service--accent .svc-num { color: var(--accent-lite); }

.svc-id {
  display: flex; flex-direction: column; gap: 14px;
  font-family: var(--mono);
  font-size: 12px;
}
.svc-num {
  font-family: var(--mono);
  font-size: clamp(28px, 2.6vw, 40px);
  font-weight: 500;
  line-height: 1;
  color: var(--signal);
  letter-spacing: -0.02em;
}
.svc-tag {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--ink-2);
  background: color-mix(in srgb, var(--signal) 5%, transparent);
  font-size: 11px;
  letter-spacing: 0;
  align-self: start;
  width: max-content;
}

.svc-body h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(20px, 1.6vw, 26px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 6px;
}
.svc-line {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-mute);
  margin-bottom: 14px;
}
.svc-desc {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 52ch;
}

.svc-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 12px;
  align-content: start;
  font-family: var(--mono);
  font-size: 11px;
  justify-self: end;
  text-align: right;
}
.meta-k { color: var(--ink-mute); text-align: left; }
.meta-v { color: var(--ink); text-align: right; }

@media (max-width: 980px) {
  .services { margin: 0 var(--rail); }
  .service {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .svc-id { flex-direction: row; align-items: center; gap: 16px; }
  .svc-meta {
    justify-self: start;
    text-align: left;
    grid-template-columns: auto auto;
    gap: 6px 12px;
  }
  .meta-v { text-align: left; }
}

/* ═══════════════════════════════════════════════════════════════
   03 ENGAGEMENT
   ═══════════════════════════════════════════════════════════════ */
.engagement {
  padding: clamp(80px, 10vw, 140px) 0;
  border-top: 1px solid var(--line);
}
.pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 0 var(--rail);
  position: relative;
}
.pipeline::before {
  content: "";
  position: absolute;
  top: 38px;
  left: calc(var(--rail) + 30px);
  right: calc(var(--rail) + 30px);
  height: 1px;
  background: linear-gradient(90deg, var(--c-orange) 0%, var(--c-blue-lite) 50%, var(--c-blue-deep) 100%);
  opacity: 0.6;
  z-index: 0;
}
.stage {
  padding: 0 clamp(12px, 1.5vw, 24px);
  position: relative;
  z-index: 1;
  background: var(--bg);
}
.stage-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
}
.stage-tag {
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--signal);
  position: relative;
}
.stage:nth-child(1) .stage-tag { color: var(--c-orange-lite); border-color: color-mix(in srgb, var(--c-orange) 40%, var(--line)); }
.stage:nth-child(2) .stage-tag { color: var(--c-blue-lite); border-color: color-mix(in srgb, var(--c-blue) 50%, var(--line)); }
.stage:nth-child(3) .stage-tag { color: var(--c-blue-lite); border-color: color-mix(in srgb, var(--c-blue) 60%, var(--line)); }
.stage:nth-child(4) .stage-tag { color: var(--c-blue); border-color: color-mix(in srgb, var(--c-blue-deep) 60%, var(--line)); }
.stage-week {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mute);
}
.stage h4 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(18px, 1.4vw, 22px);
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 10px;
}
.stage p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
}

@media (max-width: 880px) {
  .pipeline { grid-template-columns: 1fr 1fr; gap: 32px 0; }
  .pipeline::before { display: none; }
}
@media (max-width: 540px) {
  .pipeline { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   04 PRINCIPAL
   ═══════════════════════════════════════════════════════════════ */
.principal {
  padding: clamp(80px, 10vw, 140px) 0;
  border-top: 1px solid var(--line);
}
.principal-grid {
  padding: 0 var(--rail);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 80px);
  align-items: start;
}
.prin-name {
  font-family: var(--display);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.prin-tag {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-mute);
  font-weight: 400;
  letter-spacing: 0;
  margin-left: 6px;
}
.prin-role {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--signal);
  margin: 8px 0 24px;
  letter-spacing: 0;
}
.prin-body p {
  font-size: clamp(15px, 0.8vw + 8px, 17.5px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 60ch;
  margin-bottom: 18px;
}

.stats {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.stat {
  background: var(--surface);
  padding: 20px 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 12px;
  transition: background .25s var(--ease);
}
.stat:hover { background: var(--surface-2); }
.stat dt {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mute);
  line-height: 1.3;
  max-width: 28ch;
}
.stat dd {
  font-family: var(--display);
  font-size: clamp(40px, 4vw, 56px);
  font-weight: 400;
  line-height: 0.95;
  color: var(--signal);
  letter-spacing: -0.04em;
  font-feature-settings: "tnum", "ss01";
}
.stat:nth-child(2) dd { color: var(--c-blue-lite); }
.stat:nth-child(3) dd { color: var(--accent-lite); }
.stat:nth-child(4) dd { color: var(--ink); }
.dd-u {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink-mute);
  margin-left: 4px;
  letter-spacing: 0;
}

@media (max-width: 880px) {
  .principal-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   05 ENQUIRE
   ═══════════════════════════════════════════════════════════════ */
.enquire {
  padding: clamp(80px, 10vw, 140px) 0 clamp(60px, 7vw, 100px);
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.enquire::before {
  /* big cube watermark in the background */
  content: "";
  position: absolute;
  right: -8vw; bottom: -10vw;
  width: 56vw; height: 56vw;
  background: url("RD-Logo-favicon.png") center/contain no-repeat;
  opacity: 0.05;
  pointer-events: none;
}
.enquire .sec-h {
  font-size: clamp(28px, 4vw, 60px);
  max-width: 22ch;
}
.enq-em {
  color: var(--accent-lite);
  font-weight: 500;
}
.enquire-grid {
  padding: 0 var(--rail);
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  margin: 0 var(--rail);
  overflow: hidden;
}
.contact {
  background: var(--surface);
  padding: 22px 24px;
  display: grid;
  gap: 8px;
  align-content: center;
  min-height: 110px;
  position: relative;
  transition: background .25s var(--ease);
}
.contact:hover { background: var(--surface-2); }
.contact-k {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0;
}
.contact-v {
  font-family: var(--display);
  font-size: clamp(16px, 1.2vw, 20px);
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.015em;
}
.contact--primary { background: color-mix(in srgb, var(--signal) 8%, var(--surface)); }
.contact--primary:hover { background: color-mix(in srgb, var(--signal) 14%, var(--surface)); }
.contact--primary .contact-v { color: var(--signal); }
.contact-arrow {
  position: absolute;
  top: 22px; right: 24px;
  font-family: var(--mono);
  color: var(--signal);
  transition: transform .25s var(--ease);
}
.contact--primary:hover .contact-arrow { transform: translate(2px, -2px); }

@media (max-width: 760px) {
  .enquire-grid { grid-template-columns: 1fr; }
}

/* ── Contact form ── */
.contact-form {
  margin: clamp(28px, 4vw, 48px) var(--rail) 0;
  padding: clamp(28px, 3vw, 44px);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  display: grid;
  gap: 18px;
  position: relative;
  scroll-margin-top: 100px;
}
.contact-form::before {
  /* Glowing top edge — matches the pipeline gradient */
  content: "";
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--c-orange) 0%, var(--c-blue-lite) 50%, var(--c-blue-deep) 100%);
  border-top-left-radius: var(--r-lg);
  border-top-right-radius: var(--r-lg);
  opacity: 0.7;
}

.cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 640px) {
  .cf-row { grid-template-columns: 1fr; }
}

.cf-field {
  display: grid;
  gap: 8px;
}
.cf-field--wide { grid-column: 1 / -1; }

.cf-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0;
}

.cf-field input,
.cf-field select,
.cf-field textarea {
  font-family: var(--body);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: 12px 14px;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
  letter-spacing: -0.005em;
}
.cf-field input::placeholder,
.cf-field textarea::placeholder { color: var(--ink-low); }

.cf-field input:hover,
.cf-field select:hover,
.cf-field textarea:hover {
  border-color: var(--line-glow);
}

.cf-field input:focus,
.cf-field select:focus,
.cf-field textarea:focus {
  outline: none;
  border-color: var(--signal);
  background: color-mix(in srgb, var(--signal) 4%, var(--bg));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--signal) 18%, transparent);
}

.cf-field select {
  /* keep the custom caret on the right */
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink-mute) 50%),
    linear-gradient(135deg, var(--ink-mute) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.cf-field textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}

/* honeypot — visually hidden */
.cf-honey {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.cf-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.cf-note {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mute);
}
.cf-submit { font-weight: 600; }

/* Success state — when JS shows it */
.contact-form.is-sent {
  text-align: center;
  padding: clamp(40px, 5vw, 72px);
}
.contact-form.is-sent > *:not(.cf-success) { display: none; }
.cf-success {
  display: none;
  font-family: var(--display);
  font-size: clamp(20px, 2vw, 28px);
  color: var(--ink);
  letter-spacing: -0.02em;
}
.cf-success .cf-success-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--signal) 14%, transparent);
  color: var(--signal);
  font-family: var(--mono);
  margin-bottom: 18px;
}
.contact-form.is-sent .cf-success { display: block; }

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.foot {
  padding: clamp(40px, 5vw, 64px) var(--rail) clamp(28px, 3vw, 40px);
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.foot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 48px);
}
.foot-k {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--signal);
  margin-bottom: 12px;
  letter-spacing: 0;
}
.foot-v {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.6;
}
.foot-idx { display: grid; gap: 4px; }
.foot-idx a {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-2);
  transition: color .2s var(--ease);
}
.foot-idx a:hover { color: var(--signal); }
#clock, #up { color: var(--ink); font-family: var(--mono); }

@media (max-width: 760px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--signal) 24%, transparent); }
  50%      { box-shadow: 0 0 0 6px color-mix(in srgb, var(--signal) 0%, transparent); }
}
@keyframes lineUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes drawUnder {
  to { transform: scaleX(1); }
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes scan {
  from { background-position: 0% 100%; }
  to   { background-position: 0% -100%; }
}
@keyframes bob {
  from { transform: translateY(0) rotate(-2deg); }
  to   { transform: translateY(-12px) rotate(2deg); }
}

/* ─── Scroll reveal ─────────────────────────────────────────── */
.js-on .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  will-change: opacity, transform;
}
.js-on .reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}
.js-on .reveal[data-delay="1"] { transition-delay: .06s; }
.js-on .reveal[data-delay="2"] { transition-delay: .12s; }
.js-on .reveal[data-delay="3"] { transition-delay: .18s; }
.js-on .reveal[data-delay="4"] { transition-delay: .24s; }
.js-on .reveal[data-delay="5"] { transition-delay: .30s; }

/* ─── Focus states ──────────────────────────────────────────── */
a:focus-visible, button:focus-visible, .cta:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* ─── Reduced motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .ticker-track { animation: none; }
  .hero-cube { animation: none; }
  .hero-grid-bg::after { animation: none; }
}

/* ─── Small screens ─────────────────────────────────────────── */
@media (max-width: 640px) {
  :root { --rail: 18px; }
  .services { margin: 0 var(--rail); }
  .enquire-grid { margin: 0 var(--rail); }
  .hero-rail { font-size: 10px; gap: 8px; }
  .rail-end { margin-left: 0; }
}
