@font-face {
  font-family: "Raleway";
  src: url("../assets/fonts/raleway-variable.woff2?v=20260719-3") format("woff2-variations");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --navy-950: #03101c;
  --navy-900: #061827;
  --navy-800: #0a2940;
  --navy-700: #104564;
  --blue-600: #0876b9;
  --blue-100: #dff2ff;
  --yellow-500: #fec400;
  --cream-50: #fffdf6;
  --cream-100: #f8f3e8;
  --cream-200: #ece3d0;
  --ink: #102c43;
  --muted: #536a7b;
  --white: #fff;
  --line-light: rgba(16, 44, 67, 0.14);
  --line-dark: rgba(255, 255, 255, 0.16);
  --shadow: 0 24px 70px rgba(3, 16, 28, 0.14);
  --content: 82rem;
  --gutter: clamp(1.2rem, 4vw, 3.25rem);
}

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

html {
  background: var(--navy-950);
  scroll-behavior: smooth;
}

body {
  min-width: 20rem;
  margin: 0;
  overflow-x: clip;
  background: var(--cream-50);
  color: var(--ink);
  font-family: "Raleway", system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
}

em,
i {
  font-family: inherit;
  font-style: normal;
}

:focus-visible {
  border-radius: 0.2rem;
  outline: 3px solid var(--yellow-500);
  outline-offset: 4px;
}

::selection {
  background: var(--yellow-500);
  color: var(--navy-950);
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  background: var(--yellow-500);
  color: var(--navy-950);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-top: 3px solid var(--yellow-500);
  border-bottom: 1px solid var(--line-dark);
  background: rgba(3, 16, 28, 0.94);
  color: var(--white);
  backdrop-filter: blur(12px);
}

.nav-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: min(100%, var(--content));
  min-height: 5.3rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
  gap: 2rem;
}

.brand img {
  width: 8.875rem;
  height: auto;
}

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: clamp(1.2rem, 2.4vw, 2.6rem);
}

.desktop-nav a,
.header-phone {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.83rem;
  font-weight: 700;
  text-decoration: none;
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"] {
  color: var(--white);
}

.desktop-nav a[aria-current="page"] {
  box-shadow: inset 0 -2px var(--yellow-500);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.2rem;
  border: 1px solid var(--yellow-500);
  border-radius: 999px;
  background: var(--yellow-500);
  color: var(--navy-950);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.button:hover {
  background: #ffdb4a;
}

.button--dark {
  border-color: var(--navy-950);
  background: var(--navy-950);
  color: var(--white);
}

.mobile-nav {
  position: relative;
  display: none;
}

.mobile-nav summary {
  padding: 0.65rem 0;
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-nav__panel {
  position: absolute;
  top: calc(100% + 1rem);
  right: 0;
  display: grid;
  width: min(18rem, calc(100vw - 2rem));
  padding: 0.75rem;
  border: 1px solid var(--line-dark);
  border-radius: 0.8rem;
  background: var(--navy-900);
  box-shadow: var(--shadow);
}

.mobile-nav__panel a {
  padding: 0.8rem;
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}

.breadcrumbs {
  padding: 1.1rem var(--gutter);
  border-bottom: 1px solid var(--line-light);
  background: var(--cream-50);
}

.breadcrumbs ol {
  display: flex;
  width: min(100%, var(--content));
  margin: 0 auto;
  padding: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  list-style: none;
  gap: 0.55rem;
}

.breadcrumbs li + li::before {
  margin-right: 0.55rem;
  content: "/";
}

.breadcrumbs a {
  text-decoration: none;
}

.portfolio-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(5.5rem, 11vw, 10rem) var(--gutter) clamp(5rem, 9vw, 8rem);
  background:
    linear-gradient(115deg, rgba(8, 118, 185, 0.18), transparent 42%),
    var(--navy-950);
  color: var(--white);
  isolation: isolate;
}

.portfolio-hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 4rem 4rem;
  content: "";
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

.portfolio-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.58fr);
  align-items: end;
  width: min(100%, var(--content));
  margin: 0 auto;
  gap: clamp(2.5rem, 8vw, 8rem);
}

