:root {
  --canvas: #f7f5f0;
  --canvas-deep: #eeebe3;
  --surface: #ffffff;
  --ink: #151a1e;
  --muted: #5f686f;
  --quiet: #879097;
  --brand: #0e4f5a;
  --brand-dark: #08363f;
  --brand-soft: #d9e7e6;
  --line: #d9ded8;
  --line-strong: #c4cbc4;
  --focus: #2c8a99;
  --max: 1120px;
  --gutter: 48px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 90px;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(21, 26, 30, 0.035) 1px, transparent 1px) 0 0 / 96px 96px,
    var(--canvas);
  color: var(--ink);
  font-family: Aptos, "Segoe UI", system-ui, sans-serif;
  line-height: 1.5;
}

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

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.section-shell {
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 17px max(24px, calc((100vw - var(--max)) / 2));
  background: rgba(247, 245, 240, 0.9);
  border-bottom: 1px solid rgba(217, 222, 216, 0.86);
  backdrop-filter: blur(14px);
}

.brand-link {
  display: inline-flex;
  width: 104px;
}

.brand-link img {
  width: 104px;
  height: auto;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  color: var(--muted);
  font-size: 14px;
}

.site-nav a,
.header-action {
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.site-nav a:hover {
  color: var(--brand-dark);
}

.header-action,
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
}

.header-action {
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  color: var(--brand-dark);
}

.header-action:hover {
  border-color: var(--brand);
  transform: translateY(-1px);
}

.button-primary {
  padding: 0 20px;
  background: var(--brand);
  border: 1px solid var(--brand);
  color: #ffffff;
}

.button-primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  transform: translateY(-1px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(420px, 0.9fr);
  gap: 52px;
  align-items: center;
  min-height: 620px;
  padding: 48px 0 42px;
}

.hero-copy h1,
.section-heading h2,
.problem-layout h2,
.contact-layout h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: 0;
}

.hero-copy h1 {
  max-width: 760px;
  font-size: clamp(50px, 5.8vw, 76px);
  line-height: 1.01;
}

.hero-lede {
  max-width: 650px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.58;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 34px;
}

.hero-actions p {
  max-width: 230px;
  margin: 0;
  color: var(--quiet);
  font-size: 14px;
}

.system-panel {
  position: relative;
  overflow: hidden;
  padding: 18px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(21, 26, 30, 0.08);
}

.system-panel::before {
  position: absolute;
  inset: auto -110px -150px auto;
  width: 270px;
  height: 270px;
  content: "";
  background: radial-gradient(circle, rgba(14, 79, 90, 0.16), transparent 68%);
}

.panel-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.process-map {
  position: relative;
  width: 100%;
  min-height: 356px;
}

.map-frame,
.node rect {
  fill: rgba(255, 255, 255, 0.74);
  stroke: var(--line);
}

.grid-line {
  fill: none;
  stroke: rgba(95, 104, 111, 0.18);
  stroke-width: 1;
}

.flow-path {
  fill: none;
  stroke: url(#signal);
  stroke-linecap: round;
  stroke-width: 3;
  stroke-dasharray: 26 16;
  animation: flow 9s linear infinite;
}

.path-b {
  animation-delay: -2.4s;
}

.path-c {
  animation-delay: -5.2s;
  stroke: #7da2a5;
  stroke-width: 2;
}

.node path {
  fill: none;
  stroke: #9aa5a1;
  stroke-linecap: round;
  stroke-width: 2;
}

.checkpoint {
  fill: var(--brand);
}

.panel-metrics {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--line);
}

.panel-metrics div {
  padding: 16px;
  background: rgba(255, 255, 255, 0.66);
}

.panel-metrics span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.panel-metrics strong {
  display: block;
  margin-top: 4px;
  color: var(--brand-dark);
  font-size: 18px;
}

.problem-band {
  background: var(--ink);
  color: #ffffff;
}

.problem-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.64fr) minmax(0, 1fr);
  gap: 58px;
  align-items: start;
  padding-top: 70px;
  padding-bottom: 74px;
}

.problem-layout p {
  margin: 0;
  color: #a9c5c7;
  font-size: 17px;
}

.problem-layout h2 {
  max-width: 760px;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.06;
}

.delivery-section,
.method-section {
  padding: 94px 0;
}

