/* ==========================================================================
   TMAG Global — Design Tokens & Base
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* Brand navy scale (sampled from live TMAG site + logo) */
  --navy-950: #050d1c;
  --navy-900: #0a1930;
  --navy-800: #102b5a;
  --navy-700: #16376f;
  --navy-600: #1f4785;
  --slate-400: #859dbb;
  --slate-300: #b3c1d9;
  --slate-200: #d9e2ee;

  /* Accent — teal/cyan lifted from the logo's globe gradient */
  --cyan-500: #1fb3c9;
  --cyan-400: #4fd0dd;
  --cyan-300: #8fe3ea;
  --gold-500: #c99a3c; /* echoes the DIF gold mark, used sparingly */

  /* Neutrals */
  --ink-900: #0b1220;
  --ink-700: #29344a;
  --ink-500: #5b6779;
  --ink-400: #7c8798;
  --line: #e3e8f0;
  --line-strong: #cbd5e3;
  --bg: #f3f6fa;
  --bg-2: #eaeff6;
  --white: #ffffff;

  --danger: #c53030;

  /* Type */
  --font-head: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  /* Scale */
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4.5rem;
  --space-8: 6rem;
  --space-9: 8rem;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(11, 30, 61, 0.06), 0 1px 1px rgba(11, 30, 61, 0.04);
  --shadow-md: 0 8px 24px -8px rgba(11, 30, 61, 0.18);
  --shadow-lg: 0 24px 60px -16px rgba(6, 15, 34, 0.4);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-1: 160ms;
  --dur-2: 320ms;
  --dur-3: 560ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--navy-900);
  margin: 0 0 var(--space-3);
}
h1 { font-size: clamp(2.6rem, 5vw + 1rem, 5.4rem); line-height: 0.98; }
h2 { font-size: clamp(2rem, 2.6vw + 1rem, 3rem); }
h3 { font-size: clamp(1.25rem, 1vw + 1rem, 1.5rem); }
p { margin: 0 0 var(--space-3); color: var(--ink-500); }
.lede { font-size: 1.2rem; color: var(--ink-500); line-height: 1.65; }

.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--space-4);
}
.container-wide { max-width: 1440px; }
.container-narrow { max-width: 760px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan-500);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--cyan-500);
  display: inline-block;
  flex-shrink: 0;
}
.eyebrow.on-dark { color: var(--cyan-300); }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--cyan-500);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--white);
  color: var(--navy-900);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  border-radius: 0 0 8px 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ==========================================================================
   Duotone photography treatment — signature TMAG image style
   ========================================================================== */
.duotone {
  position: relative;
  overflow: hidden;
  background: var(--navy-950);
}
.duotone img {
  /* Absolutely positioned so the image never contributes to the container's
     intrinsic size — a height:100% child inside an auto-sized grid/flex track
     is an indeterminate-size loop that inflates the row (e.g. .flagship). */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1) contrast(1.18) brightness(0.92);
}
.duotone::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy-900) 10%, var(--cyan-500) 130%);
  mix-blend-mode: color;
  opacity: 0.92;
}
.duotone::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(5,13,28,0.15) 0%, rgba(5,13,28,0.75) 100%);
}
.duotone.fade-top::before { background: linear-gradient(0deg, rgba(5,13,28,0.15) 0%, rgba(5,13,28,0.8) 100%); }
.duotone.fade-side::before { background: linear-gradient(90deg, rgba(5,13,28,0.88) 10%, rgba(5,13,28,0.15) 65%); }
.duotone.no-fade::before { background: rgba(5,13,28,0.28); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform var(--dur-1) var(--ease), box-shadow var(--dur-2) var(--ease), background var(--dur-2) var(--ease), color var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
  white-space: nowrap;
  min-height: 44px;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary {
  background: linear-gradient(135deg, var(--cyan-500), var(--navy-600));
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-ghost:hover { border-color: var(--cyan-400); background: rgba(255,255,255,0.08); }
.btn-outline {
  background: transparent;
  color: var(--navy-800);
  border-color: var(--line-strong);
}
.btn-outline:hover { border-color: var(--cyan-500); color: var(--navy-900); background: rgba(31,179,201,0.06); }
.btn-lg { padding: 1.05rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* ==========================================================================
   Header / Nav — solid light surface so the navy logo always reads
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  /* Solid, not translucent+blurred: backdrop-filter on this ancestor would
     create a new CSS containing block for the position:fixed mobile nav panel
     below, confining it to this header's own ~65px box instead of the full
     viewport — exactly the "menu looks broken on mobile" bug this avoids. */
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--dur-2) var(--ease);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-2);
  gap: var(--space-4);
}
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand img { height: 40px; width: auto; }
.nav-links { display: flex; align-items: center; gap: var(--space-5); }
.nav-links a {
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-700);
  padding: 0.5rem 0.1rem;
  position: relative;
  transition: color var(--dur-1) var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--cyan-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-2) var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--navy-900); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: var(--space-3); }
