/* ==========================================================================
   Wakeform — marketing site
   Ported from the design prototype. Self-hosted fonts, design tokens,
   component styles, plus responsive/accessibility refinements.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Fonts (self-hosted WOFF2). Libre Franklin ships as a variable font sliced
   by unicode-range, so one @font-face per subset covers weights 300–700.
   -------------------------------------------------------------------------- */

/* Libre Franklin — latin */
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../assets/fonts/libre-franklin-extra.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;
}
/* Libre Franklin — latin-ext */
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../assets/fonts/libre-franklin-viet.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;
}
/* Libre Franklin — vietnamese */
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../assets/fonts/libre-franklin-cyr.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* Libre Franklin — cyrillic */
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../assets/fonts/libre-franklin-latext.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Libre Franklin — cyrillic-ext */
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../assets/fonts/libre-franklin-lat.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* Libre Caslon Text — latin */
@font-face {
  font-family: 'Libre Caslon Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/libre-caslon-normal-2.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;
}
/* Libre Caslon Text — latin-ext */
@font-face {
  font-family: 'Libre Caslon Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/libre-caslon-normal-1.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;
}
/* Libre Caslon Text — italic latin */
@font-face {
  font-family: 'Libre Caslon Text';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/libre-caslon-italic-2.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;
}
/* Libre Caslon Text — italic latin-ext */
@font-face {
  font-family: 'Libre Caslon Text';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/libre-caslon-italic-1.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;
}

/* --------------------------------------------------------------------------
   Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Primary palette */
  --color-medium-blue: #00719C;
  --color-light-blue: #0086B3;
  --color-off-white: #EFEFEB;
  --color-yellow-accent: #D4C315;
  /* Secondary palette */
  --color-dark-blue: #004762;
  --color-red-accent: #A70A43;
  /* Monotone */
  --color-black: #000000;
  --color-white: #FFFFFF;
  /* Derived tints/shades (oklch-mixed from brand hex) */
  --color-medium-blue-10: color-mix(in oklch, var(--color-medium-blue) 10%, white);
  --color-medium-blue-20: color-mix(in oklch, var(--color-medium-blue) 20%, white);
  --color-medium-blue-40: color-mix(in oklch, var(--color-medium-blue) 40%, white);
  --color-medium-blue-70: color-mix(in oklch, var(--color-medium-blue) 70%, white);
  --color-dark-blue-80: color-mix(in oklch, var(--color-dark-blue) 80%, black);
  --color-off-white-90: color-mix(in oklch, var(--color-off-white) 90%, white);
  --color-hairline: color-mix(in oklch, var(--color-dark-blue) 14%, white);
  --color-hairline-on-dark: color-mix(in oklch, var(--color-off-white) 20%, var(--color-dark-blue));

  /* Semantic — text */
  --text-primary: var(--color-dark-blue);
  --text-secondary: color-mix(in oklch, var(--color-dark-blue) 68%, white);
  --text-muted: color-mix(in oklch, var(--color-dark-blue) 45%, white);
  --text-inverse: var(--color-off-white);
  --text-inverse-muted: color-mix(in oklch, var(--color-off-white) 65%, var(--color-dark-blue));
  --text-link: var(--color-medium-blue);
  --text-link-hover: var(--color-light-blue);

  /* Semantic — surfaces */
  --surface-page: var(--color-off-white);
  --surface-card: var(--color-white);
  --surface-sunken: color-mix(in oklch, var(--color-off-white) 92%, var(--color-dark-blue));
  --surface-dark: var(--color-dark-blue);
  --surface-dark-elevated: color-mix(in oklch, var(--color-dark-blue) 88%, black);
  --surface-brand: var(--color-medium-blue);

  /* Semantic — actions */
  --action-primary: var(--color-dark-blue);
  --action-primary-hover: var(--color-medium-blue);
  --action-primary-active: color-mix(in oklch, var(--color-dark-blue) 85%, black);
  --action-secondary: transparent;
  --action-secondary-border: var(--color-dark-blue);
  --action-accent: var(--color-yellow-accent);
  --action-danger: var(--color-red-accent);

  /* Semantic — borders */
  --border-default: var(--color-hairline);
  --border-strong: var(--color-dark-blue);
  --border-on-dark: var(--color-hairline-on-dark);

  /* Focus */
  --focus-ring: var(--color-medium-blue);

  /* Type families / weights */
  --font-display: 'Libre Caslon Text', Georgia, 'Times New Roman', serif;
  --font-sub: 'Libre Franklin', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Libre Franklin', 'Helvetica Neue', Arial, sans-serif;
  --weight-body: 300;
  --weight-sub: 500;
  --weight-sub-strong: 600;

  /* Type scale */
  --text-display-xl: 72px;
  --text-display-lg: 56px;
  --text-display-md: 45px;
  --text-display-sm: 32px;
  --text-subhead-lg: 24px;
  --text-subhead: 20px;
  --text-subhead-sm: 18px;
  --text-body-lg: 20px;
  --text-body: 16px;
  --text-body-sm: 16px;
  --text-caption: 13px;
  --text-label: 14px;
  --leading-display: 1.08;
  --leading-heading: 1.2;
  --leading-body: 1.6;
  --leading-tight: 1.3;
  --tracking-display: -0.01em;
  --tracking-label: 0.06em;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;
  --space-11: 160px;

  /* Layout */
  --content-max-width: 1200px;
  --content-max-width-narrow: 720px;
  --page-margin: var(--space-7);
  --header-height: 81px;

  /* Radius */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --radius-pill: 999px;

  /* Borders */
  --border-width: 1px;
  --border-width-thick: 2px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 33, 46, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 33, 46, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 33, 46, 0.12);
  --shadow-focus: 0 0 0 3px color-mix(in oklch, var(--color-medium-blue) 35%, transparent);

  /* Motion */
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 120ms;
  --duration-base: 200ms;
  --duration-slow: 360ms;
}

