/* =============================================================================
   PORTFOLIO — Main Stylesheet
   ============================================================================= */

@font-face {
  font-family: 'Libnode Wordmark';
  src: url('../fonts/UtMilliffighTrialRegular-drq4R.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Ut Milliffigh Trial';
  src: url('../../doc/UtMilliffighTrialRegular-drq4R.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* =============================================================================
   CSS VARIABLES
   ============================================================================= */

:root {
  /* Colors — Dark Theme (Default) */
  --bg-primary: #090212;
  --bg-surface: #131316;
  --border: #1e1e24;
  --text-primary: #F2EEFC;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;

  /* Accent */
  --accent: #8b5cf6;
  --accent-hover: #a78bfa;
  --accent-glow: rgba(139, 92, 246, 0.1);
  --accent-glow-strong: rgba(139, 92, 246, 0.25);

  /* Panel colors */
  --panel-bg: #0c0c0f;
  --window-dot-red: #ff5f57;
  --window-dot-yellow: #febc2e;
  --window-dot-green: #28c840;

  /* Spacing */
  --section-padding: 100px;
  --container-width: 1100px;
  --border-radius: 8px;
  --border-radius-lg: 12px;

  /* Typography */
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-display: 'Orbitron', 'Sora', sans-serif;
  --font-libnode: 'Libnode Wordmark', var(--font-display);
  --font-body: 'Sora', system-ui, sans-serif;

  /* Hero logo controls */
  --hero-copy-gap: clamp(1.4rem, 4.5vh, 3.2rem);
  --brand-size-scale: 1.2;
  --brand-stage-x: 0vw;
  --brand-stage-y: 0vh;
  --hero-copy-nudge-x: 0px;
  --hero-logo-intro-delay: 0.06s;
  --hero-logo-intro-duration: 0.86s;
  --hero-copy-delay: 0.44s;
  --hero-copy-duration: 0.68s;
  --hero-reveal-distance: clamp(120px, 18vh, 210px);
  --hero-greeting-rest-y: 80vh;
  --hero-greeting-entry-y: clamp(72px, 16vh, 140px);
  --hero-logo-anchor-offset-y: 0px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
}

/* =============================================================================
   LIGHT THEME
   ============================================================================= */

[data-theme="light"] {
  --bg-primary: #f8f8fa;
  --bg-surface: #ffffff;
  --border: #e4e4e7;
  --text-primary: #09090b;
  --text-secondary: #52525b;
  --text-muted: #a1a1aa;

  --panel-bg: #f0f0f3;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
}

/* =============================================================================
   RESET & BASE
   ============================================================================= */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  overflow-x: hidden;
}

  /* Dot grid background - hidden, now handled by canvas */
body::before {
  display: none;
}

/* Interactive mouse effect canvas */
#interactive-dots {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* =============================================================================
   UTILITIES
   ============================================================================= */

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.section {
  padding: var(--section-padding) 0;
}

.section-title {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin-bottom: 3rem;
  letter-spacing: -0.02em;
}

.section-title .accent-prefix {
  color: var(--accent);
  margin-right: 0.5rem;
}

/* =============================================================================
   HOMEPAGE EDITORIAL SCAFFOLD (PHASE 1)
   ============================================================================= */

.home-editorial {
  --editorial-line: color-mix(in srgb, var(--border) 90%, transparent);
  --editorial-line-strong: color-mix(in srgb, var(--text-muted) 28%, var(--border));
  --editorial-section-pad: clamp(3.2rem, 6vw, 5.2rem);
  --editorial-reading-max: 72ch;
  --section-band-line-thickness: 1px;
  --section-band-pad-x: clamp(1rem, 1.8vw, 1.5rem);
  --section-band-pad-y: clamp(1.15rem, 2vw, 1.45rem);
  --section-band-gap: clamp(0.75rem, 1.5vw, 1rem);
  --section-band-index-width: clamp(2.1rem, 3vw, 2.55rem);
  --section-band-index-size: 0.72rem;
  --section-band-title-size: clamp(1.65rem, 3vw, 2.5rem);
  --line-fit-color: color-mix(in srgb, var(--editorial-line-strong) 82%, transparent);
  --line-fit-thickness: 1px;
  --line-fit-gap: 0.5rem;
  --line-fit-min: 6ch;
  --line-fit-max: 26ch;
}

.home-editorial .editorial-section {
  position: relative;
  padding: 0 0 var(--editorial-section-pad);
  background: transparent;
  border: 0;
}

.home-editorial .editorial-section > .container {
  width: 100%;
  max-width: none;
  padding-inline: clamp(16px, 2.6vw, 34px);
}

.home-editorial .section-band {
  --section-band-line-color: var(--editorial-line-strong);
  --section-band-accent: color-mix(in srgb, var(--accent) 62%, var(--section-band-line-color));
  position: relative;
  display: flex;
  align-items: center;
  margin: 0;
  padding: var(--section-band-pad-y) var(--section-band-pad-x);
}

.home-editorial .section-band::before {
  content: '';
  position: absolute;
  left: calc(50% - 50vw);
  top: 50%;
  width: 100vw;
  border-top: var(--section-band-line-thickness) solid var(--section-band-line-color);
  transform: translateY(-50%) scaleX(0.84);
  transform-origin: left center;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.home-editorial .section-band.visible::before {
  transform: translateY(-50%) scaleX(1);
}

.home-editorial .section-band-label {
  position: relative;
  z-index: 1;
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: var(--section-band-gap);
  max-width: min(100%, 34rem);
  min-width: 0;
  padding: 0.55rem 1.4rem 0.7rem 0;
  background: var(--bg-primary);
}

.home-editorial .section-band-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--section-band-index-width);
  padding: 0.38rem 0.62rem;
  border: 1px solid color-mix(in srgb, var(--section-band-accent) 44%, var(--section-band-line-color));
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-glow) 26%, var(--bg-primary));
  color: color-mix(in srgb, var(--accent) 72%, var(--text-primary));
  font-family: var(--font-mono);
  font-size: var(--section-band-index-size);
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
}

.home-editorial .section-band-title {
  position: relative;
  margin: 0;
  color: color-mix(in srgb, var(--text-primary) 94%, var(--accent) 6%);
  font-family: var(--font-display);
  font-size: var(--section-band-title-size);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 0.96;
  text-wrap: balance;
}

.home-editorial .section-band-title::after {
  content: '';
  position: absolute;
  left: calc(100% + 0.5rem);
  top: 50%;
  bottom: auto;
  width: clamp(0.85rem, 1.4vw, 1.2rem);
  border-top: var(--section-band-line-thickness) solid color-mix(in srgb, var(--section-band-accent) 82%, transparent);
  opacity: 0.5;
  transform: translateY(-50%) scaleX(0.72);
  transform-origin: left center;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s ease;
}

.home-editorial .section-band.visible .section-band-title::after {
  opacity: 0.78;
  transform: translateY(-50%) scaleX(1);
}

.home-editorial .editorial-section .section-title {
  margin-bottom: 0;
}

.home-editorial .editorial-section .services-offer-head,
.home-editorial .editorial-section .about-journey-intro,
.home-editorial .editorial-section .project-content p,
.home-editorial .editorial-section .contact-info p {
  max-width: min(100%, var(--editorial-reading-max));
}

/* =============================================================================
   HOMEPAGE EDITORIAL ABOUT (PHASE 2)
   ============================================================================= */

.home-editorial #about .about-content-home {
  max-width: none;
}

