@charset "utf-8";

/* ==========================================================================
   HALDIR LTD — corporate stylesheet
   Dark-first design system. No external requests: fonts are self-hosted.
   --------------------------------------------------------------------------
   01. Fonts
   02. Reset & base
   03. Design tokens
   04. Utilities & layout
   05. Buttons & links
   06. Header / navigation
   07. Hero
   08. Marquee
   09. Cards & grids
   10. Process timeline
   11. Stats & facts
   12. Company details
   13. FAQ / accordion
   14. CTA band
   15. Footer
   16. Page header & breadcrumbs
   17. Legal pages
   18. Contact page
   19. 404
   20. Motion & reveal
   ========================================================================== */

/* --------------------------------------------------------------------------
   01. Fonts — self-hosted (SIL Open Font License 1.1)
   -------------------------------------------------------------------------- */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --------------------------------------------------------------------------
   02. Reset & base
   -------------------------------------------------------------------------- */

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  color-scheme: dark;
}

html[data-theme="light"] {
  color-scheme: light;
}

body {
  min-height: 100svh;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  font-feature-settings: "cv05" 1, "ss03" 1, "tnum" 0;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

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

ul,
ol {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

hr {
  height: 1px;
  border: 0;
  background: var(--line);
}

::selection {
  color: var(--bg);
  background: var(--brand-b);
}

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

/* --------------------------------------------------------------------------
   03. Design tokens
   -------------------------------------------------------------------------- */

:root {
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;

  /* Dark is the default brand appearance. */
  --bg: #05070c;
  --bg-2: #080b12;
  --bg-3: #0b0f18;
  --surface: #0a0e16;
  --surface-2: #0f141e;
  --surface-3: #141a26;

  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.15);

  --ink: #edf0f6;
  --ink-2: #9aa4b8;
  --ink-3: #69738a;

  --brand-a: #7b61ff;
  --brand-b: #2ee6c6;
  --accent: #8f7dff;
  --accent-ink: #05070c;
  --accent-soft: rgba(123, 97, 255, 0.14);

  --gradient: linear-gradient(120deg, var(--brand-a) 0%, var(--brand-b) 100%);
  --glow: 0 0 0 1px var(--line), 0 30px 80px -40px rgba(123, 97, 255, 0.55);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 34px -18px rgba(0, 0, 0, 0.85);
  --shadow-lg: 0 40px 90px -50px rgba(0, 0, 0, 0.95);

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 76px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme="light"] {
  --bg: #ffffff;
  --bg-2: #f7f8fc;
  --bg-3: #eef1f7;
  --surface: #ffffff;
  --surface-2: #f7f8fc;
  --surface-3: #eef1f7;

  --line: rgba(9, 13, 26, 0.1);
  --line-2: rgba(9, 13, 26, 0.18);

  --ink: #080c16;
  --ink-2: #4d566a;
  --ink-3: #7b8497;

  --brand-a: #5b3df5;
  --brand-b: #0aa88f;
  --accent: #5b3df5;
  --accent-ink: #ffffff;
  --accent-soft: rgba(91, 61, 245, 0.09);

  --glow: 0 0 0 1px var(--line), 0 30px 70px -40px rgba(9, 13, 26, 0.4);
  --shadow-sm: 0 1px 2px rgba(9, 13, 26, 0.05);
  --shadow-md: 0 12px 30px -16px rgba(9, 13, 26, 0.18);
  --shadow-lg: 0 40px 80px -46px rgba(9, 13, 26, 0.3);
}

/* --------------------------------------------------------------------------
   04. Utilities & layout
   -------------------------------------------------------------------------- */

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

.container--narrow {
  max-width: 900px;
}

.section {
  position: relative;
  padding-block: clamp(72px, 9vw, 130px);
}

.section--tight {
  padding-block: clamp(52px, 6vw, 84px);
}

.section--alt {
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}

.section__head {
  max-width: 760px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.section__head h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.section__head > p {
  margin-top: 20px;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  color: var(--ink-2);
}

/* Eyebrow: mono index label, e.g. "01 — What we do" */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gradient);
}

.section__head--center .eyebrow {
  justify-content: center;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: var(--ink-2);
}

.muted {
  color: var(--ink-2);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 300;
  padding: 12px 20px;
  font-weight: 600;
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: var(--radius-xs);
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 16px;
}

/* Decorative hairline grid used behind hero & CTA */
.grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(80% 70% at 50% 30%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(
    80% 70% at 50% 30%,
    #000 0%,
    transparent 78%
  );
  opacity: 0.7;
}

/* Soft aurora blobs */
.aurora {
  position: absolute;
  inset: -20% -10% auto;
  height: 780px;
  pointer-events: none;
  overflow: hidden;
}

.aurora span {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}

