:root {
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg-default);
  color: var(--fg-1);
  font-family: var(--font-body);
  font-size: var(--text-body-base);
  font-weight: var(--weight-light);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
}

body.is-locked {
  overflow: hidden;
}

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

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--vs-orange);
  outline-offset: 3px;
}

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

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(17, 32, 61, 0.94);
  color: var(--brand-white);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  width: min(100% - 40px, 1440px);
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  flex-shrink: 0;
  color: var(--brand-white);
  text-decoration: none;
}

.site-brand:hover {
  color: var(--brand-white);
  text-decoration: none;
}

.site-brand img {
  width: 40px;
  height: 40px;
}

.site-brand__text {
  display: grid;
  gap: 1px;
}

.site-brand__name {
  font-size: 0.84rem;
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
}

.site-brand__sub {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.66rem;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.86rem;
  font-weight: var(--weight-medium);
  transition: color 160ms ease, background 160ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(250, 178, 33, 0.12);
  color: var(--vs-orange);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: transparent;
  color: var(--brand-white);
  cursor: pointer;
}

.container {
  width: min(100% - 40px, 1280px);
  margin: 0 auto;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(88px, 12vw, 168px) 0 clamp(80px, 10vw, 132px);
  background:
    radial-gradient(circle at 82% 15%, rgba(250, 178, 33, 0.22), transparent 28%),
    linear-gradient(145deg, var(--vs-navy) 0%, var(--vs-dark-blue) 80%);
  color: var(--brand-white);
}

.hero::after {
  content: "";
  position: absolute;
  right: -12vw;
  bottom: -28vw;
  width: 58vw;
  height: 58vw;
  border: 1px solid rgba(250, 178, 33, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 8vw rgba(250, 178, 33, 0.025), 0 0 0 16vw rgba(250, 178, 33, 0.018);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--vs-orange);
  font-size: var(--text-body-2xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 2px;
  background: currentColor;
}

.hero h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.7rem);
  font-weight: var(--weight-extra-light);
  letter-spacing: var(--tracking-tighter);
  line-height: 0.94;
}

.hero__lede {
  max-width: 62ch;
  margin: 32px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 0.94rem;
  font-weight: var(--weight-semibold);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  border-color: var(--vs-orange-dark);
  background: var(--vs-orange);
  color: var(--brand-black);
  box-shadow: var(--shadow-button);
}

.button--secondary {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.04);
  color: var(--brand-white);
}

