:root {
  --ink: #10344a;
  --ink-soft: #3d617a;
  --blue-deep: #0e2f43;
  --blue: #1f8eb8;
  --blue-dark: #12719a;
  --cyan: #27b8d7;
  --sky: #38d2ef;
  --blue-pale: #cfe8f2;
  --blue-faint: #e4f2f8;
  --blue-tint: #f0f8fb;
  --tint-1: #eaf5fa;
  --tint-2: #dbecf5;
  --tint-3: #c9e3f0;
  --white: #ffffff;
  --line: #d7eaf3;
  --line-strong: #b5d9e8;
  --deco: #9ccbe2;
  --deco-strong: #6fb3d4;
  --header-height: 76px;
  --font-display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: min(1160px, calc(100% - 48px));
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

::selection {
  background: var(--blue-pale);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: -0.015em;
}

/* ---------- Shared animations ---------- */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

@keyframes march {
  to {
    background-position-x: 22px;
  }
}

@keyframes cue-drop {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  78% {
    opacity: 1;
  }
  100% {
    transform: translateY(34px);
    opacity: 0;
  }
}

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(-160%);
  background: var(--blue-deep);
  color: var(--white);
  padding: 10px 14px;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-height);
  background: var(--white);
  border-bottom: 2px solid var(--line);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  transition: background 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.site-header.is-scrolled {
  background: var(--white);
  border-bottom-color: var(--line-strong);
  box-shadow: 0 12px 34px rgba(14, 47, 67, 0.08);
}

.nav {
  width: var(--container);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* brand plate: sharp, with a clipped corner */
.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  background: transparent;
  padding: 0;
}

.brand img {
  width: clamp(190px, 22vw, 240px);
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  position: relative;
  color: var(--ink-soft);
  font-size: 0.93rem;
  font-weight: 600;
  padding: 8px 2px;
  transition: color 160ms ease;
}

/* icons only appear in the mobile dock */
.nav-links a svg {
  display: none;
  width: 21px;
  height: 21px;
}

/* underline that draws itself in */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms var(--ease-out);
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.is-active {
  color: var(--blue-deep);
  outline: none;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
}

.nav-links a.nav-cta {
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  padding: 10px 20px;
  box-shadow: 4px 4px 0 var(--blue-pale);
  transition: background 180ms ease, box-shadow 180ms var(--ease-out), transform 180ms var(--ease-out);
}

.nav-links a.nav-cta::after {
  display: none;
}

.nav-links a.nav-cta:hover,
.nav-links a.nav-cta:focus-visible {
  background: var(--blue-dark);
  color: var(--white);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--blue-pale);
}

/* ---------- Homepage section indicator ---------- */
.section-rail {
  position: fixed;
  right: clamp(18px, 3.2vw, 52px);
  top: 50%;
  z-index: 35;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--blue-deep);
  pointer-events: none;
  transform: translateY(-50%);
}

.section-rail-line {
  position: relative;
  width: 2px;
  height: 104px;
  background: var(--line-strong);
}

.section-rail-line::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 2px var(--blue-deep);
  transform: translate(-50%, -50%);
  transition: background 220ms ease, transform 220ms var(--ease-out);
}

.section-rail-label {
  min-width: 84px;
  padding: 5px 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 3px 3px 0 var(--blue-pale);
  color: var(--blue-deep);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  transition: color 220ms ease, box-shadow 220ms var(--ease-out);
}

.section-rail[data-section="values"] .section-rail-line::after {
  background: var(--sky);
}

/* ---------- Dedicated page introductions ---------- */
.page-intro {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 420px;
  overflow: hidden;
  padding: calc(var(--header-height) + 74px) 0 74px;
  background: var(--blue-deep);
  color: var(--white);
}

.page-intro::before,
.page-intro::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.page-intro::before {
  right: max(6vw, 52px);
  top: 56px;
  width: min(30vw, 340px);
  aspect-ratio: 1;
  border: 2px dashed rgba(156, 203, 226, 0.62);
  border-radius: 50%;
  animation: spin 70s linear infinite;
}

