:root {
  --ink: #1b1b1c;
  --ink-soft: #55545a;
  --ink-muted: #7b797e;
  --red: #e52421;
  --red-dark: #bd1715;
  --paper: #f7f4ef;
  --paper-deep: #eee9e1;
  --white: #ffffff;
  --line: rgba(27, 27, 28, 0.14);
  --line-light: rgba(255, 255, 255, 0.14);
  --quartz: #4c89aa;
  --quartz-deep: #0b1d2d;
  --box: #dfeff5;
  --shell: 1180px;
  --header-height: 84px;
  --radius: 24px;
  --shadow: 0 26px 80px rgba(36, 31, 26, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body,
button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

a {
  color: inherit;
}

button,
a {
  font: inherit;
}

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

h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 730;
  letter-spacing: -0.052em;
  line-height: 1.02;
}

h1 {
  max-width: 760px;
  margin-bottom: 30px;
  font-size: clamp(3.35rem, 5.8vw, 5.55rem);
}

h2 {
  font-size: clamp(2.35rem, 4.1vw, 4rem);
}

h3 {
  font-size: clamp(1.6rem, 2.5vw, 2.3rem);
}

.shell {
  width: min(calc(100% - 56px), var(--shell));
  margin-inline: auto;
}

.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;
  z-index: 300;
  top: 12px;
  left: 12px;
  padding: 10px 15px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  background: rgba(247, 244, 239, 0.86);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 34px rgba(36, 31, 26, 0.06);
}

.header-inner {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  width: 174px;
  height: auto;
}

.main-navigation,
.legal-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-navigation a,
.legal-nav a {
  position: relative;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 680;
  text-decoration: none;
}

.main-navigation a:not(.nav-cta)::after,
.legal-nav a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  background: var(--red);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.main-navigation a:not(.nav-cta):hover::after,
.main-navigation a:not(.nav-cta):focus-visible::after,
.legal-nav a:hover::after,
.legal-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-cta {
  padding: 10px 17px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white) !important;
  transition: background 180ms ease, transform 180ms ease;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--red);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  color: var(--ink);
}

.menu-toggle > span:not(.sr-only) {
  display: block;
  width: 22px;
  height: 2px;
  margin: 6px auto;
  border-radius: 3px;
  background: currentColor;
  transition: transform 160ms ease;
}

.eyebrow,
.section-label {
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hero {
  position: relative;
  min-height: 790px;
  padding: 168px 0 104px;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 18%, rgba(229, 36, 33, 0.09), transparent 25%),
    linear-gradient(180deg, #fbfaf8 0%, var(--paper) 100%);
}

.hero::before {
  position: absolute;
  top: 0;
  right: max(calc((100vw - var(--shell)) / 2), 0px);
  width: min(40vw, 560px);
  height: 100%;
  background-image: radial-gradient(rgba(27, 27, 28, 0.13) 1px, transparent 1px);
  background-size: 22px 22px;
  content: "";
  opacity: 0.33;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, black 18%, black 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, black 18%, black 82%, transparent 100%);
  pointer-events: none;
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  gap: 48px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-copy .eyebrow {
  margin-bottom: 25px;
}

.hero-lead {
  max-width: 670px;
  margin-bottom: 34px;
  color: #5d5b60;
  font-size: clamp(1.08rem, 1.6vw, 1.3rem);
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

.button {
  display: inline-flex;
  min-height: 54px;
  padding: 14px 22px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-radius: 13px;
  font-size: 0.94rem;
  font-weight: 720;
  text-decoration: none;
  transition: box-shadow 180ms ease, transform 180ms ease, background 180ms ease;
}

.button-primary {
  background: var(--red);
  box-shadow: 0 14px 30px rgba(229, 36, 33, 0.2);
  color: var(--white);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--red-dark);
  box-shadow: 0 18px 40px rgba(229, 36, 33, 0.26);
  transform: translateY(-2px);
}

.button-light {
  background: var(--white);
  color: var(--ink);
}

.button-light:hover,
.button-light:focus-visible {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.23);
  transform: translateY(-2px);
}

