:root {
  --ink: #14181c;
  --ink-soft: #3d463f;
  --paper: #f3efe6;
  --paper-2: #e8e2d4;
  --white: #fbfaf6;
  --rise: #e4531a;
  --rise-deep: #b83a0e;
  --pine: #14332c;
  --pine-2: #0d2420;
  --gold: #d7b27a;
  --line: rgba(20, 24, 28, 0.12);
  --line-light: rgba(243, 239, 230, 0.16);
  --shadow: 0 24px 60px rgba(20, 24, 28, 0.12);
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --nav: 76px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font-family: inherit; }
button { cursor: pointer; }
:focus-visible {
  outline: 2px solid var(--rise);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  background: var(--rise);
  color: white;
  padding: 8px 12px;
  z-index: 100;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 560;
  color: var(--rise);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--rise);
}

h1, h2, h3, .serif { font-family: var(--serif); font-weight: 560; letter-spacing: -0.03em; }
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.02;
  margin: 12px 0 16px;
}
.section-head p, .lede { color: var(--ink-soft); font-size: 1.05rem; margin: 0; }
.em { font-style: italic; color: var(--rise); }
.tagline {
  margin: 14px 0 22px;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.3vw, 1.9rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--gold);
}
.tagline em { font-style: italic; color: var(--paper); }
.tagline-quiet { font-size: 1.2rem; margin: 16px 0 8px; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav);
  display: flex;
  align-items: center;
  background: rgba(243, 239, 230, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 1.7rem;
  letter-spacing: -0.03em;
  font-weight: 560;
  color: var(--ink);
}
.nav .logo {
  color: var(--pine);
  background: none;
  box-shadow: none;
  padding: 0;
  gap: 0;
  font-size: 1.7rem;
  line-height: 1;
  letter-spacing: 0;
}
.logo-word {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  line-height: 1;
}
.nav .logo-rize { color: var(--rise); }
.footer .logo {
  color: var(--paper);
  font-size: 1.4rem;
}
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a {
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  background: var(--rise);
  color: white;
  font-weight: 560;
  font-size: 0.95rem;
  transition: transform 0.2s ease, background 0.2s ease;
}
.btn:hover { background: var(--rise-deep); transform: translateY(-1px); }
.btn.dark { background: var(--ink); }
.btn.dark:hover { background: #000; }
.btn.ghost {
  background: transparent;
  color: var(--paper);
  border: 1px solid rgba(243, 239, 230, 0.35);
}
.btn.ghost:hover { background: rgba(243, 239, 230, 0.08); }
.btn.ghost-ink {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn.ghost-ink:hover { background: white; }
.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  position: relative;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  position: absolute;
  left: 13px;
}
.menu-btn span { top: 21px; }
.menu-btn span::before, .menu-btn span::after { content: ""; left: 0; }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }

