:root {
  --depth-void: #010408;
  --depth-mid: #030d18;
  --depth-light: #061522;
  --foam: #d4eaf4;
  --mist: rgba(212, 234, 244, 0.68);
  --biolume: #1fcbba;
  --biolume-dim: rgba(31, 203, 186, 0.28);
  --lagoon: #3d8fc9;
  --abyss-glow: rgba(18, 110, 140, 0.22);
  --text: var(--foam);
  --muted: rgba(212, 234, 244, 0.55);
  --border: rgba(212, 234, 244, 0.1);
  --glass: rgba(6, 21, 34, 0.62);
  --radius-lg: 22px;
  --radius-md: 14px;
  --font-display: "Fraunces", Georgia, serif;
  --font-heading: "Syne", system-ui, sans-serif;
  --font-sans: "Sora", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-premium: cubic-bezier(0.17, 0.84, 0.44, 1);
  --gold: #c9a962;
  --gold-dim: rgba(201, 169, 98, 0.35);
  --surface-elevated: rgba(10, 28, 42, 0.55);
  --sea-glass: rgba(12, 42, 58, 0.45);
  --kelp-shadow: rgba(4, 24, 36, 0.65);
  --caustic: rgba(140, 220, 235, 0.14);
  --caustic-deep: rgba(31, 203, 186, 0.1);
  --tide-line: rgba(61, 143, 201, 0.22);
  --pearl-edge: rgba(232, 248, 252, 0.14);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--text);
  background: radial-gradient(ellipse 88% 42% at 50% 108%, rgba(31, 203, 186, 0.09), transparent 52%),
    radial-gradient(ellipse 95% 55% at 50% 115%, rgba(8, 55, 72, 0.48), transparent 58%),
    radial-gradient(1000px 720px at 10% -8%, rgba(45, 108, 138, 0.16), transparent 56%),
    radial-gradient(820px 640px at 92% 5%, rgba(22, 95, 88, 0.12), transparent 52%),
    radial-gradient(ellipse 70% 40% at 75% 88%, rgba(201, 169, 98, 0.04), transparent 50%),
    linear-gradient(175deg, var(--depth-void) 0%, #020a12 32%, var(--depth-mid) 68%, #00060a 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

main {
  position: relative;
  z-index: 1;
  padding-bottom: max(4.5rem, calc(3.5rem + env(safe-area-inset-bottom, 0px)));
}

body.nav-menu-open {
  overflow: hidden;
  touch-action: none;
}

.manta-field {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url("assets/manta-spots.svg"), url("assets/manta-spots.svg");
  background-repeat: repeat, repeat;
  background-size: min(500px, 92vw) min(460px, 88vh), min(360px, 72vw) min(340px, 68vh);
  background-position: 0 0, 22% 38%;
  opacity: 0.48;
  mix-blend-mode: soft-light;
}

.manta-field--hero {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  height: 120%;
  background-image: url("assets/manta-spots.svg"), url("assets/manta-spots.svg");
  background-repeat: repeat, repeat;
  background-size: min(580px, 110vw) min(500px, 95vh), min(400px, 78vw) min(380px, 72vh);
  background-position: 8% -6%, 58% 18%;
  opacity: 0.62;
  mix-blend-mode: screen;
  mask-image: radial-gradient(ellipse 92% 88% at 50% 22%, black 0%, transparent 82%);
  -webkit-mask-image: radial-gradient(ellipse 92% 88% at 50% 22%, black 0%, transparent 82%);
}

.ambient-tides {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.55;
  background: radial-gradient(ellipse 100% 55% at 50% 100%, rgba(31, 203, 186, 0.06), transparent 52%),
    radial-gradient(ellipse 60% 40% at 15% 20%, rgba(61, 143, 201, 0.05), transparent 50%),
    repeating-linear-gradient(
      102deg,
      transparent,
      transparent 100px,
      rgba(61, 143, 201, 0.018) 100px,
      rgba(61, 143, 201, 0.018) 101px
    );
  mix-blend-mode: soft-light;
  animation: tide-drift 28s ease-in-out infinite alternate;
}

@keyframes tide-drift {
  from {
    transform: translateX(-1.5%) scale(1.01);
  }
  to {
    transform: translateX(1.5%) scale(1);
  }
}

.tide-edge {
  position: relative;
  height: clamp(40px, 6vw, 64px);
  margin: 0;
  background: linear-gradient(180deg, rgba(31, 203, 186, 0.12), transparent),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath fill='rgba(8,42,58,0.55)' d='M0,20 C240,48 480,0 720,22 C960,44 1200,8 1440,26 L1440,48 L0,48 Z'/%3E%3Cpath fill='none' stroke='rgba(31,203,186,0.2)' stroke-width='0.5' d='M0,18 C240,46 480,-2 720,20 C960,42 1200,6 1440,24'/%3E%3C/svg%3E")
      center / 100% 100% no-repeat;
  opacity: 1;
  pointer-events: none;
}

.tide-edge--mirror {
  transform: scaleY(-1);
  margin-top: -1px;
  margin-bottom: -1px;
  background: linear-gradient(0deg, rgba(31, 203, 186, 0.08), transparent),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath fill='rgba(4,14,24,0.5)' d='M0,20 C240,48 480,0 720,22 C960,44 1200,8 1440,26 L1440,48 L0,48 Z'/%3E%3Cpath fill='none' stroke='rgba(201,169,98,0.15)' stroke-width='0.5' d='M0,18 C240,46 480,-2 720,20 C960,42 1200,6 1440,24'/%3E%3C/svg%3E")
      center / 100% 100% no-repeat;
}

.tide-edge--subtle {
  height: clamp(26px, 4vw, 40px);
  background: radial-gradient(ellipse 85% 160% at 50% 0%, rgba(31, 203, 186, 0.14), transparent 70%),
    linear-gradient(180deg, rgba(4, 18, 32, 0.4), transparent);
  opacity: 0.95;
}

.hero-caustics {
  position: absolute;
  inset: -5% -15% 0 -15%;
  height: 95%;
  opacity: 0.55;
  background: radial-gradient(ellipse 50% 35% at 28% 42%, var(--caustic), transparent 62%),
    radial-gradient(ellipse 40% 30% at 72% 38%, var(--caustic-deep), transparent 58%),
    radial-gradient(ellipse 30% 22% at 55% 62%, rgba(212, 234, 244, 0.06), transparent 55%);
  mix-blend-mode: soft-light;
  animation: caustic-shift 22s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 1;
}

@keyframes caustic-shift {
  0% {
    opacity: 0.45;
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    opacity: 0.62;
    transform: translate3d(2%, -1%, 0) scale(1.03);
  }
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.058;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 9999;
}

.wa-float {
  position: fixed;
  z-index: 10000;
  right: max(1.15rem, env(safe-area-inset-right, 0px));
  bottom: max(1.15rem, env(safe-area-inset-bottom, 0px));
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.1rem 0.7rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(145deg, #2fe077, #1ebe5d 55%, #128c7e);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.12), 0 12px 36px rgba(18, 140, 126, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), filter 0.35s var(--ease-out);
  animation: wa-breathe 3.2s ease-in-out infinite;
}

.wa-float:hover {
  color: #fff;
  filter: brightness(1.05);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.1), 0 20px 48px rgba(18, 140, 126, 0.5);
}

.wa-float:focus-visible {
  outline: 3px solid rgba(31, 203, 186, 0.8);
  outline-offset: 4px;
}

.wa-float__icon {
  display: flex;
  flex-shrink: 0;
  line-height: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.wa-float__label {
  white-space: nowrap;
}

@media (max-width: 400px) {
  .hero-title {
    font-size: clamp(2.15rem, 9.2vw, 2.75rem);
  }

  .form-note {
    font-size: 0.74rem;
  }

  .wa-float {
    padding: 0.75rem 0.85rem;
  }

  .wa-float__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

@keyframes wa-breathe {
  0%,
  100% {
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.12), 0 12px 36px rgba(18, 140, 126, 0.45);
  }
  50% {
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.1), 0 16px 44px rgba(32, 200, 120, 0.55);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wa-float {
    animation: none;
  }
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

a:hover {
  color: var(--biolume);
}

a.wa-float,
a.wa-float:hover,
a.wa-float:focus,
a.wa-float:visited {
  color: #fff;
  text-decoration: none;
}

a.wa-float:hover {
  color: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  padding-top: max(0.85rem, env(safe-area-inset-top, 0px));
  padding-right: max(1.5rem, env(safe-area-inset-right, 0px));
  padding-left: max(1.5rem, env(safe-area-inset-left, 0px));
  backdrop-filter: blur(18px) saturate(1.15);
  background: linear-gradient(to bottom, rgba(1, 6, 14, 0.94), rgba(1, 8, 18, 0.52));
  border-bottom: 1px solid rgba(212, 234, 244, 0.07);
  box-shadow: 0 1px 0 rgba(31, 203, 186, 0.14), 0 12px 40px rgba(0, 0, 0, 0.25);
}

.nav {
  position: relative;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.logo:focus-visible {
  outline: 2px solid rgba(31, 203, 186, 0.65);
  outline-offset: 6px;
  border-radius: 8px;
}

.logo-img {
  display: block;
  height: 50px;
  width: auto;
  max-width: min(220px, 52vw);
  object-fit: contain;
  filter: drop-shadow(0 0 28px rgba(31, 203, 186, 0.12));
}

.logo-img--footer {
  height: clamp(30px, 4.5vw, 40px);
  max-width: 180px;
  opacity: 0.94;
  filter: drop-shadow(0 0 20px rgba(31, 203, 186, 0.08));
}

.nav-toggle {
  display: none;
  font: inherit;
  color: var(--foam);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  cursor: pointer;
}

.nav-list {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-list a {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  color: var(--mist);
}

.nav-list a:hover {
  color: var(--foam);
}

.nav-cta {
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(31, 203, 186, 0.45);
  background: rgba(31, 203, 186, 0.08);
  color: var(--foam) !important;
}

.hero {
  position: relative;
  padding: clamp(4rem, 12vw, 8rem) max(1.25rem, env(safe-area-inset-left, 0px)) 5rem max(1.25rem, env(safe-area-inset-right, 0px));
  max-width: 1180px;
  margin: 0 auto;
}

.hero-bg {
  position: absolute;
  inset: -10% -20% auto -20%;
  height: min(520px, 70vh);
  pointer-events: none;
}

.blob {
  position: absolute;
  filter: blur(72px);
  opacity: 0.38;
  border-radius: 50%;
}

.blob-a {
  width: min(420px, 55vw);
  height: min(420px, 55vw);
  left: 6%;
  top: 12%;
  background: radial-gradient(circle at 32% 35%, rgba(52, 130, 168, 0.5), transparent 62%);
}

.blob-b {
  width: min(400px, 52vw);
  height: min(400px, 52vw);
  right: 2%;
  top: 4%;
  background: radial-gradient(circle at 68% 38%, rgba(28, 150, 138, 0.42), transparent 66%);
}

.rays {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 120%;
  background: repeating-linear-gradient(
      115deg,
      transparent,
      transparent 52px,
      rgba(212, 234, 244, 0.024) 52px,
      rgba(212, 234, 244, 0.024) 54px
    ),
    radial-gradient(ellipse at 50% -10%, rgba(40, 110, 130, 0.22), transparent 62%);
  mask-image: radial-gradient(ellipse at 50% 0%, black 0%, transparent 78%);
  z-index: 0;
}

.hero-inner {
  position: relative;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 550;
  font-variation-settings: "SOFT" 45, "WONK" 0.9;
  font-size: clamp(2.6rem, 7vw, 4.35rem);
  line-height: 1.05;
  margin: 0 0 1.75rem;
  text-shadow: 0 0 80px rgba(31, 203, 186, 0.14), 0 28px 60px rgba(0, 4, 12, 0.45);
}

.hero-title .line {
  display: block;
}

.hero-title .word.muted {
  color: rgba(212, 234, 244, 0.38);
  font-weight: 420;
}

.hero-title .word.glow {
  background: linear-gradient(120deg, var(--foam), var(--biolume));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lede {
  max-width: 560px;
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--mist);
  margin: 0 0 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.45rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background 0.35s var(--ease-out);
}

.btn-primary {
  background: linear-gradient(145deg, #2fe0d0 0%, var(--biolume) 38%, #159d8f 100%);
  color: #010408;
  box-shadow: 0 16px 50px var(--biolume-dim), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 55px rgba(31, 203, 186, 0.32);
}

.btn-ghost {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border-color: rgba(212, 234, 244, 0.14);
  color: var(--foam);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.btn-ghost:hover {
  border-color: rgba(31, 203, 186, 0.48);
  background: linear-gradient(165deg, rgba(31, 203, 186, 0.1), rgba(255, 255, 255, 0.04));
}

.btn-full {
  width: 100%;
}

.hero-scroll {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 3.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(212, 234, 244, 0.28);
}

.hero-scroll-line {
  flex: 1;
  max-width: 140px;
  height: 1px;
  background: linear-gradient(90deg, rgba(31, 203, 186, 0.45), transparent);
}

.strip {
  position: relative;
  border-block: 1px solid rgba(31, 203, 186, 0.1);
  background: linear-gradient(180deg, rgba(4, 18, 32, 0.88) 0%, rgba(2, 12, 22, 0.72) 50%, rgba(3, 14, 26, 0.85) 100%);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(212, 234, 244, 0.04), inset 0 -1px 0 rgba(31, 203, 186, 0.06);
}

.strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 120% at 50% -20%, rgba(61, 143, 201, 0.08), transparent 55%);
  pointer-events: none;
}

.strip-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem 0;
}

.marquee {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 3rem;
  list-style: none;
  margin: 0;
  padding: 0 1.5rem;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(212, 234, 244, 0.4);
  text-shadow: 0 0 40px rgba(31, 203, 186, 0.12);
}

.marquee li::after {
  content: "·";
  margin-left: 3rem;
  color: rgba(31, 203, 186, 0.28);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 7rem) max(1.25rem, env(safe-area-inset-left, 0px)) clamp(4rem, 10vw, 7rem) max(1.25rem, env(safe-area-inset-right, 0px));
}

.section.contact {
  padding-bottom: max(5.5rem, calc(4rem + env(safe-area-inset-bottom, 0px)));
}

.section-header {
  max-width: 640px;
  margin-bottom: 3rem;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0 0 0.75rem;
  line-height: 1.08;
  text-shadow: 0 0 60px rgba(31, 203, 186, 0.08);
}

.section-lede {
  margin: 0;
  color: var(--mist);
  line-height: 1.65;
  font-size: 1.05rem;
}

.section-lede--narrow {
  max-width: 38rem;
}

.section--flush {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.section-inner {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: max(1.25rem, env(safe-area-inset-left, 0px));
  padding-right: max(1.25rem, env(safe-area-inset-right, 0px));
}

.eyebrow--gold {
  color: var(--gold);
  letter-spacing: 0.32em;
}

.section-title--premium {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: clamp(2.1rem, 4.5vw, 3.1rem);
  text-shadow: 0 0 80px rgba(61, 143, 201, 0.1);
}

.section-title--premium .title-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 450;
  color: rgba(212, 234, 244, 0.72);
}

.portfolio {
  position: relative;
  padding-block: clamp(4.5rem, 11vw, 8rem);
  margin-top: 1rem;
  overflow: clip;
}

.portfolio::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 95% 65% at 50% -5%, rgba(31, 203, 186, 0.09), transparent 52%),
    radial-gradient(ellipse 70% 55% at 85% 40%, rgba(61, 143, 201, 0.1), transparent 50%),
    radial-gradient(ellipse 55% 45% at 10% 65%, rgba(201, 169, 98, 0.05), transparent 55%),
    linear-gradient(175deg, rgba(2, 12, 22, 0.92) 0%, rgba(1, 6, 12, 0.65) 38%, rgba(1, 4, 8, 0.94) 100%);
  pointer-events: none;
}

.portfolio::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: linear-gradient(rgba(212, 234, 244, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 234, 244, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 85% 70% at 50% 35%, black 25%, transparent 72%);
  pointer-events: none;
}

.portfolio-shell {
  position: relative;
  z-index: 1;
}

.portfolio-intro {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2.5rem;
  align-items: end;
  margin-bottom: 2.5rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-radius: calc(var(--radius-lg) + 8px);
  border: 1px solid rgba(212, 234, 244, 0.08);
  background: linear-gradient(
      155deg,
      rgba(255, 255, 255, 0.04) 0%,
      rgba(255, 255, 255, 0.01) 42%,
      rgba(201, 169, 98, 0.04) 100%
    ),
    linear-gradient(180deg, rgba(8, 22, 36, 0.65), rgba(2, 8, 14, 0.82));
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06), inset 0 0 0 1px rgba(201, 169, 98, 0.06);
  backdrop-filter: blur(14px);
}

