:root {
  --ink: #17323a;
  --muted: #5b6970;
  --paper: #f7f3ea;
  --paper-strong: #fffaf0;
  --line: rgba(23, 50, 58, 0.16);
  --blue: #0089b6;
  --teal: #009988;
  --green: #59b866;
  --orange: #ee8c25;
  --red: #e85a4f;
  --shadow: 0 28px 80px rgba(23, 50, 58, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 78px;
  padding: 14px clamp(18px, 4vw, 58px);
  color: var(--ink);
  background: rgba(247, 243, 234, 0.78);
  border-bottom: 1px solid rgba(23, 50, 58, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 130px;
}

.brand img {
  width: 128px;
  height: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(23, 50, 58, 0.76);
}

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

.nav-links a:hover,
.header-action:hover {
  color: var(--teal);
}

.header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--ink);
  border: 1px solid rgba(23, 50, 58, 0.22);
  border-radius: 999px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  align-items: center;
  min-height: 100svh;
  padding: 116px clamp(18px, 6vw, 88px) 42px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(89, 184, 102, 0.26), transparent 28%),
    radial-gradient(circle at 18% 78%, rgba(0, 137, 182, 0.20), transparent 26%),
    linear-gradient(125deg, #fff8e8 0%, #f8f0df 48%, #eaf7f4 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(23, 50, 58, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 50, 58, 0.045) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.82), transparent 92%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.kicker,
.section-label {
  margin: 0 0 18px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  font-family: Nunito, Inter, system-ui, sans-serif;
}

h1 {
  max-width: 9ch;
  margin-bottom: 24px;
  color: var(--ink);
  font-size: clamp(4rem, 11vw, 9.5rem);
  line-height: 0.82;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 650px;
  margin-bottom: 34px;
  color: rgba(23, 50, 58, 0.82);
  font-size: clamp(1.12rem, 2.2vw, 1.55rem);
  line-height: 1.48;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  font-weight: 800;
  border-radius: 999px;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button.primary {
  color: white;
  background: var(--ink);
  box-shadow: 0 14px 32px rgba(23, 50, 58, 0.24);
}

.button.primary:hover {
  background: #0d242b;
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(23, 50, 58, 0.16);
}

.hero-mark {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 520px;
}

.hero-mark img {
  position: relative;
  z-index: 2;
  width: min(76vw, 410px);
  height: auto;
  filter: drop-shadow(0 34px 42px rgba(23, 50, 58, 0.18));
  animation: floatMark 7s ease-in-out infinite;
}

.orbit {
  position: absolute;
  border-radius: 999px;
}

.orbit-one {
  width: min(72vw, 520px);
  aspect-ratio: 1;
  border: 28px solid rgba(0, 137, 182, 0.14);
  animation: slowSpin 24s linear infinite;
}

.orbit-two {
  width: min(58vw, 390px);
  aspect-ratio: 1;
  border: 18px solid rgba(238, 140, 37, 0.22);
  border-left-color: rgba(89, 184, 102, 0.34);
  border-bottom-color: rgba(232, 90, 79, 0.26);
  animation: slowSpin 18s linear infinite reverse;
}

.hero-bottom {
  position: absolute;
  left: clamp(18px, 6vw, 88px);
  right: clamp(18px, 6vw, 88px);
  bottom: 26px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(23, 50, 58, 0.72);
  font-size: 0.82rem;
  font-weight: 800;
}

.hero-bottom span {
  padding: 9px 13px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(23, 50, 58, 0.10);
  border-radius: 999px;
}

.section-pad {
  padding: clamp(78px, 11vw, 142px) clamp(18px, 6vw, 88px);
}

.intro {
  display: grid;
  grid-template-columns: 0.34fr minmax(0, 1fr);
  gap: clamp(28px, 5vw, 88px);
  background: var(--paper-strong);
}

.intro h2,
.section-head h2,
.territory h2,
.contact h2 {
  max-width: 920px;
  margin-bottom: 22px;
  font-size: clamp(2.1rem, 5vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.intro p,
.territory p,
.proof-list p {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  line-height: 1.74;
}

.work {
  background: #f2f7f3;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(38px, 6vw, 76px);
}

.section-head h2 {
  margin-bottom: 0;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.work-item {
  min-height: 380px;
  padding: clamp(26px, 4vw, 46px);
  background: #f2f7f3;
  transition: background 220ms ease, transform 220ms ease;
}

.work-item:hover {
  background: rgba(255, 250, 240, 0.86);
}

.number {
  display: block;
  margin-bottom: 96px;
  color: var(--orange);
  font-size: 0.84rem;
  font-weight: 900;
}

.work-item h3 {
  margin-bottom: 14px;
  font-size: clamp(1.5rem, 2.3vw, 2.2rem);
  line-height: 1;
}

.work-item p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.68;
}

.territory {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 0.72fr);
  gap: clamp(26px, 5vw, 82px);
  align-items: center;
  min-height: 720px;
  padding: clamp(60px, 8vw, 102px) clamp(18px, 6vw, 88px);
  color: white;
  background: var(--ink);
  overflow: hidden;
}

.territory .section-label {
  color: #8fe2cb;
}

.territory p {
  color: rgba(255, 255, 255, 0.72);
}

.territory-visual {
  position: relative;
  min-height: 540px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.map-line {
  position: absolute;
  inset: 12% 6% 14% 10%;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-top-color: transparent;
  border-right-color: transparent;
  border-radius: 42% 58% 44% 56%;
  transform: rotate(-10deg);
}

.dot {
  position: absolute;
  z-index: 2;
  width: clamp(24px, 5vw, 54px);
  aspect-ratio: 1;
  border-radius: 999px;
  box-shadow: 0 0 0 18px rgba(255, 255, 255, 0.055);
  animation: pulse 3.8s ease-in-out infinite;
}

.dot-orange {
  top: 18%;
  left: 22%;
  background: var(--orange);
}

.dot-blue {
  top: 47%;
  left: 58%;
  background: var(--blue);
  animation-delay: 600ms;
}

.dot-green {
  right: 12%;
  bottom: 18%;
  background: var(--green);
  animation-delay: 1200ms;
}

.dot-red {
  left: 8%;
  bottom: 28%;
  background: var(--red);
  animation-delay: 1800ms;
}

.proof {
  background: var(--paper-strong);
}

.proof-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  max-width: 1120px;
  background: var(--line);
  border: 1px solid var(--line);
}

.proof-list p {
  height: 100%;
  margin: 0;
  padding: clamp(24px, 4vw, 42px);
  background: var(--paper-strong);
}

.contact {
  padding: clamp(78px, 11vw, 142px) clamp(18px, 6vw, 88px);
  background:
    radial-gradient(circle at 12% 30%, rgba(238, 140, 37, 0.18), transparent 28%),
    radial-gradient(circle at 86% 72%, rgba(0, 137, 182, 0.18), transparent 30%),
    var(--paper);
}

.contact-inner {
  max-width: 980px;
}

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

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 6vw, 88px);
  color: rgba(23, 50, 58, 0.68);
  background: var(--paper);
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 700;
}

.footer img {
  width: 118px;
  height: auto;
}

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

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

@keyframes floatMark {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-18px);
  }
}