.aurora span:nth-child(1) {
  top: 8%;
  left: 8%;
  width: 460px;
  height: 460px;
  background: var(--brand-a);
  animation: drift 22s var(--ease) infinite alternate;
}

.aurora span:nth-child(2) {
  top: 22%;
  right: 6%;
  width: 380px;
  height: 380px;
  background: var(--brand-b);
  opacity: 0.32;
  animation: drift 26s var(--ease) infinite alternate-reverse;
}

.aurora span:nth-child(3) {
  top: 0;
  left: 45%;
  width: 300px;
  height: 300px;
  background: #3f6bff;
  opacity: 0.28;
  animation: drift 30s var(--ease) infinite alternate;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(60px, 50px, 0) scale(1.18);
  }
}

html[data-theme="light"] .aurora span {
  opacity: 0.22;
}

html[data-theme="light"] .aurora span:nth-child(2),
html[data-theme="light"] .aurora span:nth-child(3) {
  opacity: 0.16;
}

/* --------------------------------------------------------------------------
   05. Buttons & links
   -------------------------------------------------------------------------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  font-size: 0.94rem;
  font-weight: 550;
  letter-spacing: -0.01em;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease),
    border-color 0.25s var(--ease), color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  color: #06080e;
  background: var(--gradient);
  box-shadow: 0 14px 34px -16px rgba(123, 97, 255, 0.8);
}

.btn--primary:hover {
  box-shadow: 0 20px 44px -16px rgba(46, 230, 198, 0.6);
}

.btn--ghost {
  color: var(--ink);
  background: color-mix(in srgb, var(--surface-2) 70%, transparent);
  border-color: var(--line-2);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  border-color: var(--ink-3);
  background: var(--surface-3);
}

.btn--sm {
  padding: 10px 18px;
  font-size: 0.875rem;
}

.btn--block {
  width: 100%;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 550;
  color: var(--ink);
}

.link-arrow::after {
  content: "→";
  color: var(--brand-b);
  transition: transform 0.25s var(--ease);
}

.link-arrow:hover::after {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   06. Header / navigation
   -------------------------------------------------------------------------- */

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 210;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--gradient);
  will-change: transform;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease),
    backdrop-filter 0.3s var(--ease);
}

.site-header[data-scrolled="true"],
.site-header[data-open="true"] {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand__mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  transition: transform 0.4s var(--ease);
}

.brand:hover .brand__mark {
  transform: rotate(-8deg) scale(1.05);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand__tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline: auto;
}

.nav a {
  position: relative;
  padding: 9px 14px;
  font-size: 0.92rem;
  font-weight: 480;
  color: var(--ink-2);
  border-radius: 999px;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.nav a:hover {
  color: var(--ink);
  background: var(--surface-2);
}

.nav a[aria-current="page"] {
  color: var(--ink);
}

.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 16px;
  height: 2px;
  transform: translateX(-50%);
  background: var(--gradient);
  border-radius: 2px;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease),
    background-color 0.2s var(--ease);
}

.icon-btn:hover {
  color: var(--ink);
  border-color: var(--line-2);
  background: var(--surface-2);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.theme-toggle .icon-sun {
  display: none;
}

html[data-theme="light"] .theme-toggle .icon-sun {
  display: block;
}

html[data-theme="light"] .theme-toggle .icon-moon {
  display: none;
}

.nav-toggle {
  display: none;
}

.nav-toggle__bars {
  position: relative;
  width: 16px;
  height: 10px;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}

.nav-toggle__bars::before {
  top: 0;
}

.nav-toggle__bars::after {
  top: 8.5px;
}

.site-header[data-open="true"] .nav-toggle__bars::before {
  top: 4px;
  transform: rotate(45deg);
}

.site-header[data-open="true"] .nav-toggle__bars::after {
  top: 4px;
  transform: rotate(-45deg);
}

@media (max-width: 940px) {
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    padding-inline: var(--gutter);
    overflow: hidden;
    background: var(--bg);
    border-bottom: 1px solid transparent;
    transition: max-height 0.4s var(--ease), padding 0.4s var(--ease),
      border-color 0.4s var(--ease);
  }

  .site-header[data-open="true"] .nav {
    max-height: 70svh;
    padding-block: 12px 26px;
    overflow-y: auto;
    border-bottom-color: var(--line);
  }

  .nav a {
    padding: 15px 4px;
    font-size: 1.05rem;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
  }

  .nav a:hover {
    background: none;
  }

  .nav a[aria-current="page"]::after {
    left: 4px;
    bottom: 10px;
    transform: none;
  }

  .nav .btn {
    margin-top: 20px;
  }

  .header__cta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

@media (min-width: 941px) {
  .nav .btn {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   07. Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(64px, 9vw, 120px) clamp(72px, 9vw, 120px);
  border-bottom: 1px solid var(--line);
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}

@media (max-width: 1020px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 10px;
  font-size: 0.8rem;
  font-weight: 480;
  color: var(--ink-2);
  background: color-mix(in srgb, var(--surface-2) 80%, transparent);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.pill__dot {
  position: relative;
  width: 7px;
  height: 7px;
  background: var(--brand-b);
  border-radius: 50%;
}

.pill__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  border-radius: inherit;
  animation: ping 2.4s var(--ease) infinite;
}

@keyframes ping {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  70%,
  100% {
    transform: scale(3);
    opacity: 0;
  }
}

.hero h1 {
  margin-top: 26px;
  font-size: clamp(2.3rem, 4.6vw, 3.55rem);
  letter-spacing: -0.04em;
}

.hero h1 .line {
  display: block;
}

.hero__lead {
  max-width: 560px;
  margin-top: 26px;
  font-size: clamp(1.02rem, 1.7vw, 1.16rem);
  color: var(--ink-2);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 34px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.hero__meta li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero__meta li::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--brand-a);
  border-radius: 50%;
}

/* Code window visual */
.codewin {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: var(--glow), var(--shadow-lg);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.codewin::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(
    140deg,
    color-mix(in srgb, var(--brand-a) 55%, transparent),
    transparent 40%,
    transparent 60%,
    color-mix(in srgb, var(--brand-b) 45%, transparent)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.codewin__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-2) 70%, transparent);
}

