/* ────────────────────────────────────────────────────────────
   HEXAIND Technologies & Services LLP — concept site
   Type-driven, minimal, generous whitespace.
   ──────────────────────────────────────────────────────────── */

:root {
  /* palette */
  --ink: #0b0e1a;
  --ink-soft: #171b2b;
  --paper: #f7f7f9;
  --paper-bright: #fefefe;
  --grey: #5c6070;
  --grey-light: #b9bcc9;
  --line: #e3e4ea;
  /* azure family sampled from the HEXAIND logo */
  --blue: #0070c8;
  --blue-bright: #0090e0;
  --cyan: #7ddcff;
  --ice: #d6ecff;

  /* type */
  --font-display: 'Space Grotesk', 'Helvetica Neue', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* fluid scale */
  --ft-hero: clamp(2.75rem, 8vw, 7rem);
  --ft-display: clamp(2.2rem, 6.5vw, 5.5rem);
  --ft-title: clamp(1.8rem, 4.5vw, 3.4rem);
  --ft-large: clamp(1.25rem, 2.4vw, 2rem);
  --ft-body: clamp(1rem, 1.15vw, 1.125rem);
  --ft-small: 0.875rem;

  /* layout */
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --block-gap: clamp(0.5rem, 1.2vw, 1rem);
  --section-pad: clamp(4rem, 9vw, 8.5rem);
  --radius: clamp(1.25rem, 3vw, 2.5rem);
  --content-max: 80rem;
  --header-h: 5rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: var(--ft-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.mono {
  font-family: var(--font-mono);
  font-size: var(--ft-small);
  letter-spacing: 0.02em;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; top: -3rem; left: 1rem; z-index: 200;
  background: var(--ink); color: var(--paper-bright);
  padding: 0.5rem 1rem; border-radius: 0 0 0.5rem 0.5rem;
  text-decoration: none; transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

.content-wrapper {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ── Header ─────────────────────────────────────────────── */

#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding-inline: var(--gutter);
  /* permanently visible, so keep it opaque enough that dark sections
     underneath don't bleed through the blur */
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: transform 0.35s ease, border-color 0.35s ease;
}
#site-header.is-scrolled { border-bottom-color: var(--line); }
/* slides away while scrolling down, returns on the first scroll up */
#site-header.is-hidden { transform: translateY(-100%); }
/* keyboard users tabbing into the header always get it back */
#site-header.is-hidden:focus-within { transform: none; }

/* anchored sections land below the fixed header */
[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }

.brand {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none;
}
.brand-logo {
  height: 4rem;
  width: auto;
}

/* ── Vertical menu (always behind the burger) ───────────── */

.nav-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  overflow-y: auto;
  list-style: none;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  padding: clamp(1.5rem, 4vh, 3rem) var(--gutter);
  transform: translateY(-2rem);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease, visibility 0s 0.4s;
  z-index: 95; /* below the fixed header (100), above everything else */
}
.nav-menu.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

.nav-menu li {
  width: min(100%, 34rem);
  margin-inline: auto;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  translate: 0 1.25rem;
  transition: opacity 0.45s ease, translate 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-menu li:last-child { border-bottom: none; }
.nav-menu.is-open li { opacity: 1; translate: 0 0; }
.nav-menu.is-open li:nth-child(1) { transition-delay: 0.05s; }
.nav-menu.is-open li:nth-child(2) { transition-delay: 0.09s; }
.nav-menu.is-open li:nth-child(3) { transition-delay: 0.13s; }
.nav-menu.is-open li:nth-child(4) { transition-delay: 0.17s; }
.nav-menu.is-open li:nth-child(5) { transition-delay: 0.21s; }
.nav-menu.is-open li:nth-child(6) { transition-delay: 0.25s; }
.nav-menu.is-open li:nth-child(7) { transition-delay: 0.29s; }
.nav-menu.is-open li:nth-child(8) { transition-delay: 0.33s; }

.nav-menu a {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vh, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  padding-block: clamp(0.7rem, 1.8vh, 1.05rem);
  transition: color 0.25s ease, padding-left 0.25s ease;
}
.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: var(--blue);
  padding-left: 0.5rem;
}
.nav-menu a[aria-current="page"] { color: var(--blue); }
.menu-icon {
  width: 1.4rem;
  height: 1.4rem;
  color: var(--blue);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.nav-menu a:hover .menu-icon { transform: scale(1.12); }
.nav-cta a { color: var(--blue); font-weight: 600; }

/* page can't scroll while the menu is open */
.menu-open, .menu-open body { overflow: hidden; }

#nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 2.75rem; height: 2.75rem;
  background: none; border: none; cursor: pointer;
}
.nav-toggle-line {
  display: block; width: 1.5rem; height: 2px;
  margin-inline: auto;
  background: var(--ink);
  transition: transform 0.3s ease;
}
#nav-toggle[aria-expanded="true"] .nav-toggle-line:first-of-type { transform: translateY(4px) rotate(45deg); }
#nav-toggle[aria-expanded="true"] .nav-toggle-line + .nav-toggle-line { transform: translateY(-4px) rotate(-45deg); }

/* ── Hero ───────────────────────────────────────────────── */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 2rem) 0 2rem;
  position: relative;
  overflow: hidden;
  /* pointer position (-0.5 … 0.5) and scroll progress (0 … 1), written by main.js */
  --mx: 0;
  --my: 0;
  --scroll: 0;
}
.hero-inner { width: 100%; position: relative; z-index: 2; }
.hero-hints { z-index: 2; }

