/* ODRM Phase 0 demo stylesheet */

:root {
  --blue: #3d8dff;
  --blue-hover: #2f74e0;
  --link: #2560c4;
  --link-hover: #1f57b0;
  --blue-tint: #e8f1ff;
  --navy: #0b1f3a;
  --navy-soft: #123052;
  --text: #1c2b3a;
  --muted: #4b5a6a;
  --border: #dbe4f0;
  --white: #ffffff;
  --success: #22c55e;
  --error: #ef4444;
  --radius: 14px;
  --radius-lg: 16px;
  --shadow: 0 8px 24px rgba(11, 31, 58, 0.08);
  --shadow-lg: 0 16px 40px rgba(11, 31, 58, 0.16);
  --font-head: "Montserrat", sans-serif;
  --font-body: "Inter", sans-serif;
  --maxw: 1140px;
  --ease-punch: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition: 0.25s ease;
  --header-top: 0.85rem;
  --nav-h: 68px;
  --header-h: calc(var(--header-top) + var(--nav-h));
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  color: var(--text);
  line-height: 1.2;
  margin: 0 0 1rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--link);
  text-decoration: none;
}

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

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 300;
  background: var(--blue);
  color: var(--white);
  font-weight: 500;
  padding: 0.65rem 1.1rem;
  border-radius: 8px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
  color: var(--white);
}

/* ---------- Eyebrows and section headings ---------- */

.eyebrow {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--link);
  margin: 0 0 1rem;
}

.eyebrow-light {
  color: #9fc4ff;
}

.section {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.section-tint {
  background: var(--blue-tint);
}

.section-title {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  font-weight: 700;
  max-width: 760px;
}

.section-sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 720px;
}

.section-head {
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.section-head--tight {
  margin-bottom: 1.5rem;
}

/* ---------- Buttons ---------- */

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.9rem 1.7rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.15s ease, transform 0.08s ease;
  will-change: transform;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(61, 141, 255, 0.35);
}

.btn-primary:hover {
  background: var(--blue-hover);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(61, 141, 255, 0.45);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.85);
  color: var(--white);
  background: transparent;
}

.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.btn-block {
  width: 100%;
}

/* ---------- Header and navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  padding-top: var(--header-top);
}

.site-header .nav {
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  box-shadow: 0 10px 34px rgba(11, 31, 58, 0.1);
  max-width: 1000px;
  height: var(--nav-h);
  padding-inline: clamp(1.6rem, 4.5vw, 2.6rem);
  margin: 0 auto;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header .nav {
    background: rgba(255, 255, 255, 0.95);
  }
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 100%;
}

.brand {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.02em;
  padding-inline: 0.15rem;
}

.brand:hover {
  color: var(--blue-hover);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  position: relative;
  font-weight: 500;
  color: var(--text);
  padding: 0.6rem 0.35rem;
}

.nav-link[aria-current="page"] {
  color: var(--link);
}

.nav-cta {
  margin-left: 0.9rem;
}

.nav-cta .btn {
  padding: 0.65rem 1.5rem;
  font-size: 0.9rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
  border-radius: 8px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0s;
}

.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-menu .nav-link {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 6vw, 2.2rem);
  font-weight: 600;
  color: var(--white);
  padding: 0.7rem 0;
}

.mobile-menu .nav-link::after {
  display: none;
}

.mobile-menu .nav-link:hover,
.mobile-menu .nav-link[aria-current="page"] {
  color: #9fc4ff;
}

.mobile-menu .nav-cta {
  margin: 1.5rem 0 0;
  align-self: flex-start;
}

.mobile-menu-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
  border-radius: 8px;
}

.mobile-menu-close span {
  position: absolute;
  left: 10px;
  top: 21px;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

.mobile-menu-close span:first-child {
  transform: rotate(45deg);
}

.mobile-menu-close span:last-child {
  transform: rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #0b1f3a 0%, #123052 55%, #0b1f3a 100%);
  color: var(--white);
  margin-top: calc(-1 * var(--header-h));
  padding-block: calc(var(--header-h) + clamp(4.5rem, 12vh, 8rem)) clamp(5rem, 14vw, 9rem);
}

.hero-waves {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-waves svg {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 200%;
  height: 62%;
}

.hero-waves .hw-1 {
  animation: drift 22s ease-in-out infinite alternate;
}

.hero-waves .hw-2 {
  animation: drift 30s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
  from {
    transform: translateX(-4%);
  }
  to {
    transform: translateX(0);
  }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.hero-inner .eyebrow-light {
  color: #9fc4ff;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(1.9rem, 5vw, 3.15rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  max-width: 22ch;
}

.hero-sub {
  color: #c9d8ee;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  max-width: 56ch;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Photo slot in the hero (filled by the Website editor). Empty until the admin
   uploads an image, so the default hero is unchanged. */