.nav-toggle {
  display: none;
  background: transparent;
  border: 1.5px solid var(--line-strong);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--navy-900);
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    inset: 65px 0 0 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-5) var(--space-4);
    gap: var(--space-4);
    transform: translateX(100%);
    transition: transform var(--dur-3) var(--ease);
    overflow-y: auto;
    border-top: 1px solid var(--line);
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-links a { font-size: 1.15rem; width: 100%; }
  .nav-actions .btn-primary { display: none; }
  .nav-actions.is-open .btn-primary { display: inline-flex; margin-top: var(--space-2); }
  .nav-toggle { display: inline-flex; }
}

/* ==========================================================================
   Hero — full-bleed real photography, editorial oversized type
   ========================================================================== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}
.hero .duotone { position: absolute; inset: 0; z-index: 0; }
/* Slow cinematic drift on the hero photo — classic premium-site cue, subtle
   enough to read as "alive" rather than distracting. */
.hero .duotone img, .page-hero .duotone img {
  animation: kenburns 26s ease-in-out infinite alternate;
}
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.07); } }
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: var(--space-8) var(--space-7);
  animation: heroEnter 900ms var(--ease) both;
  animation-delay: 120ms;
}
@keyframes heroEnter { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
.hero h1 { color: var(--white); max-width: 16ch; }
.hero .lede { color: var(--slate-200); max-width: 46ch; font-size: 1.3rem; }
.hero-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-5); }
.hero-meta {
  position: absolute;
  right: var(--space-4);
  bottom: var(--space-7);
  z-index: 2;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate-300);
  display: none;
}
@media (min-width: 1100px) { .hero-meta { display: flex; align-items: center; gap: 0.6rem; } }
.hero-meta::after { content: ""; width: 1px; height: 60px; background: var(--cyan-400); }

/* ==========================================================================
   Marquee — Canadian defence procurement news wire
   ========================================================================== */
.marquee {
  display: flex;
  align-items: stretch;
  background: var(--navy-950);
  border-block: 1px solid rgba(255,255,255,0.08);
}
.marquee-label {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-inline: var(--space-4);
  background: linear-gradient(135deg, var(--cyan-500), var(--navy-600));
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  position: relative;
  z-index: 2;
}
.marquee-label svg { width: 16px; height: 16px; flex-shrink: 0; }
.marquee-viewport {
  flex: 1 1 auto;
  overflow: hidden;
  padding-block: var(--space-3);
  min-width: 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 55s linear infinite;
}
/* Pause on hover/focus so headlines are actually readable, not just decorative. */
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } .marquee-viewport { overflow-x: auto; } }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding-inline: var(--space-5);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 500;
  color: var(--slate-200);
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,0.1);
  transition: color var(--dur-1) var(--ease);
}
.marquee-item:hover, .marquee-item:focus-visible { color: var(--white); }
/* Mobile: the fixed label was eating most of a narrow viewport, leaving only a
   sliver for the actual ticker. Stack the label above instead of beside it, and
   tighten item spacing so more of each headline is visible per pass. */