/* ── Hero decor: hexagon field attracted to the cursor ──── */

.hero-decor {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* honeycomb lattice — repels slightly from the cursor, slides on scroll */
.hero-lattice {
  position: absolute;
  inset: -6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='97' viewBox='0 0 84 97'%3E%3Cg fill='none' stroke='%230070c8' stroke-width='1.5'%3E%3Cpolygon points='21,2 41,13.5 41,36.5 21,48 1,36.5 1,13.5'/%3E%3Cpolygon points='63,50.5 83,62 83,85 63,96.5 43,85 43,62'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 84px 97px;
  opacity: calc(0.09 * (1 - var(--scroll) * 0.8));
  -webkit-mask-image: radial-gradient(75% 75% at 50% 45%, #000 30%, transparent 78%);
  mask-image: radial-gradient(75% 75% at 50% 45%, #000 30%, transparent 78%);
  transform:
    translate(calc(var(--mx) * -18px), calc(var(--my) * -18px + var(--scroll) * -70px));
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-glow {
  position: absolute;
  left: calc(50% + var(--mx) * 60%);
  top: calc(50% + var(--my) * 60%);
  width: clamp(18rem, 40vw, 34rem);
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle,
    color-mix(in srgb, var(--blue-bright) 16%, transparent) 0%,
    color-mix(in srgb, var(--cyan) 9%, transparent) 45%,
    transparent 70%);
  filter: blur(10px);
  opacity: calc(1 - var(--scroll) * 0.9);
}
/* counter-glow drifts the opposite way for depth */
.hero-glow-alt {
  left: calc(38% + var(--mx) * -34%);
  top: calc(62% + var(--my) * -34%);
  width: clamp(12rem, 26vw, 22rem);
  background: radial-gradient(circle,
    color-mix(in srgb, var(--cyan) 12%, transparent) 0%,
    transparent 65%);
}

/* large hexagonal ring behind the headline — rotates & grows on scroll */
.hero-ring {
  position: absolute;
  left: 50%;
  top: 48%;
  width: clamp(24rem, 52vw, 46rem);
  translate: -50% -50%;
  color: var(--blue);
  opacity: calc(0.1 * (1 - var(--scroll)));
  transform:
    translate(calc(var(--mx) * 22px), calc(var(--my) * 22px))
    rotate(calc(var(--scroll) * 32deg))
    scale(calc(1 + var(--scroll) * 0.35));
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-ring svg { display: block; width: 100%; }
.hero-ring polygon { fill: none; stroke: currentColor; stroke-width: 0.75; }

.hex-float {
  position: absolute;
  left: var(--hx);
  top: var(--hy);
  width: var(--hs);
  color: var(--blue);
  opacity: calc(0.35 * (1 - var(--scroll) * 0.9));
  /* attraction toward the cursor (depth --hd) + scroll parallax & spin */
  translate: calc(var(--mx) * var(--hd) * 1px) calc(var(--my) * var(--hd) * 1px);
  transform:
    translateY(calc(var(--scroll) * var(--hd) * -3.2px))
    rotate(calc(var(--scroll) * var(--hd) * 1.4deg));
  transition: translate 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s ease-out;
}
.hex-float svg {
  display: block;
  width: 100%;
  animation: hex-drift var(--ht, 9s) ease-in-out infinite alternate;
}
.hex-float polygon {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
}
.hex-fill { opacity: calc(0.22 * (1 - var(--scroll) * 0.9)); }
.hex-fill polygon { fill: color-mix(in srgb, var(--blue-bright) 55%, transparent); stroke: none; }

@keyframes hex-drift {
  from { transform: translateY(-0.5rem) rotate(-4deg); }
  to   { transform: translateY(0.6rem) rotate(7deg); }
}

/* touch devices: no cursor to attract — scroll response and drift remain */
@media (hover: none) {
  .hero-glow { left: 50%; top: 50%; }
  .hero-glow-alt { left: 38%; top: 62%; }
  .hex-float { translate: 0 0; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--ft-hero);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.hero-line {
  display: block;
  overflow: hidden;
  /* keep descenders (g, y) outside the clip edge */
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}
.hero-line > em,
.hero-title em {
  font-style: italic;
  color: var(--blue);
}
.type-cursor {
  display: inline-block;
  width: 0.06em;
  height: 0.82em;
  margin-left: 0.06em;
  background: var(--blue-bright);
  vertical-align: baseline;
  transform: translateY(0.08em);
  animation: cursor-blink 1.1s steps(1) infinite;
}
@keyframes cursor-blink { 50% { opacity: 0; } }
.hero-line {
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-line:nth-child(2) { animation-delay: 0.12s; }
@keyframes rise {
  from { transform: translateY(0.4em); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

.hero-hints {
  position: absolute;
  left: 0; right: 0;
  bottom: 2rem;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  justify-content: space-between;
  color: var(--grey);
}
button.hint-scroll {
  background: none;
  border: none;
  padding: 0.25rem 0;
  color: inherit;
  cursor: pointer;
}
button.hint-scroll:hover,
button.hint-scroll:focus-visible { color: var(--blue); }
.hint-scroll { animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(0.35rem); }
}

/* ── Sections & blocks ──────────────────────────────────── */

section { padding-block: var(--section-pad); }

.rounded-block {
  margin-inline: var(--block-gap);
  border-radius: var(--radius);
}
.block-ink { background: var(--ink); color: var(--paper-bright); }
.block-blue { background: var(--blue); color: var(--paper-bright); }

.section-title {
  font-family: var(--font-display);
  font-size: var(--ft-title);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.section-index {
  display: block;
  color: var(--blue);
  margin-bottom: 0.75rem;
}
.block-ink .section-index { color: var(--blue-bright); }
.block-blue .section-index { color: var(--paper-bright); }
.tick { color: var(--blue); }
.block-ink .tick { color: var(--blue-bright); }
.block-blue .tick { color: var(--ice); }

/* reveal-on-scroll — hidden state only applies when JS is running (html.js).
   Uses `translate` (not `transform`) so hover transforms still work. */
.js .reveal {
  opacity: 0;
  translate: 0 1.75rem;
  transition: opacity 0.7s ease, translate 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.js .reveal.is-visible { opacity: 1; translate: 0 0; }

/* ── Intro ──────────────────────────────────────────────── */

.intro-section { padding-block: var(--section-pad); }
.intro-lead {
  font-family: var(--font-display);
  font-size: var(--ft-large);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
  max-width: 46ch;
  margin-bottom: 1.75rem;
}
.intro-sub {
  color: var(--grey);
  max-width: 58ch;
}

/* ── Services ───────────────────────────────────────────── */

.service-list {
  list-style: none;
  counter-reset: service;
}
.service-item {
  counter-increment: service;
  padding-block: clamp(1.5rem, 3vw, 2.25rem);
  border-bottom: 1px solid color-mix(in srgb, var(--paper-bright) 14%, transparent);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 0.5rem clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}
.service-item:last-child { border-bottom: none; }
.service-item h3 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
  position: relative;
  padding-left: 2.6em;
  transition: color 0.25s ease;
}
.service-item h3::before {
  content: '/' counter(service, decimal-leading-zero);
  position: absolute;
  left: 0; top: 0.35em;
  font-family: var(--font-mono);
  font-size: 0.45em;
  font-weight: 400;
  color: var(--blue-bright);
}
.service-item:hover h3 { color: var(--blue-bright); }
.service-item p {
  color: var(--grey-light);
  font-size: var(--ft-small);
  line-height: 1.7;
  max-width: 52ch;
}

/* ── Facts ──────────────────────────────────────────────── */

.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
}
.fact dd {
  font-family: var(--font-display);
  font-size: var(--ft-display);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}
.fact-suffix { color: var(--ice); }
.fact dt {
  font-family: var(--font-mono);
  font-size: var(--ft-small);
  color: color-mix(in srgb, var(--paper-bright) 88%, var(--blue));
  margin-bottom: 0.85rem;
}

/* ── Group ──────────────────────────────────────────────── */

.group-grid {
  display: grid;
  /* Two-up by default so the four brands never leave an orphan card. */
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2vw, 1.75rem);
}
/* All four on one row once there is room for it. */
@media (min-width: 1180px) {
  .group-grid { grid-template-columns: repeat(4, 1fr); }
}
.group-card {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 0.6);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--paper-bright);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.group-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--blue) 35%, var(--line));
  box-shadow: 0 18px 40px -22px color-mix(in srgb, var(--ink) 28%, transparent);
}
.group-tag {
  align-self: flex-start;
  color: var(--blue);
  border: 1px solid color-mix(in srgb, var(--blue) 30%, transparent);
  border-radius: 99px;
  padding: 0.15rem 0.7rem;
  font-size: 0.75rem;
}
.group-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.group-card p { color: var(--grey); font-size: 0.95rem; flex: 1; }

.text-link {
  font-family: var(--font-mono);
  font-size: var(--ft-small);
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--blue) 35%, transparent);
  align-self: flex-start;
  padding-bottom: 0.1rem;
  transition: border-color 0.25s ease;
}
.text-link:hover { border-bottom-color: var(--blue); }
.text-link.is-static { color: var(--grey); border-bottom-color: transparent; }