/* --------------------------------------------------------------------------
   Base / reset
   -------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
  overflow-anchor: none;
}
/* The `hidden` attribute must win over component display rules
   (e.g. .contact-form / .contact-confirm use display:flex). */
[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: #0B1116;
  color: var(--text-inverse);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
}
a {
  color: var(--color-light-blue);
  text-decoration: none;
}
a:hover {
  color: var(--color-yellow-accent);
}

/* Accessibility: visible keyboard focus (brand focus token) */
:focus-visible {
  outline: 2px solid var(--color-light-blue);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--color-off-white);
  color: #0B1116;
  padding: 12px 20px;
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: 14px;
}
.skip-link:focus {
  left: var(--page-margin);
  top: 12px;
}

.wrap {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 var(--page-margin);
}

/* Anchor offset so fixed header doesn't cover targets */
#contact,
.stack-panel {
  scroll-margin-top: var(--header-height);
}

/* --------------------------------------------------------------------------
   Header / nav
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px var(--page-margin);
  background: rgba(11, 17, 22, 0.45);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-header .logo {
  display: inline-flex;
  line-height: 0;
}
.site-header .logo img {
  height: 24px;
  width: auto;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 40px;
}
.site-header nav a {
  font-family: var(--font-sub);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-inverse-muted);
}
.site-header nav a:hover,
.site-header nav a.active {
  color: var(--color-yellow-accent);
}

/* Mobile menu toggle — hidden on larger screens */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-inverse);
  cursor: pointer;
  margin: -10px -10px -10px 0;
}
.nav-toggle .icon {
  width: 24px;
  height: 24px;
}
.nav-toggle .nav-toggle-close {
  display: none;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-open {
  display: none;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-close {
  display: inline-block;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding-bottom: 120px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(11,17,22,0.8) 0%, rgba(11,17,22,0.82) 45%, rgba(11,17,22,0.88) 70%, #0B1116 100%),
    url('../assets/hero-mobile.jpg');
  background-size: cover;
  background-position: center;
  filter: saturate(0.85) contrast(1.05);
}
@media (min-width: 701px) {
  .hero-bg {
    background-image:
      linear-gradient(180deg, rgba(11,17,22,0.8) 0%, rgba(11,17,22,0.82) 45%, rgba(11,17,22,0.88) 70%, #0B1116 100%),
      url('../assets/hero.jpg');
  }
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 144px var(--page-margin) 48px;
  max-width: 1360px;
  margin: 0 auto;
  width: 100%;
}
.eyebrow-mono {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sub);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-yellow-accent);
  margin-bottom: 28px;
}
.eyebrow-mono::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--color-yellow-accent);
}
h1.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 6.4vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0 0 32px;
  max-width: 1100px;
  color: var(--text-inverse);
}
.hero-sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 20px;
  line-height: 1.6;
  color: #EAEEF0;
  max-width: 560px;
  margin: 0 0 48px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--text-inverse);
  color: #0B1116;
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: 15px;
  padding: 18px 32px;
  border: none;
  border-radius: 2px;
  width: fit-content;
  cursor: pointer;
  transition: background var(--duration-base) var(--ease-standard);
}
.hero-cta:hover {
  background: var(--color-yellow-accent);
  color: #0B1116;
}
.hero-cta .icon {
  transition: transform var(--duration-base) var(--ease-standard);
}
.hero-cta:hover .icon {
  transform: translateX(4px);
}
.scroll-cue {
  position: absolute;
  bottom: 48px;
  left: var(--page-margin);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  /* Reset button chrome — this used to be a decorative div. */
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: var(--font-sub);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-inverse-muted);
  transition: color var(--duration-base) var(--ease-standard);
}
.scroll-cue .line {
  /* Reaches the bottom of the button, starting level with the text on top. */
  width: 1px;
  height: 64px;
  background: linear-gradient(180deg, var(--color-yellow-accent), transparent);
  transform-origin: top center;
  /* Reveal sequence (scroll up / load): fade in, then grow back down. */
  transition:
    opacity var(--duration-base) var(--ease-standard) 0ms,
    transform var(--duration-slow) var(--ease-standard) var(--duration-base);
}
.scroll-cue__text {
  line-height: 16px;
  transition: opacity var(--duration-base) var(--ease-standard) 0ms;
  text-align: left;
}

