:root {
  --paper: #f7f2e8;
  --paper-2: #fffaf1;
  --ink: #121417;
  --muted: #5f676f;
  --panel: rgba(255, 250, 241, 0.82);
  --panel-solid: #fffaf1;
  --line: rgba(18, 20, 23, 0.14);
  --signal: #0f766e;
  --coral: #ff5a3d;
  --sky: #2f80ed;
  --plum: #6d4aff;
  --lime: #c7f464;
  --shadow: 0 18px 54px rgba(24, 32, 38, 0.12);
  font-family: "Aptos", "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(18, 20, 23, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(18, 20, 23, 0.045) 1px, transparent 1px),
    linear-gradient(135deg, #f7f2e8 0%, #eef7ff 43%, #fff0e9 100%);
  background-size: 36px 36px, 36px 36px, auto;
  overflow-x: hidden;
}

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

.ambient-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 18%, rgba(255, 90, 61, 0.12) 18% 24%, transparent 24% 100%),
    linear-gradient(25deg, transparent 0 64%, rgba(47, 128, 237, 0.12) 64% 70%, transparent 70% 100%);
  z-index: -1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 242, 232, 0.78);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.hero-actions,
.contact-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand {
  font-weight: 850;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--lime);
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 0.76rem;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
}

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

.section-shell {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 1rem;
  align-items: stretch;
  padding: 4.3rem 0 1rem;
}

.hero-copy,
.console-panel,
.metric-card,
.system-card,
.timeline-item,
.proof-card,
.contact {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-copy {
  position: relative;
  min-height: 28rem;
  padding: clamp(1.4rem, 4vw, 3rem);
  overflow: hidden;
}

.hero-copy::after {
  content: "OPS x AI";
  position: absolute;
  right: 1.2rem;
  bottom: 1rem;
  color: rgba(18, 20, 23, 0.06);
  font-size: 7rem;
  font-weight: 950;
  line-height: 1;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--signal);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 1.2rem;
  font-size: 5.25rem;
  line-height: 0.98;
}

h2 {
  margin-bottom: 0.8rem;
  font-size: 3.1rem;
  line-height: 1.02;
}

h3 {
  font-size: 1.2rem;
  line-height: 1.22;
}

.hero-subtitle,
.section-intro p,
.contact p,
.proof-card p,
.timeline-item p,
.system-card p,
.system-card li,
.metric-card p {
  color: var(--muted);
  line-height: 1.55;
}

.hero-subtitle {
  max-width: 680px;
  font-size: 1.16rem;
}

.button {
  min-height: 2.9rem;
  padding: 0.78rem 1rem;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-weight: 850;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 5px 5px 0 var(--ink);
}

.button-primary {
  background: var(--coral);
  color: #fffaf1;
}

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

.console-panel {
  display: flex;
  min-height: 28rem;
  flex-direction: column;
  padding: 1.25rem;
  background: #141820;
  color: #f8f3ea;
  border-color: rgba(18, 20, 23, 0.6);
}

.console-topline {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #bcc7d3;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 0.78rem;
}

.status-dot {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 22px rgba(199, 244, 100, 0.8);
}

.console-name {
  margin-top: 1.5rem;
  font-size: 2.85rem;
  font-weight: 950;
  line-height: 1;
}

.console-role {
  margin-top: 0.8rem;
  color: #ffd1c7;
}

.signal-stack {
  display: grid;
  gap: 0.65rem;
  margin-top: auto;
}

