/* ═══════════════════════════════════════════════════════════
   HN Services — Main Stylesheet
   ═══════════════════════════════════════════════════════════ */

/* ─── Design System ──────────────────────────────────────── */
:root {
  --bg: #080808;
  --surface: #111111;
  --surface-2: #1a1a1a;
  --accent: #C9F31D;
  --accent-dim: #9ABB11;
  --white: #F5F0E8;
  --muted: #4a4a4a;
  --border: rgba(255, 255, 255, 0.07);
  --glow: rgba(201, 243, 29, 0.15);

  --font-display: 'Syne', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Space Mono', monospace;

  --text-hero: clamp(3rem, 6.2vw, 6rem);
  --text-giant: clamp(7rem, 18vw, 18rem);
  --text-2xl: clamp(2.25rem, 5vw, 3.5rem);
  --text-xl: clamp(1.5rem, 3vw, 2rem);
  --text-lg: 1.25rem;
  --text-base: 1rem;
  --text-sm: 0.875rem;
  --text-xs: 0.75rem;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;
  --space-11: 192px;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-io: cubic-bezier(0.87, 0, 0.13, 1);
}

/* ─── Reset ──────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

html.hero-loading, html.hero-loading body {
  overflow: hidden !important;
  height: 100% !important;
  position: relative !important;
}

/* Nav + CTA remain clickable even while the hero intro is locked */
html.hero-loading .nav,
html.hero-loading .nav-overlay {
  pointer-events: auto;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img,
video {
  display: block;
  max-width: 100%;
}

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

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  width: 100%;
}

ul {
  list-style: none;
}

/* ─── WebGL fixed canvas ─────────────────────────────────── */
.webgl-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ─── Sections always above the fixed WebGL canvas ──────── */
.nav,
.loader,
.nav-overlay,
.cursor-dot,
.cursor-ring {
  z-index: 1000;
  /* already set elsewhere — ensured here */
}

.section,
.ticker,
.process,
.footer,
.svc3-root,
.port-root,
.cta-root {
  position: relative;
  z-index: 1;
  isolation: isolate;
}

/* Grain texture overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9997;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='250'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='250' height='250' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 220px 220px;
  opacity: 0.045;
  mix-blend-mode: overlay;
}

/* ─── Typography ─────────────────────────────────────────── */
.label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ─── Layout Utilities ───────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--space-8);
}

.section {
  position: relative;
  padding-top: clamp(5rem, 8vh, 7.5rem);
  padding-bottom: clamp(4rem, 6vh, 5.5rem);
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}


/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform, box-shadow, background-color, border-color, color;
}

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

.btn--primary {
  background: var(--accent);
  color: var(--bg);
  border: 1px solid var(--accent);
}

.btn--primary:hover {
  box-shadow:
    0 0 0 1px rgba(201, 243, 29, 0.6),
    0 0 24px rgba(201, 243, 29, 0.25),
    0 0 60px rgba(201, 243, 29, 0.12);
}

.btn--outline {
  border: 1px solid rgba(201, 243, 29, 0.4);
  color: var(--accent);
  background: transparent;
}

.btn--outline:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  box-shadow:
    0 0 0 1px rgba(201, 243, 29, 0.5),
    0 0 20px rgba(201, 243, 29, 0.15);
}

.btn--ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

/* ─── Custom Cursor ──────────────────────────────────────── */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--white);
}

.cursor-ring {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(245, 240, 232, 0.35);
  transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out),
    border-color 0.2s, background 0.2s;
}

.cursor-ring.is-hover-link {
  width: 46px;
  height: 46px;
  border-color: var(--accent);
}

.cursor-ring.is-hover-btn {
  width: 40px;
  height: 40px;
  background: rgba(201, 243, 29, 0.12);
  border-color: var(--accent);
}

/* ─── Loader ─────────────────────────────────────────────── */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-7);
}

.loader__logo {
  opacity: 0.9;
}

.loader__bar-wrap {
  width: 200px;
  height: 1px;
  background: var(--border);
  overflow: hidden;
}

.loader__bar {
  height: 100%;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

/* ─── Navigation ─────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: var(--space-5) var(--space-8);
  transition: background 0.4s var(--ease-out), backdrop-filter 0.4s;
}

.nav.is-scrolled {
  background: rgba(8, 8, 8, 0.88);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.nav__wordmark {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--white);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  margin-inline: auto;
}

.nav__link {
  font-size: var(--text-sm);
  color: rgba(245, 240, 232, 0.6);
  position: relative;
  transition: color 0.2s;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}

.nav__link:hover {
  color: var(--white);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1);
}

.nav__link.is-active {
  color: var(--white);
}

.nav__cta {
  margin-left: var(--space-6);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  margin-left: var(--space-5);
  padding: var(--space-2);
}

.nav__ham-line {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--white);
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}

.nav__hamburger.is-open .nav__ham-line:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav__hamburger.is-open .nav__ham-line:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* ─── Nav Overlay (mobile) ───────────────────────────────── */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-8);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.6s var(--ease-out);
}

.nav-overlay.is-open {
  clip-path: inset(0 0 0% 0);
}

.nav-overlay__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.nav-overlay__link {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: rgba(245, 240, 232, 0.15);
  transition: color 0.2s;
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
  transform: translateY(30px);
  opacity: 0;
  transition: color 0.2s, transform 0.5s var(--ease-out), opacity 0.5s;
}

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

.nav-overlay.is-open .nav-overlay__link:nth-child(1) {
  transition-delay: 0.05s;
}

.nav-overlay.is-open .nav-overlay__link:nth-child(2) {
  transition-delay: 0.10s;
}

.nav-overlay.is-open .nav-overlay__link:nth-child(3) {
  transition-delay: 0.15s;
}

.nav-overlay.is-open .nav-overlay__link:nth-child(4) {
  transition-delay: 0.20s;
}

.nav-overlay__link::before {
  content: attr(data-index);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--muted);
  letter-spacing: 0.1em;
}

.nav-overlay__link:hover {
  color: var(--white);
}

.nav-overlay__bottom {
  margin-top: auto;
  padding-top: var(--space-8);
  border-top: 1px solid var(--border);
}

.nav-overlay__tagline {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(5rem, 10vh, 7rem); /* accounts for fixed nav + breathing room */
}

