/* ==========================================================================
   GlebeTech Ltd — site stylesheet
   Design tokens and values are lifted directly from the Claude Design
   prototypes in /project. Desktop (>= ~1264px) is pixel-identical to the
   prototype; everything below that is fluid/stepped, which the prototype
   did not specify.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Surfaces */
  --bg: #FDFCFA;
  --surface: #ffffff;
  --surface-dark: #14171C;

  /* Ink */
  --ink: #14171C;
  --ink-2: #3D4552;
  --ink-3: #4C5563;
  --muted: #5B6472;
  --muted-2: #8A9099;

  /* Ink on dark surfaces */
  --on-dark: #D6D9DE;
  --on-dark-2: #B9BEC6;
  --on-dark-3: #E7E9EC;

  /* Accent */
  --orange: #F5891F;
  --orange-dark: #E07A12;
  --orange-tint: #FFF6EC;
  --orange-tint-2: #FFF9F2;
  --orange-line: #F8CFA1;
  --blue: #1176BC;

  /* Lines */
  --line: #EAE6E0;
  --line-soft: #EFEBE5;
  --line-strong: #E4DFD8;
  --line-input: #E1DCD4;
  --line-button: #DCD7CF;
  --line-footer: #262A31;

  /* Type */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  /* Layout */
  --shell: 1200px;
  --gutter: 32px;

  /* Elevation */
  --shadow-card: 0 24px 60px rgba(20, 23, 28, 0.08);
  --shadow-panel: 0 18px 40px rgba(20, 23, 28, 0.05);
  --shadow-cta: 0 6px 16px rgba(245, 137, 31, 0.28);
  --shadow-cta-light: 0 10px 30px rgba(20, 23, 28, 0.16);

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --speed: 180ms;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color var(--speed) var(--ease),
              background-color var(--speed) var(--ease),
              border-color var(--speed) var(--ease);
}

a:hover { color: var(--orange); }

img { max-width: 100%; }

/* Margins are set explicitly wherever the design calls for one, so start
   from zero rather than fighting UA defaults. */
h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }

h1, h2, h3 { font-family: var(--font-display); }

/* Visible keyboard focus everywhere — the prototype had none. */
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 20px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border-radius: 0 0 10px 0;
}

.skip-link:focus {
  left: 0;
  color: #fff;
}

.shell {
  max-width: var(--shell);
  margin: 0 auto;
}

/* Decorative clipped shapes behind hero / CTA bands. */
.deco {
  position: absolute;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   3. Type primitives
   -------------------------------------------------------------------------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}

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

.section-title {
  font-size: clamp(30px, 3.5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 14px 0 0;
}

.link-underline {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 2px solid var(--orange);
  padding-bottom: 3px;
}

.link-underline:hover { color: var(--orange); }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--speed) var(--ease),
              background-color var(--speed) var(--ease),
              border-color var(--speed) var(--ease);
}

.btn--dark {
  font-size: 16px;
  color: #fff;
  background: var(--ink);
  border: none;
  padding: 16px 28px;
}

.btn--dark:hover {
  background: var(--orange);
  color: #fff;
}

.btn--ghost {
  font-size: 16px;
  color: var(--ink);
  background: transparent;
  border: 1.5px solid var(--line-button);
  padding: 15px 26px;
}

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

.btn--light {
  font-size: 17px;
  color: var(--ink);
  background: #fff;
  padding: 18px 32px;
  box-shadow: var(--shadow-cta-light);
}

.btn--light:hover {
  background: var(--ink);
  color: #fff;
}

.btn--orange {
  font-size: 17px;
  color: var(--ink);
  background: var(--orange);
  padding: 18px 32px;
}

.btn--orange:hover {
  background: #fff;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   5. Header / navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 252, 250, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.site-header__logo { display: flex; align-items: center; }

.site-header__logo img {
  height: 44px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-nav[hidden] { display: none; }

.site-nav__link {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
}

.site-nav__link:hover { color: var(--orange); }

.site-nav__link[aria-current='page'] {
  font-weight: 600;
  color: var(--ink);
  border-bottom: 2px solid var(--orange);
  padding-bottom: 2px;
}

.site-nav__cta {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--orange);
  padding: 11px 20px;
  border-radius: 999px;
  box-shadow: var(--shadow-cta);
}

.site-nav__cta:hover {
  background: var(--orange-dark);
  color: #fff;
}

/* Mobile menu button — not in the prototype, needed for small screens. */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle__bars { position: relative; }

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform var(--speed) var(--ease), opacity var(--speed) var(--ease);
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: '';
  position: absolute;
}