.home-editorial #about {
  position: relative;
  padding-bottom: 0;
  --about-content-top-space: clamp(1.2rem, 2.3vw, 2rem);
  --about-content-bottom-space: clamp(1.4rem, 2.6vw, 2.4rem);
  --about-line-color: color-mix(in srgb, var(--editorial-line-strong) 88%, transparent);
  --about-line-thickness: 1px;
  --section-band-line-color: var(--about-line-color);
  --section-band-accent: color-mix(in srgb, var(--accent) 58%, var(--about-line-color));
}

.home-editorial #about .about-segment-frame {
  position: relative;
  border: 0;
}

.home-editorial .line-fit {
  display: inline-grid;
  gap: var(--line-fit-gap);
  width: fit-content;
  max-inline-size: 100%;
  vertical-align: top;
}

.home-editorial .line-fit::after {
  content: '';
  width: clamp(var(--line-fit-min), calc(100% + 2.5ch), var(--line-fit-max));
  border-top: var(--line-fit-thickness) solid var(--line-fit-color);
}

.home-editorial .line-fit-heading {
  --line-fit-min: 10ch;
  --line-fit-max: 34ch;
  --line-fit-gap: 0.62rem;
}

.home-editorial #about .about-segment-main {
  position: relative;
  border: 0;
}

.home-editorial #about .about-segment-main::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: var(--about-line-thickness);
  transform: translateX(-50%);
  background: var(--about-line-color);
  pointer-events: none;
}

.home-editorial #about .about-journey-layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 3.4vw, 4.2rem);
  padding-top: var(--about-content-top-space);
  padding-bottom: var(--about-content-bottom-space);
  padding-inline: clamp(1rem, 1.8vw, 1.5rem);
  align-items: stretch;
}

.home-editorial #about .about-journey-intro {
  max-width: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  display: flex;
  flex-direction: column;
}

.home-editorial #about .about-journey-kicker {
  margin-bottom: 1.25rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: color-mix(in srgb, var(--accent) 58%, var(--text-primary));
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.home-editorial #about .about-journey-intro h3 {
  margin-bottom: 1.25rem;
  max-width: 28ch;
}

.home-editorial #about .about-journey-lead {
  margin-bottom: 1.9rem;
}

.home-editorial #about .about-journey-principles {
  gap: 0;
  border-top: 1px solid var(--editorial-line);
  margin-bottom: 1rem;
}

.home-editorial #about .about-journey-principles li {
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--editorial-line);
  color: color-mix(in srgb, var(--text-secondary) 88%, var(--text-primary));
}

.home-editorial #about .about-journey-principles li strong {
  color: color-mix(in srgb, var(--accent) 54%, var(--text-primary));
}

.home-editorial #about .about-journey-principles li::before {
  content: none;
}

.home-editorial #about .about-project-timeline {
  gap: 0;
  border-left: 0;
  padding-left: 0;
  background: transparent;
}

.home-editorial #about .about-journey-side {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.home-editorial #about .about-project-timeline::before {
  content: none;
}

.home-editorial #about .timeline-step {
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 1rem;
  padding: 1.2rem 0;
}

.home-editorial #about .timeline-step + .timeline-step {
  border-top: var(--about-line-thickness) solid var(--about-line-color);
}

.home-editorial #about .timeline-badge {
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  justify-content: flex-start;
  font-size: 0.72rem;
  font-weight: 600;
  color: color-mix(in srgb, var(--accent) 54%, var(--text-primary));
  box-shadow: none;
}

.home-editorial #about .timeline-content {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  transition: none;
}

.home-editorial #about .timeline-content:hover {
  border-color: transparent;
  box-shadow: none;
}

.home-editorial #about .timeline-content h3 {
  margin-bottom: 0.6rem;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  color: color-mix(in srgb, var(--accent) 56%, var(--text-primary));
}

.home-editorial #about .timeline-outcome {
  margin-top: 0.8rem;
  font-size: 0.79rem;
  color: color-mix(in srgb, var(--text-muted) 78%, var(--text-secondary));
}

.home-editorial #about .timeline-outcome span {
  color: var(--text-primary);
}

.home-editorial #about .about-journey-intro .about-cta-btn {
  margin-top: auto;
  align-self: flex-start;
}

.home-editorial #about .about-cta-btn {
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
  color: color-mix(in srgb, var(--text-secondary) 92%, var(--text-primary));
  font-size: 0.82rem;
}

.home-editorial #about .about-cta-btn:hover {
  color: var(--text-primary);
}

.home-editorial #about .about-cta-btn .arrow {
  transition: transform var(--transition-fast);
}

.home-editorial #about .about-cta-btn:hover .arrow {
  transform: translateX(4px);
}

.home-editorial #about .about-cta-btn:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--text-primary) 78%, transparent);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .home-editorial {
    --editorial-section-pad: clamp(2.5rem, 9vw, 3.8rem);
    --section-band-pad-y: clamp(1rem, 4.5vw, 1.2rem);
    --section-band-gap: 0.7rem;
    --section-band-title-size: clamp(1.35rem, 7vw, 2rem);
    --section-band-index-width: 1.95rem;
    --section-band-index-size: 0.66rem;
  }

  .home-editorial .editorial-section > .container {
    padding-inline: clamp(14px, 4.5vw, 22px);
  }

  .home-editorial .section-band {
    padding-inline: clamp(0.85rem, 4vw, 1.1rem);
  }

  .home-editorial .section-band-label {
    padding: 0.45rem 0.95rem 0.62rem 0;
  }

  .home-editorial .section-band-index {
    padding-inline: 0.52rem;
  }

  .home-editorial .section-band-title::after {
    left: calc(100% + 0.4rem);
    width: clamp(0.7rem, 3vw, 1rem);
  }

  .home-editorial #about .about-journey-layout {
    grid-template-columns: 1fr;
    gap: 1.9rem;
    padding-top: 0.9rem;
    padding-bottom: 1.6rem;
  }

  .home-editorial #about .about-segment-main::before {
    content: none;
  }

  .home-editorial #about .about-project-timeline {
    margin-top: 0.5rem;
    border-top: var(--about-line-thickness) solid var(--about-line-color);
    padding-top: 1rem;
    border-left: 0;
    padding-left: 0;
  }

  .home-editorial #about .timeline-step {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 0.95rem;
    padding: 1rem 0;
  }

  .home-editorial .line-fit-heading {
    --line-fit-max: 24ch;
  }

  .home-editorial #about .timeline-badge {
    font-size: 0.67rem;
  }

  .home-editorial #about .about-journey-intro .about-cta-btn {
    margin-top: 1rem;
  }

}

.home-editorial #services-teaser {
  --services-line-color: color-mix(in srgb, var(--editorial-line-strong) 88%, transparent);
  --services-line-thickness: 1px;
  --services-line-accent-subtle: color-mix(in srgb, var(--accent) 46%, var(--services-line-color));
  --section-band-line-color: var(--services-line-color);
  --section-band-accent: color-mix(in srgb, var(--accent) 62%, var(--services-line-color));
}

.home-editorial #services-teaser .services-content-home {
  position: relative;
}

.home-editorial #services-teaser .services-offer-head {
  position: relative;
  margin: 0;
  max-width: none;
  padding: 1.2rem clamp(1rem, 1.8vw, 1.5rem) 1.35rem;
}

.home-editorial #services-teaser .services-offer-head::after {
  content: '';
  position: absolute;
  left: calc(50% - 50vw);
  bottom: 0;
  width: 100vw;
  border-top: var(--services-line-thickness) solid var(--services-line-color);
  pointer-events: none;
}

.home-editorial #services-teaser .services-explorer {
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  gap: 0;
  align-items: stretch;
  padding-inline: clamp(1rem, 1.8vw, 1.5rem);
  padding-block: 1.15rem 1.35rem;
}