@keyframes slowSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.14);
  }
}

@media (max-width: 980px) {
  .site-header {
    height: 70px;
  }

  .brand img {
    width: 112px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 22px;
    padding-top: 104px;
  }

  .hero-mark {
    min-height: 280px;
    order: -1;
  }

  .hero-mark img {
    width: min(74vw, 300px);
  }

  .orbit-one {
    width: min(84vw, 360px);
    border-width: 18px;
  }

  .orbit-two {
    width: min(68vw, 282px);
    border-width: 12px;
  }

  h1 {
    max-width: 12ch;
    font-size: clamp(3.4rem, 17vw, 6rem);
  }

  .hero-bottom {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 18px;
  }

  .intro,
  .territory,
  .proof-list {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }

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

  .work-item {
    min-height: auto;
  }

  .number {
    margin-bottom: 42px;
  }

  .territory {
    min-height: auto;
  }

  .territory-visual {
    min-height: 340px;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding-inline: 14px;
  }

  .header-action {
    min-height: 38px;
    padding-inline: 14px;
    font-size: 0.8rem;
  }

  .brand {
    min-width: 100px;
  }

  .brand img {
    width: 98px;
  }

  .hero {
    padding-inline: 16px;
    padding-bottom: 22px;
  }

  .button {
    width: 100%;
  }

  .intro h2,
  .section-head h2,
  .territory h2,
  .contact h2 {
    font-size: clamp(2rem, 12vw, 3.1rem);
  }

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

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
