:root {
  --ink: #111817;
  --ink-soft: #384441;
  --paper: #ffffff;
  --wash: #f4f7f6;
  --line: #dce4e1;
  --green: #18a77f;
  --green-bright: #27c499;
  --coral: #f26b5b;
  --yellow: #f3c74f;
  --max: 1180px;
  --header: 70px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); }
body, button, input, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
p, li { color: var(--ink-soft); line-height: 1.72; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: 0; }
h1 { font-size: clamp(3rem, 7vw, 6.4rem); line-height: 0.98; max-width: 920px; }
h2 { font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.08; max-width: 760px; }
h3 { font-size: 1.2rem; line-height: 1.25; }

.shell { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; padding: 10px 14px; background: var(--paper); border: 1px solid var(--ink); transform: translateY(-140%); }
.skip-link:focus { transform: translateY(0); }
.setup-notice { padding: 9px 20px; background: var(--yellow); color: var(--ink); text-align: center; font-size: 0.82rem; font-weight: 700; }

.site-header { position: sticky; top: 0; z-index: 50; height: var(--header); border-bottom: 1px solid rgba(220, 228, 225, 0.9); background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(14px); }
.nav-shell { min-height: var(--header); display: flex; align-items: center; gap: 28px; }
.wordmark { display: inline-flex; align-items: center; gap: 11px; min-width: 190px; font-weight: 800; }
.brand-mark { width: 24px; height: 24px; display: inline-grid; grid-template-columns: repeat(3, 1fr); gap: 2px; align-items: end; }
.brand-mark span { display: block; border-radius: 2px 2px 1px 1px; }
.brand-mark span:nth-child(1) { height: 70%; background: var(--green); }
.brand-mark span:nth-child(2) { height: 48%; background: var(--coral); }
.brand-mark span:nth-child(3) { height: 100%; background: var(--ink); }
.primary-nav { margin-left: auto; display: flex; align-items: center; gap: 26px; font-size: 0.92rem; font-weight: 650; }
.primary-nav a { padding-block: 24px; color: #44514e; border-bottom: 2px solid transparent; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--green); }
.nav-contact { padding: 10px 16px; border: 1px solid var(--ink); border-radius: 5px; font-size: 0.9rem; font-weight: 750; }
.nav-contact:hover { color: var(--paper); background: var(--ink); }

.hero { position: relative; min-height: min(760px, calc(100vh - var(--header))); display: grid; align-items: end; overflow: hidden; background: #0a1110; }
.hero-image { position: absolute; inset: 0; background: url("/assets/hero-media.jpg") center / cover no-repeat; transform: scale(1.02); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 13, 12, 0.94) 0%, rgba(7, 13, 12, 0.74) 45%, rgba(7, 13, 12, 0.12) 100%); }
.hero-content { position: relative; z-index: 1; padding-block: 90px 54px; color: var(--paper); }
.hero h1 { margin-bottom: 24px; max-width: 800px; }
.hero-lede { max-width: 650px; font-size: clamp(1.12rem, 2vw, 1.45rem); color: #e1e8e6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; max-width: 760px; margin: 66px 0 0; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.25); }
.hero-facts div { min-width: 0; }
.hero-facts dt { margin-bottom: 7px; color: #a9b8b4; font-size: 0.76rem; font-weight: 800; text-transform: uppercase; }
.hero-facts dd { margin: 0; color: var(--paper); font-size: 0.94rem; line-height: 1.4; }

.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 11px 18px; border: 1px solid transparent; border-radius: 5px; font-size: 0.92rem; font-weight: 800; }
.button--primary { background: var(--green-bright); color: #07130f; }
.button--primary:hover { background: #52d5af; }
.button--ghost { border-color: rgba(255, 255, 255, 0.48); color: var(--paper); }
.button--ghost:hover { border-color: var(--paper); background: rgba(255, 255, 255, 0.08); }
.button--dark { margin-top: 16px; background: var(--ink); color: var(--paper); }
.button--dark:hover { background: #2a3533; }
.button--light { background: var(--paper); color: var(--ink); }

.eyebrow { margin-bottom: 15px; color: var(--green); font-size: 0.76rem; font-weight: 850; text-transform: uppercase; }
.eyebrow--light { color: var(--green-bright); }
.section { padding-block: 104px; }
.section--muted { background: var(--wash); }
.section--intro { padding-block: 86px; border-bottom: 1px solid var(--line); }
.intro-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: end; gap: 72px; }
.intro-grid h2 { margin-bottom: 0; }
.section-lede { margin: 0; font-size: 1.12rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 36px; margin-bottom: 46px; }
.section-heading h2 { margin-bottom: 0; }
.text-link { padding-bottom: 4px; border-bottom: 1px solid var(--ink); font-weight: 750; white-space: nowrap; }
.text-link:hover { color: var(--green); border-color: var(--green); }

.media-gallery { padding-top: 80px; }
.media-grid { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 18px; }
.media-panel { min-width: 0; margin: 0; background: var(--ink); border-radius: 6px; overflow: hidden; }
.media-panel img { width: 100%; height: 520px; object-fit: cover; object-position: center; }
.media-panel--wide img { object-position: center 44%; }
.media-panel figcaption { min-height: 110px; display: grid; grid-template-columns: 130px 1fr; gap: 28px; align-items: start; padding: 24px 26px; color: var(--paper); }
.media-panel figcaption span { color: var(--green-bright); font-size: 0.78rem; font-weight: 850; }
.media-panel figcaption p { margin: 0; color: #cbd6d3; line-height: 1.6; }

.service-stories { border-top: 1px solid var(--line); }
.service-story-list { border-top: 1px solid var(--line); }
.service-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 76px; align-items: center; padding-block: 72px; border-bottom: 1px solid var(--line); }
.service-story--reverse { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); }
.service-story--reverse .service-story__media { order: 2; }
.service-story--reverse .service-story__copy { order: 1; }
.service-story__media { min-width: 0; }
.service-story__media img { width: 100%; height: 470px; object-fit: cover; border-radius: 6px; }
.service-story__copy h3 { margin-bottom: 20px; font-size: clamp(1.8rem, 3vw, 2.7rem); }
.service-story__copy > p:not(.service-story__index) { margin-bottom: 14px; }
.service-story__index { margin-bottom: 16px; color: var(--coral); font-size: 0.78rem; font-weight: 850; }
.service-meta { display: grid; grid-template-columns: 1fr 1fr; margin: 28px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.service-meta li { padding: 12px 8px 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 0.9rem; font-weight: 700; }

.company-facts-section { padding-bottom: 44px; }
.about-story { padding-top: 20px; }
.about-story-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 80px; align-items: center; }
.about-story__media img { width: 100%; height: 620px; object-fit: cover; border-radius: 6px; }
.about-story__copy > p:not(.eyebrow) { font-size: 1.03rem; }

.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feature-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-card { min-height: 260px; padding: 30px; background: var(--paper); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-card:hover { box-shadow: inset 0 4px 0 var(--green); }
.feature-index { margin-bottom: 72px; color: var(--coral); font-size: 0.78rem; font-weight: 850; }
.feature-card h3 { margin-bottom: 12px; }
.feature-card p:last-child { margin-bottom: 0; font-size: 0.94rem; }

.section--split { background: var(--paper); }
.split-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 90px; }
.split-grid > div:last-child > p:not(.eyebrow) { font-size: 1.04rem; }
.workflow-figure { min-height: 560px; padding: 58px; display: flex; flex-direction: column; justify-content: center; background: var(--ink); border-radius: 6px; }
.workflow-stage { display: grid; grid-template-columns: 46px 1fr; column-gap: 18px; align-items: center; color: var(--paper); }
.workflow-stage span { grid-row: span 2; width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid #5c6966; border-radius: 50%; color: var(--green-bright); font-weight: 800; }
.workflow-stage strong { font-size: 1.18rem; }
.workflow-stage small { margin-top: 4px; color: #aebbb8; }
.workflow-line { width: 1px; height: 78px; margin-left: 23px; background: #4a5754; }
.check-list { margin: 24px 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding: 10px 0 10px 30px; border-bottom: 1px solid var(--line); }
.check-list li::before { content: ""; position: absolute; top: 18px; left: 3px; width: 10px; height: 6px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }

.contact-band { padding-block: 74px; background: #0c6050; color: var(--paper); }
.contact-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.contact-band h2 { margin-bottom: 0; max-width: 720px; }

.page-hero { padding-block: 110px 80px; border-bottom: 1px solid var(--line); background: var(--wash); }
.page-hero h1 { max-width: 940px; margin-bottom: 24px; font-size: clamp(2.9rem, 6vw, 5.7rem); }
.page-hero p:last-child { max-width: 720px; margin-bottom: 0; font-size: 1.15rem; }
.page-hero--product { background: #eaf7f2; }
.page-hero--api { background: #fdf0ed; }
.page-hero--company { background: #f7f3e5; }
.page-hero--legal { background: #eff3f2; }
.page-hero--contact { background: #eaf7f2; }

.content-grid, .legal-layout { display: grid; grid-template-columns: 240px minmax(0, 760px); justify-content: space-between; gap: 90px; }
.content-grid aside, .legal-layout aside { padding-top: 8px; border-top: 2px solid var(--ink); }
.aside-label { margin-bottom: 8px; color: var(--ink); font-size: 0.76rem; font-weight: 850; text-transform: uppercase; }
.prose h2 { margin-top: 64px; margin-bottom: 20px; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 38px; }
.prose p, .prose li { font-size: 1.02rem; }
.prose a { color: #087f60; text-decoration: underline; text-underline-offset: 3px; }
.prose ul { padding-left: 22px; }
.legal-copy h2 { font-size: 1.35rem; }

.company-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.company-facts > div { min-height: 160px; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.company-facts span { display: block; margin-bottom: 42px; color: #697572; font-size: 0.78rem; font-weight: 800; text-transform: uppercase; }
.company-facts strong { display: block; line-height: 1.4; }

.contact-grid { display: grid; grid-template-columns: 1fr 0.8fr; gap: 90px; align-items: start; }
.contact-primary { padding-top: 8px; border-top: 2px solid var(--ink); }
.contact-primary h2 { overflow-wrap: anywhere; font-size: clamp(1.8rem, 4vw, 3.3rem); }
.contact-primary h2 a:hover { color: var(--green); }
.contact-details { margin: 0; border-top: 1px solid var(--line); }
.contact-details div { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-details dt { color: #697572; font-size: 0.78rem; font-weight: 800; text-transform: uppercase; }
.contact-details dd { margin: 0; overflow-wrap: anywhere; }
.contact-details a { color: #087f60; text-decoration: underline; }

.site-footer { padding: 76px 0 26px; background: var(--ink); color: var(--paper); }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 54px; }
.wordmark--footer { margin-bottom: 20px; }
.wordmark--footer .brand-mark span:nth-child(3) { background: var(--paper); }
.footer-grid p { max-width: 390px; color: #aebbb8; font-size: 0.9rem; }
.footer-grid > div:not(:first-child) { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.footer-grid a, .footer-grid span { color: #cdd7d4; font-size: 0.9rem; }
.footer-grid a:hover { color: var(--green-bright); }
.footer-title { margin-bottom: 5px !important; color: var(--paper) !important; font-weight: 800; }
.footer-bottom { margin-top: 58px; padding-top: 20px; display: flex; justify-content: space-between; gap: 30px; border-top: 1px solid #34403e; }
.footer-bottom span { color: #82908c; font-size: 0.78rem; line-height: 1.5; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 480ms ease, transform 480ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  :root { --header: auto; }
  .site-header { position: relative; height: auto; }
  .nav-shell { padding-block: 14px; flex-wrap: wrap; gap: 14px 20px; }
  .wordmark { min-width: 0; margin-right: auto; }
  .primary-nav { order: 3; width: 100%; margin: 0; gap: 22px; overflow-x: auto; scrollbar-width: none; }
  .primary-nav a { padding-block: 9px; white-space: nowrap; }
  .hero { min-height: 700px; }
  .hero-overlay { background: linear-gradient(90deg, rgba(7, 13, 12, 0.94), rgba(7, 13, 12, 0.52)); }
  .intro-grid, .split-grid, .content-grid, .legal-layout, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .company-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .media-grid { grid-template-columns: 1fr 1fr; }
  .media-panel img { height: 420px; }
  .media-panel figcaption { grid-template-columns: 1fr; gap: 8px; }
  .service-story, .service-story--reverse, .about-story-grid { grid-template-columns: 1fr; gap: 42px; }
  .service-story--reverse .service-story__media, .service-story--reverse .service-story__copy { order: initial; }
  .service-story__media img, .about-story__media img { height: 480px; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 2 / -1; }
}

@media (max-width: 620px) {
  .shell { width: min(calc(100% - 28px), var(--max)); }
  h1 { font-size: clamp(2.8rem, 15vw, 4.2rem); overflow-wrap: anywhere; }
  h2 { font-size: 2rem; }
  .nav-contact { padding: 9px 12px; }
  .hero { min-height: 600px; }
  .hero-image { background-position: 60% center; }
  .hero-overlay { background: linear-gradient(180deg, rgba(7, 13, 12, 0.7), rgba(7, 13, 12, 0.96) 74%); }
  .hero-content { padding-block: 62px 34px; }
  .hero-lede { font-size: 1.05rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-facts { display: none; }
  .section { padding-block: 72px; }
  .section--intro { padding-block: 40px 64px; }
  .section-heading { display: block; }
  .section-heading .text-link { display: inline-block; margin-top: 18px; }
  .feature-grid, .feature-grid--three, .company-facts { grid-template-columns: 1fr; }
  .media-gallery { padding-top: 54px; }
  .media-grid { grid-template-columns: 1fr; }
  .media-panel img { height: 300px; }
  .media-panel figcaption { min-height: 0; padding: 20px; }
  .service-story { gap: 28px; padding-block: 52px; }
  .service-story__media img, .about-story__media img { height: 310px; }
  .service-story__copy h3 { font-size: 1.9rem; }
  .service-meta { grid-template-columns: 1fr; }
  .about-story { padding-top: 22px; }
  .feature-card { min-height: 0; }
  .feature-index { margin-bottom: 42px; }
  .workflow-figure { min-height: 480px; padding: 36px 28px; }
  .contact-band__inner { align-items: stretch; flex-direction: column; }
  .page-hero { padding-block: 76px 58px; }
  .page-hero h1 { font-size: clamp(2.7rem, 14vw, 4rem); }
  .company-facts span { margin-bottom: 20px; }
  .contact-details div { grid-template-columns: 90px 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child, .footer-grid > div:last-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
}

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