/* ============================================================
   Dotani — Digital Strategy. Real Infrastructure.
   style.css
   ============================================================ */

/* ----------------------------------------------------------
   Custom Properties
   ---------------------------------------------------------- */

:root {
  --edge: 2rem;
  --nedge: calc(-1 * var(--edge));
  --sp: 1.25rem;
  --ssp: 1rem;
  --gap: 1.75rem;

  --hero-img-w: 100vw;
  --big-icon-s: 2.15rem;

  --bg: #0a0a0f;
  --surface: #12121a;
  --surface-2: #20203a;

  --accent: #00d4aa;
  --accent-glow: rgba(0, 212, 170, 0.12);
  --accent-2: #00a3ff;

  --text: #d0d0dc;
  --text-muted: #c0c0d0;
  --text-dim: #a4a4b8;

  --border: rgba(255, 255, 255, 0.15);
  --card-bg: rgba(18, 18, 26, 0.55);

  --nav-bg: rgba(10, 10, 15, 0.9);
  --nav-height: 2rem;
  --header-height: calc(1rem + var(--nav-height));

  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);

  --gradient-1: linear-gradient(135deg, #00d4aa, #00a3ff);
  --gradient-2: linear-gradient(135deg, #00d4aa, #f59e0b);
  --gradient-3: linear-gradient(135deg, #00d4aa, #7c3aed);
}

/* ----------------------------------------------------------
   Reset & Base
   ---------------------------------------------------------- */

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

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: rgba(0, 212, 170, 0.3);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

h1,
h2,
h3,
h4 {
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 300;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 5rem);
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 3.2rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.8rem);
}

p {
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  color: var(--text-muted);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.3s;
}

a:hover {
  opacity: 0.8;
}

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

/* ----------------------------------------------------------
   Layout Utilities
   ---------------------------------------------------------- */

.container {
  width: 100%;
  max-width: 1140px !important;
  margin: 0 auto;
  padding-inline: var(--edge);
}

.section {
  padding: clamp(2rem, 5vw, 3rem) 0;
  position: relative;
}

.section:not(#about):not(#services):not(#portfolio):not(#testimonials):not(#contact) {
  content-visibility: auto;
  contain-intrinsic-size: 600px;
}

#about {
  content-visibility: visible;
}

/* ----------------------------------------------------------
   Glass Effect
   ---------------------------------------------------------- */

.glass {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: .75rem;
  box-shadow: var(--glass-shadow);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  padding: var(--sp);
}

.glass:hover {
  border-color: rgba(0, 212, 170, 0.12);
}

/* ----------------------------------------------------------
   Scroll Reveal Animations
   ---------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ----------------------------------------------------------
   Loading Screen
   ---------------------------------------------------------- */

#loading {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: opacity 0.5s, visibility 0.5s;
}

#loading.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-mark {
  width: 40px;
  height: 40px;
  position: relative;
}

.loading-mark::before,
.loading-mark::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
}

.loading-mark::before {
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}