.page-intro::after {
  left: 0;
  bottom: 0;
  width: min(35vw, 440px);
  height: 64px;
  background: repeating-linear-gradient(90deg, rgba(39, 184, 215, 0.55) 0 2px, transparent 2px 38px);
}

.page-intro-grid {
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: 0;
  width: min(46vw, 650px);
  height: 100%;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(156, 203, 226, 0.38) 1px, transparent 1px),
    linear-gradient(90deg, rgba(156, 203, 226, 0.38) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, transparent, black 40%);
}

.page-intro-content {
  position: relative;
}

.page-intro .eyebrow {
  color: var(--sky);
}

.page-intro h1 {
  max-width: 720px;
  margin: 12px 0 0;
  font-size: clamp(2.45rem, 5.4vw, 4.7rem);
  line-height: 1.1;
}

.page-intro h1 span {
  color: var(--cyan);
}

.page-intro p:not(.eyebrow) {
  max-width: 570px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
}

.positions-intro {
  background: linear-gradient(116deg, var(--blue-deep), #15516e);
}

.contact-intro {
  min-height: 370px;
  background: linear-gradient(116deg, #123f58, var(--blue));
}

.page-jobs {
  min-height: 420px;
}

.page-contact {
  border-top: 0;
}

/* ---------- Shared line ornaments ---------- */
.deco-plus {
  position: absolute;
  width: 22px;
  height: 22px;
  animation: bob 5s ease-in-out infinite;
}

.deco-plus::before,
.deco-plus::after {
  content: "";
  position: absolute;
  background: var(--deco-strong);
}

.deco-plus::before {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
}

.deco-plus::after {
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  transform: translateY(-50%);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--white);
  border-bottom: 2px solid var(--line);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* concentric outlined circles, top right — dashed ring slowly rotates */
.deco-rings {
  position: absolute;
  right: -14vw;
  top: -16vh;
  width: min(58vw, 720px);
  height: min(58vw, 720px);
  border: 2px solid var(--deco);
  border-radius: 50%;
}

.deco-rings::before,
.deco-rings::after {
  content: "";
  position: absolute;
  inset: 12%;
  border: 2px solid var(--deco);
  border-radius: 50%;
}

.deco-rings::after {
  inset: 26%;
  border-color: var(--deco-strong);
  border-style: dashed;
  animation: spin 80s linear infinite;
}

/* fine square grid, lower left of hero */
.deco-grid {
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(46vw, 520px);
  height: min(34vh, 320px);
  background:
    repeating-linear-gradient(90deg, var(--blue-pale) 0 1.5px, transparent 1.5px 56px),
    repeating-linear-gradient(0deg, var(--blue-pale) 0 1.5px, transparent 1.5px 56px);
  border-top: 1.5px solid var(--blue-pale);
  border-right: 1.5px solid var(--blue-pale);
}

.deco-plus-a {
  right: 18%;
  top: 24%;
}

.deco-plus-b {
  right: 8%;
  bottom: 30%;
  animation-delay: 1.4s;
}

.deco-plus-c {
  left: 12%;
  top: 22%;
  animation-delay: 2.6s;
}

/* diagonal hatch lines that march sideways */
.deco-slashes {
  position: absolute;
  right: 24%;
  bottom: 14%;
  width: 120px;
  height: 64px;
  background: repeating-linear-gradient(
    -55deg,
    var(--deco-strong) 0 2.5px,
    transparent 2.5px 14px
  );
  animation: march 2.4s linear infinite;
}

/* corner frame brackets around the hero viewport */
.deco-corner {
  position: absolute;
  width: 58px;
  height: 58px;
}

.deco-corner-tl {
  left: 22px;
  top: calc(var(--header-height) + 22px);
  border-top: 3px solid var(--deco-strong);
  border-left: 3px solid var(--deco-strong);
}

.deco-corner-br {
  right: 22px;
  bottom: 22px;
  border-bottom: 3px solid var(--deco-strong);
  border-right: 3px solid var(--deco-strong);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: var(--container);
  margin: calc(var(--header-height) + 24px) auto 80px;
}

.eyebrow {
  position: relative;
  margin: 0 0 18px;
  padding-left: 46px;
  color: var(--blue-dark);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 34px;
  height: 2px;
  background: var(--cyan);
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  color: var(--blue-deep);
  font-size: clamp(2.6rem, 6.2vw, 4.5rem);
  line-height: 1.05;
  font-weight: 800;
}

.hero h1 .accent {
  color: var(--blue);
  box-shadow: inset 0 -0.22em 0 var(--blue-faint);
}

.hero-copy {
  max-width: 600px;
  margin: 26px 0 0;
  color: var(--ink-soft);
  font-size: 1.16rem;
  line-height: 1.6;
}

/* scroll cue: vertical rail with a falling square */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 1;
  transform: translateX(-50%);
  width: 22px;
  height: 54px;
  display: grid;
  justify-content: center;
}

.scroll-cue::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: var(--deco);
}