@media (max-width: 640px) {
  .marquee { flex-direction: column; align-items: stretch; }
  .marquee-label { padding-block: 0.5rem; justify-content: center; }
  .marquee-viewport { padding-block: var(--space-2); }
  .marquee-item { font-size: 0.86rem; padding-inline: var(--space-3); gap: 0.5rem; }
  .marquee-item .date { display: none; }
}
.marquee-item .tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan-300);
  background: rgba(31,179,201,0.14);
  border: 1px solid rgba(79,208,221,0.35);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  flex-shrink: 0;
}
.marquee-item .date { color: var(--slate-400); font-weight: 400; font-size: 0.85rem; }
.marquee-item svg.ext { width: 13px; height: 13px; color: var(--slate-400); flex-shrink: 0; }

/* ==========================================================================
   Sections generic
   ========================================================================== */
section { padding-block: var(--space-8); }
.section-head { max-width: 720px; margin-bottom: var(--space-6); }
.section-head.center { margin-inline: auto; text-align: center; }
.bg-navy { background: var(--navy-900); color: var(--white); }
.bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-navy p { color: var(--slate-300); }
.bg-alt { background: var(--bg); }
.bg-tint { background: var(--bg-2); }

/* ==========================================================================
   Editorial asymmetric service grid
   ========================================================================== */
.service-index-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-4);
  align-items: start;
}
.service-tile {
  grid-column: span 3;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
  display: flex;
  flex-direction: column;
}
.service-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(31,179,201,0.35); }
.service-tile.wide { grid-column: span 6; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: var(--space-5); }
.service-tile .num {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 700;
  color: var(--cyan-500);
  opacity: 0.35;
  line-height: 1;
  margin-bottom: var(--space-2);
}
.service-tile h3 { margin-bottom: 0.5rem; }
.service-tile ul { margin-top: var(--space-3); display: grid; gap: 0.5rem; }
.service-tile ul li {
  display: flex;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--ink-500);
  align-items: flex-start;
}
.service-tile ul li svg { width: 16px; height: 16px; color: var(--cyan-500); flex-shrink: 0; margin-top: 3px; }
@media (max-width: 900px) {
  .service-index-grid { grid-template-columns: 1fr; }
  .service-tile, .service-tile.wide { grid-column: span 1; grid-template-columns: 1fr; }
}

/* ==========================================================================
   Flagship program feature (VISS / TMAG Global Index)
   ========================================================================== */
/* Split panel: a solid text half + a full photo half, so neither side is ever
   just empty background behind a small overlay caption. */
.flagship {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--white);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 420px;
  /* .flagship is sometimes applied straight to a <section> — override the
     generic `section { padding-block }` rule so it doesn't add invisible
     padding around this grid. */
  padding-block: 0;
}
.flagship .duotone { position: relative; order: 2; min-height: 260px; }
.flagship-content {
  position: relative;
  z-index: 2;
  order: 1;
  padding: var(--space-6);
  max-width: none;
  background: linear-gradient(155deg, var(--navy-900), var(--navy-950));
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (max-width: 860px) {
  .flagship { grid-template-columns: 1fr; }
  .flagship .duotone { order: 1; min-height: 240px; }
  .flagship-content { order: 2; }
}
.flagship-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(31,179,201,0.16);
  border: 1px solid rgba(79,208,221,0.4);
  color: var(--cyan-300);
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  margin-bottom: var(--space-4);
}
.flagship h2 { color: var(--white); }
.flagship p { color: var(--slate-200); }
.flagship-list { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }
.flagship-list li {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--white);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
}

/* ==========================================================================
   Big pull-quote / testimonial spotlight
   ========================================================================== */