.hero__noise {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse 80% 60% at 60% 50%, rgba(201, 243, 29, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 4;
}

.hero__eyebrow {
  display: block;
  color: var(--accent);
  margin-bottom: var(--space-6);
  opacity: 0;
}

.hero__heading {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-7);
}

.hero__line {
  display: block;
  overflow: hidden;
  padding-top: 0.12em;
  padding-bottom: 0.12em;
  margin-top: -0.12em;
  margin-bottom: -0.12em;
}

/* Words start invisible; text-particles.js reveals them */
.hero__word {
  opacity: 0;
  white-space: nowrap;
  padding-right: 0.25em; /* Increased to 0.25em to prevent stroke/terminal clipping from overflow: hidden on wide display fonts */
}

.hero__word--fill {
  color: var(--white);
}

.hero__word--stroke {
  -webkit-text-stroke: 2px var(--accent);
  color: var(--bg);
  -webkit-text-fill-color: var(--bg);
}

.hero__word--fill .char,
.hero__word--stroke .char {
  display: inline-block;
  will-change: transform;
}

.hero__sub {
  font-size: var(--text-lg);
  color: rgba(245, 240, 232, 0.55);
  max-width: 480px;
  line-height: 1.6;
  margin-bottom: var(--space-8);
  opacity: 0;
}

.hero__ctas {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero__ctas .btn {
  opacity: 0;
}

.hero__bottom-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to bottom, transparent 0%, var(--bg) 100%);
  pointer-events: none;
  z-index: 3;
}

.hero__scroll-hint {
  position: absolute;
  bottom: var(--space-7);
  left: var(--space-8);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  opacity: 0;
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--accent));
  transform-origin: top;
}

.hero__scroll-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--muted);
  writing-mode: vertical-rl;
}

/* ─── Hero Lightning canvas ──────────────────────────────── */
.hero__lightning {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

/* ─── Hero Badge ─────────────────────────────────────────── */
.hero__badge {
  opacity: 0;
  position: absolute;
  bottom: var(--space-9);
  right: var(--space-8);
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.hero__badge-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
}

.hero__badge-text {
  font-family: var(--font-mono);
  font-size: 9.5px;
  fill: rgba(201, 243, 29, 0.7);
  letter-spacing: 0.06em;
}

.hero__badge-logo {
  position: relative;
  z-index: 1;
}

/* ─── Text particle canvas (hero intro, direct body child) */
#text-particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 99;
}

/* ─── Ticker ─────────────────────────────────────────────── */
.ticker {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: var(--space-4);
  background: var(--surface);
}

.ticker__inner {
  display: flex;
  overflow: hidden;
}

.ticker__track {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  white-space: nowrap;
  /* CSS fallback animation in case GSAP hasn't loaded yet */
  animation: tickerScroll 22s linear infinite;
}

.ticker__item {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.45);
  white-space: nowrap;
}

.ticker__sep {
  color: var(--accent);
  font-size: 8px;
}

/* ─── About ──────────────────────────────────────────────── */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.about__label {
  display: block;
  color: var(--accent);
  margin-bottom: var(--space-6);
}

.about__heading {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-7);
}

.about__heading .reveal-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.18em;
}

.about__heading .reveal-line span {
  display: block;
}

.about__heading-accent span {
  color: var(--accent);
}

.about__text {
  color: rgba(245, 240, 232, 0.6);
  line-height: 1.75;
  margin-bottom: var(--space-5);
}

.about__stats {
  display: flex;
  gap: var(--space-8);
  margin-top: var(--space-8);
  padding-top: var(--space-7);
  border-top: 1px solid var(--border);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.stat__number {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat__label {
  font-size: var(--text-sm);
  color: var(--muted);
}

/* ─── About canvas (video-loop neural net) ───────────────── */
.about__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

.about__right {
  position: relative;
  min-height: 360px;
  padding-top: var(--space-7);
}

.about__bg-letters {
  position: absolute;
  top: 0;
  right: -2rem;
  font-family: var(--font-display);
  font-size: var(--text-giant);
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.04);
  line-height: 0.85;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  letter-spacing: -0.04em;
}

.about__card {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius-md);
  padding: var(--space-7);
}

.about__card-tag {
  display: block;
  color: var(--accent);
  margin-bottom: var(--space-5);
}

.about__card-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.4;
  color: var(--white);
  font-style: italic;
}

.about__card-line {
  width: 32px;
  height: 1px;
  background: var(--muted);
  margin: var(--space-5) 0 var(--space-3);
}

.about__card-author {
  font-size: var(--text-sm);
  color: var(--muted);
}

.about__deco-square {
  position: absolute;
  bottom: -var(--space-8);
  right: var(--space-6);
  width: 64px;
  height: 64px;
  border: 1px dashed rgba(201, 243, 29, 0.25);
  border-radius: var(--radius-sm);
  animation: rotateSlow 12s linear infinite;
}

/* ═══════════════════════════════════════════════════════════
   SERVIÇOS v3 — Stacked Immersive Panels (Awwwards-level)
   Each panel stacks fullscreen, revealed via vertical clip-path.
   Features color shifts, character splits, parallax icons,
   and a persistent bottom navigation connecting the seções.
   ═══════════════════════════════════════════════════════════ */

/* ── Carmed Immersive Slides Redesign ── */
.carmed-root {
  position: relative;
  width: 100%;
  height: 500vh;
  overflow: visible;
  background-color: #0a0a0a;
  z-index: 10;
}

.carmed-top-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 clamp(2rem, 5vw, 6rem);
  z-index: 50;
  pointer-events: none;
}

.carmed-top-nav__logo {
  color: #C9F31D;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.05em;
  pointer-events: auto;
}

.carmed-top-nav__label {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
}

/* Lateral Dots Indicators */
.carmed-nav {
  position: fixed;
  right: clamp(1.5rem, 3vw, 3rem);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
}

.carmed-nav__dot {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem;
  padding: 0.35rem 0;
  outline: none;
}

.carmed-nav__dot-text {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
  white-space: nowrap;
}

.carmed-nav__dot:hover .carmed-nav__dot-text {
  opacity: 1;
  transform: translateX(0);
  color: var(--white);
}

