/* Top navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 2px solid var(--emerald);
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(16, 88, 64, 0.08);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-logo {
  width: clamp(7.5rem, 14vw, 9rem);
}

.nav {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
  margin-right: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

.nav a {
  position: relative;
  padding: 0.2rem 0;
  transition: color 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav a:hover,
.nav a.is-active {
  color: var(--emerald);
}

.nav a:hover::after,
.nav a.is-active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 2.5rem;
  height: 2.5rem;
  border: 2px solid var(--emerald);
  background: transparent;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.28rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.05rem;
  height: 2px;
  background: var(--emerald);
}

.header-cta {
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 1.2rem;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid var(--emerald);
  background: var(--emerald);
  color: var(--cream);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  background: var(--emerald-deep);
  border-color: var(--emerald-deep);
}

.btn-line {
  background: transparent;
  color: var(--emerald);
}

.btn-line:hover {
  background: var(--emerald);
  color: var(--cream);
}

.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: #1a1208;
}

.btn-gold:hover {
  background: #a06a32;
  border-color: #a06a32;
}

/* Hero */
.hero {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-content: center;
  padding: 3.5rem 0 3rem;
  position: relative;
  border-bottom: 3px solid var(--emerald);
  overflow: hidden;
}

.hero-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-art .orbit-ring {
  position: absolute;
  border: 1.5px solid rgba(16, 88, 64, 0.12);
  border-radius: 50%;
  animation: spin 70s linear infinite;
}

.hero-art .orbit-ring.a {
  width: min(70vw, 520px);
  height: min(70vw, 520px);
  right: -8%;
  top: -12%;
}

.hero-art .orbit-ring.b {
  width: min(48vw, 340px);
  height: min(48vw, 340px);
  right: 4%;
  top: 8%;
  border-color: rgba(184, 124, 60, 0.22);
  animation-direction: reverse;
  animation-duration: 55s;
}

.hero-art .orbit-ring::after {
  content: "";
  position: absolute;
  top: 8%;
  left: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--gold);
}

.hero-watermark {
  position: absolute;
  right: -4%;
  bottom: -8%;
  width: min(55vw, 480px);
  color: rgba(16, 88, 64, 0.07);
}

.float-sun {
  position: absolute;
  top: 18%;
  right: 18%;
  width: 56px;
  color: var(--gold);
  opacity: 0.55;
  animation: floaty 6s ease-in-out infinite;
}

.float-flame {
  position: absolute;
  top: 42%;
  right: 8%;
  width: 36px;
  color: var(--gold);
  opacity: 0.45;
  animation: floaty 7.5s ease-in-out infinite reverse;
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 7.5vw, 5.4rem);
  line-height: 0.98;
  color: var(--emerald);
  letter-spacing: 0.01em;
  max-width: 14ch;
}

.hero-title .line {
  display: block;
}

.hero-title .line-gold {
  color: var(--gold);
}

.hero-aside {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2.5rem;
  align-items: end;
  margin-top: 2.5rem;
}

.hero-logo-block {
  position: relative;
  background: var(--cream);
  padding: 1rem;
  border: 2px solid rgba(16, 88, 64, 0.15);
}

.hero-logo-block::before {
  content: "";
  position: absolute;
  inset: 0.45rem;
  border: 1px dashed rgba(184, 124, 60, 0.4);
  pointer-events: none;
}

.hero-logo-block img {
  width: min(100%, 300px);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.hero-lede {
  font-family: var(--font-story);
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 28ch;
}

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

/* Continuum wave divider */
.wave-band {
  display: block;
  width: 100%;
  height: 72px;
  color: var(--emerald);
  opacity: 0.18;
  overflow: hidden;
}

.wave-band svg {
  width: 200%;
  height: 100%;
  animation: wave-drift 18s linear infinite;
}

/* Essay */
.essay {
  padding: 3.5rem 0 2rem;
}

.essay-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--emerald);
  margin-bottom: 2.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.essay-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 3rem;
}

.essay-columns .span-2 {
  grid-column: 1 / -1;
}

.essay h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.05;
  color: var(--emerald);
  max-width: 16ch;
}

.essay .prose {
  font-family: var(--font-story);
  font-size: 1.12rem;
  line-height: 1.75;
  color: var(--muted);
}

.essay .prose + .prose {
  margin-top: 1rem;
}