/* ── Work ───────────────────────────────────────────────── */

.work-sub {
  color: var(--grey);
  margin-top: calc(-1 * clamp(1.5rem, 4vw, 3rem));
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
  max-width: 50ch;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem);
  padding-inline: var(--gutter);
  max-width: var(--content-max);
  margin-inline: auto;
}
/* gentle stagger so the two columns don't march in lockstep */
@media (min-width: 961px) {
  .work-card:nth-child(even) { margin-top: 3.5rem; }
}

/* home page shows a rotating shortlist; the rest live on /works.
   Pure CSS, so it holds even before the shuffle script runs. */
.work-grid.is-limited > :nth-child(n + 7) { display: none; }

.work-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: clamp(3rem, 6vw, 5rem);
}
.work-more {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper-bright);
  border: 1.5px solid var(--ink);
  border-radius: 99px;
  padding: 0.85rem 2rem;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.work-more svg { width: 1.15rem; height: 1.15rem; transition: transform 0.25s ease; }
.work-more:hover,
.work-more:focus-visible {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--paper-bright);
  transform: translateY(-2px);
}
.work-more:hover svg { transform: translateX(4px); }

.work-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

/* browser-chrome frame around each screenshot */
.work-shot {
  display: block;
  position: relative;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 0.45);
  overflow: hidden;
  background: var(--paper-bright);
  box-shadow: 0 12px 30px -20px color-mix(in srgb, var(--ink) 45%, transparent);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease, border-color 0.3s ease;
}
.work-chrome {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.9rem;
  background: color-mix(in srgb, var(--ink) 5%, var(--paper-bright));
  border-bottom: 1px solid var(--line);
}
.work-chrome i {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--line);
  flex-shrink: 0;
}
.work-chrome i:first-child { background: #ff5f57; }
.work-chrome i:nth-child(2) { background: #febc2e; }
.work-chrome i:nth-child(3) { background: #28c840; }
.work-chrome em {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.7rem;
  color: var(--grey);
  margin-left: 0.6rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.work-shot img {
  display: block;
  width: 100%;
  /* height:auto lets aspect-ratio win over the width/height attributes */
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.work-visit {
  position: absolute;
  left: 50%;
  bottom: 1.1rem;
  translate: -50% 0.9rem;
  opacity: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--paper-bright);
  background: var(--blue);
  border-radius: 99px;
  padding: 0.55rem 1.35rem;
  box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--ink) 60%, transparent);
  transition: opacity 0.35s ease, translate 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.work-link:hover .work-shot,
.work-link:focus-visible .work-shot {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--blue) 45%, var(--line));
  box-shadow: 0 26px 50px -26px color-mix(in srgb, var(--ink) 55%, transparent);
}
.work-link:hover .work-shot img,
.work-link:focus-visible .work-shot img { transform: scale(1.04); }
.work-link:hover .work-visit,
.work-link:focus-visible .work-visit { opacity: 1; translate: -50% 0; }

.work-body {
  display: block;
  padding-top: 1.35rem;
}
.work-sector {
  display: block;
  color: var(--blue);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
}
.work-title {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  transition: color 0.25s ease;
}
.work-link:hover .work-title { color: var(--blue); }
.work-desc {
  display: block;
  color: var(--grey);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-top: 0.55rem;
  max-width: 46ch;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}
.work-tags i {
  font-style: normal;
  font-size: 0.72rem;
  color: var(--grey);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 0.2rem 0.7rem;
  background: var(--paper-bright);
  transition: border-color 0.25s ease, color 0.25s ease;
}
.work-link:hover .work-tags i {
  border-color: color-mix(in srgb, var(--blue) 30%, var(--line));
  color: var(--ink-soft);
}

/* ── Testimonials rail ──────────────────────────────────── */

.testimonials-section { padding-bottom: calc(var(--section-pad) * 0.6); }

.testi-rail {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.testi-track {
  list-style: none;
  display: flex;
  gap: clamp(1rem, 2vw, 1.75rem);
  width: max-content;
  padding-block: 0.5rem;
  animation: testi-scroll 75s linear infinite;
}
.testi-rail:hover .testi-track,
.testi-rail:focus-within .testi-track { animation-play-state: paused; }

@keyframes testi-scroll {
  to { translate: calc(-50% - clamp(0.5rem, 1vw, 0.875rem)) 0; }
}

.testi-card {
  width: clamp(19rem, 28vw, 26rem);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: var(--paper-bright);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 0.55);
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  position: relative;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.testi-card:hover {
  border-color: color-mix(in srgb, var(--blue) 35%, var(--line));
  box-shadow: 0 18px 40px -24px color-mix(in srgb, var(--ink) 30%, transparent);
}
.testi-card::before {
  content: '“';
  font-family: var(--font-display);
  font-size: 3.25rem;
  font-weight: 700;
  line-height: 0.6;
  color: var(--blue);
  display: block;
  margin-bottom: -0.75rem;
}
.testi-quote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.55;
  letter-spacing: -0.005em;
  flex: 1;
}
.testi-who { color: var(--grey); font-size: 0.78rem; }

/* ── Values ─────────────────────────────────────────────── */

.values-statement {
  font-family: var(--font-display);
  font-size: var(--ft-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 20ch;
}
.values-statement em {
  font-style: normal;
}
.values-statement em:nth-child(odd) { color: var(--blue-bright); }
.values-sub {
  margin-top: 1.75rem;
  color: var(--grey-light);
  max-width: 48ch;
}

/* ── Process ────────────────────────────────────────────── */

.process-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.process-step {
  border-top: 2px solid var(--ink);
  padding-top: 1.25rem;
}
.step-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}
.step-index { color: var(--blue); display: block; }
.step-icon {
  width: 2.4rem;
  height: 2.4rem;
  color: var(--blue);
  flex-shrink: 0;
}
.process-step h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}
.process-step p { color: var(--grey); font-size: 0.95rem; }

