:root {
  --bg: #f8faf7;
  --surface: #ffffff;
  --surface-2: #eef4ee;
  --ink: #17211b;
  --muted: #5a665e;
  --line: #dbe3da;
  --accent: #107a56;
  --accent-dark: #0b5f44;
  --amber: #b76822;
  --shadow: 0 22px 70px rgba(23, 33, 27, 0.12);
  --shadow-soft: 0 16px 48px rgba(23, 33, 27, 0.08);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#skills,
#projects,
#experience,
#contact {
  scroll-margin-top: 96px;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(16, 122, 86, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(16, 122, 86, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: 56px 56px;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

main {
  overflow: hidden;
}

body.nav-menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-180%);
  border-radius: var(--radius);
  background: var(--ink);
  color: white;
  padding: 10px 14px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  border-bottom: 1px solid transparent;
  background: rgba(248, 250, 247, 0.86);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  transition:
    background 0.24s ease,
    border-color 0.24s ease,
    box-shadow 0.24s ease;
  z-index: 50;
}

.site-header.is-scrolled {
  background: rgba(248, 250, 247, 0.94);
  border-color: var(--line);
  box-shadow: 0 12px 34px rgba(23, 33, 27, 0.07);
}

.nav {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max);
  min-height: 76px;
  padding: 10px 22px;
}

.brand,
.nav-menu,
.hero-actions,
.contact-actions {
  align-items: center;
  display: flex;
}

.brand {
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(16, 122, 86, 0.14);
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(23, 33, 27, 0.08);
  display: flex;
  flex: 0 0 auto;
  height: 52px;
  justify-content: center;
  overflow: hidden;
  padding: 3px;
  width: 52px;
}

.brand-mark img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  color: var(--ink);
  font-size: 17px;
  letter-spacing: -0.03em;
  line-height: 1;
}

.brand-copy small {
  color: var(--accent-dark);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.nav-menu {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(219, 227, 218, 0.92);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(23, 33, 27, 0.05);
  gap: 6px;
  padding: 4px;
}

.nav-menu a {
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  padding: 9px 12px;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a:focus-visible,
.nav-menu a.active {
  background: var(--surface-2);
  color: var(--ink);
  outline: none;
  transform: translateY(-1px);
}

.nav-menu .nav-resume {
  background: var(--ink);
  color: white;
  padding-left: 15px;
  padding-right: 15px;
}

.nav-menu .nav-resume:hover,
.nav-menu .nav-resume:focus-visible {
  background: var(--accent-dark);
  color: white;
}

.nav-toggle {
  display: none;
}

.nav-backdrop {
  display: none;
}

.hero {
  align-items: center;
  display: grid;
  gap: clamp(38px, 5vw, 76px);
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.82fr);
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max);
  min-height: min(820px, calc(100vh - 68px));
  padding: clamp(56px, 7vw, 88px) 22px 62px;
  position: relative;
}

.hero-content {
  align-self: end;
  grid-column: 1;
  grid-row: 1;
  max-width: 690px;
}

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(48px, 5.4vw, 72px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 24px;
  max-width: 690px;
}

h2 {
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: 0;
  line-height: 1.05;
  margin-bottom: 16px;
}

h3 {
  font-size: 22px;
  letter-spacing: 0;
  line-height: 1.18;
  margin-bottom: 10px;
}

.hero-copy {
  color: var(--muted);
  font-size: clamp(17px, 1.45vw, 20px);
  font-weight: 500;
  line-height: 1.72;
  max-width: 660px;
}

.hero-actions {
  flex-wrap: wrap;
  grid-column: 1;
  grid-row: 2;
  gap: 12px;
  margin-top: -38px;
}

