:root {
  color-scheme: light;
  --bg: #f5f5ef;
  --surface: #ffffff;
  --surface-soft: #f4f7f2;
  --text: #171615;
  --muted: #706c66;
  --line: rgba(23, 22, 21, 0.12);
  --dark: #171615;
  --light: #ffffff;
  --green: #2f6b3a;
  --green-deep: #193b24;
  --green-soft: #e8f7d8;
  --lime: #9fe846;
  --teal: #2f7f68;
  --gold: #78a83a;
  --signal: #b8ff58;
  --shadow: 0 24px 70px rgba(31, 28, 24, 0.12);
  --radius: 8px;
  --max: 1280px;
  --aura-opacity: 0.7;
  --aura-size: 0.8;
  --header-glass: rgba(245, 245, 239, 0.46);
  --header-glass-scrolled: rgba(245, 245, 239, 0.54);
  --header-reflection: rgba(255, 255, 255, 0.42);
  --header-border: rgba(23, 22, 21, 0.07);
  --header-shadow: rgba(23, 22, 21, 0.07);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #11110f;
  --surface: #1a1916;
  --surface-soft: #24221e;
  --text: #f6f1e7;
  --muted: #b9b1a4;
  --line: rgba(246, 241, 231, 0.14);
  --dark: #f6f1e7;
  --light: #11110f;
  --green: #9fe846;
  --green-deep: #d7ff8b;
  --green-soft: #1b2a1d;
  --lime: #b8ff58;
  --teal: #86d8a1;
  --gold: #c8f26d;
  --signal: #b8ff58;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  --aura-opacity: 0.46;
  --aura-size: 1;
  --header-glass: rgba(17, 17, 15, 0.46);
  --header-glass-scrolled: rgba(17, 17, 15, 0.54);
  --header-reflection: rgba(255, 255, 255, 0.07);
  --header-border: rgba(246, 241, 231, 0.1);
  --header-shadow: rgba(0, 0, 0, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background:
    linear-gradient(to bottom, color-mix(in srgb, var(--bg) 68%, transparent), var(--bg) 760px),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(23, 22, 21, 0.052) 1px, transparent 1px),
    linear-gradient(rgba(23, 22, 21, 0.042) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

/* Clip the decorative layers independently so their motion cannot widen the page. */
.ambient-aura {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  contain: paint;
  pointer-events: none;
}

.ambient-aura::before,
.ambient-aura::after {
  --aura-travel-x: clamp(192px, 32vw, 480px);
  --aura-travel-y: clamp(208px, 48svh, 480px);
  position: absolute;
  width: calc(clamp(340px, 58vw, 860px) * var(--aura-size));
  height: calc(clamp(420px, 82svh, 880px) * var(--aura-size));
  content: "";
  pointer-events: none;
  filter: blur(38px);
  opacity: var(--aura-opacity);
  transform-origin: 45% 55%;
}

.ambient-aura::before {
  top: -12%;
  left: -18%;
  border-radius: 42% 58% 62% 38%;
  background:
    radial-gradient(ellipse at 38% 35%, color-mix(in srgb, var(--green) 54%, transparent), transparent 62%),
    radial-gradient(ellipse at 65% 64%, color-mix(in srgb, var(--lime) 40%, transparent), transparent 58%);
  animation: aura-flow-left 12s ease-in-out -3s infinite;
}

.ambient-aura::after {
  top: 24%;
  right: -20%;
  border-radius: 58% 42% 38% 62%;
  background:
    radial-gradient(ellipse at 42% 58%, color-mix(in srgb, var(--lime) 48%, transparent), transparent 62%),
    radial-gradient(ellipse at 64% 30%, color-mix(in srgb, var(--teal) 42%, transparent), transparent 58%);
  animation: aura-flow-right 14s ease-in-out -9s infinite;
}

@keyframes aura-flow-left {
  0%,
  100% {
    opacity: calc(var(--aura-opacity) * 0.8);
    transform: translate3d(0, 0, 0) rotate(-8deg) scale(0.94, 1.04);
  }
  50% {
    opacity: var(--aura-opacity);
    transform: translate3d(var(--aura-travel-x), var(--aura-travel-y), 0) rotate(10deg) scale(1.18, 0.92);
  }
}

@keyframes aura-flow-right {
  0%,
  100% {
    opacity: var(--aura-opacity);
    transform: translate3d(0, 0, 0) rotate(9deg) scale(1.08, 0.94);
  }
  50% {
    opacity: calc(var(--aura-opacity) * 0.72);
    transform: translate3d(calc(var(--aura-travel-x) * -1), calc(var(--aura-travel-y) * -1), 0) rotate(-12deg) scale(0.92, 1.2);
  }
}

@media (max-width: 719px) {
  /* Two smaller clouds preserve independent motion without full-screen blur layers. */
  .ambient-aura::before,
  .ambient-aura::after {
    width: calc(88vw * var(--aura-size));
    height: calc(58svh * var(--aura-size));
    filter: blur(24px);
  }

  .ambient-aura::before {
    top: -6%;
    left: -38%;
  }

  .ambient-aura::after {
    top: 34%;
    right: -38%;
  }
}

[data-theme="dark"] body::before {
  background:
    linear-gradient(90deg, rgba(246, 241, 231, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(246, 241, 231, 0.04) 1px, transparent 1px);
}


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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
textarea {
  font: inherit;
}

.visually-hidden {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 20;
  padding: 10px 14px;
  color: var(--light);
  background: var(--dark);
  transform: translateY(-140%);
  transition: transform 180ms ease;
}

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

.site-header {
  --header-tint: var(--header-glass);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--header-border);
  transition: border-color 180ms ease;
}

/* Filter only the glass layer; keep navigation sharp and the fixed menu independent. */
.site-header::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background: var(--bg);
  box-shadow: inset 0 1px 0 var(--header-reflection);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  --header-tint: var(--header-glass-scrolled);
  border-color: var(--line);
}

.site-header.is-scrolled::before {
  box-shadow: inset 0 1px 0 var(--header-reflection), 0 6px 24px var(--header-shadow);
}

/* Opaque fallback above preserves contrast when backdrop filtering is unavailable. */
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header::before {
    background:
      linear-gradient(to bottom, var(--header-reflection), transparent 85%),
      var(--header-tint);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    backdrop-filter: blur(22px) saturate(160%);
  }

  .site-header.is-scrolled::before {
    -webkit-backdrop-filter: blur(28px) saturate(170%);
    backdrop-filter: blur(28px) saturate(170%);
  }
}