/* ── Tech stack mosaic ──────────────────────────────────── */

.tech-sub {
  color: var(--ice);
  margin-top: calc(-1 * clamp(1.5rem, 4vw, 3rem));
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
  max-width: 50ch;
}

.tech-stack {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  grid-auto-rows: clamp(3.25rem, 6vw, 5rem);
  grid-auto-flow: dense;
  gap: 1px;
  border-top: 1px solid color-mix(in srgb, var(--paper-bright) 25%, transparent);
}
.tech-stack li {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.4rem;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--paper-bright);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--paper-bright) 25%, transparent);
  transition: background 0.25s ease, color 0.25s ease;
  overflow: hidden;
  cursor: default;
}
.tech-stack li:hover {
  background: var(--paper-bright);
  color: var(--blue);
}
.tech-stack li[data-w="2"] { grid-column: span 2; font-size: clamp(0.66rem, 1.05vw, 0.9rem); }
.tech-stack li[data-w="3"] { grid-column: span 3; font-size: clamp(0.8rem, 1.35vw, 1.15rem); }
.tech-stack li[data-w="4"] { grid-column: span 4; grid-row: span 2; font-size: clamp(1rem, 1.8vw, 1.55rem); font-weight: 600; }

/* ── Forms ──────────────────────────────────────────────── */

