/* =========================================================
   TOP SHELF SYSTEMS AND ENGINEERING
   Design tokens, typography, layout, components
   ========================================================= */

:root {
  /* Brand colors */
  --navy: #1a2a4a;
  --navy-deep: #0f1b33;
  --navy-600: #24365e;
  --red: #c23a2a;
  --red-600: #a93025;
  --silver: #8a8f94;
  --silver-light: #c8cccf;

  /* Light theme (default) */
  --bg: #f5f6f8;
  --bg-elev: #ffffff;
  --bg-muted: #eceef2;
  --surface: #ffffff;
  --border: #dcdfe4;
  --border-strong: #c4c9d0;
  --text: #0f1b33;
  --text-muted: #555c68;
  --text-dim: #7a828e;
  --accent: var(--red);
  --accent-hover: var(--red-600);
  --primary: var(--navy);
  --primary-hover: var(--navy-deep);
  --shadow-sm: 0 1px 2px rgba(15, 27, 51, 0.06), 0 1px 3px rgba(15, 27, 51, 0.08);
  --shadow-md: 0 4px 12px rgba(15, 27, 51, 0.08), 0 2px 4px rgba(15, 27, 51, 0.05);
  --shadow-lg: 0 18px 40px rgba(15, 27, 51, 0.12), 0 6px 14px rgba(15, 27, 51, 0.08);

  /* Type scale */
  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.25rem;
  --text-4xl: 3rem;
  --text-5xl: 4rem;
  --text-hero: clamp(2.5rem, 6vw, 5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  /* Layout */
  --container: 1200px;
  --container-narrow: 880px;
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 14px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme='dark'] {
  --bg: #0b1427;
  --bg-elev: #111c38;
  --bg-muted: #0f1930;
  --surface: #152345;
  --border: #233561;
  --border-strong: #304680;
  --text: #eef1f8;
  --text-muted: #aeb8cd;
  --text-dim: #7d8aa6;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35), 0 2px 4px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.5), 0 6px 14px rgba(0, 0, 0, 0.35);
}

/* Brighten icon tiles in dark mode for contrast against dark cards */
[data-theme='dark'] .feature-icon,
[data-theme='dark'] .service-icon,
[data-theme='dark'] .contact-card .icon {
  background: var(--red);
}

/* =========================================================
   Base
   ========================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin: 0 0 var(--space-4);
  color: var(--text);
}

h1 {
  font-size: var(--text-5xl);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

h2 {
  font-size: var(--text-4xl);
  text-transform: uppercase;
}

h3 {
  font-size: var(--text-2xl);
  text-transform: uppercase;
}

h4 {
  font-size: var(--text-xl);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

p {
  margin: 0 0 var(--space-4);
  color: var(--text-muted);
}

/* Selection */
::selection {
  background: var(--red);
  color: #fff;
}

/* =========================================================
   Utilities
   ========================================================= */

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

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: var(--space-4);
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--accent);
}

.red-line {
  width: 56px;
  height: 3px;
  background: var(--accent);
  margin: 0 0 var(--space-5);
}

.text-center {
  text-align: center;
}

.text-center .red-line,
.text-center .eyebrow {
  margin-left: auto;
  margin-right: auto;
}

.text-center .eyebrow {
  display: inline-flex;
}

.section {
  padding: var(--space-9) 0;
  position: relative;
}

.section-tight {
  padding: var(--space-8) 0;
}

.section-muted {
  background: var(--bg-muted);
}

.section-navy {
  background: var(--navy);
  color: #fff;
}

.section-navy h1,
.section-navy h2,
.section-navy h3,
.section-navy h4 {
  color: #fff;
}

.section-navy p {
  color: rgba(255, 255, 255, 0.78);
}

