/* ==========================================================================
   Beacon Media Group: design tokens + components
   Source of truth: docs/DESIGN.md
   Tailwind (CDN) handles layout utilities; this file owns tokens, base
   styles, typography roles, and reusable components.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Primitives (documentation and edge cases; build with semantic vars) */
  --navy-950: #0B182C;
  --navy-900: #13233A;
  --navy-850: #1B2D46;
  --navy-800: #273545;
  --navy-700: #3A4B62;
  --slate-600: #3E4A5C;
  --slate-500: #566174;
  --steel-900: #172B40;
  --steel-600: #335874;
  --steel-500: #406D8E;
  --steel-200: #8FB2CF;
  --steel-100: #DDE7EF;
  --rust-700: #9E4222;
  --rust-600: #BB502C;
  --amber-900: #3A2814;
  --amber-500: #DE8A3A;
  --amber-100: #F6DFC3;
  --sand-300: #EAB175;
  --stone-400: #9A958C;
  --stone-300: #C4B9A4;
  --stone-200: #DCD3C1;
  --cream-200: #EAE2D4;
  --cream-50: #F3ECE1;
  --paper: #FBF8F3;
  --green-900: #13301F;
  --green-600: #2F6B4A;
  --green-300: #7CC4A0;
  --green-100: #E1EEE4;
  --red-900: #3D1820;
  --red-600: #A3243A;
  --red-300: #F08A8A;
  --red-100: #F5DDE0;

  /* Semantic colors: light (default) */
  --color-bg: var(--cream-50);
  --color-surface: var(--paper);
  --color-surface-2: var(--cream-200);
  --color-border: var(--stone-200);
  --color-border-strong: var(--stone-300);
  --color-text: var(--navy-950);
  --color-text-muted: var(--slate-600);
  --color-text-subtle: var(--slate-500);
  --color-accent: var(--amber-500);
  --color-accent-hover: var(--sand-300);
  --color-on-accent: var(--navy-950);
  --color-accent-text: var(--rust-700);
  --color-accent-subtle: var(--amber-100);
  --color-inverse: var(--navy-950);
  --color-on-inverse: var(--cream-50);
  --color-success: var(--green-600);
  --color-success-subtle: var(--green-100);
  --color-danger: var(--red-600);
  --color-danger-subtle: var(--red-100);
  --color-info: var(--steel-600);
  --color-info-subtle: var(--steel-100);
  --color-focus: var(--steel-600);

  /* Typography */
  --font-display: 'Anton', 'Impact', 'Arial Narrow', sans-serif;
  --font-serif: 'Source Serif 4', 'Libre Baskerville', Georgia, serif;
  --font-sans: 'Nunito Sans', 'Avenir Next', 'Avenir', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* Spacing (4px base) */
  --space-0: 0px;
  --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-section: var(--space-8); /* 64px mobile, 96px desktop (below) */
  --gutter: var(--space-4);

  /* Radii */
  --radius-none: 0px;
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(11, 24, 44, 0.06);
  --shadow-md: 0 2px 4px rgba(11, 24, 44, 0.04), 0 8px 24px rgba(11, 24, 44, 0.08);
  --shadow-lg: 0 4px 8px rgba(11, 24, 44, 0.06), 0 24px 48px rgba(11, 24, 44, 0.14);

  /* Motion */
  --duration-fast: 120ms;
  --duration-base: 200ms;
  --duration-slow: 320ms;
  --duration-deliberate: 560ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-enter: cubic-bezier(0, 0, 0, 1);
  --ease-exit: cubic-bezier(0.4, 0, 1, 1);

  /* Layout */
  --content-max: 1200px;
  --header-h: 76px;
}

@media (min-width: 960px) {
  :root {
    --space-section: var(--space-9);
    --gutter: var(--space-5);
  }
}

/* Dark surface theme. Any element with .theme-dark remaps the semantic
   tokens, so components and Tailwind color utilities inside it adapt. */