.site-header .nav-panel a:not(.btn) {
  color: var(--text);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 32px, var(--max));
  min-height: 72px;
  margin: 0 auto;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 720;
}

.brand {
  flex: 0 0 auto;
}

.brand-logo,
.footer-logo {
  display: block;
  width: auto;
  object-fit: contain;
}

.brand-logo {
  height: 24px;
  max-width: 148px;
}

.footer-logo {
  height: 30px;
  max-width: 182px;
}

.brand-logo-light,
.footer-logo-light,
[data-theme="dark"] .brand-logo-dark,
[data-theme="dark"] .footer-logo-dark {
  display: none;
}

[data-theme="dark"] .brand-logo-light,
[data-theme="dark"] .footer-logo-light {
  display: block;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(23, 22, 21, 0.06);
  font-size: 13px;
  letter-spacing: 0;
}

.brand-name {
  font-size: 15px;
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  width: 42px;
  height: 42px;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
  transition: transform 180ms ease;
}

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

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

.nav-panel {
  position: fixed;
  inset: 78px 16px auto;
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  box-shadow: var(--shadow);
  opacity: 1;
  pointer-events: auto;
  transform: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

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

.nav-panel a:not(.btn),
.theme-toggle {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  transition: color 180ms ease, background 180ms ease;
}

.nav-panel a:hover,
.theme-toggle:hover {
  color: var(--text);
  background: var(--surface-soft);
}

.theme-toggle {
  justify-content: center;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

.theme-icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--text) 50%, transparent 50%);
  box-shadow: inset 0 0 0 1px var(--text);
}