.scroll-cue span {
  position: relative;
  width: 8px;
  height: 8px;
  background: var(--blue);
  animation: cue-drop 1.9s ease-in-out infinite;
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  border: 2px solid transparent;
  padding: 12px 26px;
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out),
    background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button:active {
  transform: translate(0, 0);
}

.button-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 6px 6px 0 var(--blue-pale);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--blue-dark);
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--blue-pale);
  outline: none;
}

.button-primary:active {
  box-shadow: 3px 3px 0 var(--blue-pale);
}

.button-primary svg {
  transition: transform 180ms var(--ease-out);
}

.button-primary:hover svg {
  transform: translateX(3px);
}

.button-secondary {
  background: var(--white);
  color: var(--blue-deep);
  border-color: var(--blue-deep);
  box-shadow: 6px 6px 0 var(--tint-2);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: var(--blue-tint);
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--tint-2);
  outline: none;
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding: 108px 0;
}

.section-inner {
  position: relative;
  width: var(--container);
  margin: 0 auto;
}

.section-heading {
  position: relative;
  max-width: 720px;
  margin-bottom: 52px;
}

.section-heading h2,
.contact-copy h2,
.about-copy h2 {
  margin: 0;
  color: var(--blue-deep);
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  line-height: 1.14;
  font-weight: 800;
}

/* rule under each heading draws itself in when revealed */
.section-heading::after {
  content: "";
  display: block;
  margin-top: 22px;
  height: 3px;
  max-width: 340px;
  background: var(--deco);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 900ms var(--ease-out) 250ms;
}

.section-heading:has(.is-visible)::after {
  transform: scaleX(1);
}

.accent-underline {
  box-shadow: inset 0 -0.24em 0 var(--blue-faint);
}

/* ---------- About ---------- */
.about {
  background: var(--tint-1);
  border-bottom: 2px solid var(--line);
}

.about .section-inner::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--deco);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 64px;
  align-items: center;
}

.about-copy p:not(.eyebrow) {
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 540px;
}

.about-copy h2 {
  margin-top: 4px;
}

.about-panel {
  position: relative;
  margin: 0;
}

/* offset outline frame behind the card */
.about-panel::before {
  content: "";
  position: absolute;
  inset: 22px -18px -18px 22px;
  border: 2px solid var(--deco);
}

/* corner tick on the frame */
.about-panel::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 44px;
  height: 44px;
  border-right: 4px solid var(--cyan);
  border-bottom: 4px solid var(--cyan);
}

.about-panel img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  border: 2px solid var(--blue-deep);
  box-shadow: 10px 10px 0 var(--tint-3);
}

/* ---------- Values ---------- */
.values {
  background: var(--tint-2);
  border-bottom: 2px solid var(--line);
}

/* dotted rhythm line that marches across the top */
.values::before {
  content: "";
  position: absolute;
  inset: 34px 0 auto;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--deco-strong) 0 10px,
    transparent 10px 22px
  );
  animation: march 3s linear infinite;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
}

.value-card {
  position: relative;
  background: var(--white);
  border: 1.5px solid var(--line-strong);
  padding: 36px 28px 32px;
  transition: transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out);
}

/* corner brackets that grow on hover */
.value-card::before,
.value-card::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  transition: width 240ms var(--ease-out), height 240ms var(--ease-out);
}

.value-card::before {
  left: -1.5px;
  top: -1.5px;
  border-top: 4px solid var(--cyan);
  border-left: 4px solid var(--cyan);
}

