:root {
  --ximio-dark: #191919;
  --ximio-gray: #444444;
  --ximio-cyan: #53acce;
  --ximio-green: #2c9d8f;
  --ximio-white: #ffffff;
  --ximio-muted: #aaaaaa;
  --line: rgba(255, 255, 255, 0.14);
  --max: 1200px;
  --radius-lg: 34px;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  --danger: #ff6b6b;
  --success: #7cf2b1;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--ximio-dark); overflow-x: clip; }
body { min-height: 100%; font-family: 'Poppins', system-ui, sans-serif; color: var(--ximio-white); background: var(--ximio-dark); overflow-x: clip; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }

#three-bg { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; background: radial-gradient(ellipse at center top, rgba(32, 54, 103, 0.86) 0%, rgba(41, 136, 148, 0.42) 46%, rgba(25, 25, 25, 0.08) 100%); }
.site-overlay { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(25, 25, 25, 0.58) 0%, rgba(25, 25, 25, 0.1) 36%, rgba(25, 25, 25, 0.42) 100%); }
.site-overlay::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3vh; max-height: 24px; background: linear-gradient(180deg, rgba(25, 25, 25, 0), rgba(25, 25, 25, 0.16)); }
.grid-noise { position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: 0.11; background-image: linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px); background-size: 52px 52px; mask-image: radial-gradient(circle at 50% 35%, black, transparent 80%); }

.page { position: relative; z-index: 3; }
.navbar-proto { position: fixed; top: 0; left: 0; z-index: 30; width: 100%; padding: 22px 30px; transition: background 0.25s ease, border 0.25s ease, padding 0.25s ease; }
.navbar-proto.scrolled { background: rgba(25, 25, 25, 0.78); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(255, 255, 255, 0.08); padding: 14px 30px; }
.nav-inner { width: min(var(--max), 100%); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: -0.03em; }
.brand img { width: 50px; height: auto; }
.brand-text { font-size: 18px; }

