:root {
  --ink: #0b0d0f;
  --ink-2: #191d1f;
  --paper: #f7f8f6;
  --white: #ffffff;
  --muted: #626b70;
  --line: #dce1dc;
  --line-dark: rgba(255, 255, 255, 0.14);
  --teal: #2f8f83;
  --blue: #355c7d;
  --copper: #b1844b;
  --green-soft: #dfece8;
  --shadow: 0 24px 70px rgba(8, 13, 16, 0.12);
  --radius: 8px;
  --container: 1160px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.nav-open {
  overflow: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

img,
canvas {
  max-width: 100%;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 14px;
  left: 50%;
  width: min(calc(100% - 28px), 1180px);
  height: 64px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 14px 0 18px;
  color: var(--ink);
  background: rgba(247, 248, 246, 0.84);
  border: 1px solid rgba(11, 13, 15, 0.1);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(247, 248, 246, 0.96);
  box-shadow: 0 16px 50px rgba(11, 13, 15, 0.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-mark {
  position: relative;
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background:
    linear-gradient(135deg, transparent 42%, var(--teal) 43% 58%, transparent 59%),
    linear-gradient(45deg, transparent 43%, var(--blue) 44% 56%, transparent 57%);
}

.brand-mark::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--copper);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border-radius: 999px;
  color: rgba(11, 13, 15, 0.72);
  font-size: 0.94rem;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ink);
  background: rgba(11, 13, 15, 0.06);
}

.site-nav .nav-cta {
  color: var(--white);
  background: var(--ink);
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta.is-active {
  color: var(--white);
  background: var(--ink-2);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  border: 1px solid rgba(11, 13, 15, 0.14);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

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

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

.hero,
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(140deg, rgba(11, 13, 15, 0.96), rgba(25, 29, 31, 0.92) 44%, rgba(15, 34, 37, 0.94)),
    var(--ink);
}

.home-hero {
  min-height: 82vh;
  padding: 140px 0 58px;
  display: grid;
  align-items: end;
}

.page-hero {
  padding: 148px 0 96px;
}

.territory-canvas {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  opacity: 0.72;
}

.territory-canvas.mini {
  opacity: 0.36;
}

.hero-shade {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 42%;
  background: linear-gradient(0deg, rgba(11, 13, 15, 0.95), transparent);
}

.hero-content,
.page-hero-content {
  width: min(100% - 40px, 900px);
  margin-inline: auto;
  text-align: center;
}

.hero-content h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(3.2rem, 9vw, 8.4rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.page-hero h1 {
  max-width: 940px;
  margin-inline: auto;
  font-size: clamp(2.5rem, 6vw, 5.4rem);
  line-height: 1;
}

.hero-lead,
.page-hero p:not(.eyebrow) {
  width: min(100%, 720px);
  margin: 24px auto 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(1.04rem, 2vw, 1.28rem);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 780;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.dark-section .eyebrow,
.hero .eyebrow,
.page-hero .eyebrow,
.cta-panel .eyebrow {
  color: #8ad4c8;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 730;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

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

.btn-primary {
  color: var(--white);
  background: var(--teal);
  box-shadow: 0 16px 40px rgba(47, 143, 131, 0.25);
}

.btn-primary:hover {
  background: #23786e;
}

.btn-secondary {
  color: var(--ink);
  background: var(--white);
}

.btn-outline,
.btn-ghost {
  border-color: rgba(11, 13, 15, 0.2);
  color: var(--ink);
  background: transparent;
}

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

.btn-outline:hover {
  border-color: var(--ink);
}

.hero-panel {
  width: min(calc(100% - 40px), 860px);
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
}

.hero-panel div {
  padding: 22px;
}

.hero-panel div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-panel span {
  display: block;
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 780;
  line-height: 1;
}

.hero-panel p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.68);
}

.section {
  padding: 104px 0;
}

.section-tight {
  padding: 38px 0;
}

.section-heading {
  width: min(100%, 760px);
  margin-bottom: 42px;
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

h2,
h3,
p {
  overflow-wrap: anywhere;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: clamp(1.12rem, 2.1vw, 1.45rem);
  line-height: 1.2;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.lead {
  color: var(--muted);
  font-size: 1.08rem;
}

.logos-strip {
  overflow: hidden;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.marquee {
  display: flex;
  overflow: hidden;
  user-select: none;
}

.marquee-track {
  display: flex;
  min-width: max-content;
  gap: 44px;
  animation: marquee 26s linear infinite;
}

.marquee span {
  position: relative;
  color: rgba(11, 13, 15, 0.58);
  font-weight: 720;
  white-space: nowrap;
}

.marquee span::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 12px;
  border-radius: 50%;
  background: var(--copper);
  vertical-align: 1px;
}

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

.service-card,
.project-card,
.case-card,
.principles-grid article,
.process-grid article,
.timeline article,
.profile-panel,
.contact-card,
.contact-form,
.service-detail,
.deliverables-grid,
.evidence-board {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.service-card {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.service-card:hover,
.case-card:hover,
.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(47, 143, 131, 0.42);
  box-shadow: var(--shadow);
}

.card-index {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 72px;
  color: var(--teal);
  border: 1px solid rgba(47, 143, 131, 0.3);
  border-radius: 50%;
  font-weight: 760;
}

.service-card p,
.project-card p,
.case-card p {
  color: var(--muted);
}

.service-card a {
  margin-top: auto;
  color: var(--teal);
  font-weight: 740;
}

.split-section {
  background: linear-gradient(180deg, var(--paper), var(--white));
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.method-list {
  display: grid;
  gap: 10px;
  margin-top: 32px;
}

.method-item {
  width: 100%;
  text-align: left;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.method-item:hover,
.method-item.is-active {
  transform: translateX(4px);
  border-color: rgba(47, 143, 131, 0.45);
  background: var(--green-soft);
}

.method-item span {
  display: block;
  font-weight: 780;
}

.method-item small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
}

.operations-visual {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  padding: 26px;
  border: 1px solid rgba(11, 13, 15, 0.12);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 70% 22%, rgba(47, 143, 131, 0.25), transparent 22%),
    linear-gradient(135deg, #101416, #1f2728);
  color: var(--white);
  box-shadow: var(--shadow);
}

.visual-topline {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: rgba(255, 255, 255, 0.72);
}

.visual-topline strong {
  color: var(--white);
}

.tab-panel {
  position: absolute;
  inset: 82px 26px 26px;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 260ms ease, transform 260ms ease;
}

.tab-panel.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.tab-panel p {
  position: absolute;
  right: 24px;
  bottom: 20px;
  left: 24px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.map-lines {
  position: relative;
  width: min(100%, 440px);
  aspect-ratio: 1.1;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 36px 36px;
}

.map-lines::before,
.map-lines::after {
  content: "";
  position: absolute;
  inset: 14%;
  border: 1px solid rgba(138, 212, 200, 0.36);
  border-radius: 42% 58% 38% 62%;
  animation: slow-spin 16s linear infinite;
}

.map-lines::after {
  inset: 27%;
  border-color: rgba(177, 132, 75, 0.42);
  animation-direction: reverse;
}

.map-lines span,
.contact-map span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 8px rgba(47, 143, 131, 0.18);
  animation: pulse 2.8s ease-in-out infinite;
}

.architecture-stack {
  display: grid;
  gap: 13px;
  width: min(100%, 380px);
}

.architecture-stack span {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  animation: stack-float 4s ease-in-out infinite;
}

.architecture-stack span:nth-child(2) {
  animation-delay: 0.2s;
}

.architecture-stack span:nth-child(3) {
  animation-delay: 0.4s;
}

.architecture-stack span:nth-child(4) {
  animation-delay: 0.6s;
}

.delivery-radar {
  position: relative;
  width: min(82vw, 340px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: radial-gradient(circle, rgba(138, 212, 200, 0.28), transparent 4px);
}

.delivery-radar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(138, 212, 200, 0.4), transparent 28%);
  animation: slow-spin 5.5s linear infinite;
}

.delivery-radar span {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
}

.delivery-radar span:nth-child(1) { inset: 16%; }
.delivery-radar span:nth-child(2) { inset: 31%; }
.delivery-radar span:nth-child(3) { inset: 46%; }

.dark-section {
  color: var(--white);
  background: var(--ink);
}

.dark-section h2,
.dark-section h3 {
  color: var(--white);
}

.dark-section p {
  color: rgba(255, 255, 255, 0.7);
}

.project-grid,
.case-grid,
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.project-card,
.case-card {
  overflow: hidden;
  padding: 14px;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, opacity 220ms ease;
}

.dark-section .project-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-dark);
}

.project-visual {
  position: relative;
  min-height: 220px;
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: 6px;
  background: #121719;
}

.project-visual::before,
.project-visual::after {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 6px;
}

.project-visual.territorial {
  background:
    radial-gradient(circle at 22% 34%, rgba(47, 143, 131, 0.9) 0 5px, transparent 6px),
    radial-gradient(circle at 68% 56%, rgba(177, 132, 75, 0.85) 0 5px, transparent 6px),
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    #121719;
  background-size: auto, auto, 34px 34px, 34px 34px, auto;
}

.project-visual.territorial::before {
  border: 1px solid rgba(138, 212, 200, 0.34);
  transform: rotate(-8deg);
  animation: drift 7s ease-in-out infinite;
}

.project-visual.services {
  background:
    linear-gradient(90deg, transparent 30%, rgba(138, 212, 200, 0.14) 31% 32%, transparent 33%),
    linear-gradient(180deg, #121719, #243033);
}

.project-visual.services::before {
  inset: 34px 26px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 36%, transparent 36%),
    linear-gradient(rgba(255, 255, 255, 0.09) 12px, transparent 13px);
  background-size: 100% 100%, 100% 34px;
  animation: scan-y 4s ease-in-out infinite;
}

.project-visual.data {
  background: radial-gradient(circle at center, rgba(53, 92, 125, 0.65), #121719 62%);
}

.project-visual.data::before {
  inset: 42px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.42);
  animation: slow-spin 18s linear infinite;
}

.project-visual.data::after {
  inset: 72px;
  border-radius: 50%;
  border: 1px solid rgba(138, 212, 200, 0.36);
}

.project-visual.risk {
  background:
    repeating-linear-gradient(135deg, rgba(177, 132, 75, 0.18) 0 10px, transparent 10px 24px),
    #121719;
}

.project-visual.risk::before {
  inset: 42px 76px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent);
}

.project-visual.field {
  background:
    radial-gradient(circle at 36% 36%, rgba(47, 143, 131, 0.9) 0 5px, transparent 6px),
    radial-gradient(circle at 62% 68%, rgba(177, 132, 75, 0.8) 0 5px, transparent 6px),
    linear-gradient(135deg, #121719, #1d2b2c);
}

.project-visual.field::before {
  border: 1px solid rgba(255, 255, 255, 0.16);
  clip-path: polygon(12% 30%, 48% 14%, 88% 34%, 72% 82%, 28% 72%);
  animation: drift 8s ease-in-out infinite;
}

.project-visual.interoperability {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    #121719;
  background-size: 44px 100%;
}

.project-visual.interoperability::before {
  inset: 52px 26px;
  background:
    radial-gradient(circle at 8% 50%, rgba(138, 212, 200, 0.88) 0 6px, transparent 7px),
    radial-gradient(circle at 50% 50%, rgba(177, 132, 75, 0.88) 0 6px, transparent 7px),
    radial-gradient(circle at 92% 50%, rgba(138, 212, 200, 0.88) 0 6px, transparent 7px),
    linear-gradient(90deg, transparent 0 8%, rgba(255, 255, 255, 0.28) 8% 92%, transparent 92%);
}

.section-action {
  margin-top: 34px;
  text-align: center;
}

.trust-grid {
  align-items: stretch;
}

.evidence-board {
  padding: 10px;
}

.evidence-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.evidence-row:last-child {
  border-bottom: 0;
}

.evidence-row span {
  color: var(--muted);
}

.evidence-row strong {
  color: var(--teal);
  font-size: 1.12rem;
}

.dark-section .evidence-board {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-dark);
}

.dark-section .evidence-row {
  border-color: var(--line-dark);
}

.dark-section .evidence-row span {
  color: rgba(255, 255, 255, 0.66);
}

.cta-section {
  padding-top: 0;
}

.cta-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 350px;
  display: grid;
  place-items: center;
  padding: 70px 28px;
  text-align: center;
  color: var(--white);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 28% 20%, rgba(47, 143, 131, 0.34), transparent 26%),
    linear-gradient(135deg, var(--ink), #1b2223);
}

.cta-panel h2 {
  width: min(100%, 780px);
  margin: 0 auto 26px;
}

.site-footer {
  padding: 44px 0;
  color: rgba(255, 255, 255, 0.72);
  background: var(--ink);
  border-top: 1px solid var(--line-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 0.9fr;
  gap: 28px;
  align-items: start;
}

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

.site-footer .brand-mark {
  border-color: rgba(255, 255, 255, 0.78);
}

.site-footer p {
  width: min(100%, 360px);
  margin: 16px 0 0;
}

.site-footer nav,
.footer-contact {
  display: grid;
  gap: 10px;
}

.site-footer a:hover {
  color: var(--white);
}

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

.principles-grid article {
  padding: 22px;
}

.principles-grid span,
.timeline span,
.case-card > span {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.timeline article {
  min-height: 270px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-dark);
}

.profile-panel {
  position: relative;
  overflow: hidden;
  padding: 34px;
}

.profile-mark {
  width: 180px;
  height: 180px;
  margin-bottom: 30px;
  border-radius: 50%;
  border: 1px solid rgba(47, 143, 131, 0.28);
  background:
    radial-gradient(circle, var(--teal) 0 4px, transparent 5px),
    radial-gradient(circle, transparent 50%, rgba(47, 143, 131, 0.16) 51% 52%, transparent 53%),
    linear-gradient(135deg, rgba(53, 92, 125, 0.15), rgba(177, 132, 75, 0.14));
  animation: slow-spin 28s linear infinite;
}

.stats-stack {
  display: grid;
  gap: 12px;
}

.stats-stack div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.stats-stack strong {
  color: var(--teal);
  font-size: 3rem;
  line-height: 1;
}

.stats-stack span {
  color: var(--muted);
}

.services-list {
  display: grid;
  gap: 16px;
}

.service-detail {
  display: grid;
  grid-template-columns: 90px minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 28px;
  align-items: start;
  padding: 28px;
}

.service-detail .card-index {
  margin: 0;
}

.service-detail p,
.service-detail li {
  color: var(--muted);
}

.service-detail ul {
  margin: 0;
  padding-left: 18px;
}

.deliverables-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 18px;
}

.deliverables-grid div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.deliverables-grid span {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--copper);
  box-shadow: 0 0 0 8px rgba(177, 132, 75, 0.14);
}

.process-grid {
  grid-template-columns: repeat(4, 1fr);
}

.process-grid article {
  min-height: 230px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-dark);
}