/* Hide-on-scroll, modelled on dnacapital's scroll-indicator. Driven by the
   .is-visible class, which JS toggles by scroll position. Collapsing (scroll
   down): the line first retracts up to the height of the text, then the line
   and text fade out together. Revealing (scroll up / load) is the reverse —
   see the transitions above. Armed only when JS runs, so no-JS visitors keep
   a static cue. 0.25 = text line-height (16px) / line height (64px). */
.has-js .scroll-cue:not(.is-visible) {
  pointer-events: none;
}
.has-js .scroll-cue:not(.is-visible) .line {
  transform: scaleY(0.25);
  opacity: 0;
  transition:
    transform var(--duration-slow) var(--ease-standard) 0ms,
    opacity var(--duration-base) var(--ease-standard) var(--duration-slow);
}
.has-js .scroll-cue:not(.is-visible) .scroll-cue__text {
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-standard) var(--duration-slow);
}

/* Hover / keyboard focus brighten the label. */
.scroll-cue:hover,
.scroll-cue:focus-visible {
  color: var(--color-off-white);
}
.scroll-cue:focus-visible {
  outline: 2px solid var(--color-yellow-accent);
  outline-offset: 6px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue,
  .scroll-cue .line,
  .scroll-cue__text {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Stats band
   -------------------------------------------------------------------------- */
.stats {
  border-top: 1px solid rgba(239, 239, 235, 0.12);
  border-bottom: 1px solid rgba(239, 239, 235, 0.12);
}
.stats-inner {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.stat {
  padding: 56px var(--page-margin);
  border-right: 1px solid rgba(239, 239, 235, 0.12);
}
.stat:last-child {
  border-right: none;
}
.stat .num {
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: 56px;
  color: var(--text-inverse);
  line-height: 1;
  margin-bottom: 12px;
}
.stat .num span {
  color: var(--color-yellow-accent);
}
.stat .label {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 15px;
  color: var(--text-inverse-muted);
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Section shell
   -------------------------------------------------------------------------- */
section.block {
  padding: 140px 0;
}
.block.tight {
  padding-top: 200px;
}
section.block.services-block {
  padding-bottom: 0;
}
.services-block .section-head {
  margin-bottom: 140px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 72px;
  flex-wrap: wrap;
}
.section-eyebrow {
  font-family: var(--font-sub);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-medium-blue);
  margin-bottom: 20px;
  display: block;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text-inverse);
  margin: 0;
  max-width: 640px;
}
.section-sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-inverse-muted);
  margin: 20px 0 0;
  max-width: 560px;
}