/* Hero */
.stage {
  height: calc(100svh - var(--nav));
  min-height: 620px;
  display: flex;
  flex-direction: column;
  background: var(--pine-2);
}
.hero {
  position: relative;
  flex: 1;
  min-height: 0;
  background: transparent;
  color: var(--paper);
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 28px 0 20px;
}
.hero-sun {
  position: absolute;
  width: 560px;
  height: 560px;
  right: -120px;
  bottom: -260px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, #ffd0b0 0%, #e4531a 38%, rgba(228, 83, 26, 0.15) 62%, transparent 72%);
  pointer-events: none;
}
.hero-horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(215, 178, 122, 0.45), transparent);
}
.hero .tagline { margin: 0 0 12px; }
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: start;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}
.hero-panel { margin-top: 4px; }
.hero h1 {
  font-size: clamp(2.35rem, 3.7vw, 3.55rem);
  line-height: 1.05;
  margin: 0 0 14px;
  max-width: 17ch;
  min-height: 3.15em;
}
.hero .lede {
  color: rgba(243, 239, 230, 0.78);
  max-width: 42ch;
  font-size: 1.05rem;
  min-height: 3.3em;
}
.hero h1, .hero .lede { transition: opacity 0.22s ease; }
.hero h1.is-swapping, .hero .lede.is-swapping { opacity: 0; }
.hero-proof {
  margin: 18px 0 0;
  color: rgba(243, 239, 230, 0.62);
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}
.hero-actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.hero-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
}
.hero-controls button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(243, 239, 230, 0.3);
  background: transparent;
  color: var(--paper);
  font-size: 18px;
}
.hero-controls button:hover { background: rgba(243, 239, 230, 0.08); }
.slide-count { font-variant-numeric: tabular-nums; letter-spacing: 0.12em; font-size: 0.85rem; color: var(--gold); }
.hero-panel {
  background: rgba(243, 239, 230, 0.06);
  border: 1px solid rgba(243, 239, 230, 0.12);
  border-radius: 28px;
  padding: 22px;
  backdrop-filter: blur(8px);
}
.hero-panel button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: rgba(243, 239, 230, 0.55);
  padding: 16px 14px;
  border-radius: 16px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
}
.hero-panel button strong {
  display: block;
  font-weight: 520;
  color: inherit;
  font-size: 1rem;
}
.hero-panel button.active {
  background: rgba(228, 83, 26, 0.16);
  color: var(--paper);
  box-shadow: inset 3px 0 0 var(--rise);
}
.hero-panel .num { font-family: var(--serif); color: var(--gold); font-size: 0.95rem; }

.marquee {
  background: var(--rise);
  color: white;
  overflow: hidden;
  padding: 14px 0;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  gap: 28px;
  animation: ticker 28s linear infinite;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 28px; }
.marquee-track span::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: white;
  opacity: 0.7;
}
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.about-card {
  background: var(--pine);
  color: var(--paper);
  border-radius: 32px;
  min-height: 420px;
  padding: 36px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.about-card .big {
  font-family: var(--serif);
  font-size: clamp(4rem, 7vw, 6.5rem);
  line-height: 0.85;
  margin: 0;
  color: var(--paper);
}
.about-card .tagline { color: var(--gold); max-width: 16ch; }
.about-card p { margin: 0; max-width: 28ch; color: rgba(243, 239, 230, 0.8); }
.about-copy h2 { font-size: clamp(2.6rem, 4vw, 3.8rem); line-height: 1.02; margin: 10px 0 18px; }
.about-copy p { color: var(--ink-soft); margin: 0 0 16px; }

/* Why */
.why-grid, .pod-grid, .service-grid, .step-grid, .stat-grid, .industry-grid {
  display: grid;
  gap: 18px;
}
.why-grid { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
}
.card h3 { margin: 18px 0 10px; font-size: 1.7rem; line-height: 1.1; }
.card p { margin: 0; color: var(--ink-soft); }
.card .index {
  font-family: var(--serif);
  color: var(--rise);
  font-size: 1.1rem;
}
.card.featured {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.card.featured p { color: rgba(243, 239, 230, 0.75); }
.card.featured .index { color: var(--gold); }

/* Stats */
.stats { background: var(--pine); color: var(--paper); }
.stat-grid { grid-template-columns: repeat(4, 1fr); }
.stat h3 {
  font-size: clamp(3rem, 5vw, 4.4rem);
  margin: 0 0 8px;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.stat p { margin: 8px 0 0; color: rgba(243, 239, 230, 0.72); }
.stat strong { display: block; font-weight: 520; font-size: 1.05rem; }

/* Services */
.service-grid { grid-template-columns: 1.3fr 1fr; }
.service {
  border-radius: 28px;
  padding: 32px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--white);
  border: 1px solid var(--line);
}
.service.lead {
  background: var(--ink);
  color: var(--paper);
  grid-row: span 2;
  min-height: 100%;
}
.service h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 12px 0; line-height: 1.05; }
.service p { margin: 0; color: var(--ink-soft); max-width: 42ch; }
.service.lead p { color: rgba(243, 239, 230, 0.75); }
.tag {
  align-self: flex-start;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 6px 10px;
  opacity: 0.8;
}

/* Pods */
.pod-grid { grid-template-columns: repeat(4, 1fr); }
.pod { padding: 8px 8px 8px 0; }
.pod h3 { font-size: 1.45rem; margin: 0 0 10px; }
.pod p { margin: 0; color: var(--ink-soft); }
.rule { height: 2px; width: 36px; background: var(--rise); margin-bottom: 18px; }

/* Steps */
.steps { background: var(--ink); color: var(--paper); }
.step-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step .n {
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--gold);
  display: block;
  margin-bottom: 12px;
}
.step h3 { margin: 0 0 10px; font-size: 1.7rem; }
.step p { margin: 0; color: rgba(243, 239, 230, 0.72); }

