:root {
  --forest: #0e3b2e;
  --forest-900: #06251c;
  --mint: #2e8b6a;
  --aqua: #3aa690;
  --ember: #e4572e;
  --paper: #eff3ef;
  --paper-2: #f8faf7;
  --ink: #11251f;
  --muted: #60776e;
  --line: rgba(14, 59, 46, 0.16);
  --shadow: 0 24px 70px rgba(6, 37, 28, 0.18);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(14, 59, 46, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(14, 59, 46, 0.04) 1px, transparent 1px),
    var(--paper);
  background-size: 48px 48px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::selection {
  color: var(--paper-2);
  background: var(--ember);
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 64px);
  color: var(--paper-2);
  transition: background 220ms ease, box-shadow 220ms ease, color 220ms ease;
}

.site-header.is-scrolled {
  color: var(--forest);
  background: rgba(248, 250, 247, 0.88);
  box-shadow: 0 10px 30px rgba(6, 37, 28, 0.09);
  backdrop-filter: blur(18px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
  font-weight: 800;
}

.brand-icon {
  display: grid;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  background: var(--paper-2);
  place-items: center;
}

.site-header.is-scrolled .brand-icon {
  border-color: rgba(14, 59, 46, 0.2);
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-mark strong,
.brand-mark small {
  display: block;
  line-height: 1.05;
}

.brand-mark small {
  margin-top: 4px;
  color: currentColor;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  opacity: 0.75;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 30px);
  font-size: 0.86rem;
  font-weight: 700;
}

.nav-links a {
  opacity: 0.78;
}

.nav-links a:hover {
  opacity: 1;
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  font-weight: 800;
  white-space: nowrap;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border 180ms ease;
}

.header-cta {
  padding: 0 18px;
}

.header-cta:hover,
.button:hover {
  transform: translateY(-2px);
}

.hero {
  position: relative;
  display: grid;
  min-height: 92vh;
  padding: 132px clamp(18px, 6vw, 88px) 80px;
  overflow: hidden;
  color: var(--paper-2);
  align-items: end;
}

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

.hero-bg {
  background:
    linear-gradient(120deg, rgba(6, 37, 28, 0.98) 0%, rgba(14, 59, 46, 0.93) 44%, rgba(239, 243, 239, 0.78) 100%),
    linear-gradient(90deg, rgba(58, 166, 144, 0.16) 1px, transparent 1px),
    linear-gradient(rgba(58, 166, 144, 0.12) 1px, transparent 1px);
  background-size: auto, 54px 54px, 54px 54px;
}

.hero-overlay {
  background:
    linear-gradient(0deg, rgba(6, 37, 28, 0.54) 0%, transparent 44%),
    linear-gradient(90deg, rgba(6, 37, 28, 0.42), transparent 72%);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(760px, 100%);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--aqua);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow span {
  color: var(--ember);
}

.hero h1 {
  margin: 0;
  font-size: clamp(4rem, 11vw, 10.5rem);
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: 0;
}

.hero-copy {
  width: min(690px, 100%);
  margin: 28px 0 0;
  color: rgba(248, 250, 247, 0.86);
  font-size: clamp(1.12rem, 2vw, 1.45rem);
  font-weight: 600;
  line-height: 1.5;
}

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

.button {
  padding: 0 22px;
}

.button.primary {
  border-color: var(--ember);
  color: var(--paper-2);
  background: var(--ember);
}

.button.secondary {
  color: currentColor;
  background: rgba(255, 255, 255, 0.08);
}

.hero-terminal {
  position: absolute;
  z-index: 4;
  right: clamp(18px, 6vw, 88px);
  bottom: 44px;
  width: min(420px, calc(100% - 36px));
  overflow: hidden;
  border: 1px solid rgba(58, 166, 144, 0.42);
  border-radius: var(--radius);
  background: rgba(6, 37, 28, 0.76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-brand-card {
  position: absolute;
  z-index: 2;
  right: clamp(20px, 7vw, 100px);
  top: 118px;
  width: min(520px, 40vw);
  overflow: hidden;
  border: 1px solid rgba(239, 243, 239, 0.26);
  border-radius: var(--radius);
  background: rgba(6, 37, 28, 0.62);
  box-shadow: 0 36px 90px rgba(6, 37, 28, 0.36);
  transform: rotate(-1deg);
}

.hero-brand-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.terminal-top {
  display: flex;
  gap: 7px;
  padding: 13px 15px;
  border-bottom: 1px solid rgba(58, 166, 144, 0.22);
}

.terminal-top span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--aqua);
}

.terminal-top span:first-child {
  background: var(--ember);
}

.hero-terminal code {
  display: grid;
  gap: 10px;
  padding: 18px;
  color: rgba(248, 250, 247, 0.88);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  line-height: 1.45;
}

.code-line.success {
  color: #72d8c1;
}

.brand-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}