.hero-image {
  display: none;
  margin: 0 0 2rem;
}
.hero-image.has-image {
  display: block;
}
.hero-image img {
  display: block;
  max-width: 100%;
  max-height: 380px;
  width: auto;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(11, 31, 58, 0.35);
}

.wave-divider {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 2;
  line-height: 0;
  pointer-events: none;
}

.wave-divider svg {
  width: 100%;
  height: clamp(36px, 6vw, 80px);
}

.wave-divider-top {
  bottom: auto;
  top: -1px;
}

.wave-divider-top svg {
  transform: scaleY(-1);
}

/* ---------- Cards and grids ---------- */

.grid {
  display: grid;
  gap: 1.25rem;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-auto {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.grid-2-col {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.6rem;
}

.card-tilt {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Welcome / split section ---------- */

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.welcome-image {
  width: 100%;
  aspect-ratio: 480 / 540;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.depth-visual {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.depth-visual .bubble {
  animation: bubbleUp 4.5s ease-in-out infinite;
}

.depth-visual .b2 {
  animation-delay: 1.4s;
}

.depth-visual .b3 {
  animation-delay: 2.6s;
}

@keyframes bubbleUp {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  20% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(-70px);
    opacity: 0;
  }
}

/* ---------- Pull quote ---------- */

.pull-quote {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 4vw, 2.3rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy);
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  max-width: 900px;
  text-align: center;
}

.pull-quote .quote-mark {
  display: block;
  font-size: 2.6rem;
  line-height: 0;
  color: var(--blue);
  margin-bottom: 0.75rem;
}

.pull-quote-band {
  padding-block: clamp(4rem, 9vw, 6.5rem);
}

.quote-source {
  display: block;
  margin-top: 1.25rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}

/* ---------- Guiding principles ---------- */

.principle-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.principle-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--blue-tint);
  color: var(--link);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
}

.principle-card h3 {
  font-size: 1.05rem;
  margin: 0;
}

.principle-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

/* ---------- Numbered editorial list ---------- */

.editorial-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: editorial;
}

.editorial-list li {
  counter-increment: editorial;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--border);
}

.editorial-list li:last-child {
  border-bottom: 1px solid var(--border);
}

.editorial-list li::before {
  content: counter(editorial, decimal-leading-zero);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--blue);
  padding-top: 0.15rem;
}

.editorial-list h3 {
  font-size: 1.08rem;
  margin: 0 0 0.35rem;
}

.editorial-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

/* ---------- Closing band ---------- */

.band {
  position: relative;
  background: linear-gradient(160deg, var(--navy) 0%, #123052 60%, var(--navy) 100%);
  color: var(--white);
  text-align: center;
  padding-block: clamp(4rem, 9vw, 6.5rem);
}

.band h2,
.band h3 {
  color: var(--white);
}

.band p {
  color: #c9d8ee;
  max-width: 620px;
  margin-inline: auto;
}

.band-phone {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 1.5rem 0 0;
}

.band-phone a {
  color: var(--white);
}

.band-phone a:hover {
  color: #9fc4ff;
}

/* ---------- About page ---------- */

.chapter {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-block: clamp(2.5rem, 6vw, 4rem);
  border-top: 1px solid var(--border);
}

.chapter:first-of-type {
  border-top: 0;
}

.chapter-kicker {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  padding-top: 0.35rem;
}

.chapter h2 {
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.chapter p {
  color: var(--muted);
  max-width: 680px;
}

.role-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.3rem;
  box-shadow: var(--shadow);
}

.role-card h3 {
  font-size: 1rem;
  margin: 0;
}

.role-card .role-label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.5rem;
}

