:root {
  --ink: #22272b;
  --ink-soft: #30373c;
  --paper: #f4f2ec;
  --paper-alt: #ebe9e2;
  --white: #ffffff;
  --muted: #596166;
  --line: rgba(34, 39, 43, 0.14);
  --line-dark: rgba(255, 255, 255, 0.14);
  --accent: #6de0ce;
  --accent-strong: #49c9b5;
  --accent-blue: #7f9cff;
  --shell: min(1180px, calc(100% - 48px));
  --radius: 22px;
  --shadow: 0 24px 60px rgba(25, 30, 34, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

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

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

.shell {
  width: 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: 999;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--ink);
  background: var(--accent);
  border-radius: 8px;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

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

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  color: var(--white);
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(34, 39, 43, 0.97);
  border-color: rgba(255, 255, 255, 0.1);
}

.header-inner {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.language-switch {
  position: relative;
  z-index: 102;
  display: inline-flex;
  min-width: 44px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  color: var(--white);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 100px;
  font-size: .76rem;
  font-weight: 650;
  letter-spacing: .04em;
  transition: background-color .2s ease, border-color .2s ease;
}

.language-switch:hover {
  border-color: var(--accent);
  background: rgba(109,224,206,.1);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  letter-spacing: 0.04em;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand-copy,
.footer-brand span {
  display: grid;
  line-height: 1.04;
  text-transform: uppercase;
}

.brand-copy strong,
.footer-brand strong {
  font-size: 0.92rem;
  font-weight: 700;
}

.brand-copy strong {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
}

.brand-copy small,
.footer-brand small {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-left: auto;
}

.main-nav > a:not(.nav-cta),
.nav-projects-toggle {
  position: relative;
  color: rgba(255, 255, 255, 0.76);
  transition: color 0.2s ease;
}

.main-nav > a:not(.nav-cta)::after,
.nav-projects-toggle::after {
  position: absolute;
  content: "";
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.main-nav > a:not(.nav-cta):hover,
.nav-projects-toggle:hover {
  color: var(--white);
}

.main-nav > a:not(.nav-cta):hover::after,
.nav-projects-toggle:hover::after,
.nav-projects-toggle[aria-expanded="true"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-projects {
  position: relative;
}

.nav-projects-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}

.nav-projects-toggle.is-current,
.nav-projects-toggle[aria-expanded="true"] {
  color: var(--accent);
}

.nav-projects-caret {
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s ease;
}

.nav-projects-toggle[aria-expanded="true"] .nav-projects-caret {
  margin-top: 3px;
  transform: rotate(225deg);
}

.nav-projects-menu {
  position: absolute;
  z-index: 110;
  top: calc(100% + 18px);
  right: -18px;
  display: grid;
  gap: 4px;
  width: 290px;
  max-width: calc(100vw - 48px);
  margin: 0;
  padding: 10px;
  list-style: none;
  color: var(--white);
  background: var(--ink-soft);
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .2);
}

.nav-projects-menu[hidden] {
  display: none;
}

.nav-projects-menu a {
  display: block;
  padding: 13px 14px;
  border-radius: 8px;
  font-size: .9rem;
  line-height: 1.4;
}

.nav-projects-menu a:hover,
.nav-projects-menu a[aria-current] {
  background: rgba(255, 255, 255, .06);
  color: var(--accent);
}

.nav-projects-menu small {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, .6);
  font-size: .74rem;
  font-weight: 400;
  letter-spacing: 0;
}

.nav-cta {
  padding: 11px 19px;
  color: var(--ink);
  background: var(--accent);
  border-radius: 100px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover {
  background: var(--white);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 0.2s ease;
}

.hero {
  position: relative;
  min-height: 940px;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.hero-grid,
.contact-grid {
  position: absolute;
  inset: 0;
  opacity: 0.09;
  background-image: linear-gradient(rgba(255, 255, 255, 0.4) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.4) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  pointer-events: none;
}

.hero-glow-one {
  top: 4%;
  right: -16%;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(109, 224, 206, 0.17), transparent 66%);
}

.hero-glow-two {
  bottom: -24%;
  left: -20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(127, 156, 255, 0.1), transparent 68%);
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(440px, 0.95fr);
  gap: 40px;
  align-items: center;
  min-height: 760px;
  padding-top: 92px;
}

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

.eyebrow,
.kicker {
  margin: 0 0 23px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow span {
  width: 25px;
  height: 1px;
  background: currentColor;
}

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

h1,
h2 {
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.hero h1 {
  max-width: 700px;
  margin-bottom: 27px;
  font-size: clamp(3.5rem, 6.1vw, 6.3rem);
  font-weight: 660;
}

h1 em,
h2 em {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.hero-lead {
  max-width: 625px;
  margin-bottom: 36px;
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.7;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 17px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 750;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

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

.button-primary {
  color: var(--ink);
  background: var(--accent);
}

.button-primary:hover {
  background: var(--white);
}

.button-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.23);
}

.button-ghost:hover {
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.05);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 35px;
  color: rgba(255, 255, 255, 0.53);
  font-size: 0.78rem;
}

.hero-proof span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-proof i,
.contact-note span {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(109, 224, 206, 0.1);
}

.hero-visual {
  position: relative;
  min-height: 540px;
}

.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orbit-one {
  width: 340px;
  height: 340px;
}

.orbit-two {
  width: 480px;
  height: 480px;
  border-style: dashed;
  animation: slow-spin 38s linear infinite;
}

.logo-core {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 220px;
  height: 220px;
  place-items: center;
  background: radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 90px rgba(109, 224, 206, 0.12), inset 0 0 45px rgba(255, 255, 255, 0.03);
  transform: translate(-50%, -50%);
}

.logo-core::before {
  position: absolute;
  content: "";
  inset: -17px;
  border: 1px solid rgba(109, 224, 206, 0.21);
  border-radius: 50%;
}

.logo-core img {
  width: 126px;
  height: 126px;
  object-fit: contain;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.2));
}

.signal-card {
  position: absolute;
  z-index: 2;
  display: flex;
  width: 235px;
  align-items: center;
  gap: 13px;
  padding: 15px;
  background: rgba(48, 55, 60, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(16px);
}

.signal-card-top {
  top: 13%;
  right: -2%;
}

.signal-card-bottom {
  bottom: 16%;
  left: -1%;
}

.signal-card-collaboration {
  bottom: 1%;
  right: -2%;
}

.signal-icon {
  display: grid;
  flex: 0 0 38px;
  height: 38px;
  place-items: center;
  color: var(--accent);
  background: rgba(109, 224, 206, 0.08);
  border: 1px solid rgba(109, 224, 206, 0.17);
  border-radius: 50%;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.7rem;
}

.signal-card > span:first-child {
  display: grid;
  flex: 1;
  line-height: 1.3;
}

.signal-card small {
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.62rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.signal-card strong {
  margin-top: 3px;
  font-size: 0.77rem;
  font-weight: 650;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(109, 224, 206, 0.1);
}

.node {
  position: absolute;
  width: 9px;
  height: 9px;
  background: var(--accent);
  border: 2px solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(109, 224, 206, 0.5), 0 0 16px rgba(109, 224, 206, 0.6);
}

.node-one { top: 16%; left: 27%; }
.node-two { top: 58%; right: 4%; }
.node-three { bottom: 9%; left: 38%; }

.stats-wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr) 1.55fr;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.stat {
  min-height: 142px;
  padding: 28px 30px 25px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.stat + .stat {
  padding-left: 30px;
}

.stat strong {
  display: block;
  font-size: 2.1rem;
  font-weight: 620;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.stat strong span {
  color: var(--accent);
}

.stat p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.78rem;
}

.stat-text {
  display: flex;
  align-items: center;
  border-right: 0;
}

.stat-text p {
  max-width: 250px;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
}

.section {
  padding: 110px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 1.45fr 0.55fr;
  gap: 70px;
  align-items: end;
  margin-bottom: 62px;
}

.section-heading h2,
.about-copy h2,
.contact h2,
.legal-hero h1 {
  margin-bottom: 0;
  font-size: clamp(2.7rem, 5vw, 5rem);
  font-weight: 620;
}

.section-heading > p,
.process-heading > p {
  max-width: 430px;
  margin-bottom: 6px;
  color: var(--muted);
}

.kicker {
  margin-bottom: 17px;
  color: #308f83;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.service-card {
  position: relative;
  min-height: 400px;
  overflow: hidden;
  padding: 38px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card::after {
  position: absolute;
  content: "";
  right: -80px;
  bottom: -110px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(109, 224, 206, 0.16), transparent 65%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover {
  z-index: 2;
  border-color: rgba(73, 201, 181, 0.4);
  box-shadow: var(--shadow);
  transform: translateY(-7px);
}

.service-card:hover::after {
  opacity: 1;
}

.service-card-featured {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.service-number {
  position: absolute;
  top: 28px;
  right: 30px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.68rem;
}

.service-card-featured .service-number {
  color: rgba(255, 255, 255, 0.32);
}

.service-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 40px;
  place-items: center;
  color: #318f84;
  background: rgba(109, 224, 206, 0.1);
  border-radius: 16px;
}

.service-card-featured .service-icon {
  color: var(--accent);
  background: rgba(109, 224, 206, 0.08);
}

.service-icon svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  margin-bottom: 13px;
  font-size: 1.6rem;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.service-card p {
  max-width: 480px;
  margin-bottom: 23px;
  color: var(--muted);
}

.service-card-featured p {
  color: rgba(255, 255, 255, 0.58);
}

.service-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-card li {
  padding: 5px 11px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 0.7rem;
}

.service-card-featured li {
  color: rgba(255, 255, 255, 0.55);
  border-color: rgba(255, 255, 255, 0.15);
}

.about {
  overflow: hidden;
  background: var(--paper-alt);
}

.about-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 100px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-panel {
  position: relative;
  z-index: 1;
  min-height: 560px;
  padding: 48px;
  color: var(--white);
  background: var(--ink);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.about-panel::before {
  position: absolute;
  content: "";
  inset: 0;
  opacity: 0.09;
  background-image: linear-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.5) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(140deg, black, transparent 70%);
  border-radius: inherit;
}

.panel-label {
  position: relative;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.about-panel blockquote {
  position: relative;
  margin: 80px 0 70px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.4vw, 3.3rem);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.panel-signature {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
}

.panel-signature img {
  width: 45px;
  height: 45px;
  object-fit: contain;
}

.panel-signature span {
  display: grid;
  line-height: 1.4;
}

.panel-signature strong {
  font-size: 0.82rem;
}

.panel-signature small {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.67rem;
}

.about-code {
  position: absolute;
  z-index: 2;
  right: -55px;
  bottom: -34px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 11px 22px;
  width: 265px;
  padding: 22px;
  color: rgba(255, 255, 255, 0.62);
  background: var(--ink-soft);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 13px;
  box-shadow: var(--shadow);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.63rem;
  letter-spacing: 0.1em;
}

.about-code span:nth-child(odd) {
  color: var(--accent);
}

.about-copy h2 {
  margin-bottom: 36px;
}

.about-copy > p:not(.kicker) {
  color: var(--muted);
}

.about-copy .large-copy {
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1.65;
}

.value-list {
  margin-top: 38px;
  border-top: 1px solid var(--line);
}

.value-list > div {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 18px;
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
}

.value-list > div > span {
  padding-top: 2px;
  color: #308f83;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.69rem;
}

.value-list p {
  display: grid;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.value-list strong {
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 0.95rem;
}

.process {
  background: var(--paper);
}

.process-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: 65px 80px 1fr;
  gap: 25px;
  align-items: center;
  min-height: 150px;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}

.process-index {
  color: #308f83;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.7rem;
}

.process-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.process-mark i {
  width: 9px;
  height: 9px;
  background: var(--accent-strong);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(73, 201, 181, 0.12);
}

.process-list li > div:last-child {
  display: grid;
  grid-template-columns: minmax(250px, 0.7fr) minmax(320px, 1.3fr);
  gap: 60px;
  align-items: center;
}

.process-list h3 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 640;
  letter-spacing: -0.03em;
}

.process-list p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
}

.home-projects {
  padding: 76px 0;
  background: var(--paper-alt);
  scroll-margin-top: 88px;
}

.home-projects-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 32px;
}

.home-projects-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 620;
}

.home-projects-heading > p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
}

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

.home-project-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.5);
}

