/* ============================================================
   BadhBaadin — design system
   Neominimal / techminimal / retrofuturist. Pale sky-glass world.
   ============================================================ */

@font-face {
  font-family: 'Space Grotesk';
  font-weight: 300 700;
  font-display: swap;
  src: url('../assets/fonts/SpaceGrotesk-Bold.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-weight: 100 800;
  font-display: swap;
  src: url('../assets/fonts/JetBrainsMono-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/Inter-Variable.woff2') format('woff2');
}

:root {
  /* sky */
  --sky-top: #cbe7f5;
  --sky-mid: #dcf0f7;
  --sky-bottom: #f4fafb;

  /* ink */
  --ink: #10242f;
  --ink-soft: #45606c;
  --ink-faint: #6d8791;
  --line: #16323f;

  /* glass */
  --glass-bg: rgba(255,255,255,0.34);
  --glass-bg-strong: rgba(255,255,255,0.52);
  --glass-border: rgba(16,50,64,0.15);
  --glass-border-strong: rgba(16,50,64,0.32);

  /* glow (iridescent cloud accents) */
  --glow-pink: rgba(240,183,214,0.5);
  --glow-violet: rgba(184,167,235,0.48);
  --glow-blue: rgba(163,213,235,0.55);
  --glow-mint: rgba(174,224,214,0.45);

  /* grounding accent */
  --sand: #cdb98e;
  --signal: #0f6e6b;

  --chip-bg: rgba(16,50,64,0.06);

  --font-display: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --radius: 3px;
  --edge: 1px solid var(--glass-border);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 45%, var(--sky-bottom) 100%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

::selection { background: var(--line); color: var(--sky-bottom); }

/* ---------- cloud field (fixed backdrop) ---------- */
.cloud-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.cloud-field .wash {
  position: absolute;
  border-radius: 50%;
  filter: blur(46px);
  opacity: 0.5;
  will-change: transform;
}
.cloud-field .wash.w1 { width: 44vw; height: 44vh; left: -14vw; top: -14vh; background: radial-gradient(circle at 35% 30%, var(--glow-blue), transparent 70%); }
.cloud-field .wash.w2 { width: 40vw; height: 40vh; right: -10vw; bottom: -12vh; background: radial-gradient(circle at 60% 40%, var(--glow-mint), transparent 70%); }

.cloud-field .fcloud {
  position: absolute;
  will-change: transform;
}
.cloud-field .fcloud svg { width: 100%; height: 100%; display: block; }
.fcloud.f1 { width: 300px; left: 4vw;  top: 8vh;  opacity: 0.9; }
.fcloud.f2 { width: 220px; right: 8vw; top: 16vh; opacity: 0.85; }
.fcloud.f3 { width: 340px; left: 34vw; top: 46vh; opacity: 0.8; }
.fcloud.f4 { width: 240px; right: 6vw; bottom: 14vh; opacity: 0.85; }
.fcloud.f5 { width: 210px; left: 8vw;  bottom: 8vh; opacity: 0.85; }
@media (max-width: 720px) {
  .fcloud.f1 { width: 190px; }
  .fcloud.f2 { width: 150px; }
  .fcloud.f3 { width: 220px; }
  .fcloud.f4 { width: 160px; }
  .fcloud.f5 { width: 150px; }
}
.cloud-field .grain {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(16,50,64,0.045) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: multiply;
  opacity: 0.5;
}

/* ---------- layout ---------- */
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 32px; position: relative; z-index: 2; }
section { position: relative; z-index: 2; }

/* ---------- nav ---------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(244,250,251,0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: var(--edge);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand svg { width: 22px; height: 22px; color: var(--line); }
.brand .word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0; padding: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.nav-links a .n { color: var(--ink-faint); font-size: 10px; }
.nav-links a:hover, .nav-links a.active {
  color: var(--ink);
  border-color: var(--glass-border);
  background: var(--glass-bg);
}
.nav-toggle {
  display: none;
  width: 34px; height: 34px;
  border: var(--edge);
  border-radius: var(--radius);
  background: var(--glass-bg);
  align-items: center;
  justify-content: center;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after { display: none; }
.nav-toggle svg { width: 16px; height: 16px; }

@media (max-width: 820px) {
  .nav-links {
    position: fixed;
    top: 62px; left: 16px; right: 16px;
    flex-direction: column;
    align-items: stretch;
    background: rgba(244,250,251,0.92);
    backdrop-filter: blur(16px);
    border: var(--edge);
    border-radius: var(--radius);
    padding: 8px;
    gap: 2px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-toggle { display: flex; }
}

/* ---------- eyebrow / mono labels ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--signal);
  border-radius: 50%;
}

/* ---------- headings / type (avant-garde display scale) ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; margin: 0; text-wrap: balance; position: relative; }
h1 { font-size: clamp(48px, 9.5vw, 112px); line-height: 0.92; }
h2 { font-size: clamp(36px, 5.6vw, 68px); line-height: 0.98; }
h3 { font-size: 20px; }
p { line-height: 1.65; color: var(--ink-soft); margin: 0 0 16px; max-width: 62ch; }
p:last-child { margin-bottom: 0; }
.lede { font-size: 18px; color: var(--ink-soft); }

/* ---------- section-head alternation (left/right rhythm) ---------- */
.section-head { position: relative; }
.section-head.align-right { margin-left: auto; margin-right: 0; text-align: right; }
.section-head.align-right .lede { margin-left: auto; }
.section-head.align-right .eyebrow { flex-direction: row-reverse; }
@media (max-width: 900px) {
  .section-head.align-right { margin-left: 0; text-align: left; }
  .section-head.align-right .lede { margin-left: 0; }
  .section-head.align-right .eyebrow { flex-direction: row; }
}

/* floating mono annotations beside display type — poster-style */
.annot {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
}
.annot.a-top { top: -4px; }
.annot.a-side-r { right: -14px; transform: translateX(100%); padding-left: 14px; }
.annot.a-side-l { left: -14px; transform: translateX(-100%); text-align: right; padding-right: 14px; }
.annot.a-under { bottom: -22px; }
@media (max-width: 1100px) { .annot { display: none; } }

/* ---------- glass panel ---------- */
.panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: var(--edge);
  border-radius: var(--radius);
  position: relative;
}
.panel.bracketed::before, .panel.bracketed::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  pointer-events: none;
}
.panel.bracketed::before { top: -1px; left: -1px; border-top: 2px solid var(--line); border-left: 2px solid var(--line); }
.panel.bracketed::after { bottom: -1px; right: -1px; border-bottom: 2px solid var(--line); border-right: 2px solid var(--line); }

