:root {
  --bg: #edf2f7;
  --text: #121722;
  --muted: #677487;
  --dark: #07080d;
  --surface: #ffffff;
  --line: rgba(18, 23, 34, 0.12);
  --accent: #416cf0;
  --shell: min(1280px, calc(100vw - 24px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  font-family: Inter, sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(65, 108, 240, 0.04), transparent 16%),
    var(--bg);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }

.site-shell {
  width: 100%;
}

.hero {
  position: relative;
  min-height: 100vh;
  color: #f6f8fb;
  overflow: hidden;
  background: var(--dark);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(7, 8, 13, 0.82) 0%, rgba(7, 8, 13, 0.48) 48%, rgba(7, 8, 13, 0.78) 100%),
    linear-gradient(180deg, rgba(7, 8, 13, 0.1), rgba(7, 8, 13, 0.46));
}

.hero-head,
.hero-copy {
  position: relative;
  z-index: 1;
  width: var(--shell);
  margin: 0 auto;
}

.hero-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 0 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(246, 248, 251, 0.82);
}

.hero-copy {
  min-height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 0 72px;
}

.eyebrow,
.stack-kicker,
.contact-label,
.panel-no {
  margin: 0 0 14px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow,
.stack-kicker,
.panel-no {
  color: #9cb4ff;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Outfit, sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 10ch;
  font-size: clamp(3.8rem, 8vw, 7rem);
  line-height: 0.92;
}

h2 {
  max-width: 12ch;
  font-size: clamp(2.1rem, 4.2vw, 3.5rem);
  line-height: 0.96;
}

h3 {
  font-size: 1.55rem;
}

.lead,
.stack-intro,
.stack-panel p,
.stack-panel small,
.contact-copy p,
.form-note {
  color: var(--muted);
  line-height: 1.82;
}

.hero .lead {
  max-width: 58ch;
  color: rgba(246, 248, 251, 0.78);
}

.hero-actions,
.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
  transition: transform 160ms ease;
  will-change: transform;
}

.button.primary {
  background: var(--accent);
  color: #f7fbff;
  border-color: transparent;
}

.stack-area {
  width: var(--shell);
  margin: 0 auto;
  padding: 44px 0 18px;
}

.stack-intro {
  margin-bottom: 18px;
}

.stack-panels {
  position: relative;
  padding-bottom: 24px;
}

.stack-panel {
  position: sticky;
  top: 16px;
  min-height: 38vh;
  padding: 18px 0;
}

.panel-a { z-index: 3; }
.panel-b { top: 46px; z-index: 4; }
.panel-c { top: 76px; z-index: 5; }

.panel-frame {
  min-height: calc(38vh - 36px);
  padding: 32px;
  border: 1px solid rgba(18, 23, 34, 0.16);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 80px rgba(18, 23, 34, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.panel-frame h3 {
  margin-bottom: 12px;
}

.contact {
  width: var(--shell);
  margin: 24px auto 32px;
  padding: 28px;
  border: 1px solid rgba(18, 23, 34, 0.16);
  background: rgba(255, 255, 255, 0.98);
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  gap: 24px;
}

.site-footer {
  width: var(--shell);
  margin: 0 auto 28px;
  padding: 0 0 18px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.site-footer p {
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid rgba(18, 23, 34, 0.12);
}

.contact-copy {
  display: grid;
  align-content: start;
  gap: 12px;
}

.row.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

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

label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.96rem 1rem;
  border: 1px solid rgba(18, 23, 34, 0.48);
  background: #fff;
  color: var(--text);
}

textarea {
  min-height: 156px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(65, 108, 240, 0.14);
  border-color: var(--accent);
}

svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.form-note {
  min-height: 24px;
  margin: 0;
}

.reveal {
  transform: translateY(12px);
  transition: transform 0.36s ease;
}

.reveal.in-view {
  transform: none;
}

@media (max-width: 980px) {
  .contact,
  .row.two {
    grid-template-columns: 1fr;
  }

  .stack-panel,
  .panel-b,
  .panel-c {
    position: static;
    top: auto;
  }

  .panel-frame {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .hero-head,
  .hero-copy,
  .stack-area,
  .contact,
  .site-footer {
    width: min(1280px, calc(100vw - 18px));
  }

  .hero-head {
    flex-direction: column;
    gap: 4px;
  }

  .hero-copy {
    padding: 42px 0 52px;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.8rem);
  }

  .panel-frame,
  .contact {
    padding: 18px;
  }

  .button {
    width: 100%;
  }
}