.home-project-identity {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 20px;
}

.home-project-identity > div {
  min-width: 0;
}

.home-project-icon {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border-radius: 14px;
}

.home-project-map {
  display: grid;
  place-items: center;
  background: #126357;
}

.home-project-map svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: var(--white);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-project-map svg path:last-of-type {
  fill: #126357;
}

.home-project-type {
  margin: 0 0 6px;
  color: #247e73;
  font-size: .7rem;
  font-weight: 650;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.home-project-card h3 {
  margin: 0;
  font-size: clamp(1.5rem, 2.4vw, 1.85rem);
  line-height: 1.15;
  letter-spacing: -.035em;
}

.home-project-card > p {
  flex: 1;
  margin: 24px 0;
  color: var(--muted);
}

.home-project-button {
  min-height: 48px;
  padding: 12px 20px;
  color: var(--white);
  background: #126357;
}

.home-project-button:hover {
  background: #0c4e43;
}

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

.contact-grid {
  opacity: 0.07;
  mask-image: radial-gradient(circle at center, black, transparent 75%);
}

.contact::after {
  position: absolute;
  content: "";
  top: -350px;
  right: -300px;
  width: 750px;
  height: 750px;
  background: radial-gradient(circle, rgba(109, 224, 206, 0.12), transparent 67%);
}

.contact-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 100px;
  align-items: center;
}