.value-card::after {
  right: -1.5px;
  bottom: -1.5px;
  border-bottom: 4px solid var(--cyan);
  border-right: 4px solid var(--cyan);
}

.value-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 8px 8px 0 var(--deco);
}

.value-card:hover::before,
.value-card:hover::after {
  width: 52px;
  height: 52px;
}

/* pillar index: bold blue, right-aligned, hard offset shadow + skewed tick */
.pillar-num {
  position: absolute;
  right: 18px;
  top: 16px;
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--blue);
  text-shadow: 4px 4px 0 var(--blue-pale);
  transition: color 240ms ease, text-shadow 240ms var(--ease-out);
  pointer-events: none;
}

.pillar-num::after {
  content: "";
  position: absolute;
  right: 2px;
  bottom: -9px;
  width: 32px;
  height: 3px;
  background: var(--cyan);
  transform: skewX(-30deg);
}

.value-card:hover .pillar-num {
  color: var(--blue-dark);
  text-shadow: 2px 2px 0 var(--blue-pale);
}

/* diamond icon plate */
.value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  margin: 6px 0 0 6px;
  background: var(--blue-tint);
  border: 2px solid var(--blue-dark);
  color: var(--blue-dark);
  transform: rotate(45deg);
  transition: transform 300ms var(--ease-out), background 240ms ease;
}

.value-icon svg {
  width: 24px;
  height: 24px;
  transform: rotate(-45deg);
  transition: transform 300ms var(--ease-out);
}

.value-card:hover .value-icon {
  transform: rotate(225deg);
  background: var(--blue-faint);
}

.value-card:hover .value-icon svg {
  transform: rotate(-225deg);
}

.value-card h3 {
  margin: 26px 0 8px;
  color: var(--blue-deep);
  font-size: 1.22rem;
}

.value-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* ---------- Open positions ---------- */
.jobs-section {
  background: var(--tint-1);
  border-top: 2px solid var(--line);
  overflow: hidden;
}

/* dotted rhythm line, mirroring the values section */
.jobs-section::before {
  content: "";
  position: absolute;
  inset: 34px 0 auto;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--deco-strong) 0 10px,
    transparent 10px 22px
  );
  animation: march 3s linear infinite;
}

.job-list {
  display: grid;
  gap: 16px;
}

.job-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border: 2px solid var(--blue-deep);
  background: var(--white);
  padding: 24px 26px 24px 30px;
  box-shadow: 6px 6px 0 var(--tint-2);
  transition: transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out);
}

.job-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--blue-pale);
  transition: background 240ms ease;
}

.job-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--tint-3);
}

.job-card:hover::before {
  background: var(--cyan);
}

.job-card-info {
  min-width: 0;
}

.job-card h3 {
  margin: 0;
  color: var(--blue-deep);
  font-size: 1.2rem;
}

.job-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 6px 0 0;
  color: var(--blue-dark);
  font-size: 0.85rem;
  font-weight: 600;
}

/* diamond separators between meta parts */
.job-card-meta i {
  width: 6px;
  height: 6px;
  background: var(--deco-strong);
  transform: rotate(45deg);
}

.job-card-desc {
  margin: 10px 0 0;
  max-width: 640px;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.job-card .button {
  flex: 0 0 auto;
}

.job-application-pending {
  flex: 0 0 auto;
  border: 1.5px dashed var(--deco-strong);
  color: var(--ink-soft);
  padding: 9px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
}

.job-empty {
  border: 2px dashed var(--deco-strong);
  background: var(--white);
  padding: 34px 30px;
  text-align: center;
}

.job-empty p {
  margin: 0 auto 20px;
  max-width: 480px;
  color: var(--ink-soft);
  font-size: 1.04rem;
}

/* ---------- Contact ---------- */
.contact-section {
  background: var(--tint-3);
  border-top: 2px solid var(--line-strong);
  overflow: hidden;
}

.contact-section::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: min(38vw, 420px);
  height: 260px;
  background:
    repeating-linear-gradient(90deg, var(--deco) 0 1.5px, transparent 1.5px 48px),
    repeating-linear-gradient(0deg, var(--deco) 0 1.5px, transparent 1.5px 48px);
  border-bottom: 1.5px solid var(--deco);
  border-right: 1.5px solid var(--deco);
  pointer-events: none;
}