.carmed-nav__dot-circle {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.carmed-nav__dot.is-active .carmed-nav__dot-circle {
  border-color: #C9F31D;
  background: #C9F31D;
  transform: scale(1.3);
  box-shadow: 0 0 12px #C9F31D;
}

.carmed-nav__dot.is-active .carmed-nav__dot-text {
  opacity: 1;
  transform: translateX(0);
  color: #C9F31D;
}

/* Scroll Stage */
.carmed-stage {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-color: #0a0a0a;
  will-change: background-color;
}

/* Individual Slides */
.carmed-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 6.5rem 2rem 5rem;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.carmed-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.carmed-slide__num {
  position: absolute;
  top: 2rem;
  left: clamp(2rem, 5vw, 6rem);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  z-index: 20;
}

.carmed-slide__bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 8.5rem); /* Reduced from 15vw to prevent screen clipping */
  font-weight: 900;
  letter-spacing: 0.05em;
  color: var(--white);
  opacity: 0.1;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  text-align: center;
  white-space: nowrap; /* Prevents ugly wrap */
  will-change: transform, opacity;
}

/* Floater elements with double-wrapper hierarchy for GSAP */
.carmed-slide__floater {
  position: relative;
  width: clamp(200px, 32vh, 320px);
  height: clamp(200px, 32vh, 320px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  margin-bottom: 2rem;
  z-index: 5;
  will-change: transform, opacity;
}

.carmed-slide__floater-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}

.carmed-slide__svg {
  width: 65%;
  height: 65%;
  color: #C9F31D;
  filter: drop-shadow(0 10px 30px rgba(201, 243, 29, 0.25));
}

/* Contents styling */
.carmed-slide__content {
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 10;
  margin-bottom: auto;
  margin-top: 1rem;
}

.carmed-slide__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 1.25rem;
  will-change: transform, opacity;
}

.carmed-slide__bullets {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem 3rem;
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--muted);
  will-change: transform, opacity;
}

.carmed-slide__bullets li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  white-space: nowrap;
}

.carmed-slide__bullet-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #C9F31D;
  box-shadow: 0 0 8px #C9F31D;
}

.carmed-slide__cta-fade {
  will-change: transform, opacity;
}

.carmed-slide__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 2.2rem;
  background: #C9F31D;
  color: var(--bg);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-full);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 4px 15px rgba(201, 243, 29, 0.15);
}

.carmed-slide__cta:hover {
  background: var(--white);
  color: var(--bg);
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
}

/* Responsiveness */
@media (max-width: 768px) {
  .carmed-top-nav__label {
    display: none;
  }
  
  /* Hide the fixed side-dots on mobile — they overlap other sections */
  .carmed-nav {
    display: none !important;
  }

  .carmed-root {
    height: auto !important;
    overflow: visible !important;
  }

  .carmed-stage {
    position: relative !important;
    height: auto !important;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .carmed-slide {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 82vh !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 5.5rem 1.5rem 4rem !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
    overflow: hidden !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  }

  .carmed-slide__bg-text {
    font-size: clamp(2rem, 15vw, 5.5rem) !important;
  }

  .carmed-slide__floater {
    width: clamp(160px, 28vh, 240px) !important;
    height: clamp(160px, 28vh, 240px) !important;
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
  }
  
  .carmed-slide__svg {
    width: 80% !important;
    height: 80% !important;
  }

  .carmed-slide__bullets {
    flex-direction: column !important;
    gap: 0.75rem !important;
    margin-bottom: 1.5rem !important;
  }

  .carmed-slide__bullets li {
    white-space: normal !important;
  }

  .carmed-slide__content {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
}

/* ─── Process (Vertical Steps) ──────────────────────────── */
.process-section {
  min-height: auto;
  overflow: visible;
}

.process-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border);
}

.process-header__label {
  color: var(--accent);
}

.process-header__tag {
  color: var(--muted);
}

/* Each step row */
.process-step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
  min-height: clamp(280px, 38vh, 420px);
  overflow: hidden;
  position: relative;
}

/* Prevent double border between consecutive steps */
.process-step + .process-step {
  border-top: none;
}

/* Alternate: even steps put body on left */
.process-step:nth-child(even) {
  direction: rtl;
}

.process-step:nth-child(even)>* {
  direction: ltr;
}

/* ── Canvas aside ── */
.process-step__aside {
  position: relative;
  overflow: hidden;
  background: rgba(201, 243, 29, 0.018);
  border-right: 1px solid var(--border);
}

.process-step:nth-child(even) .process-step__aside {
  border-right: none;
  border-left: 1px solid var(--border);
}

.process-step__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.85;
}

.process-step__bg-num {
  position: absolute;
  bottom: -0.1em;
  right: -0.05em;
  font-family: var(--font-display);
  font-size: clamp(6rem, 14vw, 12rem);
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 243, 29, 0.07);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.06em;
}

/* ── Text body ── */
.process-step__body {
  padding: clamp(2rem, 4vw, 4rem) clamp(1.5rem, 4vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.process-step__num {
  display: block;
  color: var(--accent);
  margin-bottom: var(--space-4);
}

.process-step__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: var(--space-5);
}

.process-step__text {
  color: rgba(245, 240, 232, 0.55);
  line-height: 1.75;
  max-width: 440px;
  margin-bottom: var(--space-6);
  font-size: var(--text-base);
}

.process-step__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  padding: 0;
  margin: 0;
}

.process-step__tags li {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  color: var(--accent);
  border: 1px solid rgba(201, 243, 29, 0.25);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

/* Responsive: stack on mobile */
@media (max-width: 768px) {
  .process-step {
    grid-template-columns: 1fr;
    direction: ltr;
    min-height: auto;
  }

  .process-step:nth-child(even) {
    direction: ltr;
  }

  .process-step__aside {
    height: 220px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .process-step:nth-child(even) .process-step__aside {
    border-left: none;
    border-bottom: 1px solid var(--border);
  }
}


/* ─── Manifesto ──────────────────────────────────────────── */
.manifesto-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--bg);
  /* overflow: hidden removed — each .manifesto__line-wrap clips the reveal
     animation; outer overflow was cutting fill-to-width text that exceeds 100vh */
}

.manifesto__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  object-fit: cover;
}