.codewin__dots {
  display: flex;
  gap: 6px;
}

.codewin__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-2);
}

.codewin__file {
  margin-left: 6px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-3);
}

.codewin__body {
  margin: 0;
  padding: 22px 20px 26px;
  font-family: var(--font-mono);
  font-size: clamp(0.72rem, 1.15vw, 0.82rem);
  line-height: 1.85;
  color: var(--ink-2);
  overflow-x: auto;
}

.codewin__body code {
  font: inherit;
}

.tok-key {
  color: var(--brand-a);
}
.tok-fn {
  color: var(--brand-b);
}
.tok-str {
  color: #ffb86c;
}
.tok-num {
  color: #ff7ab6;
}
.tok-com {
  color: var(--ink-3);
  font-style: italic;
}

html[data-theme="light"] .tok-str {
  color: #b4610a;
}
html[data-theme="light"] .tok-num {
  color: #c2185b;
}

.caret {
  display: inline-block;
  width: 7px;
  height: 1.05em;
  vertical-align: text-bottom;
  background: var(--brand-b);
  animation: blink 1.05s steps(2, start) infinite;
}

@keyframes blink {
  to {
    visibility: hidden;
  }
}

/* --------------------------------------------------------------------------
   08. Marquee
   -------------------------------------------------------------------------- */

.marquee {
  position: relative;
  padding-block: 26px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 12%,
    #000 88%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 12%,
    #000 88%,
    transparent
  );
}

.marquee__track {
  display: flex;
  width: max-content;
  gap: 56px;
  animation: slide 42s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__track li {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-3);
}

@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}

/* --------------------------------------------------------------------------
   09. Cards & grids
   -------------------------------------------------------------------------- */

.grid {
  display: grid;
  gap: 20px;
}

/* min() keeps single-column layouts from overflowing narrow viewports. */
.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
}

.card {
  position: relative;
  padding: 32px 30px 34px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease),
    background-color 0.35s var(--ease);
}

/* Pointer-tracked spotlight (--mx/--my set from JS). */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(
    260px circle at var(--mx, 50%) var(--my, 0%),
    color-mix(in srgb, var(--brand-a) 16%, transparent),
    transparent 70%
  );
  transition: opacity 0.35s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
}

.card:hover::before {
  opacity: 1;
}

.card > * {
  position: relative;
}

.card__index {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--ink-3);
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  color: var(--brand-b);
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 13px;
}

.card__icon svg {
  width: 22px;
  height: 22px;
}

.card h3 {
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}

.card p {
  margin-top: 12px;
  font-size: 0.94rem;
  color: var(--ink-2);
}

.card__list {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.card__list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.875rem;
  color: var(--ink-3);
}

.card__list li + li {
  margin-top: 7px;
}

.card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  background: var(--brand-a);
  border-radius: 1px;
  transform: rotate(45deg);
}

/* Feature row: alternating text + visual */
.feature {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.feature + .feature {
  margin-top: clamp(56px, 7vw, 96px);
}

.feature h3 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
}

.feature p {
  margin-top: 16px;
  color: var(--ink-2);
}

.feature__panel {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.checklist {
  margin-top: 22px;
}

.checklist li {
  position: relative;
  padding-left: 30px;
  color: var(--ink-2);
}

.checklist li + li {
  margin-top: 12px;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 18px;
  height: 18px;
  background: var(--accent-soft);
  border: 1px solid var(--line-2);
  border-radius: 50%;
}

.checklist li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.72em;
  width: 5px;
  height: 9px;
  border: solid var(--brand-b);
  border-width: 0 1.6px 1.6px 0;
  transform: rotate(45deg);
}