.nav-toggle__bars::before { transform: translateY(-6px); }
.nav-toggle__bars::after { transform: translateY(6px); }

.nav-toggle[aria-expanded='true'] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars::after { transform: rotate(-45deg); }

/* --------------------------------------------------------------------------
   6. Home — hero
   -------------------------------------------------------------------------- */

@keyframes gtRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.hero {
  position: relative;
  padding: 96px var(--gutter) 88px;
}

.hero__deco {
  top: 0;
  right: 0;
  width: 46%;
  height: 100%;
  background: linear-gradient(180deg, var(--orange-tint) 0%, var(--bg) 100%);
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
}

.hero__grid {
  position: relative;
  max-width: var(--shell);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.hero__copy { animation: gtRise 0.7s var(--ease) both; }
.hero__visual { animation: gtRise 0.9s var(--ease) both; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  border: 1px solid var(--orange-line);
  background: var(--orange-tint);
  padding: 7px 13px;
  border-radius: 999px;
}

.hero__title {
  font-weight: 700;
  font-size: clamp(38px, 5.6vw, 70px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 22px 0 0;
  text-wrap: balance;
}

.hero__title em {
  font-style: normal;
  color: var(--orange);
}

.hero__lede {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-3);
  margin: 24px 0 0;
  max-width: 520px;
  text-wrap: pretty;
}

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

.hero__note {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: var(--muted-2);
  margin: 26px 0 0;
}

/* Hero figure: how AI gets targeted at measured friction. Replaces the
   prototype's browser-chrome placeholder. */
.process-figure {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  padding: 24px 22px 20px;
}

/* The drawing has a floor below which its labels stop being readable, so it
   scrolls inside the card rather than shrinking past it. */
.process-figure__frame { overflow-x: auto; }

.process-figure svg {
  display: block;
  width: 100%;
  min-width: 420px;
  height: auto;
  color: var(--ink);
}

.process-figure__caption {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 18px;
  text-wrap: pretty;
}

.hero__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

.stat-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 16px 18px;
}

.stat-card__value {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--blue);
}

.stat-card__label {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.4;
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   7. Home — tech strip
   -------------------------------------------------------------------------- */

.tech-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.tech-strip__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 22px var(--gutter);
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
}

.tech-strip__list {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
}

/* --------------------------------------------------------------------------
   8. Sections and generic blocks
   -------------------------------------------------------------------------- */

.section { padding: 96px var(--gutter); }
.section--tight { padding: 80px var(--gutter); }
.section--panel {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
}

.section-head__copy { max-width: 640px; }

/* Service teaser cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 44px;
}

.service-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  padding: 28px 24px 30px;
  transition: border-color var(--speed) var(--ease), transform var(--speed) var(--ease);
}

.service-card:hover {
  border-color: var(--orange);
  transform: translateY(-3px);
}

.service-card__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--orange);
}

.service-card__title {
  font-size: 21px;
  font-weight: 600;
  margin: 16px 0 0;
  letter-spacing: -0.01em;
}

.service-card__body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin: 10px 0 0;
}

/* The fourth card is dark and, per the design, has no hover treatment. */
.service-card--dark { background: var(--surface-dark); }

.service-card--dark:hover {
  transform: none;
  border-color: var(--line);
}

.service-card--dark .service-card__title { color: #fff; }
.service-card--dark .service-card__body { color: var(--on-dark-2); }

/* Two-column "how we work" split */
.split {
  max-width: var(--shell);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
}

.split__lede {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-3);
  margin: 20px 0 0;
  text-wrap: pretty;
}

.split__link {
  display: inline-block;
  margin-top: 24px;
}

/* Timeline rows */
.timeline { display: grid; }

.timeline__row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--line-soft);
}

.timeline__row:last-child { border-bottom: 1px solid var(--line-soft); }