/* ---------- buttons (sharp, no fill, mono) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding: 13px 20px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn:hover { background: var(--line); color: var(--sky-bottom); }
.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- sections generic ---------- */
.section {
  padding: 160px 0 120px;
  border-top: var(--edge);
}
.section:first-of-type { border-top: none; }
.section-head { max-width: 68ch; margin-bottom: 56px; }

/* ---------- reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(.19,1,.22,1), transform 0.8s cubic-bezier(.19,1,.22,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { transition-delay: calc(var(--i, 0) * 90ms); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 90px;
  padding-bottom: 60px;
}
.hero-mark { width: 46px; height: 46px; color: var(--line); margin-bottom: 28px; }
.hero h1 { max-width: 13ch; }
.hero .lede { max-width: 52ch; margin-top: 22px; }
.hero-meta {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  background: var(--glass-border);
  border: var(--edge);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 720px;
}
.hero-meta div { flex: 1 1 160px; background: var(--glass-bg-strong); backdrop-filter: blur(12px); padding: 14px 18px; }
.hero-meta .k { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 5px; }
.hero-meta .v { font-size: 14px; font-weight: 600; color: var(--ink); }
.scroll-cue {
  margin-top: 56px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  gap: 10px;
}
.scroll-cue .line { width: 28px; height: 1px; background: var(--ink-faint); position: relative; overflow: hidden; }
.scroll-cue .line::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--line);
  transform: translateX(-100%);
  animation: cue 2.2s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .scroll-cue .line::after { animation: none; } }
@keyframes cue { 0% { transform: translateX(-100%);} 50% { transform: translateX(0);} 100% { transform: translateX(100%);} }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: start; }
.about-grid.flip { grid-template-columns: 0.9fr 1.1fr; }
.about-grid.flip .about-side { order: 1; }
.about-grid.flip .about-copy { order: 2; }
.about-copy p { font-size: 16px; }
.about-copy .highlight {
  color: var(--ink);
  font-weight: 600;
}
.about-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 110px; }
.stat-card { padding: 20px; }
.stat-card .tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 8px; }
.stat-card .big { font-family: var(--font-display); font-size: 30px; font-weight: 700; line-height: 1.1; }
.stat-card .sub { font-size: 13px; color: var(--ink-soft); margin-top: 6px; }

.urgency-strip {
  margin-top: 64px;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--glass-border-strong);
}
.urgency-strip .pulse {
  width: 9px; height: 9px; border-radius: 50%;
  background: #b64536; flex: none;
  box-shadow: 0 0 0 0 rgba(182,69,54,0.5);
  animation: pulse 2s infinite;
}
@media (prefers-reduced-motion: reduce) { .urgency-strip .pulse { animation: none; } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(182,69,54,0.45); }
  70% { box-shadow: 0 0 0 10px rgba(182,69,54,0); }
  100% { box-shadow: 0 0 0 0 rgba(182,69,54,0); }
}
.urgency-strip p { margin: 0; font-size: 14.5px; color: var(--ink); font-weight: 500; max-width: none; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-side { position: static; flex-direction: row; flex-wrap: wrap; }
  .stat-card { flex: 1 1 220px; }
}

/* ============================================================
   MAP & DATA
   ============================================================ */