.loading-mark::after {
  border-bottom-color: var(--accent-2);
  animation: spin 0.8s linear infinite reverse;
  inset: 4px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-text {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ----------------------------------------------------------
   Navigation
   ---------------------------------------------------------- */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  height: auto;
  padding-block: 0.5rem;
  transition: background 0.3s, border-color 0.3s;
}

nav.nav-solid {
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: 100%;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.nav-logo {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: baseline;
  gap: 0.2em;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
}

@media (max-width: 768px) {
  .nav-links {
    position: static;
    transform: none;
    display: none;
  }
}

.nav-logo .last {
  font-weight: 700;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links a {
  color: var(--text-dim);
  font-size: 0.82rem;
  position: relative;
  transition: color 0.3s;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--text);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gradient-1);
  transition: width 0.3s;
}

.nav-links a.active::after,
.nav-links a:hover::after {
  width: 100%;
}

.menu-toggle {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.menu-toggle:hover {
  color: var(--text);
  background: var(--border);
}

.menu-toggle {
  display: none;
}

.nav-btn {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  transition: all 0.25s;
}

.nav-btn:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.nav-btn-primary {
  background: var(--accent);
  color: #0a0a0f;
  border-color: var(--accent);
}

.nav-btn-primary:hover {
  opacity: 0.85;
  color: #0a0a0f;
}

/* ----------------------------------------------------------
   Scroll Progress Ring (around logo)
   ---------------------------------------------------------- */

.logo-progress {
  position: relative;
  display: inline-flex;
  border-radius: 6px;
  padding: 1.25px;
}

.logo-progress::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background: conic-gradient(
    var(--accent) 0deg,
    var(--accent) var(--progress, 0deg),
    transparent var(--progress, 0deg),
    transparent 360deg
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box,
               linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
  mask-composite: exclude;
  padding: 1.25px;
  pointer-events: none;
}

.logo-progress .last {
  position: relative;
  z-index: 1;
  border-radius: 4px;
  padding: 2px 8px;
}

/* ----------------------------------------------------------
   Mobile Menu
   ---------------------------------------------------------- */

.mobile-overlay {
  position: fixed;
  top: var(--nav-height);
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.mobile-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  position: fixed;
  top: var(--nav-height);
  right: 0;
  bottom: 0;
  width: 100vw;
  max-width: 300px;
  background: var(--surface);
  z-index: 999;
  padding: 2rem;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu a {
  color: var(--text-dim);
  font-size: 1rem;
  transition: color 0.3s;
}

.mobile-menu a:hover {
  color: var(--accent);
}

.mobile-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 8px;
}

/* ----------------------------------------------------------
   Skip Link
   ---------------------------------------------------------- */

.skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: 10000;
  padding: 0.6rem 1.25rem;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 1rem;
}

/* ----------------------------------------------------------
   Hero Section
   ---------------------------------------------------------- */

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-gradient {
  position: absolute;
  inset: -50%;
  background:
    radial-gradient(ellipse at 25% 50%, rgba(0, 212, 170, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse at 75% 50%, rgba(0, 163, 255, 0.03) 0%, transparent 60%);
  animation: heroPulse 10s ease-in-out infinite alternate;
}

@keyframes heroPulse {
  0% {
    opacity: 0.6;
    transform: scale(1);
  }
  100% {
    opacity: 1;
    transform: scale(1.15);
  }
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.02;
  animation: shapeFloat 25s ease-in-out infinite;
}

.hero-shape:nth-child(1) {
  width: 500px;
  height: 500px;
  background: var(--accent);
  top: -200px;
  right: -150px;
}

.hero-shape:nth-child(2) {
  width: 350px;
  height: 350px;
  background: var(--accent-2);
  bottom: -80px;
  left: -80px;
  animation-delay: -8s;
}

@keyframes shapeFloat {
  0%, 100% {
    transform: translate(0, 0);
  }
  33% {
    transform: translate(25px, -25px);
  }
  66% {
    transform: translate(-15px, 15px);
  }
}

.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 170, 0.03) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.hero-content {
  position: relative;
  display: flex;
  flex-flow: column;
  gap: var(--gap, 2rem);
}

.hero-visual {
  position: absolute;
  z-index: 0;
  top: 0; right: 0;
}

.hero-visual::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, var(--bg), transparent);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(0.75rem, 0.9vw, 0.85rem);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(0, 212, 170, 0.15);
  border-radius: 100px;
  background: rgba(0, 212, 170, 0.04);
}

.hero-eyebrow span {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 200;
  margin-bottom: 0;
  color: var(--text);
}

.hero h1 .highlight {
  font-weight: 600;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.hero-tagline {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--text-muted);
  margin-top: 0.5rem;
  margin-bottom: 1.15rem;
}

