:root {
  --night: #1a1612;
  --night-2: #261f18;
  --ink: #2a2118;
  --cream: #f7efe2;
  --cream-dim: #e8dcc8;
  --honey: #e8b84a;
  --honey-hot: #f0c65a;
  --ember: #c43c2c;
  --ember-soft: #d85a48;
  --moss: #3d5a45;
  --line: rgba(232, 184, 74, 0.22);
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Onest", system-ui, sans-serif;
  --radius: 4px;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--cream);
  background: var(--night);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* embroidery strip */
.stitch {
  height: 10px;
  background:
    repeating-linear-gradient(
      90deg,
      var(--ember) 0 8px,
      transparent 8px 14px,
      var(--cream-dim) 14px 18px,
      transparent 18px 24px,
      var(--honey) 24px 28px,
      transparent 28px 36px
    );
  opacity: 0.85;
}

/* header */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  background: rgba(12, 10, 8, 0.28);
  backdrop-filter: blur(6px);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 56px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1;
}

.brand img,
.brand svg {
  width: 56px;
  height: 56px;
  border-radius: 0;
  background: transparent;
  display: block;
  flex-shrink: 0;
}

.brand-mark {
  /* transparent PNG — no dark plate */
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.92rem;
  color: var(--cream-dim);
  line-height: 1;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
}

.nav a:hover {
  color: var(--honey);
}

.nav-cta {
  color: var(--night) !important;
  background: var(--honey);
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  font-weight: 600;
  min-height: 2.25rem;
}

.nav-cta:hover {
  background: var(--honey-hot);
  color: var(--night) !important;
}

@media (max-width: 760px) {
  .nav a:not(.nav-cta) {
    display: none;
  }
}

/* hero */
.hero {
  position: relative;
  min-height: min(100vh, 920px);
  display: grid;
  align-items: center;
  padding: 7.5rem 0 4rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(240, 184, 74, 0.28), transparent 55%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(196, 60, 44, 0.18), transparent 50%),
    linear-gradient(165deg, #120f0c 0%, #2a2118 45%, #1a1612 100%);
}

.hero--photo {
  background: #0c0a08;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
  z-index: 0;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(12, 10, 8, 0.92) 0%, rgba(12, 10, 8, 0.72) 42%, rgba(12, 10, 8, 0.28) 68%, rgba(12, 10, 8, 0.15) 100%),
    linear-gradient(180deg, rgba(12, 10, 8, 0.45) 0%, transparent 28%, rgba(12, 10, 8, 0.55) 100%);
  pointer-events: none;
}

.hero--photo .wrap,
.hero--photo .hero-copy {
  position: relative;
  z-index: 2;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cpath d='M0 24h48M24 0v48' stroke='%23e8b84a' stroke-opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  right: -8%;
  top: 12%;
  width: min(52vw, 560px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 210, 120, 0.35), transparent 65%);
  filter: blur(8px);
  animation: pulse-glow 5.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulse-glow {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

.hero-door {
  position: absolute;
  right: max(4%, calc(50% - 480px));
  bottom: 8%;
  width: min(38vw, 340px);
  opacity: 0.92;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 36rem;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-door {
    animation: door-in 1.1s ease-out both;
  }

  .hero-copy {
    animation: copy-in 0.9s ease-out 0.15s both;
  }

  @keyframes door-in {
    from {
      opacity: 0;
      transform: translateY(24px) scale(0.96);
    }
    to {
      opacity: 0.92;
      transform: none;
    }
  }

  @keyframes copy-in {
    from {
      opacity: 0;
      transform: translateY(18px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--honey);
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-kicker::before {
  content: "";
  width: 18px;
  height: 18px;
  background: var(--ember);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.hero h1 span {
  color: var(--honey);
}

.hero-lead {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--cream-dim);
  max-width: 28rem;
  margin: 0 0 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--honey);
  color: var(--night);
}

.btn-primary:hover {
  background: var(--honey-hot);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--cream);
  background: rgba(255, 255, 255, 0.03);
}

.btn-ghost:hover {
  border-color: var(--honey);
}

@media (max-width: 860px) {
  .hero-door {
    opacity: 0.35;
    width: 55vw;
    right: -10%;
  }
}

/* sections common */
.section {
  padding: 5rem 0;
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.section-head--split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.85fr);
  gap: 2rem;
  align-items: center;
}

.section-head-copy {
  max-width: 36rem;
}

.section-head-art {
  justify-self: end;
  width: min(100%, 320px);
  aspect-ratio: 1;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(240, 184, 74, 0.2), transparent 60%),
    #120f0c;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.section-head-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 800px) {
  .section-head--split {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .section-head-art {
    justify-self: start;
    width: min(100%, 240px);
  }
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  line-height: 1.15;
}

.section-head p {
  margin: 0;
  color: var(--cream-dim);
  font-size: 1.05rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ember-soft);
  margin-bottom: 0.65rem;
  font-weight: 600;
}