.data-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.data-card { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.data-card .card-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint);
}
.data-card .card-head .idx { color: var(--ink); font-weight: 600; }
.embed-frame {
  border: var(--edge);
  border-radius: 2px;
  overflow: hidden;
  background: rgba(255,255,255,0.5);
  aspect-ratio: 1 / 1;
  display: block;
}
.embed-frame img, .embed-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.data-card .caption { font-size: 13px; color: var(--ink-soft); margin: 0; }
@media (max-width: 900px) { .data-gallery { grid-template-columns: 1fr; } }

/* ============================================================
   PRODUCT
   ============================================================ */
.product-body { max-width: 640px; margin-left: auto; }
@media (max-width: 900px) { .product-body { max-width: none; margin-left: 0; } }

.status-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 7px 12px; border: 1px solid var(--glass-border-strong); border-radius: 2px; color: var(--ink-soft);
  margin-bottom: 22px;
}
.status-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sand); }

.plans-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.plans-table caption {
  text-align: left; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: 12px;
}
.plans-table tr { border-top: var(--edge); }
.plans-table tr:last-child { border-bottom: var(--edge); }
.plans-table td { padding: 18px 8px; font-size: 15.5px; color: var(--ink); vertical-align: top; }
.plans-table td.num { font-family: var(--font-mono); color: var(--ink-faint); width: 46px; font-size: 13px; padding-top: 20px; }
.plans-table td.more { color: var(--ink-soft); font-style: normal; }

/* ============================================================
   FOOTER (index)
   ============================================================ */
.site-footer {
  padding: 56px 0 64px;
  border-top: var(--edge);
}
.footer-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.footer-row .f-mono { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-hero { padding: 150px 0 40px; }
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 22px;
  align-items: start;
  padding-bottom: 120px;
}
.portrait-panel { padding: 10px; overflow: hidden; }
.portrait-panel img { width: 100%; height: auto; border-radius: 1px; display: block; }
.portrait-panel .cap {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-faint); padding: 10px 6px 2px;
}