.site-form {
  text-align: left;
  display: grid;
  gap: 1.5rem;
}
.contact-form {
  max-width: 44rem;
  margin: clamp(2.5rem, 6vw, 4rem) auto 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.form-field { display: grid; gap: 0.45rem; }
.form-field label {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--grey);
}
.block-ink .form-field label { color: var(--grey-light); }
.form-field label span { color: var(--blue-bright); }

.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: inherit;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid #9aa0af;
  border-radius: 0;
  padding: 0.55rem 0.1rem;
  transition: border-color 0.25s ease;
  width: 100%;
}
.block-ink .form-field input,
.block-ink .form-field select,
.block-ink .form-field textarea {
  border-bottom-color: color-mix(in srgb, var(--paper-bright) 50%, transparent);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--grey); }
.block-ink .form-field input::placeholder,
.block-ink .form-field textarea::placeholder { color: var(--grey-light); }
.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 2px;
  border-bottom-color: var(--blue-bright);
}
.form-field [aria-invalid="true"] { border-bottom-color: #dc2626; }
.block-ink .form-field [aria-invalid="true"] { border-bottom-color: #f87171; }
.form-hint {
  font-size: 0.85rem;
  color: var(--grey);
  margin-top: -0.15rem;
}
.form-field select { cursor: pointer; }
.block-ink .form-field select option { color: var(--ink); background: var(--paper-bright); }
.form-field textarea { resize: vertical; min-height: 5.5rem; }

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* Empty until Turnstile renders into it, so it takes no space when unused. */
.form-turnstile:not(:empty) { margin-top: 0.75rem; }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-top: 0.5rem;
}
.form-submit {
  cursor: pointer;
  font-size: 1.05rem;
}
.form-submit:disabled { opacity: 0.55; cursor: wait; transform: none; }
.form-submit.form-submit-solid {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--paper-bright);
}
.form-submit.form-submit-solid:hover { background: var(--ink); border-color: var(--ink); }
.form-status { min-height: 1.2em; color: var(--grey); }
.block-ink .form-status { color: var(--grey-light); }
.form-status.is-ok { color: #16a34a; }
.block-ink .form-status.is-ok { color: var(--cyan); }
.form-status.is-error { color: #dc2626; }
.block-ink .form-status.is-error { color: #f87171; }

/* ── About page ─────────────────────────────────────────── */

.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.vm-card {
  border: 1px solid color-mix(in srgb, var(--paper-bright) 14%, transparent);
  border-radius: calc(var(--radius) * 0.6);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: color-mix(in srgb, var(--paper-bright) 4%, transparent);
}
.vm-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}
.vm-bar {
  display: block;
  width: 3rem;
  height: 0.25rem;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--blue-bright), var(--cyan));
  margin-bottom: 0.9rem;
}
.vm-card p { color: var(--grey-light); }
.vm-list {
  list-style: none;
  display: grid;
  gap: 0.7rem;
  margin-top: 1.25rem;
}
.vm-list li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--grey-light);
  font-size: 0.95rem;
}
.vm-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--blue-bright);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.75rem);
}
.value-card {
  border-top: 2px solid var(--ink);
  padding-top: 1.25rem;
}
.value-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.value-card h3::after { content: '_'; color: var(--blue); }
.value-card p { color: var(--grey); font-size: 0.95rem; }