.timeline__when {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--orange);
}

.timeline__title {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

.timeline__body {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--muted);
  margin: 7px 0 0;
}

/* Experience figures */
.figures {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 44px;
}

.figure {
  border-top: 3px solid var(--orange);
  padding: 22px 0 0;
  margin: 0;
}

.figure--blue { border-top-color: var(--blue); }
.figure--ink { border-top-color: var(--ink); }

.figure__value {
  font-family: var(--font-display);
  font-size: clamp(38px, 4.15vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.figure__label {
  font-size: 16px;
  color: var(--ink-3);
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   9. Closing CTA bands
   -------------------------------------------------------------------------- */

.cta-wrap { padding: 0 var(--gutter) 96px; }
.cta-wrap--spaced { padding: 80px var(--gutter) 96px; }

.cta {
  max-width: var(--shell);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: var(--orange);
  padding: 64px 56px;
}

.cta--compact { padding: 56px; }

.cta--dark { background: var(--surface-dark); }

.cta__deco {
  top: -40%;
  right: -6%;
  width: 52%;
  height: 180%;
  background: rgba(255, 255, 255, 0.14);
  clip-path: polygon(28% 0, 100% 0, 72% 100%, 0 100%);
}

.cta--dark .cta__deco {
  width: 48%;
  background: rgba(245, 137, 31, 0.16);
}

.cta__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}

.cta__copy { max-width: 620px; }

.cta__title {
  font-size: clamp(28px, 3.35vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
  color: #fff;
}

.cta__title--sm {
  font-size: clamp(26px, 3.02vw, 38px);
  line-height: 1.1;
}

.cta__title--600 { max-width: 600px; }

.cta__body {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  margin: 16px 0 0;
}

.cta--dark .cta__body {
  font-size: 17.5px;
  color: var(--on-dark-2);
  margin: 14px 0 0;
}

/* --------------------------------------------------------------------------
   10. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--surface-dark);
  padding: 56px var(--gutter) 40px;
}

.site-footer__grid {
  max-width: var(--shell);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.site-footer__name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.site-footer__motto {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-top: 6px;
}

.site-footer__blurb {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted-2);
  margin: 18px 0 0;
  max-width: 340px;
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__heading {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-footer__col a,
.site-footer__col span {
  font-size: 15px;
  color: var(--on-dark);
}

.site-footer__col a:hover { color: var(--orange); }

.site-footer__col span { color: var(--muted-2); }

.site-footer__bottom {
  max-width: var(--shell);
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line-footer);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.site-footer__bottom span {
  font-size: 13px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   11. Services page
   -------------------------------------------------------------------------- */

.page-head {
  padding: 80px var(--gutter) 56px;
  border-bottom: 1px solid var(--line);
}

.page-head__grid {
  max-width: var(--shell);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: end;
}

.page-head__title {
  font-size: clamp(34px, 4.6vw, 58px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 16px 0 0;
  text-wrap: balance;
}

.page-head__lede {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-3);
  margin: 0;
  text-wrap: pretty;
}

.section--details { padding: 72px var(--gutter) 0; }

.service-detail-list {
  max-width: var(--shell);
  margin: 0 auto;
  display: grid;
}

.service-detail {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.service-detail:last-child {
  border-bottom: none;
  padding-bottom: 56px;
}

.service-detail__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--orange);
}

.service-detail__title {
  font-size: clamp(24px, 2.7vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 12px 0 0;
}

.service-detail__strap {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  margin: 14px 0 0;
}

.service-detail__body {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 0;
  text-wrap: pretty;
}

.chip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.chip-grid li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 15px;
  color: var(--ink-2);
}

.chip-grid--dark li {
  background: var(--surface-dark);
  border-color: var(--surface-dark);
  color: var(--on-dark-3);
}

.engagement-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 40px;
}

.engagement {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 26px 30px;
}

.engagement--featured {
  border: 1.5px solid var(--orange);
  background: var(--orange-tint-2);
}

.engagement__title {
  font-size: 22px;
  font-weight: 600;
  margin: 0;
}

.engagement__meta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--orange);
  margin-top: 6px;
}

.engagement__body {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--muted);
  margin: 14px 0 0;
}