/* Overlay: fade into bg at top/bottom, darken left side for readability */
.manifesto-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, var(--bg) 0%, transparent 10%, transparent 80%, var(--bg) 100%),
    linear-gradient(to right, rgba(8,8,8,0.88) 0%, rgba(8,8,8,0.55) 50%, rgba(8,8,8,0.08) 100%);
  z-index: 1;
  pointer-events: none;
}

.manifesto__content {
  position: relative;
  z-index: 2;
  padding-block: clamp(5rem, 9vh, 7rem);
  width: 100%;
}

.manifesto__headline {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.manifesto__line-wrap {
  overflow: hidden;
  padding: 0.08em 0; /* Add safety top and bottom padding to avoid clipping on accents (like ã, ê) */
}

.manifesto__line {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 8rem); /* JS overrides this to fill-to-width */
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05; /* Give letters more height to breath naturally */
  white-space: nowrap;
  color: var(--white);
  will-change: transform;
}

.manifesto__line--stroke {
  color: transparent;
  -webkit-text-stroke: 2px rgba(245, 240, 232, 0.35);
}

.manifesto__line--lime {
  color: var(--accent);
}

.manifesto__sub {
  max-width: 480px;
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  line-height: 1.8;
  color: rgba(245, 240, 232, 0.55);
}

@media (max-width: 768px) {
  .manifesto__line {
    font-size: clamp(2rem, 11vw, 4rem);
    white-space: normal;
    word-break: break-word;
  }
  .manifesto__line--stroke {
    -webkit-text-stroke-width: 1.5px;
  }
}

/* ─── Contact ────────────────────────────────────────────── */
.contact {
  overflow: hidden;
  padding-top: clamp(4.5rem, 8vh, 6rem) !important;
  padding-bottom: clamp(3.5rem, 6vh, 4.5rem) !important;
}

.contact__blob {
  position: absolute;
  top: 50%;
  left: -20%;
  width: 60vw;
  height: 60vw;
  max-width: 700px;
  max-height: 700px;
  background: radial-gradient(circle, rgba(201, 243, 29, 0.05) 0%, transparent 65%);
  border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%;
  transform: translateY(-50%);
  animation: blobMorph 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.contact__dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
}

.contact__label {
  display: block;
  color: var(--accent);
  margin-bottom: var(--space-4);
}

.contact__heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-4);
}

.contact__heading .reveal-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.12em;
}

.contact__heading .reveal-line span {
  display: block;
}

.contact__heading-accent span {
  color: var(--accent);
}

.contact__sub {
  color: rgba(245, 240, 232, 0.55);
  line-height: 1.7;
  margin-bottom: var(--space-5);
  max-width: 480px;
}

.contact__info-list {
  margin-bottom: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.contact__info-list li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.contact__info-list li .label {
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.15em;
}

.contact__info-list li a,
.contact__info-list li span:not(.label) {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  font-weight: 600;
  color: var(--white);
  transition: color 0.3s ease;
  text-decoration: none;
}

.contact__info-list li a:hover {
  color: var(--accent);
}

.contact__info-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--text-sm);
  color: rgba(245, 240, 232, 0.6);
}

.contact__info-icon {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--accent);
  flex-shrink: 0;
}

.contact__info-item a:hover {
  color: var(--white);
}

.contact__socials {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-1);
}

.contact__social-link {
  color: var(--muted);
  transition: color 0.3s ease;
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact__social-link:hover {
  color: var(--accent);
}

/* ─── Contact Form ───────────────────────────────────────── */
.contact-form {
  display: flex;
  flex-direction: column;
}

.contact-form__fields {
  display: flex;
  flex-direction: column;
  gap: var(--space-5); /* Luxurious, breathable spacing between all form fields */
}

.form-field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-2); /* Clear, legible space between label and field input */
}

.form-field label {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-field input,
.form-field textarea,
.form-field select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md); /* Smooth modern corners matching branding cards */
  padding: 14px 18px; /* Breathable, high-end internal typing pad */
  color: var(--white);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  appearance: none;
  font-size: var(--text-sm);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--muted);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: rgba(201, 243, 29, 0.5);
}

.form-field textarea {
  resize: vertical;
  min-height: 90px;
}

.select-wrap {
  position: relative;
}

.select-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--muted);
  font-size: 12px;
}

.btn--submit {
  align-self: flex-start;
  background: transparent;
  border: 1px solid rgba(201, 243, 29, 0.4);
  color: var(--accent);
  padding: 12px 32px;
}

.form-error {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: #ff6b6b;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.btn--submit:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  box-shadow:
    0 0 0 1px rgba(201, 243, 29, 0.5),
    0 0 20px rgba(201, 243, 29, 0.15);
}

.btn-spinner {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
}

.btn-spinner svg {
  animation: spinOnce 1s linear infinite;
}

.contact-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--space-5);
  padding: var(--space-10);
}

.contact-success.is-visible {
  display: flex;
}

.success-check {
  width: 64px;
  height: 64px;
}

.success-check__path {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  transition: stroke-dashoffset 0.6s var(--ease-out) 0.3s;
}

.success-check__path.is-drawn {
  stroke-dashoffset: 0;
}

.contact-success h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
}

.contact-success p {
  color: var(--muted);
}

/* ─── Footer ─────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding-block: var(--space-6);
}

.footer__inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
}

.footer__copy {
  font-size: var(--text-sm);
  color: var(--muted);
  margin-inline: auto;
}

.footer__love {
  font-size: var(--text-sm);
  color: var(--muted);
  white-space: nowrap;
}

/* ─── Scroll Progress Bar (Igloo-style) ─────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--accent);
  z-index: 10001;
  pointer-events: none;
  transform-origin: left;
  box-shadow: 0 0 8px rgba(201, 243, 29, 0.6);
}

/* ─── Section Tracker (Orano-style fixed right nav) ─────── */
.section-tracker {
  position: fixed;
  right: 36px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: flex-end;
}

.section-tracker__item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.section-tracker__item:hover,
.section-tracker__item.is-active {
  opacity: 1;
}

.section-tracker__label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
  white-space: nowrap;
}

.section-tracker__item:hover .section-tracker__label,
.section-tracker__item.is-active .section-tracker__label {
  opacity: 1;
  transform: translateX(0);
}