.pull {
  margin: 0;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(16, 88, 64, 0.25);
  border-bottom: 1px solid rgba(16, 88, 64, 0.25);
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.15;
  color: var(--emerald);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: center;
}

.pull-icon {
  width: 64px;
  height: 64px;
  color: var(--gold);
  flex-shrink: 0;
}

.pull em {
  font-style: normal;
  color: var(--gold);
}

.triad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 3rem 0 1rem;
  border-top: 2px solid var(--emerald);
  border-bottom: 2px solid var(--emerald);
}

.triad article {
  padding: 1.75rem 1.25rem;
  border-right: 1px solid rgba(16, 88, 64, 0.25);
}

.triad article:last-child {
  border-right: 0;
}

.triad-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 0.85rem;
  color: var(--gold);
}

.triad h3 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2rem;
  color: var(--emerald);
}

.triad p {
  font-family: var(--font-story);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
}

/* Thesis */
.thesis {
  background: var(--emerald-deep);
  color: var(--cream);
  padding: 3.5rem 0;
  border-block: 3px solid var(--gold);
  position: relative;
  overflow: hidden;
}

.thesis-art {
  position: absolute;
  right: -2%;
  top: 50%;
  transform: translateY(-50%);
  width: min(42vw, 380px);
  color: rgba(245, 246, 229, 0.08);
  pointer-events: none;
}

.thesis .wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2.5rem;
  position: relative;
  z-index: 1;
}

.thesis h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  line-height: 1.05;
  color: var(--cream);
  max-width: 14ch;
}

.thesis-list {
  display: grid;
  gap: 0;
}

.thesis-list li {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(245, 246, 229, 0.18);
  font-family: var(--font-story);
  font-size: 1.05rem;
  line-height: 1.5;
  color: rgba(245, 246, 229, 0.82);
}

.thesis-list li:first-child {
  border-top: 1px solid rgba(245, 246, 229, 0.18);
}

.thesis-list strong {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  padding-top: 0.2rem;
}

.focus-label {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.focus-label.dark {
  color: var(--gold);
}

.focus-lede {
  margin: 1rem 0 1.75rem;
  max-width: 46rem;
  font-family: var(--font-story);
  font-size: 1.12rem;
  line-height: 1.7;
  color: rgba(245, 246, 229, 0.82);
}

.portfolio-intro {
  padding: 3.5rem 0 1rem;
  border-bottom: 2px solid var(--emerald);
  margin-bottom: 0.5rem;
}

.portfolio-intro h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--emerald);
}

.portfolio-intro p {
  max-width: 42rem;
  font-family: var(--font-story);
  color: var(--muted);
  font-size: 1.08rem;
}

.platform-note {
  margin: -0.5rem 0 1.75rem;
  max-width: 40rem;
  font-family: var(--font-story);
  color: var(--muted);
  font-size: 1.05rem;
}

.horizon {
  padding: 4.5rem 0;
  background: color-mix(in srgb, var(--cream) 70%, var(--cream-ink));
  border-bottom: 2px solid var(--emerald);
}

.horizon h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  color: var(--emerald);
  max-width: 14ch;
}

.horizon-lede {
  max-width: 44rem;
  font-family: var(--font-story);
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 2rem;
}

.horizon-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 2px solid var(--emerald);
}

.horizon-grid article {
  padding: 1.5rem 1.25rem;
  border-right: 1px solid rgba(16, 88, 64, 0.25);
}

.horizon-grid article:last-child {
  border-right: 0;
}

.horizon-grid h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.65rem;
  color: var(--gold);
}

.horizon-grid p {
  font-family: var(--font-story);
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

/* Products */
.products {
  padding: 0;
}

.product {
  display: grid;
  grid-template-columns: auto 1fr 1.15fr;
  gap: 1.5rem 2rem;
  align-items: center;
  padding: 3.25rem 0;
  border-bottom: 2px solid var(--emerald);
}

.product-visual {
  width: 88px;
  height: 88px;
  border: 2px solid var(--emerald);
  background: color-mix(in srgb, var(--cream) 70%, white);
  display: grid;
  place-items: center;
  color: var(--emerald);
}

.product-visual svg {
  width: 52px;
  height: 52px;
}

.product:nth-child(even) .product-visual {
  color: var(--gold);
  border-color: var(--gold);
}

.product-index {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 7rem);
  line-height: 0.8;
  color: rgba(16, 88, 64, 0.12);
  user-select: none;
}