/* --------------------------------------------------------------------------
   Services teaser grid (home)
   -------------------------------------------------------------------------- */
.services-grid {
  display: flex;
  flex-direction: column;
}
.services-subheading {
  font-family: var(--font-sub);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-medium-blue);
  margin: 0 0 24px;
}
.service-cell {
  background: #0B1116;
  padding: 44px 0;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: start;
  border-top: 1px solid rgba(239, 239, 235, 0.12);
}
.services-grid .service-cell:last-child {
  border-bottom: 1px solid rgba(239, 239, 235, 0.12);
}
.service-cell .service-title-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.service-cell .service-body-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.service-index {
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: 15px;
  color: var(--color-yellow-accent);
  letter-spacing: 0.08em;
}
.service-cell h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  color: var(--text-inverse);
  margin: 0;
}
.service-cell p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-inverse-muted);
  margin: 0;
}
.service-cell .learn {
  font-family: var(--font-sub);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-light-blue);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
}
.service-cell .learn:hover {
  color: var(--color-yellow-accent);
}
.service-cell .learn .icon {
  transition: transform var(--duration-base) var(--ease-standard);
}
.service-cell .learn:hover .icon {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Sticky stacking service panels (services page)
   -------------------------------------------------------------------------- */
.stack-services {
  position: relative;
}
.stack-panel {
  position: sticky;
  top: var(--header-height);
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: #0B1116;
  border-top: 1px solid rgba(239, 239, 235, 0.12);
  box-shadow: 0 -40px 80px rgba(0, 0, 0, 0.5);
}
.stack-panel-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: start;
  padding: 48px 96px;
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
}
.stack-panel .service-index {
  font-size: 20px;
}
.stack-panel h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text-inverse);
  margin: 16px 0 0;
}
.stack-panel-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.stack-panel-body p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-inverse-muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   CTA / contact section (shared)
   -------------------------------------------------------------------------- */