.eyebrow {
  margin: 0 0 1.25rem;
  color: var(--yellow-500);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  letter-spacing: -0.045em;
  line-height: 1.02;
}

h1 {
  max-width: 11ch;
  margin-bottom: 1.5rem;
  font-size: clamp(3.1rem, 8vw, 7.6rem);
  font-weight: 800;
}

.hero-lead {
  max-width: 42rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1.02rem, 1.5vw, 1.25rem);
}

.hero-note {
  padding: 1.7rem;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-note strong,
.hero-note span {
  display: block;
}

.hero-note strong {
  margin-bottom: 0.65rem;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.2;
}

.hero-note span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
}

.archive-proof {
  background: var(--yellow-500);
  color: var(--navy-950);
}

.archive-proof__inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(100%, var(--content));
  margin: 0 auto;
  padding: 1.5rem var(--gutter);
}

.archive-proof__inner > div {
  padding: 0.4rem 1.2rem;
  border-right: 1px solid rgba(3, 16, 28, 0.22);
}

.archive-proof__inner > div:first-child {
  padding-left: 0;
}

.archive-proof__inner > div:last-child {
  border-right: 0;
}

.archive-proof strong,
.archive-proof span {
  display: block;
}

.archive-proof strong {
  font-size: 1.35rem;
  font-weight: 900;
}

.archive-proof span {
  font-size: 0.72rem;
  font-weight: 700;
}

.portfolio {
  padding: clamp(4rem, 8vw, 7rem) var(--gutter) clamp(5rem, 10vw, 9rem);
}

.portfolio__inner {
  width: min(100%, var(--content));
  margin: 0 auto;
}

.portfolio__heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.55fr);
  align-items: end;
  margin-bottom: 2.4rem;
  gap: 2rem;
}

.portfolio__heading h2 {
  max-width: 14ch;
  margin-bottom: 0;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  font-weight: 800;
}

.portfolio__heading > p {
  margin: 0;
  color: var(--muted);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 2.2rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line-light);
  gap: 0.65rem;
}

.filter-button {
  min-height: 2.8rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}

.filter-button:hover,
.filter-button[aria-pressed="true"] {
  border-color: var(--navy-950);
  background: var(--navy-950);
  color: var(--white);
}

.reference-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.1rem, 2.3vw, 2rem);
}

.reference-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-light);
  border-radius: 1rem;
  background: var(--white);
  box-shadow: 0 16px 38px rgba(3, 16, 28, 0.08);
}

.reference-card[hidden] {
  display: none;
}

.reference-card__media {
  display: grid;
  aspect-ratio: 1;
  overflow: hidden;
  border-bottom: 1px solid var(--line-light);
  background: #eaf0f3;
  place-items: center;
}

.reference-card--logo .reference-card__media {
  aspect-ratio: 4 / 3;
  padding: 0.8rem;
  background: var(--cream-100);
}

.reference-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.002);
  transition: transform 300ms ease;
}

.reference-card--logo .reference-card__media img {
  object-fit: contain;
}

.reference-card:hover .reference-card__media img {
  transform: scale(1.025);
}

.reference-card__body {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  min-height: 7.8rem;
  padding: 1.25rem;
  gap: 1rem;
}

.reference-card__body p {
  margin: 0 0 0.3rem;
  color: var(--blue-600);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.reference-card__body h3 {
  margin: 0;
  font-size: clamp(1.1rem, 1.8vw, 1.42rem);
  font-weight: 800;
}

.reference-card__open {
  display: inline-grid;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line-light);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
  place-items: center;
}

.reference-card__open:hover {
  border-color: var(--yellow-500);
  background: var(--yellow-500);
}