.section-title--narrow { max-width: 640px; }
.section-title--flush { margin-top: 0; }
.section-title--40 { font-size: clamp(27px, 3.2vw, 40px); line-height: 1.1; }
.section-title--38 { font-size: clamp(26px, 3.02vw, 38px); line-height: 1.1; }

/* --------------------------------------------------------------------------
   12. About page
   -------------------------------------------------------------------------- */

.about-head { padding: 80px var(--gutter) 64px; }

.about-head__title {
  font-size: clamp(36px, 4.95vw, 62px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.03;
  margin: 16px 0 0;
  max-width: 900px;
  text-wrap: balance;
}

.about-head__title em {
  font-style: normal;
  color: var(--orange);
}

.about-head__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin-top: 40px;
  max-width: 1000px;
}

.about-head__cols p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 0;
  text-wrap: pretty;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 56px;
  margin-top: 36px;
}

.value {
  padding: 26px 0;
  border-top: 1px solid var(--line-soft);
}

.value:nth-last-child(-n + 2) { border-bottom: 1px solid var(--line-soft); }

.value__title {
  font-size: 21px;
  font-weight: 600;
  margin: 0;
}

.value__body {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  margin: 8px 0 0;
}

.sectors {
  max-width: var(--shell);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
}

.sectors__lede {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--muted);
  margin: 16px 0 0;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: flex-start;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pill-list li {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 15.5px;
  color: var(--ink-2);
}

/* --------------------------------------------------------------------------
   13. Contact page
   -------------------------------------------------------------------------- */

.contact { padding: 80px var(--gutter) 96px; }

.contact__grid {
  max-width: var(--shell);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 72px;
  align-items: start;
}

.contact__title {
  font-size: clamp(34px, 4.45vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 16px 0 0;
  text-wrap: balance;
}

.contact__lede {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-3);
  margin: 18px 0 0;
  max-width: 520px;
  text-wrap: pretty;
}

.enquiry-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  margin-top: 36px;
  box-shadow: var(--shadow-panel);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

/* Direct children only — fields inside .field-row are spaced by the grid gap. */
.enquiry-form > .field { margin-top: 18px; }

.field__label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
}

.field__optional {
  font-weight: 400;
  color: var(--muted-2);
}

.enquiry-form input,
.enquiry-form select,
.enquiry-form textarea {
  font-family: var(--font-body);
  border: 1px solid var(--line-input);
  border-radius: 10px;
  padding: 13px 14px;
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  width: 100%;
}

.enquiry-form textarea { resize: vertical; }

.enquiry-form input:focus,
.enquiry-form select:focus,
.enquiry-form textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(245, 137, 31, 0.18);
}

.enquiry-form ::placeholder { color: #A8ADB5; }

.enquiry-form input:user-invalid,
.enquiry-form textarea:user-invalid { border-color: #C9452F; }

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.form-footer__note {
  font-size: 13px;
  color: var(--muted-2);
}

.form-status {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  border-left: 3px solid var(--orange);
  padding-left: 14px;
}

.form-status:empty {
  margin-top: 0;
  border: none;
  padding: 0;
}

.contact__aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 100px;
}

.aside-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  padding: 26px;
}

.aside-card--dark { background: var(--surface-dark); }

.aside-card--tint {
  border: 1px solid var(--orange-line);
  background: var(--orange-tint-2);
  padding: 24px 26px;
}

.aside-card__list {
  margin: 14px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.aside-card__email {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}

.aside-card__phone {
  font-size: 16px;
  color: var(--ink-2);
}

.aside-card__email:hover,
.aside-card__phone:hover { color: var(--orange); }

.aside-card__where {
  font-size: 15px;
  color: var(--muted);
}

.steps {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 15px;
  line-height: 1.55;
  color: var(--on-dark);
  counter-increment: step;
}

.steps li::before {
  content: '0' counter(step);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--orange);
}

.aside-card__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}

.aside-card__body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin: 8px 0 0;
}