.delivery-section {
  background: var(--canvas-deep);
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 44px;
  align-items: start;
  margin-bottom: 46px;
}

.section-heading span,
.section-label {
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.section-heading h2,
.contact-layout h2 {
  max-width: 820px;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.06;
}

.delivery-heading {
  margin-bottom: 34px;
}

.delivery-heading p,
.method-heading p {
  max-width: 560px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

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

.delivery-card {
  min-height: 250px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.delivery-card > span,
.front-card > span,
.method-card > span {
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
}

.delivery-card h3,
.front-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.delivery-card h3 {
  margin-top: 76px;
  margin-bottom: 16px;
}

.delivery-card p,
.front-card p,
.method-card p,
.contact-layout p {
  margin: 0;
  color: var(--muted);
}

.fronts-section {
  padding: 90px 0;
  background: var(--canvas-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fronts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.front-card {
  min-height: 250px;
  padding: 28px;
  background: rgba(247, 245, 240, 0.72);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
}

.front-card h3 {
  margin-top: 76px;
  margin-bottom: 14px;
}

.method-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.method-card {
  min-height: 250px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.method-card strong {
  display: block;
  margin-top: 76px;
  margin-bottom: 16px;
  font-size: 20px;
  line-height: 1.24;
}

.contact-section {
  background: var(--brand-dark);
  color: #ffffff;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 0.62fr);
  gap: 72px;
  align-items: end;
  padding-top: 82px;
  padding-bottom: 86px;
}

.contact-layout .section-label {
  color: #9acbd0;
}

.contact-layout h2 {
  margin-top: 16px;
}

.contact-layout p {
  max-width: 620px;
  margin-top: 20px;
  color: #c4d9db;
  font-size: 19px;
}

address {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  color: #c4d9db;
  font-style: normal;
}

address .button-primary {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--brand-dark);
}

address .button-primary:hover {
  background: var(--brand-soft);
  border-color: var(--brand-soft);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px max(24px, calc((100vw - var(--max)) / 2));
  background: var(--canvas);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer img {
  width: 96px;
  height: auto;
}

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 620ms ease, transform 620ms ease;
}

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

@keyframes flow {
  to {
    stroke-dashoffset: -84;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

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

@media (max-width: 980px) {
  :root {
    --gutter: 24px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .hero,
  .problem-layout,
  .section-heading,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 38px;
    min-height: auto;
    padding: 48px 0 60px;
  }

  .fronts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .front-card {
    min-height: 230px;
    padding: 22px;
  }

  .front-card h3 {
    margin-top: 54px;
  }

  .delivery-cards,
  .method-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .delivery-card,
  .method-card {
    min-height: 230px;
    padding: 22px;
  }

  .delivery-card h3,
  .method-card strong {
    margin-top: 54px;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 20px;
  }

  .site-header {
    position: static;
    gap: 18px;
  }

  .brand-link,
  .brand-link img {
    width: 102px;
  }

  .header-action {
    min-height: 40px;
    padding: 0 12px;
  }

  .hero-copy h1 {
    font-size: 43px;
  }

  .hero-lede {
    font-size: 18px;
  }

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

  .button-primary {
    width: 100%;
  }

  .system-panel {
    display: none;
  }

  .panel-topline {
    flex-direction: column;
    gap: 4px;
  }

  .process-map {
    min-height: 310px;
  }

  .panel-metrics {
    grid-template-columns: 1fr;
  }

  .problem-layout {
    gap: 26px;
    padding-top: 56px;
    padding-bottom: 60px;
  }

  .problem-layout h2,
  .section-heading h2,
  .contact-layout h2 {
    font-size: 35px;
  }

  .delivery-section,
  .method-section,
  .fronts-section {
    padding: 62px 0;
  }

  .section-heading {
    gap: 18px;
    margin-bottom: 30px;
  }

  .delivery-cards,
  .method-cards {
    grid-template-columns: 1fr;
  }

  .delivery-card,
  .method-card {
    min-height: auto;
    padding: 24px;
  }

  .delivery-card h3,
  .method-card strong {
    margin-top: 44px;
  }

  .fronts-grid {
    grid-template-columns: 1fr;
  }

  .front-card {
    min-height: auto;
    padding: 24px;
  }

  .front-card h3 {
    margin-top: 40px;
  }

  .contact-layout {
    gap: 34px;
    padding-top: 64px;
    padding-bottom: 68px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
