/* GARTEC — index (split landing) — locked to viewport, never scrolls */
html, body {
  height: 100vh;          /* fallback */
  height: 100svh;         /* small viewport — guaranteed stable on iOS */
  overflow: hidden;
  overscroll-behavior: none;
}
body { background: #000; }

.split {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  gap: 2px;
  background: var(--line);
  width: 100vw;
  height: 100vh;
  height: 100svh;         /* always smallest viewport — never gets cut off by iOS URL bar */
}
@media (max-width: 820px), (orientation: portrait) {
  .split {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
  }
}

.half {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: clamp(16px, 3vh, 6vh) clamp(18px, 5vw, 6vw);
  min-height: 0; min-width: 0;
  cursor: pointer;
  color: var(--fg);
}
/* Safe-area on portrait: top half pushed below notch, bottom half above home indicator */
@media (orientation: portrait), (max-width: 820px) {
  .half-mv { padding-top: max(clamp(16px, 3vh, 6vh), env(safe-area-inset-top, 0px)); }
  .half-fv { padding-bottom: max(clamp(48px, 8vh, 80px), calc(env(safe-area-inset-bottom, 0px) + 48px)); }
}
.half-mv { background: #061418; }
.half-fv { background: #1a1208; }

/* Hero background photo */
.half-photo {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  filter: grayscale(100%) contrast(1.05);
  transition: transform .9s cubic-bezier(.25,.46,.45,.94);
}
.half-mv .half-photo { background-image: url('/assets/mv-hero.jpg'); }
.half-fv .half-photo { background-image: url('/assets/fv-hero.jpg'); }
.half:hover .half-photo { transform: scale(1.06); }

/* Dark overlay on top of photo */
.half-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: rgba(6, 14, 20, .72);
  transition: background .5s;
}
.half-fv .half-overlay { background: rgba(26, 18, 8, .72); }
.half:hover .half-overlay { background: rgba(6, 14, 20, .55); }
.half-fv:hover .half-overlay { background: rgba(26, 18, 8, .55); }

/* Grid pattern on top of overlay */
.half::before {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  pointer-events: none;
}

/* Soft accent glow */
.half-mv::after {
  content: ""; position: absolute; inset: -20%; z-index: 1;
  background: radial-gradient(circle, rgba(0,229,255,.15), transparent 60%);
  filter: blur(80px);
  transition: opacity .4s; opacity: .55;
  pointer-events: none;
}
.half-fv::after {
  content: ""; position: absolute; inset: -20%; z-index: 1;
  background: radial-gradient(circle, rgba(255,181,71,.18), transparent 60%);
  filter: blur(80px);
  transition: opacity .4s; opacity: .55;
  pointer-events: none;
}
.half:hover::after { opacity: .85; }

.half-content {
  position: relative; z-index: 3;
  max-width: 460px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(8px, 1.6vh, 18px);
  max-height: 100%;
}

.half-icon {
  width: clamp(36px, 6vh, 56px);
  height: clamp(36px, 6vh, 56px);
  display: block; margin: 0;
  flex-shrink: 0;
}

.half-logo { display: none; }

.half-sub {
  font-size: clamp(.7rem, 1.6vh, .85rem);
  letter-spacing: .25em; text-transform: uppercase;
  color: var(--fg-3);
  margin: 0;
}
.half-mv .half-sub { color: rgba(0,229,255,.85); }
.half-fv .half-sub { color: rgba(255,181,71,.9); }

.half-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 9vw, 6rem);
  line-height: .92; letter-spacing: .02em;
  margin: 0;
}
@media (orientation: portrait) and (max-width: 820px) {
  .half-title { font-size: clamp(2.2rem, 11vw, 4.5rem); }
}

.half-claim {
  font-size: clamp(.85rem, 1.3vh, 1.15rem);
  color: var(--fg-2);
  margin: 0;
  max-width: 30ch;
  line-height: 1.4;
}

.enter-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: clamp(10px, 1.6vh, 14px) clamp(20px, 4vw, 28px);
  border-radius: 999px;
  font-weight: 500;
  font-size: clamp(.85rem, 1.4vh, .95rem);
  border: 1px solid currentColor;
  transition: background .2s, color .2s, transform .2s;
  margin-top: clamp(4px, 1vh, 12px);
}
.half-mv .enter-btn { color: var(--accent-mv); }
.half-fv .enter-btn { color: var(--accent-warm); }
.half-mv .enter-btn:hover { background: var(--accent-mv); color: #061418; }
.half-fv .enter-btn:hover { background: var(--accent-warm); color: #1a1208; }
.enter-btn .arrow { transition: transform .2s; }
.enter-btn:hover .arrow { transform: translateX(4px); }

.brand-mark {
  position: fixed;
  top: max(clamp(10px, 2.2vh, 22px), env(safe-area-inset-top, 0px));
  left: 50%; transform: translateX(-50%);
  z-index: 10; display: flex; align-items: center; gap: 10px;
  pointer-events: none;
}
.brand-mark img {
  height: clamp(18px, 2.6vh, 28px);
  opacity: .9;
}

.split-footer {
  position: fixed;
  bottom: max(clamp(8px, 1.6vh, 18px), env(safe-area-inset-bottom, 0px));
  left: 0; right: 0;
  padding: 0 16px;
  text-align: center;
  font-size: clamp(.62rem, 1.2vh, .75rem);
  color: var(--fg-3);
  z-index: 20; pointer-events: none;
  line-height: 1.4;
}
.split-footer a, .split-footer button {
  pointer-events: auto;
  color: inherit;
  text-decoration: underline;
  opacity: .7;
  background: none; border: none; padding: 0; font: inherit; cursor: pointer;
}
.split-footer a:hover, .split-footer button:hover { opacity: 1; }

/* Tiny screens — drop claim text to keep button visible */
@media (max-height: 640px) and (orientation: portrait) {
  .half-claim { display: none; }
}
@media (max-width: 480px) and (orientation: landscape) {
  .half-claim { display: none; }
}

/* Portrait (stacked) — push FV content up so it doesn't collide with footer */
@media (orientation: portrait), (max-width: 820px) {
  .half-fv { padding-bottom: clamp(48px, 8vh, 80px); }
  .split-footer { font-size: .62rem; bottom: 10px; }
  .split-footer-full { display: none; }
}

/* Landscape mobile — push both halves up */
@media (max-width: 900px) and (orientation: landscape) {
  .half { padding-bottom: clamp(36px, 7vh, 56px); }
}
