/* ==========================================================================
   OAM Technology Consulting — Modern Site
   Tokens · Reset · Layout · Header · Hero
   ========================================================================== */

:root {
  /* Brand anchor (from logo) */
  --navy-900: #0b1d33;
  --navy-800: #122a44;
  --navy-700: #1b3a5c;
  --navy-600: #265080;
  --blue-500: #3b78bd;       /* OAM blue arrow */
  --blue-400: #6fa0d5;
  --slate-500: #7a8aa0;      /* OAM grey arrow */
  --slate-300: #c2cbd6;

  /* Surfaces */
  --bg: #f7f9fc;
  --bg-elev: #ffffff;
  --bg-deep: #061226;
  --ink: #0c1626;
  --ink-2: #36465c;
  --ink-3: #6a7891;
  --line: #e4e9f1;
  --line-strong: #cfd6e2;

  /* Accent — Signal Teal */
  --accent: #19c2c2;
  --accent-deep: #228282;
  --accent-soft: #d6f5ee;

  /* Type */
  --font-sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Geometry */
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(11, 29, 51, 0.06), 0 1px 1px rgba(11, 29, 51, 0.04);
  --shadow-md: 0 8px 24px -8px rgba(11, 29, 51, 0.18), 0 2px 6px rgba(11, 29, 51, 0.06);
  --shadow-lg: 0 30px 60px -20px rgba(11, 29, 51, 0.35), 0 8px 16px -8px rgba(11, 29, 51, 0.2);

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(72px, 9vw, 128px);

  /* Tweakable */
  --density: 1;
}

[data-theme="dark"] {
  --bg: #061226;
  --bg-elev: #0d2040;
  --ink: #eaf0fa;
  --ink-2: #b8c4d8;
  --ink-3: #8a99b3;
  --line: #1a3158;
  --line-strong: #284878;
  --navy-900: #eaf0fa;
}

/* Reset / base */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-sans); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin: 0; color: var(--ink); }
p { margin: 0; }

.skip {
  position: absolute; left: -9999px; top: 0; padding: 8px 12px;
  background: var(--ink); color: white; z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

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

/* ============================ Buttons ============================ */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  padding: 0.85em 1.25em;
  font-weight: 600; font-size: 0.95rem; letter-spacing: -0.005em;
  border-radius: 999px;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn span { transition: transform 0.2s ease; display: inline-block; }
.btn:hover span { transform: translateX(3px); }
.btn-primary {
  background: var(--ink); color: var(--bg);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: var(--navy-700); }
.btn-ghost {
  background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn-ghost:hover { background: var(--bg-elev); box-shadow: inset 0 0 0 1px var(--ink); }
.btn-accent {
  background: var(--accent); color: #042520;
}
.btn-accent:hover { background: var(--accent-deep); color: white; }

/* ============================ Header ============================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-row {
  display: flex; align-items: center; gap: 32px;
  padding: 14px 0;
}
.brand img { height: 64px; width: auto; }
.primary-nav {
  display: flex; gap: 4px; margin-left: auto;
  font-weight: 500; color: var(--ink-2);
}
.primary-nav a {
  padding: 8px 14px; border-radius: 999px;
  transition: background 0.15s, color 0.15s;
  position: relative;
}
.primary-nav a:hover { color: var(--ink); background: rgba(11, 29, 51, 0.05); }
.nav-cta { font-size: 0.9rem; padding: 0.7em 1.1em; }

.menu-toggle {
  display: none; width: 40px; height: 40px; padding: 10px;
  margin-left: auto; flex-direction: column; justify-content: space-between;
}
.menu-toggle span {
  display: block; height: 2px; width: 100%; background: var(--ink); border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-nav {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px var(--gutter) 24px;
  border-top: 1px solid var(--line);
  background: var(--bg-elev);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a { padding: 12px 4px; font-weight: 500; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.mobile-nav a:last-child { border-bottom: 0; margin-top: 8px; }

@media (max-width: 880px) {
  .primary-nav, .nav-cta { display: none; }
  .menu-toggle { display: flex; }
  .brand { margin-right: auto; }
}

/* ============================ Hero ============================ */
.hero {
  position: relative; isolation: isolate;
  padding: clamp(64px, 9vw, 120px) 0 clamp(72px, 10vw, 140px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(1200px 600px at 75% 20%, rgba(25, 194, 194, 0.10), transparent 60%),
    radial-gradient(900px 500px at 15% 80%, rgba(59, 120, 189, 0.10), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-elev) 100%);
}
.hero-bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.85; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(11, 29, 51, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 29, 51, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 40%, transparent 100%);
}

.hero-grid-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
@media (max-width: 960px) {
  .hero-grid-layout { grid-template-columns: 1fr; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem; color: var(--ink-2);
  font-family: var(--font-mono);
  margin-bottom: 28px;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 0%, transparent); } }

