:root {
  --bg: #f4f6f8;
  --paper: #ffffff;
  --ink: #111827;
  --muted: #617080;
  --line: #dbe2ea;
  --accent: #0877d8;
  --accent-dark: #063f8c;
  --shadow: 0 18px 60px rgba(20, 32, 48, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

button {
  font: inherit;
}

.topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(244, 246, 248, 0.82);
  border-bottom: 1px solid rgba(219, 226, 234, 0.78);
  backdrop-filter: blur(18px);
}

.brand,
.nav a {
  color: var(--ink);
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: white;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.6vw, 32px);
  font-size: 14px;
  font-weight: 700;
}

.nav a {
  opacity: 0.72;
}

.nav a:hover,
.nav a:focus-visible {
  opacity: 1;
}

main {
  padding-top: 72px;
}

section {
  scroll-margin-top: 86px;
}

.hero {
  min-height: calc(100vh - 128px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  align-items: stretch;
  border-bottom: 1px solid var(--line);
}

.hero-media {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  background: #d6dce2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 22px;
  padding: clamp(28px, 5vw, 64px);
  background: var(--paper);
}

.eyebrow {
  margin: 0;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 12ch;
  margin-bottom: 0;
  font-size: clamp(40px, 4.5vw, 56px);
  line-height: 0.94;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
  letter-spacing: 0;
}

.hero-copy,
.closing p,
.reference-card p,
.scenario-panel p {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.icon-button,
.primary-button,
.filter-button {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.icon-button {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  border-radius: 50%;
  font-size: 32px;
  line-height: 1;
}

.primary-button {
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-weight: 800;
}

.icon-button:hover,
.primary-button:hover,
.filter-button:hover {
  border-color: var(--accent);
}

.primary-button:hover {
  background: #1d2a38;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.meta-row span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7f9fb;
}

.section-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.section-strip div {
  min-height: 112px;
  padding: 26px clamp(18px, 4vw, 56px);
  border-right: 1px solid var(--line);
}

.section-strip div:last-child {
  border-right: 0;
}

.section-strip strong,
.section-strip span {
  display: block;
}

.section-strip strong {
  font-size: 30px;
  line-height: 1;
}

.section-strip span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.gallery-section,
.reference-section {
  padding: clamp(34px, 6vw, 80px) clamp(18px, 4vw, 56px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-heading .eyebrow {
  margin-bottom: 8px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.filter-button {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.filter-button.active {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}

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

.frame-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 10px 34px rgba(20, 32, 48, 0.08);
  cursor: pointer;
}

.frame-card:hover,
.frame-card:focus-visible {
  border-color: rgba(8, 119, 216, 0.65);
  outline: 0;
  transform: translateY(-2px);
}

.frame-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #d9dee4;
}

.frame-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 12px 14px;
}

.frame-caption strong,
.frame-caption span {
  white-space: nowrap;
}

.frame-caption strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
}

.frame-caption span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.reference-section {
  border-top: 1px solid var(--line);
  background: #eef3f5;
}

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

.reference-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 10px 34px rgba(20, 32, 48, 0.08);
}

.reference-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #d9dee4;
}

.reference-card div {
  padding: 18px;
}

.reference-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.scenario-panel {
  margin-top: 18px;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.scenario-panel h3 {
  margin: 8px 0 10px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1;
  letter-spacing: 0;
}

.scenario-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  margin-top: 18px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.scenario-link:hover,
.scenario-link:focus-visible {
  border-color: var(--accent);
  background: #1d2a38;
}

.closing {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.8fr);
  gap: clamp(24px, 6vw, 80px);
  align-items: end;
  padding: clamp(36px, 7vw, 88px) clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.closing .eyebrow {
  margin-bottom: 10px;
}

.lightbox {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 72px clamp(14px, 4vw, 58px);
  background: rgba(7, 13, 20, 0.9);
}

.lightbox.open {
  display: flex;
}

.lightbox-frame {
  position: relative;
  width: min(100%, 1500px);
  max-height: 86vh;
  margin: 0;
}

.lightbox img {
  display: block;
  width: 100%;
  max-height: 86vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.lightbox-caption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 28px);
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(7, 13, 20, 0.72);
  color: white;
  backdrop-filter: blur(14px);
}

.lightbox-caption strong,
.lightbox-caption span {
  white-space: nowrap;
}

.lightbox-caption strong {
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
}

.lightbox-caption span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 800;
}

.lightbox-close,
.lightbox-arrow {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  cursor: pointer;
}

.lightbox-close {
  top: 20px;
  right: 22px;
  width: 44px;
  height: 44px;
  font-size: 30px;
  line-height: 1;
}

.lightbox-arrow {
  top: 50%;
  width: 52px;
  height: 52px;
  transform: translateY(-50%);
  font-size: 40px;
  line-height: 1;
}

.lightbox-prev {
  left: 18px;
}

.lightbox-next {
  right: 18px;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-media {
    height: clamp(300px, 38vh, 380px);
    min-height: 0;
  }

  .hero-panel {
    justify-content: start;
    gap: 16px;
    padding: 32px clamp(24px, 5vw, 44px);
  }

  h1 {
    max-width: 12ch;
  }

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

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

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

@media (max-width: 680px) {
  .topbar {
    position: sticky;
    min-height: 64px;
    padding: 12px 16px;
  }

  .nav {
    gap: 12px;
    font-size: 13px;
  }

  main {
    padding-top: 0;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    height: 56vw;
    min-height: 0;
  }

  .hero-panel {
    padding: 24px 16px 32px;
  }

  h1 {
    max-width: 14ch;
    font-size: 38px;
  }

  .hero-copy,
  .closing p {
    font-size: 15px;
  }

  .section-strip {
    grid-template-columns: 1fr;
  }

  .section-strip div {
    min-height: 88px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .section-strip div:last-child {
    border-bottom: 0;
  }

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

  .frame-caption {
    min-height: 54px;
  }

  .lightbox {
    padding: 64px 10px;
  }

  .lightbox-caption {
    left: 10px;
    right: 10px;
    bottom: 78px;
    justify-content: space-between;
  }

  .lightbox-arrow {
    top: auto;
    bottom: 14px;
    transform: none;
  }
}