.hero-desc {
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  color: var(--text-dim);
  margin-bottom: 1.7rem;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 0.75rem;
  flex-wrap: nowrap;
}

.hero-ctas .btn {
  flex-shrink: 1;
  min-width: 0;
}

/* ----------------------------------------------------------
   Buttons
   ---------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1.1rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 450;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  letter-spacing: 0.01em;
  background: transparent;
  color: var(--text-muted);
}

.btn:hover {
  background: var(--border);
  border-color: var(--text-dim);
  color: var(--text);
}

.btn-primary {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 212, 170, 0.04);
}

.btn-primary:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-secondary {
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--border);
  border-color: var(--text-muted);
  color: var(--text);
}

.btn-outline {
  border-color: var(--border);
  color: var(--text-dim);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 212, 170, 0.04);
}

/* ----------------------------------------------------------
   Hero Stats (inline row with dividers)
   ---------------------------------------------------------- */

.hero-stats {
  display: flex;
  flex-flow: row var(--stat-wrap, wrap);
  gap: var(--gap, 1.75rem);
  margin-top: 1.5rem;
  flex-grow: 1;
  align-self: start;
}

.hero-stat {
  display: flex;
  flex-flow: column;
  min-width: calc(var(--stat-min-w, 40%) - var(--gap, 1.75rem));
  flex-grow: 1;
}

.hs-number {
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  font-weight: 700;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hs-suffix {
  font-size: 0.6em;
  font-weight: 400;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hs-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

/* ----------------------------------------------------------
   About Section
   ---------------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.about-sidebar {
  position: sticky;
  top: 80px;
  align-self: start;
}

.about-card {
  padding: 2rem;
  text-align: center;
}

.avatar-frame {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  padding: 3px;
  background: var(--gradient-1);
}

.avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--accent);
}

.about-card h3 {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text);
}

.about-card .tagline {
  font-size: 0.82rem;
  color: var(--accent);
  margin: 4px 0 1rem;
}

.about-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 1rem;
  text-align: left;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

.about-meta-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.about-meta-item strong {
  color: var(--text-muted);
  font-weight: 500;
}

.about-text p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.about-text p strong {
  color: var(--text);
}

/* ----------------------------------------------------------
   Career Arc (Timeline)
   ---------------------------------------------------------- */

.career-arc {
  margin-top: 2rem;
}

.career-arc .arc-title {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.career-arc .arc-title::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--gradient-1);
}

.arc-grid {
  position: relative;
  display: grid;
  gap: 1.5rem;
}

.arc-grid::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 11px;
  bottom: 11px;
  width: 1.5px;
  background: linear-gradient(to bottom, var(--accent), rgba(0, 212, 170, 0.08));
  opacity: 0.35;
  pointer-events: none;
}

.arc-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 0;
  cursor: default;
  position: relative;
}

.arc-item:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: -0.75rem;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.arc-node {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--accent);
  position: relative;
  z-index: 1;
  margin-top: 4px;
  justify-self: center;
  transition: all 0.3s;
  box-shadow: 0 0 0 4px var(--bg);
}

.arc-item:hover .arc-node {
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg), 0 0 16px rgba(0, 212, 170, 0.2);
}

.arc-year {
  grid-column: 2;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 0 2px;
}

.arc-content {
  grid-column: 2;
  display: flex;
  gap: 0.65rem;
  min-width: 0;
  padding-bottom: 0.5rem;
}

.arc-icon-wrap {
  display: none;
}

