/* inaflashphotos — Feels-inspired theme (original site chrome, not Feels branding). */
:root {
  --color-orb-light: #b5a0ff;
  --color-foreground: #ffffff;
  --color-action-ink: #000000;
  --color-canvas: #141919;
  --color-muted: #afafaf;
  --color-action: #ffffff;
  --font-display: "Space Grotesk", Arial, sans-serif;
  --font-body: "Inter", Arial, sans-serif;
  --side: clamp(16px, 2vw, 28.8px);
  --stage: 1440px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--color-canvas); color: var(--color-foreground); }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-weight: 300;
  min-height: 100%;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input { font: inherit; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: var(--side);
  top: 12px;
  z-index: 20;
  background: #fff;
  color: #000;
  padding: 8px 14px;
  border-radius: 900px;
}

/* Typography recipes (1440px reference, viewport-scaled). */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 8vw, 115.2px);
  line-height: 0.85;
  letter-spacing: normal;
  margin: 0;
  text-align: center;
  font-weight: 400;
}
.heading-pair {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 6vw, 86.4px);
  line-height: 1.16;
  margin: 0;
}
.closing {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 72px);
  line-height: 1.16;
  margin: 0;
  text-align: center;
}
.feature-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.25rem, 2.4vw, 34.6px);
  line-height: 1.15;
  margin: 0 0 clamp(8px, 2vw, 28.8px);
}
.section-support {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1rem, 1.5vw, 21.6px);
  line-height: 1.3;
  letter-spacing: -0.0133em;
  color: var(--color-muted);
  text-align: center;
  margin: 48px 0 0;
}
.hero-support {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1rem, 1.4vw, 20.2px);
  line-height: 1.357;
  letter-spacing: -0.014em;
  text-align: center;
  max-width: 36em;
  margin: 18px auto 0;
}
.action {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(0.95rem, 1.4vw, 20.2px);
  line-height: 1;
  letter-spacing: -0.014em;
}
.nav-link, .brand {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(0.9rem, 1.2vw, 17.3px);
  line-height: 1;
  letter-spacing: -0.0116em;
  text-decoration: none;
}
.body-copy {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(0.95rem, 1.15vw, 16.6px);
  line-height: 1.304;
  letter-spacing: -0.0174em;
}
.body-copy strong { font-weight: 700; }
.caption {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(0.8rem, 1vw, 14.4px);
  line-height: 1.39;
  letter-spacing: -0.02em;
  text-align: center;
  margin: 13.5px 0 0;
}
.footer-link {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(0.8rem, 1vw, 14.4px);
  line-height: 2;
  letter-spacing: -0.02em;
  color: #fff;
  text-decoration: underline;
  margin-right: 10px;
}

.stage {
  max-width: var(--stage);
  margin: 0 auto;
  padding-left: var(--side);
  padding-right: var(--side);
  position: relative;
}

/* Header */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(14px, 1.5vw, 21.6px) var(--side) 0;
  max-width: var(--stage);
  margin: 0 auto;
}
.brand { font-weight: 600; letter-spacing: -0.02em; }
.nav-cluster {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-cluster a { text-align: center; background: transparent; }
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-action);
  color: var(--color-action-ink);
  border: 0;
  border-radius: 900px;
  text-decoration: none;
  cursor: pointer;
}
.pill:focus-visible, .nav-link:focus-visible, .footer-link:focus-visible, .brand:focus-visible {
  outline: 2px solid var(--color-orb-light);
  outline-offset: 3px;
}
.pill-lg {
  width: min(317px, 90vw);
  height: 65px;
}
.pill-sm {
  height: 40px;
  padding: 0 18px;
  min-width: 7.5rem;
}
.pill-md {
  height: 64px;
  width: 187px;
}