.home-editorial #services-teaser .services-explorer-nav {
  display: flex;
  flex-direction: column;
  position: static;
  top: auto;
  border: 0;
  border-right: var(--services-line-thickness) solid var(--services-line-color);
  border-radius: 0;
  background: transparent;
  padding: 0.1rem 1rem 0.1rem 0;
}

.home-editorial #services-teaser .services-home-nav-list {
  display: grid;
}

.home-editorial #services-teaser .services-nav-btn {
  margin: 0;
  border: 0;
  border-radius: 0;
  border-bottom: var(--services-line-thickness) solid color-mix(in srgb, var(--services-line-color) 72%, transparent);
  padding: 0.78rem 0.1rem;
  background: transparent;
  transform: none;
}

.home-editorial #services-teaser .services-nav-btn:first-of-type {
  border-top: var(--services-line-thickness) solid color-mix(in srgb, var(--services-line-color) 72%, transparent);
}

.home-editorial #services-teaser .services-nav-btn:hover {
  background: transparent;
  transform: none;
  border-color: color-mix(in srgb, var(--accent) 36%, var(--services-line-color));
}

.home-editorial #services-teaser .services-nav-btn.is-active {
  background: color-mix(in srgb, var(--accent-glow) 36%, transparent);
  border-color: var(--services-line-accent-subtle);
}

.home-editorial #services-teaser .services-explorer-detail {
  border: 0;
  border-radius: 0;
  min-height: 0;
  background: transparent;
  padding: 0 0 0 1.3rem;
}

.home-editorial #services-teaser .service-detail-block {
  border-left: var(--services-line-thickness) solid var(--services-line-accent-subtle);
  border-bottom: var(--services-line-thickness) solid var(--services-line-accent-subtle);
}

.home-editorial #services-teaser .services-home-nav-cta {
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: var(--services-line-thickness) solid var(--services-line-color);
}

.home-editorial #services-teaser .services-home-nav-cta .about-cta-btn {
  margin-top: 0.15rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
  color: color-mix(in srgb, var(--text-secondary) 92%, var(--text-primary));
  font-size: 0.82rem;
}

.home-editorial #services-teaser .services-home-nav-cta .about-cta-btn:hover {
  color: var(--text-primary);
}

.home-editorial #services-teaser .services-home-nav-cta .about-cta-btn:hover .arrow {
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .home-editorial #services-teaser .services-explorer {
    grid-template-columns: 1fr;
    padding-top: 0.9rem;
    padding-bottom: 1rem;
  }

  .home-editorial #services-teaser .services-explorer-nav {
    border-right: 0;
    border-bottom: var(--services-line-thickness) solid var(--services-line-color);
    padding-right: 0;
    padding-bottom: 0.8rem;
    margin-bottom: 0.9rem;
  }

  .home-editorial #services-teaser .services-explorer-detail {
    padding-left: 0;
  }

  .home-editorial #services-teaser .services-home-nav-cta {
    padding-top: 0.75rem;
  }
}

.home-editorial #projects {
  --projects-line-color: color-mix(in srgb, var(--editorial-line-strong) 88%, transparent);
  --projects-line-thickness: 1px;
  --projects-title-stroke: 1.35px;
  --projects-title-outline: color-mix(in srgb, var(--accent) 52%, var(--projects-line-color));
  --projects-accent-subtle: color-mix(in srgb, var(--accent) 46%, var(--projects-line-color));
  --section-band-line-color: var(--projects-line-color);
  --section-band-accent: color-mix(in srgb, var(--accent) 68%, var(--projects-line-color));
}

.home-editorial #projects .projects-content-home {
  position: relative;
}

.home-editorial #projects .projects-accordion {
  display: grid;
  gap: clamp(0.6rem, 1.6vw, 1.05rem);
  padding: 1.2rem clamp(1rem, 1.8vw, 1.5rem) 1.25rem;
}

.home-editorial #projects .project-accordion-heading {
  margin: 0;
}

.home-editorial #projects .project-title-btn {
  width: 100%;
  border: 0;
  background: transparent;
  padding: clamp(1.2rem, 2.4vw, 1.9rem) 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.3vw, 3.7rem);
  font-weight: 700;
  letter-spacing: 0.035em;
  line-height: 1.03;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: var(--projects-title-stroke) var(--projects-title-outline);
  cursor: pointer;
  transition: color 240ms ease, -webkit-text-stroke-color 240ms ease, text-shadow 240ms ease;
}

.home-editorial #projects .project-accordion-item.is-active .project-title-btn {
  color: color-mix(in srgb, var(--accent) 78%, var(--text-primary));
  -webkit-text-stroke-color: color-mix(in srgb, var(--accent) 68%, var(--projects-line-color));
  text-shadow: 0 8px 22px color-mix(in srgb, var(--accent-glow) 26%, transparent);
}

.home-editorial #projects .project-title-btn:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 72%, transparent);
  outline-offset: 4px;
}

.home-editorial #projects .project-panel-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 440ms cubic-bezier(0.16, 1, 0.3, 1);
}

.home-editorial #projects .project-accordion-item.is-active .project-panel-wrap {
  grid-template-rows: 1fr;
}

.home-editorial #projects .project-panel {
  min-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 280ms ease, transform 280ms ease;
  padding: 0 0 0.95rem;
}

.home-editorial #projects .project-accordion-item.is-active .project-panel {
  opacity: 1;
  transform: translateY(0);
}

.home-editorial #projects .project-panel-summary {
  margin: 0 0 0.95rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: clamp(0.96rem, 0.22vw + 0.9rem, 1.03rem);
  line-height: 1.72;
}

.home-editorial #projects .project-panel-grid {
  display: grid;
  gap: 0;
}

.home-editorial #projects .project-panel-block {
  border-left: var(--projects-line-thickness) solid var(--projects-accent-subtle);
  border-bottom: var(--projects-line-thickness) solid var(--projects-accent-subtle);
  padding: 0.5rem 0 0.8rem 0.9rem;
}

.home-editorial #projects .project-panel-block h4 {
  margin-bottom: 0.38rem;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--accent) 62%, var(--text-primary));
}

.home-editorial #projects .project-panel-block p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.66;
}

.home-editorial #projects .project-panel .project-links {
  justify-content: center;
  margin-top: 0.95rem;
}

@media (max-width: 768px) {
  .home-editorial #projects .projects-accordion {
    gap: 0.72rem;
    padding-top: 0.9rem;
    padding-bottom: 1rem;
  }

  .home-editorial #projects .project-title-btn {
    font-size: clamp(1.9rem, 9.2vw, 2.6rem);
    letter-spacing: 0.025em;
  }

  .home-editorial #projects .project-panel {
    padding-bottom: 0.8rem;
  }

  .home-editorial #projects .project-panel-summary {
    text-align: left;
    font-size: 0.94rem;
  }

  .home-editorial #projects .project-panel .project-links {
    justify-content: flex-start;
    gap: 1rem;
  }
}

.home-editorial #contact {
  --contact-line-color: color-mix(in srgb, var(--editorial-line-strong) 88%, transparent);
  --contact-line-thickness: 1px;
  --contact-accent-subtle: color-mix(in srgb, var(--accent) 44%, var(--contact-line-color));
  --section-band-line-color: var(--contact-line-color);
  --section-band-accent: color-mix(in srgb, var(--accent) 58%, var(--contact-line-color));
}

.home-editorial #contact .contact-content-home {
  position: relative;
}

.home-editorial #contact .contact-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.2rem, 2.3vw, 2.2rem);
  align-items: stretch;
  padding: clamp(1rem, 1.8vw, 1.45rem) clamp(1rem, 1.8vw, 1.5rem) clamp(1.25rem, 2.2vw, 1.8rem);
}