/* =========================================================
   Buttons
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0.95rem 1.75rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.18s var(--ease), background-color 0.2s var(--ease),
    color 0.2s var(--ease), border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
  text-decoration: none;
}

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

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
  box-shadow: var(--shadow-md);
}

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

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

.btn-on-navy {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}

.btn-on-navy:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-arrow {
  transition: transform 0.2s var(--ease);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* =========================================================
   Header / Navigation
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s var(--ease);
}

[data-theme='dark'] .site-header {
  background: rgba(11, 20, 39, 0.82);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding: 0.75rem var(--space-5);
  max-width: var(--container);
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--text);
}

.nav-brand img {
  height: 44px;
  width: auto;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.nav-brand-text .brand-top {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-brand-text .brand-top .red {
  color: var(--red);
}

.nav-brand-text .brand-sub {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text);
  position: relative;
  padding: 0.4rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.25s var(--ease);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.theme-toggle,
.nav-toggle {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease),
    background 0.2s var(--ease);
}

.theme-toggle:hover,
.nav-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.theme-toggle svg,
.nav-toggle svg {
  width: 20px;
  height: 20px;
}

.theme-toggle .icon-sun {
  display: none;
}

[data-theme='dark'] .theme-toggle .icon-moon {
  display: none;
}

[data-theme='dark'] .theme-toggle .icon-sun {
  display: block;
}

.nav-toggle {
  display: none;
}

/* Mobile nav */
@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    inset: 64px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--border);
    padding: var(--space-5) var(--space-5) var(--space-6);
    transform: translateY(-120%);
    transition: transform 0.35s var(--ease);
    box-shadow: var(--shadow-lg);
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    display: block;
    padding: var(--space-4) 0;
    font-size: 1.05rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-brand-text {
    display: none;
  }
}

/* =========================================================
   Hero (Home)
   ========================================================= */

.hero {
  position: relative;
  padding: var(--space-7) 0 var(--space-8);
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-muted) 100%);
}

[data-theme='dark'] .hero {
  background: linear-gradient(180deg, var(--bg) 0%, var(--navy-deep) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-8);
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-7);
  }
}

.hero h1 {
  font-size: var(--text-hero);
  line-height: 0.95;
  margin-bottom: var(--space-5);
}

.hero h1 .red {
  color: var(--red);
}

.hero .lede {
  font-size: var(--text-lg);
  max-width: 58ch;
  margin-bottom: var(--space-6);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
}

.hero-meta-item {
  display: flex;
  flex-direction: column;
}

.hero-meta-item .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.25rem;
  color: var(--navy);
  line-height: 1;
}

[data-theme='dark'] .hero-meta-item .num {
  color: #fff;
}

.hero-meta-item .num .red {
  color: var(--red);
}

.hero-meta-item .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  margin-top: 4px;
}

.hero-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 520px;
  margin-left: auto;
  justify-self: end;
}

.hero-visual-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
}

.hero-visual img {
  width: 100%;
  height: auto;
  max-width: 460px;
  filter: drop-shadow(0 20px 50px rgba(26, 42, 74, 0.18));
}

[data-theme='dark'] .hero-visual img {
  filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.6));
}

.hero-visual::before,
.hero-visual::after {
  content: '';
  position: absolute;
  border: 1px solid var(--border);
}

.hero-visual::before {
  inset: 0;
  border-radius: var(--radius-lg);
  background: radial-gradient(
    circle at 60% 40%,
    rgba(194, 58, 42, 0.08) 0%,
    transparent 60%
  );
}

.hero-visual::after {
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-top: 3px solid var(--red);
  border-right: 3px solid var(--red);
  background: transparent;
}

/* Grid pattern background for sections */
.bg-grid {
  background-image: linear-gradient(
      var(--border) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
  opacity: 0.4;
  position: absolute;
  inset: 0;
  pointer-events: none;
  mask-image: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0.8) 0%,
    transparent 70%
  );
  -webkit-mask-image: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0.8) 0%,
    transparent 70%
  );
}

/* =========================================================
   Page Hero (inner pages)
   ========================================================= */

.page-hero {
  position: relative;
  padding: var(--space-8) 0 var(--space-7);
  background: var(--navy);
  color: #fff;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 85% 20%,
      rgba(194, 58, 42, 0.22) 0%,
      transparent 55%
    ),
    radial-gradient(
      circle at 10% 90%,
      rgba(194, 58, 42, 0.1) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  max-width: 760px;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(2.25rem, 6vw, 4rem);
  margin-bottom: var(--space-4);
}