.signal-stack div {
  display: grid;
  gap: 0.2rem;
  padding: 0.82rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.signal-stack span,
.metric-card span,
.timeline-item span,
.card-index {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.signal-stack span {
  color: #9fb2c5;
}

.ticker {
  display: flex;
  width: min(1160px, calc(100% - 2rem));
  margin: 0.75rem auto 1rem;
  gap: 0.55rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.ticker::-webkit-scrollbar {
  display: none;
}

.ticker span {
  flex: 0 0 auto;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.74);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.metrics {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 1fr 1fr;
  gap: 0.75rem;
  align-items: stretch;
  padding-bottom: 2.5rem;
}

.metric-card {
  display: grid;
  grid-template-rows: auto auto 1fr;
  align-content: start;
  min-height: 10.5rem;
  padding: 1rem;
}

.metric-card:first-child {
  background: #151923;
  color: #fffaf1;
}

.metric-card:first-child p,
.metric-card:first-child span {
  color: #c6d1db;
}

.metric-card:nth-child(2) {
  background: #fff0e9;
}

.metric-card:nth-child(3) {
  background: #edf6ff;
}

.metric-card:nth-child(4) {
  background: #f0f7db;
}

.metric-card:nth-child(5) {
  background: #f3ecff;
}

.metric-card strong {
  display: block;
  margin: 0.95rem 0 0.6rem;
  color: inherit;
  font-size: 3rem;
  line-height: 0.95;
}

.metric-card p {
  margin-bottom: 0;
  align-self: start;
}

.systems-section {
  padding: 2rem 0 2.4rem;
  border-top: 1px solid var(--line);
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.65fr);
  gap: 1rem;
  align-items: start;
  margin-bottom: 1rem;
}

.compact-intro {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.compact-intro h2 {
  max-width: 680px;
}

.compact-intro p:last-child {
  margin: 1.65rem 0 0;
  max-width: 560px;
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: stretch;
}

.system-card {
  display: grid;
  grid-template-rows: auto auto minmax(5rem, auto) 1fr;
  min-height: 21rem;
  padding: 1.1rem;
  align-content: start;
}

.system-card:nth-child(1) {
  background: #151923;
  color: #fffaf1;
}

.system-card:nth-child(1) p,
.system-card:nth-child(1) li,
.system-card:nth-child(1) .card-index {
  color: #c6d1db;
}

.system-card:nth-child(2) {
  background: #fff0e9;
}

.system-card:nth-child(3) {
  background: #edf6ff;
}

.system-card:nth-child(4) {
  background: #f0f7db;
}

.system-card h3 {
  margin: 1.2rem 0 0.75rem;
  font-size: 1.75rem;
}

.system-card p {
  margin-bottom: 1rem;
}

.system-card ul {
  display: grid;
  gap: 0.52rem;
  margin: 0;
  padding-left: 1rem;
  align-self: start;
}

.resume-section {
  padding: 2.2rem 0 2.8rem;
}

.timeline {
  display: grid;
  gap: 0.7rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 0.75rem 1rem;
  padding: 1rem;
}

.timeline-item span {
  grid-row: 1 / 3;
}

.timeline-item h3 {
  margin-bottom: 0;
}

.timeline-item p {
  margin-bottom: 0;
}

.proof-section {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  padding-bottom: 0.75rem;
}

.proof-card {
  min-height: 12rem;
  padding: 1.15rem;
}

.proof-card:first-child {
  background: #151923;
  color: #fffaf1;
}

.proof-card:first-child p {
  color: #c6d1db;
}

.credential-section {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: 0.75rem;
  padding-bottom: 2.8rem;
}

.credential-intro,
.credential-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.credential-intro {
  padding: 1rem;
  background: #f0f7db;
}

.credential-intro h2 {
  margin-bottom: 0;
  font-size: 2.4rem;
}

.credential-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: stretch;
}

.credential-card {
  display: grid;
  grid-template-rows: auto auto 1fr;
  align-content: start;
  min-height: 11rem;
  padding: 1rem;
}

.credential-card:nth-child(1) {
  background: #fff0e9;
}

.credential-card:nth-child(2) {
  background: #edf6ff;
}

.credential-card:nth-child(3) {
  background: #f0f7db;
}

.credential-card:nth-child(4) {
  background: #151923;
  color: #fffaf1;
}

.credential-card span {
  display: block;
  margin-bottom: 1.2rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.credential-card h3 {
  margin-bottom: 0.85rem;
}

.credential-card p {
  margin-bottom: 0;
  align-self: start;
}

.credential-card:nth-child(4) span,
.credential-card:nth-child(4) p {
  color: #c6d1db;
}

.contact {
  padding: 2rem;
  margin-bottom: 2.2rem;
  background: #151923;
  color: #fffaf1;
}

.contact .eyebrow {
  color: var(--lime);
}

.contact h2 {
  max-width: 760px;
}

.contact p {
  max-width: 680px;
  color: #c6d1db;
}

.contact-links {
  flex-wrap: wrap;
  margin-top: 1.4rem;
}

.contact-links a {
  padding: 0.76rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fffaf1;
  background: rgba(255, 255, 255, 0.08);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.profile-assistant {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 20;
  display: grid;
  justify-items: end;
  gap: 0.75rem;
  max-width: min(360px, calc(100vw - 2rem));
}

.assistant-bubble {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 0.55rem 0.8rem 0.55rem 0.55rem;
  background: var(--lime);
  color: var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.assistant-icon {
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 auto;
  border: 1px solid rgba(18, 20, 23, 0.18);
  border-radius: 50%;
  background: #fffaf1;
  padding: 0.24rem;
  object-fit: contain;
}

.assistant-panel {
  border: 1px solid var(--ink);
  border-radius: 12px;
  background: var(--panel-solid);
  box-shadow: 8px 8px 0 var(--ink);
  padding: 1rem;
}

.assistant-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.assistant-close {
  width: 1.8rem;
  height: 1.8rem;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.assistant-answer {
  margin-bottom: 0.85rem;
  color: var(--muted);
  line-height: 1.45;
}

.assistant-prompts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  max-height: 15rem;
  overflow-y: auto;
}

.assistant-prompts button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.62rem;
  background: #edf6ff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  text-align: left;
}

.assistant-prompts button:nth-child(2) {
  background: #fff0e9;
}

.assistant-prompts button:nth-child(3) {
  background: #f0f7db;
}

.assistant-prompts button:nth-child(4) {
  background: #f3ecff;
}

.assistant-quote {
  margin: 0.9rem 0 0;
  padding-left: 0.8rem;
  border-left: 3px solid var(--coral);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

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

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

@media (max-width: 1080px) {
  h1 {
    font-size: 4.25rem;
  }

  h2 {
    font-size: 2.55rem;
  }

  .metrics,
  .system-grid,
  .credential-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .hero,
  .section-intro,
  .credential-section {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .console-panel {
    min-height: auto;
  }

  .console-panel {
    gap: 1.5rem;
  }

  .compact-intro p:last-child {
    margin-top: 0;
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    padding: 0.75rem 1rem;
  }

  .brand span:last-child {
    max-width: 9rem;
    line-height: 1.1;
  }

  .nav-links {
    gap: 0.6rem;
    font-size: 0.85rem;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-copy {
    padding: 1.1rem;
  }

  .hero-copy::after {
    display: none;
  }

  h1 {
    font-size: 3.15rem;
    line-height: 1.02;
  }

  h2 {
    font-size: 2.15rem;
  }

  .hero-subtitle {
    font-size: 1.02rem;
  }

  .hero-actions,
  .contact-links {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .contact-links a {
    text-align: center;
  }

  .metrics,
  .system-grid,
  .proof-section,
  .credential-grid,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .metric-card,
  .system-card,
  .proof-card {
    min-height: auto;
  }

  .timeline-item span {
    grid-row: auto;
  }

  .contact {
    padding: 1.2rem;
  }

  .profile-assistant {
    left: 1rem;
    right: 1rem;
    justify-items: stretch;
  }

  .assistant-bubble {
    justify-content: center;
  }

  .assistant-prompts {
    grid-template-columns: 1fr;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