.home-editorial #contact .contact-art {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: clamp(0.5rem, 1.1vw, 0.85rem);
  min-height: clamp(290px, 36vw, 430px);
  padding-right: clamp(0.9rem, 2.2vw, 1.8rem);
  background: transparent;
  overflow: hidden;
}

.home-editorial #contact .contact-art-logo-wrap {
  display: block;
  width: 100%;
  margin: 0;
  align-self: center;
}

.home-editorial #contact .contact-art-logo {
  display: block;
  width: 100%;
  height: auto;
}

.home-editorial #contact .contact-art-line {
  margin: 0;
  text-align: left;
  font-family: 'Ut Milliffigh Trial', var(--font-libnode), var(--font-body);
  font-size: clamp(2.8rem, 5.7vw, 4.15rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.02;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--text-primary) 78%, var(--accent) 22%);
  transition: color 220ms ease, text-shadow 220ms ease;
}

.home-editorial #contact .contact-art-note {
  margin: 0;
  max-width: 34ch;
  padding-left: clamp(1.4rem, 2.9vw, 2.15rem);
  font-family: var(--font-body);
  font-size: 0.86rem;
  line-height: 1.55;
  color: color-mix(in srgb, var(--text-muted) 88%, var(--accent) 12%);
}

.home-editorial #contact .contact-art:hover .contact-art-line {
  color: color-mix(in srgb, var(--accent) 72%, var(--text-primary));
}

.home-editorial #contact .contact-form-shell {
  position: relative;
  display: flex;
  padding-left: clamp(0.7rem, 1.4vw, 1.2rem);
}

.home-editorial #contact .contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  width: 100%;
  min-height: 100%;
}

.home-editorial #contact .form-group {
  display: grid;
  gap: 0.42rem;
  padding-bottom: 0.78rem;
  border-bottom: var(--contact-line-thickness) solid var(--contact-line-color);
}

.home-editorial #contact .form-group-message {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.home-editorial #contact .form-group label {
  font-family: var(--font-mono);
  color: color-mix(in srgb, var(--text-muted) 86%, var(--text-primary));
  font-size: 0.73rem;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.home-editorial #contact .form-group input,
.home-editorial #contact .form-group textarea {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.62;
  outline: none;
}

.home-editorial #contact .form-group:focus-within {
  border-bottom-color: var(--contact-accent-subtle);
}

.home-editorial #contact .form-group textarea {
  min-height: 180px;
  flex: 1;
  resize: vertical;
}

.home-editorial #contact .submit-btn {
  align-self: flex-start;
  margin-top: 0.3rem;
  padding: 0;
  padding-top: 0.4rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: color-mix(in srgb, var(--text-secondary) 90%, var(--text-primary));
  font-family: var(--font-mono);
  font-size: 0.83rem;
  letter-spacing: 0.01em;
  transition: color var(--transition-fast);
}

.home-editorial #contact .submit-btn:hover {
  color: var(--text-primary);
  transform: none;
}

.home-editorial #contact .contact-info {
  margin-top: 1.2rem;
  padding-top: 0.95rem;
  border-top: var(--contact-line-thickness) solid var(--contact-line-color);
  text-align: left;
}

.home-editorial #contact .contact-info p {
  color: var(--text-muted);
  margin-bottom: 0.7rem;
  font-size: 0.83rem;
}

.home-editorial #contact .social-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 0.55rem 1.1rem;
  justify-content: start;
}

.home-editorial #contact .social-link {
  font-size: 0.8rem;
}

@media (max-width: 968px) {
  .home-editorial #contact .contact-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .home-editorial #contact .contact-form-shell {
    padding-left: 0;
    padding-top: 1rem;
    border-top: var(--contact-line-thickness) solid var(--contact-line-color);
  }

  .home-editorial #contact .contact-art {
    min-height: clamp(220px, 46vw, 320px);
    padding-right: 0;
  }
}

@media (max-width: 640px) {
  .home-editorial #contact .contact-art-logo-wrap {
    width: 100%;
  }

  .home-editorial #contact .contact-art-line {
    font-size: clamp(2.2rem, 9.6vw, 3.2rem);
  }

  .home-editorial #contact .social-links {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .home-editorial .section-band.reveal,
  .home-editorial .section-band.reveal.visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .home-editorial .section-band::before {
    transition: none;
    transform: translateY(-50%) scaleX(1);
  }

  .home-editorial .section-band-title::after {
    transition: none;
    opacity: 0.78;
    transform: translateY(-50%) scaleX(1);
  }

  .home-editorial #contact .contact-art,
  .home-editorial #contact .contact-art-line {
    transition: none;
  }
}

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

/* =============================================================================
   SCROLL ANIMATIONS
   ============================================================================= */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Stagger children */
.stagger > .reveal:nth-child(1) { transition-delay: 0ms; }
.stagger > .reveal:nth-child(2) { transition-delay: 100ms; }
.stagger > .reveal:nth-child(3) { transition-delay: 200ms; }
.stagger > .reveal:nth-child(4) { transition-delay: 300ms; }
.stagger > .reveal:nth-child(5) { transition-delay: 400ms; }
.stagger > .reveal:nth-child(6) { transition-delay: 500ms; }

/* =============================================================================
   NAVIGATION
   ============================================================================= */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: background-color var(--transition-normal),
              padding var(--transition-normal),
              backdrop-filter var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(9, 2, 18, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}

[data-theme="light"] .navbar.scrolled {
  background: rgba(248, 248, 250, 0.85);
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
  letter-spacing: -0.02em;
}

.nav-logo:hover {
  color: var(--accent);
}

.nav-logo-img {
  height: 62px;
  width: auto;
  display: block;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  font-family: var(--font-body);
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
  position: relative;
  padding-bottom: 4px;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width var(--transition-normal);
}

.nav-menu a:hover {
  color: var(--text-primary);
}

.nav-menu a:hover::after {
  width: 100%;
}

/* Active page indicator — purple dot */
.nav-menu a.active {
  color: var(--text-primary);
}

.nav-menu a.active::after {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  left: 50%;
  bottom: -4px;
  transform: translateX(-50%);
  transition: none;
}

/* Theme Toggle */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.theme-toggle-icon {
  width: 16px;
  height: 16px;
  display: block;
}

.theme-toggle:hover {
  border-color: var(--text-secondary);
  transform: translateY(-1px);
}

/* Hamburger Menu Button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
  z-index: 1001;
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  position: absolute;
  left: 0;
  transition: all var(--transition-normal);
}

.mobile-menu-btn span:nth-child(1) { top: 0; }
.mobile-menu-btn span:nth-child(2) { top: 9px; }
.mobile-menu-btn span:nth-child(3) { top: 18px; }

.mobile-menu-btn.active span:nth-child(1) {
  top: 9px;
  transform: rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  top: 9px;
  transform: rotate(-45deg);
}

/* =============================================================================
   HERO SECTION
   ============================================================================= */

.hero {
  min-height: calc(100svh + var(--hero-reveal-distance));
  position: relative;
  padding: 0;
  overflow: visible;
  display: block;
  background:
    radial-gradient(120% 85% at 18% 20%, rgba(9, 2, 18, 0.5), rgba(9, 2, 18, 0.85) 70%),
    linear-gradient(180deg, rgba(9, 2, 18, 0.08), rgba(9, 2, 18, 0.58));
}

.hero::before {
  content: none;
}

[data-theme="light"] .hero {
  background:
    radial-gradient(120% 85% at 18% 20%, rgba(248, 248, 250, 0.16), rgba(248, 248, 250, 0.58) 70%),
    linear-gradient(180deg, rgba(248, 248, 250, 0.08), rgba(248, 248, 250, 0.52));
}