.section-tracker__line {
  width: 20px;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
  transition: width 0.35s var(--ease-out), background 0.3s;
  flex-shrink: 0;
}

.section-tracker__item.is-active .section-tracker__line {
  width: 36px;
  background: var(--accent);
}

/* ─── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--surface-2);
  border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .container {
    padding-inline: var(--space-6);
  }

  .nav {
    padding-inline: var(--space-6);
  }

  .hero__scroll-hint {
    left: var(--space-6);
  }

  .section-tracker {
    display: none;
  }

  .process__bg-num {
    -webkit-text-stroke-width: 0.8px;
  }

  /* Tighten grids on tablets before they stack */
  .about__grid {
    gap: clamp(2rem, 5vw, 4rem);
  }

  .contact__grid {
    gap: clamp(2rem, 5vw, 4rem);
  }

  /* Reduce about right bg letters on tablet */
  .about__bg-letters {
    font-size: clamp(5rem, 14vw, 12rem);
    right: -0.5rem;
  }
}

@media (max-width: 768px) {
  :root {
    --space-11: 96px;
  }

  .container {
    padding-inline: var(--space-5);
  }

  .nav {
    padding: var(--space-4) var(--space-5);
    justify-content: space-between !important;
  }

  .nav__links,
  .nav__cta {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .hero__badge {
    display: none;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: var(--space-9);
  }

  .about__right {
    padding-top: 0;
  }

  .about__bg-letters {
    display: none;
  }

  .about__stats {
    flex-wrap: wrap;
    gap: var(--space-6);
  }

  .contact__grid {
    grid-template-columns: 1fr;
    gap: var(--space-9);
  }

  .btn--submit {
    width: 100%;
    justify-content: center;
    align-self: stretch;
  }

  .footer__inner {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  .footer__copy {
    margin: 0;
    flex-basis: 100%;
    text-align: center;
  }

  .hero__ctas {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .container {
    padding-inline: var(--space-4);
  }

  .service-item__header {
    gap: var(--space-4);
  }

  .carmed-slide__title {
    font-size: clamp(1.5rem, 6.5vw, 2rem) !important;
  }

  .carmed-slide__floater {
    width: clamp(100px, 20vh, 160px) !important;
    height: clamp(100px, 20vh, 160px) !important;
    margin-top: 0.75rem !important;
    margin-bottom: 0.75rem !important;
  }

  .port-card__name {
    margin-top: 1rem !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   EVERSWAP-STYLE ATMOSPHERIC EFFECTS + COMPLEX ANIMATIONS
   Smoke atmosphere, glow blobs, gradient borders, scroll depth
   ═══════════════════════════════════════════════════════════ */

/* ── Hero: animated ambient glow blobs ─────────────────────
   Three overlapping radial-gradient orbs that drift and pulse.
   They sit below the Three.js canvas and above the dark background.
──────────────────────────────────────────────────────────── */
.hero {
  position: relative;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  will-change: transform, opacity;
}

/* Primary orb — acid lime, upper right */
.hero::before {
  width: 55vw;
  height: 55vw;
  max-width: 700px;
  max-height: 700px;
  background: radial-gradient(circle, rgba(201, 243, 29, 0.07) 0%, rgba(201, 243, 29, 0.02) 50%, transparent 75%);
  top: -10%;
  right: -8%;
  animation: orb-drift-a 18s ease-in-out infinite;
}

/* Secondary orb — lime/teal, lower left */
.hero::after {
  width: 45vw;
  height: 45vw;
  max-width: 560px;
  max-height: 560px;
  background: radial-gradient(circle, rgba(130, 200, 50, 0.05) 0%, rgba(80, 160, 30, 0.02) 50%, transparent 72%);
  bottom: 0%;
  left: -5%;
  animation: orb-drift-b 22s ease-in-out infinite;
}

@keyframes orb-drift-a {
  0%,100% { transform: translate(0, 0) scale(1.00); opacity: 0.75; }
  30%     { transform: translate(-4%, 8%) scale(1.08); opacity: 1.00; }
  65%     { transform: translate(6%, -5%) scale(0.93); opacity: 0.55; }
}

@keyframes orb-drift-b {
  0%,100% { transform: translate(0, 0) scale(1.00); opacity: 0.65; }
  35%     { transform: translate(5%, -7%) scale(1.10); opacity: 0.90; }
  70%     { transform: translate(-3%, 6%) scale(0.90); opacity: 0.45; }
}

/* ── Hero fill word: animated gradient + glow ───────────────
   Merges gradient text + glow in one rule (text-shadow does not
   show with -webkit-text-fill-color:transparent; use filter instead)
──────────────────────────────────────────────────────────── */
.hero__word--fill {
  background: linear-gradient(135deg, #F5F0E8 0%, #C9F31D 68%, #F5F0E8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Stroke word: lime outline */
.hero__word--stroke {
}

@keyframes gradient-shift {
  0%,100% { background-position:   0% 50%; }
  50%     { background-position: 100% 50%; }
}

/* ── Stat numbers: large gradient ────────────────────────────  */
.stat__number {
  background: linear-gradient(135deg, var(--white) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Services split: animated gradient border ───────────────
   Uses background-clip trick for multi-color border animation.
──────────────────────────────────────────────────────────── */
.services__split {
  position: relative;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(135deg, rgba(201,243,29,0.4) 0%, transparent 30%, transparent 70%, rgba(201,243,29,0.2) 100%) border-box;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
}

/* ── Section labels: neon glow ──────────────────────────────  */
.label[class*="__label"],
.about__label,
.contact__label {
  text-shadow: 0 0 20px rgba(201, 243, 29, 0.35);
}

/* ── About section: atmospheric bg glow ─────────────────────  */
.about {
  position: relative;
}

.about::before {
  content: '';
  position: absolute;
  width: 40vw;
  height: 40vw;
  max-width: 500px;
  max-height: 500px;
  background: radial-gradient(circle, rgba(201, 243, 29, 0.04) 0%, transparent 70%);
  bottom: 5%;
  right: -5%;
  pointer-events: none;
  filter: blur(60px);
}

/* ── Contact section: atmospheric blob ──────────────────────  */
.contact__blob {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 30% 60%, rgba(201,243,29,0.05) 0%, transparent 60%),
    radial-gradient(ellipse 30% 40% at 70% 30%, rgba(201,243,29,0.03) 0%, transparent 55%);
  pointer-events: none;
  animation: blob-morph 12s ease-in-out infinite;
}

@keyframes blob-morph {
  0%,100% { opacity: 0.8; transform: scale(1); }
  50%     { opacity: 1.0; transform: scale(1.05); }
}

/* ── Scroll progress bar: gradient glow ─────────────────────  */
.scroll-progress {
  background: linear-gradient(90deg, var(--accent-dim), var(--accent), #E8FF60);
  box-shadow: 0 0 8px rgba(201, 243, 29, 0.5);
}

/* ── Process step numbers: glow ─────────────────────────────  */
.process-step__bg-num {
  text-shadow: 0 0 60px rgba(201, 243, 29, 0.06);
}

/* ── Buttons: enhanced glow on primary ──────────────────────  */
.btn--primary:hover {
  box-shadow:
    0 0 0 1px rgba(201, 243, 29, 0.6),
    0 0 24px rgba(201, 243, 29, 0.25),
    0 0 60px rgba(201, 243, 29, 0.12);
}

.btn--outline:hover {
  box-shadow:
    0 0 0 1px rgba(201, 243, 29, 0.5),
    0 0 20px rgba(201, 243, 29, 0.15);
}

/* ── Nav logo glow pulse ─────────────────────────────────────  */
.nav__logo svg {
  filter: drop-shadow(0 0 6px rgba(201, 243, 29, 0.0));
  transition: filter 0.4s;
}

.nav__logo:hover svg {
  filter: drop-shadow(0 0 12px rgba(201, 243, 29, 0.45));
}

/* ── Portfolio slide count badge ─────────────────────────────  */
.pf-slide__count {
  font-variant-numeric: tabular-nums;
}

/* ── Reduce glow on low-motion preference ───────────────────  */
@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero::after,
  .contact__blob {
    animation: none;
  }
  .hero__word--fill {
    animation: none;
    background-position: 0% 50%;
  }
}

/* ─── Portfólio 3D Ring ──────────────────────────────────── */

/* Root provides scroll travel; height set to 350vh by JS */
.port-root {
  position: relative;
}

/* Sticky viewport that pins while the ring spins */
.port-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  perspective: 1400px;
  perspective-origin: 50% 55%;
}

/* Background WebGL canvas for dynamic futuristic visual overlay */
.port-bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  object-fit: cover;
}

/* Fade to bg at the bottom — smooth visual transition out of the section */
.port-stage::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: clamp(100px, 22vh, 200px);
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
  z-index: 30;
}

/* Header: above the ring — top must clear the fixed nav bar (~70px) */
.port-header {
  position: absolute;
  top: clamp(8rem, 13vh, 10.5rem);
  left: 0;
  right: 0;
  z-index: 10;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  text-align: center;
}

.port-header__label {
  color: var(--accent);
}

.port-header__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--white);
}

.port-header__sub {
  color: rgba(245, 240, 232, 0.45);
  font-size: var(--text-sm);
  line-height: 1.5;
}

/* Full-stage layer that carries the 3D context */
/* padding-top pushes ring centre below the header overlay */
.port-scene {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  padding-top: clamp(4rem, 8vh, 6rem);
  transform: translateY(4.5vh);
}

/* Zero-size anchor at stage centre; GSAP animates rotationY */
.port-ring {
  width: 0;
  height: 0;
  transform-style: preserve-3d;
}

/* Card: landscape format matches website screenshots.
   Centred at ring origin via negative margins, then placed on cylinder. */
.port-card {
  --card-w: clamp(260px, 24vw, 360px);
  --card-h: calc(var(--card-w) * 0.68); /* ≈ 3/2 landscape */

  position: absolute;
  top: 0;
  left: 0;
  width: var(--card-w);
  height: var(--card-h);
  margin-top: calc(var(--card-h) * -0.5);
  margin-left: calc(var(--card-w) * -0.5);

  /* Static 3D position of card bounds on the cylinder ring */
  transform: rotateY(var(--card-angle, 0deg))
             translateZ(var(--card-radius, 440px));

  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
  cursor: pointer;
  z-index: 5;
}

/* Inner card wrapper for stable hover scaling and tilt 3D parallax */
.port-card__inner {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transform-style: preserve-3d;
  transition: border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
  will-change: transform;
}

.port-card__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: top center;
  transition: transform 0.7s var(--ease-out), filter 0.5s;
  filter: grayscale(15%);
}

.port-card:hover .port-card__img {
  transform: scale(1.06);
  filter: grayscale(0%);
}

.port-card__inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 8, 8, 0.9) 0%, rgba(8, 8, 8, 0.15) 55%, transparent 100%);
  z-index: 1;
}