.quote-spotlight {
  position: relative;
  background: var(--navy-950);
  color: var(--white);
  padding-block: var(--space-8);
  overflow: hidden;
}
.quote-inner { display: flex; justify-content: space-between; align-items: center; gap: var(--space-7); }
.quote-main { flex: 1 1 auto; min-width: 0; }
.quote-side {
  flex: 0 0 auto;
  display: none;
  font-family: var(--font-head);
  font-weight: 700;
  color: rgba(255,255,255,0.05);
  font-size: 13rem;
  line-height: 1;
  user-select: none;
}
@media (min-width: 980px) { .quote-side { display: block; } }
.quote-slide { display: none; }
.quote-slide.is-active { display: block; animation: fadein 500ms var(--ease); }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.quote-mark { width: 44px; height: 44px; color: var(--cyan-500); margin-bottom: var(--space-4); }
.quote-text {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 2vw + 1rem, 2.4rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--white);
  max-width: 54ch;
}
.quote-attr { margin-top: var(--space-5); font-size: 0.95rem; color: var(--slate-300); }
.quote-attr strong { display: block; color: var(--cyan-300); font-family: var(--font-head); font-size: 1rem; margin-bottom: 0.2rem; }
.quote-dots { display: flex; gap: 0.6rem; margin-top: var(--space-6); }
.quote-dot {
  width: 34px; height: 4px; border-radius: 2px;
  background: rgba(255,255,255,0.2);
  border: none;
  cursor: pointer;
  transition: background var(--dur-2) var(--ease), width var(--dur-2) var(--ease), opacity var(--dur-1) var(--ease);
}
.quote-dot:hover { background: rgba(255,255,255,0.4); }
.quote-dot.is-active { background: var(--cyan-400); width: 48px; }
.quote-dot.is-active:hover { background: var(--cyan-400); }

/* ==========================================================================
   TRL step visual
   ========================================================================== */
.trl-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); margin-top: var(--space-5); align-items: start; }
.trl-step {
  border-radius: var(--radius-md);
  padding: var(--space-4);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.trl-step:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.trl-step .trl-range { font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; color: var(--navy-900); }
.trl-step .trl-label { font-family: var(--font-head); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cyan-500); margin-bottom: 0.3rem; }
.trl-step p { font-size: 0.9rem; margin-bottom: 0; margin-top: 0.4rem; }
.trl-track { height: 6px; border-radius: 3px; background: var(--line); margin-top: var(--space-3); overflow: hidden; }
.trl-track span { display: block; height: 100%; background: linear-gradient(90deg, var(--navy-700), var(--cyan-500)); }
@media (max-width: 760px) { .trl-bar { grid-template-columns: 1fr; } }

/* ==========================================================================
   Split layout
   ========================================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-7); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split-media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; }
.split.reverse .split-media { order: 2; }
@media (max-width: 900px) { .split.reverse .split-media { order: 0; } }

/* ==========================================================================
   Numbered approach list
   ========================================================================== */
.approach-list { display: grid; gap: 0; }
.approach-item { display: grid; grid-template-columns: 64px 1fr; gap: var(--space-4); padding-block: var(--space-4); border-top: 1px solid var(--line); }
.approach-item:last-child { border-bottom: 1px solid var(--line); }
.approach-num { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: var(--cyan-500); }
.approach-item h3 { margin-bottom: 0.35rem; }
.approach-item p { margin-bottom: 0; }
.bg-navy .approach-item { border-color: rgba(255,255,255,0.12); }

/* Compact variant: number + single-line title, no description — used where
   the list is a crisp scannable index rather than a set of mini write-ups. */
.approach-list-tight .approach-item { align-items: center; padding-block: var(--space-3); }
.approach-list-tight .approach-num { font-size: 1.15rem; }
.approach-list-tight .approach-item h3 { margin-bottom: 0; font-size: 1.05rem; }

/* A deliberate closing statement, set apart with a rule rather than left to
   float in open space after the block above it. */