[data-theme="light"] .hero::before {
  content: none;
}

.hero-inner {
  max-width: min(1420px, 100%);
  padding-inline: clamp(10px, 2.2vw, 26px);
  width: 100%;
  min-height: 100svh;
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  z-index: 2;
}

.hero-layout {
  display: block;
  width: 100%;
  max-width: none;
  --hero-greeting-progress: 1;
  --hero-greeting-blur-progress: 1;
}

.hero-stack {
  width: 100%;
  max-width: none;
  min-height: 100svh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.hero-brand {
  margin: 0;
  display: flex;
  justify-content: center;
  line-height: 1;
}

.hero-brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: min(64vh, 620px);
  transform: translate3d(var(--brand-stage-x), calc(var(--brand-stage-y) + var(--hero-logo-anchor-offset-y)), 0);
  transform-origin: center center;
}

.hero-brand-logo {
  width: min(100%, calc(clamp(360px, 54vw, 1120px) * var(--brand-size-scale)));
  height: auto;
  max-height: min(70vh, 720px);
  display: block;
  transform: translate3d(0, 0, 0) scale(1);
  filter: none;
  will-change: transform, opacity;
}

.hero-copy {
  max-width: none;
  padding-top: var(--hero-copy-gap);
  padding-left: var(--hero-copy-nudge-x);
  text-align: center;
}

.hero-greeting p {
  color: var(--text-secondary);
  font-size: clamp(1.18rem, 2.35vw, 1.52rem);
  line-height: 1.75;
  max-width: min(78ch, 100%);
  margin: 0 auto;
  white-space: pre-line;
}

.hero-greeting strong {
  color: var(--text-primary);
  font-weight: 700;
}

.hero-greeting p + p {
  margin-top: 0.8rem;
}

.hero-greeting-stage {
  position: absolute;
  top: var(--hero-greeting-rest-y);
  left: 50%;
  width: min(78ch, calc(100% - 1rem));
  transform: translate3d(-50%, calc((1 - var(--hero-greeting-progress)) * var(--hero-greeting-entry-y)), 0);
  opacity: var(--hero-greeting-progress);
  filter: blur(calc((1 - var(--hero-greeting-blur-progress)) * 4px));
  text-align: center;
  pointer-events: none;
  will-change: transform, opacity, filter;
}

.hero-layout[data-animate="true"] .hero-brand-logo,
.hero-layout[data-animate="true"] .hero-copy {
  opacity: 0;
}

.hero-layout[data-animate="true"] .hero-brand-logo {
  transform: translate3d(0, 26px, 0) scale(0.985);
}

.hero-layout[data-animate="true"] .hero-copy {
  transform: translateY(16px);
  filter: blur(2px);
}

.hero-layout[data-animate="true"].intro-visible .hero-brand-logo {
  animation: hero-logo-enter var(--hero-logo-intro-duration) var(--hero-logo-intro-delay) cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-layout[data-animate="true"].intro-visible .hero-copy {
  animation: hero-copy-enter var(--hero-copy-duration) var(--hero-copy-delay) cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes hero-logo-enter {
  0% {
    opacity: 0;
    transform: translate3d(0, 26px, 0) scale(0.985);
  }
  55% {
    opacity: 1;
    transform: translate3d(0, -2px, 0) scale(1.002);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes hero-copy-enter {
  0% {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(3px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: var(--window-dot-red); }
.dot-yellow { background: var(--window-dot-yellow); }
.dot-green { background: var(--window-dot-green); }

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  z-index: 2;
  animation: bounce 2.5s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(8px); }
  60% { transform: translateX(-50%) translateY(4px); }
}

/* =============================================================================
   PAGE HEADERS (sub-pages)
   ============================================================================= */

.page-header {
  padding: 160px 0 80px;
  text-align: center;
}

.page-title {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.page-subtitle {
  color: var(--text-secondary);
  font-size: clamp(1.22rem, 3vw, 1.48rem);
  max-width: 860px;
  margin: 0 auto;
  text-align: justify;
  text-wrap: balance;
}

.page-subnote {
  margin: 1rem auto 0;
  max-width: 860px;
  color: color-mix(in srgb, var(--text-secondary) 90%, var(--text-primary));
  font-size: clamp(0.94rem, 0.25vw + 0.9rem, 1.02rem);
  line-height: 1.72;
  text-wrap: pretty;
}

.page-header-services {
  margin-top: 0.9rem;
}

.page-header-services .link-btn {
  font-size: 0.82rem;
}

/* =============================================================================
   ABOUT SECTION
   ============================================================================= */

.about-content {
  max-width: 700px;
  margin: 0 auto;
}

.about-content-home {
  max-width: min(1180px, 100%);
}

.about-journey-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(1.5rem, 2.4vw, 2.7rem);
  align-items: start;
}

.about-journey-intro {
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  border-radius: var(--border-radius-lg);
  padding: clamp(1.5rem, 1.4vw + 1rem, 2.2rem);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg-surface) 68%, transparent), transparent 92%);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.14);
}

.about-journey-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.8rem;
  padding: 0.3rem 0.6rem;
  border: 1px solid color-mix(in srgb, var(--accent) 52%, var(--border));
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-glow) 70%, transparent);
  color: var(--accent-hover);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.about-journey-intro h3 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1vw + 1rem, 1.62rem);
  line-height: 1.35;
  margin-bottom: 1.15rem;
  letter-spacing: -0.02em;
}

.about-journey-lead {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.82;
  margin-bottom: 1.25rem;
}

.about-journey-principles {
  list-style: none;
  display: grid;
  gap: 0.95rem;
}

.about-journey-principles li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.75;
  padding-left: 1.1rem;
  position: relative;
}

.about-journey-principles li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 55%, transparent);
}

.about-project-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.2rem;
  position: relative;
}

.about-project-timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0.8rem;
  bottom: 0.8rem;
  width: 2px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 52%, transparent), color-mix(in srgb, var(--accent) 12%, transparent));
  pointer-events: none;
}

.timeline-step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.timeline-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border));
  background: color-mix(in srgb, var(--bg-surface) 64%, transparent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--accent-hover);
  font-weight: 500;
  z-index: 1;
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 10%, transparent);
}

.timeline-content {
  border: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
  border-radius: var(--border-radius);
  padding: 1.25rem 1.2rem 1.18rem;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg-surface) 56%, transparent), transparent 94%);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.timeline-content:hover {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--border));
  box-shadow: 0 8px 22px color-mix(in srgb, var(--accent-glow) 22%, transparent);
}

.timeline-content h3 {
  font-family: var(--font-mono);
  font-size: 0.93rem;
  margin-bottom: 0.42rem;
  letter-spacing: -0.01em;
}

.timeline-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

.timeline-outcome {
  margin-top: 0.72rem;
  color: color-mix(in srgb, var(--accent-hover) 58%, var(--text-secondary));
  font-size: 0.78rem;
}

.timeline-outcome span {
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  margin-right: 0.25rem;
}

.about-journey-cta {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  margin-top: 2rem;
}

.about-journey-cta .link-btn {
  font-size: 0.82rem;
}

.about-greeting {
  margin: 0 auto 7rem;
  text-align: center;
}

#about .hero-greeting.about-greeting {
  margin-bottom: 11rem;
}

.about-text h2 {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  margin-top: 3.2rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.about-text p + h2 {
  margin-top: 3.6rem;
}

.about-greeting h2 {
  margin-top: 0;
}

.about-text h2 .accent-prefix {
  color: var(--accent);
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.8;
  font-size: 1.05rem;
  text-align: justify;
}

.about-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.5rem;
  padding: 0.72rem 1.1rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  background: var(--accent-glow);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-normal),
              background-color var(--transition-normal), color var(--transition-normal),
              border-color var(--transition-normal);
}