.process-grid span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 54px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.filters button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.filters button.is-active,
.filters button:hover {
  color: var(--white);
  border-color: var(--ink);
  background: var(--ink);
}

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

.case-card {
  padding: 14px;
  background: var(--white);
}

.case-card[hidden] {
  display: none;
}

.case-card h2 {
  margin-top: 10px;
  font-size: clamp(1.45rem, 2.8vw, 2.2rem);
}

.case-card dl {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 22px 0 0;
}

.case-card dl div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

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

.case-card dd {
  margin: 4px 0 0;
  font-weight: 760;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 18px;
  align-items: stretch;
}

.contact-card,
.contact-form {
  padding: 28px;
}

.contact-methods {
  display: grid;
  gap: 12px;
  margin: 28px 0;
}

.contact-methods a,
.contact-methods span {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
}

.contact-map {
  position: relative;
  min-height: 290px;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(11, 13, 15, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 13, 15, 0.08) 1px, transparent 1px),
    linear-gradient(135deg, var(--green-soft), #eef1f3);
  background-size: 32px 32px, 32px 32px, auto;
}

.contact-map::before {
  content: "";
  position: absolute;
  inset: 42px;
  border: 1px solid rgba(47, 143, 131, 0.26);
  border-radius: 45% 55% 40% 60%;
  animation: drift 8s ease-in-out infinite;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form label.full,
.contact-form button,
.form-status {
  grid-column: 1 / -1;
}

.contact-form span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 680;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  outline: none;
}