.section-pad {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 52px 0;
}

.hero {
  position: relative;
  display: grid;
  gap: 24px;
  align-items: center;
  min-height: 0;
  padding-top: 24px;
  padding-bottom: 32px;
}

.hero-copy {
  position: relative;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1,
h2 {
  max-width: 820px;
  line-height: 0.98;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(46px, 12vw, 86px);
}

.hero-title {
  max-width: 820px;
  margin-bottom: 0;
  font-size: clamp(52px, 11vw, 86px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-title-line {
  display: block;
}

.clarity-line {
  color: var(--text);
  filter: none;
  text-wrap: balance;
}

.crossed-word {
  position: relative;
  display: inline-block;
  color: color-mix(in srgb, var(--text) 42%, var(--muted));
}

.crossed-word::after {
  position: absolute;
  left: -0.04em;
  right: -0.05em;
  top: 0.52em;
  height: 0.09em;
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent 0 3%, var(--green-deep) 8% 94%, transparent 100%);
  content: "";
  transform: rotate(-4deg);
  transform-origin: center;
  opacity: 0.9;
}

.highlight-word {
  position: relative;
  display: inline-block;
  padding: 0 0.1em 0.03em;
  color: var(--green-deep);
  white-space: nowrap;
}

.highlight-word::before {
  position: absolute;
  inset: 0.58em -0.04em 0.06em;
  z-index: -1;
  border-radius: 6px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--lime) 34%, transparent), color-mix(in srgb, var(--green) 13%, transparent));
  content: "";
  transform: rotate(-1deg);
}

.highlight-word::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.08em;
  height: 0.06em;
  border-radius: 999px;
  background: color-mix(in srgb, var(--green) 68%, transparent);
  content: "";
  transform: rotate(-1deg);
  opacity: 0.72;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(34px, 8vw, 58px);
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: 0;
}

.hero-text,
.section-heading p,
.process-intro p,
.experience-copy p,
.about-copy p,
.contact-heading p {
  max-width: 640px;
  color: var(--muted);
  font-size: 18px;
}

.hero .hero-text {
  max-width: 650px;
  margin-top: 24px;
  margin-bottom: 0;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 720;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(23, 22, 21, 0.13);
}

.btn-dark {
  color: var(--light);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--green) 34%, transparent), transparent 58%),
    var(--dark);
}

.btn-light {
  color: var(--text);
  background: var(--surface);
}

.btn-small {
  min-height: 42px;
  padding: 0 14px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.trust-row span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface);
  font-size: 13px;
}

.hero-visual {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: scale(0.96);
  transform-origin: center;
}

.hero-mockup {
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  transform: none;
}

.hero-mockup::after {
  display: none;
}

.hero-mockup img {
  width: min(100%, 760px);
  margin: 0 auto;
  aspect-ratio: auto;
  object-fit: contain;
  filter: drop-shadow(0 34px 58px rgba(23, 22, 21, 0.14));
}

.hero-mockup .floating-note {
  display: none;
}

.hero-visual::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(135deg, rgba(159, 232, 70, 0.18), transparent 42%),
    linear-gradient(315deg, rgba(47, 107, 58, 0.18), transparent 48%);
  mix-blend-mode: multiply;
}

