:root {
  --cream: #f3e6d2;
  --gold: #e4a527;
  --gold-light: #f6c95b;
  --teal: #247b85;
  --teal-deep: #123e46;
  --rust: #a34e31;
  --rust-deep: #5f2b24;
  --coal: #141819;
  --paper: var(--cream);
  --line: rgba(36, 123, 133, .66);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  display: flex;
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  flex-direction: column;
  color: var(--paper);
  background-color: var(--coal);
  background-image: linear-gradient(rgba(9, 21, 23, .83), rgba(27, 13, 11, .93)), url("assets/nails-background.png");
  background-position: center;
  background-size: 100% 100%;
  background-attachment: fixed;
  font-family: "DM Mono", monospace;
}

body.lightbox-open { overflow: hidden; }
a { color: inherit; }
button { font: inherit; }
main { flex: 1; }

.hero {
  display: grid;
  grid-template-columns: minmax(280px, .83fr) minmax(0, 1.17fr);
  min-height: min(71vh, 760px);
  border-bottom: 1px solid var(--line);
}

.brand-panel {
  display: flex;
  min-height: 460px;
  padding: clamp(2rem, 5vw, 5rem);
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(145deg, rgba(15, 62, 70, .76), rgba(77, 33, 25, .62));
}

.logo { display: flex; width: 100%; height: 100%; align-items: flex-start; justify-content: center; cursor: pointer; flex-direction: column; text-decoration: none; }
.logo-image { display: block; width: min(100%, 50rem); max-height: 30rem; object-fit: contain; object-position: left center; }
.alpha-version { margin: .75rem 0 0 .2rem; color: rgba(244, 239, 228, .74); font-size: .63rem; letter-spacing: .14em; text-transform: uppercase; }
.brand-note, .eyebrow { margin: 0; font-size: .69rem; letter-spacing: .08em; text-transform: uppercase; }
.brand-note { color: rgba(244, 239, 228, .72); }
.brand-note a { color: var(--gold); text-decoration-color: transparent; }
.brand-note a:hover { text-decoration-color: currentColor; }

.media-panel { min-width: 0; padding: clamp(1rem, 2.2vw, 2.2rem); background: rgba(12, 48, 54, .78); }
.gallery { display: grid; height: 100%; min-height: 420px; grid-template-columns: 1.16fr .84fr; grid-template-rows: 1.05fr .95fr; gap: clamp(.6rem, 1.2vw, 1rem); }
.gallery-item {
  position: relative;
  display: flex;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(243, 230, 210, .33);
  cursor: zoom-in;
  color: rgba(244, 239, 228, .82);
  background-color: var(--rust-deep);
  font-size: .63rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.gallery-item:focus-visible, .lightbox button:focus-visible, a:focus-visible, .signup-form input:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.82) contrast(1.06); transition: transform .45s ease, filter .45s ease; }
.gallery-item:hover img { transform: scale(1.045); filter: saturate(1) contrast(1.08); }
.shot::after, .video::after { position: absolute; inset: 0; content: ""; background: linear-gradient(180deg, transparent 55%, rgba(18, 62, 70, .74)), repeating-linear-gradient(0deg, transparent 0 3px, rgba(0,0,0,.06) 3px 4px); mix-blend-mode: multiply; pointer-events: none; }
.gallery-label, .video > span { z-index: 1; }
.gallery-label { position: absolute; right: .7rem; bottom: .6rem; color: rgba(244, 239, 228, .74); font-size: .56rem; }
.shot-1 { grid-row: span 2; }
.shot-1 img { object-position: 49% center; }
.shot-2 img { object-position: 50% center; }
.shot-3 img { object-position: 51% center; }
.video { grid-column: span 2; min-height: 130px; cursor: pointer; background-image: radial-gradient(circle at 50% 50%, rgba(246, 201, 91, .65), transparent 20%), linear-gradient(120deg, var(--rust), var(--teal-deep)); }
.play { display: grid; width: 3rem; height: 3rem; margin-right: .6rem; place-items: center; border: 1px solid rgba(244, 239, 228, .8); border-radius: 50%; color: var(--paper); font-size: .85rem; }

.signup { display: flex; padding: clamp(2.5rem, 6vw, 6.5rem); align-items: flex-end; justify-content: space-between; gap: 2rem; background: var(--teal-deep); }
.signup h1 { max-width: 11ch; margin: .6rem 0 0; font-family: "Space Grotesk", sans-serif; font-size: clamp(2.7rem, 6.1vw, 6.6rem); font-weight: 600; letter-spacing: -.075em; line-height: .88; }
.signup-copy { max-width: 46ch; margin: 1.3rem 0 0; color: rgba(244, 239, 228, .72); font-size: clamp(.72rem, 1.1vw, .86rem); line-height: 1.7; }
.signup-form { display: flex; width: min(100%, 31rem); border-bottom: 1px solid var(--gold-light); }
.signup-form input { min-width: 0; flex: 1; padding: .9rem 0; border: 0; outline: none; color: var(--paper); background: transparent; font: inherit; font-size: .78rem; }
.signup-form input::placeholder { color: rgba(244, 239, 228, .62); }
.signup-form button { margin: 0 0 .45rem 1rem; padding: .72rem 1rem; border: 1px solid var(--gold); cursor: pointer; color: var(--rust-deep); background: var(--gold); font: inherit; font-size: .75rem; font-weight: 500; white-space: nowrap; }
.signup-form button:hover { border-color: var(--gold-light); background: var(--gold-light); }

