:root{
  --ink: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.72);
  --glass: rgba(10,12,16,0.35);
  --glass-strong: rgba(10,12,16,0.55);
  --stroke: rgba(255,255,255,0.16);
  --shadow: 0 18px 60px rgba(0,0,0,0.45);
  --radius: 22px;
  --maxw: 1080px;
}

*{ box-sizing: border-box; }
html, body { height: 100%; }
body{
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: #05060a;
  overflow: hidden; /* we want the main container to scroll, not body */
}

a{ color: inherit; text-decoration: none; }
p{ line-height: 1.55; color: var(--muted); }

.snap{
  height: 100vh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

.frame{
  position: relative;
  height: 100vh;
  scroll-snap-align: start;
  display: grid;
  place-items: center;
  isolation: isolate;

  /* background image via CSS variable */
  background-image: var(--bg-url);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.frame::before{
  /* subtle darkening + saturation control without making it “jarring” */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(1200px 700px at 35% 25%, rgba(0,0,0,0.15), rgba(0,0,0,0.72));
  z-index: -2;
}

.veil{
  position: absolute;
  inset: 0;
  z-index: -1;
  backdrop-filter: blur(10px) saturate(0.95);
  background: rgba(4,6,10,0.22);
}

.veil-strong{
  backdrop-filter: blur(14px) saturate(0.9);
  background: rgba(4,6,10,0.42);
}

.content{
  width: min(var(--maxw), calc(100% - 48px));
  margin: 0 auto;
}

.frame-hero .hero-content{
  padding: 72px 0;
}

.kicker{
  display: inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--stroke);
  color: rgba(255,255,255,0.78);
  font-size: 13px;
  letter-spacing: 0.2px;
}

h1{
  margin: 18px 0 10px 0;
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.tagline{
  margin: 0;
  font-size: clamp(18px, 2.2vw, 24px);
  color: rgba(255,255,255,0.82);
  max-width: 42ch;
}

.cta-row{
  display: flex;
  gap: 14px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  color: rgba(10,12,16,0.92);
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.20);
  box-shadow: 0 14px 36px rgba(0,0,0,0.35);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 18px 48px rgba(0,0,0,0.45);
}

.btn-ghost{
  background: rgba(0,0,0,0.22);
  color: rgba(255,255,255,0.88);
  border: 1px solid var(--stroke);
  box-shadow: none;
}

.scroll-hint{
  margin-top: 54px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  opacity: 0.85;
}

.scroll-hint__line{
  width: 42px;
  height: 1px;
  background: rgba(255,255,255,0.35);
  position: relative;
  overflow: hidden;
}

.scroll-hint__line::after{
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: rgba(255,255,255,0.75);
  animation: hint 1.3s ease-in-out infinite;
}

@keyframes hint{
  0%{ transform: translateX(-100%); }
  70%{ transform: translateX(100%); }
  100%{ transform: translateX(100%); }
}

.scroll-hint__text{
  font-size: 12px;
  color: rgba(255,255,255,0.70);
}

/* Frame 2 split layout */
.split-content{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  align-items: stretch;
}

.panel{
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: var(--glass);
  box-shadow: var(--shadow);
}

.panel-text{
  padding: 28px 26px;
}

.panel-text h2{
  margin: 0 0 10px 0;
  font-size: 28px;
  letter-spacing: -0.02em;
}

.microlist{
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.microitem{
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 10px;
  align-items: start;
}

.microitem__dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.55);
  margin-top: 6px;
}

.microitem__txt{
  color: rgba(255,255,255,0.78);
}

.panel-figure{
  padding: 16px;
  background: var(--glass-strong);
}

.figure-card{
  height: 100%;
  border-radius: calc(var(--radius) - 4px);
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.25);
  padding: 16px;
}

.figure-card__header{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.pill{
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(0,0,0,0.18);
  color: rgba(255,255,255,0.78);
}

.pill-muted{
  color: rgba(255,255,255,0.62);
  background: rgba(0,0,0,0.12);
}

.figure{
  width: 100%;
  height: auto;
  display: block;
}

.fig-bg{ fill: rgba(255,255,255,0.06); }
.edges path{
  fill: none;
  stroke: rgba(255,255,255,0.22);
  stroke-width: 2;
}
.n1{ fill: rgba(255,255,255,0.55); }
.n2{ fill: rgba(255,255,255,0.40); }
.n3{ fill: rgba(255,255,255,0.30); }
.fig-label{
  fill: rgba(255,255,255,0.70);
  font-size: 16px;
}

/* Frame 3 contact */
.frame-contact{
  background: radial-gradient(900px 520px at 50% 25%, rgba(255,255,255,0.10), rgba(0,0,0,0.75));
}

.contact-wrap{
  width: min(760px, calc(100% - 48px));
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: rgba(0,0,0,0.28);
  box-shadow: var(--shadow);
  padding: 34px 28px;
}

.contact-wrap h2{
  margin: 0 0 10px 0;
  font-size: 28px;
  letter-spacing: -0.02em;
}

.contact-block{
  color: rgba(255,255,255,0.78);
  margin: 10px 0 18px 0;
  line-height: 1.5;
}

.contact-form{
  display: grid;
  gap: 12px;
}

.field-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field{
  display: grid;
  gap: 6px;
}

.field > span{
  font-size: 13px;
  color: rgba(255,255,255,0.8);
}

.field input,
.field textarea{
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.24);
  background: rgba(0,0,0,0.32);
  color: rgba(255,255,255,0.92);
  padding: 11px 12px;
  font: inherit;
}

.field textarea{
  resize: vertical;
  min-height: 110px;
}

.field input:focus,
.field textarea:focus{
  outline: 2px solid rgba(255,255,255,0.38);
  outline-offset: 1px;
}

.contact-actions{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.contact-status{
  margin: 0;
  color: rgba(255,255,255,0.82);
  font-size: 14px;
  min-height: 20px;
}

.contact-hp{
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn[disabled]{
  opacity: 0.65;
  cursor: not-allowed;
}

.footerline{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
  color: rgba(255,255,255,0.60);
  font-size: 12px;
}

.sep{ opacity: 0.5; }
.mutedlink{ color: rgba(255,255,255,0.70); text-decoration: underline; }

/* Dot navigation */
.dotnav{
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 12px;
  z-index: 50;
}

.dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.18);
  cursor: pointer;
}

.dot.is-active{
  background: rgba(255,255,255,0.75);
  border-color: rgba(255,255,255,0.65);
}

/* Responsive */
@media (max-width: 900px){
  body{ overflow: hidden; }
  .split-content{ grid-template-columns: 1fr; }
  .dotnav{ right: 12px; }
  .field-grid{ grid-template-columns: 1fr; }
}