.quality-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.quality-card {
  border: 1px solid color-mix(in srgb, var(--paper-bright) 30%, transparent);
  border-radius: calc(var(--radius) * 0.6);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: color-mix(in srgb, var(--paper-bright) 8%, transparent);
}
.quality-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.quality-card p { color: var(--ice); font-size: 0.95rem; }

.registry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}
.registry-card {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 0.5);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  background: var(--paper-bright);
  display: grid;
  gap: 0.6rem;
  align-content: start;
}
.registry-tag {
  justify-self: start;
  color: var(--blue);
  border: 1px solid color-mix(in srgb, var(--blue) 30%, transparent);
  border-radius: 99px;
  padding: 0.15rem 0.7rem;
  font-size: 0.75rem;
}
.registry-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.registry-card p { color: var(--grey); font-size: 0.8rem; overflow-wrap: anywhere; }
.registry-note {
  margin-top: 2.5rem;
  color: var(--grey);
  font-size: 0.95rem;
  max-width: 60ch;
}

/* ── Careers page ───────────────────────────────────────── */

.hero-compact { min-height: 72svh; }

.perk-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}
.perk-list li {
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 0.4rem 1.1rem;
  background: var(--paper-bright);
  color: var(--ink-soft);
}

.roles-note {
  margin-top: 2.5rem;
  color: var(--grey-light);
  font-size: 0.95rem;
}

.apply-form {
  max-width: 52rem;
  gap: 2.5rem;
}
.apply-form fieldset {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 0.5);
  padding: clamp(1.25rem, 3vw, 2rem);
  display: grid;
  gap: 1.5rem;
  background: var(--paper-bright);
}
/* A legend with float != none is not rendered over the border edge, so the
   box stays an unbroken rounded rectangle and the label lines up with the
   fields instead of leaving a sliver of border beside the corner. */
.apply-form legend {
  float: left;
  width: 100%;
  padding: 0;
  margin: 0;
  color: var(--blue);
  letter-spacing: 0.04em;
}

.footer-compact { padding-top: clamp(3rem, 6vw, 5rem); }
.footer-compact .footer-grid { padding-top: 0; border-top: none; }