.contact-col { display: flex; flex-direction: column; gap: 16px; }
.contact-box { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.contact-box .tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.contact-box .val { font-family: var(--font-display); font-size: 21px; font-weight: 700; word-break: break-word; }
.contact-box a.val { text-decoration: none; color: var(--ink); }
.contact-box a.val:hover { color: var(--signal); }
.whatsapp-val { display: flex; align-items: center; gap: 10px; }
.whatsapp-val svg { width: 22px; height: 22px; flex: none; color: var(--line); }

.contact-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.map-panel { padding: 22px; grid-column: 1 / -1; }
.map-panel .map-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
.map-stage { position: relative; display: flex; align-items: center; justify-content: center; padding: 10px 0; }
.map-stage svg { width: 100%; max-width: 360px; height: auto; color: var(--line); }
.icon-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.icon-chip { border: var(--edge); border-radius: 2px; padding: 14px 10px; text-align: center; background: var(--glass-bg-strong); }
.icon-chip svg { width: 22px; height: 22px; margin: 0 auto 8px; color: var(--line); }
.icon-chip .lbl { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-row2 { grid-template-columns: 1fr; }
  .icon-row { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- utility ---------- */
.mono { font-family: var(--font-mono); }
.center-note { text-align: center; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }

/* ============================================================
   FIELD PHOTOGRAPHY — windows, gallery, lightbox
   ============================================================ */

/* ---------- shared window frame ---------- */
.field-window {
  position: relative;
  display: block;
  padding: 8px;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: var(--edge);
  border-radius: var(--radius);
  text-align: left;
  width: 100%;
  font: inherit;
  color: inherit;
  cursor: zoom-in;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.field-window::before,
.field-window::after {
  content: "";
  position: absolute;
  width: 9px; height: 9px;
  pointer-events: none;
}
.field-window::before { top: -1px; left: -1px; border-top: 2px solid var(--line); border-left: 2px solid var(--line); }
.field-window::after  { bottom: -1px; right: -1px; border-bottom: 2px solid var(--line); border-right: 2px solid var(--line); }
.field-window:hover,
.field-window:focus-visible {
  border-color: var(--glass-border-strong);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -18px rgba(16,50,64,0.55);
  outline: none;
}
.field-window:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

.field-window .frame {
  position: relative;
  overflow: hidden;
  border-radius: 1px;
  background: rgba(16,50,64,0.06);
  aspect-ratio: 3 / 2;
}
.field-window .frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2,0.7,0.3,1);
}
.field-window:hover .frame img { transform: scale(1.035); }
@media (prefers-reduced-motion: reduce) {
  .field-window:hover .frame img { transform: none; }
  .field-window:hover { transform: none; }
}

.field-window .cap {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin-top: 9px;
  padding: 0 2px 2px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-soft);
}
.field-window .cap .fx {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  flex: none;
  padding-top: 1px;
}

/* ---------- inline strip (2–3 up inside a section) ---------- */
.field-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin: 34px 0;
}
.field-strip.solo { grid-template-columns: 1fr; margin: 40px 0 0; }
.field-strip.solo .field-window .frame { aspect-ratio: 21 / 9; }
@media (max-width: 560px) {
  .field-strip.solo .field-window .frame { aspect-ratio: 3 / 2; }
}

.field-strip-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 44px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 16px;
}
.field-strip-label + .field-strip { margin-top: 0; }
.field-strip-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--glass-border);
}

/* ---------- hero mini row ---------- */
.hero-field { margin-top: 40px; }
.hero-field .row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 430px;
}
.hero-field .field-window { padding: 5px; }
.hero-field .field-window .frame { aspect-ratio: 1 / 1; }
.hero-field .field-window::before,
.hero-field .field-window::after { width: 7px; height: 7px; }
.hero-field .foot {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.hero-field .foot a { color: var(--ink-soft); text-underline-offset: 3px; }
.hero-field .foot a:hover { color: var(--signal); }

/* ---------- gallery section ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.gallery-grid .g-item .frame { aspect-ratio: 3 / 2; }

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; gap: 14px; }
}

.gallery-note {
  margin-top: 34px;
  padding: 18px 20px;
  border: var(--edge);
  border-radius: var(--radius);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 13.5px;
  color: var(--ink-soft);
  max-width: 70ch;
}
.gallery-note strong { color: var(--ink); font-weight: 600; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(10,28,36,0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.lightbox.open { display: flex; }
.lightbox .lb-stage {
  position: relative;
  max-width: 1180px;
  width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lightbox .lb-imgwrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}
.lightbox img {
  max-width: 100%;
  max-height: 74vh;
  width: auto;
  object-fit: contain;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 2px;
  background: rgba(255,255,255,0.04);
}
.lightbox .lb-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  color: rgba(255,255,255,0.82);
  font-size: 13px;
  flex-wrap: wrap;
}
.lightbox .lb-cap { max-width: 74ch; line-height: 1.5; }
.lightbox .lb-count {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.55);
  flex: none;
}
.lightbox .lb-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(10,28,36,0.5);
  color: #fff;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.lightbox .lb-btn:hover { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.5); }
.lightbox .lb-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lightbox .lb-btn svg { width: 18px; height: 18px; }
.lightbox .lb-prev { left: 8px; }
.lightbox .lb-next { right: 8px; }
.lightbox .lb-close {
  position: absolute;
  top: -6px; right: 0;
  transform: translateY(-100%);
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(10,28,36,0.5);
  color: #fff;
  border-radius: 2px;
  cursor: pointer;
}
.lightbox .lb-close:hover { background: rgba(255,255,255,0.16); }
.lightbox .lb-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lightbox .lb-close svg { width: 15px; height: 15px; }

@media (max-width: 640px) {
  .lightbox { padding: 16px; }
  .lightbox img { max-height: 62vh; }
  .lightbox .lb-btn { width: 38px; height: 38px; }
  .lightbox .lb-prev { left: 2px; }
  .lightbox .lb-next { right: 2px; }
}

body.lb-locked { overflow: hidden; }
