:root {
  --panel: #3a3a38;
  --panel-dark: #0c0c0b;
  --paper: #fefefd;
  --paper-soft: #f4f1ea;
  --line: rgba(254, 254, 253, 0.18);
  --ink: #171715;
  --muted: #6f6b62;
  --amber: #fdbc6d;
  --amber-strong: #fab963;
  --focus: #ffffff;
  --radius: 6px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--paper);
  background:
    linear-gradient(145deg, rgba(254, 254, 253, 0.06) 0 18%, transparent 18% 100%),
    linear-gradient(180deg, #3a3a38 0%, #242421 54%, #0c0c0b 100%);
  font-family: Bahnschrift, "DIN Alternate", "Segoe UI", sans-serif;
  line-height: 1.55;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 74% 6%, rgba(253, 188, 109, 0.16), transparent 28%);
  mix-blend-mode: screen;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 52px);
  background: rgba(12, 12, 11, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand-link {
  width: clamp(190px, 21vw, 250px);
}

.brand-mark {
  width: 100%;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 30px);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  text-decoration: none;
  color: rgba(254, 254, 253, 0.78);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--amber);
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.hero,
.about-section,
.gallery-section,
.gear-section,
.contact-section {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  min-height: min(760px, calc(100vh - 76px));
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
  align-items: center;
  gap: clamp(26px, 5vw, 72px);
  padding: 36px 0 58px;
}

.logo-hero {
  min-height: min(720px, calc(100vh - 76px));
  grid-template-columns: minmax(280px, 820px);
  justify-content: center;
  padding: 44px 0 64px;
}

.hero-plaque {
  min-height: 430px;
  display: grid;
  place-items: center;
  justify-items: center;
  background:
    linear-gradient(135deg, rgba(254,254,253,0.09), transparent 42%),
    var(--panel);
  border: 1px solid rgba(254,254,253,0.2);
  border-radius: var(--radius);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.32);
  overflow: hidden;
}

.hero-logo {
  width: min(92%, 680px);
}

.logo-hero .hero-plaque {
  gap: 28px;
  padding: clamp(28px, 5vw, 58px);
  text-align: center;
}

.logo-hero .hero-logo {
  width: min(96%, 720px);
}

.hero-location {
  margin: 0;
  color: rgba(254, 254, 253, 0.74);
  font-size: 1rem;
  font-weight: 400;
  text-align: center;
}

h2,
h3,
p {
  overflow-wrap: break-word;
}

.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;
}

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

.logo-hero .hero-actions {
  justify-content: center;
  margin-top: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  color: var(--panel-dark);
  background: var(--amber);
}

.button.secondary {
  color: var(--paper);
  background: transparent;
  border-color: rgba(254, 254, 253, 0.34);
}

.button:hover,
.button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.social-link:focus-visible,
.privacy-trigger:focus-visible,
.privacy-close:focus-visible,
.privacy-dialog a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: start;
  gap: clamp(28px, 4vw, 48px);
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.studio-image-slot,
.asset-slot {
  min-height: 420px;
  display: grid;
  place-items: center;
  color: rgba(254, 254, 253, 0.76);
  background:
    linear-gradient(135deg, rgba(253,188,109,0.18), transparent 36%),
    repeating-linear-gradient(0deg, rgba(254,254,253,0.05) 0 1px, transparent 1px 18px),
    #2f2f2d;
  border: 1px dashed rgba(254, 254, 253, 0.34);
  border-radius: var(--radius);
  font-weight: 800;
  text-transform: uppercase;
}

.studio-image-slot.has-image {
  display: block;
  min-height: 0;
  aspect-ratio: 16 / 10;
  margin-top: clamp(2px, 1vw, 12px);
  padding: 0;
  overflow: hidden;
  border-style: solid;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.26);
}

.studio-image-slot.has-image img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center center;
}

.about-copy {
  display: grid;
  gap: 14px;
  padding-top: clamp(2px, 1.4vw, 18px);
}

.about-copy p {
  max-width: 62ch;
  margin: 0;
}

.about-copy p:first-of-type {
  margin-top: 8px;
  color: var(--amber);
  font-weight: 800;
}

.about-copy h2,
.section-heading h2,
.contact-section h2 {
  margin: 0;
  color: var(--paper);
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
}

.about-copy h2 {
  max-width: 15ch;
  font-size: clamp(2rem, 4vw, 3.8rem);
}

.about-copy p,
.contact-copy {
  color: rgba(254, 254, 253, 0.82);
}

