:root {
  --ink: #0b1f33;
  --navy: #082943;
  --navy-soft: #103d5e;
  --blue: #1b7eb5;
  --sky: #8ed7f4;
  --cream: #faf8f1;
  --paper: #fffefa;
  --warm: #f2a65a;
  --green: #17755b;
  --line: #d3dfe2;
  --muted: #5d6d79;
  --shadow: 0 24px 70px rgba(8, 41, 67, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 7px;
  background: white;
  color: var(--navy);
  transform: translateY(-160%);
}

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

.site-header {
  min-height: 76px;
  padding: 0 clamp(20px, 5vw, 76px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background: var(--navy);
  color: white;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  font-weight: 800;
  letter-spacing: -0.35px;
  text-decoration: none;
}

.brand-mark,
.window-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 2px solid var(--sky);
  border-radius: 8px;
}

.brand-mark {
  display: grid;
  place-items: center;
  color: var(--sky);
  font-size: 12px;
  letter-spacing: -0.7px;
}

.window-mark {
  padding: 5px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
}

.window-mark i {
  border-radius: 1px;
  background: var(--sky);
  opacity: 0.42;
}

.header-note {
  color: #bad5e4;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.header-link {
  color: white;
  font-size: 14px;
  font-weight: 750;
  text-decoration-color: #71c6e9;
  text-underline-offset: 5px;
}

.home-main {
  min-height: calc(100vh - 76px);
}

.home-hero {
  padding: clamp(78px, 11vw, 148px) clamp(22px, 8vw, 124px) 76px;
  background:
    radial-gradient(circle at 78% 20%, rgba(49, 137, 181, 0.35), transparent 34%),
    var(--navy);
  color: white;
}

.eyebrow {
  margin: 0 0 19px;
  color: var(--sky);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

.home-hero h1,
.gateway-copy h1 {
  margin: 0;
  max-width: 880px;
  font-size: clamp(50px, 7vw, 92px);
  line-height: 0.96;
  letter-spacing: clamp(-4.5px, -0.05em, -2px);
}

.home-hero h1 span,
.gateway-copy h1 span {
  display: block;
  color: var(--sky);
}

.hero-lede {
  max-width: 670px;
  margin: 30px 0 0;
  color: #d6e6ee;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.65;
}

.projects {
  padding: 74px clamp(22px, 8vw, 124px) 104px;
}

.section-heading {
  max-width: 1180px;
  margin: 0 auto 28px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 50px);
  letter-spacing: -2px;
}

.section-heading p {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.project-grid {
  max-width: 1180px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.project-card {
  min-height: 390px;
  padding: clamp(28px, 4vw, 46px);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.project-card.panerate {
  background:
    radial-gradient(circle at 90% 15%, rgba(142, 215, 244, 0.3), transparent 26%),
    var(--navy);
  color: white;
}

.card-kicker {
  margin: 0 0 20px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.panerate .card-kicker {
  color: var(--sky);
}

.project-card h3 {
  margin: 0;
  font-size: clamp(34px, 4vw, 50px);
  letter-spacing: -2px;
}

.project-card p:not(.card-kicker) {
  max-width: 520px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.62;
}

.project-card.panerate p:not(.card-kicker) {
  color: #cfdee6;
}

.card-action {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 12px;
  min-height: 50px;
  padding: 0 19px;
  border-radius: 9px;
  background: var(--navy);
  color: white;
  font-weight: 800;
  text-decoration: none;
}

.panerate .card-action {
  background: var(--warm);
  color: #2b1c0d;
}

.site-footer {
  padding: 27px clamp(22px, 5vw, 76px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #051c2e;
  color: #a8bfcc;
  font-size: 12px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: white;
  text-underline-offset: 4px;
}

.gateway-page {
  min-height: calc(100vh - 76px);
  padding: clamp(50px, 8vw, 100px) clamp(22px, 7vw, 108px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(440px, 1.05fr);
  align-items: center;
  gap: clamp(42px, 8vw, 120px);
  background:
    radial-gradient(circle at 82% 36%, #174f72 0, #0d3858 24%, var(--navy) 56%),
    var(--navy);
  color: white;
}

.gateway-copy h1 {
  font-size: clamp(48px, 6vw, 78px);
}

.gateway-copy .hero-lede {
  margin-bottom: 30px;
}

.primary-action {
  min-height: 54px;
  padding: 0 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border-radius: 9px;
  background: var(--warm);
  color: #2b1c0d;
  box-shadow: 0 10px 28px rgba(242, 166, 90, 0.2);
  font-weight: 850;
  text-decoration: none;
}

.trust-list {
  margin: 25px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 11px 22px;
  color: #c2d7e2;
  font-size: 12px;
  list-style: none;
}

.trust-list li::before {
  content: "\2713";
  width: 18px;
  height: 18px;
  margin-right: 7px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #5e8aa3;
  border-radius: 50%;
  color: var(--sky);
}

.preview-card {
  position: relative;
  max-width: 580px;
  min-height: 550px;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.27);
}

.sample-label {
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.preview-card h2 {
  margin: 11px 0 27px;
  font-size: 38px;
  letter-spacing: -1.7px;
}

.sample-property {
  padding: 24px;
  border-radius: 15px;
  background: var(--navy);
  color: white;
}

.sample-property small {
  color: #a9c7d8;
  text-transform: uppercase;
  letter-spacing: 0.9px;
}

.sample-property strong {
  margin-top: 5px;
  display: block;
  font-size: 36px;
  letter-spacing: -1.6px;
}

.sample-grid {
  margin-top: 11px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.sample-grid div {
  min-height: 100px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #d7e4e7;
  border-radius: 10px;
  background: #eef5f7;
}

.sample-grid span {
  color: var(--muted);
  font-size: 10px;
}

.sample-grid b {
  font-size: 25px;
}

.preview-note {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.research-detail {
  padding: 42px clamp(22px, 7vw, 108px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  background: var(--cream);
}

.research-detail article {
  padding: 25px;
  border-top: 3px solid var(--blue);
  background: white;
}

.research-detail h2 {
  margin: 0 0 8px;
  font-size: 17px;
}

.research-detail p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

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

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

  .gateway-copy .hero-lede,
  .preview-card {
    margin-left: auto;
    margin-right: auto;
  }

  .trust-list {
    justify-content: center;
  }

  .preview-card {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 66px;
    padding: 0 18px;
  }

  .header-note {
    display: none;
  }

  .home-hero {
    padding: 70px 20px 58px;
  }

  .projects,
  .gateway-page,
  .research-detail {
    padding-left: 20px;
    padding-right: 20px;
  }

  .section-heading,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-card {
    min-height: 340px;
  }

  .gateway-page {
    gap: 40px;
  }

  .preview-card {
    min-height: 0;
    padding: 27px 20px;
  }

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

  .sample-grid div {
    min-height: 70px;
  }

  .research-detail {
    grid-template-columns: 1fr;
  }
}

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