/* ── Footer wordmark ────────────────────────────────────── */

.footer-wordmark {
  /* sized to span the footer's inner width; 'HEXAIND' ≈ 4.2em wide here */
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: min(20.5vw, 18rem);
  line-height: 0.76;
  letter-spacing: -0.045em;
  text-align: center;
  white-space: nowrap;
  margin: clamp(2.5rem, 6vw, 5rem) 0 -0.1em;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--paper-bright) 88%, transparent) 0%,
    color-mix(in srgb, var(--blue-bright) 68%, transparent) 46%,
    color-mix(in srgb, var(--blue) 22%, transparent) 78%,
    transparent 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* ── WhatsApp float ─────────────────────────────────────── */

.wa-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 0;
  height: 3.5rem;
  padding: 0 1.05rem;
  border-radius: 99px;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 30px -8px rgba(37, 211, 102, 0.55);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.wa-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid #25d366;
  animation: wa-pulse 2.6s ease-out infinite;
}
@keyframes wa-pulse {
  0%   { transform: scale(1); opacity: 0.7; }
  70%  { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}
.wa-float svg {
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
}
.wa-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-width 0.35s ease, opacity 0.3s ease, margin-left 0.35s ease;
}
.wa-float:hover,
.wa-float:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px -8px rgba(37, 211, 102, 0.65);
}
.wa-float:hover .wa-label,
.wa-float:focus-visible .wa-label {
  max-width: 9rem;
  opacity: 1;
  margin-left: 0.6rem;
}

/* ── Footer ─────────────────────────────────────────────── */

#site-footer {
  margin: var(--block-gap);
  margin-top: 0;
  padding: var(--section-pad) var(--gutter) 2rem;
  /* keeps the oversized wordmark inside the rounded corners */
  overflow: hidden;
}

.contact-prompt {
  text-align: center;
  padding-block: 0 var(--section-pad);
}
.contact-title {
  font-family: var(--font-display);
  font-size: var(--ft-hero);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}
.contact-title em { font-style: italic; color: var(--blue-bright); }

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

/* animated action buttons: email / call / start-a-project */
.action-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  font-family: var(--font-display);
  color: var(--paper-bright);
  background: color-mix(in srgb, var(--paper-bright) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--paper-bright) 22%, transparent);
  border-radius: 1.25rem;
  padding: 1.1rem 1.35rem;
  min-width: min(100%, 21rem);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}
.action-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, color-mix(in srgb, var(--blue-bright) 22%, transparent), transparent 70%);
  translate: -110% 0;
  transition: translate 0.6s ease;
}
.action-btn:hover,
.action-btn:focus-visible {
  border-color: var(--blue-bright);
  background: color-mix(in srgb, var(--blue) 22%, transparent);
  transform: translateY(-3px);
}
.action-btn:hover::before,
.action-btn:focus-visible::before { translate: 110% 0; }

.action-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--blue-bright) 18%, transparent);
  color: var(--blue-bright);
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.action-icon svg { width: 1.4rem; height: 1.4rem; }
.action-btn:hover .action-icon,
.action-btn:focus-visible .action-icon {
  background: var(--blue-bright);
  color: var(--paper-bright);
  transform: rotate(-8deg) scale(1.05);
}

.action-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  flex: 1;
}
.action-text small {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--grey-light);
  letter-spacing: 0.02em;
}

.action-arrow {
  color: var(--grey-light);
  transition: transform 0.3s ease, color 0.3s ease;
}
.action-arrow svg { width: 1.25rem; height: 1.25rem; display: block; }
.action-btn:hover .action-arrow,
.action-btn:focus-visible .action-arrow {
  color: var(--paper-bright);
  transform: translateX(4px);
}
.action-btn[aria-expanded="true"] .action-chevron { transform: rotate(180deg); }
.action-btn:hover .action-chevron { transform: translateX(0) translateY(2px); }
.action-btn[aria-expanded="true"]:hover .action-chevron { transform: rotate(180deg); }

/* collapsible form shell — expands on "Start a project" */
.js .form-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.js .form-wrap-inner {
  overflow: hidden;
  opacity: 0;
  translate: 0 0.75rem;
  transition: opacity 0.4s ease 0s, translate 0.4s ease 0s;
}
.js .form-wrap.is-open { grid-template-rows: 1fr; }
.js .form-wrap.is-open .form-wrap-inner {
  opacity: 1;
  translate: 0 0;
  transition: opacity 0.45s ease 0.2s, translate 0.45s ease 0.2s;
}
.button-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  text-decoration: none;
  color: var(--ink);
  background: var(--paper-bright);
  border: 1.5px solid var(--paper-bright);
  border-radius: 99px;
  padding: 0.9rem 2rem;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.button-link:hover { transform: translateY(-2px); background: var(--cyan); border-color: var(--cyan); }