.check-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  box-shadow: var(--shadow);
}

.check-item svg {
  flex: none;
  margin-top: 0.2rem;
}

.check-item p {
  margin: 0;
  font-size: 0.97rem;
}

/* ---------- Commentaries page ---------- */

.commentary-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.commentary-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), #7ab3ff);
}

.commentary-card h3 {
  font-size: 1.15rem;
  margin: 0;
}

.commentary-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
  flex: 1;
}

.coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--blue-tint);
  border: 1px dashed var(--blue);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
}

.coming-soon .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

.coming-note {
  text-align: center;
  color: var(--muted);
  max-width: 560px;
  margin: 2.5rem auto 0;
}

/* ---------- Legal pages ---------- */

.legal-article {
  max-width: 720px;
}

.legal-article h2 {
  font-size: 1.35rem;
  margin-top: 2.4rem;
}

.legal-article ul {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
  color: var(--muted);
}

.legal-article ul li {
  margin-bottom: 0.5rem;
}

/* ---------- Commentaries: detail + live cards ---------- */

.meta-line {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.4rem;
}

.read-more {
  align-self: flex-start;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--link);
  margin-top: 0.4rem;
}

.read-more::after {
  content: " \2192";
  transition: transform 0.2s ease;
  display: inline-block;
}

.read-more:hover::after {
  transform: translateX(3px);
}

.commentary-single {
  margin-top: calc(-1 * var(--header-h));
  padding-top: var(--header-h);
}

.commentary-single .container {
  max-width: 760px;
}

.breadcrumb {
  margin-bottom: 1.5rem;
}

.back-link {
  font-weight: 600;
}

.commentary-head {
  margin-bottom: 2.5rem;
}

.commentary-title {
  font-size: clamp(1.7rem, 4.5vw, 2.6rem);
  margin: 0 0 1rem;
  line-height: 1.15;
}

.commentary-excerpt {
  color: var(--muted);
  font-size: 1.12rem;
  margin: 0;
}

.prose {
  color: var(--text);
}

.commentary-download {
  margin: 0 0 1.8rem;
}

.prose p {
  margin: 0 0 1.4rem;
  font-size: 1.07rem;
  line-height: 1.75;
}

.prose h1,
.prose h2,
.prose h3 {
  line-height: 1.3;
  margin: 2.4rem 0 1rem;
}

.prose h2 {
  font-size: 1.45rem;
}