.portfolio-intro__stats {
  display: flex;
  gap: 2rem;
  padding: 1rem 1.25rem;
  padding-bottom: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(212, 234, 244, 0.06);
  background: rgba(1, 4, 10, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.p-stat {
  text-align: right;
}

.p-stat__value {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--foam) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.p-stat__label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(212, 234, 244, 0.42);
}

.portfolio-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1rem 1.25rem 1.35rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(212, 234, 244, 0.06);
  background: linear-gradient(180deg, rgba(6, 18, 30, 0.85), rgba(4, 12, 22, 0.55));
  border-bottom: 1px solid rgba(212, 234, 244, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.portfolio-toolbar__label {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(212, 234, 244, 0.4);
}

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-pill {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 234, 244, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(212, 234, 244, 0.72);
  cursor: pointer;
  transition: border-color 0.35s var(--ease-premium), background 0.35s var(--ease-premium), color 0.35s var(--ease-premium),
    box-shadow 0.35s var(--ease-premium);
}

.filter-pill:hover {
  border-color: rgba(31, 203, 186, 0.35);
  color: var(--foam);
}

.filter-pill.is-active {
  border-color: rgba(201, 169, 98, 0.55);
  background: linear-gradient(145deg, rgba(31, 203, 186, 0.12), rgba(201, 169, 98, 0.06));
  color: var(--foam);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
  grid-auto-rows: minmax(180px, auto);
}

.portfolio-grid--single {
  grid-template-columns: 1fr;
  max-width: min(980px, 100%);
  margin-inline: auto;
}

.portfolio-grid--single .portfolio-card--featured {
  grid-column: 1 / -1;
  grid-row: auto;
}

.portfolio-grid--two {
  grid-template-columns: repeat(12, 1fr);
  max-width: min(1180px, 100%);
  margin-inline: auto;
  align-items: stretch;
}

.portfolio-grid--two .portfolio-card--featured {
  grid-column: span 6;
  grid-row: auto;
  min-width: 0;
}

.portfolio-card {
  position: relative;
  border-radius: calc(var(--radius-lg) + 4px);
  min-height: 0;
}

.portfolio-card[hidden] {
  display: none !important;
}

.portfolio-card__surface {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
  color: inherit;
  border-radius: inherit;
  border: 1px solid rgba(212, 234, 244, 0.11);
  background: linear-gradient(168deg, rgba(12, 34, 52, 0.72), rgba(2, 8, 16, 0.78));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(31, 203, 186, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: border-color 0.45s var(--ease-premium), box-shadow 0.45s var(--ease-premium), transform 0.55s var(--ease-premium);
}

.portfolio-card:hover .portfolio-card__surface {
  border-color: rgba(201, 169, 98, 0.32);
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(31, 203, 186, 0.14), 0 0 56px rgba(31, 203, 186, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transform: translateY(-4px);
}

.portfolio-card:focus-within .portfolio-card__surface {
  outline: 2px solid var(--biolume);
  outline-offset: 4px;
}

.portfolio-card--featured {
  grid-column: 1 / span 8;
  grid-row: 1 / span 2;
}

.portfolio-card--compact:nth-of-type(2) {
  grid-column: 9 / span 4;
  grid-row: 1 / span 1;
}

.portfolio-card--compact:nth-of-type(3) {
  grid-column: 9 / span 4;
  grid-row: 2 / span 1;
}

.portfolio-card--wide {
  grid-column: span 4;
  grid-row: 3 / span 1;
}

.portfolio-card__preview {
  position: relative;
  display: block;
  overflow: hidden;
  border-bottom: 1px solid rgba(212, 234, 244, 0.06);
  flex-shrink: 0;
}

.portfolio-embed {
  position: relative;
  display: block;
  width: 100%;
}

.portfolio-embed--mockup {
  position: relative;
  isolation: isolate;
  aspect-ratio: 16 / 10;
  min-height: 260px;
  padding: clamp(14px, 2.8vw, 28px);
  border-bottom: none;
  background: radial-gradient(ellipse 95% 75% at 50% 88%, rgba(201, 169, 98, 0.11), transparent 58%),
    radial-gradient(ellipse 80% 55% at 50% 12%, rgba(31, 203, 186, 0.09), transparent 52%),
    radial-gradient(ellipse 120% 90% at 50% 50%, rgba(15, 35, 52, 0.65), rgba(2, 6, 12, 0.98)),
    linear-gradient(168deg, #071520 0%, #03090f 48%, #020508 100%);
  box-shadow: inset 0 0 0 1px rgba(212, 234, 244, 0.07), inset 0 0 60px rgba(0, 0, 0, 0.35), inset 0 -24px 80px rgba(0, 0, 0, 0.42);
}

.portfolio-embed--mockup::before {
  content: "";
  position: absolute;
  inset: clamp(10px, 2vw, 22px);
  border-radius: 12px;
  background: radial-gradient(ellipse 70% 55% at 50% 28%, rgba(255, 255, 255, 0.06), transparent 62%);
  pointer-events: none;
  z-index: 0;
}

.portfolio-embed--mockup::after {
  content: "";
  position: absolute;
  inset: clamp(10px, 2vw, 22px);
  border-radius: 12px;
  border: 1px solid rgba(201, 169, 98, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 48px rgba(31, 203, 186, 0.06);
  pointer-events: none;
  z-index: 1;
}

.portfolio-embed--mockup.is-live::before,
.portfolio-embed--mockup.is-live::after {
  content: none;
  display: none;
}

.portfolio-embed--mockup.is-live {
  padding: 0;
  min-height: min(68vh, 720px);
  aspect-ratio: auto;
  background: #03070c;
  box-shadow: inset 0 0 0 1px rgba(212, 234, 244, 0.1);
}

.portfolio-embed__veil {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: 10px;
  background: linear-gradient(
    160deg,
    rgba(1, 8, 18, 0.38) 0%,
    rgba(1, 12, 26, 0.52) 45%,
    rgba(0, 5, 14, 0.62) 100%
  );
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out), visibility 0.35s var(--ease-out);
}

.portfolio-embed.is-live .portfolio-embed__veil {
  opacity: 0;
  visibility: hidden;
}

.portfolio-embed__fab {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(4, 14, 26, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(31, 203, 186, 0.12);
  white-space: nowrap;
  opacity: 0.96;
  transition: opacity 0.35s var(--ease-out), background 0.35s var(--ease-out), transform 0.35s var(--ease-out),
    top 0.35s var(--ease-out), right 0.35s var(--ease-out), left 0.35s var(--ease-out);
}

.portfolio-embed__fab:hover {
  opacity: 1;
  background: rgba(8, 24, 40, 0.88);
  transform: translate(-50%, -50%) scale(1.02);
}

.portfolio-embed__fab:focus-visible {
  opacity: 1;
  outline: 2px solid var(--biolume);
  outline-offset: 3px;
}

.portfolio-embed.is-live .portfolio-embed__fab {
  left: auto;
  top: 0.65rem;
  right: 0.65rem;
  transform: none;
  opacity: 0.88;
  background: rgba(4, 10, 18, 0.78);
  padding: 0.5rem 0.95rem;
}

.portfolio-embed.is-live .portfolio-embed__fab:hover {
  opacity: 1;
  transform: scale(1.02);
}

.portfolio-embed:not(.is-live) .portfolio-embed__poster,
.portfolio-embed:not(.is-live) .portfolio-embed__poster .portfolio-preview-img {
  pointer-events: none;
}

.portfolio-embed__stage {
  position: relative;
  z-index: 2;
  border-radius: 10px;
  overflow: hidden;
}

.portfolio-embed.is-live .portfolio-embed__stage {
  min-height: 0;
}

.portfolio-embed__poster {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 200px;
}

.portfolio-embed.is-live .portfolio-embed__poster {
  display: none;
}

.portfolio-embed__frame {
  display: none;
  width: 100%;
  min-height: min(64vh, 700px);
  height: min(64vh, 700px);
  max-height: 80vh;
  border: 0;
  background: #050a10;
  vertical-align: top;
}

.portfolio-embed.is-live .portfolio-embed__frame {
  display: block;
  position: relative;
  z-index: 1;
  border-radius: 0 0 10px 10px;
}

.portfolio-card--featured .portfolio-embed--mockup:not(.is-live) {
  aspect-ratio: 16 / 9;
  min-height: min(380px, 54vw);
  padding: clamp(18px, 3vw, 34px);
}

.portfolio-preview-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  max-height: 100%;
  margin-top: auto;
  display: block;
  object-fit: contain;
  object-position: center bottom;
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), 0 2px 0 rgba(255, 255, 255, 0.04), 0 0 0 1px rgba(212, 234, 244, 0.06);
  filter: contrast(1.03) saturate(1.03);
}

.portfolio-card:hover .portfolio-embed:not(.is-live) .portfolio-preview-img {
  filter: contrast(1.06) saturate(1.06) brightness(1.02);
}

.portfolio-card--featured .portfolio-card:hover .portfolio-embed--mockup:not(.is-live)::after {
  border-color: rgba(201, 169, 98, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 0 64px rgba(31, 203, 186, 0.12);
}

.browser-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.55rem 0.85rem;
  background: rgba(1, 4, 8, 0.92);
  border-bottom: 1px solid rgba(212, 234, 244, 0.08);
}

.browser-chrome span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(212, 234, 244, 0.16);
}

.browser-chrome span:nth-child(1) {
  background: rgba(255, 95, 87, 0.85);
}

.browser-chrome span:nth-child(2) {
  background: rgba(255, 189, 46, 0.9);
}

.browser-chrome span:nth-child(3) {
  background: rgba(52, 199, 89, 0.9);
}

.browser-chrome--sm {
  padding: 0.4rem 0.65rem;
}

.browser-chrome--sm span {
  width: 7px;
  height: 7px;
}

.preview-canvas {
  flex: 1;
  min-height: 140px;
  position: relative;
  background-size: cover;
  background-position: center top;
}

.preview-canvas--deep {
  background-image: radial-gradient(ellipse 80% 120% at 20% 0%, rgba(74, 168, 255, 0.35), transparent 55%),
    radial-gradient(ellipse 60% 80% at 90% 100%, rgba(31, 203, 186, 0.25), transparent 50%), linear-gradient(165deg, #061520 0%, #02060c 100%);
}

.preview-canvas--ember {
  background-image: radial-gradient(circle at 80% 20%, rgba(255, 140, 90, 0.35), transparent 45%),
    linear-gradient(200deg, #120808 0%, #1a0a06 100%);
}

.preview-canvas--lagoon {
  background-image: radial-gradient(circle at 30% 70%, rgba(31, 203, 186, 0.3), transparent 50%),
    linear-gradient(145deg, #051a18 0%, #020810 100%);
}

.preview-canvas--aurora {
  background-image: radial-gradient(ellipse at 50% 0%, rgba(120, 200, 255, 0.25), transparent 55%),
    radial-gradient(ellipse at 100% 100%, rgba(31, 203, 186, 0.2), transparent 45%), linear-gradient(180deg, #050c14 0%, #071018 100%);
}

.preview-canvas--noir {
  background-image: linear-gradient(135deg, #0a0a0c 0%, #12141a 50%, #050508 100%);
  box-shadow: inset 0 0 80px rgba(61, 143, 201, 0.06);
}

.preview-canvas--gold {
  background-image: radial-gradient(circle at 15% 85%, rgba(201, 169, 98, 0.22), transparent 50%),
    linear-gradient(155deg, #0c0a06 0%, #080604 100%);
}

.portfolio-card__content {
  padding: 1.35rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.portfolio-card__tag {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(201, 169, 98, 0.85);
  margin-bottom: 0.5rem;
}

.portfolio-card__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.portfolio-card__desc {
  margin: 0 0 1.25rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(212, 234, 244, 0.62);
  flex: 1;
}

a.portfolio-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--biolume);
  margin-top: auto;
  align-self: flex-start;
  text-decoration: none;
  min-height: 44px;
  padding-block: 0.2rem;
}

a.portfolio-card__cta:hover {
  color: #e8f8f4;
}

.portfolio-card__cta svg {
  transition: transform 0.4s var(--ease-premium);
}

.portfolio-card:hover .portfolio-card__cta svg {
  transform: translate(3px, -3px);
}

.portfolio-footnote {
  margin-top: 2.5rem;
  font-size: 0.8rem;
  line-height: 1.55;
  color: rgba(212, 234, 244, 0.38);
  max-width: 52rem;
}

.portfolio-footnote code {
  font-size: 0.85em;
  padding: 0.12rem 0.35rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 234, 244, 0.1);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.service-card {
  position: relative;
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(14, 42, 62, 0.82), rgba(4, 14, 26, 0.55));
  border: 1px solid rgba(212, 234, 244, 0.09);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(31, 203, 186, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: border-color 0.45s var(--ease-premium), box-shadow 0.45s var(--ease-premium), transform 0.45s var(--ease-premium);
}

.service-card:hover {
  border-color: rgba(31, 203, 186, 0.22);
  box-shadow: 0 32px 72px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(31, 203, 186, 0.1), 0 0 48px rgba(31, 203, 186, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transform: translateY(-2px);
}

.service-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(320px 200px at 10% 0%, rgba(31, 203, 186, 0.14), transparent 55%);
  pointer-events: none;
}

.service-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 1.25rem;
  right: 1.25rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 169, 98, 0.35), transparent);
  opacity: 0.65;
  pointer-events: none;
}

.service-icon {
  font-size: 1.35rem;
  color: var(--biolume);
  margin-bottom: 1rem;
  opacity: 0.9;
}

.service-title {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.28rem;
  margin: 0 0 0.65rem;
}

.service-text {
  margin: 0 0 1.25rem;
  color: var(--mist);
  font-size: 0.96rem;
  line-height: 1.65;
}

.service-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.service-tags li {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 234, 244, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(212, 234, 244, 0.75);
}

.vision {
  padding-top: 2rem;
}

.vision-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: stretch;
}

.vision-title {
  font-family: var(--font-display);
  font-weight: 550;
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.08;
  margin: 0 0 1.25rem;
}

.vision-title .accent {
  color: var(--biolume);
}

.vision-text {
  margin: 0;
  color: var(--mist);
  line-height: 1.7;
  font-size: 1.05rem;
}

.vision-panel {
  position: relative;
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(212, 234, 244, 0.1);
  background: linear-gradient(165deg, rgba(10, 32, 52, 0.75), rgba(4, 12, 24, 0.55));
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 0 1px rgba(61, 143, 201, 0.06);
}

.panel-glow {
  position: absolute;
  inset: auto -30% -40% -30%;
  height: 70%;
  background: radial-gradient(circle at 50% 0%, rgba(74, 168, 255, 0.35), transparent 65%);
  pointer-events: none;
}

.vision-quote {
  position: relative;
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.45;
}

.vision-attrib {
  position: relative;
  margin: 0;
  font-size: 0.85rem;
  color: rgba(212, 234, 244, 0.45);
}

.process-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.process-steps li {
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(212, 234, 244, 0.09);
  background: linear-gradient(165deg, rgba(8, 26, 42, 0.45), rgba(4, 12, 22, 0.35));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.step-index {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: rgba(31, 203, 186, 0.85);
  margin-bottom: 0.75rem;
}

.step-title {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

.step-text {
  margin: 0;
  font-size: 0.92rem;
  color: var(--mist);
  line-height: 1.55;
}

.metrics {
  padding-block: 3rem 4rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.metric {
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(12, 34, 56, 0.55), transparent);
}

.metric-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin-bottom: 0.35rem;
  background: linear-gradient(120deg, var(--foam), var(--lagoon));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.metric-label {
  font-size: 0.88rem;
  color: var(--mist);
  line-height: 1.45;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.testimonial {
  margin: 0;
  padding: 2rem 1.85rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(212, 234, 244, 0.11);
  background: linear-gradient(158deg, rgba(10, 34, 52, 0.62), rgba(3, 12, 22, 0.72));
  backdrop-filter: blur(14px) saturate(1.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 28px 70px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(31, 203, 186, 0.04);
}

.testimonial blockquote {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--mist);
}

.testimonial figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.88rem;
}

.testimonial .name {
  font-weight: 600;
  color: var(--foam);
}

.testimonial .role {
  color: rgba(212, 234, 244, 0.42);
}

.faq-list {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.faq-item {
  border-radius: var(--radius-md);
  border: 1px solid rgba(212, 234, 244, 0.08);
  background: rgba(255, 255, 255, 0.02);
  padding: 0 1.25rem;
  transition: border-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.faq-item[open] {
  border-color: rgba(31, 203, 186, 0.22);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(31, 203, 186, 0.06);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 0;
  font-weight: 600;
  font-size: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--biolume);
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0 0 1.15rem;
  color: var(--mist);
  line-height: 1.65;
  font-size: 0.96rem;
}

.contact-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: calc(var(--radius-lg) + 6px);
  border: 1px solid rgba(31, 203, 186, 0.28);
  background: radial-gradient(700px 420px at 0% 0%, rgba(74, 168, 255, 0.22), transparent 55%),
    radial-gradient(560px 400px at 100% 100%, rgba(31, 203, 186, 0.16), transparent 55%),
    radial-gradient(ellipse 80% 50% at 50% 120%, rgba(201, 169, 98, 0.06), transparent 50%),
    linear-gradient(165deg, rgba(10, 32, 52, 0.75), rgba(5, 16, 32, 0.72));
  box-shadow: 0 44px 110px rgba(0, 0, 0, 0.48), 0 0 0 1px rgba(212, 234, 244, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
}

.contact-title {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  margin: 0 0 0.75rem;
  line-height: 1.15;
  text-shadow: 0 0 60px rgba(31, 203, 186, 0.1);
}

.contact-lede {
  margin: 0 0 1.25rem;
  color: var(--mist);
  line-height: 1.65;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.contact-email,
.contact-social {
  margin: 0;
}

.contact-email a,
.contact-social a {
  font-weight: 600;
  color: var(--biolume);
  text-decoration: none;
}

.contact-email a:hover,
.contact-social a:hover {
  text-decoration: underline;
}

.contact-social a {
  font-size: 0.96rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field span {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(212, 234, 244, 0.45);
  margin-bottom: 0.4rem;
}

.field input,
.field textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(3, 8, 18, 0.55);
  color: var(--foam);
  font: inherit;
  font-size: 1rem;
  line-height: 1.45;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.field textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(31, 203, 186, 0.55);
  box-shadow: 0 0 0 3px rgba(31, 203, 186, 0.12);
}

.form-note {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.55;
  color: rgba(212, 234, 244, 0.4);
}

.form-note__mono {
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace;
  font-size: 0.72em;
  color: rgba(212, 234, 244, 0.55);
  word-break: break-all;
}

.btn-whatsapp {
  gap: 0.5rem;
}

.btn-whatsapp__icon {
  display: flex;
  flex-shrink: 0;
  line-height: 0;
}

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(31, 203, 186, 0.12);
  padding: 3rem 1.5rem;
  padding-bottom: max(3rem, calc(2.5rem + env(safe-area-inset-bottom, 0px)));
  background: linear-gradient(to top, rgba(0, 3, 8, 0.98) 0%, rgba(1, 10, 22, 0.9) 45%, rgba(2, 14, 28, 0.88) 100%);
  box-shadow: inset 0 1px 0 rgba(212, 234, 244, 0.04);
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 72px;
  pointer-events: none;
  background: radial-gradient(ellipse 90% 100% at 50% 0%, rgba(31, 203, 186, 0.08), transparent 65%);
}

.footer-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
  justify-items: start;
}

.footer-brand {
  display: flex;
  align-items: center;
}

.footer-tagline {
  margin: 0;
  color: rgba(212, 234, 244, 0.45);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  align-items: center;
}

.footer-nav a {
  font-size: 0.92rem;
  color: rgba(212, 234, 244, 0.7);
  text-decoration: none;
}

.footer-copy {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  color: rgba(212, 234, 244, 0.35);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 960px) {
  .portfolio-intro {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .portfolio-intro__stats {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 1.25rem 2rem;
    padding-bottom: 0;
  }

  .p-stat {
    text-align: left;
  }

  .portfolio-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .portfolio-grid .portfolio-card {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .portfolio-grid--two .portfolio-card--featured {
    grid-column: 1 / -1;
    grid-row: auto;
    min-width: 0;
  }

  #work .portfolio-card--featured {
    grid-column: 1 / -1;
    grid-row: auto;
    min-width: 0;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .vision-grid {
    grid-template-columns: 1fr;
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    padding: 0.5rem 1rem;
    -webkit-tap-highlight-color: transparent;
  }

  .nav-list {
    position: absolute;
    right: max(0.75rem, env(safe-area-inset-right, 0px));
    top: calc(100% + 0.5rem);
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.65rem;
    border-radius: var(--radius-md);
    background: rgba(7, 21, 40, 0.97);
    border: 1px solid var(--border);
    min-width: min(280px, calc(100vw - 2.5rem));
    max-height: min(70vh, 420px);
    overflow-y: auto;
    z-index: 120;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    display: none;
    -webkit-overflow-scrolling: touch;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    display: block;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
  }

  .nav-list a:hover,
  .nav-list a:focus-visible {
    background: rgba(255, 255, 255, 0.06);
  }

  .nav-list .nav-cta {
    margin-top: 0.25rem;
    text-align: center;
    justify-content: center;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 48px;
    -webkit-tap-highlight-color: transparent;
  }

  .contact-shell {
    padding: clamp(1.25rem, 4vw, 1.85rem);
    gap: 1.75rem;
    border-radius: var(--radius-lg);
  }

  .btn-whatsapp {
    min-height: 50px;
    -webkit-tap-highlight-color: transparent;
  }

  .portfolio-embed__fab {
    font-size: 0.68rem;
    padding: 0.55rem 0.95rem;
  }

  .portfolio-embed.is-live .portfolio-embed__fab {
    padding: 0.45rem 0.8rem;
  }

  .portfolio-card--featured .portfolio-embed--mockup:not(.is-live) {
    min-height: min(260px, 62vw);
    padding: clamp(10px, 2.5vw, 20px);
    aspect-ratio: 16 / 10;
  }

  .portfolio-embed__poster {
    min-height: 0;
    align-items: center;
    justify-content: center;
  }

  .portfolio-preview-img {
    max-height: none;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center center;
  }

  .portfolio {
    overflow-x: hidden;
    padding-block: clamp(3rem, 9vw, 5.5rem);
  }

  .portfolio-intro {
    padding: clamp(1rem, 3.5vw, 1.5rem);
    gap: 1.35rem;
  }

  .portfolio-intro__stats {
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    width: 100%;
    justify-content: space-between;
  }

  .p-stat {
    flex: 1 1 calc(50% - 0.75rem);
    min-width: 0;
    text-align: left;
  }

  .portfolio-grid.portfolio-grid--two.section-inner {
    max-width: 100%;
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
    padding-right: max(1rem, env(safe-area-inset-right, 0px));
    gap: 1rem;
  }

  .portfolio-intro.section-inner {
    max-width: 100%;
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
    padding-right: max(1rem, env(safe-area-inset-right, 0px));
  }

  .portfolio-footnote.section-inner {
    max-width: 100%;
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
    padding-right: max(1rem, env(safe-area-inset-right, 0px));
    margin-top: 2rem;
    font-size: 0.76rem;
  }

  .portfolio-card__surface {
    border-radius: var(--radius-lg);
  }

  .portfolio-card:hover .portfolio-card__surface {
    transform: translateY(-2px);
  }

  .portfolio-embed--mockup.is-live {
    min-height: min(52vh, 520px);
  }

  .portfolio-embed__frame {
    min-height: min(46vh, 400px);
    height: min(46vh, 400px);
    max-height: min(70vh, 560px);
  }

  a.portfolio-card__cta {
    flex-wrap: wrap;
    row-gap: 0.25rem;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .marquee {
    animation-duration: 40s;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .portfolio-card:hover .portfolio-card__surface {
    transform: none;
  }

  .portfolio-card:hover .portfolio-embed:not(.is-live) .portfolio-preview-img {
    filter: none;
  }

  .portfolio-card:hover .portfolio-card__cta svg {
    transform: none;
  }

  .marquee {
    animation: none;
    white-space: normal;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    row-gap: 0.75rem;
  }

  .marquee li::after {
    content: "";
    margin: 0;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .ambient-tides,
  .hero-caustics {
    animation: none;
  }

  .service-card:hover {
    transform: none;
  }
}