.cta-block {
  text-align: left;
  border-top: 1px solid rgba(239, 239, 235, 0.12);
  padding-top: 140px;
  padding-bottom: 100px;
  background: var(--surface-dark);
}
.cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.cta-row h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 4.2vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text-inverse);
  margin: 0 0 20px;
}
.cta-row .cta-copy {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-inverse-muted);
  max-width: 460px;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--surface-dark-elevated);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.contact-form .row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-sub);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-inverse-muted);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  background: rgba(239, 239, 235, 0.05);
  border: 1px solid rgba(239, 239, 235, 0.18);
  border-radius: 2px;
  padding: 13px 14px;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 15px;
  color: var(--text-inverse);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-light-blue);
  box-shadow: var(--shadow-focus);
}
.contact-form textarea {
  resize: vertical;
}
.contact-form button.submit {
  background: var(--text-inverse);
  color: #0B1116;
  border: none;
  border-radius: 2px;
  padding: 16px 28px;
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  width: fit-content;
  transition: background var(--duration-base) var(--ease-standard);
}
.contact-form button.submit:hover {
  background: var(--color-yellow-accent);
}
.contact-confirm {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  background: rgba(239, 239, 235, 0.05);
  border: 1px solid rgba(239, 239, 235, 0.18);
  border-radius: 2px;
  padding: 40px;
}
.contact-confirm .icon {
  color: var(--color-yellow-accent);
}
.contact-confirm h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  margin: 0;
  color: var(--text-inverse);
}
.contact-confirm p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 15px;
  color: var(--text-inverse-muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid rgba(239, 239, 235, 0.12);
  padding: 56px 0;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-row img {
  height: 22px;
  width: auto;
}
.footer-copy {
  font-family: var(--font-sub);
  font-size: 12px;
  color: var(--text-inverse-muted);
  opacity: 0.7;
}

/* --------------------------------------------------------------------------
   Utility: inline SVG icon sizing
   -------------------------------------------------------------------------- */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.05em;
  flex: none;
}
.contact-confirm .icon {
  width: 26px;
  height: 26px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .site-header {
    padding: 22px var(--page-margin);
  }
  .site-header nav {
    gap: 24px;
  }
  .site-header nav a {
    font-size: 12px;
  }
  .hero {
    padding-bottom: 90px;
  }
  .hero-sub {
    font-size: 18px;
  }
  .scroll-cue {
    display: none;
  }
  .stat {
    padding: 28px 12px;
  }
  .stat .num {
    font-size: 32px;
    margin-bottom: 8px;
  }
  .stat .label {
    font-size: 12px;
  }
  section.block {
    padding: 90px 0;
  }
  .block.tight {
    padding-top: 130px;
  }
  .services-block .section-head {
    margin-bottom: 90px;
  }
  .section-head {
    margin-bottom: 48px;
  }
  .service-cell {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 36px 0;
  }
  .stack-panel-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 40px var(--page-margin);
  }
  .stack-panel {
    min-height: 0;
    padding: 40px 0;
    top: 69px;
  }
  .cta-row {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .cta-block {
    padding-top: 90px;
    padding-bottom: 70px;
  }
}

@media (max-width: 600px) {
  :root {
    --page-margin: var(--space-5); /* 24px — tighter gutters on phones */
  }
  .site-header nav {
    gap: 16px;
  }
  .site-header nav a {
    font-size: 11px;
    letter-spacing: 0.08em;
  }
  .stat {
    padding: 20px 8px;
  }
  .stat .num {
    font-size: 22px;
    margin-bottom: 6px;
  }
  .stat .label {
    font-size: 10px;
    line-height: 1.3;
  }
  h1.hero-title {
    margin-bottom: 24px;
  }
  .hero-cta {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
  }
  .stack-panel-inner {
    padding: 32px var(--page-margin);
  }
  .contact-form .row2 {
    grid-template-columns: 1fr;
  }
  .contact-form {
    padding: 24px;
  }
  .contact-form button.submit {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .footer-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* Mobile navigation — collapse the inline nav into a toggle menu.
   The Wakeform wordmark is wide, so below 700px we give it the full row
   and move navigation into an accessible dropdown. */
@media (max-width: 700px) {
  .nav-toggle {
    display: inline-flex;
  }
  .site-header nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px var(--page-margin) 16px;
    background: rgba(11, 17, 22, 0.97);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: none;
  }
  .site-header nav[data-open] {
    display: flex;
  }
  .site-header nav a {
    padding: 16px 0;
    font-size: 14px;
    letter-spacing: 0.12em;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
  }
  .site-header nav a:first-child {
    border-top: none;
  }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}