.contact-form input,
.contact-form select {
  height: 48px;
  padding: 0 13px;
}

.contact-form textarea {
  resize: vertical;
  min-height: 136px;
  padding: 13px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(47, 143, 131, 0.12);
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--teal);
  font-weight: 700;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms ease, transform 620ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

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

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

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

@keyframes pulse {
  50% {
    transform: scale(1.16);
    box-shadow: 0 0 0 14px rgba(47, 143, 131, 0.08);
  }
}

@keyframes drift {
  50% {
    transform: translate3d(10px, -8px, 0) rotate(4deg);
  }
}

@keyframes scan-y {
  50% {
    transform: translateY(8px);
  }
}

@keyframes stack-float {
  50% {
    transform: translateX(8px);
  }
}

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

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: 74px 14px auto;
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid rgba(11, 13, 15, 0.1);
    border-radius: var(--radius);
    background: rgba(247, 248, 246, 0.98);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    border-radius: 6px;
  }

  .home-hero {
    min-height: 86vh;
    padding-top: 126px;
  }

  .service-grid,
  .project-grid,
  .split-grid,
  .footer-grid,
  .contact-grid,
  .service-detail,
  .case-grid {
    grid-template-columns: 1fr;
  }

  .timeline,
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-index {
    margin-bottom: 44px;
  }

  .operations-visual {
    min-height: 440px;
  }
}

@media (max-width: 680px) {
  .container,
  .hero-content,
  .page-hero-content {
    width: min(100% - 28px, var(--container));
  }

  .section {
    padding: 72px 0;
  }

  .home-hero {
    min-height: 84vh;
    padding: 118px 0 38px;
  }

  .page-hero {
    padding: 128px 0 70px;
  }

  .hero-panel,
  .principles-grid,
  .timeline,
  .process-grid,
  .deliverables-grid,
  .contact-form,
  .case-card dl {
    grid-template-columns: 1fr;
  }

  .hero-panel div + div {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-left: 0;
  }

  .service-card,
  .contact-card,
  .contact-form,
  .profile-panel,
  .service-detail {
    padding: 22px;
  }

  .project-visual {
    min-height: 190px;
  }

  .stats-stack div {
    grid-template-columns: 1fr;
  }

  .tab-panel {
    inset: 74px 18px 18px;
  }

  .tab-panel p {
    right: 12px;
    bottom: 14px;
    left: 12px;
  }
}

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

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