.about-cta-btn .arrow {
  font-size: 0.88rem;
  transition: transform var(--transition-fast);
}

.about-cta-btn:hover {
  background: var(--accent);
  border-color: var(--accent-hover);
  color: #F2EEFC;
  box-shadow: 0 8px 20px var(--accent-glow-strong);
  transform: translateY(-2px);
}

.about-cta-btn:hover .arrow {
  transform: translateX(4px);
}

.about-cta-btn:focus-visible {
  outline: 2px solid var(--accent-hover);
  outline-offset: 3px;
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: var(--container-width);
  margin: 0 auto;
}

.skill-category {
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  transition: border-color var(--transition-normal);
}

.skill-category:hover {
  border-color: var(--accent);
}

.skill-category h3 {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.skill-category p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.75;
  text-align: justify;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: var(--font-body);
}

/* =============================================================================
   SERVICES
   ============================================================================= */

.services-teaser-intro {
  color: var(--text-secondary);
  max-width: 900px;
  margin: 0;
  text-align: left;
  font-size: clamp(0.98rem, 0.25vw + 0.92rem, 1.08rem);
  letter-spacing: 0.005em;
  line-height: 1.8;
}

.services-offer-head {
  margin: 0 0 1.85rem;
  max-width: min(940px, 100%);
}

.services-offer-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.8rem;
  padding: 0.32rem 0.62rem;
  border: 1px solid color-mix(in srgb, var(--accent) 50%, var(--border));
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-glow) 70%, transparent);
  color: var(--accent-hover);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.services-offer-head h3 {
  font-family: var(--font-display);
  font-size: clamp(1.34rem, 1.55vw + 1rem, 2.05rem);
  line-height: 1.24;
  margin-bottom: 0.82rem;
  max-width: 28ch;
}

.services-home-journey {
  border: 1px solid color-mix(in srgb, var(--border) 78%, transparent);
  border-radius: 14px;
  padding: clamp(1.08rem, 1.8vw + 0.7rem, 2rem);
  background:
    radial-gradient(124% 88% at 10% -16%, color-mix(in srgb, var(--accent-glow) 58%, transparent), transparent 60%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg-surface) 82%, transparent), transparent 92%);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
}

.services-home-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.72rem, 1vw, 1rem);
  margin-bottom: 1.15rem;
}

.services-home-pillar-btn {
  display: grid;
  gap: 0.72rem;
  align-content: start;
  text-align: left;
  min-height: 220px;
  border: 1px solid color-mix(in srgb, var(--border) 74%, transparent);
  border-radius: 14px;
  padding: clamp(1rem, 0.75vw + 0.8rem, 1.2rem);
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg-surface) 64%, transparent), color-mix(in srgb, var(--bg-primary) 38%, transparent));
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal),
              transform var(--transition-fast), color var(--transition-normal),
              background-color var(--transition-normal), filter var(--transition-normal);
}

.services-home-pillar-btn.is-featured {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--border));
}

.services-home-pillar-btn:hover {
  border-color: color-mix(in srgb, var(--accent) 44%, var(--border));
  color: var(--text-primary);
  transform: translateY(-3px);
  filter: saturate(1.08);
}

.services-home-pillar-btn.is-active {
  border-color: color-mix(in srgb, var(--accent) 58%, var(--border));
  color: var(--text-primary);
  background:
    linear-gradient(168deg, color-mix(in srgb, var(--accent-glow) 82%, transparent), transparent 60%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg-surface) 76%, transparent), transparent 96%);
  box-shadow: 0 14px 28px color-mix(in srgb, var(--accent-glow) 32%, transparent);
}

.services-home-pillar-label {
  font-family: var(--font-mono);
  font-size: clamp(0.94rem, 0.24vw + 0.88rem, 1.02rem);
  line-height: 1.3;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--text-primary);
  opacity: 1;
}

.services-home-pillar-promise {
  font-size: clamp(0.89rem, 0.2vw + 0.84rem, 0.95rem);
  line-height: 1.58;
  color: color-mix(in srgb, var(--text-secondary) 92%, var(--text-primary));
  max-width: 26ch;
}

.services-home-pillar-toggle {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0.5rem;
  border-top: 1px solid color-mix(in srgb, var(--border) 68%, transparent);
  padding-top: 0.72rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--text-secondary) 72%, var(--text-primary));
}

.services-home-pillar-btn.is-active .services-home-pillar-promise {
  color: var(--text-primary);
}

.services-home-pillar-btn.is-active .services-home-pillar-label {
  color: color-mix(in srgb, var(--accent-hover) 74%, var(--text-primary));
}

.services-home-chevron {
  flex-shrink: 0;
  transition: transform var(--transition-normal);
}

.services-home-pillar-btn.is-active .services-home-chevron {
  transform: rotate(180deg);
}

.services-home-pillar-btn:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent-hover) 82%, transparent);
  outline-offset: 3px;
}

.services-home-detail-shell {
  margin-top: 0.25rem;
  border: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
  border-radius: 14px;
  padding: clamp(1rem, 1.1vw + 0.7rem, 1.45rem);
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg-surface) 66%, transparent), transparent 96%);
}

.services-home-detail-panel {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.services-home-detail-panel.is-active {
  opacity: 1;
  transform: translateY(0);
}

.services-home-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
}

.services-home-detail-block {
  border: 0;
  border-left: 2px solid color-mix(in srgb, var(--border) 78%, transparent);
  padding: 0.22rem 0 0.82rem 0.86rem;
  background: transparent;
}

.services-home-detail-block:not(:last-child) {
  border-bottom: 1px solid color-mix(in srgb, var(--border) 68%, transparent);
}

.services-home-detail-block h4 {
  font-family: var(--font-mono);
  font-size: 0.79rem;
  margin-bottom: 0.45rem;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}

.services-home-detail-block p,
.services-home-detail-block li {
  color: var(--text-secondary);
  font-size: clamp(0.9rem, 0.16vw + 0.86rem, 0.96rem);
  line-height: 1.68;
}

.services-home-detail-block ul {
  margin: 0;
  padding-left: 1.05rem;
  display: grid;
  gap: 0.3rem;
}

.services-home-detail-outcome {
  border-left: 0;
  border: 1px solid color-mix(in srgb, var(--accent) 44%, var(--border));
  border-radius: 12px;
  padding: 0.9rem 0.98rem;
  margin-top: 0.38rem;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent-glow) 64%, transparent), transparent 96%);
}

.services-home-detail-outcome h4 {
  color: color-mix(in srgb, var(--accent-hover) 76%, var(--text-primary));
}

.services-teaser-cta {
  margin-top: 1.6rem;
  text-align: center;
}

.services-page-header {
  position: relative;
}

.services-page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(76% 62% at 20% 5%, color-mix(in srgb, var(--accent-glow) 78%, transparent), transparent 72%);
  pointer-events: none;
}

.services-page-header .container {
  position: relative;
}

.services-page-cta {
  margin-top: 2.4rem;
  text-align: center;
}

.services-page-cta p {
  color: var(--text-secondary);
  margin-bottom: 0.8rem;
}

.services-journey-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.2rem;
}

.services-journey-step {
  border: 1px solid color-mix(in srgb, var(--border) 78%, transparent);
  border-radius: var(--border-radius-lg);
  padding: 1rem 1.05rem;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg-surface) 64%, transparent), transparent 92%);
}

.services-journey-index {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-hover);
  margin-bottom: 0.35rem;
}