.page-hero h1 .red {
  color: var(--red);
}

.page-hero p {
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--text-lg);
  max-width: 60ch;
}

.page-hero .eyebrow {
  color: #fff;
}

.page-hero .eyebrow::before {
  background: var(--red);
}

.crumbs {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--space-5);
}

.crumbs a {
  color: rgba(255, 255, 255, 0.8);
}

.crumbs a:hover {
  color: #fff;
}

.crumbs .sep {
  color: var(--red);
}

/* =========================================================
   Value props / feature grid
   ========================================================= */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-6);
}

@media (max-width: 980px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  position: relative;
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--red);
  transition: width 0.3s var(--ease);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.feature-card:hover::before {
  width: 100%;
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-4);
}

.feature-icon svg {
  width: 26px;
  height: 26px;
}

.feature-card h4 {
  margin-bottom: var(--space-3);
}

.feature-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
}

/* =========================================================
   Why section
   ========================================================= */

.why {
  position: relative;
  background: var(--navy);
  color: #fff;
  padding: var(--space-9) 0;
  overflow: hidden;
}

.why::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 20% 30%,
      rgba(194, 58, 42, 0.18) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(255, 255, 255, 0.04) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: var(--space-8);
  position: relative;
  align-items: start;
}

@media (max-width: 900px) {
  .why-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

.why h2 {
  color: #fff;
  font-size: var(--text-4xl);
}

.why h2 .red {
  color: var(--red);
}

.why-lede {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--text-lg);
  max-width: 42ch;
}

.why-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-5);
}

.why-point {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--space-4);
  padding: var(--space-5);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--red);
  border-radius: var(--radius-sm);
}

.why-point .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  color: var(--red);
  line-height: 1;
}

.why-point h4 {
  color: #fff;
  margin-bottom: var(--space-2);
  font-size: 1.1rem;
}

.why-point p {
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  font-size: 0.95rem;
}

/* =========================================================
   CTA bar
   ========================================================= */

.cta-bar {
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--space-7) 0;
}

.cta-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.cta-bar h2 {
  margin: 0;
  font-size: var(--text-3xl);
}

.cta-bar h2 .red {
  color: var(--red);
}

.cta-bar p {
  margin: var(--space-2) 0 0;
  color: var(--text-muted);
  max-width: 50ch;
}

/* =========================================================
   Services page
   ========================================================= */

.services-list {
  display: grid;
  gap: var(--space-6);
}

.service-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: var(--space-6);
  padding: var(--space-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.service-item:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-item::before {
  content: '';
  position: absolute;
  top: var(--space-6);
  bottom: var(--space-6);
  left: 0;
  width: 3px;
  background: var(--red);
  transition: height 0.3s var(--ease);
}

.service-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3.5rem;
  color: var(--silver-light);
  line-height: 1;
  letter-spacing: -0.02em;
}

[data-theme='dark'] .service-number {
  color: rgba(255, 255, 255, 0.12);
}

.service-icon {
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  margin-bottom: var(--space-3);
}

.service-icon svg {
  width: 40px;
  height: 40px;
}

.service-body h3 {
  margin-bottom: var(--space-3);
}

.service-body p {
  max-width: 68ch;
  margin: 0;
}

@media (max-width: 760px) {
  .service-item {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .service-number {
    font-size: 2.5rem;
  }
}

/* =========================================================
   About page
   ========================================================= */

.about-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: var(--space-8);
  align-items: start;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

.about-portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  background: linear-gradient(
    135deg,
    var(--navy) 0%,
    var(--navy-deep) 100%
  );
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.about-portrait::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.04) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.04) 1px,
      transparent 1px
    );
  background-size: 24px 24px;
  opacity: 0.9;
}

.about-portrait::after {
  content: '';
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 36px;
  height: 36px;
  border-top: 3px solid var(--red);
  border-right: 3px solid var(--red);
}

.about-portrait svg {
  position: relative;
  width: 80%;
  height: auto;
  color: rgba(255, 255, 255, 0.85);
}