.nav-toggle { display: none; position: relative; width: 52px; height: 52px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 16px; background: rgba(255, 255, 255, 0.06); cursor: pointer; }
.nav-toggle span { position: absolute; left: 50%; width: 22px; height: 2px; margin: 0; background: #fff; transition: transform 0.25s ease; transform-origin: center; }
.nav-toggle span:first-child { top: calc(50% - 5px); transform: translateX(-50%); }
.nav-toggle span:last-child { top: calc(50% + 5px); transform: translateX(-50%); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateX(-50%) translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateX(-50%) translateY(-5px) rotate(-45deg); }

.nav-links { display: flex; align-items: center; gap: 28px; color: #fff; font-size: 15px; font-weight: 500; }
.nav-links a { position: relative; opacity: 0.78; transition: color 0.28s ease, opacity 0.28s ease; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -9px; height: 2px; border-radius: 999px; background: linear-gradient(90deg, var(--ximio-cyan), var(--ximio-green)); transform: scaleX(0); opacity: 0; transition: transform 0.28s ease, opacity 0.28s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--ximio-cyan); opacity: 1; }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); opacity: 1; }
.nav-cta, .nav-lang { padding: 12px 17px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.08); opacity: 1 !important; }
.nav-cta { background: linear-gradient(142deg, #0f3732 -3.4%, var(--ximio-green) 79.35%); color: #fff !important; box-shadow: 0 0 22px rgba(44, 157, 143, 0.28); }
.nav-cta::after, .nav-lang::after { display: none; }

section, .simple-section { width: 100%; min-height: 100vh; padding: 130px 30px 90px; display: flex; align-items: center; }
.container { width: min(var(--max), 100%); margin: 0 auto; }
.hero { min-height: 100svh; padding-top: 120px; position: relative; }
.hero-layout { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 42px; align-items: end; }

.eyebrow, .section-kicker { width: fit-content; display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.76); font-size: 13px; font-weight: 500; margin-bottom: 28px; backdrop-filter: blur(14px); text-transform: uppercase; letter-spacing: 0.14em; }
.eyebrow::before, .section-kicker::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ximio-green); box-shadow: 0 0 16px var(--ximio-green); }
h1 { max-width: 920px; font-size: clamp(58px, 9.4vw, 128px); line-height: 0.88; letter-spacing: -0.085em; font-weight: 700; margin-bottom: 30px; }
h2 { max-width: 980px; font-size: clamp(38px, 5.8vw, 80px); line-height: 0.96; letter-spacing: -0.065em; font-weight: 600; margin-bottom: 24px; }
.regular { font-weight: 400; }
.gradient-word { display: inline-block; background: linear-gradient(120deg, #ffffff 0%, var(--ximio-cyan) 42%, var(--ximio-green) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 28px rgba(83, 172, 206, 0.16)); }
.hero-copy, .lead { max-width: 770px; color: rgba(255, 255, 255, 0.78); font-size: clamp(18px, 1.8vw, 24px); line-height: 1.55; margin-bottom: 38px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn-x { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 15px 21px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.07); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease; backdrop-filter: blur(12px); }
.btn-x:hover { transform: translateY(-3px); background: rgba(255, 255, 255, 0.13); border-color: rgba(255, 255, 255, 0.26); }
.btn-x.primary { background: linear-gradient(to bottom right, #e2e1e2 0%, #c3c3c3 50%, #777777 100%); color: #313135; border-color: transparent; box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.2), 0 18px 48px rgba(0, 0, 0, 0.22); }

.hero-panel, .process-card, .contact-box, .simple-card { position: relative; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.055)); backdrop-filter: blur(20px); box-shadow: var(--shadow); overflow: hidden; }
.hero-panel, .process-card, .contact-box { padding: 28px; }
.simple-card { padding: 44px; }
.hero-panel::before, .simple-card::before { content: ""; position: absolute; inset: -1px; background: radial-gradient(circle at 20% 10%, rgba(83, 172, 206, 0.34), transparent 34%), radial-gradient(circle at 80% 90%, rgba(44, 157, 143, 0.28), transparent 30%); opacity: 0.65; z-index: -1; }
.panel-title { font-size: 18px; font-weight: 600; margin-bottom: 18px; }
.metrics, .faq-list { display: grid; gap: 12px; }
.metric { display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: center; padding: 16px; border-radius: 24px; background: rgba(25, 25, 25, 0.38); border: 1px solid rgba(255, 255, 255, 0.09); }
.metric strong { font-size: 30px; line-height: 1; letter-spacing: -0.04em; background: linear-gradient(104deg, #858080 1.66%, #fef3f2 41.61%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.metric span { color: rgba(255, 255, 255, 0.72); line-height: 1.45; font-size: 14px; }
.scroll-hint { position: absolute; left: 30px; bottom: 26px; writing-mode: vertical-rl; text-transform: uppercase; letter-spacing: 0.22em; font-size: 11px; color: rgba(255, 255, 255, 0.52); }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.service-card { min-height: 270px; display: flex; flex-direction: column; justify-content: space-between; padding: 26px; border: 1px solid var(--ximio-gray); border-radius: 2.0625rem; background: rgba(25, 25, 25, 0.62); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); backdrop-filter: blur(12px); transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease; }
.service-card:hover { transform: translateY(-8px); border-color: rgba(83, 172, 206, 0.8); background: rgba(255, 255, 255, 0.075); }
.service-number { color: var(--ximio-muted); font-size: 14px; margin-bottom: 40px; }
.service-card h3 { font-size: 25px; line-height: 1.08; font-weight: 600; margin-bottom: 14px; }
.service-card p, .process-item p, .faq-content, .contact-helper { color: rgba(255, 255, 255, 0.68); line-height: 1.52; }

.process-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 38px; align-items: center; }
.process-card { background: linear-gradient(43deg, rgba(68, 68, 68, 0.78) 0%, rgba(25, 25, 25, 0.78) 100%); }
.process-list { display: grid; gap: 12px; }
.process-item { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 20px; border-radius: 24px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.09); }
.process-dot { width: 30px; height: 30px; margin-top: 2px; border-radius: 50%; box-shadow: 0 0 0.625rem #00ffcc; background: linear-gradient(142.22deg, #0f3732 -3.4%, var(--ximio-green) 79.35%); }
.process-item h3 { font-size: 21px; font-weight: 600; margin-bottom: 6px; }

.statement { min-height: 70vh; background: linear-gradient(215deg, #00656c -130.92%, rgba(44, 157, 143, 0.84) -22.18%, #00406c 93.14%, rgba(0, 123, 229, 0.8) 198.57%); position: relative; overflow: hidden; }
.statement::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.16), transparent 34%); opacity: 0.7; }
.statement .container { position: relative; z-index: 1; display: flex; justify-content: center; }
.statement-text { max-width: 920px; font-size: clamp(31px, 4.4vw, 56px); font-weight: 500; line-height: 1.12; text-align: center; letter-spacing: -0.04em; }

.clients-section { min-height: auto; background: #fff; color: var(--ximio-dark); padding: 80px 0; overflow: hidden; }
.clients-inner { display: block; }
.clients-title { padding-left: 0; text-align: center; font-size: 2rem; font-weight: 500; margin-bottom: 32px; }
.clients-track { display: flex; align-items: center; gap: 50px; animation: marquee 32s linear infinite; }
.client-logo { flex: 0 0 auto; width: 150px; display: flex; align-items: center; justify-content: center; filter: grayscale(100%); opacity: 0.82; }
.client-logo img { max-height: 78px; width: auto; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.home-portfolio-cta {
  min-height: auto;
  padding: 52px 30px 34px;
}

.home-portfolio-cta-card {
  max-width: 920px;
  margin: 0 auto;
  padding: 38px 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  text-align: center;
}

.home-portfolio-cta-card h2 {
  max-width: 760px;
  margin: 0 auto 18px;
}

.home-portfolio-cta-card .lead {
  max-width: 700px;
  margin: 0 auto 24px;
}

.faq-section { min-height: auto; }
.faq-item { border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 24px; background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(14px); overflow: hidden; }
.faq-trigger { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 24px; border: 0; background: transparent; color: #fff; text-align: left; cursor: pointer; }
.faq-trigger span:first-child { font-size: 20px; font-weight: 500; }
.faq-icon { font-size: 26px; line-height: 1; transition: transform 0.25s ease; }
.faq-item.is-open .faq-icon { transform: rotate(45deg); }
.faq-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-content-inner { padding: 0 24px 24px; }
.faq-content-inner p + p { margin-top: 12px; }

.contact-section { min-height: 86vh; }
.contact-box { width: min(760px, 100%); margin: 0 auto; background: linear-gradient(43deg, rgba(68, 68, 68, 0.92) 0%, rgba(25, 25, 25, 0.92) 100%); text-align: center; }
.contact-box h2 { margin-inline: auto; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.contact-grid .full { grid-column: 1 / -1; }
.inputXimio { width: 100%; min-height: 56px; padding: 16px 18px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 18px; background: rgba(255, 255, 255, 0.06); color: #fff; outline: none; transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease; }
.inputXimio::placeholder { color: rgba(255, 255, 255, 0.52); }
.inputXimio:focus { border-color: rgba(83, 172, 206, 0.7); background: rgba(255, 255, 255, 0.08); box-shadow: 0 0 0 4px rgba(83, 172, 206, 0.12); }
textarea.inputXimio { min-height: 160px; resize: vertical; }
.contact-helper { display: block; margin-bottom: 22px; }
.contact-submit { width: 100%; }
.form-message { margin-top: 16px; min-height: 24px; font-size: 14px; }
.form-message.is-error { color: var(--danger); }
.form-message.is-success { color: var(--success); }

.page-simple { min-height: calc(100vh - 160px); }
.simple-section { justify-content: center; }
.simple-card .lead { margin-bottom: 0; }

.portfolio-hero,
.portfolio-listing-section,
.portfolio-detail-content,
.portfolio-detail-banner {
  min-height: auto;
}

.portfolio-hero {
  min-height: auto;
  padding-top: 48px;
  padding-bottom: 4px;
}

.portfolio-hero .section-kicker {
  margin-bottom: 14px;
  margin-top: 55px;
}

.portfolio-hero .lead {
  max-width: 680px;
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.4;
  margin-bottom: 16px;
}

.portfolio-hero-inner h1 {
  font-size: clamp(42px, 4.8vw, 82px) !important;
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.portfolio-hero-inner h1,
.portfolio-detail-hero-copy h1 {
  max-width: 980px;
  margin-bottom: 24px;
}

.portfolio-listing-section {
  padding-top: 0;
  padding-bottom: 56px;
}

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
  justify-content: center;
  position: sticky;
  top: 74px;
  padding: 6px 0 8px;
  backdrop-filter: blur(8px);
  z-index: 6;
}

.portfolio-filter-toggle {
  display: none;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(25, 25, 25, 0.82);
  color: #fff;
}

.portfolio-filter-toggle-icon {
  width: 18px;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.portfolio-filter-toggle-icon span {
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.portfolio-filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.portfolio-filter {
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: rgba(20, 20, 20, 0.9);
  cursor: pointer;
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease, color 0.24s ease;
}

.portfolio-filter.is-active {
  border-color: rgba(16, 16, 16, 0.9);
  background: rgba(25, 25, 25, 0.96);
  color: #fff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.portfolio-canvas-shell {
  position: relative;
  --portfolio-sticky-top: 140px;
  --portfolio-scroll-height: 2800px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.portfolio-scroll-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.portfolio-scroll-cta::after {
  content: "";
  width: 30px;
  height: 1px;
  background: rgba(255, 255, 255, 0.42);
}

.portfolio-canvas-sticky {
  position: sticky;
  top: var(--portfolio-sticky-top);
  height: calc(100vh - var(--portfolio-sticky-top) - 12px);
  min-height: 520px;
  width: 100vw;
  overflow: hidden;
  background: transparent;
  z-index: 3;
}

#portfolio-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: default;
  touch-action: manipulation;
}

.portfolio-canvas-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.portfolio-scroll-space {
  height: var(--portfolio-scroll-height);
}

.portfolio-mobile-list {
  display: none;
}

.portfolio-mobile-card {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background: rgba(18, 18, 18, 0.42);
  backdrop-filter: blur(14px);
}

.portfolio-mobile-card + .portfolio-mobile-card {
  margin-top: 16px;
}

.portfolio-mobile-card-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.portfolio-mobile-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-mobile-card-body {
  padding: 16px 16px 18px;
}

.portfolio-mobile-card-title {
  font-size: 24px;
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 700;
}

.portfolio-mobile-card-meta {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.4;
}

.portfolio-detail-banner img,
.portfolio-detail-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-seo-list {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.portfolio-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
}

.portfolio-detail-hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: flex-end;
  padding: 0 0 70px;
}

.portfolio-detail-hero-media {
  position: absolute;
  inset: 0;
}

.portfolio-detail-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 12, 12, 0.22), rgba(12, 12, 12, 0.74));
}

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

.portfolio-back {
  display: inline-flex;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.78);
}

.portfolio-detail-richtext {
  max-width: 920px;
}

.portfolio-detail-richtext > * + * {
  margin-top: 18px;
}

.portfolio-detail-richtext p,
.portfolio-detail-richtext li {
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.7;
}

.portfolio-detail-richtext h2,
.portfolio-detail-richtext h3 {
  margin-bottom: 0;
}

.footer { position: relative; z-index: 3; background: linear-gradient(0deg, rgba(68, 68, 68, 1) 0%, rgba(40, 39, 39, 1) 100%); padding: 30px; color: #fff; }
.footer-inner { width: min(var(--max), 100%); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; font-size: 16px; color: rgba(255, 255, 255, 0.78); }
.footer-social { display: flex; align-items: center; gap: 14px; }
.footer-social a { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.07); transition: transform 0.2s ease, border-color 0.2s ease; }
.footer-social a:hover { transform: translateY(-2px); border-color: rgba(83, 172, 206, 0.6); }
.progress-pill { position: fixed; right: 24px; bottom: 24px; z-index: 30; width: 58px; height: 58px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.17); background: rgba(25, 25, 25, 0.58); backdrop-filter: blur(14px); display: grid; place-items: center; color: var(--ximio-cyan); font-size: 21px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25); }

[data-scroll-reveal] { --reveal: 0; --reveal-y: 54px; --reveal-scale: 0.96; --reveal-blur: 1px; opacity: calc(0.08 + (var(--reveal) * 0.92)); transform: translate3d(0, calc((1 - var(--reveal)) * var(--reveal-y)), 0) scale(calc(var(--reveal-scale) + (var(--reveal) * (1 - var(--reveal-scale))))); filter: blur(calc((1 - var(--reveal)) * var(--reveal-blur))); will-change: opacity, transform, filter; }
[data-scroll-reveal="left"] { transform: translate3d(calc((1 - var(--reveal)) * -48px), calc((1 - var(--reveal)) * 24px), 0) scale(calc(0.97 + (var(--reveal) * 0.03))); }
[data-scroll-reveal="right"] { transform: translate3d(calc((1 - var(--reveal)) * 48px), calc((1 - var(--reveal)) * 24px), 0) scale(calc(0.97 + (var(--reveal) * 0.03))); }
[data-scroll-reveal="zoom"] { transform: scale(calc(0.88 + (var(--reveal) * 0.12))); }
[data-scroll-reveal="clip"] { clip-path: inset(calc((1 - var(--reveal)) * 48%) 0 0 0 round 18px); transform: translate3d(0, calc((1 - var(--reveal)) * 22px), 0); }

.contact-form span.contact-helper + div {
    justify-content: space-around;
    display: flex;
    padding: 15px 0;
}

@media (max-width: 1024px) {
  .hero-layout, .process-layout { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-canvas-shell { --portfolio-sticky-top: 102px; }
  .portfolio-canvas-sticky { min-height: 460px; }
}

@media (max-width: 760px) {
  .navbar-proto { padding: 16px 18px; }
  .nav-inner { gap: 14px; }
  .brand { gap: 10px; min-width: 0; }
  .brand img { width: 40px; }
  .brand-text { font-size: 15px; }
  .nav-toggle { display: inline-block; }
  .nav-links { position: absolute; top: calc(100% + 12px); right: 18px; left: 18px; display: none; flex-direction: column; align-items: stretch; padding: 18px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 24px; background: rgba(25, 25, 25, 0.94); backdrop-filter: blur(18px); }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 8px 16px; }
  section, .simple-section { min-height: auto; padding: 96px 18px 56px; }
  .hero { min-height: auto; padding-top: 96px; }
  h1 { font-size: clamp(40px, 13vw, 64px); line-height: 0.94; letter-spacing: -0.065em; }
  h2 { font-size: clamp(32px, 9vw, 48px); line-height: 1; }
  .hero-copy, .lead { font-size: 16px; line-height: 1.5; margin-bottom: 22px; }
  .eyebrow, .section-kicker { margin-bottom: 16px; font-size: 11px; letter-spacing: 0.12em; }
  .btn-x { min-height: 48px; padding: 13px 18px; }
  .service-card { min-height: auto; padding: 22px; }
  .service-number { margin-bottom: 22px; }
  .service-card h3 { font-size: 22px; }
  .process-card, .contact-box { padding: 22px; }
  .process-item { padding: 16px; grid-template-columns: 36px 1fr; gap: 12px; }
  .process-item h3 { font-size: 18px; }
  .statement { min-height: auto; }
  .statement-text { font-size: clamp(24px, 8vw, 34px); }
  .home-portfolio-cta { padding: 38px 18px 24px; }
  .home-portfolio-cta-card { padding: 26px 22px; border-radius: 26px; }
  .contact-section { min-height: auto; }
  .portfolio-hero { padding-top: 20px; padding-bottom: 0; }
  .portfolio-hero .lead { font-size: 15px; line-height: 1.42; margin-bottom: 10px; }
  .portfolio-hero-inner h1 { font-size: clamp(34px, 11vw, 52px) !important; margin-bottom: 14px; }
  .hero-panel { display: none; }
  .services-grid, .contact-grid { grid-template-columns: 1fr; }
  .clients-inner { display: block; }
  .clients-title { margin-bottom: 30px; padding: 0 10px; width: 100vw; }
  .portfolio-canvas-shell { display: none; }
  .portfolio-mobile-list { display: block; }
  .portfolio-filters {
    justify-content: flex-start;
    top: 86px;
    margin-bottom: 10px;
    padding: 0;
    backdrop-filter: none;
  }
  .portfolio-filter-toggle { display: inline-flex; }
  .portfolio-filter-list {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    background: rgba(25, 25, 25, 0.92);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
  }
  .portfolio-filters.is-open .portfolio-filter-list { display: flex; }
  .portfolio-filter {
    width: 100%;
    text-align: left;
    justify-content: flex-start;
  }
  .portfolio-detail-richtext p,
  .portfolio-detail-richtext li { font-size: 16px; line-height: 1.6; }
  .portfolio-scroll-cta { display: none; }
  .footer-inner, .footer-social { justify-content: center; }
  .progress-pill { display: none; }
  .simple-card { padding: 28px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .clients-track { animation: none; }
  .btn-x, .service-card, .footer-social a { transition: none; }
  [data-scroll-reveal] { opacity: 1; transform: none; filter: none; clip-path: none; }
  #three-bg { opacity: 0.36; }
}
