:root {
  color-scheme: dark;
  --ink: #e8f0f3;
  --muted: #93a7b1;
  --paper: #0c1116;
  --surface: #131b22;
  --surface-soft: #19232c;
  --line: rgba(180, 209, 224, 0.16);
  --copper: #3fb6a8;
  --copper-bright: #5fd4c6;
  --sand: #b9d2dc;
  --steel: #8fb2c4;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.46);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header,
.site-footer,
.hero,
.section {
  padding-inline: clamp(20px, 5vw, 72px);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding-block: 18px;
  border-bottom: 1px solid rgba(180, 209, 224, 0.12);
  background: rgba(12, 17, 22, 0.86);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand,
nav,
.hero-actions,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: var(--copper);
  color: #06100f;
  font-size: 0.84rem;
  font-weight: 850;
}

nav {
  gap: clamp(14px, 3vw, 32px);
  color: var(--muted);
  font-size: 0.94rem;
}

nav a,
.button,
.site-footer a {
  text-decoration: none;
}

nav a:hover,
.site-footer a:hover {
  color: var(--copper-bright);
}

.hero {
  width: min(1240px, 100%);
  min-height: 760px;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(240px, 0.58fr);
  gap: clamp(32px, 6vw, 82px);
  align-items: center;
  margin: 0 auto;
  padding-block: clamp(58px, 8vw, 104px);
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--copper);
  font-size: 0.76rem;
  font-weight: 820;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 11em;
  margin-bottom: 22px;
  font-size: clamp(3.1rem, 7.2vw, 6.6rem);
  line-height: 0.92;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 620px;
  color: #ddd1c2;
  font-size: clamp(1.08rem, 2vw, 1.32rem);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 780;
}

.button-primary {
  background: var(--copper);
  color: #06100f;
}

.button-primary:hover {
  background: var(--copper-bright);
}

.button-secondary {
  background: rgba(244, 236, 226, 0.08);
  border-color: rgba(180, 209, 224, 0.2);
}

.button-secondary:hover {
  border-color: rgba(192, 135, 90, 0.5);
  color: var(--copper-bright);
}

.hero-shot {
  display: block;
  width: min(360px, 100%);
  justify-self: center;
  border-radius: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-shot img,
.gallery img {
  display: block;
  width: 100%;
  height: auto;
}

.section {
  padding-block: clamp(70px, 9vw, 118px);
}

.section-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.section-band {
  background: #1f1811;
  border-block: 1px solid rgba(192, 135, 90, 0.2);
}

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1.05fr);
  gap: clamp(30px, 7vw, 86px);
}

.feature-list {
  display: grid;
  gap: 12px;
}

.feature-list p {
  margin: 0;
  padding: 16px 0;
  border-bottom: 1px solid rgba(180, 209, 224, 0.14);
  color: #ddd1c2;
  font-size: 1.05rem;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.gallery {
  display: grid;
  gap: 16px;
}

.phone-gallery {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: start;
}

.tablet-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 20px;
}

.gallery-label {
  margin: 38px 0 6px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 820;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gallery a {
  display: block;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid rgba(180, 209, 224, 0.14);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.gallery a:hover {
  outline: 3px solid rgba(192, 135, 90, 0.36);
  outline-offset: 3px;
}

.media-overlay {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(44px, 0.16fr) minmax(0, 1fr) minmax(44px, 0.16fr);
  align-items: center;
  gap: clamp(10px, 3vw, 26px);
  padding: clamp(18px, 4vw, 44px);
  background: rgba(8, 6, 4, 0.92);
  backdrop-filter: blur(14px);
}

.media-overlay[hidden] {
  display: none;
}

.media-overlay-open {
  overflow: hidden;
}

.media-overlay-frame {
  min-width: 0;
  max-width: min(980px, 100%);
  max-height: calc(100svh - 88px);
  grid-column: 2;
  justify-self: center;
  display: grid;
  gap: 12px;
  margin: 0;
}

.media-overlay-image {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(100svh - 150px);
  margin: 0 auto;
  border: 1px solid rgba(180, 209, 224, 0.2);
  border-radius: 8px;
  background: #15110d;
  box-shadow: 0 30px 92px rgba(0, 0, 0, 0.55);
}

.media-overlay-caption {
  min-height: 1.4em;
  color: #ddd1c2;
  font-size: 0.96rem;
  text-align: center;
}

.media-overlay-close,
.media-overlay-nav {
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(180, 209, 224, 0.22);
  border-radius: 8px;
  background: rgba(244, 236, 226, 0.1);
  color: var(--ink);
  cursor: pointer;
}

.media-overlay-close:hover,
.media-overlay-nav:hover {
  border-color: rgba(192, 135, 90, 0.58);
  color: var(--copper-bright);
}

.media-overlay-close:focus-visible,
.media-overlay-nav:focus-visible {
  outline: 3px solid rgba(192, 135, 90, 0.82);
  outline-offset: 4px;
}

.media-overlay-close {
  position: absolute;
  top: clamp(14px, 3vw, 28px);
  right: clamp(14px, 3vw, 28px);
  width: 44px;
  height: 44px;
  font-size: 2rem;
  line-height: 1;
}

.media-overlay-nav {
  width: clamp(44px, 6vw, 56px);
  height: clamp(48px, 8vw, 70px);
}

.media-overlay-nav::before {
  width: 14px;
  height: 14px;
  content: "";
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
}

.media-overlay-prev {
  grid-column: 1;
  justify-self: end;
}

.media-overlay-next {
  grid-column: 3;
  justify-self: start;
}

.media-overlay-prev::before {
  transform: rotate(-45deg);
}

.media-overlay-next::before {
  transform: rotate(135deg);
}

.site-footer {
  justify-content: space-between;
  gap: 18px;
  padding-block: 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  flex-wrap: wrap;
  gap: clamp(12px, 2vw, 22px);
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
  }

  .site-header nav {
    display: none;
  }

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

  .hero {
    min-height: auto;
  }

  .hero-shot {
    justify-self: start;
  }

  h1 {
    font-size: clamp(2.9rem, 12vw, 4.2rem);
  }

  .phone-gallery,
  .tablet-gallery {
    grid-auto-flow: column;
    grid-template-columns: none;
    overflow-x: auto;
    padding: 4px 2px 18px;
    scroll-snap-type: x proximity;
  }

  .phone-gallery {
    grid-auto-columns: minmax(170px, 46vw);
  }

  .tablet-gallery {
    grid-auto-columns: minmax(230px, 72vw);
  }

  .gallery a {
    scroll-snap-align: start;
  }

  .media-overlay {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr auto;
    padding-top: 70px;
  }

  .media-overlay-frame {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .media-overlay-image {
    max-height: calc(100svh - 172px);
  }

  .media-overlay-prev,
  .media-overlay-next {
    grid-row: 2;
  }

  .media-overlay-prev {
    grid-column: 1;
  }

  .media-overlay-next {
    grid-column: 2;
  }

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