.brand-strip p {
  margin: 0;
  padding: 22px 12px;
  border-right: 1px solid var(--line);
  color: var(--forest);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.brand-strip p:last-child {
  border-right: 0;
}

.section {
  padding: clamp(76px, 10vw, 132px) clamp(18px, 6vw, 88px);
}

.section-heading {
  width: min(780px, 100%);
  margin-bottom: 38px;
}

.section-heading h2,
.process-panel h2,
.contact h2 {
  margin: 0;
  color: var(--forest-900);
  font-size: clamp(2.2rem, 5vw, 5.2rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: 0;
}

.manifesto-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 1.22fr);
  gap: clamp(22px, 4vw, 56px);
  align-items: stretch;
}

.manifesto-copy {
  display: grid;
  align-content: end;
  gap: 18px;
  padding-bottom: 6px;
}

.manifesto-copy p,
.service-card p,
.timeline p,
.contact p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.manifesto-copy p {
  font-size: clamp(1.03rem, 1.4vw, 1.18rem);
}

.identity-board {
  display: grid;
  align-content: space-between;
  gap: 14px;
  min-height: 360px;
  padding: 14px;
  border: 1px solid rgba(14, 59, 46, 0.15);
  border-radius: var(--radius);
  background: var(--paper-2);
  box-shadow: 0 24px 58px rgba(6, 37, 28, 0.12);
}

.identity-board figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(14, 59, 46, 0.12);
  border-radius: var(--radius);
  background: #fff;
}

.identity-board img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.identity-main {
  aspect-ratio: 16 / 7;
}

.identity-gallery {
  display: grid;
  grid-template-columns: 0.8fr 1.35fr 1fr;
  gap: 14px;
}

.identity-gallery figure {
  aspect-ratio: 16 / 10;
}

.services {
  background: var(--forest-900);
}

.services .section-heading h2 {
  color: var(--paper-2);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.service-card {
  min-height: 280px;
  padding: 26px;
  border: 1px solid rgba(239, 243, 239, 0.14);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(58, 166, 144, 0.16), rgba(14, 59, 46, 0.16));
}

.service-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 32px;
  border-radius: 999px;
  color: var(--paper-2);
  background: var(--ember);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 800;
}

.service-card h3 {
  margin: 92px 0 14px;
  color: var(--paper-2);
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.1;
}

.service-card p {
  color: rgba(239, 243, 239, 0.72);
}

.process {
  background: var(--paper-2);
}

.process-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}

.timeline {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.timeline li {
  display: grid;
  grid-template-columns: 64px minmax(110px, 0.35fr) 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.timeline span {
  color: var(--ember);
  font-family: "JetBrains Mono", monospace;
  font-weight: 800;
}

.timeline strong {
  color: var(--forest);
  font-size: 1.2rem;
}

.contact {
  position: relative;
  padding: clamp(86px, 12vw, 154px) clamp(18px, 6vw, 88px);
  overflow: hidden;
  color: var(--paper-2);
  background:
    linear-gradient(135deg, rgba(228, 87, 46, 0.2), transparent 32%),
    linear-gradient(90deg, rgba(58, 166, 144, 0.18), transparent 62%),
    var(--forest);
}

.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background:
    linear-gradient(90deg, rgba(239, 243, 239, 0.28) 1px, transparent 1px),
    linear-gradient(rgba(239, 243, 239, 0.2) 1px, transparent 1px);
  background-size: 54px 54px;
  mix-blend-mode: screen;
}

.contact-content {
  position: relative;
  width: min(780px, 100%);
}

.contact h2 {
  color: var(--paper-2);
}

.contact p {
  width: min(620px, 100%);
  margin-top: 24px;
  color: rgba(239, 243, 239, 0.76);
  font-size: 1.1rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 6vw, 88px);
  color: var(--paper-2);
  background: var(--forest-900);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  font-weight: 800;
}

.site-footer p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .hero {
    min-height: 88vh;
    padding-bottom: 220px;
  }

  .hero-terminal {
    left: clamp(18px, 6vw, 88px);
    right: auto;
  }

  .hero-brand-card {
    top: 104px;
    right: -76px;
    width: 430px;
    opacity: 0.2;
    z-index: 1;
  }

  .hero-brand-card.reveal.is-visible {
    opacity: 0.2;
  }

  .manifesto-grid,
  .process-panel,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 230px;
  }

  .service-card h3 {
    margin-top: 68px;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 68px;
  }

  .brand-mark {
    min-width: 0;
  }

  .brand-mark span:last-child {
    display: none;
  }

  .header-cta {
    min-height: 40px;
    padding-inline: 14px;
    font-size: 0.86rem;
  }

  .hero {
    min-height: 92vh;
    padding-top: 116px;
    padding-bottom: 212px;
  }

  .hero h1 {
    font-size: clamp(3.4rem, 22vw, 6.2rem);
  }

  .hero-copy {
    font-size: 1rem;
  }

  .button {
    width: 100%;
  }

  .hero-terminal {
    bottom: 26px;
  }

  .hero-brand-card {
    display: none;
  }

  .brand-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .brand-strip p {
    border-bottom: 1px solid var(--line);
  }

  .identity-board {
    min-height: 260px;
  }

  .identity-gallery {
    grid-template-columns: 1fr;
  }

  .timeline li {
    grid-template-columns: 48px 1fr;
    gap: 10px 16px;
  }

  .timeline p {
    grid-column: 2;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