/* Opening film stage */
.hero {
  min-height: min(100vh, 900px);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: #0c1010;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-fade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(0, 0, 0, 0) 50%, #141919);
}
.hero-inner {
  width: 100%;
  padding: 120px var(--side) 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero .display { width: min(100%, 66vw); }
.hero-actions { margin-top: 36px; display: flex; flex-direction: column; align-items: center; }

/* Paired benefits */
.pair {
  min-height: min(70vh, 720px);
  display: grid;
  align-items: center;
  padding: 90px 0;
  gap: 24px;
}
.pair-row {
  display: grid;
  grid-template-columns: 1fr minmax(120px, 220px) 1fr;
  gap: 16px;
  align-items: center;
}
.pair-row .left { text-align: right; }
.pair-row .right { text-align: left; }
.collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.collage img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 16px;
}
.collage img:nth-child(3) { background: #c8f26e; }

/* Capability chapters */
.chapter {
  min-height: min(90vh, 900px);
  padding: 90px 0;
  display: grid;
  grid-template-columns: 1fr minmax(200px, 418px) 1fr;
  gap: 24px;
  align-items: center;
  position: relative;
}
.chapter.alt .caption-block { order: 3; }
.demo-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  z-index: 1;
}
.orb {
  position: absolute;
  width: 576px;
  height: 576px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(181,160,255,0.9) 0%, rgba(126,104,241,0.6) 40%, rgba(96,117,236,0) 70%);
  filter: blur(32px);
  z-index: -1;
  pointer-events: none;
}
.demo {
  width: min(353px, 78vw);
  height: min(747px, 118vw);
  object-fit: cover;
  border-radius: 36px;
  position: relative;
  z-index: 1;
}
.caption-block { padding: 14.4px; max-width: 22rem; }
.caption-block.right { justify-self: start; }
.caption-block.left { justify-self: end; text-align: right; }

/* Closing */
.close {
  min-height: min(100vh, 900px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 90px var(--side) 40px;
  position: relative;
  overflow: hidden;
}
.close-copy { max-width: 634px; position: relative; z-index: 1; }
.dest-pair {
  display: grid;
  grid-template-columns: 187px 187px;
  gap: 16px;
  margin-top: 63px;
  justify-content: center;
}
.orb-end {
  position: absolute;
  width: min(1440px, 160vw);
  height: min(1440px, 160vw);
  left: -45%;
  bottom: -55%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(181,160,255,0.9) 0%, rgba(126,104,241,0.55) 38%, rgba(96,117,236,0) 70%);
  filter: blur(40px);
  pointer-events: none;
}
.footer-line { margin-top: 64px; position: relative; z-index: 1; }
.preview-note { opacity: 0.75; }

/* Gallery pages */
.page-head {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(14px, 1.5vw, 21.6px) var(--side);
  max-width: var(--stage);
  margin: 0 auto;
}
.gallery-hero {
  padding: 48px var(--side) 24px;
  max-width: var(--stage);
  margin: 0 auto;
  text-align: center;
}
.gallery-hero h1 { margin-bottom: 12px; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
  padding: 12px var(--side) 80px;
  max-width: var(--stage);
  margin: 0 auto;
}
.grid button {
  padding: 0;
  border: 0;
  background: #1c2222;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
}
.grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.grid button:hover img, .grid button:focus-visible img { transform: scale(1.04); }
.more, .status {
  text-align: center;
  padding: 0 var(--side) 80px;
}
.more .pill { margin: 0 auto; }

/* Login */
.login-stage {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px var(--side) 64px;
  position: relative;
  overflow: hidden;
}
.login-stage form {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(360px, 100%);
  position: relative;
  z-index: 1;
}
.login-stage input[type="password"] {
  width: 100%;
  background: transparent;
  color: #fff;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  padding: 14px 4px;
  margin: 36px 0 28px;
  letter-spacing: 0.12em;
  text-align: center;
}
.login-stage input::placeholder { color: #afafaf; letter-spacing: 0; }
.form-error { color: #ffb4b4; min-height: 1.3em; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10,12,12,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 30;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
}
.lightbox .lb-close, .lightbox .lb-nav {
  position: absolute;
  background: #fff;
  color: #000;
  border: 0;
  border-radius: 900px;
  cursor: pointer;
  font-weight: 600;
}
.lightbox .lb-close { top: 16px; right: 16px; width: 48px; height: 48px; }
.lightbox .lb-prev, .lightbox .lb-next {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
}
.lightbox .lb-prev { left: 16px; }
.lightbox .lb-next { right: 16px; }

.hidden { display: none !important; }

@media (max-width: 767px) {
  .nav-cluster .nav-link { display: none; }
  .pair-row {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .pair-row .left, .pair-row .right { text-align: center; }
  .collage { max-width: 240px; margin: 12px auto; }
  .chapter {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    min-height: 0;
    padding: 64px 0;
  }
  .chapter.alt .caption-block { order: 0; }
  .caption-block.left, .caption-block.right {
    justify-self: center;
    text-align: center;
  }
  .dest-pair {
    grid-template-columns: 1fr;
    width: min(220px, 100%);
    margin-left: auto;
    margin-right: auto;
  }
  .dest-pair .pill-md { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grid img { transition: none; }
}