.arc-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.arc-role {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.arc-org {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.arc-desc {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 4px;
  line-height: 1.5;
}

@media (min-width: 800px) {
  .arc-grid::before {
    left: 16px;
  }

  .arc-item {
    grid-template-columns: 32px 140px 1fr;
  }

  .arc-item:not(:last-child)::after {
    left: 180px;
  }

  .arc-node {
    grid-row: 1;
    justify-self: center;
  }

  .arc-year {
    grid-column: 2;
    padding-top: 5px;
    text-align: left;
    padding-right: 1rem;
    padding-left: 0;
  }

  .arc-content {
    grid-column: 3;
  }

  .hero-visual {
    overflow: visible;
    border-radius: 0.75rem;
    right: var(--edge); left: auto;
  }

  .arc-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(0, 212, 170, 0.06);
    border: 1px solid rgba(0, 212, 170, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .arc-icon-wrap svg {
    width: 22px;
    height: 22px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 1.5;
  }
}

@media (max-width: 768px) {
  .arc-content {
    gap: 0.5rem;
  }
}

/* ----------------------------------------------------------
   Services Section
   ---------------------------------------------------------- */

.services-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.services-header {
  position: sticky;
  top: 80px;
}

.services-header h2 {
  margin-bottom: 0.5rem;
}

.services-header p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.service-card {
  padding: 1.25rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  gap: 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card:hover {
  border-color: rgba(0, 212, 170, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-1);
  opacity: 0;
  transition: opacity 0.4s;
  border-radius: 14px 14px 0 0;
}

.service-card:hover::after {
  opacity: 1;
}

.service-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 12px;
  background: rgba(0, 212, 170, 0.06);
  border: 1px solid rgba(0, 212, 170, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s;
}

.service-card:hover .service-icon {
  background: rgba(0, 212, 170, 0.1);
  border-color: rgba(0, 212, 170, 0.15);
}

.service-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
}

.service-body {
  flex: 1;
  min-width: 0;
}

.service-name {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
}

.service-tagline {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 0.25rem;
}

.service-expand {
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.3s;
}

.service-expand:hover {
  gap: 8px;
}

.service-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              padding 0.4s,
              opacity 0.35s;
  opacity: 0;
}

.service-detail.open {
  max-height: 500px;
  padding: 0.75rem 0 0;
  opacity: 1;
}

.service-detail ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-detail li {
  padding: 4px 0;
  color: var(--text-dim);
  font-size: 0.82rem;
  padding-left: 1rem;
  position: relative;
}

.service-detail li::before {
  content: '\2192';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.service-detail .service-audience {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.service-detail .service-audience strong {
  color: var(--text-muted);
}

/* ----------------------------------------------------------
   Portfolio Section
   ---------------------------------------------------------- */

.portfolio-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.portfolio-filters {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  background: var(--surface);
  padding: 4px;
  border-radius: 12px;
}

.filters-wrap {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--surface-2);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.filter-btn {
  padding: 0.35rem 1rem;
  border-radius: 8px;
  font-size: 0.8rem;
  border: none;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.25s;
  font-weight: 450;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--accent);
  color: #fff;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.portfolio-card {
  padding: 1.5rem;
  cursor: pointer;
  position: relative;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

.portfolio-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 212, 170, 0.15);
}

.portfolio-icon-bg {
  position: absolute;
  top: -20px;
  right: -10px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.18;
  pointer-events: none;
}

.portfolio-icon-bg svg {
  width: 96px;
  height: 96px;
  stroke-width: 0.6;
}

.portfolio-category {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
}

.portfolio-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 3px;
  position: relative;
  z-index: 1;
}

.portfolio-brief {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.45;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.portfolio-outcome {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  position: relative;
  z-index: 1;
  padding: 2px 0;
  width: fit-content;
  letter-spacing: 0.01em;
}

.portfolio-outcome::before {
  content: '\25B9';
  font-size: 0.7rem;
  color: var(--accent);
  opacity: 0.7;
}

/* ----------------------------------------------------------
   Portfolio Modal
   ---------------------------------------------------------- */

.modal-overlay {
  position: fixed;
  top: var(--nav-height);
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s;
  padding: 2rem;
  backdrop-filter: blur(6px);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--surface);
  border-radius: 20px;
  max-width: 680px;
  width: 100%;
  max-height: calc(100vh - var(--nav-height) - 4rem);
  overflow-y: auto;
  transform: translateY(30px) scale(0.96);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  border: 1px solid var(--border);
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal-top {
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.04), rgba(0, 163, 255, 0.02));
  padding: 2rem 2rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.modal-top .modal-category {
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.modal-top h3 {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text);
  margin-top: 4px;
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--border);
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.modal-close:hover {
  background: var(--accent);
  color: #fff;
}

.modal-body {
  padding: 1.5rem 2rem 2rem;
}

.modal-snapshot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--surface-2);
  border-radius: 12px;
}