/* Tech */
.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 28px;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 10px 16px;
  white-space: nowrap;
  color: var(--ink-soft);
}
.tabs button[aria-selected="true"] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.tech-pane { display: none; }
.tech-pane.active { display: block; }
.tech-intro { color: var(--ink-soft); margin: 0 0 18px; }
.tech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tech-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 22px;
}
.tech-card h3 { margin: 0 0 6px; font-size: 1.2rem; }
.tech-card p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }

/* Industries */
.industries { background: var(--paper-2); }
.industry-grid { grid-template-columns: 1.15fr 1fr 1fr; }
.industry {
  border-radius: 24px;
  padding: 28px;
  background: var(--pine);
  color: var(--paper);
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.industry.tall { min-height: 100%; grid-row: span 2; background: var(--ink); }
.industry h3 { margin: 8px 0; font-size: 2rem; }
.industry p { margin: 0; color: rgba(243, 239, 230, 0.75); }
.stack { display: grid; gap: 18px; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: clamp(24px, 4vw, 48px);
}
.contact-grid h2 { font-size: clamp(2.4rem, 4vw, 3.6rem); line-height: 1; margin: 10px 0 16px; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; }
.contact-list li { margin-bottom: 16px; }
.contact-list span { display: block; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rise); }
form { display: grid; gap: 12px; }
label { font-size: 0.85rem; color: var(--ink-soft); display: grid; gap: 6px; }
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 1rem;
  color: var(--ink);
}
textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-note { min-height: 1.2em; font-size: 0.92rem; color: var(--pine); margin: 0; }

/* Footer */
.footer { background: var(--pine-2); color: var(--paper); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.4fr; gap: 32px; }
.footer h2 { margin: 0 0 12px; font-size: 1.4rem; }
.footer p, .footer li { color: rgba(243, 239, 230, 0.75); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer a:hover { color: white; }
.socials { display: flex; flex-wrap: wrap; gap: 10px 16px; color: rgba(243, 239, 230, 0.75); }
.sub {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--line-light);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.92rem;
  color: rgba(243, 239, 230, 0.65);
}
.sub nav { display: flex; gap: 18px; }

/* Legal */
.legal { padding: 48px 0 96px; }
.legal h1 { font-size: clamp(2.6rem, 5vw, 4rem); margin: 12px 0 8px; }
.legal h2 { font-size: 1.5rem; margin: 32px 0 8px; }
.legal p, .legal li { color: var(--ink-soft); }
.legal .meta { color: var(--ink-soft); }

.reveal { opacity: 0; transform: translateY(16px); animation: rise 0.7s ease forwards; }
.d2 { animation-delay: 0.12s; }
.d3 { animation-delay: 0.22s; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: var(--nav);
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 12px 22px 22px;
    gap: 14px;
  }
  .menu-btn { display: inline-block; }
  .nav-cta { display: none; }
  .hero-grid, .about-grid, .why-grid, .service-grid, .pod-grid, .step-grid, .stat-grid, .industry-grid, .contact-grid, .footer-grid, .tech-grid, .form-row {
    grid-template-columns: 1fr;
  }
  .service.lead, .industry.tall { grid-row: auto; }
  .stage { height: auto; min-height: 0; }
  .hero { padding: 40px 0 32px; }
  .hero h1, .hero .lede { min-height: 0; }
  .hero h1 { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .marquee-track { animation: none; }
  .reveal { opacity: 1; transform: none; }
}