.port-card__body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: clamp(0.85rem, 2vw, 1.4rem);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s var(--ease-out), transform 0.45s var(--ease-out);
}

.port-card:hover .port-card__body {
  opacity: 1;
  transform: translateY(0);
}

.port-card__cat {
  color: var(--accent);
}

.port-card__name {
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 1.4vw, 1.2rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.port-card__desc {
  font-size: clamp(0.72rem, 0.95vw, 0.85rem);
  color: rgba(245, 240, 232, 0.7);
  line-height: 1.45;
  margin-top: 4px;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.port-card__link {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  color: var(--accent);
}

.port-card:hover .port-card__link {
  opacity: 1;
  transform: translateY(0);
}

.port-card:hover .port-card__inner {
  border-color: rgba(201, 243, 29, 0.45);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(201, 243, 29, 0.1);
}


/* Dim non-hovered cards when ring is in focus mode */
.port-ring.is-focusing .port-card:not(.is-hovered) .port-card__inner {
  filter: blur(1.5px) brightness(0.6);
  transition: filter 0.4s, opacity 0.4s;
}

/* Scroll indicator */
.port-indicator {
  position: absolute;
  bottom: clamp(1.5rem, 3vh, 2.5rem);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  pointer-events: none;
}

.port-indicator__line {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, rgba(201, 243, 29, 0.6));
  animation: port-line-bounce 1.6s ease-in-out infinite;
}

.port-indicator__text {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: rgba(245, 240, 232, 0.35);
  writing-mode: horizontal-tb;
}

@keyframes port-line-bounce {
  0%, 100% { transform: scaleY(1); opacity: 0.6; }
  50%       { transform: scaleY(0.6); opacity: 1; }
}

/* Responsive */
@media (max-width: 991px) {
  .port-card {
    --card-w: clamp(180px, 35vw, 260px);
  }
}

@media (max-width: 768px) {
  .port-stage {
    perspective: 900px;
  }

  .port-scene {
    padding-top: clamp(5rem, 9vh, 7rem);
    transform: translateY(2.5vh);
  }

  .port-card {
    --card-w: clamp(160px, 45vw, 240px);
  }

  .port-card__desc {
    display: none; /* Oculta descrições no mobile para evitar overflow na caixa menor */
  }

  .port-header__title {
    font-size: clamp(2rem, 5.5vw, 3rem);
  }

  .port-card__body {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 480px) {
  .port-card {
    --card-w: clamp(130px, 55vw, 200px);
  }
}

/* ─── CTA Bridge ──────────────────────────────────────────── */

/* Scroll-travel wrapper: provides room for the typewriter scrub */
.cta-root {
  height: 210vh;
}

.cta-bridge {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg);
}

/* Subtle top fade — matches the bottom fade of port-stage */
.cta-bridge::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: clamp(60px, 12vh, 120px);
  background: linear-gradient(to bottom, var(--bg), transparent);
  pointer-events: none;
  z-index: 1;
}