.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero h1 .hl {
  background: linear-gradient(120deg, var(--blue-500), var(--accent));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  font-style: italic;
  font-weight: 700;
}
.lede {
  margin-top: 24px; max-width: 56ch;
  font-size: clamp(1.2rem, 1.7vw, 1.45rem);
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}
.hero-cta {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 36px;
}
.hero-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px; margin: 48px 0 0; padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero-stats div { min-width: 0; }
.hero-stats dt {
  font-family: var(--font-mono); font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3);
  margin-bottom: 6px;
}
.hero-stats dd {
  margin: 0; font-weight: 600; color: var(--ink); font-size: 0.95rem;
}

/* Hero card */
.hero-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: rotate(0.4deg);
}
.hero-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 35%, transparent), transparent 40%, color-mix(in srgb, var(--blue-500) 30%, transparent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.card-head {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 0.75rem;
  margin-bottom: 14px;
}
.card-tag { color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.08em; }
.card-status { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-deep); font-weight: 600; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: ringpulse 1.6s infinite; }
@keyframes ringpulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); }
  100% { box-shadow: 0 0 0 10px transparent; }
}
.card-title {
  font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em;
  padding-bottom: 16px; margin-bottom: 16px;
  border-bottom: 1px dashed var(--line-strong);
}
.card-meta { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.card-meta li {
  display: grid; grid-template-columns: 90px 1fr; gap: 12px; align-items: baseline;
  font-size: 0.9rem;
}
.card-meta span { color: var(--ink-3); font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; }
.card-meta b { font-weight: 600; color: var(--ink); }
.card-foot {
  margin-top: 18px; padding-top: 16px;
  border-top: 1px dashed var(--line-strong);
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-3);
}

/* ============================ Section scaffold ============================ */
.section { padding: var(--section-y) 0; position: relative; }
.section-tint { background: var(--bg-elev); border-block: 1px solid var(--line); }
.section-dark {
  background: var(--bg-deep);
  color: #e5edf8;
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .kicker { color: var(--accent); }
.section-dark .section-head p { color: #a4b4cd; }

.section-head { max-width: 720px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: left; }
.section-head h2 {
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  letter-spacing: -0.03em;
  margin: 12px 0 18px;
  text-wrap: balance;
}
.section-head p { color: var(--ink-2); font-size: 1.08rem; max-width: 56ch; text-wrap: pretty; }
.section-head-row {
  display: flex; align-items: end; justify-content: space-between; gap: 32px; max-width: none;
}
@media (max-width: 720px) { .section-head-row { flex-direction: column; align-items: flex-start; } }
.kicker {
  display: inline-block;
  font-family: var(--font-mono); font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--accent-deep);
}
.section-foot { margin-top: 48px; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--ink); padding-bottom: 2px;
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 0.2s, gap 0.2s;
}
.link-arrow:hover { border-color: var(--accent); gap: 12px; }
.link-arrow span { color: var(--accent-deep); }

/* ============================ Marquee ============================ */
.marquee {
  border-block: 1px solid var(--line);
  padding: 18px 0;
  overflow: hidden;
  background: var(--bg-elev);
}
.marquee-track {
  display: flex; gap: 36px; align-items: center;
  font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-2);
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee-track span:nth-child(even) { color: var(--accent); }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ============================ Services ============================ */
.services-grid {
  display: grid; gap: 1px;
  grid-template-columns: repeat(3, 1fr);
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }

.service {
  background: var(--bg-elev);
  padding: 32px 28px 28px;
  display: grid; grid-template-rows: auto auto 1fr auto; gap: 14px;
  position: relative;
  transition: background 0.2s ease;
}
.service::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--blue-500));
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease;
}
.service:hover { background: color-mix(in srgb, var(--accent) 5%, var(--bg-elev)); }
.service:hover::after { transform: scaleX(1); }
.svc-num {
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-3);
  letter-spacing: 0.08em;
}
.service h3 {
  font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1.25;
}
.service p { color: var(--ink-2); font-size: 0.96rem; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li {
  font-family: var(--font-mono); font-size: 0.7rem;
  padding: 4px 10px; border-radius: 999px;
  background: var(--bg); color: var(--ink-2);
  border: 1px solid var(--line);
}

/* ============================ Industries ============================ */
.industries {
  display: grid; gap: 16px;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-auto-rows: minmax(180px, auto);
}
.industries .industry:nth-child(1) { grid-row: span 2; }
.industries .industry:nth-child(2),
.industries .industry:nth-child(3) { /* row 1 */ }
@media (max-width: 900px) {
  .industries { grid-template-columns: 1fr 1fr; }
  .industries .industry:nth-child(1) { grid-row: auto; }
}
@media (max-width: 600px) { .industries { grid-template-columns: 1fr; } }

.industry {
  position: relative; isolation: isolate;
  padding: 28px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column; gap: 12px;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s, background 0.25s;
}
.industry::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(400px 200px at 100% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
    radial-gradient(400px 200px at 0% 100%, color-mix(in srgb, var(--blue-500) 25%, transparent), transparent 60%);
  opacity: 0; transition: opacity 0.3s;
}
.industry:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 50%, transparent); background: rgba(255,255,255,0.06); }
.industry:hover::before { opacity: 1; }
.ind-key {
  font-family: var(--font-mono); font-size: 0.8rem;
  color: var(--accent); letter-spacing: 0.08em;
}
.industry h3 { font-size: 1.4rem; letter-spacing: -0.02em; }
.industries .industry:nth-child(1) h3 { font-size: 1.85rem; }
.industry p { color: #a4b4cd; font-size: 0.96rem; max-width: 42ch; }

/* ============================ Approach ============================ */
.approach-grid {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
@media (max-width: 900px) { .approach-grid { grid-template-columns: 1fr; } }
.approach-copy h2 {
  font-size: clamp(2.2rem, 4vw, 3.6rem); letter-spacing: -0.035em;
  margin: 14px 0 20px;
}
.approach-copy h2 br { display: block; }
.approach-copy p { color: var(--ink-2); margin-bottom: 28px; max-width: 40ch; }
.pillars { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.pillars li {
  display: grid; grid-template-columns: 56px 1fr; gap: 22px;
  padding: 24px; align-items: start;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.pillars li:hover { transform: translateX(4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.pillar-num {
  font-family: var(--font-mono); font-weight: 500;
  color: var(--accent-deep);
  font-size: 1.4rem; letter-spacing: 0.04em;
  border-right: 1px solid var(--line); padding-right: 16px;
  text-align: center;
}
.pillars h3 { font-size: 1.2rem; margin-bottom: 6px; }
.pillars p { color: var(--ink-2); font-size: 0.96rem; }

/* ============================ Results ============================ */
.results-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  margin-bottom: 64px;
}
@media (max-width: 900px) { .results-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .results-grid { grid-template-columns: 1fr; } }
.result {
  padding: 28px 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.result-num {
  font-size: clamp(2.6rem, 4.5vw, 3.6rem);
  font-weight: 700; letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 14px;
  font-feature-settings: "tnum";
}
.result-num span { font-size: 0.5em; font-weight: 600; color: var(--accent-deep); margin-left: 2px; }
.result p { font-size: 0.92rem; color: var(--ink-2); }

.logo-wall {
  display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center;
  padding: 28px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
@media (max-width: 700px) { .logo-wall { grid-template-columns: 1fr; } }
.logo-label {
  font-family: var(--font-mono); font-size: 0.8rem;
  color: var(--ink-3); letter-spacing: 0.04em;
}
.logo-row {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
@media (max-width: 900px) { .logo-row { grid-template-columns: repeat(3, 1fr); } }
.logo-slot {
  display: flex; align-items: center; justify-content: center;
  height: 48px;
  background: repeating-linear-gradient(135deg, transparent 0 8px, rgba(11,29,51,0.04) 8px 9px);
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--ink-3); letter-spacing: 0.1em;
}

/* ============================ Insights ============================ */
.insights-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
@media (max-width: 1100px) { .insights-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .insights-grid { grid-template-columns: 1fr; } }
.insight {
  display: grid; grid-template-rows: 200px auto auto auto; gap: 12px;
  padding: 0 0 24px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s;
}
.insight:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.insight-img--photo > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  z-index: 1;
}
.insight-img--photo::after {
  background-image: linear-gradient(180deg, rgba(6,18,38,0.05) 0%, rgba(6,18,38,0.45) 100%) !important;
  z-index: 2;
}
.insight-img {
  position: relative;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
  overflow: hidden;
}
.insight-img::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(25, 194, 194,0.5), transparent 30%),
    radial-gradient(circle at 80% 70%, rgba(59,120,189,0.5), transparent 35%),
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(255,255,255,0.04) 14px 15px);
}
.insight-img[data-tone="b"] { background: linear-gradient(135deg, #1d3557, #061226); }
.insight-img[data-tone="b"]::after { background-image: radial-gradient(circle at 70% 30%, rgba(25, 194, 194,0.45), transparent 40%), repeating-linear-gradient(0deg, transparent 0 20px, rgba(255,255,255,0.04) 20px 21px); }
.insight-img[data-tone="c"] { background: linear-gradient(135deg, #06384a, #0b1d33); }
.insight-img[data-tone="c"]::after { background-image: radial-gradient(circle at 30% 80%, rgba(25, 194, 194,0.4), transparent 40%), conic-gradient(from 90deg at 60% 40%, transparent 0deg, rgba(255,255,255,0.05) 90deg, transparent 180deg); }
.insight-img[data-tone="d"] { background: linear-gradient(135deg, #112742, #2a3a55); }
.insight-img[data-tone="d"]::after { background-image: radial-gradient(circle at 50% 50%, rgba(25, 194, 194,0.35), transparent 40%), repeating-radial-gradient(circle at 50% 50%, transparent 0 22px, rgba(255,255,255,0.06) 22px 23px); }

.insight-meta {
  display: flex; gap: 8px; align-items: center;
  padding: 18px 22px 0;
  font-family: var(--font-mono); font-size: 0.74rem;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-3);
}
.insight-meta span:first-child { color: var(--accent-deep); font-weight: 500; }
.insight h3 {
  padding: 0 22px;
  font-size: 1.15rem; letter-spacing: -0.02em; line-height: 1.3;
}
.insight p { padding: 0 22px; color: var(--ink-2); font-size: 0.94rem; }

/* ============================ Contact ============================ */
.section-contact {
  background: linear-gradient(180deg, var(--bg-elev), var(--bg));
}
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 6vw, 96px);
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-copy h2 { font-size: clamp(2rem, 3.4vw, 3rem); letter-spacing: -0.03em; margin: 14px 0 18px; }
.contact-copy > p { color: var(--ink-2); margin-bottom: 28px; max-width: 42ch; }
.contact-meta { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-meta li {
  display: grid; grid-template-columns: 80px 1fr; gap: 14px; align-items: baseline;
  padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.contact-meta li:last-child { border: 0; padding: 0; }
.contact-meta span { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.08em; }
.contact-meta b { font-weight: 600; }
.contact-meta a:hover { color: var(--accent-deep); }

.contact-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  padding: 28px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field-wide { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-mono); font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-3);
}
.field input, .field select, .field textarea {
  font: inherit; font-size: 0.96rem;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  transition: border-color 0.18s, box-shadow 0.18s;
  resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}
.form-foot {
  grid-column: 1 / -1;
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  margin-top: 4px;
}
.form-status { font-size: 0.9rem; color: var(--accent-deep); font-weight: 500; }

/* ============================ Footer ============================ */
.site-footer {
  background: var(--bg-deep);
  color: #b8c4d8;
  padding: 72px 0 28px;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand img { height: 56px; filter: brightness(0) invert(1); opacity: 0.85; margin-bottom: 16px; }
.footer-brand p { font-size: 0.92rem; max-width: 36ch; }
.footer-col h4 {
  font-family: var(--font-mono); font-size: 0.74rem;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: #fff; margin-bottom: 16px; font-weight: 500;
}
.footer-col a {
  display: block; padding: 6px 0;
  color: #b8c4d8; font-size: 0.94rem;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--accent); }
.footer-foot {
  padding-top: 24px;
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 0.78rem;
  color: #6a7891;
}

/* ============================ Reveal animation ============================ */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.2,0.7,0.2,1), transform 0.7s cubic-bezier(0.2,0.7,0.2,1);
}
.reveal.in { opacity: 1; transform: none; }

/* ============================ Tweaks panel ============================ */
.tweaks {
  position: fixed; bottom: 20px; right: 20px; z-index: 90;
  width: 280px;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-size: 0.88rem;
  display: none;
}
.tweaks.open { display: block; }
.tweaks-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-2);
}
.tweaks-head button { font-size: 1.2rem; line-height: 1; color: var(--ink-3); }
.tweaks-body { padding: 16px; display: grid; gap: 18px; }
.tweak { display: grid; gap: 8px; }
.tweak label {
  font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-3); font-family: var(--font-mono);
}
.swatches { display: flex; gap: 8px; }
.swatch {
  flex: 1; aspect-ratio: 1.5;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s;
}
.swatch:hover { transform: scale(1.05); }
.swatch.active { border-color: var(--ink); }
.tweak-toggle {
  display: flex; gap: 6px;
}
.tweak-toggle button {
  flex: 1; padding: 8px;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 6px; font-size: 0.82rem; font-weight: 500;
}
.tweak-toggle button.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tweak-toggle-stack { flex-direction: column; }
.tweak-toggle-stack button { text-align: left; font-size: 0.78rem; padding: 10px 12px; line-height: 1.3; }
@media (max-width: 600px) {
  .tweaks { left: 12px; right: 12px; width: auto; bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