.text-link {
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 680;
  text-decoration-color: rgba(27, 27, 28, 0.35);
  text-underline-offset: 5px;
}

.text-link span {
  color: var(--red);
}

.editor-map {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 1;
  margin-left: auto;
  border: 1px solid rgba(27, 27, 28, 0.09);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(229, 36, 33, 0.06), transparent 52%),
    rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 0 0 54px rgba(255, 255, 255, 0.22);
}

.editor-map::before,
.editor-map::after {
  position: absolute;
  border: 1px solid rgba(27, 27, 28, 0.08);
  border-radius: 50%;
  content: "";
}

.editor-map::before {
  inset: 16%;
}

.editor-map::after {
  inset: 31%;
}

.map-core,
.map-card {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.map-core {
  top: 50%;
  left: 50%;
  width: 190px;
  min-height: 146px;
  padding: 24px;
  border-radius: 22px;
  background: var(--ink);
  box-shadow: var(--shadow);
  color: var(--white);
  transform: translate(-50%, -50%);
}

.map-core span {
  margin-bottom: 11px;
  color: #ff7774;
  font-size: 0.76rem;
  font-weight: 720;
}

.map-core strong {
  font-size: 1.15rem;
  line-height: 1.25;
}

.map-card {
  width: 172px;
  min-height: 102px;
  padding: 17px 19px;
  border: 1px solid rgba(27, 27, 28, 0.1);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 17px 45px rgba(36, 31, 26, 0.12);
  color: var(--ink);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

a.map-card:hover,
a.map-card:focus-visible {
  box-shadow: 0 22px 56px rgba(36, 31, 26, 0.18);
  transform: translateY(-3px);
}

.map-card small {
  color: var(--ink-muted);
  font-size: 0.68rem;
}

.map-card strong {
  margin: 3px 0 1px;
  font-size: 1.05rem;
  line-height: 1.18;
}

.map-card span {
  color: var(--ink-soft);
  font-size: 0.76rem;
}

.map-quartz {
  top: 7%;
  left: 1%;
  border-top: 4px solid var(--quartz);
  transform: rotate(-2deg);
}

.map-box {
  top: 14%;
  right: -3%;
  border-top: 4px solid #64b5d4;
  transform: rotate(3deg);
}

.map-custom {
  right: 7%;
  bottom: 6%;
  border-top: 4px solid var(--red);
  transform: rotate(-2deg);
}

.map-connectors {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.map-connectors path {
  fill: none;
  stroke: rgba(27, 27, 28, 0.28);
  stroke-linecap: round;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.principles {
  padding: 112px 0;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.principles-intro {
  display: grid;
  margin-bottom: 70px;
  align-items: end;
  grid-template-columns: 0.48fr 1.52fr;
  gap: 46px;
}

.principles-intro .section-label {
  margin-bottom: 11px;
}

.principles-intro h2 {
  max-width: 850px;
  margin-bottom: 0;
}

.principles-grid {
  display: grid;
  border-top: 1px solid var(--line);
  grid-template-columns: repeat(3, 1fr);
}

.principle {
  min-height: 280px;
  padding: 30px 34px 20px 0;
}

.principle + .principle {
  padding-left: 34px;
  border-left: 1px solid var(--line);
}

.principle > span {
  display: block;
  margin-bottom: 66px;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 760;
}

.principle h3 {
  margin-bottom: 15px;
  font-size: 1.6rem;
  letter-spacing: -0.04em;
}

.principle p {
  max-width: 315px;
  margin-bottom: 0;
  color: var(--ink-soft);
}

.solutions {
  padding: 116px 0 126px;
  background: var(--paper);
}

.section-heading {
  display: grid;
  margin-bottom: 64px;
  align-items: end;
  grid-template-columns: 0.48fr 1.52fr;
  gap: 46px;
}

.section-heading .section-label {
  margin-bottom: 12px;
}

.section-heading h2 {
  max-width: 900px;
  margin-bottom: 0;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.solution-card {
  display: flex;
  min-height: 580px;
  padding: 36px;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--radius);
  overflow: hidden;
}

.solution-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  font-weight: 690;
}

.solution-card h3 {
  max-width: 500px;
  margin-bottom: 20px;
  font-size: clamp(1.9rem, 3.25vw, 3.1rem);
}

.solution-card p:not(.solution-name) {
  max-width: 510px;
  margin-bottom: 0;
  font-size: 1.02rem;
}

.solution-name {
  margin-bottom: 22px;
  font-size: 1.35rem;
  font-weight: 780;
  letter-spacing: -0.05em;
}

.solution-card > a {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 720;
  text-decoration-color: currentColor;
  text-underline-offset: 5px;
}

.solution-quartz {
  background:
    radial-gradient(circle at 85% 12%, rgba(94, 177, 219, 0.22), transparent 30%),
    var(--quartz-deep);
  color: #b9cbd8;
}

.solution-quartz .solution-topline,
.solution-quartz h3,
.solution-quartz .solution-name,
.solution-quartz > a {
  color: var(--white);
}

.solution-quartz .solution-name {
  color: #77c9ec;
}

.solution-box {
  border: 1px solid rgba(76, 137, 170, 0.16);
  background:
    radial-gradient(circle at 85% 5%, rgba(255, 255, 255, 0.75), transparent 34%),
    var(--box);
}

.solution-box .solution-name {
  color: #2f7799;
}

.custom {
  padding: 116px 0;
  background: var(--paper-deep);
}

.custom-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 90px;
}

.custom-title h2 {
  max-width: 580px;
  margin-bottom: 0;
}

.custom-copy {
  padding-top: 38px;
}

.custom-copy > p {
  max-width: 600px;
  margin-bottom: 22px;
  font-size: 1.08rem;
}

.custom-copy ul {
  display: flex;
  padding: 24px 0 0;
  margin: 34px 0 0;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid var(--line);
  list-style: none;
}

.custom-copy li {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 650;
}

.contact {
  position: relative;
  padding: 116px 0;
  overflow: hidden;
  background: var(--ink);
  color: #bebdc1;
}

.contact::after {
  position: absolute;
  top: -220px;
  right: -110px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: var(--red);
  content: "";
  filter: blur(120px);
  opacity: 0.18;
}

.contact-inner {
  position: relative;
  z-index: 1;
}

.contact .section-label {
  color: #ff7774;
}

.contact h2 {
  max-width: 850px;
  margin-bottom: 26px;
  color: var(--white);
}

.contact p:not(.section-label) {
  max-width: 670px;
  margin-bottom: 34px;
  font-size: 1.08rem;
}

.site-footer {
  padding: 66px 0 28px;
  background: var(--white);
}

.footer-main {
  display: flex;
  padding-bottom: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.footer-brand {
  display: inline-flex;
  text-decoration: none;
}

.footer-brand img {
  width: 162px;
  height: auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-links a {
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 640;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--red);
}

.footer-bottom {
  display: flex;
  padding-top: 24px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.78rem;
}

.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms ease, transform 600ms ease;
}

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

.inner-page {
  background: var(--white);
}

.legal-hero {
  padding: 170px 0 76px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.legal-hero h1 {
  margin-bottom: 22px;
  font-size: clamp(3rem, 5.5vw, 4.75rem);
}

.legal-hero > .shell > p:last-child {
  max-width: 620px;
  margin-bottom: 0;
  font-size: 1.12rem;
}

.legal-layout {
  display: grid;
  padding-top: 80px;
  padding-bottom: 110px;
  align-items: start;
  grid-template-columns: 240px minmax(0, 760px);
  gap: 80px;
}

.legal-aside {
  position: sticky;
  top: calc(var(--header-height) + 28px);
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.legal-aside strong {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 0.84rem;
}

.legal-aside a {
  color: var(--ink-muted);
  font-size: 0.82rem;
  text-decoration: none;
}

.legal-aside a:hover,
.legal-aside a:focus-visible {
  color: var(--red);
}

.legal-content section {
  padding-bottom: 46px;
  scroll-margin-top: calc(var(--header-height) + 28px);
}

.legal-content section + section {
  padding-top: 46px;
  border-top: 1px solid var(--line);
}

.legal-content h2 {
  margin-bottom: 22px;
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.legal-content p,
.legal-content li {
  color: var(--ink-soft);
}

.legal-content a {
  color: var(--ink);
  text-decoration-color: rgba(229, 36, 33, 0.55);
  text-underline-offset: 4px;
}

.legal-content ul {
  padding-left: 22px;
}

.legal-meta {
  margin-top: 30px;
  color: var(--ink-muted) !important;
  font-size: 0.82rem;
}

.simple-footer {
  padding-top: 30px;
}

.simple-footer .footer-bottom a {
  color: var(--ink);
  text-decoration: none;
}

@media (max-width: 1020px) {
  .main-navigation {
    gap: 17px;
  }

  .hero {
    min-height: auto;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 62px;
  }

  .hero-copy {
    max-width: 850px;
  }

  .editor-map {
    width: min(100%, 560px);
    margin-right: auto;
  }

  .principles-intro,
  .section-heading {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .custom-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .custom-copy {
    padding-top: 0;
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 74px;
  }

  .shell {
    width: min(calc(100% - 36px), var(--shell));
  }

  .brand img {
    width: 142px;
  }

  .menu-toggle {
    display: block;
  }

  .main-navigation {
    position: absolute;
    top: calc(100% + 1px);
    right: 18px;
    left: 18px;
    display: none;
    padding: 18px;
    align-items: stretch;
    flex-direction: column;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
  }

  .main-navigation.is-open {
    display: flex;
  }

  .main-navigation a {
    padding: 10px 8px;
    font-size: 0.95rem;
  }

  .main-navigation .nav-cta {
    padding: 12px 14px;
    text-align: center;
  }

  .hero {
    padding: 136px 0 88px;
  }

  h1 {
    font-size: clamp(3rem, 10.5vw, 4rem);
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .principles,
  .solutions,
  .custom,
  .contact {
    padding-top: 86px;
    padding-bottom: 86px;
  }

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

  .principle {
    min-height: auto;
    padding: 27px 0 32px;
  }

  .principle + .principle {
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .principle > span {
    margin-bottom: 35px;
  }

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

  .solution-card {
    min-height: 520px;
  }

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

  .footer-links {
    flex-direction: column;
    gap: 12px;
  }

  .legal-nav {
    gap: 15px;
  }

  .legal-nav a {
    font-size: 0.76rem;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .legal-aside {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legal-aside strong {
    grid-column: 1 / -1;
  }
}

@media (max-width: 580px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: clamp(2.75rem, 12vw, 3.35rem);
  }

  h2 {
    font-size: clamp(2.05rem, 9.8vw, 2.8rem);
  }

  .hero-lead {
    font-size: 1.04rem;
  }

  .editor-map {
    width: 100%;
    min-height: 470px;
    aspect-ratio: auto;
    border-radius: 36px;
    box-shadow: none;
  }

  .map-core {
    top: 50%;
    width: 166px;
    min-height: 126px;
    padding: 20px;
  }

  .map-card {
    width: 152px;
    min-height: 94px;
    padding: 14px;
  }

  .map-quartz {
    top: 5%;
    left: 3%;
  }

  .map-box {
    top: 11%;
    right: 1%;
  }

  .map-custom {
    right: 4%;
    bottom: 5%;
  }

  .map-connectors {
    display: none;
  }

  .solution-card {
    min-height: 500px;
    padding: 28px;
  }

  .solution-card h3 {
    font-size: 2.1rem;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .legal-hero {
    padding-top: 138px;
  }

  .legal-nav a:first-child {
    display: none;
  }
}

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

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