:root {
  --bg: #070B18;
  --surface: #0C1224;
  --line: rgba(124, 156, 240, .16);
  --line-strong: rgba(124, 156, 240, .34);
  --text: #F4F6FC;
  --muted: #A9B2CB;
  --accent: #E9B949;
  --accent-hi: #F2C765;
  --red: #E8474F;
  --purple: #7B5CF0;
  --blue: #4E6BE8;
  --ink: #080D1A;
  --danger: #FF8B84;
  --sans: Archivo, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --pad: clamp(20px, 5vw, 64px);
  --max: 1280px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html.menu-open { overflow: hidden; }

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

a { color: inherit; }

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

.skip {
  position: absolute;
  left: 12px;
  top: -64px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
}
.skip:focus { top: 12px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

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

/* ---------- header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 11, 24, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-head.is-scrolled { border-bottom-color: var(--line); }

.head-row {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 28px);
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  flex: none;
}
.brand-mark {
  width: 44px;
  height: 44px;
  flex: none;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(78, 107, 232, .4)) brightness(1.06);
}
.brand-name {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .1em;
  line-height: 1.05;
}
.brand-name em {
  font-style: normal;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 9px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
}

.head-nav {
  margin-left: auto;
  display: flex;
  gap: clamp(16px, 2.4vw, 32px);
}
.head-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 0;
  transition: color .15s ease;
}
.head-nav a:hover { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 500 15px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-accent { background: var(--accent); color: var(--ink); font-weight: 600; }
.btn-accent:hover { transform: translateY(-2px); background: var(--accent-hi); }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.head-cta { margin-left: 4px; white-space: nowrap; }

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.menu-toggle span[aria-hidden] {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 0 auto;
  background: currentColor;
  transition: transform .2s ease;
}
.menu-toggle[aria-expanded="true"] span[aria-hidden]:not(:last-child) {
  transform: translateY(3.25px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span[aria-hidden]:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 72px 0 auto 0;
  height: calc(100svh - 72px);
  overflow-y: auto;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 16px var(--pad) 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  font-size: clamp(24px, 7vw, 32px);
  font-weight: 600;
  letter-spacing: -.01em;
  text-decoration: none;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-menu .btn { align-self: flex-start; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 8vw, 112px) 0 clamp(44px, 6vw, 84px);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 68% 0%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 90% 80% at 68% 0%, #000 0%, transparent 70%);
  opacity: .7;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  top: -240px;
  right: -200px;
  width: 780px;
  height: 780px;
  background:
    radial-gradient(circle at 60% 40%, rgba(123, 92, 240, .20), transparent 58%),
    radial-gradient(circle at 78% 62%, rgba(78, 107, 232, .17), transparent 60%),
    radial-gradient(circle at 46% 24%, rgba(233, 185, 73, .11), transparent 52%);
  filter: blur(22px);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }

.eyebrow,
.kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.eyebrow::before,
.kicker > span {
  color: var(--accent);
}
.eyebrow::before { content: "— "; color: var(--accent); }
.eyebrow .tag { color: var(--red); }
.kicker { display: flex; gap: 10px; margin-bottom: 14px; }
.kicker > span::after { content: " /"; color: var(--muted); }

h1 {
  margin: 20px 0 0;
  font-size: clamp(40px, 6.4vw, 92px);
  line-height: .98;
  letter-spacing: -.03em;
  font-weight: 700;
  max-width: 15ch;
}
.accent { color: var(--accent); }

.hero-sub {
  margin: 28px 0 0;
  max-width: 58ch;
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(28px, 4vw, 40px);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px clamp(20px, 4vw, 48px);
  margin: clamp(48px, 7vw, 88px) 0 0;
}
.stats > div {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  min-width: 0;
}
.stats dt {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
}
.stats dd {
  margin: 6px 0 0;
  font-size: clamp(15px, 1.3vw, 18px);
  font-weight: 600;
  letter-spacing: -.01em;
}

/* ---------- sections ---------- */

.section {
  padding: clamp(64px, 9vw, 132px) 0;
  border-top: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  gap: 10px clamp(24px, 4vw, 56px);
  align-items: end;
  margin-bottom: clamp(32px, 4.5vw, 56px);
}
.section-head .kicker { grid-column: 1 / -1; }
.section-head h2 {
  margin: 0;
  font-size: clamp(30px, 4.4vw, 56px);
  line-height: 1.02;
  letter-spacing: -.025em;
  font-weight: 700;
}
.lead {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: clamp(15px, 1.3vw, 17px);
  max-width: 42ch;
}
.contact h2 {
  margin: 0;
  font-size: clamp(32px, 4.6vw, 58px);
  line-height: 1.02;
  letter-spacing: -.025em;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 250px;
  padding: clamp(22px, 2.6vw, 34px);
  background: var(--bg);
  transition: background-color .2s ease;
}
.service:hover { background: var(--surface); }
.service-no {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--accent);
}
.service h3 {
  margin: 4px 0 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.25;
}
.service p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  max-width: 36ch;
}
.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: auto 0 0;
  padding: 12px 0 0;
}
.chips li {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .03em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 11px;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.step {
  background: var(--bg);
  padding: clamp(20px, 2.2vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.step-no {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--accent);
}
.step h3 {
  margin: 4px 0 0;
  font-size: 18px;
  font-weight: 600;
}
.step p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
}
.principle { border-top: 1px solid var(--line); padding-top: 22px; }
.principle h3 {
  margin: 0 0 10px;
  font-size: clamp(19px, 1.8vw, 22px);
  font-weight: 600;
  letter-spacing: -.01em;
}
.principle p { margin: 0; color: var(--muted); font-size: 15px; max-width: 38ch; }

.certified {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin: clamp(28px, 4vw, 44px) 0 0;
  padding: clamp(18px, 2.4vw, 24px) 0 0;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.certified li { display: flex; align-items: center; gap: 9px; }
.certified li::before {
  content: "";
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
  flex: none;
}

.quotes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.quote {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: clamp(22px, 2.6vw, 32px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.quote blockquote {
  margin: 0;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.5;
}
.quote blockquote::before {
  content: "\201C";
  display: block;
  margin-bottom: 14px;
  font-size: 40px;
  line-height: .6;
  color: var(--accent);
}
.quote figcaption { display: flex; flex-direction: column; gap: 3px; margin-top: auto; }
.quote figcaption strong { font-size: 14.5px; font-weight: 600; }
.quote figcaption span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.member {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: clamp(22px, 2.4vw, 30px);
  background: var(--bg);
}
.member-no {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--accent);
}
.member h3 {
  margin: 18px 0 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.member p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.4; }

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.contact-copy .lead { margin-top: 18px; }

.channel {
  display: flex;
  gap: 16px;
  align-items: baseline;
  margin: 28px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 16px;
}
.channel span {
  flex: none;
  width: 64px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.channel a { color: var(--accent); text-decoration: none; }
.channel a:hover { text-decoration: underline; text-underline-offset: 3px; }

.enquiry {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-content: start;
  padding: clamp(20px, 3vw, 32px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.field { display: flex; flex-direction: column; min-width: 0; }
.field-wide,
.form-submit,
.form-status,
.mailto-link { grid-column: 1 / -1; }

.field label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.field .opt { text-transform: none; letter-spacing: .02em; color: #7E88A3; }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font: 400 15px/1.45 var(--sans);
  transition: border-color .15s ease;
}
.field textarea { resize: vertical; min-height: 132px; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23A0A9C2' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: rgba(255, 255, 255, .18); }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline-offset: 0; border-color: var(--accent); }
.field [aria-invalid="true"] { border-color: var(--danger); }

.field-error {
  margin: 6px 0 0;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--danger);
}

.form-submit { justify-self: start; }
.form-status {
  margin: 2px 0 0;
  font-family: var(--mono);
  font-size: 12.5px;
  min-height: 0;
}
.form-status:empty { display: none; }
.form-status[data-state="error"] { color: var(--danger); }
.form-status[data-state="success"] { color: var(--accent); }

.mailto-link {
  justify-self: start;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  text-underline-offset: 3px;
}
.mailto-link[hidden] { display: none; }

/* ---------- footer ---------- */

.site-foot {
  border-top: 1px solid var(--line);
  padding: clamp(40px, 6vw, 72px) 0 24px;
}
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr) minmax(0, 1fr);
  gap: 32px clamp(24px, 5vw, 64px);
  align-items: start;
}
.site-foot .brand-mark { width: 52px; height: 52px; }
.foot-brand p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
  max-width: 34ch;
}
.foot-nav { display: flex; flex-direction: column; gap: 10px; }
.foot-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  width: fit-content;
}
.foot-nav a:hover { color: var(--text); }
.foot-meta p { margin: 0; color: var(--muted); font-size: 14px; }
.socials { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 14px !important; }
.socials a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}
.socials a:hover { color: var(--accent); border-color: var(--accent); }
.foot-base {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: clamp(32px, 5vw, 56px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.foot-base p {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--muted);
}

/* ---------- motion ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .btn-accent:hover { transform: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps .step:last-child { grid-column: span 2; }
}

@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service { min-height: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
  .head-nav, .head-cta { display: none; }
  .menu-toggle { display: grid; place-content: center; gap: 5px; }
}

@media (max-width: 820px) {
  .section-head { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; gap: 0; }
  .principle { padding: 22px 0; }
  .principle:last-child { padding-bottom: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .member { min-height: 0; }
  .steps { grid-template-columns: 1fr; }
  .steps .step:last-child { grid-column: auto; }
  .enquiry { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  h1 { max-width: none; }
}