.approach-close {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line-strong);
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--ink-700);
  max-width: 76ch;
}

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-7) var(--space-6);
  text-align: center;
}
.cta-band::before {
  content: "";
  position: absolute;
  width: 480px; height: 480px;
  right: -160px; top: -220px;
  background: radial-gradient(circle, var(--cyan-500), transparent 70%);
  opacity: 0.35;
  border-radius: 50%;
}
.cta-band h2 { color: var(--white); margin-bottom: var(--space-2); }
.cta-band p { color: var(--slate-300); max-width: 56ch; margin-inline: auto; }
.cta-actions { display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; margin-top: var(--space-5); position: relative; }

/* ==========================================================================
   Page hero (interior pages) — real photography
   ========================================================================== */
.page-hero {
  position: relative;
  color: var(--white);
  min-height: 56vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.page-hero .duotone { position: absolute; inset: 0; z-index: 0; }
.page-hero .container { position: relative; z-index: 2; padding-block: var(--space-7) var(--space-6); animation: heroEnter 700ms var(--ease) both; animation-delay: 80ms; }
.page-hero h1 { color: var(--white); max-width: 22ch; }
.breadcrumb { display: flex; gap: 0.5rem; align-items: center; font-size: 0.85rem; color: var(--slate-300); margin-bottom: var(--space-4); }
.breadcrumb a { color: var(--slate-300); }
.breadcrumb a:hover { color: var(--cyan-400); }

/* ==========================================================================
   Forms
   ========================================================================== */
.field { margin-bottom: var(--space-4); }
.field label { display: block; font-family: var(--font-head); font-size: 0.88rem; font-weight: 600; color: var(--navy-900); margin-bottom: 0.4rem; }
.field .req { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink-900);
  transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
  min-height: 48px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--cyan-500);
  box-shadow: 0 0 0 4px rgba(31,179,201,0.15);
  outline: none;
}
.field-hint { font-size: 0.8rem; color: var(--ink-400); margin-top: 0.35rem; }
.field-error { font-size: 0.82rem; color: var(--danger); margin-top: 0.35rem; display: none; }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.field.has-error .field-error { display: block; }
.form-status {
  display: none;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  background: rgba(31,179,201,0.1);
  border: 1px solid rgba(31,179,201,0.35);
  color: var(--navy-800);
  font-size: 0.92rem;
  margin-bottom: var(--space-4);
  align-items: center;
  gap: 0.6rem;
}
.form-status.is-visible { display: flex; }

/* ==========================================================================
   Contact page layout
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--space-7); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-item { display: flex; gap: var(--space-3); padding-block: var(--space-3); border-top: 1px solid var(--line); }
.contact-info-item:first-child { border-top: none; }
.contact-info-icon { width: 42px; height: 42px; border-radius: 10px; background: rgba(16,43,90,0.06); display: grid; place-items: center; color: var(--navy-800); flex-shrink: 0; }
.contact-info-icon svg { width: 20px; height: 20px; }
.contact-info-item h3 { font-size: 1rem; margin-bottom: 0.2rem; }
.contact-info-item p { margin-bottom: 0; font-size: 0.94rem; }
.contact-info-item a:hover { color: var(--cyan-500); }
.contact-form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: var(--shadow-sm); }

.mini-quote {
  margin-top: var(--space-5);
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.mini-quote svg.quote { width: 30px; height: 30px; color: var(--cyan-500); margin-bottom: var(--space-3); }
.mini-quote p { color: var(--slate-200); font-family: var(--font-head); font-size: 1.05rem; line-height: 1.5; margin-bottom: var(--space-3); }
.mini-quote strong { display: block; color: var(--cyan-300); font-family: var(--font-head); font-size: 0.9rem; }
.mini-quote span { font-size: 0.85rem; color: var(--slate-400); }

/* ==========================================================================
   Event detail
   ========================================================================== */