/* --------------------------------------------------------------------------
   10. Process timeline
   -------------------------------------------------------------------------- */

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: 28px;
  counter-reset: phase;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--line-2) 12%,
    var(--line-2) 88%,
    transparent
  );
}

@media (max-width: 760px) {
  .timeline::before {
    top: 0;
    bottom: 0;
    left: 22px;
    right: auto;
    width: 1px;
    height: auto;
    background: linear-gradient(
      180deg,
      transparent,
      var(--line-2) 10%,
      var(--line-2) 90%,
      transparent
    );
  }

  .phase {
    padding-left: 62px;
  }
}

.phase {
  position: relative;
}

.phase__dot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 50%;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}

@media (max-width: 760px) {
  .phase__dot {
    position: absolute;
    left: 0;
    top: 0;
    margin-bottom: 0;
  }
}

.phase:hover .phase__dot {
  color: var(--brand-b);
  border-color: var(--brand-b);
}

.phase h3 {
  font-size: 1.14rem;
}

.phase p {
  margin-top: 10px;
  font-size: 0.93rem;
  color: var(--ink-2);
}

.phase__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.phase__tags li {
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 999px;
}

/* --------------------------------------------------------------------------
   11. Stats & facts
   -------------------------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat {
  padding: 30px 26px;
  background: var(--surface);
}

.stat__value {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
}

.stat__label {
  margin-top: 12px;
  font-size: 0.86rem;
  color: var(--ink-2);
}

/* --------------------------------------------------------------------------
   12. Company details
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}

@media (max-width: 940px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
}

.details {
  position: relative;
  padding: 10px 30px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.details__title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 22px 0 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.details dl {
  margin: 0;
}

.details__row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

@media (max-width: 520px) {
  .details__row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

.details__row dt {
  font-size: 0.85rem;
  color: var(--ink-3);
}

.details__row dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 480;
  color: var(--ink);
}

.details__row dd a {
  border-bottom: 1px solid var(--line-2);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.details__row dd a:hover {
  color: var(--brand-b);
  border-color: var(--brand-b);
}

.principles {
  display: grid;
  gap: 22px;
  margin-top: 34px;
}

.principle {
  display: flex;
  gap: 16px;
}

.principle__mark {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-top: 8px;
  background: var(--gradient);
  border-radius: 2px;
  transform: rotate(45deg);
}

.principle h3 {
  font-size: 1.04rem;
}

.principle p {
  margin-top: 5px;
  font-size: 0.93rem;
  color: var(--ink-2);
}

/* --------------------------------------------------------------------------
   13. FAQ / accordion
   -------------------------------------------------------------------------- */

.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 4px;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.8vw, 1.14rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s var(--ease);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:hover {
  color: var(--brand-b);
}

.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 11px;
  height: 11px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.3s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(-135deg) translateY(-3px);
}

.faq__body {
  padding: 0 4px 26px;
  max-width: 780px;
  color: var(--ink-2);
}

.faq__body p + p {
  margin-top: 12px;
}

/* --------------------------------------------------------------------------
   14. CTA band
   -------------------------------------------------------------------------- */

.cta {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 88px) clamp(28px, 5vw, 72px);
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.cta > * {
  position: relative;
}

.cta h2 {
  font-size: clamp(1.8rem, 3.8vw, 2.75rem);
}

.cta > p {
  max-width: 560px;
  margin: 18px auto 0;
  color: var(--ink-2);
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.cta__note {
  margin-top: 26px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  position: relative;
  padding-top: clamp(56px, 7vw, 88px);
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}

/* Five groups on one line: brand, three link columns, contacts. */
.footer__grid {
  display: grid;
  grid-template-columns:
    minmax(0, 1.5fr) minmax(0, 0.85fr) minmax(0, 0.85fr)
    minmax(0, 0.85fr) minmax(0, 1.25fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
}

@media (max-width: 1180px) {
  .footer__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .footer__about {
    grid-column: 1 / -1;
  }
}

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

@media (max-width: 480px) {
  .footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.footer__about p {
  max-width: 330px;
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--ink-2);
}

.footer__col h2,
.footer__col h3 {
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.footer__col li + li {
  margin-top: 11px;
}

.footer__col a {
  font-size: 0.91rem;
  color: var(--ink-2);
  transition: color 0.2s var(--ease);
}

.footer__col a:hover {
  color: var(--brand-b);
}

.footer__contacts {
  font-style: normal;
  font-size: 0.91rem;
  line-height: 1.7;
  color: var(--ink-2);
}

.footer__contacts .footer__org {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.footer__line {
  display: block;
  margin-top: 12px;
}

.footer__contacts a {
  color: var(--ink-2);
  border-bottom: 1px solid var(--line-2);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.footer__contacts a:hover {
  color: var(--brand-b);
  border-color: var(--brand-b);
}

.footer__wordmark {
  margin-top: clamp(24px, 3.5vw, 48px);
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 15vw, 11rem);
  font-weight: 600;
  line-height: 0.86;
  letter-spacing: -0.06em;
  text-align: center;
  color: transparent;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--ink) 16%, transparent),
    transparent 88%
  );
  -webkit-background-clip: text;
  background-clip: text;
  user-select: none;
  pointer-events: none;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 26px;
  padding-block: 24px 28px;
  font-size: 0.84rem;
  color: var(--ink-3);
  border-top: 1px solid var(--line);
}

.footer__bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer__bottom a:hover {
  color: var(--brand-b);
}

/* --------------------------------------------------------------------------
   16. Page header & breadcrumbs
   -------------------------------------------------------------------------- */

.page-head {
  position: relative;
  overflow: hidden;
  padding-block: clamp(52px, 7vw, 92px) clamp(40px, 5vw, 64px);
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}

.page-head__inner {
  position: relative;
  max-width: 820px;
}

.page-head h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  letter-spacing: -0.04em;
}