.theme-dark {
  --color-bg: var(--navy-950);
  --color-surface: var(--navy-900);
  --color-surface-2: var(--navy-850);
  --color-border: var(--navy-800);
  --color-border-strong: var(--navy-700);
  --color-text: var(--cream-50);
  --color-text-muted: var(--stone-300);
  --color-text-subtle: var(--stone-400);
  --color-accent-text: var(--sand-300);
  --color-accent-subtle: var(--amber-900);
  --color-inverse: var(--cream-50);
  --color-on-inverse: var(--navy-950);
  --color-success: var(--green-300);
  --color-success-subtle: var(--green-900);
  --color-danger: var(--red-300);
  --color-danger-subtle: var(--red-900);
  --color-info: var(--steel-200);
  --color-info-subtle: var(--steel-900);
  --color-focus: var(--sand-300);
  --shadow-sm: 0 1px 2px rgba(3, 8, 16, 0.40);
  --shadow-md: 0 2px 4px rgba(3, 8, 16, 0.30), 0 8px 24px rgba(3, 8, 16, 0.45);
  --shadow-lg: 0 4px 8px rgba(3, 8, 16, 0.35), 0 24px 48px rgba(3, 8, 16, 0.60);
  background-color: var(--color-bg);
  color: var(--color-text);
}

/* Raised dark tone: one step lighter navy for alternating dark sections */
.theme-dark.tone-raised {
  --color-bg: var(--navy-900);
  --color-surface: var(--navy-850);
  --color-surface-2: var(--navy-850);
  --color-border: var(--navy-700);
}

/* --------------------------------------------------------------------------
   2. Base (Tailwind preflight is disabled; this is our reset)
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: var(--color-border);
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--space-4));
}

body {
  margin: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote {
  margin: 0;
}

/* Headings get their look from type-role classes; never browser-default bold
   (Anton has one weight, so default bold would render as faux bold). */
h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
}

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

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

img, video {
  height: auto;
}

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
  margin: 0;
}

button {
  background: none;
  cursor: pointer;
  padding: 0;
}

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

/* Visible keyboard focus everywhere */
:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

:focus:not(:focus-visible) {
  outline: none;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 100;
  padding: var(--space-3) var(--space-4);
  background-color: var(--color-inverse);
  color: var(--color-on-inverse);
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.skip-link:focus {
  top: var(--space-4);
}

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

/* --------------------------------------------------------------------------
   3. Typography roles (from DESIGN.md)
   -------------------------------------------------------------------------- */
.t-display-xl {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.75rem, 11vw, 5.5rem); /* 88px max, scales to 12vw-ish */
  line-height: 0.95;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

.t-display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 8vw, 4rem); /* 64px */
  line-height: 1;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

.t-h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.125rem, 6vw, 2.75rem); /* 44px */
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.t-h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.625rem, 4vw, 2rem); /* 32px */
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.t-h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.375rem; /* 22px */
  line-height: 1.3;
  letter-spacing: -0.005em;
}

.t-h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.125rem; /* 18px */
  line-height: 1.4;
}

.t-body-lg {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.25rem; /* 20px */
  line-height: 1.5;
}

.t-body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
}

.t-body-sm {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: 1.5;
}