.event-hero-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-6);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  align-items: center;
}
.event-hero-card img { border-radius: var(--radius-md); }
.event-fact-list { display: grid; gap: var(--space-3); margin-top: var(--space-4); }
.event-fact { display: flex; gap: var(--space-3); align-items: flex-start; }
.event-fact svg { width: 20px; height: 20px; color: var(--cyan-500); flex-shrink: 0; margin-top: 2px; }
.event-fact strong { display: block; font-family: var(--font-head); font-size: 0.95rem; color: var(--navy-900); }
.event-fact span { font-size: 0.9rem; color: var(--ink-500); }
@media (max-width: 760px) { .event-hero-card { grid-template-columns: 1fr; } }

/* Flex-wrap so a trailing row with fewer items doesn't leave empty fixed-width
   grid tracks — chips size to content and the row just wraps naturally. */
.participant-list { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }
.participant-list .participant-item { flex: 1 1 220px; }
.participant-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy-900);
  box-shadow: var(--shadow-sm);
}
.participant-item svg { width: 20px; height: 20px; color: var(--cyan-500); flex-shrink: 0; }

.schedule-list { display: grid; gap: var(--space-3); margin-top: var(--space-4); }
.schedule-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.schedule-item .room { font-family: var(--font-head); font-weight: 700; color: var(--cyan-500); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }
@media (max-width: 640px) { .schedule-item { grid-template-columns: 1fr; } }

.history-block {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.history-block blockquote {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--navy-900);
  border-left: 3px solid var(--cyan-500);
  padding-left: var(--space-4);
}
.timeline { display: grid; gap: var(--space-4); margin-top: var(--space-5); }
.timeline-item { display: grid; grid-template-columns: 90px 1fr; gap: var(--space-4); }
.timeline-year { font-family: var(--font-head); font-weight: 700; color: var(--navy-900); font-size: 1.05rem; }
.timeline-item p { margin-bottom: 0; font-size: 0.93rem; }

/* ==========================================================================
   Value grid (About)
   ========================================================================== */
/* Flex-wrap + centered last row avoids the empty trailing grid cell a fixed
   3-column grid leaves when the item count (e.g. 4 or 5) isn't a multiple of 3. */
.value-grid { display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: center; }
.value-item {
  flex: 1 1 250px;
  max-width: 320px;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
}
.value-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(31,179,201,0.35); }
.value-item .icon-badge { margin-bottom: var(--space-2); width: 44px; height: 44px; border-radius: 10px; background: linear-gradient(135deg, rgba(31,179,201,0.14), rgba(16,43,90,0.10)); display: grid; place-items: center; color: var(--navy-800); }
.value-item .icon-badge svg { width: 22px; height: 22px; }
.value-item h3 { font-size: 1.05rem; }
.value-item p { font-size: 0.92rem; margin-bottom: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy-950); color: var(--slate-400); padding-block: var(--space-7) var(--space-5); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-6); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { height: 34px; margin-bottom: var(--space-3); }
.footer-brand p { max-width: 34ch; font-size: 0.9rem; }
.footer-social { display: flex; gap: 0.6rem; margin-top: var(--space-3); }
.footer-social a {
  width: 38px; height: 38px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.16);
  display: grid; place-items: center;
  color: var(--slate-300);
  transition: border-color var(--dur-1) var(--ease), background var(--dur-1) var(--ease), color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
}
.footer-social a:hover { border-color: var(--cyan-400); background: rgba(79,208,221,0.1); color: var(--cyan-300); transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; }
.footer-col h4 { font-family: var(--font-head); color: var(--white); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: var(--space-3); }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col a { font-size: 0.92rem; transition: color var(--dur-1) var(--ease); }
.footer-col a:hover { color: var(--cyan-400); }
.footer-bottom {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-size: 0.82rem;
}

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--dur-3) var(--ease), transform var(--dur-3) var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Misc utility
   ========================================================================== */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