.page-head > .container > .page-head__inner > p {
  margin-top: 20px;
  font-size: clamp(1rem, 1.7vw, 1.15rem);
  color: var(--ink-2);
}

.page-head__meta {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  color: var(--line-2);
}

.breadcrumb a:hover {
  color: var(--brand-b);
}

/* --------------------------------------------------------------------------
   17. Legal pages
   -------------------------------------------------------------------------- */

.legal {
  display: grid;
  grid-template-columns: minmax(0, 250px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  padding-block: clamp(48px, 6vw, 80px);
}

@media (max-width: 960px) {
  .legal {
    /* minmax(0, …) — plain 1fr floors at min-content, which lets the
       min-width of a wide table inside .table-scroll push the page out. */
    grid-template-columns: minmax(0, 1fr);
  }
  .legal__toc {
    position: static;
    max-height: none;
  }
}

.legal__toc {
  min-width: 0;
  position: sticky;
  top: calc(var(--header-h) + 24px);
  max-height: calc(100svh - var(--header-h) - 48px);
  padding: 24px 26px;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.legal__toc h2 {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.legal__toc li + li {
  margin-top: 10px;
}

.legal__toc a {
  font-size: 0.875rem;
  color: var(--ink-2);
  transition: color 0.2s var(--ease);
}

.legal__toc a:hover,
.legal__toc a.is-active {
  color: var(--brand-b);
}

.prose {
  max-width: 780px;
  min-width: 0;
}

.prose > section + section {
  margin-top: 46px;
}

.prose h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.prose h3 {
  margin-top: 28px;
  font-size: 1.05rem;
}

.prose p,
.prose li {
  color: var(--ink-2);
}

.prose p {
  margin-top: 15px;
}

.prose ul,
.prose ol {
  margin-top: 16px;
  padding-left: 22px;
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li + li {
  margin-top: 9px;
}

.prose a {
  color: var(--brand-b);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.prose strong {
  font-weight: 600;
  color: var(--ink);
}

.prose table {
  width: 100%;
  min-width: 520px;
  margin-top: 20px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.prose th,
.prose td {
  padding: 13px 15px;
  text-align: left;
  vertical-align: top;
  color: var(--ink-2);
  border: 1px solid var(--line);
}

.prose th {
  font-weight: 600;
  color: var(--ink);
  background: var(--surface-2);
}

.table-scroll {
  max-width: 100%;
  margin-top: 20px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.table-scroll table {
  margin-top: 0;
}

.callout {
  padding: 22px 26px;
  margin-top: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 2px solid var(--brand-a);
  border-radius: var(--radius-xs);
}

.callout p:first-child {
  margin-top: 0;
}

.prose code {
  padding: 2px 7px;
  font-family: var(--font-mono);
  font-size: 0.86em;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 5px;
}

/* --------------------------------------------------------------------------
   18. Contact page
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 20px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  padding: 32px 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.contact-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-2);
}

.contact-card h3 {
  font-size: 1.1rem;
}

.contact-card p {
  margin-top: 12px;
  font-size: 0.93rem;
  color: var(--ink-2);
}

.contact-card__value {
  margin-top: auto;
  padding-top: 20px;
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--ink);
  word-break: break-word;
}

.contact-card__value a {
  border-bottom: 1px solid var(--line-2);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.contact-card__value a:hover {
  color: var(--brand-b);
  border-color: var(--brand-b);
}

.map-frame {
  position: relative;
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* Enquiry form — composes an email locally, nothing is posted to a server. */
.form {
  display: grid;
  gap: 20px;
  padding: clamp(26px, 4vw, 38px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.form__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.field label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-xs);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-3);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand-b);
  background: var(--surface-2);
}

.field select {
  appearance: none;
  padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 20px) center, calc(100% - 14px) center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.form__note {
  font-size: 0.84rem;
  color: var(--ink-3);
}

.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

/* --------------------------------------------------------------------------
   19. 404
   -------------------------------------------------------------------------- */

.notfound {
  position: relative;
  overflow: hidden;
  padding-block: clamp(64px, 10vw, 132px);
}

.notfound__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.notfound__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: color-mix(in srgb, var(--surface-2) 80%, transparent);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.notfound__status i {
  width: 7px;
  height: 7px;
  background: #ff7ab6;
  border-radius: 50%;
}

/* Oversized glitching numeral */
.glitch {
  position: relative;
  /* The gradient is clipped to the glyphs, so the box must hug them —
     a full-width box would only expose the middle of the colour ramp. */
  width: fit-content;
  margin-inline: auto;
  margin-top: 26px;
  font-family: var(--font-display);
  font-size: clamp(6rem, 26vw, 18rem);
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: -0.06em;
  color: transparent;
  /* Horizontal so both brand stops are visible across a very wide glyph run. */
  background: linear-gradient(95deg, var(--brand-a) 0%, var(--brand-b) 72%);
  -webkit-background-clip: text;
  background-clip: text;
  user-select: none;
}

/* Displacement layers. They paint flat colour — no background of their own —
   so they can never tint the gradient underneath while at rest. */
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.glitch::before {
  color: #ff7ab6;
  animation: glitch-a 4.2s steps(1, end) infinite;
}

.glitch::after {
  color: var(--brand-b);
  animation: glitch-b 4.2s steps(1, end) infinite;
}

@keyframes glitch-a {
  0%,
  92%,
  99%,
  100% {
    opacity: 0;
    clip-path: inset(0 0 100% 0);
    transform: none;
  }
  93% {
    opacity: 0.75;
    clip-path: inset(12% 0 62% 0);
    transform: translate(-6px, -2px);
  }
  95% {
    opacity: 0.75;
    clip-path: inset(58% 0 24% 0);
    transform: translate(5px, 1px);
  }
  97% {
    opacity: 0.75;
    clip-path: inset(34% 0 48% 0);
    transform: translate(-4px, 2px);
  }
}

@keyframes glitch-b {
  0%,
  92%,
  99%,
  100% {
    opacity: 0;
    clip-path: inset(100% 0 0 0);
    transform: none;
  }
  94% {
    opacity: 0.7;
    clip-path: inset(46% 0 34% 0);
    transform: translate(6px, 2px);
  }
  96% {
    opacity: 0.7;
    clip-path: inset(20% 0 66% 0);
    transform: translate(-5px, -1px);
  }
  98% {
    opacity: 0.7;
    clip-path: inset(70% 0 12% 0);
    transform: translate(4px, -2px);
  }
}

.notfound h1 {
  margin-top: 18px;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
}

.notfound__lead {
  max-width: 520px;
  margin-top: 16px;
  color: var(--ink-2);
}

.notfound__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.notfound .codewin {
  width: min(560px, 100%);
  margin-top: 44px;
  text-align: left;
}

.notfound__links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
  gap: 14px;
  width: min(900px, 100%);
  margin-top: 44px;
  text-align: left;
}

.notfound__link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.notfound__link:hover {
  transform: translateY(-3px);
  border-color: var(--line-2);
}

.notfound__link strong {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.notfound__link span {
  font-size: 0.86rem;
  color: var(--ink-2);
}

/* --------------------------------------------------------------------------
   20. Motion & reveal
   -------------------------------------------------------------------------- */

/* Reveal styles apply only when JS is running, so no-JS users see everything. */
html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Reduced motion: ambient, never-ending movement is switched off, while the
   one-shot reveals stay (shortened). They finish in well under the five
   seconds WCAG 2.2.2 concerns itself with, and removing them entirely would
   leave the page feeling broken rather than calm. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  .aurora span,
  .marquee__track,
  .pill__dot::after,
  .caret {
    animation: none !important;
  }

  html.js .reveal {
    transition-duration: 0.3s;
  }
}

/* ==========================================================================
   21. Effects layer
   Everything below is pure CSS or driven by a few bytes of JS. No libraries.
   ========================================================================== */

/* --- Film grain: one 120-byte inline SVG, tiled. Sits above the page,
       below the content, and never intercepts a click. ------------------- */

.grain {
  position: fixed;
  inset: -50%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 7s steps(6) infinite;
}

html[data-theme="light"] .grain {
  opacity: 0.02;
}

@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -4%); }
  60% { transform: translate(-2%, -3%); }
  80% { transform: translate(4%, 2%); }
  100% { transform: translate(0, 0); }
}

/* --- Navigation dropdown ---------------------------------------------- */

.nav__item {
  position: relative;
}

.nav__trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  font-size: 0.92rem;
  font-weight: 480;
  color: var(--ink-2);
  border-radius: 999px;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.nav__trigger::after {
  content: "";
  width: 6px;
  height: 6px;
  border: solid currentColor;
  border-width: 0 1.3px 1.3px 0;
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform 0.25s var(--ease);
}

.nav__item:hover .nav__trigger,
.nav__item:focus-within .nav__trigger {
  color: var(--ink);
  background: var(--surface-2);
}

.nav__item:hover .nav__trigger::after,
.nav__item:focus-within .nav__trigger::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}