/* --------------------------------------------------------------------------
   14. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .hero__grid,
  .split,
  .page-head__grid,
  .service-detail,
  .sectors,
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero__deco { width: 60%; }

  .card-grid { grid-template-columns: repeat(2, 1fr); }

  .contact__aside { position: static; }

  .section,
  .cta-wrap { padding-left: var(--gutter); padding-right: var(--gutter); }
}

@media (max-width: 860px) {
  /* :not([hidden]) so a no-JS visitor never sees a dead button — site.js
     unhides it and collapses the nav on load. */
  .nav-toggle:not([hidden]) { display: inline-flex; }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px var(--gutter) 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(20, 23, 28, 0.06);
  }

  .site-nav[hidden] { display: none; }

  .site-nav__link {
    padding: 12px 0;
    font-size: 17px;
    border-bottom: 1px solid var(--line-soft);
  }

  .site-nav__link[aria-current='page'] {
    border-bottom: 1px solid var(--line-soft);
    color: var(--orange);
    padding-bottom: 12px;
  }

  .site-nav__cta {
    margin-top: 12px;
    text-align: center;
    font-size: 16px;
    padding: 14px 20px;
  }

  .site-header__inner { position: relative; }

  .engagement-grid,
  .figures,
  .values-grid,
  .about-head__cols {
    grid-template-columns: 1fr;
  }

  .values-grid { gap: 0; }
  .value:nth-last-child(-n + 2) { border-bottom: none; }
  .value:last-child { border-bottom: 1px solid var(--line-soft); }

  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__grid > :first-child { grid-column: 1 / -1; }

  .cta { padding: 48px 32px; }
  .cta--compact { padding: 48px 32px; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }

  .hero { padding-top: 64px; padding-bottom: 64px; }
  .hero__deco { width: 100%; opacity: 0.7; }
  .hero__lede { font-size: 17px; }
  .hero__actions .btn { width: 100%; text-align: center; }

  .section { padding-top: 64px; padding-bottom: 64px; }
  .section--tight { padding-top: 56px; padding-bottom: 56px; }
  .section--details { padding-top: 48px; padding-bottom: 0; }
  .page-head { padding-top: 56px; padding-bottom: 40px; }
  .about-head { padding-top: 56px; padding-bottom: 48px; }
  .contact { padding-top: 56px; padding-bottom: 64px; }
  .cta-wrap { padding-bottom: 64px; }
  .cta-wrap--spaced { padding-top: 56px; }

  .card-grid,
  .chip-grid,
  .field-row,
  .hero__stats {
    grid-template-columns: 1fr;
  }

  .tech-strip__inner { gap: 16px; }
  .tech-strip__list { gap: 8px 20px; }

  .timeline__row { grid-template-columns: 1fr; gap: 6px; }

  .enquiry-form { padding: 22px; }

  .site-footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .site-footer__grid > :first-child { grid-column: auto; }

  .cta,
  .cta--compact { padding: 36px 24px; }
}

/* --------------------------------------------------------------------------
   15. Preferences
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .nav-toggle,
  .deco { display: none !important; }

  body { background: #fff; }
}

/* --------------------------------------------------------------------------
   16. Legal pages (privacy, cookies, data rights)
   -------------------------------------------------------------------------- */

.legal { padding: 72px var(--gutter) 96px; }

.legal__inner {
  max-width: 760px;
  margin: 0 auto;
}

.legal__title {
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.06;
  margin: 16px 0 0;
  text-wrap: balance;
}

.legal__meta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: var(--muted-2);
  margin: 18px 0 0;
}

.legal__intro {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-3);
  margin: 22px 0 0;
  text-wrap: pretty;
}

.legal__toc {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: 24px 26px;
  margin: 40px 0 0;
}

.legal__toc ol {
  margin: 12px 0 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 32px;
}

.legal__toc li {
  font-size: 15px;
  line-height: 1.5;
  margin-top: 6px;
  break-inside: avoid;
}

.legal__body h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 52px 0 0;
  scroll-margin-top: 100px;
}

.legal__num {
  flex: none;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--orange);
  background: var(--orange-tint);
  padding: 4px 10px;
  border-radius: 8px;
}

.legal__stamp {
  text-align: center;
  padding: 14px;
  background: var(--orange-tint);
  color: #8A4A00;
  border-radius: 12px;
  /* 600, not 700: this is body text, and the IBM Plex Sans variable font
     covers 400–600. Asking for 700 would get a synthesised fake bold. */
  font-weight: 600;
  font-size: 13px;
  margin: 36px 0 0;
}