.section {
  padding: clamp(72px, 9vw, 120px) 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(300px, 1fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 44px;
}

.section-heading h2 {
  margin: 0;
  color: var(--vs-navy);
  font-size: clamp(2.1rem, 5vw, 3.7rem);
  font-weight: var(--weight-extra-light);
  letter-spacing: var(--tracking-tighter);
  line-height: 1;
}

.section-heading p {
  max-width: 62ch;
  margin: 0;
  color: var(--fg-2);
  line-height: 1.7;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  padding: 32px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  background: var(--gradient-surface-1);
  box-shadow: var(--shadow-sm);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

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

.feature-card__index {
  margin-bottom: auto;
  color: var(--vs-orange-700);
  font-family: var(--font-decorative);
  font-size: 2.4rem;
}

.feature-card h3 {
  margin: 24px 0 10px;
  color: var(--vs-navy);
  font-size: var(--text-heading-2xs);
  font-weight: var(--weight-medium);
}

.feature-card p {
  margin: 0;
  color: var(--fg-2);
  font-size: var(--text-body-sm);
  line-height: 1.6;
}

.feature-card__link {
  margin-top: 24px;
  color: var(--vs-orange-700);
  font-size: var(--text-body-sm);
  font-weight: var(--weight-semibold);
}

.stats-band {
  background: var(--vs-navy);
  color: var(--brand-white);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: 36px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.stat:first-child {
  padding-left: 0;
}

.stat:last-child {
  border: 0;
}

.stat__value {
  color: var(--vs-orange);
  font-family: var(--font-decorative);
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1;
}

.stat__label {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.8rem;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.site-footer {
  padding: 44px 0;
  background: var(--vs-dark-blue);
  color: rgba(255, 255, 255, 0.52);
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  font-size: 0.8rem;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.site-footer a:hover {
  color: var(--vs-orange);
}

/* Gallery */
.gallery-hero {
  padding: 72px 0 48px;
  background: var(--bg-alt);
}

.gallery-hero h1 {
  max-width: 13ch;
  margin: 0;
  color: var(--vs-navy);
  font-size: clamp(2.7rem, 7vw, 5.4rem);
  font-weight: var(--weight-extra-light);
  letter-spacing: var(--tracking-tighter);
  line-height: 0.98;
}

.gallery-hero p {
  max-width: 64ch;
  margin: 24px 0 0;
  color: var(--fg-2);
  line-height: 1.7;
}

.gallery-tools {
  position: sticky;
  top: 72px;
  z-index: 40;
  border-block: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.gallery-tools__inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.search {
  position: relative;
  flex: 1;
  max-width: 460px;
}

.search input {
  width: 100%;
  min-height: 44px;
  padding: 9px 16px 9px 42px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-pill);
  background: var(--brand-white);
  color: var(--fg-1);
}

.search::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 17px;
  width: 13px;
  height: 13px;
  border: 1.5px solid var(--fg-2);
  border-radius: 50%;
  transform: translateY(-58%);
}

.search::after {
  content: "";
  position: absolute;
  top: 54%;
  left: 29px;
  width: 6px;
  height: 1.5px;
  background: var(--fg-2);
  transform: rotate(45deg);
}

.filter-list {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-list::-webkit-scrollbar {
  display: none;
}

.filter {
  flex-shrink: 0;
  padding: 8px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  background: var(--brand-white);
  color: var(--fg-2);
  font-size: 0.78rem;
  font-weight: var(--weight-medium);
  cursor: pointer;
}

.filter:hover,
.filter.is-active {
  border-color: var(--vs-navy);
  background: var(--vs-navy);
  color: var(--brand-white);
}

.gallery {
  min-height: 50vh;
  padding: 52px 0 100px;
}

.gallery-group {
  margin-bottom: 72px;
  scroll-margin-top: 168px;
}

.gallery-group__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.gallery-group__head h2 {
  margin: 0;
  color: var(--vs-navy);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: var(--weight-extra-light);
  letter-spacing: var(--tracking-tight);
}

.gallery-group__count {
  color: var(--fg-2);
  font-size: 0.75rem;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.preview-card {
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--brand-white);
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.preview-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.preview-card__viewport {
  position: relative;
  height: 310px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
  background:
    linear-gradient(45deg, rgba(17, 32, 61, 0.035) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(17, 32, 61, 0.035) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(17, 32, 61, 0.035) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(17, 32, 61, 0.035) 75%);
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: 16px 16px;
}

.preview-card iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: white;
  pointer-events: none;
}

.preview-card__body {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
}

.preview-card h3 {
  margin: 0 0 4px;
  color: var(--vs-navy);
  font-size: 1rem;
  font-weight: var(--weight-medium);
}

.preview-card p {
  margin: 0;
  color: var(--fg-2);
  font-size: 0.78rem;
  line-height: 1.4;
}

.preview-card__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.icon-button {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  background: var(--bg-default);
  color: var(--vs-navy);
  cursor: pointer;
}

.icon-button:hover {
  border-color: var(--vs-orange);
  background: var(--vs-orange);
}

.empty-state,
.error-state {
  padding: 72px 24px;
  border: 1px dashed var(--border-default);
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--fg-2);
}

.preview-dialog {
  width: min(96vw, 1440px);
  height: min(92vh, 1000px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--brand-white);
  box-shadow: 0 24px 80px rgba(6, 14, 31, 0.34);
}

.preview-dialog::backdrop {
  background: rgba(6, 14, 31, 0.82);
  backdrop-filter: blur(4px);
}

.preview-dialog__bar {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 16px 0 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.preview-dialog__title {
  overflow: hidden;
  color: var(--vs-navy);
  font-size: 0.9rem;
  font-weight: var(--weight-medium);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-dialog iframe {
  width: 100%;
  height: calc(100% - 60px);
  border: 0;
  background: var(--brand-white);
}

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    right: 20px;
    left: 20px;
    display: none;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    background: var(--vs-navy);
    box-shadow: var(--shadow-lg);
  }

  .site-nav.is-open {
    display: grid;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }

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

  .gallery-tools__inner {
    padding: 12px 0;
    flex-wrap: wrap;
  }

  .search {
    max-width: none;
    flex-basis: 100%;
  }

  .filter-list {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .site-header__inner,
  .container {
    width: min(100% - 28px, 1280px);
  }

  .hero {
    padding-top: 76px;
  }

  .hero h1 {
    font-size: clamp(2.75rem, 15vw, 4.5rem);
  }

  .feature-grid,
  .gallery-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 240px;
  }

  .stat {
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .preview-card__viewport {
    height: 250px;
  }

  .preview-card__body {
    align-items: flex-start;
  }

  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

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