.services-journey-step h3 {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  margin-bottom: 0.3rem;
}

.services-journey-step p {
  color: var(--text-secondary);
  font-size: 0.86rem;
  line-height: 1.65;
}

.services-explorer {
  display: grid;
  grid-template-columns: minmax(270px, 340px) minmax(0, 1fr);
  gap: clamp(1rem, 1.4vw, 1.5rem);
  align-items: start;
}

.services-explorer-nav {
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  border-radius: 14px;
  background:
    radial-gradient(140% 88% at 6% -18%, color-mix(in srgb, var(--accent-glow) 42%, transparent), transparent 62%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg-surface) 68%, transparent), transparent 94%);
  padding: 0.86rem;
  position: sticky;
  top: 100px;
}

.services-nav-head {
  padding: 0.12rem 0.18rem 0.78rem;
  margin-bottom: 0.7rem;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}

.services-nav-kicker {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--accent-hover) 74%, var(--text-primary));
  margin-bottom: 0.34rem;
}

.services-nav-description {
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.58;
}

.services-nav-btn {
  width: 100%;
  text-align: left;
  border: 1px solid color-mix(in srgb, var(--border) 68%, transparent);
  border-radius: 11px;
  background: transparent;
  color: var(--text-secondary);
  padding: 0.76rem 0.78rem;
  cursor: pointer;
  margin-bottom: 0.52rem;
  transition: border-color var(--transition-normal), background-color var(--transition-normal), color var(--transition-normal), transform var(--transition-fast);
}

.services-nav-btn:hover {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--border));
  background: color-mix(in srgb, var(--bg-surface) 60%, transparent);
  color: var(--text-primary);
  transform: translateX(2px);
}

.services-nav-btn.is-active {
  border-color: color-mix(in srgb, var(--accent) 58%, var(--border));
  background:
    linear-gradient(168deg, color-mix(in srgb, var(--accent-glow) 76%, transparent), transparent 74%),
    color-mix(in srgb, var(--bg-surface) 66%, transparent);
  color: var(--text-primary);
}

.services-nav-btn.is-active .services-nav-hook {
  color: color-mix(in srgb, var(--text-secondary) 74%, var(--text-primary));
}

.services-nav-index {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: color-mix(in srgb, var(--accent-hover) 72%, var(--text-secondary));
  margin-bottom: 0.2rem;
}

.services-nav-title {
  display: block;
  font-size: 0.93rem;
  line-height: 1.42;
}

.services-nav-hook {
  display: block;
  margin-top: 0.28rem;
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.5;
}

.services-explorer-detail {
  border: 1px solid color-mix(in srgb, var(--border) 74%, transparent);
  border-radius: 14px;
  padding: clamp(1.08rem, 1.2vw + 0.82rem, 1.8rem);
  background:
    radial-gradient(120% 88% at 0% 0%, color-mix(in srgb, var(--accent-glow) 58%, transparent), transparent 58%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg-surface) 74%, transparent), transparent 94%);
  min-height: 420px;
}

.services-explorer-detail .service-detail-heading,
.services-explorer-detail .service-detail-grid {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.services-explorer-detail.is-ready .service-detail-heading,
.services-explorer-detail.is-ready .service-detail-grid {
  opacity: 1;
  transform: translateY(0);
}

.service-detail-heading {
  margin-bottom: 1.1rem;
}

.service-detail-index {
  display: inline-flex;
  border: 1px solid color-mix(in srgb, var(--accent) 52%, var(--border));
  border-radius: 999px;
  padding: 0.22rem 0.56rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--accent-hover);
  margin-bottom: 0.6rem;
}

.service-detail-heading h2 {
  font-family: var(--font-display);
  font-size: clamp(1.36rem, 1.1vw + 1rem, 1.88rem);
  line-height: 1.3;
  margin-bottom: 0.48rem;
}

.service-detail-summary {
  color: var(--text-secondary);
  line-height: 1.74;
  font-size: 1rem;
  max-width: 70ch;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
  margin-top: 0.9rem;
}

.service-detail-block {
  border: 0;
  border-left: 2px solid color-mix(in srgb, var(--border) 78%, transparent);
  padding: 0.22rem 0 0.82rem 0.88rem;
  background: transparent;
}

.service-detail-block:not(:last-child) {
  border-bottom: 1px solid color-mix(in srgb, var(--border) 68%, transparent);
}

.service-detail-block h4 {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  margin-bottom: 0.48rem;
}

.service-detail-copy {
  display: grid;
  gap: 0.42rem;
}

.service-detail-copy p,
.service-detail-copy li {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
}

.service-detail-copy ul {
  margin: 0;
  padding-left: 1.02rem;
  display: grid;
  gap: 0.28rem;
}

.service-detail-copy p + p {
  margin-top: 0.2rem;
}

.services-markdown {
  max-width: 920px;
}

.services-markdown > h2:first-of-type {
  margin-top: 0;
}

.services-markdown > ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.55rem;
  list-style: none;
  padding-left: 0;
  margin: 0.95rem 0 1.7rem;
}

.services-markdown > ul li {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 0.78rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-secondary);
  background: var(--bg-surface);
}

.services-markdown h3 {
  margin-top: 1.8rem;
  margin-bottom: 0.8rem;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--border-radius-lg);
  background: linear-gradient(180deg, var(--bg-surface), transparent 78%);
  padding: 0.9rem 1rem;
  font-family: var(--font-mono);
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}

.services-markdown h3:first-of-type {
  margin-top: 1rem;
}

.services-markdown h4 {
  margin-top: 0.95rem;
  margin-bottom: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-primary);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.services-markdown p,
.services-markdown li {
  color: var(--text-secondary);
  line-height: 1.72;
}

.services-markdown ul {
  margin-bottom: 0.8rem;
  padding-left: 1.2rem;
}

.services-markdown li {
  margin-bottom: 0.35rem;
}

.services-markdown hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.9rem 0;
}

.services-markdown .about-cta-btn {
  margin-top: 0.75rem;
}

/* =============================================================================
   BLOG
   ============================================================================= */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
  max-width: var(--container-width);
  margin: 0 auto;
}

.blog-card {
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: border-color var(--transition-normal),
              box-shadow var(--transition-normal);
}

.blog-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 24px var(--accent-glow);
}

.blog-image {
  background: var(--panel-bg);
  border-bottom: 1px solid var(--border);
}

.blog-content {
  padding: 1.5rem;
}

.blog-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.5rem;
}

.blog-content h3 {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.blog-content p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.7;
  font-size: 0.9rem;
}

/* Blog Post Content (rendered markdown) */
.blog-post-content {
  max-width: 750px;
  margin: 0 auto;
}

.blog-post-content h1,
.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4 {
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.blog-post-content h1 { font-size: 1.75rem; }
.blog-post-content h2 { font-size: 1.35rem; }
.blog-post-content h3 { font-size: 1.15rem; }

.blog-post-content p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.blog-post-content a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.blog-post-content a:hover {
  color: var(--accent-hover);
}

.blog-post-content strong {
  color: var(--text-primary);
}

.blog-post-content ul,
.blog-post-content ol {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
  line-height: 1.8;
}

.blog-post-content li {
  margin-bottom: 0.4rem;
}

.blog-post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  display: block;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
}

.blog-post-content th,
.blog-post-content td {
  border: 1px solid var(--border);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
  min-width: 140px;
}

.blog-post-content th {
  color: var(--text-primary);
  background: var(--bg-surface);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.blog-post-content td {
  color: var(--text-secondary);
}

.blog-post-content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-style: italic;
}