.legal__contact {
  padding: 32px;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 18px;
  text-align: center;
  margin: 56px 0 0;
}

.legal__contact p { font-size: 15px; margin: 0; }
.legal__contact a { font-weight: 600; }

.legal__body h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 30px 0 0;
}

.legal__body p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 14px 0 0;
  text-wrap: pretty;
}

.legal__body ul,
.legal__body ol {
  margin: 14px 0 0;
  padding-left: 22px;
}

.legal__body li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
  margin-top: 8px;
}

.legal__body a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

.legal__note {
  border-left: 3px solid var(--orange);
  background: var(--orange-tint-2);
  border-radius: 0 12px 12px 0;
  padding: 18px 22px;
  margin: 24px 0 0;
}

.legal__note p { margin: 0; }
.legal__note p + p { margin-top: 10px; }

/* Unfilled facts. Deliberately loud — none of these may ship. */
.todo {
  background: #FFF1DF;
  border-bottom: 2px dotted var(--orange);
  padding: 0 3px;
  font-style: normal;
  color: #8A4A00;
}

.table-scroll {
  overflow-x: auto;
  margin: 20px 0 0;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.legal__body table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  background: var(--surface);
}

.legal__body th,
.legal__body td {
  text-align: left;
  vertical-align: top;
  font-size: 14.5px;
  line-height: 1.6;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-soft);
}

.legal__body th {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  background: var(--bg);
}

.legal__body td { color: var(--ink-2); }
.legal__body tbody tr:last-child td { border-bottom: none; }

/* --------------------------------------------------------------------------
   17. Cookie consent
   -------------------------------------------------------------------------- */

.cookie-banner {
  position: fixed;
  z-index: 200;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 1060px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(20, 23, 28, 0.18);
  padding: 24px 28px;
}

.cookie-banner[hidden] { display: none; }

.cookie-banner__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.cookie-banner__body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin: 8px 0 0;
  max-width: 620px;
}

.cookie-banner__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Accept and reject are the same size and sit side by side: rejecting is
   exactly as easy as accepting, which is the part regulators enforce. */
.btn--consent {
  font-size: 15px;
  padding: 13px 24px;
  border: 1.5px solid var(--ink);
}

.btn--consent-accept {
  background: var(--ink);
  color: #fff;
}

.btn--consent-accept:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.btn--consent-reject {
  background: var(--surface);
  color: var(--ink);
}

.btn--consent-reject:hover {
  background: var(--ink);
  color: #fff;
}

.link-button {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  background: none;
  border: none;
  border-bottom: 2px solid var(--orange);
  border-radius: 0;
  padding: 0 0 2px;
  cursor: pointer;
  transition: color var(--speed) var(--ease);
}

.link-button:hover { color: var(--orange); }

.cookie-prefs {
  margin: 22px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
}

.cookie-prefs[hidden] { display: none; }

.cookie-prefs__item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 24px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}

.cookie-prefs__item:last-of-type { border-bottom: none; }

.cookie-prefs__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.cookie-prefs__desc {
  grid-column: 1 / 2;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.cookie-prefs__control {
  grid-row: 1 / 3;
  grid-column: 2 / 3;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
}

.cookie-prefs__control input { width: 18px; height: 18px; accent-color: var(--orange); }

.cookie-prefs__save { margin-top: 18px; }

@media (max-width: 640px) {
  .legal { padding-top: 48px; padding-bottom: 64px; }
  .legal__toc ol { columns: 1; }
  .legal__body h2 { margin-top: 40px; font-size: 21px; }

  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 20px;
    max-height: 85vh;
    overflow-y: auto;
  }

  .cookie-banner__actions { width: 100%; }
  .cookie-banner__actions .btn--consent { flex: 1 1 140px; text-align: center; }
}

/* Footer legal row */
.site-footer__legalese {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}

.site-footer__legal a,
.link-button--sm {
  font-size: 13px;
  color: var(--on-dark);
}

.site-footer__legal a:hover,
.link-button--sm:hover { color: var(--orange); }

.link-button--sm {
  border-bottom-width: 1px;
  font-weight: 500;
}