.cta-bridge__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.cta-bridge__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.5rem, 3vh, 2.5rem);
  padding: clamp(4rem, 8vh, 7rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center;
  max-width: 780px;
}

.cta-bridge__kicker {
  color: var(--accent);
  letter-spacing: 0.14em;
}

/* Title: typed character-by-character via GSAP scroll scrub */
.cta-bridge__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.5;
  color: var(--white);
  min-height: 3.2em; /* reserves height before chars appear */
}

/* Individual character spans injected by JS */
.cta-char {
  display: inline;
  opacity: 0;
}

/* Blinking cursor */
.cta-cursor {
  display: inline;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.9em;
  margin-left: 1px;
  animation: cta-blink 0.75s step-end infinite;
}

@keyframes cta-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.cta-bridge__actions {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  will-change: transform, opacity;
}

@media (max-width: 768px) {
  .cta-bridge__title {
    font-size: clamp(1.4rem, 5vw, 2rem);
  }

  .cta-bridge__actions {
    flex-direction: column;
    gap: var(--space-3);
  }
}

/* ═══════════════════════════════════════════════════════════
   Fase 17 — Overhaul de Responsividade Mobile e Correções Globais
   ═══════════════════════════════════════════════════════════ */

/* 1. Global Section Paddings on Mobile for perfectly cohesive standard spacing */
@media (max-width: 768px) {
  .section {
    padding-top: clamp(2.5rem, 5.5vh, 4rem) !important;
    padding-bottom: clamp(2rem, 4.5vh, 3rem) !important;
  }
}