.prose h3 {
  font-size: 1.2rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1.4rem;
  padding-left: 1.3rem;
  color: var(--text);
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose blockquote {
  margin: 0 0 1.4rem;
  border-left: 4px solid var(--blue);
  padding: 0.5rem 0 0.5rem 1.2rem;
  background: var(--blue-tint);
  color: var(--text);
}

.prose blockquote p {
  margin: 0;
}

.prose code {
  background: var(--blue-tint);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  font-size: 0.92em;
}

.commentary-end {
  text-align: center;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

/* ---------- Contact page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.field {
  margin-bottom: 1.25rem;
}

.field label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: var(--text);
}

.field .req {
  color: var(--link);
}

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

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

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(61, 141, 255, 0.15);
}

.field.is-invalid input,
.field.is-invalid textarea {
  border-color: var(--error);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.field-error {
  display: none;
  color: var(--error);
  font-size: 0.85rem;
  margin: 0.35rem 0 0;
}

.field.is-invalid .field-error {
  display: block;
}

.form-error {
  color: var(--error);
  font-size: 0.9rem;
  margin: 0.25rem 0 1rem;
  min-height: 1.2em;
}

.form-success {
  background: var(--blue-tint);
  border: 1px solid #cfe2ff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}

.form-success h2 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.form-success p {
  margin: 0;
  color: var(--muted);
}

.sidebar-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.sidebar-card h2 {
  color: var(--white);
  font-size: 1.25rem;
}

.sidebar-card p {
  color: #c9d8ee;
}

.sidebar-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.sidebar-list li {
  padding: 0.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-list li:first-child {
  border-top: 0;
}

.sidebar-list a {
  color: var(--white);
  font-weight: 500;
}

.sidebar-list a:hover {
  color: #9fc4ff;
}

.sidebar-list .label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9fc4ff;
  margin-bottom: 0.2rem;
}

.privacy-note {
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1rem;
  margin-top: 1rem;
}

.privacy-note p {
  margin: 0;
  font-size: 0.85rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: #c9d8ee;
  padding-block: 3.5rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer-block h2 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9fc4ff;
  margin-bottom: 1rem;
}

.footer-block ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-block li {
  margin-bottom: 0.5rem;
}

.footer-block a {
  color: #c9d8ee;
}

.footer-block a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.footer-bottom p {
  margin: 0;
}

/* ---------- Motion layer ---------- */

html.js-anim [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s var(--ease-punch), transform 0.6s var(--ease-punch);
  transition-delay: var(--delay, 0ms);
}

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

.splash {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  cursor: pointer;
}

.splash.is-active {
  opacity: 1;
  pointer-events: auto;
}

.splash-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.splash-logo {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 0.15em;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(3rem, 12vw, 5.5rem);
  color: var(--white);
  letter-spacing: 0.06em;
}

.splash-letter {
  display: inline-block;
  opacity: 0;
  animation: letterRise 0.7s var(--ease-punch) forwards;
}

.splash-letter:nth-child(1) {
  animation-delay: 0.1s;
}

.splash-letter:nth-child(2) {
  animation-delay: 0.19s;
}

.splash-letter:nth-child(3) {
  animation-delay: 0.28s;
}

.splash-letter:nth-child(4) {
  animation-delay: 0.37s;
}

@keyframes letterRise {
  0% {
    opacity: 0;
    transform: translateY(46px) scale(0.8);
  }
  60% {
    opacity: 1;
    transform: translateY(-6px) scale(1.05);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

.splash-ripple {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 60px;
  height: 60px;
  margin: -30px 0 0 -30px;
  border: 3px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  opacity: 0;
  animation: ripple 1.2s ease-out forwards;
  animation-delay: 0.55s;
}

@keyframes ripple {
  0% {
    opacity: 0.9;
    transform: scale(0.3);
  }
  100% {
    opacity: 0;
    transform: scale(4);
  }
}

.splash-line {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 90px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  border-radius: 2px;
  opacity: 0;
  animation: speedline 0.9s ease-out forwards;
  animation-delay: 0.55s;
  transform-origin: center;
}

.speedline-1 {
  transform: rotate(0deg) translateX(0);
}

.speedline-2 {
  transform: rotate(90deg);
}

.speedline-3 {
  transform: rotate(45deg);
}

.speedline-4 {
  transform: rotate(135deg);
}

@keyframes speedline {
  0% {
    opacity: 0.8;
    transform: scale(0.3);
  }
  100% {
    opacity: 0;
    transform: scale(2.4);
  }
}

.splash.is-exiting {
  transition: transform 0.5s ease-in, opacity 0.5s ease-in;
  transform: translateY(-100%);
  opacity: 0;
}

.splash.is-done {
  display: none;
}

/* Custom cursor */

.custom-cursor {
  display: none;
}

html.has-cursor .custom-cursor {
  display: block;
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 500;
  border-radius: 50%;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--blue);
}

.cursor-ring {
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 1.5px solid rgba(61, 141, 255, 0.55);
  transition: width 0.25s ease, height 0.25s ease, margin 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.cursor-ring.is-hover {
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  background: rgba(61, 141, 255, 0.12);
  border-color: var(--blue);
}

.cursor-bubble {
  position: fixed;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(61, 141, 255, 0.5);
  pointer-events: none;
  z-index: 499;
  animation: bubbleFloat 1.8s ease-out forwards;
}

@keyframes bubbleFloat {
  0% {
    opacity: 0.7;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-46px) scale(0.4);
  }
}

@media (pointer: coarse) {
  .custom-cursor,
  .cursor-dot,
  .cursor-ring,
  .cursor-bubble {
    display: none !important;
  }
}

/* ---------- Reduced motion and motion switch ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .splash {
    display: none;
  }

  .hero-waves .hw-1,
  .hero-waves .hw-2 {
    animation: none;
  }

  .depth-visual .bubble {
    animation: none;
  }

  .coming-soon .dot {
    animation: none;
  }

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

html.motion-off .splash {
  display: none;
}

html.motion-off .hero-waves .hw-1,
html.motion-off .hero-waves .hw-2 {
  animation: none;
}

html.motion-off .depth-visual .bubble {
  animation: none;
}

html.motion-off .coming-soon .dot {
  animation: none;
}

html.motion-off [data-reveal] {
  opacity: 1;
  transform: none;
  transition: none;
}

html.motion-off .custom-cursor,
html.motion-off .cursor-dot,
html.motion-off .cursor-ring,
html.motion-off .cursor-bubble {
  display: none !important;
}

/* ---------- View transitions ---------- */
@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.35s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

::view-transition-old(root) {
  animation-name: -ua-view-transition-fade-out, slide-out;
}

::view-transition-new(root) {
  animation-name: -ua-view-transition-fade-in, slide-in;
}

@keyframes slide-out {
  from { transform: translateY(0); }
  to   { transform: translateY(-40px); opacity: 0; }
}
@keyframes slide-in {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), #7ab3ff);
  z-index: 9999;
  transform-origin: left;
  transform: scaleX(0);
  will-change: transform;
  pointer-events: none;
}

/* ---------- Enhanced link underlines (animating gradient) ---------- */
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), #7ab3ff);
  border-radius: 2px;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link[aria-current="page"]::after {
  width: 100%;
}

/* ---------- Button press / click ripple ---------- */
.btn:active {
  transform: scale(0.97);
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--click-x, 50%) var(--click-y, 50%), rgba(255,255,255,0.45), transparent 60%);
  opacity: var(--ripple-opacity, 0);
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .chapter {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .chapter-kicker {
    padding-top: 0;
  }
}