.modal-snapshot-item {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.modal-snapshot-item strong {
  display: block;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.modal-body h4 {
  font-weight: 500;
  color: var(--text);
  margin: 1.5rem 0 0.5rem;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-body h4::before {
  content: '';
  width: 16px;
  height: 2px;
  background: var(--gradient-1);
}

.modal-body p {
  color: var(--text-dim);
  margin-bottom: 0.5rem;
  line-height: 1.65;
  font-size: 0.9rem;
}

/* ----------------------------------------------------------
   Testimonials Section
   ---------------------------------------------------------- */

.testimonials-section h2 {
  text-align: center;
  margin-bottom: 2.5rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.testimonial-card {
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  bottom: -0.5rem;
  right: 1rem;
  font-size: 5rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.08;
  font-family: Georgia, serif;
  pointer-events: none;
}

.testimonial-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.testimonial-author-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.testimonial-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}

.testimonial-info .name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}

.testimonial-info .role {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* ----------------------------------------------------------
   Contact Section
   ---------------------------------------------------------- */

.contact-layout {
  display: flex;
  flex-flow: row wrap;
  gap: 2rem;
  align-items: start;
}

.contact-intro {
  position: sticky;
  top: 80px;
  flex: 0 1 40%;
}

.contact-intro h2 {
  margin-bottom: 0.75rem;
}

.contact-intro p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.contact-intro .response-time {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
}

.contact-hire {
  position: sticky;
  top: 80px;
  display: flex;
  gap: 0.75rem;
  flex-flow: row wrap;
  padding: 1.5rem;
  border-radius: 14px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  margin-top: 2rem;
}

.contact-hire h3 {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

.contact-hire p {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.contact-hire a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid var(--border);
  transition: all 0.25s;
}

.contact-hire a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 212, 170, 0.04);
}

.contact-hire a svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.contact-cards {
  flex: 1 0 50%;
}

.contact-grid {
  display: flex;
  flex-flow: row wrap;
  gap: 0.75rem;
}

.contacgt-grid > * {
  flex: 1 1 35%;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.3s, border-color 0.3s;
}

.contact-card:hover {
  background: var(--surface-2);
  border-color: rgba(0, 212, 170, 0.12);
}

.contact-icon {
  width: var(--big-icon-s);
  height: var(--big-icon-s);
  flex-shrink: 0;
  transition: opacity 0.3s;
}

.contact-card:hover .contact-icon {
  opacity: 0.8;
}

.contact-info {
  flex: 1;
}

.contact-info strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}

.contact-info span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ----------------------------------------------------------
   Footer
   ---------------------------------------------------------- */

footer {
  padding: 2rem 0 1.5rem;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand .nav-logo {
  font-size: 1.1rem;
  display: inline-flex;
  align-items: baseline;
  gap: 0.2em;
}

.footer-brand .nav-logo .last {
  font-weight: 700;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-brand p {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-top: 0.75rem;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.footer-col a {
  display: block;
  color: var(--text-dim);
  font-size: 0.85rem;
  padding: 3px 0;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
}

.footer-socials a {
  color: var(--text-dim);
  transition: color 0.3s;
  display: flex;
  padding: 4px;
}

.footer-socials a:hover {
  color: var(--accent);
}

.legal-link {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  transition: color 0.3s;
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

/* ----------------------------------------------------------
   Legal Modal
   ---------------------------------------------------------- */

.legal-modal .modal {
  max-width: 620px;
}

.legal-modal .modal-body {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.6;
  padding: 1.5rem 2rem 2rem;
}

.legal-modal .modal-body h4 {
  color: var(--text);
  margin: 1.25rem 0 0.35rem;
  font-weight: 500;
  font-size: 0.95rem;
}

.legal-modal .modal-body p {
  margin-bottom: 0.5rem;
}

/* ----------------------------------------------------------
   Marquee — Who I Work With
   ---------------------------------------------------------- */

.marquee {
  transform: rotate(-1.5deg);
  margin-inline: var(--nedge);
  mask: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
  -webkit-mask: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
  &.glass{border-inline:none; border-radius: 0;padding: 2px 0 0}
} 

.marquee-track {
  display: flex;
  flex-shrink: 0;
  will-change: transform;
}

.marquee-group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
}

.marquee-item {
  display: inline;
  font-size: clamp(1.4rem, 2.2vw, 2.2rem);
  font-weight: 450;
  color: var(--text-dim);
  letter-spacing: 0.001em;
  text-transform: uppercase;
}

.marquee-sep {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.25;
  margin: 0 1.5rem;
  vertical-align: middle;
}

.marquee-item strong {
  font-weight: 650;
  color: var(--text);
}

.marquee-item em {
  font-style: normal;
  color: var(--accent);
  font-weight: 150;
}

/* ----------------------------------------------------------
   Volunteer Banner — Futuristic
   ---------------------------------------------------------- */

.volunteer-section {
  overflow: hidden;
  position: relative;
  padding: 0;
}

.volunteer-banner {
  position: relative;
  padding: clamp(2.5rem, 4vw, 3.5rem) 0;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
  min-height: 280px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.volunteer-bg-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  opacity: 0.03;
}

.volunteer-bg-grid svg {
  width: 100%;
  height: 100%;
}

.volunteer-glow-orb {
  position: absolute;
  left: clamp(-50px, 5vw, 20px);
  top: 50%;
  width: clamp(200px, 25vw, 360px);
  height: clamp(200px, 25vw, 360px);
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(0, 212, 170, 0.08),
    rgba(0, 163, 255, 0.03),
    transparent 70%
  );
  transform: translateY(-50%);
  animation: orbFloat 8s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes orbFloat {
  0% {
    transform: translateY(-50%) translateX(0) scale(1);
    opacity: 0.7;
  }
  100% {
    transform: translateY(-55%) translateX(15px) scale(1.1);
    opacity: 1;
  }
}

.volunteer-rings {
  position: absolute;
  left: clamp(40px, 8vw, 100px);
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.15;
}

.volunteer-rings .ring {
  position: absolute;
  border: 1px solid var(--accent);
  border-radius: 50%;
  animation: ringPulse 6s ease-in-out infinite;
}

.volunteer-rings .ring:nth-child(1) {
  width: 160px;
  height: 160px;
  left: -80px;
  top: -80px;
  animation-delay: 0s;
}

.volunteer-rings .ring:nth-child(2) {
  width: 220px;
  height: 220px;
  left: -110px;
  top: -110px;
  animation-delay: -1.5s;
  opacity: 0.6;
}

.volunteer-rings .ring:nth-child(3) {
  width: 100px;
  height: 100px;
  left: -50px;
  top: -50px;
  animation-delay: -3s;
  opacity: 0.4;
}

@keyframes ringPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.6;
  }
}

.volunteer-shape {
  position: absolute;
  right: clamp(-30px, 2vw, 40px);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(80px, 12vw, 140px);
  height: clamp(80px, 12vw, 140px);
  border: 1.5px solid rgba(0, 212, 170, 0.08);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: shapeMorph 10s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
  opacity: 0.12;
}

@keyframes shapeMorph {
  0%, 100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    transform: translateY(-50%) rotate(0deg);
  }
  50% {
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    transform: translateY(-50%) rotate(45deg);
  }
}

#backToTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  transform: translateY(10px);
}