.nav__panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 230px));
  gap: 4px;
  width: max-content;
  padding: 10px;
  transform: translateX(-50%) translateY(-8px);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease),
    visibility 0.25s;
}

.nav__item:hover .nav__panel,
.nav__item:focus-within .nav__panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav__panel a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border-radius: var(--radius-xs);
  border-bottom: 0;
}

.nav__panel a:hover {
  background: var(--surface-2);
}

.nav__panel strong {
  font-size: 0.9rem;
  font-weight: 550;
  color: var(--ink);
}

.nav__panel span {
  font-size: 0.79rem;
  line-height: 1.45;
  color: var(--ink-3);
}

.nav__panel-foot {
  grid-column: 1 / -1;
  margin-top: 4px;
  padding: 12px 14px 6px;
  border-top: 1px solid var(--line);
}

@media (max-width: 940px) {
  .nav__panel {
    position: static;
    display: block;
    width: auto;
    padding: 0 0 10px 14px;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: none;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
  }

  .nav__panel a {
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }

  .nav__panel a:hover {
    background: none;
  }

  .nav__panel span {
    display: none;
  }

  .nav__panel-foot {
    display: none;
  }

  .nav__trigger {
    width: 100%;
    justify-content: space-between;
    padding: 15px 4px;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
}

/* --- Hero: pointer-tracked spotlight over the hairline grid ------------- */

.spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    420px circle at var(--sx, 50%) var(--sy, 50%),
    color-mix(in srgb, var(--brand-b) 12%, transparent),
    transparent 65%
  );
  transition: opacity 0.5s var(--ease);
}

