/* This block deliberately keeps its own local variable names/values rather than pointing at
   theme-tokens.css's --color-*/--radius-* set — see that file's header for why. Known drift vs.
   the design-system tokens, left as-is pending a design decision:
     --brand-cyan (#2fc7cc) and --brand-teal (#42d4d7) are swapped vs. design-system's canonical
       naming, where #2FC7CC is "teal" and #42D4D7 is "cyan" (see colors.json). Values are correct,
       only the two names are crossed — renaming risks a visual regression if any call site got the
       swap right by accident, so left alone until someone can eyeball a full re-render.
     --radius-lg (24px) has no matching token — spacing.json's radius.lg is 12px. Do not repoint
       this at --radius-lg-sd from theme-tokens.css without shrinking every card's corners.
     --surface's alpha and --shadow-soft are bespoke glass-morphism values with no direct token. */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --border: #e2e8f0;
  --border-strong: #cfdbe4;
  --text: #0d1321;
  --muted: #64748b;
  --brand-navy: #001d63;
  --brand-cyan: #2fc7cc;
  --brand-teal: #42d4d7;
  --shadow-soft: 0 16px 40px rgba(13, 19, 33, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 6.5rem;
}

body {
  margin: 0;
  font-family: "Montserrat", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(47, 199, 204, 0.10), transparent 22rem),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: var(--text);
}

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

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

h1,
h2,
h3,
p,
ul,
figure {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
  text-align: left;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(226, 235, 240, 0.9);
}

.header-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 84px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1.25rem;
  margin-left: auto;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.text-link:hover,
.text-link:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--brand-cyan);
}

.hero {
  padding: 3.25rem 0 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  width: min(100%, 48rem);
  height: auto;
}

.hero-copy h1,
.section-heading h2,
.contact-copy h2 {
  font-size: clamp(2.2rem, 4vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
  max-width: 14ch;
}

.section-heading h2,
.contact-copy h2 {
  font-size: clamp(1.9rem, 3vw, 3rem);
  max-width: 22ch;
}

.hero-lead,
.section-heading p,
.feature-card p,
.contact-copy p,
.project-copy p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.8;
}

.hero-lead {
  margin-top: 1rem;
  max-width: 36ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.3rem;
  padding: 0 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible,
.contact-card:hover,
.contact-card:focus-visible,
.project-card:hover,
.project-card:focus-within,
.feature-card:hover,
.feature-card:focus-within {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--brand-cyan), var(--brand-teal));
  color: var(--surface-strong);
  box-shadow: 0 16px 30px rgba(47, 199, 204, 0.28);
}

.button-secondary {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.78);
  color: var(--brand-navy);
}

.section {
  padding: 3rem 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(238, 251, 252, 0.55), rgba(248, 250, 252, 0.92));
}

.eyebrow {
  margin-bottom: 0.9rem;
  color: var(--brand-cyan);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-heading {
  max-width: 42rem;
}

.section-heading p {
  margin-top: 1rem;
}

.story-layout,
.project-grid,
.contact-grid {
  display: grid;
  gap: 2rem;
}

.story-layout {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  align-items: start;
  margin-top: 1.5rem;
}

.story-copy {
  max-width: 40rem;
}

.section-heading-compact p+p {
  margin-top: 0.9rem;
}

.check-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.4rem;
  color: var(--muted);
}

.check-list li {
  position: relative;
  padding-left: 1.7rem;
  line-height: 1.7;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-cyan), var(--brand-teal));
}

.story-figure,
.contact-visual {
  position: relative;
}

.story-figure::before,
.contact-visual::before {
  content: "";
  position: absolute;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 199, 204, 0.16), rgba(47, 199, 204, 0));
  filter: blur(10px);
  z-index: -1;
}

.story-figure::before {
  right: 10%;
  top: 10%;
}

.contact-visual::before {
  left: 18%;
  top: 12%;
}

.section-mascot {
  width: min(100%, 42rem);
  margin-left: 0;
}

.card-grid,
.contact-list {
  display: grid;
  gap: 1rem;
}

.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2rem;
}

.feature-card,
.project-card,
.contact-card {
  border: 1px solid rgba(226, 235, 240, 0.96);
  background: var(--surface);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius-lg);
}

.feature-card {
  position: relative;
  padding: 1.5rem;
  padding-top: 6.8rem;
}

.feature-card h3,
.project-copy h3 {
  margin: 0 0 0.85rem;
  font-size: 1.45rem;
  color: var(--brand-navy);
  letter-spacing: -0.04em;
}

.feature-card p {
  max-width: 28ch;
}

.feature-mascot {
  position: absolute;
  top: -1.75rem;
  right: 0.75rem;
  width: 8.75rem;
  filter: drop-shadow(0 16px 20px rgba(13, 19, 33, 0.10));
  pointer-events: none;
}

.feature-mascot-blue {
  width: 8.4rem;
}

.feature-mascot-purple {
  width: 8.9rem;
  right: 0.55rem;
}

.feature-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.feature-list li {
  position: relative;
  padding-left: 1.1rem;
  line-height: 1.6;
  color: var(--muted);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--brand-cyan);
}

.project-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 2rem;
}

.project-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.project-shot {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(238, 251, 252, 0.9), rgba(255, 255, 255, 0.96));
}

.project-copy {
  padding: 1.5rem;
}

.project-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 2rem;
  padding: 0 0.8rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-navy);
  background: rgba(47, 199, 204, 0.14);
}

.project-links {
  margin-top: 1rem;
}

.text-link {
  color: var(--brand-cyan);
  font-weight: 700;
}

.contact-grid {
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
}

.contact-list {
  margin-top: 1.8rem;
}

.contact-card {
  display: block;
  padding: 1rem 1.15rem;
}

.contact-card strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--brand-navy);
  font-weight: 700;
}

.contact-card span,
.site-footer {
  color: var(--muted);
}

.contact-card span {
  display: block;
  font-size: 0.94rem;
  margin-top: 0.3rem;
}

.contact-mascot {
  width: min(100%, 20rem);
  margin: 0;
  filter: drop-shadow(0 18px 26px rgba(13, 19, 33, 0.10));
}

.site-footer {
  padding: 1.4rem 0 2.5rem;
  font-size: 0.9rem;
}

.footer-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.5rem;
}

.site-footer a {
  color: var(--brand-navy);
  font-weight: 700;
}

@media (max-width: 1080px) {

  .story-layout,
  .project-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-copy h1,
  .section-heading h2,
  .contact-copy h2 {
    max-width: 100%;
  }
}

@media (max-width: 760px) {

  .header-row,
  .footer-row {
    grid-template-columns: 1fr;
    justify-content: flex-end;
    align-items: start;
  }

  .site-header {
    position: static;
  }

  .header-row {
    padding: 1rem 0;
  }

  .site-nav {
    justify-content: flex-end;
  }

  .hero {
    padding-top: 2.6rem;
  }

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

  .feature-card {
    padding-top: 1.4rem;
  }

  .feature-mascot {
    position: static;
    width: min(9rem, 100%);
    margin: 0 0 1rem auto;
  }

  .feature-card p {
    max-width: 100%;
  }

  .brand-logo {
    width: min(100%, 18rem);
  }
}