[data-theme="dark"] .hero-visual::after {
  mix-blend-mode: screen;
  opacity: 0.4;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.floating-note {
  position: absolute;
  display: none;
  min-width: 150px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: 0 18px 42px rgba(23, 22, 21, 0.16);
  backdrop-filter: blur(14px);
  animation: drift 6s ease-in-out infinite;
}

.floating-note strong,
.floating-note span {
  display: block;
}

.floating-note span {
  color: var(--muted);
  font-size: 13px;
}

.note-one {
  left: 22px;
  bottom: 28px;
}

.note-two {
  right: 22px;
  top: 24px;
  animation-delay: -2s;
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 34px;
}

.services {
  padding-top: 34px;
}

.service-grid {
  display: grid;
  gap: 12px;
}

.service-card,
.project-card,
.metric,
.contact-form,
.contact-direct {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 14px 36px rgba(23, 22, 21, 0.055);
  overflow: hidden;
}

.service-card::before,
.project-card::before,
.metric::before,
.contact-form::before,
.contact-direct::before {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 8px;
  border-top: 2px solid color-mix(in srgb, var(--green) 72%, transparent);
  border-right: 2px solid color-mix(in srgb, var(--green) 72%, transparent);
  border-radius: 0 8px 0 0;
  content: "";
  opacity: 0.48;
}

.service-card::after,
.project-card::after,
.metric::after,
.contact-direct::after {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--signal);
  content: "";
  opacity: 0.86;
}

.service-card {
  min-height: 190px;
  padding: 24px;
  transition: transform 180ms ease, border-color 180ms ease;
}

.service-card-feature {
  min-height: 250px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--green-soft) 72%, transparent), transparent 58%),
    var(--surface);
}

.service-card-accent {
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--lime) 20%, transparent), transparent 46%),
    var(--surface);
}

.service-card-soft {
  min-height: 160px;
}

.service-card:hover {
  border-color: color-mix(in srgb, var(--green) 55%, var(--line));
  transform: translateY(-4px);
}

.service-number {
  display: inline-flex;
  margin-bottom: 48px;
  color: var(--green);
  font-size: 13px;
  font-weight: 760;
}

.service-card p,
.process-item p,
.metric span,
.contact-direct p,
.footer p {
  color: var(--muted);
}

.process {
  display: grid;
  gap: 34px;
}

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

.process-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.process-item > span {
  color: var(--green);
  font-size: 13px;
  font-weight: 780;
}

.experience {
  display: grid;
  gap: 32px;
}

.metric-grid {
  display: grid;
  gap: 12px;
}

.metric {
  padding: 24px;
}

.metric strong {
  display: block;
  margin-bottom: 18px;
  font-size: 36px;
  line-height: 1;
}

.projects {
  position: relative;
}

.project-grid {
  display: grid;
  gap: 12px;
}

.project-card {
  min-height: 190px;
  padding: 24px;
}

.project-card span {
  display: inline-flex;
  margin-bottom: 40px;
  color: var(--green);
  font-size: 13px;
  font-weight: 760;
}

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

.project-card-large {
  min-height: 250px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--green) 12%, transparent), transparent 52%),
    var(--surface);
}

.project-card-tint {
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--lime) 18%, transparent), transparent 50%),
    var(--surface);
}

.about {
  display: grid;
  gap: 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-copy {
  display: grid;
  gap: 10px;
}

.contact {
  display: grid;
  gap: 24px;
}

.contact-layout {
  display: grid;
  gap: 14px;
  align-items: start;
}

.contact-form,
.contact-direct {
  padding: 20px;
}

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

label {
  display: grid;
  gap: 8px;
}

label span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--text);
  background: var(--bg);
  outline: none;
  resize: vertical;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

input:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 16%, transparent);
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.contact-direct {
  position: relative;
  display: grid;
  align-self: start;
  align-content: start;
  gap: 18px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--lime) 18%, transparent), transparent 46%),
    linear-gradient(315deg, color-mix(in srgb, var(--green) 13%, transparent), transparent 54%),
    var(--surface);
  overflow: hidden;
}

.contact-direct-content {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 16px;
}

.footer {
  display: grid;
  gap: 18px;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 34px 0 42px;
  border-top: 1px solid var(--line);
}

.footer-brand {
  width: max-content;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
}

.reveal {
  opacity: 1;
}

.reveal.is-visible {
  animation: reveal-in 700ms ease;
}

@keyframes reveal-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

  .ambient-aura::before,
  .ambient-aura::after {
    animation: none !important;
    transform: none;
  }
}