/* capabilities */
.can {
  background: var(--night-2);
  position: relative;
}

.can-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .can-grid {
    grid-template-columns: 1fr;
  }
}

.can-item {
  padding: 1.5rem 1.35rem 1.6rem;
  border-top: 2px solid var(--honey);
  background: linear-gradient(180deg, rgba(232, 184, 74, 0.06), transparent 40%);
}

.can-item h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 0.55rem;
  letter-spacing: -0.01em;
}

.can-item p {
  margin: 0;
  color: var(--cream-dim);
  font-size: 0.98rem;
}

.can-num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--honey);
  margin-bottom: 0.85rem;
  letter-spacing: 0.06em;
}

.can-cta {
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 1.75rem;
}

.can-cta-copy {
  max-width: 36rem;
}

.can-cta-lead {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.can-cta-text {
  margin: 0;
  color: var(--cream-dim);
  font-size: 1rem;
}

.can-cta .btn {
  flex-shrink: 0;
}

@media (max-width: 700px) {
  .can-cta {
    align-items: flex-start;
  }
}

/* how */
.how {
  background:
    linear-gradient(180deg, var(--night) 0%, #221b14 100%);
}

.how-finale {
  margin-top: 2.75rem;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
}

.how-finale-copy {
  padding: clamp(1.4rem, 3vw, 2.2rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.how-finale-copy h3 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.65rem;
  line-height: 1.2;
}

.how-finale-copy p {
  margin: 0;
  color: var(--cream-dim);
}

.how-finale img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 260px;
}

.scene-table {
  margin: 2rem 0 0;
  padding: 0;
}

.scene-table img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.scene-table figcaption {
  margin-top: 0.75rem;
  color: rgba(247, 239, 226, 0.55);
  font-size: 0.9rem;
}

@media (max-width: 800px) {
  .how-finale {
    grid-template-columns: 1fr;
  }

  .how-finale img {
    max-height: 300px;
  }
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  counter-reset: step;
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.step {
  position: relative;
  padding: 1.4rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.2);
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--font-display);
  color: var(--honey);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.04em;
}

.step h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-family: var(--font-display);
  font-weight: 600;
}

.step p {
  margin: 0;
  color: var(--cream-dim);
  font-size: 0.93rem;
}

/* team */
.team {
  background:
    radial-gradient(ellipse 70% 50% at 10% 0%, rgba(196, 60, 44, 0.12), transparent 55%),
    var(--night-2);
}

.team-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 800px) {
  .team-layout {
    grid-template-columns: 1fr;
  }
}

.team-panel {
  padding: 1.75rem;
  border: 1px dashed rgba(232, 184, 74, 0.35);
  border-radius: 8px;
  background:
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 18px,
      rgba(232, 184, 74, 0.03) 18px,
      rgba(232, 184, 74, 0.03) 19px
    );
}

.team-panel blockquote {
  margin: 0 0 1.25rem;
  font-size: 1.25rem;
  line-height: 1.4;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.team-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  display: inline-flex;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(232, 184, 74, 0.12);
  color: var(--honey);
  font-size: 0.82rem;
  font-weight: 600;
}

.team-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.team-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--night);
  background: var(--honey);
}

.avatar.alt {
  background: var(--ember);
  color: var(--cream);
}

.avatar.moss {
  background: #6b8f74;
  color: var(--night);
}

.team-list strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.team-list span {
  color: var(--cream-dim);
  font-size: 0.92rem;
}

/* vibe / Ukrainian style note */
.vibe {
  padding: 4rem 0;
  background: linear-gradient(90deg, var(--ember) 0%, #a83224 40%, #8b2a1e 100%);
  color: var(--cream);
}

.vibe .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.vibe h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin: 0 0 0.4rem;
  max-width: 28rem;
  letter-spacing: -0.02em;
}

.vibe p {
  margin: 0;
  max-width: 32rem;
  opacity: 0.92;
}

/* CTA */
.cta {
  padding: 5.5rem 0;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(232, 184, 74, 0.2), transparent 60%),
    var(--night);
}

.cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.cta p {
  margin: 0 auto 1.75rem;
  max-width: 28rem;
  color: var(--cream-dim);
}

.domain-hint {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: rgba(247, 239, 226, 0.55);
}

.domain-hint code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--honey);
  background: rgba(232, 184, 74, 0.08);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

/* footer */
.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--line);
  color: rgba(247, 239, 226, 0.55);
  font-size: 0.9rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.site-footer .brand {
  font-size: 0.85rem;
  color: var(--cream-dim);
}

.site-footer .brand img {
  width: 40px;
  height: 40px;
  border-radius: 0;
}

/* reveal on scroll */
.reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .reveal.is-in {
    opacity: 1;
    transform: none;
  }
}