footer { display: flex; margin-top: auto; padding: 1.3rem clamp(1.25rem, 3vw, 3rem); align-items: center; justify-content: space-between; gap: 2rem; border-top: 1px solid var(--gold); background: var(--rust-deep); color: rgba(243, 230, 210, .8); font-size: .62rem; letter-spacing: .03em; }
.footer-credit { max-width: 28ch; margin: 0; line-height: 1.55; text-transform: uppercase; }
.footer-credit a { color: var(--gold-light); text-decoration-color: rgba(246, 201, 91, .75); }
.footer-links { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.footer-brand { display: grid; min-width: 9rem; gap: .38rem; justify-items: center; color: var(--paper); text-align: center; text-decoration: none; }
.footer-brand img { display: block; width: 8rem; height: 2.1rem; object-fit: contain; object-position: center; }
.footer-logo-frame { display: block; width: 8rem; height: 2.1rem; overflow: hidden; }
.footer-brand--ai { min-width: 11rem; }
.footer-brand--ai .footer-logo-frame { width: 11rem; }
.footer-brand--ai img { width: 11rem; max-width: none; height: auto; transform: translateY(-32%); }
.footer-brand span { color: rgba(244, 239, 228, .72); font-size: .55rem; }
.footer-pledge { color: var(--gold-light); text-decoration-color: transparent; text-transform: uppercase; white-space: nowrap; }
.footer-pledge:hover, .footer-brand:hover span { text-decoration-color: currentColor; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.lightbox { position: fixed; z-index: 10; inset: 0; display: none; padding: clamp(1rem, 3vw, 3rem); grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: minmax(0, 1fr) auto; gap: .8rem; align-items: center; background: rgba(11, 45, 51, .96); }
.lightbox.is-open { display: grid; }
.lightbox-stage { display: grid; width: 100%; height: 100%; min-height: 0; place-items: center; }
.lightbox-stage img, .lightbox-stage iframe { display: block; width: 100%; max-width: 78rem; max-height: calc(100vh - 9rem); border: 0; object-fit: contain; }
.lightbox-stage iframe { aspect-ratio: 16 / 9; height: min(70vh, 44rem); }
.lightbox-close, .lightbox-arrow { display: grid; width: clamp(2.6rem, 5vw, 3.5rem); height: clamp(2.6rem, 5vw, 3.5rem); place-items: center; border: 1px solid rgba(244, 239, 228, .45); cursor: pointer; color: var(--paper); background: rgba(22, 21, 19, .8); font-size: 1.45rem; }
.lightbox-close { position: absolute; top: 1rem; right: 1rem; font-size: 2rem; line-height: 1; }
.lightbox-arrow:hover, .lightbox-close:hover { border-color: var(--gold-light); color: var(--gold-light); background: var(--rust); }
.lightbox-caption { grid-column: 1 / -1; margin: 0; justify-self: center; color: rgba(244, 239, 228, .74); font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; }
.trailer-notice { margin: 0; padding: 2rem; border: 1px solid rgba(244, 239, 228, .24); color: var(--paper); font-size: clamp(.75rem, 2vw, 1rem); letter-spacing: .08em; text-transform: uppercase; }

@media (max-width: 720px) {
  body { background-size: auto 100%; }
  .hero { grid-template-columns: 1fr; }
  .brand-panel { min-height: 330px; }
  .logo-image { max-height: 17rem; }
  .media-panel { min-height: 0; }
  .gallery { min-height: 0; grid-template-columns: 1fr; grid-template-rows: repeat(4, minmax(11rem, 52vw)); }
  .shot-1, .video { grid-column: auto; grid-row: auto; min-height: 0; }
  .signup { align-items: stretch; flex-direction: column; }
  .signup-form { width: 100%; }
  footer { align-items: flex-start; flex-direction: column; }
  .footer-links { width: 100%; justify-content: space-between; }
  .lightbox { padding: 4.5rem .75rem 1rem; grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1fr) auto auto; gap: .6rem; }
  .lightbox-stage { grid-column: 1 / -1; grid-row: 1; }
  .lightbox-stage img, .lightbox-stage iframe { max-height: calc(100vh - 11rem); }
  .lightbox-prev { grid-column: 1; grid-row: 2; justify-self: start; }
  .lightbox-next { grid-column: 2; grid-row: 2; justify-self: end; }
  .lightbox-caption { grid-row: 3; }
}

@media (max-width: 460px) {
  .brand-panel { padding: 1.5rem; }
  .footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 1rem; }
  .footer-pledge { grid-column: 1 / -1; }
  .footer-brand { min-width: 0; }
  .footer-brand img { width: 100%; max-width: 8rem; }
  .footer-brand--ai { min-width: 0; }
  .footer-brand--ai .footer-logo-frame { width: 100%; max-width: 10rem; }
  .footer-brand--ai img { width: 10rem; max-width: none; }
}