.archive-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  margin-top: clamp(3rem, 7vw, 6rem);
  padding: clamp(1.6rem, 4vw, 3.2rem);
  border: 1px solid var(--line-light);
  border-radius: 1rem;
  background: var(--cream-100);
  gap: 2rem;
}

.archive-note h2 {
  max-width: 22ch;
  margin-bottom: 0.75rem;
  font-size: clamp(1.7rem, 3.5vw, 3rem);
  font-weight: 800;
}

.archive-note p {
  max-width: 42rem;
  margin-bottom: 0;
  color: var(--muted);
}

.cta {
  padding: clamp(4rem, 8vw, 7rem) var(--gutter);
  background: var(--yellow-500);
  color: var(--navy-950);
}

.cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) auto;
  align-items: center;
  width: min(100%, var(--content));
  margin: 0 auto;
  gap: 2rem;
}

.cta h2 {
  max-width: 17ch;
  margin-bottom: 0.8rem;
  font-size: clamp(2.1rem, 4.5vw, 4rem);
  font-weight: 800;
}

.cta p {
  max-width: 42rem;
  margin: 0;
  font-weight: 600;
}

.site-footer {
  padding: clamp(3.5rem, 7vw, 6rem) var(--gutter) 2rem;
  background: var(--navy-950);
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  width: min(100%, var(--content));
  margin: 0 auto;
  gap: 3rem;
}

.footer-brand img {
  width: 10rem;
  height: auto;
}

.footer-brand p {
  max-width: 31rem;
  margin: 1.5rem 0 0;
  color: rgba(255, 255, 255, 0.64);
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 0.55rem;
}

.footer-column strong {
  margin-bottom: 0.65rem;
  color: var(--yellow-500);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 600;
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  width: min(100%, var(--content));
  margin: 3.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.76rem;
  gap: 1rem;
}

.lightbox {
  width: min(72rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 1rem;
  background: var(--navy-950);
  color: var(--white);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.55);
}

.lightbox::backdrop {
  background: rgba(1, 9, 16, 0.82);
  backdrop-filter: blur(5px);
}

.lightbox__frame {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  max-height: calc(100dvh - 2rem);
}

.lightbox__media {
  display: grid;
  min-height: 0;
  padding: clamp(0.6rem, 2vw, 1.4rem);
  overflow: auto;
  background: #eaf0f3;
  place-items: center;
}

.lightbox__media img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100dvh - 9rem);
  object-fit: contain;
}

.lightbox__bar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 5rem;
  padding: 1rem 1.3rem;
  gap: 1rem;
}

.lightbox__bar strong,
.lightbox__bar span {
  display: block;
}

.lightbox__bar span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.72rem;
}

.lightbox__close {
  min-width: 2.75rem;
  min-height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
}

@media (max-width: 66rem) {
  .desktop-nav,
  .header-phone {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

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

@media (max-width: 48rem) {
  .nav-shell {
    min-height: 4.35rem;
    gap: 1rem;
  }

  .brand img {
    width: 7.875rem;
  }

  .nav-actions > .button {
    display: none;
  }

  .portfolio-hero__inner,
  .portfolio__heading,
  .archive-note,
  .cta__inner,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-hero {
    padding-top: 4.5rem;
  }

  .hero-note {
    padding-left: 0;
    padding-right: 0;
  }

  .archive-proof__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 1rem;
  }

  .archive-proof__inner > div:nth-child(2) {
    border-right: 0;
  }

  .archive-proof__inner > div:nth-child(3) {
    padding-left: 0;
  }

  .archive-note .button,
  .cta .button {
    width: 100%;
  }

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

@media (max-width: 36rem) {
  .reference-grid {
    grid-template-columns: 1fr;
  }

  .reference-card__body {
    min-height: 6.9rem;
  }

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

  .filter-button {
    padding-inline: 0.4rem;
    font-size: 0.71rem;
  }

  .archive-proof strong {
    font-size: 1.1rem;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