@media (min-width: 720px) {
  .section-pad {
    width: min(100% - 56px, var(--max));
    padding: 72px 0;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 28px;
    padding-bottom: 40px;
  }

  .hero-title {
    font-size: clamp(54px, 5.6vw, 84px);
  }

  .hero .hero-text {
    max-width: 610px;
  }

  .hero-visual {
    align-self: center;
  }

  .hero.hero-centered {
    grid-template-columns: 1fr;
    max-width: 1120px;
    text-align: center;
  }

  .hero.hero-centered .hero-copy,
  .hero.hero-centered .hero-title,
  .hero.hero-centered .hero-text {
    margin-right: auto;
    margin-left: auto;
  }

  .hero.hero-centered .hero-actions,
  .hero.hero-centered .trust-row {
    justify-content: center;
  }

  .hero.hero-centered .hero-visual {
    width: min(100%, 980px);
    margin: 10px auto 0;
    transform: none;
  }

  .services {
    padding-top: 46px;
  }

  .brand-logo {
    height: 28px;
    max-width: 170px;
  }

  .footer-logo {
    height: 34px;
    max-width: 206px;
  }

  .floating-note {
    display: block;
  }

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

  .service-card-wide {
    grid-column: span 2;
  }

  .process,
  .experience,
  .about,
  .contact-layout {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }

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

  .project-card-large {
    grid-column: auto;
  }

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

@media (min-width: 940px) {
  .menu-toggle {
    display: none;
  }

  .nav-panel {
    position: static;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .theme-toggle {
    width: 42px;
    padding: 0;
  }

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

  .service-card {
    grid-column: span 2;
  }

  .service-card-feature {
    grid-column: span 3;
  }

  .service-card-accent {
    grid-column: span 3;
  }

  .service-card-wide {
    grid-column: span 2;
  }

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

}

@media (min-width: 1040px) {
  .hero {
    grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
    gap: 40px;
    padding-top: 32px;
    padding-bottom: 44px;
  }

  .hero-title {
    max-width: 760px;
  }
}

@media (max-width: 380px) {
  .contact-form .btn,
  .contact-direct .btn {
    width: 100%;
  }

  h1 {
    font-size: 42px;
  }
}

/* Keep navigation usable before initialization and when JavaScript is disabled. */
@media (max-width: 939px) {
  .site-header:not(.menu-ready) {
    position: relative;
  }

  .site-header:not(.menu-ready) .nav {
    flex-wrap: wrap;
  }

  .site-header:not(.menu-ready) .menu-toggle {
    display: none;
  }

  .site-header:not(.menu-ready) .nav-panel {
    position: static;
    width: 100%;
  }

  .menu-ready .nav-panel {
    max-height: calc(100dvh - 94px);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
  }

  .menu-ready .nav-panel.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
}

.menu-toggle:focus-visible,
.nav-panel a:focus-visible,
.theme-toggle:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

/* Compact mobile layouts without fixed heights or clipped copy. */
@media (max-width: 719px) {
  .hero {
    gap: 12px;
    padding-top: 16px;
    padding-bottom: 24px;
  }

  .hero .eyebrow {
    margin-bottom: 10px;
  }

  .hero-title {
    font-size: clamp(38px, 10.4vw, 56px);
    line-height: 1.02;
    overflow-wrap: anywhere;
  }

  .highlight-word {
    max-width: 100%;
    white-space: normal;
  }

  .hero .hero-text {
    margin-top: 14px;
    font-size: 16px;
    line-height: 1.45;
  }

  .hero-actions {
    gap: 8px;
    margin-top: 18px;
  }

  .hero-actions .btn {
    padding: 0 12px;
    font-size: 13px;
  }

  .hero .trust-row {
    gap: 6px;
    margin-top: 14px;
  }

  .hero .trust-row span {
    padding: 5px 8px;
    font-size: 12px;
  }

  .hero .hero-mockup img {
    width: min(72%, 240px);
  }

  .services {
    padding-top: 24px;
    padding-bottom: 36px;
  }

  .projects {
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .services .section-heading,
  .projects .section-heading {
    gap: 8px;
    margin-bottom: 18px;
  }

  .services .section-heading .eyebrow,
  .projects .section-heading .eyebrow {
    margin-bottom: 0;
  }

  .services .section-heading h2,
  .projects .section-heading h2 {
    margin-bottom: 0;
    font-size: clamp(28px, 7.5vw, 34px);
    line-height: 1.08;
  }

  .service-grid,
  .project-grid {
    gap: 8px;
  }

  .service-card,
  .project-card {
    min-height: 0;
    padding: 14px 16px;
  }

  .service-card {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-content: start;
    gap: 6px 8px;
  }

  .service-number {
    margin-bottom: 0;
    line-height: 1.4;
  }

  .service-card h3 {
    margin-bottom: 0;
    padding-right: 30px;
    font-size: 18px;
    line-height: 1.2;
  }

  .service-card p {
    grid-column: 1 / -1;
  }

  .service-card p,
  .project-card p {
    margin-bottom: 0;
    padding-right: 12px;
    font-size: 15px;
    line-height: 1.4;
  }

  .project-card span {
    margin-bottom: 6px;
  }

  .project-card h3 {
    margin-bottom: 6px;
    font-size: 19px;
    line-height: 1.2;
  }
}

@media (min-width: 720px) and (max-width: 1039px) {
  .hero .hero-mockup img {
    width: min(75%, 480px);
  }
}

/* Floating navigation and an editorial, full-viewport opening composition. */
.site-header {
  position: fixed;
  top: 16px;
  right: 0;
  left: 0;
  width: min(100% - 48px, var(--max));
  margin-inline: auto;
  border: 1px solid var(--header-border);
  border-radius: 18px;
}

.site-header::before {
  border-radius: inherit;
  box-shadow: inset 0 1px 0 var(--header-reflection), 0 8px 32px var(--header-shadow);
}

.site-header .nav {
  width: 100%;
  min-height: 74px;
  padding: 0 18px;
  transition: min-height 220ms ease, padding 220ms ease;
}

.site-header.is-scrolled .nav {
  min-height: 62px;
  padding-inline: 16px;
}

.hero {
  width: min(100% - 64px, var(--max));
  min-height: 100svh;
  min-height: 100dvh;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  grid-template-rows: 1fr auto;
  column-gap: clamp(24px, 3vw, 48px);
  row-gap: 28px;
  padding-top: 122px;
  padding-bottom: 24px;
}

.hero .hero-title {
  max-width: none;
  font-size: clamp(48px, 5.1vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.hero .hero-title-line {
  white-space: nowrap;
}

.hero .highlight-word {
  max-width: 100%;
  white-space: nowrap;
}

.hero .hero-text {
  margin-top: 24px;
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.5;
}

.hero .hero-actions {
  margin-top: 24px;
}

.hero .hero-mockup {
  min-width: 0;
  width: 100%;
  isolation: isolate;
}

.hero .hero-mockup::before {
  position: absolute;
  inset: 14% 3% -8%;
  z-index: -1;
  pointer-events: none;
  content: "";
  background: radial-gradient(ellipse at 50% 65%, color-mix(in srgb, var(--green) 24%, transparent), transparent 70%);
  filter: blur(28px);
}

.hero .hero-mockup img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  filter: drop-shadow(0 24px 30px rgba(23, 22, 21, 0.19));
}

.hero-scroll {
  grid-column: 1 / -1;
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  color: var(--text);
  font-size: 13px;
  text-align: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 240ms ease, visibility 0s;
}

.hero-scroll.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 240ms ease, visibility 0s linear 240ms;
}

.hero-scroll:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 8px;
}

.scroll-mouse {
  position: relative;
  width: 20px;
  height: 32px;
  border: 1px solid currentColor;
  border-radius: 11px;
}

.scroll-mouse::before {
  position: absolute;
  top: 6px;
  left: 8px;
  width: 2px;
  height: 6px;
  border-radius: 2px;
  background: currentColor;
  content: "";
  animation: scroll-wheel 1.8s ease-in-out infinite;
}

.scroll-hand {
  display: none;
  width: 30px;
  height: 36px;
  animation: swipe-up 2.2s ease-in-out infinite;
}

@keyframes scroll-wheel {
  0%, 100% { opacity: 0.45; transform: translateY(0); }
  60% { opacity: 1; transform: translateY(8px); }
}

@keyframes swipe-up {
  0%, 100% { opacity: 0.65; transform: translateY(3px); }
  50% { opacity: 1; transform: translateY(-5px); }
}

@media (min-width: 940px) {
  .hero {
    width: min(100% - 48px, 1440px);
    column-gap: clamp(24px, 2vw, 32px);
    row-gap: clamp(28px, 6svh, 64px);
    padding-top: 110px;
  }

  .hero .hero-title {
    font-size: clamp(54px, 5.7vw, 85px);
  }

  .hero .hero-mockup {
    width: 102%;
  }
}

@media (max-width: 939px) {
  .scroll-mouse {
    display: none;
  }

  .scroll-hand {
    display: block;
  }
}

@media (max-width: 939px) {
  .site-header {
    top: 12px;
    width: calc(100% - 24px);
    border-radius: 14px;
  }

  .site-header .nav {
    min-height: 62px;
    padding-inline: 12px;
  }

  .site-header.is-scrolled .nav {
    min-height: 56px;
    padding-inline: 12px;
  }

  .site-header .nav-panel {
    top: 84px;
    right: 12px;
    left: 12px;
  }

  .site-header.is-scrolled .nav-panel {
    top: 78px;
  }

  .menu-ready .nav-panel {
    max-height: calc(100dvh - 100px);
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    align-content: space-between;
    gap: 20px;
    padding-top: 108px;
  }

  .hero .hero-title {
    font-size: clamp(44px, 7.2vw, 66px);
  }

  .hero .hero-mockup img {
    width: min(80%, 480px);
  }
}

@media (max-width: 719px) {
  .hero {
    width: calc(100% - 32px);
    gap: 16px;
    padding-top: 96px;
    padding-bottom: 18px;
  }

  .hero .hero-title {
    font-size: clamp(34px, 10vw, 48px);
    line-height: 1.04;
  }

  .hero .hero-text {
    margin-top: 16px;
    font-size: 16px;
    line-height: 1.45;
  }

  .hero .hero-actions {
    margin-top: 18px;
  }

  .hero .hero-mockup img {
    width: min(82%, 320px);
  }

  .hero-scroll {
    gap: 7px;
    padding-block: 0;
    font-size: 12px;
  }
}

@media (max-width: 719px) and (max-height: 740px) {
  .hero .hero-mockup img {
    width: min(72%, 240px);
  }
}

@media (max-width: 939px) {
  /* Keep the no-JavaScript navigation in flow and clear of the opening title. */
  .site-header:not(.menu-ready) {
    position: relative;
    top: 12px;
  }

  .site-header:not(.menu-ready) + main .hero {
    padding-top: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-mouse::before,
  .scroll-hand {
    animation: none !important;
    transform: none;
  }
}

/* Preserve the full-screen composition on short desktop windows. */
@media (min-width: 940px) and (max-height: 760px) {
  .hero {
    row-gap: 18px;
    padding-top: 108px;
    padding-bottom: 12px;
  }

  .hero .hero-title {
    font-size: clamp(46px, 9svh, 70px);
  }

  .hero .eyebrow {
    margin-bottom: 10px;
  }

  .hero .hero-text {
    margin-top: 16px;
    font-size: 17px;
    line-height: 1.4;
  }

  .hero .hero-actions {
    margin-top: 16px;
  }

  .hero .trust-row {
    margin-top: 14px;
  }

  .hero .trust-row span {
    padding-block: 6px;
  }

  .hero .hero-mockup img {
    width: min(100%, calc((100svh - 220px) * 1.65));
  }

  .hero-scroll {
    gap: 6px;
    padding-block: 4px;
  }
}

.contact-form .btn:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
  box-shadow: none;
}