.hero:hover .spotlight {
  opacity: 1;
}

/* --- Typewriter code window -------------------------------------------- */

.codewin__body[data-typing] .type-hidden {
  visibility: hidden;
}

.codewin__chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.codewin__chrome i {
  width: 6px;
  height: 6px;
  background: var(--brand-b);
  border-radius: 50%;
  animation: pulse-dot 1.6s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

/* --- Tilt: 3D response to the pointer (JS sets --rx / --ry) ------------- */

.tilt {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg))
    translateY(var(--ty, 0px));
  transform-style: preserve-3d;
  transition: transform 0.45s var(--ease);
}

.tilt:hover {
  --ty: -4px;
  transition: transform 0.12s linear;
}

/* --- Magnetic buttons (JS sets --mgx / --mgy) --------------------------- */

.magnetic {
  transform: translate(var(--mgx, 0px), var(--mgy, 0px));
}

.magnetic:hover {
  transform: translate(var(--mgx, 0px), calc(var(--mgy, 0px) - 2px));
}

/* --- Gradient sweep on card hover -------------------------------------- */

.card::after,
.contact-card::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(
    130deg,
    color-mix(in srgb, var(--brand-a) 65%, transparent),
    transparent 45%,
    transparent 55%,
    color-mix(in srgb, var(--brand-b) 55%, transparent)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  transition: opacity 0.4s var(--ease);
}

.card:hover::after,
.contact-card:hover::after {
  opacity: 1;
}

/* --- Scramble/decode headings (JS swaps characters) --------------------- */

.scramble {
  font-variant-ligatures: none;
}

/* --- Timeline connector that draws itself on scroll --------------------- */

.timeline--drawn::before {
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 1.4s var(--ease);
}

.timeline--drawn.is-drawn::before {
  transform: scaleX(1);
}

@media (max-width: 760px) {
  .timeline--drawn::before {
    transform: scaleY(0);
    transform-origin: 50% 0;
  }
  .timeline--drawn.is-drawn::before {
    transform: scaleY(1);
  }
}

/* --- Reveal variants ---------------------------------------------------- */