.button-ghost {
  background: transparent;
  color: var(--paper-bright);
  border-color: color-mix(in srgb, var(--paper-bright) 40%, transparent);
}
.button-ghost:hover { background: var(--paper-bright); color: var(--ink); border-color: var(--paper-bright); }

.contact-hours { margin-top: 1.5rem; color: var(--grey-light); }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
  padding-top: var(--section-pad);
  border-top: 1px solid color-mix(in srgb, var(--paper-bright) 14%, transparent);
  max-width: var(--content-max);
  margin-inline: auto;
}
.footer-label {
  font-family: var(--font-display);
  color: var(--blue-bright);
  font-weight: 600;
  margin-bottom: 1.1rem;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}
.footer-col ul { list-style: none; display: grid; gap: 0.55rem; }
.footer-col a, .footer-col span {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--grey-light);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--paper-bright); }
.footer-reg li { font-size: 0.78rem; color: var(--grey-light); overflow-wrap: anywhere; }
.footer-reg li span { font-family: var(--font-mono); font-weight: 400; }
.footer-col address {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: normal;
  color: var(--grey-light);
  font-size: 1rem;
  line-height: 1.8;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: var(--section-pad);
  padding-top: 1.5rem;
  border-top: 1px solid color-mix(in srgb, var(--paper-bright) 14%, transparent);
  color: var(--grey-light);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9rem;
  max-width: var(--content-max);
  margin-inline: auto;
}

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 960px) {
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  /* reserve two label lines so the big numbers align across each row */
  .fact dt { min-height: 2.7em; }
  .group-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .quality-grid { grid-template-columns: 1fr; }
  .registry-grid { grid-template-columns: repeat(2, 1fr); }
  .vm-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .service-item { grid-template-columns: 1fr; }
  .service-item h3 { padding-left: 3rem; }
  .service-item p { padding-left: 3rem; }

  .work-grid { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: 1fr; }
  .facts-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .registry-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .form-row { grid-template-columns: 1fr; }
  .brand-logo { height: 3rem; }
  /* keep the scroll hint clear of the WhatsApp float */
  .hero-hints { padding-right: 5.5rem; }
  .wa-float { height: 3.25rem; padding: 0 0.9rem; }
}

/* ── Language switcher & Tamil typography ───────────────── */

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.lang-sep { color: var(--blue-bright); }
.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem 0.1rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--grey-light);
  border-bottom: 1.5px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.lang-btn:hover,
.lang-btn:focus-visible { color: var(--paper-bright); }
.lang-btn.is-active {
  color: var(--paper-bright);
  border-bottom-color: var(--blue-bright);
}

/* Tamil script: swap in Noto Sans Tamil and give the taller glyphs room */
html.lang-ta {
  --font-display: 'Noto Sans Tamil', 'Space Grotesk', sans-serif;
  --font-body: 'Noto Sans Tamil', 'Inter', system-ui, sans-serif;
}
html.lang-ta .hero-title,
html.lang-ta .section-title,
html.lang-ta .contact-title,
html.lang-ta .values-statement { letter-spacing: 0; }
html.lang-ta .hero-title { font-size: clamp(2rem, 5.4vw, 4.6rem); line-height: 1.22; }
html.lang-ta .hero-line { padding-bottom: 0.24em; margin-bottom: -0.24em; }
html.lang-ta .contact-title { font-size: clamp(2rem, 5.6vw, 4.8rem); line-height: 1.22; }
html.lang-ta .section-title { line-height: 1.25; }
html.lang-ta .values-statement { line-height: 1.3; }

/* ── Motion preferences ─────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-line, .hint-scroll { animation: none; }
  .type-cursor { display: none; }
  .hex-float svg { animation: none; }
  .hex-float { translate: 0 0; transition: none; transform: none; }
  .hero-glow { left: 50%; top: 50%; opacity: 1; }
  .hero-glow-alt { left: 38%; top: 62%; }
  .hero-lattice { transform: none; transition: none; }
  .hero-ring { transform: none; transition: none; }
  .wa-float::before { animation: none; }
  .testi-track { animation: none; flex-wrap: wrap; width: auto; }
  .testi-rail { mask-image: none; -webkit-mask-image: none; }
  .testi-card[aria-hidden="true"] { display: none; }
  .js .reveal { opacity: 1; translate: 0 0; transition: none; }
  * { transition-duration: 0.01ms !important; }
}