.btn {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 11px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  gap: 10px;
  justify-content: center;
  min-height: 46px;
  padding: 0 17px;
  position: relative;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn svg,
.text-link svg,
.capabilities svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.btn svg {
  height: 18px;
  width: 18px;
}

.btn-primary {
  background:
    linear-gradient(135deg, #11936a 0%, #0f7e5a 48%, #0b4738 100%);
  box-shadow:
    0 14px 30px rgba(16, 122, 86, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background:
    linear-gradient(135deg, #12a676 0%, #0d7554 48%, #083b31 100%);
  box-shadow:
    0 18px 38px rgba(16, 122, 86, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  outline: none;
}

.btn-secondary,
.btn-ghost {
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(135deg, rgba(16, 122, 86, 0.34), rgba(183, 104, 34, 0.22)) border-box;
  border-color: transparent;
  box-shadow:
    0 12px 28px rgba(23, 33, 27, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  color: var(--ink);
}

.btn-secondary:hover,
.btn-secondary:focus-visible,
.btn-ghost:hover,
.btn-ghost:focus-visible {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(238, 244, 238, 0.98)) padding-box,
    linear-gradient(135deg, rgba(16, 122, 86, 0.56), rgba(183, 104, 34, 0.36)) border-box;
  box-shadow:
    0 16px 34px rgba(23, 33, 27, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  color: var(--accent-dark);
  outline: none;
}

.hero-visual {
  align-items: center;
  align-self: center;
  display: flex;
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-content: center;
  min-height: 570px;
}

.portrait-stage {
  background:
    linear-gradient(145deg, rgba(16, 122, 86, 0.14), rgba(255, 255, 255, 0.76)),
    var(--surface-2);
  border: 1px solid rgba(16, 122, 86, 0.18);
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(23, 33, 27, 0.12);
  isolation: isolate;
  min-height: 570px;
  overflow: hidden;
  position: relative;
  width: min(100%, 430px);
}

.portrait-stage::before,
.portrait-stage::after {
  content: "";
  position: absolute;
}

.portrait-stage::before {
  background:
    linear-gradient(90deg, rgba(16, 122, 86, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(16, 122, 86, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  inset: 0;
  opacity: 0.58;
}

.portrait-stage::after {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(16, 122, 86, 0.14);
  border-radius: 50%;
  height: 420px;
  right: -142px;
  top: 112px;
  width: 420px;
}

.hero-portrait {
  animation: portrait-reveal 0.72s ease-out both;
  bottom: -10px;
  filter: drop-shadow(0 24px 26px rgba(23, 33, 27, 0.2));
  height: auto;
  left: 50%;
  max-height: 570px;
  max-width: none;
  position: absolute;
  transform: translateX(-50%);
  width: auto;
  z-index: 2;
}

.code-support {
  animation: support-reveal 0.52s 0.28s ease-out both;
  background: #17211b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px 8px 5px 5px;
  bottom: 52px;
  box-shadow: 0 18px 34px rgba(23, 33, 27, 0.22);
  color: rgba(255, 255, 255, 0.72);
  display: flex;
  flex-direction: column;
  height: 300px;
  overflow: hidden;
  position: absolute;
  right: 18px;
  width: 142px;
  z-index: 1;
}

.code-support-top {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 5px;
  height: 31px;
  padding: 0 10px;
}

.code-support-top span {
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  height: 6px;
  width: 6px;
}

.code-support-top span:first-child {
  background: #b76822;
}

.code-support-top span:last-child {
  background: #52c296;
}

.code-support-body {
  display: grid;
  flex: 1;
  gap: 9px;
  align-content: start;
  padding: 16px 13px 15px;
}

.code-support-body small {
  color: #8ee0bd;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.code-support-body i {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  height: 5px;
}

.code-support-body i:nth-of-type(1) {
  width: 86%;
}

.code-support-body i:nth-of-type(2) {
  width: 64%;
}

.code-support-body i:nth-of-type(3) {
  background: rgba(82, 194, 150, 0.62);
  width: 74%;
}

.code-support-footer {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  font-size: 9px;
  font-weight: 800;
  gap: 7px;
  letter-spacing: 0.08em;
  padding: 10px 12px;
  text-transform: uppercase;
}

.code-support-footer span {
  animation: status-pulse 2.4s ease-in-out infinite;
  background: #52c296;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(82, 194, 150, 0.14);
  height: 6px;
  width: 6px;
}

.deploy-base {
  animation: support-reveal 0.52s 0.42s ease-out both;
  align-items: center;
  background: #17211b;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 5px;
  bottom: 14px;
  box-shadow: 0 18px 34px rgba(23, 33, 27, 0.24);
  color: rgba(255, 255, 255, 0.74);
  display: flex;
  height: 38px;
  justify-content: space-between;
  left: 28px;
  padding: 0 13px;
  position: absolute;
  right: 28px;
  z-index: 3;
}

.deploy-base::before {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.14), rgba(82, 194, 150, 0.3));
  border-radius: 5px 5px 0 0;
  content: "";
  height: 8px;
  left: 7px;
  position: absolute;
  right: 7px;
  top: -8px;
}

.deploy-base::after {
  animation: deploy-scan 3.8s ease-in-out infinite;
  background: linear-gradient(90deg, transparent, rgba(142, 224, 189, 0.42), transparent);
  content: "";
  inset: 1px auto 1px -36%;
  position: absolute;
  width: 32%;
}

.deploy-base-lights {
  display: flex;
  gap: 6px;
}

.deploy-base-lights span {
  background: rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  height: 6px;
  width: 6px;
}

.deploy-base-lights span:first-child {
  background: #52c296;
}

.deploy-base strong {
  color: #8ee0bd;
  font-size: 9px;
  letter-spacing: 0.12em;
}

@keyframes portrait-reveal {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes support-reveal {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes status-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(82, 194, 150, 0.12);
  }

  50% {
    box-shadow: 0 0 0 7px rgba(82, 194, 150, 0.04);
  }
}

@keyframes deploy-scan {
  0%,
  18% {
    transform: translateX(0);
  }

  72%,
  100% {
    transform: translateX(440%);
  }
}

.stack-band,
.section,
.capabilities,
.seo-faq,
.contact-section,
.footer {
  margin: 0 auto;
  max-width: var(--max);
  padding-left: 22px;
  padding-right: 22px;
}

.stack-band {
  padding-bottom: 104px;
  padding-top: 82px;
  position: relative;
}

.stack-band::before,
.stack-band::after {
  background: linear-gradient(90deg, transparent, rgba(16, 122, 86, 0.16), transparent);
  content: "";
  height: 1px;
  left: 22px;
  position: absolute;
  right: 22px;
}

.stack-band::before {
  top: 0;
}

.stack-band::after {
  bottom: 0;
}

.stack-shell {
  margin-bottom: 34px;
}

.stack-intro {
  max-width: 900px;
}

.stack-intro .eyebrow {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.13em;
  margin-bottom: 10px;
}

.stack-intro h2 {
  font-size: clamp(44px, 4vw, 56px);
  font-weight: 300;
  letter-spacing: -0.055em;
  line-height: 0.98;
  margin-bottom: 0;
}

.stack-intro h2::after {
  background: linear-gradient(90deg, var(--accent), rgba(183, 104, 34, 0.58), transparent);
  border-radius: 999px;
  content: "";
  display: block;
  height: 3px;
  margin-top: 22px;
  width: min(260px, 42vw);
}

.section {
  padding-bottom: 92px;
  padding-top: 92px;
}

#projects {
  padding-bottom: 70px;
  padding-top: 88px;
}

.section-heading {
  max-width: 720px;
}

.section-heading.wide {
  align-items: end;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.62fr);
  max-width: none;
}

.section-heading.project-intro {
  margin-left: auto;
  margin-right: auto;
  max-width: 980px;
  text-align: center;
}

.section-heading.project-intro h2 {
  font-size: clamp(34px, 4.1vw, 52px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.05;
  margin-left: auto;
  margin-right: auto;
  max-width: 900px;
}

.section-heading.project-intro p:not(.eyebrow) {
  font-size: 18px;
  line-height: 1.7;
  margin-left: auto;
  margin-right: auto;
  max-width: 760px;
}

.section-heading p:not(.eyebrow),
.contact-section p,
.project-body p,
.timeline p,
.capabilities p {
  color: var(--muted);
}

.stack-categories {
  background: transparent;
  border-bottom: 1px solid rgba(219, 227, 218, 0.88);
  border-top: 1px solid rgba(219, 227, 218, 0.88);
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  box-shadow: var(--shadow-soft);
  display: grid;
  column-gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  left: 50%;
  margin-top: 0;
  margin-left: -50vw;
  margin-right: -50vw;
  max-width: none;
  padding: clamp(22px, 3vw, 34px);
  position: relative;
  width: 100vw;
  row-gap: 34px;
}

.stack-categories::before {
  background: none;
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.stack-group:first-child {
  margin-left: max(22px, calc((100vw - var(--max)) / 2 + 22px));
}

.stack-group:last-child {
  margin-right: max(22px, calc((100vw - var(--max)) / 2 + 22px));
}

.stack-group {
  min-width: 0;
  position: relative;
  z-index: 1;
}

.stack-group h3 {
  color: var(--accent-dark);
  align-items: center;
  display: flex;
  font-size: 12px;
  font-weight: 900;
  gap: 10px;
  letter-spacing: 0.12em;
  line-height: 1.2;
  margin: 0 0 22px;
  text-transform: uppercase;
}

.stack-group h3::before {
  background: var(--accent);
  border-radius: 999px;
  box-shadow: 0 0 0 5px rgba(16, 122, 86, 0.08);
  content: "";
  height: 7px;
  width: 7px;
}

.stack-grid {
  display: grid;
  column-gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  row-gap: 20px;
}

.tags span {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.tool-card {
  align-items: center;
  border-radius: 14px;
  display: grid;
  gap: 4px 12px;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 54px;
  padding: 7px;
  position: relative;
  transition:
    background 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}

.tool-card:hover {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 26px rgba(23, 33, 27, 0.07);
  transform: translateY(-2px);
}

body.tools-ready .tool-card {
  opacity: 0;
  transform: translate3d(-22px, 0, 0);
}

body.tools-ready .tool-card.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition:
    opacity 0.52s ease var(--delay),
    transform 0.52s cubic-bezier(0.18, 0.8, 0.28, 1) var(--delay);
}

.tool-icon {
  align-items: center;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  color: var(--accent);
  display: grid;
  grid-row: span 2;
  height: 44px;
  justify-items: center;
  width: 44px;
}

.tool-icon svg {
  height: 24px;
  width: 24px;
}

.tool-icon svg * {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.dark-icon {
  background: rgba(247, 223, 30, 0.18);
  color: #201a04;
}

.tool-card strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.tool-card small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.3;
}

.codex-card {
  color: var(--ink);
}

.codex-card .tool-icon {
  background: rgba(18, 184, 134, 0.13);
  color: #27e2a3;
}

.projects-grid {
  display: grid;
  gap: 22px;
  margin-top: 0;
}

.project-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0;
  grid-template-columns: minmax(0, 1.06fr) minmax(350px, 0.72fr);
  overflow: hidden;
}

.project-card.featured {
  background: transparent;
  border: 0;
  border-left: 0;
  border-radius: 0;
  border-right: 0;
  box-shadow: none;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.78fr);
  left: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  position: relative;
  width: 100vw;
}

.project-card.featured::before {
  background: none;
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.project-card.featured > * {
  position: relative;
  z-index: 1;
}

.project-card:not(.featured) {
  grid-template-columns: minmax(0, 0.74fr) minmax(340px, 0.78fr);
}

.project-media {
  background: #edf3eb;
  min-height: 360px;
  padding: 28px;
}

.project-card.featured .project-media {
  aspect-ratio: 1920 / 1500;
  background: transparent;
  margin-left: max(22px, calc((100vw - var(--max)) / 2 + 22px));
  padding: 10px;
}

.project-media img,
.project-media video {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.project-body {
  align-self: center;
  padding: clamp(28px, 4vw, 48px);
}

.project-card.featured .project-body {
  background: transparent;
  border-left: 0;
  margin-right: max(22px, calc((100vw - var(--max)) / 2 + 22px));
  min-height: 100%;
}

.project-kicker {
  color: var(--amber);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.project-body h3 {
  font-size: clamp(32px, 3vw, 40px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 18px;
}

.project-body p {
  font-size: 17px;
  line-height: 1.75;
}

.check-list {
  display: grid;
  gap: 9px;
  list-style: none;
  margin: 20px 0;
  padding: 0;
}

.check-list li {
  color: var(--ink);
  font-size: 15px;
  padding-left: 24px;
  position: relative;
}

.check-list li::before {
  color: var(--accent);
  content: "✓";
  font-weight: 900;
  left: 0;
  position: absolute;
  top: 0;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.tags span {
  padding: 7px 10px;
}

.text-link {
  align-items: center;
  color: var(--accent-dark);
  display: inline-flex;
  font-weight: 900;
  gap: 8px;
}

.text-link svg {
  height: 18px;
  width: 18px;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--amber);
  outline: none;
}

.capabilities {
  padding-bottom: 76px;
  padding-top: 30px;
}

.capabilities-grid {
  border-left: 0;
  border-top: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1080px;
}

.capabilities article {
  --card-accent: var(--accent);
  --card-soft: rgba(16, 122, 86, 0.11);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.66)),
    radial-gradient(circle at 88% 8%, var(--card-soft), transparent 13rem);
  border: 1px solid color-mix(in srgb, var(--card-accent) 22%, var(--line));
  border-radius: 16px;
  box-shadow:
    0 18px 42px rgba(23, 33, 27, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  display: flex;
  flex-direction: column;
  min-height: 230px;
  padding: clamp(24px, 3vw, 34px);
  position: relative;
  transition:
    background 0.26s ease,
    box-shadow 0.26s ease,
    transform 0.26s ease;
}

.capabilities article:hover {
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 22px 52px rgba(23, 33, 27, 0.1),
    0 0 0 1px color-mix(in srgb, var(--card-accent) 18%, transparent);
  transform: translateY(-4px);
  z-index: 1;
}

.capability-card.admin {
  --card-accent: #107a56;
  --card-soft: rgba(16, 122, 86, 0.13);
}

.capability-card.workflow {
  --card-accent: #0ea5e9;
  --card-soft: rgba(14, 165, 233, 0.13);
}

.capability-card.data {
  --card-accent: #8b5cf6;
  --card-soft: rgba(139, 92, 246, 0.12);
}

.capability-card.interface {
  --card-accent: #c26b21;
  --card-soft: rgba(194, 107, 33, 0.13);
}

.capability-topline {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 34px;
}

.capability-topline span,
.capabilities small {
  color: color-mix(in srgb, var(--card-accent) 84%, #17211b);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.capabilities svg {
  background: var(--card-soft);
  border: 1px solid color-mix(in srgb, var(--card-accent) 18%, transparent);
  border-radius: 12px;
  color: var(--card-accent);
  height: 38px;
  padding: 6px;
  width: 38px;
}

.capabilities h3 {
  font-size: 21px;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 10px;
}

.capabilities p {
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 22px;
}

.capabilities small {
  display: block;
  margin-top: auto;
}

.timeline-section {
  align-items: start;
  border-top: 1px solid rgba(16, 122, 86, 0.12);
  display: grid;
  gap: clamp(32px, 5vw, 72px);
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
}

.timeline {
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 0;
  margin-top: 0;
  padding: clamp(24px, 3vw, 36px);
}

.timeline article {
  border-left: 2px solid var(--line);
  padding: 0 0 34px 30px;
  position: relative;
}

.timeline article:last-child {
  padding-bottom: 0;
}

.timeline article::before {
  background: var(--accent);
  border: 4px solid var(--bg);
  border-radius: 999px;
  content: "";
  height: 12px;
  left: -7px;
  position: absolute;
  top: 4px;
  width: 12px;
}

.timeline span {
  color: var(--amber);
  display: block;
  font-size: 14px;
  font-weight: 300;
  margin-bottom: 7px;
}

.timeline h3 {
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 300;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}

.timeline p {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.72;
  max-width: 820px;
}

.seo-faq {
  border-top: 1px solid rgba(16, 122, 86, 0.12);
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  grid-template-columns: minmax(230px, 0.4fr) minmax(0, 1fr);
  padding-bottom: 72px;
  padding-top: 72px;
}

.faq-intro {
  max-width: 390px;
}

.faq-intro h2 {
  font-size: clamp(34px, 3.6vw, 48px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.04;
  margin-bottom: 18px;
}

.faq-intro p:not(.eyebrow) {
  color: var(--muted);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
}

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

.faq-grid article {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.56)),
    radial-gradient(circle at 90% 8%, rgba(16, 122, 86, 0.1), transparent 11rem);
  border: 1px solid rgba(16, 122, 86, 0.14);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(23, 33, 27, 0.06);
  padding: clamp(20px, 2.4vw, 28px);
}

.faq-grid h3 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.18;
  margin-bottom: 10px;
}

.faq-grid p {
  color: var(--muted);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.68;
  margin-bottom: 0;
}

.landing-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  grid-column: 2;
  margin-top: 2px;
}

.landing-links a {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(16, 122, 86, 0.16);
  border-radius: 999px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
  padding: 9px 12px;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.landing-links a:hover,
.landing-links a:focus-visible {
  background: rgba(16, 122, 86, 0.1);
  border-color: rgba(16, 122, 86, 0.28);
  color: var(--ink);
  outline: none;
  transform: translateY(-1px);
}

.service-main {
  overflow: visible;
}

.service-hero {
  margin: 0 auto;
  max-width: var(--max);
  padding: clamp(58px, 7vw, 96px) 22px clamp(44px, 6vw, 72px);
}

.service-hero-inner {
  max-width: 960px;
}

.service-hero h1 {
  font-size: clamp(44px, 6vw, 74px);
  max-width: 940px;
}

.service-hero p:not(.eyebrow) {
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 300;
  line-height: 1.65;
  max-width: 850px;
}

.service-layout {
  display: grid;
  gap: clamp(22px, 3vw, 34px);
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.34fr);
  margin: 0 auto;
  max-width: var(--max);
  padding: 0 22px 80px;
}

.service-panel,
.service-sidebar {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(16, 122, 86, 0.13);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  padding: clamp(24px, 3vw, 38px);
}

.service-panel {
  display: grid;
  gap: 30px;
}

.service-block h2,
.service-sidebar h2 {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-bottom: 12px;
}

.service-block p,
.service-sidebar p,
.service-list li {
  color: var(--muted);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
}

.service-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.service-list li {
  padding-left: 24px;
  position: relative;
}

.service-list li::before {
  color: var(--accent);
  content: ">";
  font-weight: 900;
  left: 0;
  position: absolute;
  top: 0;
}

.service-sidebar {
  align-self: start;
  display: grid;
  gap: 22px;
  position: sticky;
  top: 98px;
}

.service-sidebar .tags {
  margin-bottom: 0;
}

.service-sidebar .btn {
  justify-content: center;
}

.service-nav {
  border-top: 1px solid rgba(16, 122, 86, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 18px;
}

.service-nav a {
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 800;
}

.service-nav a:hover,
.service-nav a:focus-visible {
  color: var(--amber);
  outline: none;
}

.contact-section {
  align-items: center;
  background: var(--ink);
  border-radius: 0;
  color: white;
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1fr) auto;
  left: 50%;
  margin-bottom: 54px;
  margin-left: -50vw;
  margin-right: -50vw;
  max-width: none;
  padding-bottom: clamp(30px, 4vw, 46px);
  padding-top: clamp(30px, 4vw, 46px);
  padding-left: max(22px, calc((100vw - var(--max)) / 2 + 22px));
  padding-right: max(22px, calc((100vw - var(--max)) / 2 + 22px));
  position: relative;
  width: 100vw;
}

.contact-section h2 {
  font-size: clamp(30px, 3.5vw, 46px);
  letter-spacing: -0.04em;
}

.contact-section .eyebrow {
  color: #8ee0bd;
  font-weight: 300;
}

.contact-section p {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 300;
  max-width: 720px;
}

.contact-section h2 {
  font-weight: 300;
}

.contact-section .btn {
  font-weight: 300;
}

.contact-actions {
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.contact-section .btn-secondary,
.contact-section .btn-ghost,
.contact-section .btn-whatsapp {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: white;
}

.contact-section .btn-whatsapp {
  background: rgba(37, 211, 102, 0.18);
  border-color: rgba(37, 211, 102, 0.34);
}

.contact-section .btn-whatsapp:hover,
.contact-section .btn-whatsapp:focus-visible {
  background: rgba(37, 211, 102, 0.26);
  border-color: rgba(37, 211, 102, 0.58);
  color: white;
}

.footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  font-size: 14px;
  justify-content: space-between;
  padding-bottom: 30px;
  padding-top: 28px;
}

.footer p {
  margin-bottom: 0;
}

.footer a {
  color: var(--accent-dark);
  font-weight: 900;
}

.sr-only {
  clip: rect(0, 0, 0, 0);
  border: 0;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

@media (max-width: 980px) {
  .hero,
  .section-heading.wide,
  .project-card,
  .project-card.featured,
  .project-card:not(.featured),
  .timeline-section,
  .seo-faq,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 30px;
    min-height: auto;
    padding-top: 54px;
  }

  .hero-content,
  .hero-visual,
  .hero-actions {
    grid-column: 1;
  }

  .hero-content {
    grid-row: 1;
  }

  .hero-visual {
    grid-row: 2;
    max-width: 680px;
    min-height: 520px;
    width: 100%;
  }

  .hero-actions {
    grid-row: 3;
    margin-top: 0;
  }

  .stack-band {
    padding-bottom: 44px;
    padding-top: 60px;
  }

  #projects {
    padding-bottom: 44px;
    padding-top: 44px;
  }

  .portrait-stage {
    min-height: 500px;
    width: min(100%, 520px);
  }

  .hero-portrait {
    max-height: 500px;
  }

  .code-support {
    right: 72px;
  }

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

  .stack-categories {
    column-gap: 18px;
    padding: 24px;
  }

  .stack-group:first-child {
    margin-left: 0;
  }

  .stack-group:last-child {
    margin-right: 0;
  }

  .stack-shell {
    margin-bottom: 28px;
  }

  .contact-actions {
    justify-content: flex-start;
  }

  .timeline-section .section-heading {
    max-width: 640px;
  }

  .faq-intro {
    max-width: 660px;
  }

  .landing-links {
    grid-column: 1;
  }

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

  .service-sidebar {
    position: static;
  }

  .project-card.featured .project-media {
    margin-left: 0;
  }

  .project-card.featured .project-body {
    border-left: 0;
    border-top: 0;
    margin-right: 0;
  }
}

@media (max-width: 760px) {
  body {
    background-size: 40px 40px;
  }

  .nav {
    min-height: 72px;
    padding: 9px 16px;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    border-radius: 9px;
    height: 50px;
    width: 50px;
  }

  .brand-copy strong {
    font-size: 16px;
  }

  .nav-toggle {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(23, 33, 27, 0.06);
    display: grid;
    height: 46px;
    justify-content: center;
    padding: 0;
    position: relative;
    transition:
      background 0.2s ease,
      border-color 0.2s ease,
      transform 0.2s ease;
    width: 48px;
    z-index: 54;
  }

  .nav-toggle:hover,
  .nav-toggle:focus-visible {
    border-color: rgba(16, 122, 86, 0.4);
    outline: none;
  }

  .nav-toggle:active {
    transform: scale(0.96);
  }

  .nav-toggle-line {
    background: var(--ink);
    border-radius: 99px;
    height: 2px;
    left: 13px;
    position: absolute;
    transition:
      opacity 0.2s ease,
      transform 0.24s ease,
      top 0.24s ease;
    width: 20px;
  }

  .nav-toggle-line:nth-of-type(2) {
    top: 15px;
  }

  .nav-toggle-line:nth-of-type(3) {
    top: 22px;
  }

  .nav-toggle-line:nth-of-type(4) {
    top: 29px;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-of-type(2) {
    top: 22px;
    transform: rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-of-type(3) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-of-type(4) {
    top: 22px;
    transform: rotate(-45deg);
  }

  .nav-menu {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(219, 227, 218, 0.96);
    border-radius: 10px;
    box-shadow: 0 24px 60px rgba(23, 33, 27, 0.14);
    flex-direction: column;
    gap: 4px;
    left: 16px;
    opacity: 0;
    padding: 8px;
    pointer-events: none;
    position: absolute;
    right: 16px;
    top: calc(100% + 8px);
    transform: translateY(-10px) scale(0.985);
    transform-origin: top right;
    transition:
      opacity 0.22s ease,
      transform 0.22s ease,
      visibility 0.22s ease;
    visibility: hidden;
    z-index: 53;
  }

  .nav-menu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    visibility: visible;
  }

  .nav-menu a {
    border-radius: 9px;
    font-size: 15px;
    font-weight: 500;
    opacity: 0;
    padding: 12px 13px;
    transform: translateY(-5px);
    transition:
      background 0.2s ease,
      color 0.2s ease,
      opacity 0.22s ease,
      transform 0.22s ease;
    width: 100%;
  }

  .nav-menu.is-open a {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-menu.is-open a:nth-child(2) {
    transition-delay: 0.035s;
  }

  .nav-menu.is-open a:nth-child(3) {
    transition-delay: 0.07s;
  }

  .nav-menu.is-open a:nth-child(4) {
    transition-delay: 0.105s;
  }

  .nav-menu.is-open a:nth-child(5) {
    transition-delay: 0.14s;
  }

  .nav-menu .nav-resume {
    border-radius: 9px;
    margin-top: 2px;
    text-align: center;
  }

  .service-page .nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .service-page .nav-menu {
    background: transparent;
    border: 0;
    box-shadow: none;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    left: auto;
    opacity: 1;
    padding: 0;
    pointer-events: auto;
    position: static;
    right: auto;
    top: auto;
    transform: none;
    visibility: visible;
    width: 100%;
  }

  .service-page .nav-menu a {
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(219, 227, 218, 0.86);
    flex: 1 1 auto;
    font-size: 13px;
    opacity: 1;
    padding: 9px 10px;
    text-align: center;
    transform: none;
    width: auto;
  }

  .service-page .nav-menu .nav-resume {
    background: var(--ink);
    color: white;
  }

  .nav-backdrop {
    background: rgba(23, 33, 27, 0.12);
    border: 0;
    display: block;
    inset: 72px 0 0;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    transition: opacity 0.22s ease;
    width: 100%;
    z-index: 49;
  }

  .site-header.menu-open + .nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .hero,
  .stack-band,
  .section,
  .capabilities,
  .seo-faq,
  .service-hero,
  .service-layout,
  .contact-section,
  .footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    padding-bottom: 34px;
    padding-top: 44px;
  }

  h1 {
    font-size: clamp(38px, 10.5vw, 48px);
    letter-spacing: -0.045em;
  }

  h2 {
    font-size: clamp(32px, 9vw, 42px);
    letter-spacing: -0.04em;
  }

  .hero-visual {
    min-height: 430px;
  }

  .portrait-stage {
    min-height: 420px;
  }

  .hero-portrait {
    max-height: 425px;
  }

  .code-support {
    bottom: 43px;
    right: 30px;
    transform: scale(0.82);
    transform-origin: bottom right;
  }

  .deploy-base {
    bottom: 10px;
    height: 34px;
    left: 14px;
    right: 14px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .hero-actions,
  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .stack-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stack-band {
    padding-bottom: 30px;
    padding-top: 48px;
  }

  #projects {
    padding-bottom: 40px;
    padding-top: 30px;
  }

  .stack-shell {
    margin-bottom: 24px;
  }

  .stack-intro .eyebrow {
    font-size: 11px;
    margin-bottom: 9px;
  }

  .stack-intro h2 {
    font-size: clamp(42px, 10vw, 50px);
    letter-spacing: -0.06em;
  }

  .tool-card {
    gap: 4px 10px;
    min-height: 50px;
    padding: 6px;
  }

  .tool-icon {
    border-radius: 12px;
    height: 38px;
    width: 38px;
  }

  .tool-icon svg {
    height: 22px;
    width: 22px;
  }

  .project-media {
    min-height: 250px;
    padding: 18px;
  }

  .project-body {
    padding: 26px 22px;
  }

  .project-body h3 {
    font-size: clamp(30px, 8vw, 34px);
  }

  .project-body p {
    font-size: 16px;
  }

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

  .capabilities article {
    min-height: 0;
    padding: 22px;
  }

  .capability-topline {
    margin-bottom: 24px;
  }

  .timeline-section {
    padding-bottom: 64px;
    padding-top: 64px;
  }

  .seo-faq {
    padding-bottom: 54px;
    padding-top: 54px;
  }

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

  .timeline {
    padding: 22px;
  }

  .timeline article {
    padding-left: 24px;
  }

  .contact-section {
    padding-bottom: 28px;
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 28px;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 520px) {
  .hero {
    gap: 22px;
  }

  .hero-visual {
    min-height: 390px;
  }

  .portrait-stage {
    min-height: 390px;
  }

  .hero-portrait {
    max-height: 392px;
  }

  .code-support {
    right: 18px;
    transform: scale(0.74);
  }

  .deploy-base strong {
    font-size: 8px;
  }

  .stack-categories {
    grid-template-columns: 1fr;
    row-gap: 30px;
    padding: 18px;
  }

  .stack-grid {
    column-gap: 16px;
    row-gap: 16px;
  }

  .tool-card {
    min-height: 42px;
    padding: 5px;
  }

  .tool-card small {
    font-size: 11.5px;
  }

  .project-card.featured .project-media {
    padding: 6px;
  }

  .capabilities {
    padding-bottom: 58px;
    padding-top: 18px;
  }

  .stack-band {
    padding-bottom: 24px;
  }

  #projects {
    padding-bottom: 34px;
    padding-top: 24px;
  }

  .contact-section h2 {
    font-size: clamp(28px, 9vw, 36px);
  }

  .seo-faq {
    padding-bottom: 44px;
    padding-top: 44px;
  }

  .faq-intro h2 {
    font-size: clamp(30px, 9vw, 38px);
  }
}

@media (max-width: 360px) {
  .nav {
    padding-left: 12px;
    padding-right: 12px;
  }

  .stack-intro h2 {
    font-size: clamp(38px, 11vw, 42px);
  }

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

  .stack-categories {
    padding: 14px;
  }
}

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

  body.tools-ready .tool-card {
    opacity: 1;
    transform: none;
  }
}