.contact-section::after {
  content: "";
  position: absolute;
  right: -110px;
  bottom: -110px;
  width: 300px;
  height: 300px;
  border: 2px dashed var(--deco-strong);
  border-radius: 50%;
  pointer-events: none;
  animation: spin 70s linear infinite;
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(400px, 1fr);
  gap: 64px;
  align-items: start;
}

.contact-copy h2 {
  color: var(--blue-deep);
}

.contact-copy > p:not(.eyebrow) {
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 460px;
}

.contact-channels {
  display: grid;
  gap: 12px;
  margin-top: 30px;
  border-top: 2px solid var(--deco);
  padding-top: 24px;
  max-width: 380px;
}

.contact-channels a {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.98rem;
  width: fit-content;
  transition: color 160ms ease, transform 180ms var(--ease-out);
}

.contact-channels a svg {
  color: var(--blue);
  flex: 0 0 auto;
}

.contact-channels a:hover,
.contact-channels a:focus-visible {
  color: var(--blue-dark);
  transform: translateX(4px);
  outline: none;
}

.contact-form {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 16px;
  border: 2px solid var(--blue-deep);
  background: var(--white);
  padding: 30px;
  box-shadow: 12px 12px 0 var(--deco);
}

/* corner tick on the form */
.contact-form::before {
  content: "";
  position: absolute;
  left: -2px;
  top: -2px;
  width: 40px;
  height: 40px;
  border-top: 5px solid var(--cyan);
  border-left: 5px solid var(--cyan);
  pointer-events: none;
}

.form-row {
  display: grid;
  grid-column: 1 / -1;
  gap: 7px;
  margin-bottom: 14px;
}

.form-row-half {
  grid-column: span 1;
}

.form-row label {
  color: var(--blue-deep);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  border: 1.5px solid var(--line-strong);
  background: var(--blue-tint);
  color: var(--ink);
  padding: 12px 14px;
  outline: none;
  transition: border-color 150ms ease, box-shadow 180ms var(--ease-out), background 150ms ease;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: var(--ink-soft);
  opacity: 0.55;
}

.form-row select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%231f8eb8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

.form-row select option {
  color: var(--ink);
  background: var(--white);
}

.form-row textarea {
  resize: vertical;
  min-height: 104px;
}

.form-row input[type="file"] {
  padding: 10px;
  background: var(--white);
  border: 1.5px dashed var(--deco-strong);
  cursor: pointer;
}

.form-row input[type="file"]::file-selector-button {
  border: none;
  background: var(--blue-deep);
  color: var(--white);
  padding: 8px 14px;
  margin-right: 12px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 160ms ease;
}

.form-row input[type="file"]:hover::file-selector-button {
  background: var(--blue-dark);
}

.field-hint {
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 4px 4px 0 var(--blue-pale);
}

.form-row.has-error input,
.form-row.has-error select,
.form-row.has-error textarea {
  border-color: #cd6a6a;
  box-shadow: 4px 4px 0 rgba(205, 106, 106, 0.18);
}

.error-message {
  min-height: 17px;
  color: #a94f4f;
  font-size: 0.78rem;
  font-weight: 600;
}

.form-submit {
  width: 100%;
  grid-column: 1 / -1;
}

.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.form-status {
  grid-column: 1 / -1;
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--blue-dark);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: var(--tint-1);
  border-top: 2px solid var(--line-strong);
  color: var(--ink-soft);
  padding: 56px 0 28px;
}

/* double-rule detail at the very top of the footer */
.site-footer::before {
  content: "";
  position: absolute;
  inset: 6px 0 auto;
  height: 2px;
  background: var(--deco);
}

.footer-inner {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  gap: 36px;
}