/* 2. Hero Mobile Overrides: anti-clipping titles & repositioned faded globe */
@media (max-width: 768px) {
  .hero__heading {
    font-size: clamp(1.6rem, 7.5vw, 2.7rem) !important;
    line-height: 1.05 !important;
  }
  .hero__sub br {
    display: none !important;
  }
  .hero__ctas {
    width: 100% !important;
  }
  .hero__ctas .btn {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* 3. Manifesto Mobile Overrides */
@media (max-width: 768px) {
  .manifesto__line {
    font-size: clamp(1.8rem, 8.5vw, 3rem) !important;
    white-space: normal !important;
    word-break: break-word !important;
    line-height: 1.1 !important;
  }

  .manifesto-section {
    min-height: auto !important;
  }

  .manifesto-section::before {
    background:
      linear-gradient(to bottom, var(--bg) 0%, transparent 18%, transparent 82%, var(--bg) 100%);
  }
}

/* 4. Portfolio Mobile Overrides: flat-card vertical feed layout (resembles custom mockup) */
@media (min-width: 769px) and (max-width: 991px) {
  .port-stage {
    perspective: 1000px;
  }

  .port-card {
    --card-w: clamp(160px, 21vw, 220px);
  }

  .port-scene {
    transform: translateY(3vh);
  }
}

@media (max-width: 768px) {
  .port-root {
    height: auto !important;
  }
  
  .port-stage {
    position: relative !important;
    top: auto !important;
    height: auto !important;
    min-height: auto !important;
    padding: clamp(3rem, 7vh, 5rem) 0 clamp(2rem, 4vh, 3rem) !important;
    background: #080808 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    perspective: none !important;
  }

  /* Move header above the scroll ring using flexbox order */
  .port-header {
    order: -1 !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    padding: 0 1.5rem 2rem !important;
    pointer-events: auto !important;
  }

  .port-scene {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    perspective: none !important;
    transform: none !important;
    margin: 0 !important;
    padding: 0 !important;
    inset: auto !important;
    display: block !important;
    align-items: unset !important;
    justify-content: unset !important;
  }

  .port-ring {
    width: 100% !important;
    height: auto !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 1.25rem !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    transform: none !important;
    position: relative !important;
    transform-style: flat !important;
    padding: 1.5rem 9% 3rem !important;
  }

  /* Hide scrollbar but keep functionality */
  .port-ring::-webkit-scrollbar {
    display: none !important;
  }
  .port-ring {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
  }

  .port-card {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    flex: 0 0 82% !important;
    width: 82% !important;
    max-width: 320px !important;
    height: clamp(280px, 62vh, 420px) !important;
    margin: 0 !important;
    transform: none !important;
    scroll-snap-align: center !important;
    backface-visibility: visible !important;
    -webkit-backface-visibility: visible !important;
    transform-style: flat !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .port-card__inner {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
    background: #0d0d0d !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 20px !important;
    transform: none !important;
  }

  /* Image covers the entire background of the card */
  .port-card__img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    filter: brightness(0.65) !important;
    background-size: cover !important;
    background-position: center center !important;
    border-bottom: none !important;
  }

  /* Linear dark gradient overlay for high contrast text readability */
  .port-card__inner::before {
    display: block !important;
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(to top, rgba(8, 8, 8, 0.95) 0%, rgba(8, 8, 8, 0.5) 50%, rgba(8, 8, 8, 0.1) 100%) !important;
    z-index: 1 !important;
  }

  /* Expose case content at the bottom of the card, overlaying the background */
  .port-card__body {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    padding: var(--space-5) !important;
    opacity: 1 !important;
    transform: none !important;
    background: transparent !important;
    display: flex !important;
    flex-direction: column !important;
    gap: var(--space-2) !important;
    z-index: 2 !important;
  }

  /* Styled categories as Option Tags/Pills at the top-left of each card */
  .port-card__cat {
    position: absolute !important;
    top: 1.25rem !important;
    left: 1.25rem !important;
    z-index: 3 !important;
    font-family: var(--font-mono) !important;
    font-size: 0.65rem !important;
    color: var(--white) !important;
    background: rgba(201, 243, 29, 0.18) !important;
    border: 1px solid rgba(201, 243, 29, 0.4) !important;
    padding: 4px 10px !important;
    border-radius: var(--radius-full) !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
  }

  .port-card__name {
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    color: var(--white) !important;
    margin-top: 1.5rem !important;
    letter-spacing: -0.02em !important;
  }

  .port-card__desc {
    font-size: var(--text-xs) !important;
    color: rgba(245, 240, 232, 0.72) !important;
    line-height: 1.5 !important;
    margin-bottom: var(--space-2) !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .port-card__link {
    display: inline-flex !important;
    align-items: center !important;
    font-size: var(--text-xs) !important;
    color: var(--accent) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    font-weight: 700 !important;
    margin-top: var(--space-2) !important;
  }

  .port-card:hover .port-card__inner {
    border-color: rgba(201, 243, 29, 0.35) !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4) !important;
  }

  /* Disable non-hover blurring on touch swipe */
  .port-ring.is-focusing .port-card:not(.is-hovered) .port-card__inner {
    filter: none !important;
  }

  .port-indicator {
    display: none !important;
  }
}

/* 5. CTA Bridge Mobile Overrides: glowing CSS gradient fallback */
@media (max-width: 768px) {
  .cta-bridge {
    background: radial-gradient(circle at 50% 60%, rgba(201, 243, 29, 0.07) 0%, #080808 80%) !important;
  }
}

/* 6. Cohesive Site-wide Mobile Touch & Typographic Comfort Overrides */
@media (max-width: 768px) {
  /* Increase tap target sizes for mobile hamburger button comfort */
  .nav__hamburger {
    padding: var(--space-4) !important; /* Breathable click height */
    margin: -16px !important; /* Keep aligned without layout shifting */
  }

  /* Increase tap target spacing in navigation overlay links */
  .nav-overlay__links {
    gap: var(--space-5) !important; /* Breathable spacing between tap targets */
  }

  /* Touch-comfortable padding — preserve floating label space for inputs */
  .form-field input,
  .form-field textarea {
    padding: 26px 20px 10px !important;
  }

  .form-field select {
    padding: 16px 20px !important;
  }

  /* Tighten headings line-height to prevent typographic collision */
  h1, h2, h3, .about__heading, .process-header h2, .contact__heading {
    line-height: 1.1 !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   AWWWARDS POLISH LAYER — micro-interactions & craft details
   ═══════════════════════════════════════════════════════════ */

/* ─── Text selection ─────────────────────────────────────── */
::selection {
  background: rgba(201, 243, 29, 0.22);
  color: var(--white);
}

/* ─── Keyboard focus ─────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 3px;
}

/* ─── Button press state ─────────────────────────────────── */
.btn:active {
  transform: translateY(1px) scale(0.975) !important;
  transition-duration: 0.06s !important;
}

/* ─── Nav CTA — more prominent once page is scrolled ────── */
.nav.is-scrolled .nav__cta {
  background: rgba(201, 243, 29, 0.07);
  border-color: rgba(201, 243, 29, 0.55);
}

/* ─── Process step number — editorial accent line ────────── */
.process-step__num {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.process-step__num::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

/* ─── Scroll-skew: transform-origin anchors elements bottom-centre */
[data-skew] {
  transform-origin: center bottom;
  will-change: transform;
}

/* ─── Services: progress bar ─────────────────────────────── */
.carmed-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.07);
  z-index: 25;
  overflow: hidden;
}

.carmed-progress__fill {
  height: 100%;
  width: 20%;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  box-shadow: 0 0 12px rgba(201, 243, 29, 0.5);
  transition: width 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 768px) {
  .carmed-progress {
    display: none;
  }
}

/* ─── Floating labels (contact form) ─────────────────────── */
.form-field {
  position: relative;
}

/* When label is a sibling AFTER the input/textarea → floating */
.form-field input + label,
.form-field textarea + label {
  position: absolute;
  top: 16px;
  left: 18px;
  margin-bottom: 0;
  font-size: var(--text-sm);
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(245, 240, 232, 0.38);
  pointer-events: none;
  z-index: 1;
  white-space: nowrap;
  transition:
    top      0.22s var(--ease-out),
    font-size 0.22s var(--ease-out),
    letter-spacing 0.22s,
    color    0.22s,
    font-family 0.22s;
}

/* Floated state: focused or filled */
.form-field input:focus + label,
.form-field input:not(:placeholder-shown) + label,
.form-field textarea:focus + label,
.form-field textarea:not(:placeholder-shown) + label {
  top: 7px;
  font-size: 0.6rem;
  font-family: var(--font-mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Taller padding so floating label has room */
.form-field input,
.form-field textarea {
  padding-top: 22px;
  padding-bottom: 8px;
}

/* Input border accent on focus — reinforces the floating label */
.form-field input:focus,
.form-field textarea:focus {
  border-color: rgba(201, 243, 29, 0.5);
  box-shadow: 0 0 0 3px rgba(201, 243, 29, 0.06);
}

/* ─── Portfolio: mobile swipe dots ───────────────────────── */
.port-swipe-dots {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 1.25rem 0 0.5rem;
  pointer-events: none;
}

.port-swipe-dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.18);
  transition: width 0.35s var(--ease-out), background 0.35s, box-shadow 0.35s;
  flex-shrink: 0;
}

.port-swipe-dot.is-active {
  width: 20px;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(201, 243, 29, 0.5);
}

@media (max-width: 768px) {
  .port-swipe-dots {
    display: flex;
  }
}