.t-label {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.t-caption {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.75rem;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.t-overline {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.75rem;
  line-height: 1.3;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.measure {
  max-width: 66ch; /* 60 to 72 characters */
}

.text-link {
  color: var(--color-accent-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-thickness var(--duration-fast) var(--ease-standard);
}

.text-link:hover {
  text-decoration-thickness: 2px;
}

/* --------------------------------------------------------------------------
   4. Layout helpers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--content-max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--space-section);
}

.section-head {
  display: grid;
  gap: var(--space-4);
  margin-bottom: var(--space-7);
}

.rule {
  height: 1px;
  background-color: var(--color-border);
  border: 0;
  margin: 0;
}

/* --------------------------------------------------------------------------
   5. Components
   -------------------------------------------------------------------------- */

/* Buttons: heights 32 / 40 / 48. Accent is the single beacon action. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: 40px;
  padding: 0 var(--space-4);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.3;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--duration-fast) var(--ease-standard),
    border-color var(--duration-fast) var(--ease-standard),
    opacity var(--duration-fast) var(--ease-standard),
    transform var(--duration-fast) var(--ease-standard);
}

.btn:active {
  transform: translateY(1px);
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-lg {
  height: 48px;
  padding: 0 var(--space-5);
  font-size: 1rem;
}

.btn-sm {
  height: 32px;
  padding: 0 var(--space-3);
}

.btn-primary {
  background-color: var(--color-inverse);
  color: var(--color-on-inverse);
}

.btn-primary:hover {
  opacity: 0.88;
}

.btn-accent {
  background-color: var(--color-accent);
  color: var(--color-on-accent);
}

.btn-accent:hover {
  background-color: var(--color-accent-hover);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-text);
  border-color: var(--color-border-strong);
}

.btn-secondary:hover {
  background-color: var(--color-surface-2);
}

/* High-contrast outline, used beside a solid button on dark or photo backgrounds */
.btn-outline {
  background-color: transparent;
  color: var(--color-text);
  border: 2px solid currentColor;
}

.btn-outline:hover {
  background-color: var(--color-text);
  color: var(--color-bg);
}

.btn-ghost {
  background-color: transparent;
  color: var(--color-text);
  padding: 0 var(--space-3);
}

.btn-ghost:hover {
  background-color: var(--color-surface-2);
}

/* Touch targets: 44px minimum on small screens */
@media (max-width: 639px) {
  .btn {
    min-height: 44px;
  }
}

/* Tags */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: var(--radius-full);
  background-color: var(--color-surface-2);
  color: var(--color-text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.tag-accent {
  background-color: var(--color-accent-subtle);
  color: var(--color-accent-text);
}

.tag-info {
  background-color: var(--color-info-subtle);
  color: var(--color-info);
}

/* Cards: flat, 1px border, 8px radius, 24px padding */
.card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
}

.card-interactive {
  transition:
    box-shadow var(--duration-base) var(--ease-standard),
    border-color var(--duration-base) var(--ease-standard);
}

.card-interactive:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-strong);
}

/* Icon tile used in service cards */
.icon-tile {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: var(--color-surface-2);
  color: var(--color-text);
}

.icon-tile svg {
  width: 22px;
  height: 22px;
}

/* Check list */
.check-list {
  display: grid;
  gap: var(--space-2);
}

.check-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: var(--space-3);
  align-items: start;
  color: var(--color-text-muted);
}

.check-list svg {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--color-accent-text);
}

/* Form controls */
.field {
  display: grid;
  gap: var(--space-2);
}

.field-label {
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--color-text);
}

.field-optional {
  font-weight: 500;
  color: var(--color-text-subtle);
}

.input {
  width: 100%;
  min-height: 44px;
  padding: 0 var(--space-3);
  background-color: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  line-height: 1.6;
  transition:
    border-color var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard);
}

textarea.input {
  min-height: 140px;
  padding: var(--space-3);
  resize: vertical;
}

select.input {
  appearance: none;
  -webkit-appearance: none;
  padding-right: var(--space-7);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239A958C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.input::placeholder {
  color: var(--color-text-subtle);
  opacity: 1;
}

.input:focus-visible,
.input:focus {
  outline: none;
  border-color: var(--color-focus);
  box-shadow: 0 0 0 2px var(--color-focus);
}

.input[aria-invalid="true"] {
  border-color: var(--color-danger);
}

.field-error {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-danger);
}

.field-error:empty {
  display: none;
}

/* Notice / alert */
.notice {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  border: 1px solid currentColor;
  font-size: 0.875rem;
  line-height: 1.5;
}

.notice svg {
  width: 20px;
  height: 20px;
}

.notice-info {
  background-color: var(--color-info-subtle);
  color: var(--color-info);
}

.notice[hidden] {
  display: none;
}

/* Placeholder markers: clearly flag content that still needs real details */
.placeholder {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 2px var(--space-2);
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-xs);
  color: var(--color-text-subtle);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.6;
}

.placeholder-block {
  display: grid;
  place-items: center;
  align-content: center;
  gap: var(--space-2);
  padding: var(--space-6);
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-md);
  background-color: var(--color-surface-2);
  color: var(--color-text-subtle);
  text-align: center;
}

.placeholder-block svg {
  width: 28px;
  height: 28px;
}

/* --------------------------------------------------------------------------
   6. Site header + navigation
   Fixed and transparent over the hero; turns solid navy once scrolled.
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background-color var(--duration-slow) var(--ease-standard),
    border-color var(--duration-slow) var(--ease-standard);
}

.site-header.is-scrolled,
body.nav-open .site-header {
  background-color: var(--color-bg);
  border-bottom-color: var(--color-border);
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}

.site-logo {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) 0;
}

.site-logo img {
  height: 40px;
  width: auto;
}

@media (min-width: 960px) {
  .site-logo img {
    height: 44px;
  }
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 var(--space-3);
  color: var(--color-text-muted);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: color var(--duration-fast) var(--ease-standard);
}

.nav-link:hover,
.nav-link[aria-current="true"] {
  color: var(--color-text);
}

/* 2px accent indicator for the active section, like tabs in DESIGN.md */
.nav-link::after {
  content: "";
  position: absolute;
  left: var(--space-3);
  right: var(--space-3);
  bottom: 2px;
  height: 2px;
  background-color: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-base) var(--ease-standard);
}