.gallery-section,
.gear-section,
.contact-section {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(320px, 1.28fr);
  align-items: end;
  gap: 28px;
  margin-bottom: 28px;
}

.gallery-grid {
  column-count: 2;
  column-gap: 14px;
}

.gallery-item {
  display: inline-block;
  width: 100%;
  margin: 0 0 14px;
  overflow: hidden;
  background: #2f2f2d;
  border: 1px solid rgba(254, 254, 253, 0.18);
  border-radius: var(--radius);
  break-inside: avoid;
}

.gallery-open {
  display: block;
  width: 100%;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: zoom-in;
}

.gallery-open:focus-visible,
.gallery-control:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.gallery-open img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center center;
  transition: transform 420ms ease;
}

.gallery-item:hover img,
.gallery-open:focus-visible img {
  transform: scale(1.025);
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  grid-template-rows: 72px minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  background: rgba(12, 12, 11, 0.94);
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox-frame {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 0;
  margin: 0;
}

.lightbox-image {
  justify-self: center;
  max-width: 100%;
  max-height: calc(100vh - 92px);
  width: auto;
  height: auto;
  border: 1px solid rgba(254, 254, 253, 0.22);
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.44);
}

.lightbox-caption {
  min-height: 24px;
  color: rgba(254, 254, 253, 0.78);
  font-size: 0.92rem;
  text-align: center;
}

.gallery-control {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  color: var(--paper);
  background: rgba(254, 254, 253, 0.08);
  border: 1px solid rgba(254, 254, 253, 0.26);
  border-radius: 4px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.gallery-control.close {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}

.gallery-control.previous,
.gallery-control.next {
  grid-row: 2;
  align-self: center;
}

.gallery-control.previous {
  grid-column: 1;
  justify-self: start;
}

.gallery-control.next {
  grid-column: 3;
  justify-self: end;
}

.gear-board {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.95fr) minmax(0, 0.95fr);
  gap: 1px;
  background: rgba(254, 254, 253, 0.24);
  border: 1px solid rgba(254, 254, 253, 0.24);
}

.gear-category {
  min-height: 100%;
  padding: 26px;
  background: rgba(12, 12, 11, 0.44);
}

.gear-category h3 {
  margin: 0 0 22px;
  color: var(--amber);
  font-size: 1.4rem;
  line-height: 1.05;
}

.gear-cluster {
  display: grid;
  gap: 22px;
}

.gear-cluster article {
  display: grid;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid rgba(254, 254, 253, 0.16);
}

.gear-cluster article:first-child {
  padding-top: 0;
  border-top: 0;
}

.gear-board h4 {
  margin: 0;
  color: var(--paper);
  font-size: 1rem;
  line-height: 1.2;
}

.gear-board p {
  margin: 0;
  color: rgba(254, 254, 253, 0.78);
}

.gear-board ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  color: rgba(254, 254, 253, 0.8);
  list-style: none;
}

.gear-board li {
  position: relative;
  padding-left: 14px;
}

.gear-board li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 5px;
  height: 1px;
  background: var(--amber);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
}

.social-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--amber);
  font-weight: 800;
  text-decoration: none;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  color: var(--ink);
  background: var(--paper-soft);
  border-radius: var(--radius);
}

.contact-form label {
  display: grid;
  gap: 7px;
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-form .consent-field {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.45;
  text-transform: none;
}

.form-submit-area {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding-top: 2px;
}

.form-submit-area .button {
  white-space: nowrap;
}

.consent-field input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
}

.consent-field a {
  color: var(--ink);
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(12, 12, 11, 0.18);
  border-radius: 4px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

textarea {
  resize: vertical;
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.privacy-trigger,
.footer-link {
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.privacy-trigger.inline {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.privacy-modal[hidden] {
  display: none;
}

.privacy-modal {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 36px);
  background: rgba(12, 12, 11, 0.82);
  backdrop-filter: blur(10px);
}

body.privacy-modal-open {
  overflow: hidden;
}

.privacy-dialog {
  width: min(920px, 100%);
  max-height: min(820px, calc(100vh - 24px));
  overflow: auto;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(254, 254, 253, 0.72);
  border-radius: var(--radius);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.48);
}

.privacy-dialog-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 4vw, 38px);
  color: var(--paper);
  background: var(--panel-dark);
  border-bottom: 1px solid rgba(254, 254, 253, 0.2);
}

.privacy-dialog-label {
  margin: 0 0 8px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.privacy-dialog h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
}