@media (max-width: 700px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .grid-3,
  .grid-2-col {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

/* ---------- Services page ---------- */

.service-card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
}

.service-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--blue);
  margin-bottom: 1rem;
}

.service-card h3 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--navy);
}

.service-card p {
  color: var(--ink);
  line-height: 1.6;
  flex: 1;
}

/* ---------- Incident Reports page ---------- */

.prose {
  max-width: 800px;
}

.prose p {
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.incident-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.75rem;
}

.incident-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  line-height: 1.6;
}

.incident-list li::before {
  content: '\2022';
  color: var(--blue);
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.pull-quote {
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--navy);
  margin: 0 auto 2rem;
  max-width: 900px;
  text-align: center;
  padding: 0 1.5rem;
  position: relative;
}

.pull-quote .quote-mark {
  font-size: 3rem;
  color: var(--blue);
  line-height: 1;
  margin-right: 0.5rem;
  vertical-align: top;
}

.fatality-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.stat-card {
  padding: 2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.stat-number {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-percent {
  font-size: 0.65em;
  color: var(--muted);
  font-weight: 400;
}

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

.incident-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
}

.incident-card {
  padding: 1.5rem;
}

.incident-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.incident-date {
  font-weight: 600;
}

.incident-card h3 {
  font-family: var(--font-head);
  font-size: 1.125rem;
  color: var(--navy);
  margin-bottom: 1rem;
}

.incident-details {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1rem;
  font-size: 0.875rem;
}

.incident-details dt {
  color: var(--muted);
  font-weight: 500;
}

.incident-details dd {
  margin: 0;
  color: var(--ink);
}

.incident-details dd:empty {
  display: none;
}

@media (max-width: 700px) {
  .incident-list {
    grid-template-columns: 1fr;
  }

  .fatality-stats {
    grid-template-columns: 1fr;
  }

  .incident-grid {
    grid-template-columns: 1fr;
  }
}