.contact h2 {
  max-width: 700px;
  margin-bottom: 27px;
  font-size: clamp(3.3rem, 6.5vw, 6.6rem);
}

.contact-copy > p:last-child {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 1.06rem;
}

.contact-card {
  padding: 38px;
  color: var(--ink);
  background: var(--paper);
  border-radius: 23px;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.25);
}

.contact-card-label {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.contact-link {
  position: relative;
  display: grid;
  grid-template-columns: 95px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 21px 0;
  border-top: 1px solid var(--line);
}

.contact-link > span {
  color: var(--muted);
  font-size: 0.72rem;
}

.contact-link strong {
  font-size: 0.93rem;
  font-weight: 650;
  line-height: 1.4;
}

.contact-link i {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  background: rgba(34, 39, 43, 0.05);
  border-radius: 50%;
  font-style: normal;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.contact-link:hover i {
  background: var(--accent);
  transform: rotate(45deg);
}

.contact-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.site-footer {
  color: rgba(255, 255, 255, 0.58);
  background: #1b1f22;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 1.2fr 0.7fr;
  gap: 50px;
  align-items: start;
  padding: 70px 0 60px;
}

.footer-brand {
  color: var(--white);
}

.footer-brand img {
  width: 45px;
  height: 45px;
  object-fit: contain;
}

.footer-main > p {
  font-size: 0.85rem;
}

.footer-main nav {
  display: grid;
  gap: 9px;
  justify-content: end;
  font-size: 0.8rem;
}

.footer-main a:hover,
.footer-legal a:hover {
  color: var(--white);
}

.footer-legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 21px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 0.68rem;
}

.footer-legal p {
  margin: 0;
}

.footer-legal div {
  display: flex;
  gap: 24px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.21, 0.65, 0.38, 1);
}