.product-body h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--emerald);
}

.product-kind {
  display: inline-block;
  margin-bottom: 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.product-body > p {
  font-family: var(--font-story);
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
  max-width: 40ch;
}

.product-body ul {
  margin: 1.1rem 0 1.5rem;
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.product-body li {
  padding-left: 1rem;
  position: relative;
}

.product-body li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* Edge */
.edge {
  padding: 4rem 0;
  border-bottom: 2px solid var(--emerald);
}

.edge-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.edge-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  color: var(--emerald);
}

.edge-deco {
  width: 120px;
  color: var(--gold);
  opacity: 0.7;
}

.edge ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: edge;
}

.edge li {
  counter-increment: edge;
  display: grid;
  grid-template-columns: 4rem auto 1fr;
  gap: 1rem 1.25rem;
  padding: 1.35rem 0;
  border-top: 1px solid rgba(16, 88, 64, 0.2);
  align-items: start;
}

.edge li::before {
  content: counter(edge, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold);
  line-height: 1.2;
}

.edge-glyph {
  width: 36px;
  height: 36px;
  color: var(--emerald);
  margin-top: 0.15rem;
}

.edge h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-ui);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--emerald);
}

.edge p {
  color: var(--muted);
  font-family: var(--font-story);
  font-size: 1.05rem;
  max-width: 52ch;
}

/* Invite */
.invite {
  padding: 4.5rem 0;
}

.invite-box {
  border: 3px solid var(--emerald);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  display: grid;
  grid-template-columns: auto 1.3fr auto;
  gap: 1.5rem;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(184, 124, 60, 0.08), transparent 40%),
    var(--cream);
  position: relative;
  overflow: hidden;
}

.invite-mark {
  width: 72px;
  color: var(--gold);
}

.invite h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.05;
  color: var(--emerald);
  max-width: 12ch;
}

.invite p {
  font-family: var(--font-story);
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 38ch;
}

.invite a.mail {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Footer */
.site-footer {
  border-top: 3px solid var(--emerald);
  padding: 2.5rem 0 1.5rem;
  background: var(--cream-ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.footer-brand img {
  width: 8rem;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-tag {
  margin-top: 0.35rem !important;
  font-size: 0.7rem !important;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--emerald) !important;
}

.site-footer h4 {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.site-footer ul {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer a:hover {
  color: var(--emerald);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(16, 88, 64, 0.2);
  color: var(--muted);
  font-size: 0.85rem;
}

.legal-page {
  padding: 3rem 0 5rem;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0 0 1rem;
  color: var(--emerald);
}

.legal-page .meta {
  color: var(--muted);
  margin-bottom: 2rem;
}

.legal-page h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.2rem;
  color: var(--emerald);
}

.legal-page p {
  color: var(--muted);
  max-width: 62ch;
  font-family: var(--font-story);
}

.fade {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes wave-drift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    display: none;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(var(--header-h) + 0.35rem);
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.55rem;
    background: var(--cream);
    border: 2px solid var(--emerald);
    margin: 0;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.7rem 0.8rem;
  }

  .nav a::after {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .hero-aside,
  .essay-columns,
  .triad,
  .thesis .wrap,
  .product,
  .invite-box,
  .footer-grid,
  .horizon-grid {
    grid-template-columns: 1fr;
  }

  .horizon-grid article {
    border-right: 0;
    border-bottom: 1px solid rgba(16, 88, 64, 0.25);
  }

  .horizon-grid article:last-child {
    border-bottom: 0;
  }

  .product {
    grid-template-columns: auto 1fr;
  }

  .product-index {
    display: none;
  }

  .edge li {
    grid-template-columns: 3rem 1fr;
  }

  .edge-glyph {
    display: none;
  }

  .pull {
    grid-template-columns: 1fr;
  }

  .triad article {
    border-right: 0;
    border-bottom: 1px solid rgba(16, 88, 64, 0.25);
  }

  .triad article:last-child {
    border-bottom: 0;
  }

  .thesis-list li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .thesis-art,
  .float-sun,
  .float-flame {
    display: none;
  }

  .edge-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .invite-box {
    align-items: start;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .essay-columns .span-2 {
    grid-column: auto;
  }
}