.nav-link[aria-current="true"]::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  color: var(--color-text);
}

.menu-toggle:hover {
  background-color: var(--color-surface-2);
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
}

.menu-toggle .icon-close,
.menu-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 40;
  background-color: var(--color-bg);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition:
    opacity var(--duration-base) var(--ease-exit),
    transform var(--duration-base) var(--ease-exit),
    visibility 0s linear var(--duration-base);
}

.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition:
    opacity var(--duration-slow) var(--ease-enter),
    transform var(--duration-slow) var(--ease-enter),
    visibility 0s linear 0s;
}

.mobile-nav a.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.mobile-nav a.mobile-nav-link svg {
  width: 20px;
  height: 20px;
  color: var(--color-accent-text);
}

body.nav-open {
  overflow: hidden;
}

@media (min-width: 960px) {
  .mobile-nav,
  .menu-toggle {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   7. Page sections
   -------------------------------------------------------------------------- */

/* Highlight block: the beacon phrase in a headline, set on a slanted
   amber fill (the brand's answer to a highlighter stroke). */
.highlight {
  display: inline-block;
  padding: 0.04em 0.16em 0;
  margin-top: 0.06em;
  background-color: var(--color-accent);
  color: var(--color-on-accent);
  transform: skewX(-8deg);
}

/* Angled divider between two flat colors. Set --angle-from (section above)
   and --angle-to (section below). Flat fills only, no gradients. */
.angle {
  position: relative;
  height: clamp(40px, 7vw, 112px);
  background-color: var(--angle-from);
  margin-top: -1px;
}

.angle::after {
  content: "";
  position: absolute;
  inset: 0 0 -1px 0;
  background-color: var(--angle-to);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.angle-reverse::after {
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}

/* Large faint lighthouse mark used as a background watermark */
.watermark {
  position: absolute;
  pointer-events: none;
  user-select: none;
  opacity: 0.06;
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + var(--space-8));
  padding-bottom: var(--space-8);
  overflow: hidden;
  isolation: isolate;
}

/* Optional hero photo. A flat navy overlay keeps text readable. */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(11, 24, 44, 0.78);
}

.hero .watermark {
  z-index: -1;
  right: -6%;
  top: 50%;
  height: 120%;
  width: auto;
  transform: translateY(-46%);
}

@media (max-width: 959px) {
  .hero .watermark {
    right: -30%;
    height: 90%;
  }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 10.5vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

/* Values tiles (mission) */
.value-tile {
  position: relative;
  display: grid;
  align-content: end;
  gap: var(--space-3);
  min-height: 280px;
  padding: var(--space-6);
  border-radius: var(--radius-md);
  background-color: var(--navy-950);
  color: var(--cream-50);
  overflow: hidden;
  isolation: isolate;
}

.value-tile .watermark {
  z-index: -1;
  right: -24px;
  top: -24px;
  height: 180px;
  opacity: 0.07;
  transition:
    opacity var(--duration-slow) var(--ease-standard),
    transform var(--duration-slow) var(--ease-standard);
}

.value-tile:hover .watermark {
  opacity: 0.14;
  transform: translateY(4px);
}

.value-tile .value-number {
  color: var(--sand-300);
}

.value-tile .value-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1;
  text-transform: uppercase;
}

.value-tile p {
  color: var(--stone-300);
  max-width: 40ch;
}

.value-tile-accent {
  background-color: var(--amber-500);
  color: var(--navy-950);
}

.value-tile-accent .value-number,
.value-tile-accent p {
  color: var(--navy-950);
}

/* Services: big numbered list */
.service-row {
  display: grid;
  gap: var(--space-3);
  padding-block: var(--space-6);
  border-bottom: 1px solid var(--color-border);
}

.service-row:first-child {
  border-top: 1px solid var(--color-border);
}

@media (min-width: 640px) {
  .service-row {
    grid-template-columns: 72px 1fr;
    column-gap: var(--space-5);
  }

  .service-row > :not(.service-number) {
    grid-column: 2;
  }
}

.service-number {
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1.15;
  color: var(--color-accent-text);
}

.service-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1;
  text-transform: uppercase;
  transition: transform var(--duration-base) var(--ease-standard);
}