.blog-post-content code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--bg-surface);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.blog-post-content pre {
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.blog-post-content pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.blog-post-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

.blog-post-content em {
  color: var(--text-muted);
}

/* Blog navigation */
.blog-back-link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
  display: inline-block;
  margin-bottom: 1.5rem;
}

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

.loading-text {
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-align: center;
}

/* =============================================================================
   PROJECTS
   ============================================================================= */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
  max-width: var(--container-width);
  margin: 0 auto;
}

.project-card {
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: border-color var(--transition-normal),
              box-shadow var(--transition-normal);
  cursor: default;
}

.project-card.project-card-clickable {
  cursor: pointer;
}

.project-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 24px var(--accent-glow);
}

.project-card.project-card-clickable:focus-visible {
  outline: 2px solid var(--accent-hover);
  outline-offset: 2px;
}

.project-card-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

.project-card-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-left: 8px;
}

.project-card-code {
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.8;
}

.code-line {
  display: block;
  color: var(--text-muted);
  min-height: 1.2em;
}

.code-keyword { color: var(--accent); }
.code-string { color: var(--accent-hover); }

.project-content {
  padding: 1.5rem;
}

.project-content h3 {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.project-content p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.7;
  font-size: 0.9rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.project-links {
  display: flex;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.link-btn {
  font-family: var(--font-mono);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: color var(--transition-fast);
}

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

.link-btn .arrow {
  transition: transform var(--transition-fast);
  font-size: 0.85rem;
}

.link-btn:hover .arrow {
  transform: translateX(4px);
}

/* =============================================================================
   CONTACT
   ============================================================================= */

.contact-container {
  max-width: 560px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: 2.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  padding: 0.875rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition-normal);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: var(--accent);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.submit-btn {
  padding: 0.875rem;
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: var(--border-radius);
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.submit-btn:hover {
  background: var(--accent);
  color: #F2EEFC;
  transform: translateY(-2px);
}

.contact-info {
  margin-top: 3rem;
  text-align: center;
}

.contact-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.social-link {
  font-family: var(--font-mono);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: color var(--transition-fast);
}

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

.social-link .arrow {
  transition: transform var(--transition-fast);
}

.social-link:hover .arrow {
  transform: translateX(4px);
}

/* =============================================================================
   FOOTER
   ============================================================================= */

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

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-content p {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color var(--transition-fast);
}

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

.footer-icon-link {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  border-radius: 999px;
  color: var(--text-muted);
}

.footer-icon-link svg {
  width: 16px;
  height: 16px;
}

.footer-icon-link:hover {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */

@media (max-width: 968px) {
  .projects-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

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

}

@media (max-width: 768px) {
  :root {
    --brand-size-scale: 1.08;
    --brand-stage-x: 0vw;
    --brand-stage-y: 0vh;
    --hero-copy-nudge-x: 0px;
    --hero-reveal-distance: clamp(110px, 16vh, 180px);
    --hero-greeting-rest-y: 82vh;
    --hero-greeting-entry-y: clamp(62px, 14vh, 110px);
  }

  .mobile-menu-btn {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(9, 2, 18, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 100px 24px 40px;
    gap: 0;
    transform: translateY(-100%);
    transition: transform var(--transition-slow);
    border-bottom: 1px solid var(--border);
  }

  [data-theme="light"] .nav-menu {
    background: rgba(248, 248, 250, 0.95);
  }

  .nav-menu.active {
    transform: translateY(0);
  }

  .nav-menu li {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .nav-menu.active li {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-menu.active li:nth-child(1) { transition-delay: 0.05s; }
  .nav-menu.active li:nth-child(2) { transition-delay: 0.1s; }
  .nav-menu.active li:nth-child(3) { transition-delay: 0.15s; }
  .nav-menu.active li:nth-child(4) { transition-delay: 0.2s; }
  .nav-menu.active li:nth-child(5) { transition-delay: 0.25s; }
  .nav-menu.active li:nth-child(6) { transition-delay: 0.3s; }

  .nav-menu a {
    display: block;
    padding: 1rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-menu a.active::after {
    display: none;
  }

  .section {
    padding: 60px 0;
  }

  .page-header {
    padding: 120px 0 60px;
  }

  .hero {
    padding: 0;
  }

  .hero-inner {
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding-top: clamp(4.2rem, 10vh, 6rem);
    padding-inline: 14px;
  }

  .hero-layout {
    width: 100%;
    max-width: none;
  }

  .hero-stack {
    width: 100%;
    max-width: none;
    min-height: calc(100svh - clamp(4.2rem, 10vh, 6rem));
    justify-content: center;
  }

  .hero-brand-mark {
    width: 100%;
    min-height: min(54vh, 470px);
  }

  .hero-greeting p {
    font-size: 1.12rem;
    line-height: 1.7;
  }

  .contact-container {
    padding: 1.75rem;
  }

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

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

  .about-journey-layout {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }

  .about-project-timeline::before {
    left: 19px;
  }

  .about-journey-cta {
    flex-wrap: wrap;
    margin-top: 1.6rem;
  }

  .services-home-pillars,
  .services-journey-band,
  .services-explorer,
  .services-explorer-nav {
    grid-template-columns: 1fr;
  }

  .services-home-pillar-btn {
    min-height: 0;
  }

  .services-explorer-nav {
    position: static;
    top: auto;
  }

  .services-nav-btn {
    margin-bottom: 0;
  }

  .services-home-pillar-btn {
    text-align: left;
  }

  .services-explorer-detail {
    min-height: 0;
  }
}

@media (max-width: 480px) {
  :root {
    --brand-size-scale: 1;
    --brand-stage-x: 0vw;
    --brand-stage-y: 0vh;
    --hero-copy-nudge-x: 0px;
    --hero-reveal-distance: clamp(95px, 14vh, 150px);
    --hero-greeting-rest-y: 84vh;
    --hero-greeting-entry-y: clamp(52px, 12vh, 90px);
  }

  .hero {
    padding: 0;
  }

  .hero-inner {
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding-top: clamp(4.2rem, 12vh, 5.8rem);
    padding-inline: 12px;
  }

  .hero-stack {
    min-height: calc(100svh - clamp(4.2rem, 12vh, 5.8rem));
    justify-content: center;
  }

  .hero-brand-mark {
    min-height: min(49vh, 390px);
  }

  .hero-brand-logo {
    max-height: 56vh;
  }

  .section-title {
    font-size: 1.25rem;
  }

  .social-links {
    flex-direction: column;
    gap: 1rem;
  }

  .timeline-step {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 0.9rem;
  }

  .timeline-badge {
    width: 36px;
    height: 36px;
    font-size: 0.62rem;
  }

  .timeline-content {
    padding: 1rem 0.95rem 0.95rem;
  }

  .services-home-journey,
  .services-journey-step,
  .services-home-detail-shell,
  .services-explorer-detail,
  .service-detail-block {
    padding-left: 0.88rem;
    padding-right: 0.88rem;
  }

  .services-home-pillar-toggle {
    font-size: 0.68rem;
  }

}

@media (prefers-reduced-motion: reduce) {
  .hero {
    min-height: 100svh;
  }

  .hero-inner {
    position: relative;
    top: auto;
  }

  .hero-layout {
    --hero-greeting-progress: 1 !important;
    --hero-greeting-blur-progress: 1 !important;
  }

  .hero-greeting-stage {
    position: static;
    width: min(78ch, 100%);
    margin: clamp(1.2rem, 5vh, 2.2rem) auto 0;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
    pointer-events: auto;
  }

  .scroll-indicator {
    animation: none;
  }

  .hero-layout[data-animate="true"] .hero-brand-logo,
  .hero-layout[data-animate="true"] .hero-copy {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
  }
}
