:root {
  --ink: #102f35;
  --ink-2: #173e45;
  --cream: #f5f1e8;
  --paper: #fffdf8;
  --coral: #ff6846;
  --lime: #d4f75e;
  --muted: #607176;
  --line: rgba(16, 47, 53, 0.18);
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .7rem 1rem; background: var(--lime); color: var(--ink); font-weight: 700; }
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem max(2rem, calc((100vw - var(--max)) / 2));
  background: rgba(245, 241, 232, .92);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  transition: border-color .25s ease, padding .25s ease;
}
.site-header.scrolled { border-color: var(--line); padding-top: .65rem; padding-bottom: .65rem; }
.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; font-family: "Manrope", sans-serif; font-weight: 800; }
.brand-mark { display: grid; place-items: center; width: 2.35rem; height: 2.35rem; border-radius: 50%; background: var(--ink); color: var(--lime); font-size: .75rem; letter-spacing: .05em; }
.brand-name { font-size: .95rem; }
.site-nav { display: flex; align-items: center; gap: 1.9rem; }
.site-nav a { text-decoration: none; font-size: .88rem; font-weight: 600; }
.site-nav a:hover { color: var(--coral); }
.site-nav .nav-cta { padding: .62rem 1rem; border: 1px solid var(--ink); border-radius: 999px; }
.site-nav .nav-cta:hover { background: var(--ink); color: white; }
.menu-button { display: none; background: none; border: 0; padding: .5rem; }
.menu-button span:not(.sr-only) { display: block; width: 1.35rem; height: 2px; margin: 4px 0; background: var(--ink); }

.hero {
  max-width: var(--max);
  min-height: 720px;
  margin: 0 auto;
  padding: 7.5rem 2rem 5rem;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: clamp(3rem, 8vw, 7rem);
}
.eyebrow, .section-number { margin: 0 0 1.5rem; font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: .65rem; }
.eyebrow span { width: 2.5rem; height: 2px; background: var(--coral); }
h1, h2, h3 { margin: 0; font-family: "Manrope", sans-serif; line-height: 1.04; letter-spacing: -.04em; }
h1 { max-width: 780px; font-size: clamp(3.4rem, 7vw, 6.8rem); }
h1 em, .contact-section h2 em { color: var(--coral); font-style: normal; }
.hero-intro { max-width: 650px; margin: 2rem 0 0; font-size: clamp(1.1rem, 1.7vw, 1.35rem); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.6rem; margin-top: 2.25rem; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 3.15rem; padding: 0 1.25rem; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .9rem; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--ink); color: white; }
.button-primary:hover { background: var(--coral); }
.text-link { font-weight: 600; text-underline-offset: .32rem; }
.text-link span { color: var(--coral); }