html.js .reveal--wipe {
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  transform: none;
  transition: opacity 0.5s var(--ease), clip-path 0.9s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

html.js .reveal--wipe.is-visible {
  opacity: 1;
  clip-path: inset(0 0 0 0);
}

/* --- Bento grid --------------------------------------------------------- */

.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.bento__cell {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  min-height: 190px;
  padding: 28px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.bento__cell:hover {
  transform: translateY(-3px);
  border-color: var(--line-2);
}

.bento__cell--wide { grid-column: span 4; }
.bento__cell--half { grid-column: span 3; }
.bento__cell--third { grid-column: span 2; }

.bento__cell--feature {
  grid-column: span 2;
  grid-row: span 2;
  justify-content: space-between;
  background: linear-gradient(
    160deg,
    color-mix(in srgb, var(--brand-a) 16%, var(--surface)),
    var(--surface) 60%
  );
}

@media (max-width: 900px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bento__cell--wide,
  .bento__cell--half,
  .bento__cell--third,
  .bento__cell--feature {
    grid-column: span 2;
    grid-row: auto;
  }
}

.bento__label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.bento__cell h3 {
  font-size: 1.12rem;
}

.bento__cell p {
  font-size: 0.92rem;
  color: var(--ink-2);
}

/* Selector carries the cell class so it outranks `.bento__cell p`. */
.bento__cell .bento__big {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  width: fit-content;
}

/* --- CSS-only tabs (radio inputs, zero JS) ------------------------------ */

.tabs {
  display: grid;
  gap: 24px;
}

.tabs input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tabs__labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tabs__labels label {
  padding: 9px 18px;
  font-size: 0.89rem;
  font-weight: 500;
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease),
    background-color 0.2s var(--ease);
}

.tabs__labels label:hover {
  color: var(--ink);
  border-color: var(--line-2);
}

.tabs__panel {
  display: none;
}

.tabs > input:nth-of-type(1):checked ~ .tabs__labels label:nth-of-type(1),
.tabs > input:nth-of-type(2):checked ~ .tabs__labels label:nth-of-type(2),
.tabs > input:nth-of-type(3):checked ~ .tabs__labels label:nth-of-type(3),
.tabs > input:nth-of-type(4):checked ~ .tabs__labels label:nth-of-type(4),
.tabs > input:nth-of-type(5):checked ~ .tabs__labels label:nth-of-type(5) {
  color: var(--accent-ink);
  background: var(--gradient);
  border-color: transparent;
}

.tabs > input:nth-of-type(1):checked ~ .tabs__panels .tabs__panel:nth-of-type(1),
.tabs > input:nth-of-type(2):checked ~ .tabs__panels .tabs__panel:nth-of-type(2),
.tabs > input:nth-of-type(3):checked ~ .tabs__panels .tabs__panel:nth-of-type(3),
.tabs > input:nth-of-type(4):checked ~ .tabs__panels .tabs__panel:nth-of-type(4),
.tabs > input:nth-of-type(5):checked ~ .tabs__panels .tabs__panel:nth-of-type(5) {
  display: block;
  animation: fade-up 0.45s var(--ease);
}

.tabs > input:focus-visible ~ .tabs__labels label {
  outline: 2px solid var(--brand-b);
  outline-offset: 3px;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* --- Chip lists --------------------------------------------------------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips li {
  padding: 7px 14px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.chips li:hover {
  color: var(--brand-b);
  border-color: color-mix(in srgb, var(--brand-b) 45%, transparent);
}

/* --- Job / role cards --------------------------------------------------- */

.role {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 26px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.role:hover {
  transform: translateY(-2px);
  border-color: var(--line-2);
}

@media (max-width: 620px) {
  .role {
    grid-template-columns: minmax(0, 1fr);
  }
}

.role h3 {
  font-size: 1.12rem;
}

.role p {
  margin-top: 8px;
  font-size: 0.92rem;
  color: var(--ink-2);
}

.role__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* --- Matrix / comparison rows ------------------------------------------- */

.matrix {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.matrix__row {
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  gap: 20px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
}

.matrix__row:last-child {
  border-bottom: 0;
}

@media (max-width: 700px) {
  .matrix__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
}

.matrix__row dt {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 550;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.matrix__row dd {
  margin: 0;
  font-size: 0.93rem;
  color: var(--ink-2);
}

/* --- Reduced motion overrides for the effects layer --------------------- */

@media (prefers-reduced-motion: reduce) {
  /* Continuous background texture and pointer-tracked displacement: off. */
  .grain,
  .spotlight {
    display: none;
  }

  .codewin__chrome i,
  .glitch::before,
  .glitch::after {
    animation: none !important;
  }

  .tilt,
  .magnetic {
    transform: none !important;
  }

  /* One-shot reveals and the timeline draw remain, just quicker. */
  html.js .reveal--wipe {
    transition-duration: 0.4s;
  }

  .timeline--drawn::before {
    transition-duration: 0.6s;
  }
}

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */

@media print {
  .site-header,
  .site-footer,
  .progress-bar,
  .aurora,
  .grid-bg,
  .legal__toc,
  .marquee {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .prose a {
    color: #000;
  }
}