/* Logo variant — white background, centered */
.about-portrait--logo {
  background: #ffffff;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
}

.about-portrait--logo::before {
  background-image: none;
}

[data-theme='dark'] .about-portrait--logo {
  background: var(--bg-elev);
  border: 1px solid var(--border);
}

.about-portrait--logo img {
  position: relative;
  width: 75%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(15, 27, 51, 0.12));
}

/* Photo variant — real headshot, full bleed */
.about-portrait--photo {
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
}

.about-portrait--photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.about-caption {
  margin-top: var(--space-4);
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  border-radius: var(--radius-sm);
}

.about-caption .name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text);
  margin-bottom: 4px;
}

.about-caption .role {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--red);
  font-weight: 600;
}

.about-content h2 {
  font-size: var(--text-3xl);
}

.about-content h2 .red {
  color: var(--red);
}

.about-content p {
  font-size: 1.05rem;
  line-height: 1.7;
}

.credentials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin: var(--space-6) 0 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 620px) {
  .credentials {
    grid-template-columns: 1fr;
  }
}

.credentials li {
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  position: relative;
}

.credentials li::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--red);
  margin-bottom: var(--space-3);
}

.credentials .cred-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  font-weight: 600;
  margin-bottom: 4px;
}

.credentials .cred-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.2;
}

/* =========================================================
   Contact page
   ========================================================= */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: var(--space-8);
  align-items: start;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-7);
  }
}

.contact-info {
  display: grid;
  gap: var(--space-5);
}

.contact-card {
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--space-4);
  align-items: center;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.contact-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.contact-card .icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-sm);
}

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

.contact-card .label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  font-weight: 600;
  margin-bottom: 2px;
}

.contact-card .value {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
}

.contact-card a.value:hover {
  color: var(--accent);
}

.qr-card {
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: var(--space-5);
  align-items: center;
}

@media (max-width: 520px) {
  .qr-card {
    grid-template-columns: 1fr;
  }
}

.qr-code {
  width: 160px;
  height: 160px;
  background: #fff;
  padding: 10px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-code svg {
  width: 100%;
  height: 100%;
  display: block;
}

.qr-card h4 {
  margin-bottom: var(--space-2);
}

.qr-card p {
  margin: 0;
  font-size: 0.9rem;
}

/* Contact form */
.contact-form {
  padding: var(--space-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.contact-form h3 {
  margin-bottom: var(--space-2);
  font-size: var(--text-2xl);
}

.contact-form .form-lede {
  margin-bottom: var(--space-5);
}

.field {
  display: grid;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.field label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  font-weight: 600;
}

.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.85rem 1rem;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  width: 100%;
}

.field textarea {
  resize: vertical;
  min-height: 140px;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(194, 58, 42, 0.15);
}

.form-status {
  margin-top: var(--space-4);
  padding: var(--space-4);
  background: rgba(194, 58, 42, 0.08);
  border-left: 3px solid var(--red);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--text);
  display: none;
}

.form-status.show {
  display: block;
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.78);
  padding: var(--space-8) 0 var(--space-6);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-7);
  margin-bottom: var(--space-7);
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.footer-brand img {
  height: 48px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.footer-brand-text .brand-top {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

.footer-brand-text .brand-top .red {
  color: var(--red);
}

.footer-brand-text .brand-sub {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 4px;
}

.footer-col h5 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #fff;
  margin: 0 0 var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
}

.footer-col h5::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--red);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
}

.footer-col a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: #fff;
}

.footer-col p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
  margin: 0 0 var(--space-3);
}

.footer-col .contact-line {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

.footer-col .contact-line svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--red);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom .red-mark {
  color: var(--red);
}

/* =========================================================
   Scroll animations
   ========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.08s;
}
.reveal-delay-2 {
  transition-delay: 0.16s;
}
.reveal-delay-3 {
  transition-delay: 0.24s;
}
.reveal-delay-4 {
  transition-delay: 0.32s;
}

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

/* Skip focus outline for mouse, keep for keyboard */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Flex sticky footer */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}