.reveal-delay {
  transition-delay: 0.12s;
}

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

@keyframes slow-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Legal pages */
.legal-page {
  background: var(--paper);
}

.legal-hero {
  padding: 170px 0 82px;
  color: var(--white);
  background: var(--ink);
}

.legal-hero .kicker {
  color: var(--accent);
}

.legal-hero h1 {
  max-width: 800px;
  overflow-wrap: anywhere;
}

.legal-hero p:last-child {
  max-width: 690px;
  margin: 25px 0 0;
  color: rgba(255, 255, 255, 0.55);
}

.legal-content {
  display: grid;
  grid-template-columns: 250px minmax(0, 760px);
  gap: 95px;
  padding: 95px 0 125px;
}

.legal-aside {
  align-self: start;
  position: sticky;
  top: 130px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
}

.legal-aside strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.legal-body h2 {
  margin: 52px 0 16px;
  font-size: 1.45rem;
  letter-spacing: -0.025em;
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body h3 {
  margin: 28px 0 8px;
  font-size: 1rem;
}

.legal-body p,
.legal-body li {
  color: #596166;
}

.legal-body a {
  color: #247e73;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.legal-body ul {
  padding-left: 20px;
}

.legal-note {
  margin-bottom: 38px;
  padding: 19px 21px;
  color: #5b563d;
  background: #f2e9ba;
  border: 1px solid #dfd28e;
  border-radius: 12px;
  font-size: 0.82rem;
}

.legal-data {
  display: grid;
  grid-template-columns: 190px 1fr;
  margin: 0;
  border-top: 1px solid var(--line);
}

.legal-data dt,
.legal-data dd {
  margin: 0;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.legal-data dt {
  color: var(--muted);
  font-size: 0.78rem;
}

.legal-data dd {
  color: var(--ink);
  font-weight: 560;
}

@media (max-width: 1050px) {
  .main-nav { gap: 23px; }

  .hero-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  }

  .hero-visual {
    transform: scale(0.88);
  }

  .about-layout,
  .contact-layout {
    gap: 60px;
  }

  .about-code {
    right: -20px;
  }
}

@media (max-width: 860px) {
  :root {
    --shell: min(100% - 34px, 680px);
  }

  .header-inner {
    min-height: 76px;
  }

  .header-actions {
    margin-left: auto;
    gap: 12px;
  }

  .menu-toggle {
    position: relative;
    z-index: 102;
    display: block;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    transform: translateY(3px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-3px) rotate(-45deg);
  }

  .main-nav {
    position: fixed;
    z-index: 101;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 21px;
    padding: max(110px, 20vh) 34px 60px;
    visibility: hidden;
    background: rgba(34, 39, 43, 0.98);
    opacity: 0;
    transform: translateY(-15px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }

  .main-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .main-nav > a,
  .nav-projects-toggle {
    font-size: 1.6rem;
  }

  .nav-projects {
    width: 100%;
  }

  .nav-projects-menu {
    position: static;
    width: 100%;
    max-width: 420px;
    margin-top: 18px;
    box-shadow: none;
  }

  .nav-projects-menu a {
    font-size: 1.05rem;
  }

  .nav-projects-menu small {
    font-size: .8rem;
  }

  .nav-cta {
    margin-top: 12px;
    padding: 12px 23px;
    font-size: 1rem !important;
  }

  .hero {
    min-height: 0;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 155px;
  }

  .hero h1 {
    max-width: 640px;
    font-size: clamp(3.4rem, 11.5vw, 5.4rem);
  }

  .hero-visual {
    min-height: 510px;
    transform: none;
  }

  .signal-card-top { right: 3%; }
  .signal-card-bottom { left: 4%; }
  .signal-card-collaboration { right: 3%; }

  .stats-wrap {
    grid-template-columns: repeat(3, 1fr);
  }

  .stat-text {
    display: none;
  }

  .section,
  .contact {
    padding: 78px 0;
  }

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

  .section-heading {
    gap: 28px;
    margin-bottom: 48px;
  }

  .about-layout {
    gap: 62px;
  }

  .about-panel {
    min-height: 500px;
  }

  .about-code {
    right: 20px;
  }

  .process-list li > div:last-child {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .contact-layout {
    gap: 45px;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .footer-main nav {
    display: none;
  }

  .legal-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .legal-aside {
    position: static;
  }
}

@media (max-width: 620px) {
  .home-projects {
    padding-block: 58px;
  }

  .home-projects-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .home-projects-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .home-project-card {
    padding: 24px;
  }

  .home-project-identity {
    gap: 16px;
  }

  .home-project-icon {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
  }

  :root {
    --shell: calc(100% - 30px);
  }

  .section,
  .contact {
    padding: 64px 0;
  }

  .brand img {
    width: 37px;
    height: 37px;
  }

  .hero-layout {
    padding-top: 118px;
  }

  .hero h1 {
    font-size: clamp(2.85rem, 14vw, 3.9rem);
  }

  .hero-lead {
    margin-bottom: 28px;
    font-size: 1rem;
  }

  .button-row,
  .button {
    width: 100%;
  }

  .hero-proof {
    display: grid;
    gap: 10px;
    margin-top: 25px;
  }

  .hero-visual {
    min-height: 430px;
    margin-inline: 0;
    transform: scale(0.82);
  }

  .orbit-one { width: 270px; height: 270px; }
  .orbit-two { width: 390px; height: 390px; }
  .logo-core { width: 180px; height: 180px; }
  .logo-core img { width: 102px; height: 102px; }
  .signal-card { width: 205px; padding: 12px; }
  .signal-card-top { top: 7%; right: 2%; }
  .signal-card-bottom { bottom: 17%; left: 2%; }
  .signal-card-collaboration { bottom: 1%; right: 2%; }

  .stats-wrap {
    grid-template-columns: 1fr;
    padding-bottom: 12px;
  }

  .stat,
  .stat + .stat {
    display: flex;
    min-height: 0;
    align-items: center;
    justify-content: space-between;
    padding: 14px 3px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .stat p {
    margin: 0;
  }

  .stats-wrap .stat-text {
    display: none;
  }

  .section-heading h2,
  .about-copy h2,
  .legal-hero h1 {
    font-size: 2.65rem;
  }

  .section-heading {
    margin-bottom: 36px;
  }

  .legal-hero h1 {
    hyphens: auto;
  }

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

  .service-card {
    min-height: 0;
    padding: 24px;
  }

  .service-icon {
    margin-bottom: 24px;
  }

  .about-layout {
    gap: 48px;
  }

  .about-panel {
    min-height: 390px;
    padding: 31px;
  }

  .about-panel blockquote {
    margin: 46px 0 38px;
  }

  .about-code {
    right: -4px;
    width: 235px;
  }

  .process-list li {
    grid-template-columns: 35px 1fr;
    gap: 15px;
    align-items: start;
    padding: 20px 0;
  }

  .process-mark {
    display: none;
  }

  .process-list li > div:last-child {
    gap: 8px;
  }

  .contact h2 {
    font-size: clamp(2.9rem, 13vw, 4rem);
  }

  .contact-layout {
    gap: 36px;
  }

  .contact-card {
    padding: 25px;
  }

  .contact-link {
    grid-template-columns: 1fr auto;
    gap: 5px 12px;
  }

  .contact-link > span {
    grid-column: 1 / -1;
  }

  .contact-link strong {
    overflow-wrap: anywhere;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 55px 0 45px;
  }

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

  .legal-hero {
    padding: 135px 0 64px;
  }

  .legal-content {
    padding: 70px 0 95px;
  }

  .legal-data {
    grid-template-columns: 1fr;
  }

  .legal-data dt {
    padding-bottom: 3px;
    border-bottom: 0;
  }

  .legal-data dd {
    padding-top: 0;
  }
}

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

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