#backToTop.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#backToTop:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
}

#backToTop svg {
  width: 18px;
  height: 18px;
}

.volunteer-content-wrap {
  position: relative;
  z-index: 3;
  grid-column: 2;
  padding: 1.5rem 1.5rem 1.5rem 2.5rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(18, 18, 26, 0.6), rgba(18, 18, 26, 0.3));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.volunteer-content-wrap:hover {
  border-color: rgba(0, 212, 170, 0.1);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.5);
}

.volunteer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0.2rem 0.7rem;
  border-radius: 100px;
  border: 1px solid rgba(0, 212, 170, 0.1);
  background: rgba(0, 212, 170, 0.03);
  margin-bottom: 0.75rem;
}

.volunteer-badge span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.volunteer-content-wrap h2 {
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 300;
  color: var(--text);
  margin-bottom: 0.4rem;
  line-height: 1.15;
}

.volunteer-content-wrap h2 strong {
  font-weight: 600;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.volunteer-content-wrap .vol-copy {
  font-size: clamp(0.82rem, 1vw, 0.92rem);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.85rem;
}

.volunteer-content-wrap .vol-copy em {
  color: var(--accent);
  font-style: normal;
  font-weight: 450;
}

.volunteer-cta-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.volunteer-cta-note {
  font-size: 0.75rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 4px;
}

@media (max-width: 768px) {
  .volunteer-banner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    min-height: auto;
    padding: clamp(2rem, 4vw, 3rem) 0;
  }

  .volunteer-glow-orb,
  .volunteer-rings,
  .volunteer-shape {
    opacity: 0.5;
    transform-origin: center;
  }

  .volunteer-rings {
    left: 50%;
    top: 40%;
  }

  .volunteer-shape {
    right: 10%;
    top: 30%;
  }

  .volunteer-content-wrap {
    grid-column: 1;
    padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .volunteer-content-wrap {
    padding: 1.1rem;
  }

  .volunteer-cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .volunteer-cta-row .btn {
    justify-content: center;
    width: 100%;
  }
}

/* ----------------------------------------------------------
   Responsive — ≤800px
   ---------------------------------------------------------- */

@media (max-width: 800px) {
  .hero-content {
    position: relative;
    z-index: 2;
    padding-top: 50vh;
    justify-content: flex-end;
  }

  .hero-visual {
    left: 0;
    right: 0;
    padding: 0;
  }

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

  .services-header {
    position: static;
  }

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

  .about-sidebar {
    position: static;
  }

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

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

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

  .footer-brand,
  .footer-col:last-child {
    grid-column: 1 / -1;
  }
}

/* ----------------------------------------------------------
   Responsive — ≤768px
   ---------------------------------------------------------- */

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

  .menu-toggle {
    display: flex;
  }

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

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

  .contact-intro {
    flex: 1 0 100%;
  }

  .contact-intro,
  .contact-hire {
    position: static;
  }

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

  .footer-brand,
  .footer-col:last-child {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .modal-snapshot {
    grid-template-columns: 1fr;
  }

  .mobile-menu {
    top: var(--nav-height);
    max-width: 100%;
    height: calc(100vh - var(--nav-height));
  }

  .modal-overlay {
    top: var(--nav-height);
    padding: 1rem;
    align-items: flex-start;
    margin-top: var(--nav-height);
  }

  .modal {
    max-width: calc(100vw - 2rem);
    border-radius: 16px;
    max-height: calc(100vh - var(--nav-height) - 2rem);
  }
}

@media (min-width: 768px) {
  .hire-me {
    max-width: 30%;
  }
}

/* ----------------------------------------------------------
   Responsive — ≤480px
   ---------------------------------------------------------- */

@media (max-width: 480px) {
  .hero h1 {
    font-size: clamp(2rem, 11vw, 2.8rem);
  }

  .hero-ctas .btn {
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
  }

}

/* ----------------------------------------------------------
   Reduced Motion
   ---------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-left,
  .reveal-right {
    opacity: 1;
    transform: none;
  }

  .hero-shape,
  .cursor-glow {
    animation: none;
  }

  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ----------------------------------------------------------
   Responsive — Sidebar Navigation (≥1025px)
   ---------------------------------------------------------- */

@media (min-width: 1025px) {
  :root {
    --stat-min-w: none;
    --hero-img-w: 380px;
    --stat-wrap: nowrap;
  }
  nav {
    left: 0;
    top: 0;
    right: auto;
    bottom: 0;
    width: 220px;
    height: 100vh;
    border-bottom: none;
    border-right: 1px solid transparent;
    padding: 0;
    display: flex;
    flex-direction: column;
    background: rgba(10, 10, 15, 0.55);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transition: border-color 0.4s, background 0.4s;
  }

  nav.nav-solid {
    background: rgba(10, 10, 15, 0.82);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-right-color: var(--border);
  }

  .nav-inner {
    flex-direction: column;
    height: 100%;
    padding: 2.5rem 1.25rem;
    gap: 0;
    align-items: stretch;
  }

  .logo-progress {
    align-self: center;
    margin-bottom: 2.5rem;
  }

  .logo-progress .last {
    font-size: 1.35rem;
  }

  .nav-links {
    position: static;
    transform: none;
    flex-direction: column;
    gap: 2px;
    width: 100%;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    font-size: 0.87rem;
    color: var(--text-dim);
    position: relative;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--gradient-1);
    border-radius: 1px;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .nav-links a.active::after,
  .nav-links a:hover::after {
    left: 0.85rem;
    width: calc(100% - 1.7rem);
  }

  .nav-links a.active,
  .nav-links a:hover {
    color: var(--accent);
    background: rgba(0, 212, 170, 0.04);
  }

  .nav-end {
    margin-left: 0;
    margin-top: auto;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .nav-end .nav-btn {
    width: 100%;
    justify-content: center;
    padding: 0.45rem 0.85rem;
    font-size: 0.78rem;
  }

  .menu-toggle {
    display: none !important;
  }

  .sidebar-progress {
    position: absolute;
    right: -1px;
    top: 0;
    width: 1px;
    height: 100%;
    pointer-events: none;
    z-index: 2;
  }

  .sidebar-progress::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--border);
  }

  .sidebar-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--sp, 0%);
    background: var(--gradient-1);
    transition: height 0.15s linear;
    box-shadow: 0 0 12px rgba(0, 212, 170, 0.25), 0 0 30px rgba(0, 212, 170, 0.08);
  }

  main,
  footer {
    margin-left: 220px;
    width: calc(100% - 220px);
  }

  html {
    scroll-padding-top: 40px;
  }

  .hero-visual {
    width: var(--hero-img-w, 380px);
  }
  
.hero-text {.hero-eyebrow, h1, .hero-title, .hero-tagline, .hero-desc, .hero-ctas{margin-inline-start: var(--edge); max-width: 500px}}

  .about-sidebar {
    top: 40px;
  }

  .contact-hire {
    position: sticky;
    top: 40px;
  }

  .cursor-glow {
    width: 500px;
    height: 500px;
  }

  .footer-grid {
    padding-left: 0;
  }

  .mobile-overlay,
  .mobile-menu {
    display: none !important;
  }
}

/* ----------------------------------------------------------
   Responsive — ≥1400px (Wider Sidebar)
   ---------------------------------------------------------- */

@media (min-width: 1400px) {
  nav {
    width: 240px;
  }

  main,
  footer {
    margin-left: 240px;
    width: calc(100% - 240px);
  }

  .nav-inner {
    padding: 3rem 1.75rem;
  }
}