.service-row:hover .service-title {
  transform: translateX(6px);
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

/* Angled photo frame (services side image) */
.angled-frame {
  clip-path: polygon(18% 0, 100% 0, 100% 82%, 82% 100%, 0 100%, 0 18%);
  border-radius: 0;
}

.angled-frame.placeholder-block {
  border: 0;
  background-color: var(--color-surface);
}

/* Approach steps */
.step {
  display: grid;
  align-content: start;
  gap: var(--space-4);
  padding-top: var(--space-5);
  border-top: 2px solid var(--color-text);
}

.step-number {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7vw, 5rem);
  line-height: 1;
  color: var(--color-accent-text);
}

/* Audience list */
.audience-item {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: var(--color-surface);
}

/* Footer */
.footer-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--color-text-muted);
  transition: color var(--duration-fast) var(--ease-standard);
}

.footer-link:hover {
  color: var(--color-text);
}

/* --------------------------------------------------------------------------
   8. Motion: calm reveal on scroll (opt-in via .js on <html>)
   -------------------------------------------------------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity var(--duration-deliberate) var(--ease-enter),
    transform var(--duration-deliberate) var(--ease-enter);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@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;
    transition-delay: 0ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .btn:active {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   9. Offer, proof, and founder components (v3 rebuild)
   -------------------------------------------------------------------------- */

/* Trust strip under the hero */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
}

.trust-strip li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-muted);
  font-size: 0.875rem;
  font-weight: 600;
}

.trust-strip svg {
  width: 18px;
  height: 18px;
  color: var(--color-accent-text);
  flex-shrink: 0;
}

/* Pain points */
.pain-item {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-5);
  border-left: 3px solid var(--color-accent);
  background-color: var(--color-surface);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* Offer cards */
.offer-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6) var(--space-5);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.offer-card-featured {
  border: 2px solid var(--color-accent);
}

.offer-badge {
  position: absolute;
  top: calc(var(--space-3) * -1);
  left: var(--space-5);
  padding: 2px var(--space-3);
  background-color: var(--color-accent);
  color: var(--color-on-accent);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.offer-name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.offer-for {
  color: var(--color-text-muted);
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  line-height: 1.45;
}

.offer-price {
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.offer-price strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
}

.offer-price span {
  color: var(--color-text-subtle);
  font-size: 0.875rem;
}

/* Promise / guarantee band */
.promise {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background-color: var(--color-surface);
}

/* Founder */
.founder-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 35%;
  clip-path: polygon(18% 0, 100% 0, 100% 82%, 82% 100%, 0 100%, 0 18%);
  background-color: var(--color-surface-2);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.stat {
  display: grid;
  gap: var(--space-1);
  padding-top: var(--space-4);
  border-top: 2px solid var(--color-text);
}

.stat strong {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1;
  text-transform: uppercase;
  color: var(--color-accent-text);
}

.stat span {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  line-height: 1.4;
}

/* Company data table (organizations page) */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.data-table th,
.data-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  width: 40%;
  color: var(--color-text-subtle);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Honeypot field for spam protection */
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 639px) {
  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table th,
  .data-table td {
    display: block;
    width: 100%;
  }

  .data-table th {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .data-table td {
    padding-top: var(--space-1);
    overflow-wrap: anywhere;
  }
}

/* --------------------------------------------------------------------------
   10. Multi-page layout (v6)
   -------------------------------------------------------------------------- */

/* Shorter hero for inner pages */
.page-hero {
  min-height: auto;
  padding-top: calc(var(--header-h) + var(--space-9));
  padding-bottom: var(--space-9);
}

.page-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

/* Two-way choice cards (home) */
.path-card {
  display: grid;
  align-content: start;
  gap: var(--space-3);
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: var(--color-surface);
  transition:
    box-shadow var(--duration-base) var(--ease-standard),
    border-color var(--duration-base) var(--ease-standard);
}

.path-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-strong);
}

.path-card .arrow-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
  color: var(--color-accent-text);
  font-weight: 700;
}

.path-card .arrow-link svg {
  width: 18px;
  height: 18px;
}