/* giant outlined wordmark */
.footer-watermark {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 9vw, 6.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
  color: transparent;
  -webkit-text-stroke: 2px var(--deco);
  user-select: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.footer-item {
  border-left: 3px solid var(--deco);
  padding-left: 16px;
}

.footer-item span {
  display: block;
  margin-bottom: 6px;
  color: var(--blue-dark);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.footer-item a,
.footer-item p {
  margin: 0;
  color: var(--ink);
  font-size: 0.93rem;
  font-weight: 500;
  line-height: 1.5;
}

.footer-item a {
  text-decoration: underline;
  text-decoration-color: var(--deco);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: color 160ms ease;
}

.footer-item a:hover,
.footer-item a:focus-visible {
  color: var(--blue-dark);
  outline: none;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1.5px solid var(--line-strong);
  padding-top: 22px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-link {
  color: var(--ink-muted);
  font-size: 0.82rem;
  font-weight: 500;
  transition: color 160ms ease;
}

.admin-link:hover,
.admin-link:focus-visible {
  color: var(--blue-dark);
  outline: none;
}

.back-to-top {
  color: var(--blue-dark);
  font-weight: 600;
  transition: color 160ms ease, transform 180ms var(--ease-out);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  color: var(--blue);
  transform: translateY(-3px);
  outline: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about .section-inner::before {
    display: none;
  }

  .about-panel {
    max-width: 480px;
  }

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

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }

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

@media (max-width: 760px) {
  :root {
    --header-height: 68px;
    --container: min(1160px, calc(100% - 32px));
  }

  /* the header must not create a containing block (no filter/transform),
     or the fixed dock below would anchor to it instead of the viewport */
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--white);
  }

  .section-rail {
    display: none;
  }

  /* app-style bottom dock replaces the burger menu */
  .nav-links {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    background: var(--white);
    backdrop-filter: blur(14px) saturate(1.3);
    -webkit-backdrop-filter: blur(14px) saturate(1.3);
    border-top: 2px solid var(--line-strong);
    padding: 7px 6px calc(7px + env(safe-area-inset-bottom));
    box-shadow: 0 -10px 30px rgba(14, 47, 67, 0.1);
  }

  .nav-links a {
    display: grid;
    justify-items: center;
    gap: 3px;
    min-height: 52px;
    padding: 7px 2px 5px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-align: center;
  }

  .nav-links a svg {
    display: block;
  }

  /* active indicator becomes a bar across the top of the dock cell */
  .nav-links a::after {
    top: -9px;
    bottom: auto;
    height: 3px;
  }

  .nav-links a.nav-cta {
    background: transparent;
    color: var(--blue-dark);
    font-weight: 700;
    padding: 7px 2px 5px;
    box-shadow: none;
  }

  .nav-links a.nav-cta::after {
    display: block;
  }

  .nav-links a.nav-cta:hover,
  .nav-links a.nav-cta:focus-visible {
    background: transparent;
    color: var(--blue-dark);
    transform: none;
    box-shadow: none;
  }

  /* keep page content clear of the dock */
  .site-footer {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }

  .scroll-cue {
    bottom: 96px;
  }

  .deco-corner-br {
    right: 16px;
    bottom: 96px;
  }

  .deco-corner-tl {
    left: 16px;
  }

  .footer-watermark {
    -webkit-text-stroke-width: 1.5px;
  }

  .section {
    padding: 76px 0;
  }

  .hero-content {
    margin-bottom: 96px;
  }

  .page-intro {
    min-height: 390px;
    padding: calc(var(--header-height) + 62px) 0 62px;
  }

  .contact-intro {
    min-height: 340px;
  }

  .page-intro::before {
    right: -80px;
    width: 260px;
  }

  .page-intro-grid {
    width: 68vw;
  }

  .hero-copy {
    font-size: 1.06rem;
  }

  .deco-slashes {
    display: none;
  }

  /* keep the floating plus marks clear of the hero text on small screens */
  .deco-plus-a {
    right: 10%;
    top: 12%;
  }

  .deco-plus-c {
    left: 10%;
    top: 9%;
  }

  .contact-form {
    padding: 22px 18px;
  }

  .form-row-half {
    grid-column: 1 / -1;
  }

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

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

@media (max-width: 430px) {
  .about-panel::before {
    inset: 14px -10px -10px 14px;
  }

  .about-panel::after {
    right: -10px;
    bottom: -10px;
    width: 32px;
    height: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .section-heading::after {
    transform: scaleX(1);
  }
}