.hero-system { position: relative; min-height: 490px; padding: 1.4rem; background: var(--ink); color: white; overflow: hidden; }
.hero-system::before { content: ""; position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px); background-size: 30px 30px; }
.system-topline, .system-footer { position: relative; z-index: 2; display: flex; justify-content: space-between; font-size: .58rem; font-weight: 700; letter-spacing: .13em; }
.live-dot::before { content: ""; display: inline-block; width: .45rem; height: .45rem; margin-right: .4rem; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgba(212,247,94,.13); }
.system-orbit { position: relative; display: grid; place-items: center; height: 380px; }
.orbit-ring { position: absolute; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; }
.orbit-ring-one { width: 290px; height: 290px; }
.orbit-ring-two { width: 210px; height: 210px; border-style: dashed; animation: spin 28s linear infinite; }
.system-core { z-index: 2; display: grid; place-items: center; width: 135px; height: 135px; border-radius: 50%; background: var(--lime); color: var(--ink); font-size: .57rem; font-weight: 800; letter-spacing: .12em; }
.system-core strong { color: var(--coral); font-size: 1.1rem; }
.orbit-label { position: absolute; z-index: 3; padding: .35rem .6rem; background: var(--paper); color: var(--ink); font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.label-one { top: 2.8rem; left: 3.2rem; }
.label-two { right: .6rem; top: 9rem; }
.label-three { bottom: 3rem; right: 4.4rem; }
.label-four { bottom: 7rem; left: .5rem; }
.system-footer { align-items: center; }
.system-footer i { flex: 1; height: 1px; margin: 0 .5rem; background: rgba(255,255,255,.22); }
@keyframes spin { to { transform: rotate(360deg); } }

.proof-strip { display: grid; grid-template-columns: repeat(4, 1fr); max-width: var(--max); margin: 0 auto; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof-item { min-height: 170px; padding: 2rem; border-right: 1px solid var(--line); }
.proof-item:last-child { border-right: 0; }
.proof-item strong { display: block; font-family: "Manrope", sans-serif; font-size: 2.6rem; line-height: 1; color: var(--coral); }
.proof-item span { display: block; max-width: 190px; margin-top: .75rem; color: var(--muted); font-size: .88rem; line-height: 1.45; }

.section { max-width: var(--max); margin: 0 auto; padding: 8rem 2rem; }
.section-heading { display: grid; grid-template-columns: .7fr 1.25fr .85fr; gap: 3rem; align-items: end; margin-bottom: 4rem; }
.section-heading .section-number { align-self: start; }
.section-heading h2, .about-statement h2 { font-size: clamp(2.7rem, 5vw, 5.2rem); }
.section-heading > p:last-child { margin: 0; color: var(--muted); }

.case-study { margin-top: 1.35rem; padding: clamp(1.6rem, 3vw, 3rem); background: var(--paper); border: 1px solid var(--line); }
.case-featured { background: var(--ink); color: white; }
.case-meta { display: grid; grid-template-columns: auto auto 1fr; gap: .8rem; align-items: center; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.case-meta > span:last-child { justify-self: end; opacity: .68; }
.case-index { font-family: "Manrope", sans-serif; font-size: 1rem; }
.status { justify-self: start; padding: .3rem .55rem; border-radius: 999px; }
.status-shipped { background: var(--lime); color: var(--ink); }
.status-defined { background: #d9e7ea; }
.status-system { background: #ffe2da; }
.case-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 8vw, 7rem); margin-top: 3.8rem; }
.case-title > p { margin: 0 0 1rem; color: var(--coral); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.case-title h3 { font-size: clamp(2rem, 3.8vw, 3.65rem); }
.case-summary > p { margin-top: 0; font-size: 1.08rem; opacity: .78; }
.case-facts { margin: 2rem 0 0; }
.case-facts div { display: grid; grid-template-columns: 100px 1fr; gap: 1rem; padding: 1rem 0; border-top: 1px solid currentColor; border-color: rgba(127,127,127,.28); }
.case-facts dt { font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.case-facts dd { margin: 0; font-size: .9rem; opacity: .82; }
.flow-visual { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: center; gap: .85rem; margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.2); }
.flow-visual div { min-height: 120px; padding: 1rem; background: rgba(255,255,255,.07); }
.flow-visual span, .flow-visual strong, .flow-visual small { display: block; }
.flow-visual span { color: var(--lime); font-size: .65rem; font-weight: 700; }
.flow-visual strong { margin-top: 1.1rem; font-size: .9rem; }
.flow-visual small { margin-top: .35rem; opacity: .6; }
.flow-visual b { color: var(--coral); }

.platform-map { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; margin-top: 3.5rem; background: var(--line); border: 1px solid var(--line); }
.map-node { min-height: 110px; padding: .9rem; background: var(--cream); }
.map-node span, .map-node small { display: block; }
.map-node span { font-family: "Manrope", sans-serif; font-size: .8rem; font-weight: 800; }
.map-node small { margin-top: 1.7rem; color: var(--muted); line-height: 1.25; }
.map-center { background: var(--coral); color: white; }
.map-center small { color: rgba(255,255,255,.75); }
.case-compact .case-summary { align-self: end; }

.experience-section { border-top: 1px solid var(--line); }
.experience-section .section-heading { grid-template-columns: .7fr 2.1fr; }
.timeline { border-top: 1px solid var(--ink); }
.timeline-item { display: grid; grid-template-columns: .7fr 1fr 1.35fr; gap: 2.5rem; padding: 2rem 0; border-bottom: 1px solid var(--line); }
.timeline-date { font-size: .75rem; font-weight: 700; letter-spacing: .08em; }
.timeline-item h3 { font-size: 1.15rem; letter-spacing: -.02em; }
.timeline-item div p, .timeline-item > p { margin: .25rem 0 0; color: var(--muted); font-size: .92rem; }

.about-section { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(4rem, 9vw, 9rem); border-top: 1px solid var(--line); }
.about-statement > p:last-child { max-width: 700px; margin-top: 2rem; color: var(--muted); font-size: 1.12rem; }
.capabilities { display: grid; gap: 2rem; }
.capabilities > div { padding-top: 1rem; border-top: 1px solid var(--ink); }
.capabilities h3 { font-size: .9rem; letter-spacing: .01em; }
.capabilities ul { columns: 2; margin: 1rem 0 0; padding: 0; list-style: none; }
.capabilities li { margin-bottom: .35rem; color: var(--muted); font-size: .84rem; break-inside: avoid; }

.contact-section { padding: 7rem max(2rem, calc((100vw - var(--max)) / 2)); background: var(--ink); color: white; }
.contact-grid { display: grid; grid-template-columns: 1.45fr .55fr; gap: 5rem; align-items: end; }
.contact-section h2 { font-size: clamp(3.2rem, 7vw, 7rem); }
.contact-copy p { color: rgba(255,255,255,.68); }
.button-light { margin: 1rem 0 2rem; background: var(--lime); color: var(--ink); }
.button-light:hover { background: var(--coral); color: white; }
.contact-detail { display: block; margin-top: .4rem; color: rgba(255,255,255,.78); text-decoration: none; font-size: .9rem; }
.site-footer { display: flex; justify-content: space-between; padding: 1.4rem max(2rem, calc((100vw - var(--max)) / 2)); background: var(--ink); color: rgba(255,255,255,.48); border-top: 1px solid rgba(255,255,255,.12); font-size: .75rem; }
.site-footer a { text-decoration: none; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 920px) {
  .site-header { padding-left: 1.25rem; padding-right: 1.25rem; }
  .menu-button { display: block; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; align-items: stretch; padding: 1rem 1.25rem 1.5rem; background: var(--cream); border-bottom: 1px solid var(--line); }
  .site-nav.open { display: grid; }
  .site-nav a { padding: .7rem 0; }
  .site-nav .nav-cta { text-align: center; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 5rem; }
  .hero-system { max-width: 620px; }
  .proof-strip { grid-template-columns: repeat(2, 1fr); margin: 0 1.25rem; }
  .proof-item:nth-child(2) { border-right: 0; }
  .proof-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section-heading { grid-template-columns: 1fr; gap: 1.5rem; }
  .section-heading > p:last-child { max-width: 650px; }
  .case-layout, .about-section, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .platform-map { grid-template-columns: repeat(4, 1fr); }
  .timeline-item { grid-template-columns: .6fr 1fr 1.4fr; }
}

@media (max-width: 640px) {
  .brand-name { display: none; }
  .hero { padding: 4rem 1.25rem; }
  h1 { font-size: clamp(3rem, 15vw, 4.5rem); }
  .hero-system { min-height: 430px; margin: 0 -.25rem; }
  .orbit-ring-one { width: 260px; height: 260px; }
  .orbit-ring-two { width: 185px; height: 185px; }
  .label-two { right: 0; }
  .proof-strip { grid-template-columns: 1fr; }
  .proof-item { min-height: 130px; border-right: 0; border-bottom: 1px solid var(--line); }
  .proof-item:last-child { border-bottom: 0; }
  .section { padding: 6rem 1.25rem; }
  .case-meta { grid-template-columns: auto 1fr; }
  .case-meta > span:last-child { grid-column: 1 / -1; justify-self: start; }
  .flow-visual { grid-template-columns: 1fr; }
  .flow-visual b { transform: rotate(90deg); justify-self: center; }
  .platform-map { grid-template-columns: repeat(2, 1fr); }
  .timeline-item { grid-template-columns: 1fr; gap: .7rem; }
  .capabilities ul { columns: 1; }
  .contact-section { padding: 6rem 1.25rem; }
  .site-footer { padding: 1.25rem; gap: 1rem; }
}