.privacy-close {
  min-height: 44px;
  padding: 0 14px;
  color: var(--paper);
  background: transparent;
  border: 1px solid rgba(254, 254, 253, 0.35);
  border-radius: 4px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.privacy-dialog-content {
  display: grid;
  gap: 28px;
  padding: clamp(24px, 4vw, 42px);
}

.privacy-dialog-content section {
  display: grid;
  gap: 10px;
}

.privacy-dialog-content h3,
.privacy-dialog-content p {
  max-width: 72ch;
  margin: 0;
}

.privacy-dialog-content h3 {
  font-size: 1.4rem;
  line-height: 1.2;
}

.privacy-dialog-content a {
  color: var(--ink);
  font-weight: 800;
}

.privacy-lead {
  color: var(--muted);
  font-size: 1.08rem;
}

.privacy-updated {
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 42px 18px 54px;
  color: rgba(254, 254, 253, 0.72);
  border-top: 1px solid var(--line);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.footer-mark {
  width: 96px;
  height: auto;
}

.legal-page {
  min-height: calc(100vh - 230px);
  padding: clamp(54px, 9vw, 112px) var(--page-pad);
}

.legal-sheet {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(254, 254, 253, 0.72);
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.32);
}

.legal-sheet h1,
.legal-sheet h2 {
  margin: 0;
  font-weight: 800;
  line-height: 1;
}

.legal-sheet h1 {
  font-size: clamp(2rem, 4vw, 3.8rem);
}

.legal-sheet section {
  margin-top: 38px;
}

.legal-sheet h2 {
  font-size: 1.4rem;
}

.legal-sheet p {
  max-width: 65ch;
  margin: 12px 0 0;
  line-height: 1.6;
}

.legal-sheet a {
  color: inherit;
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.legal-updated {
  color: var(--muted);
  font-size: 0.9rem;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-plaque {
    animation: meter-warmth 6s ease-in-out infinite;
  }
}

@keyframes meter-warmth {
  0%, 100% { box-shadow: 0 22px 54px rgba(0, 0, 0, 0.32); }
  50% { box-shadow: 0 22px 54px rgba(0, 0, 0, 0.32), 0 0 34px rgba(253, 188, 109, 0.16); }
}

@media (max-width: 860px) {
  .site-header {
    position: static;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    min-height: auto;
    padding: 10px 14px;
  }

  .brand-link {
    width: clamp(178px, 45vw, 224px);
  }

  .brand-mark {
    width: 100%;
    height: auto;
  }

  .site-nav {
    flex: 1 1 210px;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.72rem;
  }

  .hero,
  .about-section,
  .about-copy,
  .section-heading,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 18px;
  }

  .logo-hero {
    min-height: auto;
    padding: 18px 0 48px;
  }

  .hero-plaque {
    min-height: 280px;
  }

  .studio-image-slot {
    min-height: 300px;
  }

  .studio-image-slot.has-image {
    aspect-ratio: 16 / 10;
    margin-top: 0;
  }

  .studio-image-slot.has-image img {
    min-height: 0;
    object-position: center center;
  }

  .gear-board {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    column-count: 2;
  }
}

@media (max-width: 520px) {
  .hero,
  .about-section,
  .gallery-section,
  .gear-section,
  .contact-section {
    width: min(100% - 24px, var(--max));
  }

  .site-nav {
    flex-wrap: wrap;
  }

  .gallery-grid {
    column-count: 1;
  }

  .gear-category {
    padding: 22px;
  }

  .form-submit-area {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .form-submit-area .button {
    width: 100%;
  }

  .gallery-lightbox {
    grid-template-columns: 52px minmax(0, 1fr) 52px;
    grid-template-rows: 58px minmax(0, 1fr) 58px;
    gap: 8px;
    padding: 12px;
  }

  .lightbox-frame {
    grid-column: 1 / span 3;
    grid-row: 2;
  }

  .lightbox-image {
    max-height: calc(100vh - 156px);
  }

  .gallery-control {
    width: 46px;
    height: 46px;
  }

  .gallery-control.close {
    grid-column: 3;
    grid-row: 1;
  }

  .gallery-control.previous {
    grid-column: 1;
    grid-row: 3;
  }

  .gallery-control.next {
    grid-column: 3;
    grid-row: 3;
  }

  .privacy-dialog-header {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 14px;
    padding: 20px;
  }

  .privacy-close {
    justify-self: start;
  }

  .privacy-dialog-content {
    gap: 24px;
    padding: 24px 20px 30px;
  }
}
