/* =============================================
   MASSIMO CRUZ PORTFOLIO — STYLESHEET
   Inspired by thieb.co:
   OLED black, absolute off-white, monochrome
   minimalism, fluid vw root scaling, word-mask
   text reveals, slide-out underline micro-animations.
   ============================================= */

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ---- FLUID ROOT SCALING (thieb.co technique) ----
   1rem = 0.5208333vw of viewport width at desktop.
   All layout/spacing in rem → scales proportionally.
   Mobile override at 768px. */
html {
  font-size: 0.56vw; /* increased root font size slightly */
  background: #000;
  color: #f2f2f2;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (max-width: 768px) {
  html { font-size: 10px; }
}

:root {
  /* OLED monochrome palette — thieb.co inspired */
  --bg:           #0d0d0c;  /* warm off-black */
  --bg-2:         #0d0d0c;
  --text:         #f3ede2;  /* rich warm creme */
  --text-half:    rgba(243,237,226,0.5);  /* secondary / metadata */
  --text-dim:     rgba(243,237,226,0.2);  /* dimmed nav links */
  --text-muted:   rgba(243,237,226,0.55);

  /* Accent — kept from previous: crimson red for headline */
  --red:          #d90429;

  /* Green kept only for interactive focus / email CTA */
  --green:        #2d6a4f;
  --green-light:  #52b788;

  /* Borders — razor thin line dividers using warm creme base */
  --border:       rgba(243,237,226,0.08);
  --border-mid:   rgba(243,237,226,0.12);

  /* Typography */
  --font-main:    'Italiana', sans-serif;
  --font-body:    'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --nav-h:        8rem;     /* ~64px at 1024px vw */
  --container:    241.5rem; /* ~1200px */
  --gutter:       5.6rem;

  /* Easing */
  --ease-reveal:  cubic-bezier(.215,.61,.355,1);   /* thieb.co spring */
  --ease-smooth:  cubic-bezier(0.4,0,0.2,1);
  --ease-spring:  cubic-bezier(0.16,1,0.3,1);
  --ease-underline: cubic-bezier(.645,.045,.355,1); /* thieb.co link */
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

a  { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---- CONTAINER ---- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---- SECTION PADDING (generous thieb.co-style spacing) ---- */
.section-pad { padding: 15rem 0; }

/* ---- UTILITY ---- */
.mt-btn { margin-top: 7rem; }

/* ---- RED ACCENT (flat, no glow) ---- */
.text-red {
  color: var(--red);
  -webkit-text-fill-color: var(--red);
}

/* ---- GRADIENT TEXT — now just green for selective use ---- */
.gradient-text {
  color: var(--green-light);
  -webkit-text-fill-color: var(--green-light);
}

/* ---- SECTION TAG pill ---- */
.section-tag {
  display: inline-block;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: var(--text-half);
  margin-bottom: 4rem;
}

/* ---- SECTION HEADER ---- */
.section-header {
  margin-bottom: 7rem;
}
.section-header .section-tag { display: block; }

/* ---- SECTION TITLE ---- */
.section-title {
  font-family: var(--font-main);
  font-size: 9.6rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: normal;
  margin-bottom: 3.2rem;
  text-wrap: balance;
}

.section-desc {
  font-size: 2.4rem;
  color: var(--text-muted);
  max-width: 80rem;
  line-height: 1.7;
  text-wrap: pretty;
}

/* =============================================
   WORD-MASK REVEAL SYSTEM (thieb.co)
   JS wraps heading words in .word-token spans
   inside .word-mask containers.
   Tokens start at translateY(100%) and animate to 0.
   ============================================= */
.word-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-top: 0.15em;
  padding-bottom: 0.15em;
  margin-top: -0.15em;
  margin-bottom: -0.15em;
  white-space: nowrap;
}
.word-token {
  display: inline-block;
  transform: translate3d(0, 105%, 0);
  transition-property: transform;
  transition-duration: 1.2s; /* slowed down from 0.9s for silkier flow */
  transition-timing-function: var(--ease-spring);
  will-change: transform;
  backface-visibility: hidden;
}
/* Space between words */
.word-mask + .word-mask { margin-left: 0.25em; }

/* When the heading gets .words-visible, all tokens slide up */
.words-visible .word-token {
  transform: translate3d(0, 0, 0);
}

/* Stagger each word token */
.words-visible .word-token:nth-child(1)  { transition-delay: 0ms; }
.words-visible .word-token:nth-child(2)  { transition-delay: 60ms; }
.words-visible .word-token:nth-child(3)  { transition-delay: 120ms; }
.words-visible .word-token:nth-child(4)  { transition-delay: 180ms; }
.words-visible .word-token:nth-child(5)  { transition-delay: 240ms; }
.words-visible .word-token:nth-child(6)  { transition-delay: 300ms; }
.words-visible .word-token:nth-child(7)  { transition-delay: 360ms; }
.words-visible .word-token:nth-child(8)  { transition-delay: 420ms; }
.words-visible .word-token:nth-child(9)  { transition-delay: 480ms; }
.words-visible .word-token:nth-child(10) { transition-delay: 540ms; }
.words-visible .word-token:nth-child(11) { transition-delay: 600ms; }
.words-visible .word-token:nth-child(12) { transition-delay: 660ms; }

/* =============================================
   REVEAL ANIMATIONS (for non-heading elements)
   ============================================= */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  will-change: transform, opacity;
  transition-property: opacity, transform;
  transition-duration: 1.1s; /* slowed down from 0.8s for visual comfort */
  transition-timing-function: var(--ease-spring);
}
.reveal-up    { transform: translate3d(0, 1.5rem, 0); } /* gentler slide (1.5rem vs 4rem) */
.reveal-left  { transform: translate3d(-2rem, 0, 0); } /* gentler slide (2rem vs 5rem) */
.reveal-right { transform: translate3d(2rem, 0, 0); } /* gentler slide (2rem vs 5rem) */

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}


/* Stagger service cards */
.services-grid .reveal-up:nth-child(1) { transition-delay: 0ms; }
.services-grid .reveal-up:nth-child(2) { transition-delay: 70ms; }
.services-grid .reveal-up:nth-child(3) { transition-delay: 140ms; }
.services-grid .reveal-up:nth-child(4) { transition-delay: 210ms; }
.services-grid .reveal-up:nth-child(5) { transition-delay: 280ms; }
.services-grid .reveal-up:nth-child(6) { transition-delay: 350ms; }

.timeline      .reveal-up:nth-child(1) { transition-delay: 0ms; }
.timeline      .reveal-up:nth-child(2) { transition-delay: 90ms; }
.timeline      .reveal-up:nth-child(3) { transition-delay: 180ms; }
.timeline      .reveal-up:nth-child(4) { transition-delay: 270ms; }

.edu-grid      .reveal-up:nth-child(1) { transition-delay: 0ms; }
.edu-grid      .reveal-up:nth-child(2) { transition-delay: 90ms; }
.edu-grid      .reveal-up:nth-child(3) { transition-delay: 180ms; }

.hero-content  .reveal-up:nth-child(1) { transition-delay: 0ms; }
.hero-content  .reveal-up:nth-child(2) { transition-delay: 90ms; }
.hero-content  .reveal-up:nth-child(3) { transition-delay: 180ms; }
.hero-content  .reveal-up:nth-child(4) { transition-delay: 270ms; }
.hero-content  .reveal-up:nth-child(5) { transition-delay: 360ms; }

/* =============================================
   LINK SLIDE-OUT UNDERLINE (thieb.co)
   ::before pseudo with scaleX 1→0 on hover.
   ============================================= */
.underline-link {
  display: inline-block;
  position: relative;
  vertical-align: top;
}
.underline-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(1);
  transform-origin: left;
  transition: transform 0.4s var(--ease-underline);
}
.underline-link:hover::before {
  transform: scaleX(0);
  transform-origin: right;
}

/* =============================================
   NAVIGATION
   ============================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition-property: background, backdrop-filter;
  transition-duration: 0.4s;
  transition-timing-function: var(--ease-smooth);
}
.navbar.scrolled {
  background: rgba(13,13,12,0.88);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-main);
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: normal;
  color: var(--text);
  transition-property: opacity;
  transition-duration: 0.4s;
  transition-timing-function: var(--ease-smooth);
}
.nav-logo:hover { opacity: 0.5; }
.logo-dot { color: var(--text); }

/* Nav links — baseline opacity 0.2, hover 1.0 */
.nav-links {
  display: flex;
  align-items: center;
  gap: 7rem;
}

/* When hovering the nav list, dim all siblings */
.nav-links:hover > li > a {
  opacity: 0.2;
}
.nav-links:hover > li > a:hover,
.nav-links > li > a.nav-active {
  opacity: 1;
}

.nav-links a {
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--text);
  opacity: 0.2;
  letter-spacing: 0.01em;
  transition-property: opacity;
  transition-duration: 0.4s;
  transition-timing-function: var(--ease-smooth);
  position: relative;
}
/* Slide-out underline on nav links */
.nav-links a::before {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-underline);
}
.nav-links a:hover::before,
.nav-links a.nav-active::before {
  transform: scaleX(1);
}
.nav-links a:hover::before {
  transform-origin: left;
}
.nav-links:hover a:hover::before {
  transform: scaleX(1);
}

.nav-cta {
  padding: 1.6rem 4rem !important;
  border: 1px solid var(--border-mid) !important;
  border-radius: 100px !important;
  color: var(--text) !important;
  opacity: 0.2 !important;
  font-weight: 500 !important;
  transition-property: opacity, border-color !important;
  transition-duration: 0.4s !important;
}
.nav-cta:hover {
  opacity: 1 !important;
  border-color: var(--text) !important;
}
.nav-cta::before { display: none !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.5rem;
  min-width: 8rem;
  min-height: 8rem;
  align-items: center;
  justify-content: center;
}
.hamburger span {
  display: block;
  width: 4rem;
  height: 1px;
  background: var(--text);
  transition-property: transform, opacity;
  transition-duration: 0.3s;
  transition-timing-function: var(--ease-spring);
}
.hamburger.open span:nth-child(1) { transform: translateY(1rem) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-1rem) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0; bottom: 0;
  background: rgba(13,13,12,0.97);
  backdrop-filter: blur(24px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition-property: opacity;
  transition-duration: 0.3s;
  transition-timing-function: var(--ease-smooth);
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6rem;
}
.mobile-menu a {
  font-size: 6rem;
  font-weight: 700;
  letter-spacing: normal;
  color: var(--text);
  opacity: 0.5;
  transition-property: opacity;
  transition-duration: 0.3s;
}
.mobile-menu a:hover { opacity: 1; }

/* =============================================
   BUTTONS — thin, borderline minimalist
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 1.6rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.8rem;
  padding: 1.8rem 4.5rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  min-height: 7rem;
  transition-property: opacity, border-color, color, transform;
  transition-duration: 0.4s;
  transition-timing-function: var(--ease-smooth);
  white-space: nowrap;
  letter-spacing: 0.02em;
  color: var(--text);
}
.btn:active { transform: scale(0.96); } /* tactile press feedback */

.btn-primary {
  background: transparent;
  border-color: var(--text);
  color: var(--text);
}
.btn-primary:hover { opacity: 0.6; }

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

.btn-sm { padding: 1.4rem 3.5rem; font-size: 1.6rem; min-height: 6rem; }
.btn-lg { padding: 2.2rem 6rem; font-size: 2rem; }

.btn svg { flex-shrink: 0; }

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: var(--nav-h) 0 10rem;
}

/* Remove old glow/grid decorations — hidden via CSS */
.hero-bg-grid,
.hero-glow { display: none; }

.hero-content {
  position: relative;
  max-width: 200rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
  text-align: center;
  transform: translate3d(0, 0, 0); /* GPU compositing layer */
}

/* Hero badge — minimal pill */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 1.4rem;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: var(--text-half);
  border: 1px solid var(--border);
  padding: 1.2rem 3rem;
  border-radius: 100px;
  margin-bottom: 4rem;
}
.hero-badge::before {
  content: '';
  width: 1.2rem; height: 1.2rem;
  border-radius: 50%;
  background: var(--green-light);
  animation: pulse-dot 2.2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.65); }
}

/* Main headline — very large, tight tracking */
.hero-headline {
  font-family: var(--font-main);
  font-size: 16rem;
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: normal;
  margin-bottom: 6rem;
  color: var(--text);
  text-wrap: balance;
}

.hero-sub {
  font-family: var(--font-main);
  font-size: 3rem;
  color: var(--text-half);
  font-weight: 400;
  margin-bottom: 5rem;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  text-wrap: pretty;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-bottom: 8rem;
}

/* Stats — tabular-nums, minimal */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 4rem;
  max-width: 120rem;
  margin: 0 auto;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}
.stat-num {
  font-family: var(--font-main);
  font-size: 5rem;
  font-weight: 700;
  letter-spacing: normal;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-size: 1.6rem;
  color: var(--text-half);
  font-weight: 400;
  letter-spacing: 0.03em;
}
.stat-divider {
  width: 1px;
  height: 8rem;
  background: var(--border);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  font-size: 1.3rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.scroll-line {
  width: 1px;
  height: 8rem;
  background: linear-gradient(to bottom, var(--text-half), transparent);
  animation: scroll-fade 2s ease infinite;
}
@keyframes scroll-fade {
  0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
  45%  { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(0.2); transform-origin: bottom; }
}

/* =============================================
   SERVICES
   Two-column layout: 2/3 content (left), 1/3 metadata (right)
   No card shadows, no backgrounds — flat lines only
   ============================================= */
.services {
  border-top: 1px solid var(--border);
}

.services-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr; /* Enlarged metadata sidebar column */
  gap: 15rem;
  align-items: start;
}

.services-meta {
  grid-column: 2; /* Visual swap to the right */
  position: sticky;
  top: 50vh;
  transform: translateY(-50%);
  padding: 4rem 3rem;
  border: 3px solid var(--cream);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.services-meta .section-tag { display: block; margin-bottom: 3rem; }
.services-meta .section-title {
  font-size: 6rem;
  margin-bottom: 3rem;
}
.services-meta .section-desc { font-size: 2rem; max-width: none; }

.services-list {
  grid-column: 1; /* Visual swap to the left */
  grid-row: 1;
  display: flex;
  flex-direction: column;
}

/* Services Meta Sticky Image */
.services-meta-img-wrapper {
  margin-top: 5rem;
  width: 100%;
  max-width: 44rem; /* Small-medium size container */
  border: 1px solid var(--border);
  background: rgba(243, 237, 226, 0.02);
  overflow: hidden;
}
.services-meta-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  filter: grayscale(100%);
  opacity: 0.65;
  transition: opacity 0.4s var(--ease-spring), transform 0.4s var(--ease-spring);
  will-change: transform, opacity;
}
.services-meta-img-wrapper:hover .services-meta-img {
  opacity: 0.95;
  transform: scale(1.03);
}

/* Flat service cards — border dividers only */
.service-card {
  border-top: 1px solid var(--border);
  padding: 6rem 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem 6rem;
  align-items: start;
  transition-property: border-color;
  transition-duration: 0.3s;
  transition-timing-function: var(--ease-smooth);
  /* Remove old card styles */
  background: none;
  border-radius: 0;
  box-shadow: none;
  background-image: none;
}
.service-card:last-child { border-bottom: 1px solid var(--border); }
.service-card:hover { border-color: var(--border-mid); }

/* Hide old card-glow since we removed shadow cards */
.card-glow { display: none; }

.card-main { grid-column: 1; }

.card-icon {
  width: 7rem; height: 7rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-half);
  flex-shrink: 0;
  margin-bottom: 3rem;
  transition-property: border-color, color;
  transition-duration: 0.3s;
}
.service-card:hover .card-icon {
  border-color: var(--text-half);
  color: var(--text);
}

.card-title {
  font-family: var(--font-main);
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 2rem;
  text-wrap: balance;
}

.card-desc {
  font-size: 1.8rem;
  color: var(--text-half);
  line-height: 1.7;
  text-wrap: pretty;
}

.card-tag {
  display: inline-block;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-half);
  opacity: 0.5;
  border: 1px solid var(--border);
  padding: 0.8rem 2rem;
  border-radius: 100px;
  width: fit-content;
  margin-top: 3rem;
  white-space: nowrap;
  align-self: start;
}

/* Featured badge — flat text label */
.featured-badge {
  display: inline-block;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-half);
  margin-bottom: 1.5rem;
}

/* CTA card — same flat style */
.service-cta-card { align-items: center; }
.service-cta-card h3 {
  font-family: var(--font-main);
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: normal;
  text-wrap: balance;
  margin-bottom: 1.5rem;
}
.service-cta-card p {
  font-size: 1.8rem;
  color: var(--text-half);
  text-wrap: pretty;
  margin-bottom: 3rem;
}

/* =============================================
   ABOUT — two-column: text left, metadata right
   ============================================= */
.about {
  border-top: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 15rem;
  align-items: start;
}

/* Image column — simple, no frame/glow */
.about-image-col {
  position: relative;
  order: 1;
}
.about-img-wrapper {
  position: relative;
  width: 100%;
  max-width: 60rem;
}
.about-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 0;
  outline: none;
}
/* Remove decorative frame & badge */
.about-img-frame { display: none; }
.about-img-badge { display: none; }

/* Text block — main 2/3 */
.about-text-col {
  display: flex;
  flex-direction: column;
  order: -1; /* Text first on desktop */
}

.about-bio {
  font-size: 2.8rem;
  color: var(--text-half);
  line-height: 1.65;
  margin-bottom: 4rem;
  text-wrap: pretty;
}

/* Pillars — flat, border-only rows */
.about-pillars {
  display: flex;
  flex-direction: column;
  margin-top: 6rem;
  border-top: 1px solid var(--border);
}
.pillar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  text-align: center;
  gap: 1.5rem;
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--border);
  transition-property: border-color, transform, opacity;
  transition-duration: 0.3s;
  background: none;
  box-shadow: none;
  border-radius: 0;
}
.pillar:hover { border-bottom-color: var(--border-mid); }
.pillar strong {
  font-family: var(--font-main);
  font-size: 4.6rem;
  font-weight: 700;
  letter-spacing: normal;
  color: var(--text);
  line-height: 1.1;
}
.pillar .colon {
  font-size: 4rem;
  color: rgba(242, 242, 242, 0.3);
  font-weight: 400;
}
.pillar span:not(.colon) {
  font-size: 3.8rem;
  color: var(--text-half);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: normal;
}

/* About aside metadata (right column) */
.about-aside {
  padding-top: 2rem;
}
.about-aside-grid {
  margin-top: 7rem;
}
.about-aside-section {
  margin-bottom: 7rem;
}
.about-aside-section:first-child { margin-top: 0; }
.about-aside-title {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: var(--text-half);
  margin-bottom: 2.5rem;
  opacity: 0.5;
}
.about-aside-desc {
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--text-half);
}

/* =============================================
   EXPERIENCE TIMELINE — flat list style
   ============================================= */
.experience {
  border-top: 1px solid var(--border);
}

.experience-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 15rem;
  align-items: start;
}
.experience-meta {
  grid-column: 2; /* Visual swap to the right */
}
.experience-meta .section-tag { display: block; margin-bottom: 3rem; }
.experience-meta .section-title { font-size: 6rem; margin-bottom: 0; }

.timeline {
  grid-column: 1; /* Visual swap to the left */
  grid-row: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: none;
  margin: 0;
}

.timeline-item {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
  transition-property: border-color;
  transition-duration: 0.3s;
}
.timeline-item:first-child { border-top: 1px solid var(--border); }
.timeline-item:hover { border-bottom-color: var(--border-mid); }

/* Remove dot/line chrome */
.timeline-dot,
.timeline-line { display: none; }

.timeline-card {
  background: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  background-image: none;
}
.timeline-card:hover {
  box-shadow: none;
  transform: none;
}

.timeline-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

.timeline-role {
  font-family: var(--font-main);
  font-size: 2.8rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.8rem;
  letter-spacing: normal;
}

.timeline-company {
  font-size: 1.8rem;
  color: var(--text-half);
}

.timeline-period {
  font-family: var(--font-body);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--text-half);
  white-space: nowrap;
  background: none;
  padding: 0;
  border-radius: 0;
  border: none;
  margin-top: 0.4rem;
  font-variant-numeric: tabular-nums;
  opacity: 0.5;
}

.timeline-tag {
  display: inline-block;
  margin-top: 2rem;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.6rem 1.8rem;
  border-radius: 100px;
  border: 1px solid var(--border);
}
.timeline-tag.current {
  color: var(--text-half);
  background: none;
}
.timeline-tag.founder {
  color: var(--text-half);
  background: none;
}

/* =============================================
   EDUCATION
   ============================================= */
.education {
  border-top: 1px solid var(--border);
}

.education-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 15rem;
  align-items: start;
}
.education-meta {
  grid-column: 2; /* Visual swap to the right */
}
.education-meta .section-tag { display: block; margin-bottom: 3rem; }
.education-meta .section-title { font-size: 6rem; margin-bottom: 0; }

.edu-grid {
  grid-column: 1; /* Visual swap to the left */
  grid-row: 1;
  display: flex;
  flex-direction: column;
  max-width: none;
  margin: 0;
}

.edu-card {
  background: none;
  box-shadow: none;
  border-radius: 0;
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  background-image: none;
  transition-property: border-color;
  transition-duration: 0.25s;
}
.edu-card:first-child { border-top: 1px solid var(--border); }
.edu-card:hover {
  box-shadow: none;
  transform: none;
  border-bottom-color: var(--border-mid);
}

/* Icon hidden in flat mode */
.edu-icon { display: none; }

.edu-body { flex: 1; }
.edu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 0;
}
.edu-institution {
  font-family: var(--font-main);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.6rem;
  letter-spacing: normal;
}
.edu-degree {
  font-size: 1.6rem;
  color: var(--text-half);
}
.edu-period {
  font-family: var(--font-body);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--text-half);
  white-space: nowrap;
  background: none;
  padding: 0;
  border-radius: 0;
  height: auto;
  font-variant-numeric: tabular-nums;
  opacity: 0.5;
}
.edu-badge {
  display: inline-block;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.6rem 1.8rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--text-half);
  background: none;
  white-space: nowrap;
}
.edu-badges {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}
.edu-badge.honor,
.edu-badge.award,
.edu-badge.degree,
.edu-badge.fun {
  color: var(--text-half);
  background: none;
  border-color: var(--border);
}

/* =============================================
   CONTACT
   ============================================= */
.contact {
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

/* Remove old glow */
.contact-bg-glow { display: none; }
.contact::before { display: none; }

.contact-inner {
  max-width: 160rem;
  margin: 0 auto;
  text-align: center;
  position: relative;
  transform: translate3d(0, 0, 0); /* GPU compositing layer */
}

.contact-title {
  font-family: var(--font-main);
  font-size: 12rem;
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: normal;
  margin-bottom: 5rem;
  text-wrap: balance;
}

.contact-sub {
  font-size: 2.4rem;
  color: var(--text-half);
  margin-bottom: 10rem;
  text-wrap: pretty;
  line-height: 1.7;
}

.contact-email-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-bottom: 5rem;
}

/* Email link — with slide-out underline */
.contact-email-link {
  font-family: var(--font-main);
  font-size: 3rem;
  font-weight: 500;
  color: var(--text);
  display: inline-block;
  position: relative;
  padding-bottom: 0.4rem;
  border-bottom: none;
  transition-property: opacity;
  transition-duration: 0.3s;
}
.contact-email-link::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(1);
  transform-origin: left;
  transition: transform 0.4s var(--ease-underline);
}
.contact-email-link:hover::before {
  transform: scaleX(0);
  transform-origin: right;
}

.contact-divider {
  font-size: 1.6rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  margin-bottom: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
}
.contact-divider::before,
.contact-divider::after {
  content: '';
  display: inline-block;
  width: 14rem;
  height: 1px;
  background: var(--border);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  border-top: 1px solid var(--border);
  padding: 6rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3rem;
}
.footer-copy {
  font-size: 1.6rem;
  color: var(--text-dim);
}
.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--text-half);
  min-height: 7rem;
  padding: 0 1rem;
  transition-property: opacity;
  transition-duration: 0.3s;
}
.back-to-top:hover { opacity: 0.5; }

/* =============================================
   TOAST
   ============================================= */
.toast {
  position: fixed;
  bottom: 6rem;
  left: 50%;
  transform: translateX(-50%) translateY(2rem);
  background: #111;
  border: 1px solid var(--border-mid);
  color: var(--text);
  font-family: var(--font-main);
  font-size: 1.6rem;
  font-weight: 500;
  padding: 2rem 5rem;
  border-radius: 100px;
  opacity: 0;
  pointer-events: none;
  transition-property: opacity, transform;
  transition-duration: 0.3s;
  transition-timing-function: var(--ease-spring);
  z-index: 9999;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* =============================================
   FOCUS STYLES (WCAG)
   ============================================= */
:focus-visible {
  outline: 2px solid var(--text-half);
  outline-offset: 3px;
  border-radius: 2px;
}

/* =============================================
   REDUCED MOTION
   ============================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .word-token { transform: translateY(0) !important; }
  .reveal-up, .reveal-left, .reveal-right {
    opacity: 1;
    transform: none;
  }
}

/* =============================================
   CARD CHAPTER LINK
   ============================================= */
.card-chapter-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 2.8rem;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-half);
  transition-property: color, opacity;
  transition-duration: 0.3s;
  transition-timing-function: var(--ease-smooth);
  position: relative;
}
.card-chapter-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-underline);
}
.service-card:hover .card-chapter-link,
.card-chapter-link:hover {
  color: var(--text);
}
.service-card:hover .card-chapter-link::after,
.card-chapter-link:hover::after {
  transform: scaleX(1);
}

/* CTA card dual-button row */
.cta-card-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

/* =============================================
   EDITORIAL CHAPTERS NAV SECTION
   ============================================= */
.chapters-nav {
  border-top: 1px solid var(--border);
}
.chapters-header {
  margin-bottom: 12rem;
}
.chapters-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
.chapter-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 4rem;
  padding: 6rem 0;
  border-top: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition-property: border-color;
  transition-duration: 0.3s;
  transition-timing-function: var(--ease-smooth);
}
.chapters-grid .chapter-card:nth-child(odd)  { padding-right: 8rem; border-right: 1px solid var(--border); }
.chapters-grid .chapter-card:nth-child(even) { padding-left: 8rem; }
.chapters-grid .chapter-card:nth-child(3),
.chapters-grid .chapter-card:nth-child(4)   { border-bottom: 1px solid var(--border); }
.chapter-card:hover { border-color: var(--border-mid); }

.chapter-num {
  font-family: var(--font-main);
  font-size: 8rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text-dim);
  letter-spacing: -0.02em;
  padding-top: 0.4rem;
  font-variant-numeric: tabular-nums;
  transition-property: color;
  transition-duration: 0.3s;
}
.chapter-card:hover .chapter-num { color: var(--text-half); }

.chapter-body { flex: 1; }
.chapter-title {
  font-family: var(--font-main);
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.6rem;
  line-height: 1.2;
  text-wrap: balance;
}
.chapter-desc {
  font-size: 1.7rem;
  color: var(--text-half);
  line-height: 1.65;
  text-wrap: pretty;
}
.chapter-arrow {
  font-size: 2.4rem;
  color: var(--text-dim);
  transition-property: color, transform;
  transition-duration: 0.3s;
  transition-timing-function: var(--ease-spring);
  padding-top: 0.2rem;
  align-self: center;
}
.chapter-card:hover .chapter-arrow {
  color: var(--text);
  transform: translate3d(0.8rem, 0, 0);
}

/* =============================================
   ROI PREVIEW CALCULATOR
   ============================================= */
.roi-preview {
  border-top: 1px solid var(--border);
}
.roi-header {
  margin-bottom: 12rem;
}
.roi-calculator {
  width: 100%;
  max-width: 192rem;
  margin: 0 auto;
}

/* Slider groups */
.roi-sliders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8rem;
  margin-bottom: 10rem;
}
.roi-slider-group { display: flex; flex-direction: column; gap: 2rem; }
.roi-slider-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
}
.roi-label {
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--text-half);
  letter-spacing: 0.01em;
}
.roi-slider-value {
  font-family: var(--font-body);
  font-size: 4rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.roi-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 1.4rem;
  color: var(--text-dim);
  letter-spacing: 0.03em;
  margin-top: 0.8rem;
}

/* Custom range input — cream/off-black scheme */
.roi-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 1px;
  background: var(--border-mid);
  outline: none;
  cursor: ew-resize;
  border-radius: 0;
  transition-property: background;
  transition-duration: 0.3s;
  padding: 1.5rem 0;
  background-clip: content-box;
}
.roi-range:focus-visible {
  outline: 2px solid var(--text-half);
  outline-offset: 6px;
  border-radius: 2px;
}

/* Webkit thumb */
.roi-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--text);
  border: none;
  cursor: ew-resize;
  transition-property: transform, background;
  transition-duration: 0.2s;
  transition-timing-function: var(--ease-spring);
  box-shadow: 0 0 0 4px rgba(243,237,226,0.08);
}
.roi-range::-webkit-slider-thumb:hover,
.roi-range:active::-webkit-slider-thumb {
  transform: scale(1.3);
  background: var(--text);
  box-shadow: 0 0 0 6px rgba(243,237,226,0.12);
}

/* Firefox thumb */
.roi-range::-moz-range-thumb {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--text);
  border: none;
  cursor: ew-resize;
  transition: transform 0.2s var(--ease-spring);
}
.roi-range::-moz-range-thumb:hover { transform: scale(1.3); }

/* Filled track (Webkit) */
.roi-range::-webkit-slider-runnable-track {
  height: 1px;
  border-radius: 0;
  background: linear-gradient(
    to right,
    var(--text-half) var(--roi-pct, 0%),
    var(--border-mid) var(--roi-pct, 0%)
  );
}

/* Output panel */
.roi-output {
  border-top: 1px solid var(--border);
  padding-top: 8rem;
}
.roi-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}
.roi-stat {
  border: 1px solid var(--border);
  background: rgba(243,237,226,0.01);
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  text-align: center;
  min-width: 0;
  transition: border-color 0.3s;
}
.roi-stat:hover {
  border-color: var(--border-mid);
}

.roi-stat-label {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.roi-stat-num {
  font-family: var(--font-main);
  font-size: clamp(3.2rem, 3.5vw, 5.5rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  transition-property: color;
  transition-duration: 0.15s;
  white-space: nowrap;
}
.roi-stat-divider {
  display: none;
}
.roi-footnote {
  font-size: 1.9rem;
  color: rgba(243,237,226,0.55);
  line-height: 1.75;
  max-width: 90rem;
}
.roi-deep-link {
  color: var(--text-half);
  border-bottom: 1px solid rgba(243,237,226,0.25);
  padding-bottom: 0.2rem;
  font-size: 1.9rem;
  font-weight: 500;
  transition-property: color, border-color;
  transition-duration: 0.3s;
}
.roi-deep-link:hover {
  color: var(--text);
  border-color: var(--text-half);
}

/* =============================================
   FOOTER CHAPTER NAV
   ============================================= */
.footer-chapters {
  display: flex;
  align-items: center;
  gap: 4rem;
  flex-wrap: wrap;
}
.footer-chapters a {
  font-size: 1.5rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  transition-property: color;
  transition-duration: 0.3s;
}
.footer-chapters a:hover { color: var(--text-half); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .services-layout,
  .about-grid,
  .experience-layout,
  .education-layout {
    grid-template-columns: 1fr;
    gap: 10rem;
  }
  .services-meta,
  .experience-meta,
  .education-meta {
    position: static;
    grid-column: auto;
  }
  .services-list,
  .timeline,
  .edu-grid {
    grid-column: auto;
    grid-row: auto;
  }
  .about-text-col { order: 1; }
  .about-image-col { order: -1; }
  .hero-headline { font-size: 6.5rem !important; }
  .section-title { font-size: 4.8rem !important; }

  /* Chapters: 1 column on tablet */
  .chapters-grid { grid-template-columns: 1fr; }
  .chapters-grid .chapter-card:nth-child(odd)  { padding-right: 0; border-right: none; }
  .chapters-grid .chapter-card:nth-child(even) { padding-left: 0; }
  .chapters-grid .chapter-card:nth-child(3),
  .chapters-grid .chapter-card:nth-child(4)   { border-bottom: none; }
  .chapters-grid .chapter-card { border-bottom: 1px solid var(--border); }

  .roi-sliders { grid-template-columns: 1fr; gap: 6rem; }
  .roi-stat-row { grid-template-columns: 1fr; gap: 3rem; }
  .roi-stat { padding: 4rem 3rem; }
  .roi-stat-divider { display: none; }
}

@media (max-width: 768px) {
  :root { --nav-h: 8rem; --gutter: 2rem; }
  .section-pad { padding: 8rem 0; }
  .hero { padding: var(--nav-h) 0 6rem; }
  .section-header { margin-bottom: 4rem; }

  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero-headline { font-size: clamp(2.8rem, 6vw, 4rem) !important; line-height: 1.08; }
  .hero-sub { font-size: 1.9rem; line-height: 1.6; }
  .hero-stats { gap: 3.5rem; flex-wrap: wrap; }
  .stat-num { font-size: 3.6rem; }
  .scroll-indicator { display: none; }

  .services-meta,
  .experience-meta,
  .education-meta {
    border-bottom: 1px solid var(--border);
    padding-bottom: 5rem;
    margin-bottom: 5rem;
    width: 100%;
  }

  .services-meta-img-wrapper {
    margin: 6rem -4rem 0 !important; /* breakout of container padding on mobile */
    width: calc(100% + 8rem) !important;
    max-width: none !important;
    border-left: none !important;
    border-right: none !important;
    border-top: 1px solid var(--border) !important;
    border-bottom: 1px solid var(--border) !important;
    background: rgba(243, 237, 226, 0.01) !important;
    padding: 6rem 4rem !important;
    display: flex !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }
  
  .services-meta-img {
    max-width: 32rem !important;
    width: 100% !important;
    margin: 0 auto !important;
    border-radius: 50% !important;
    aspect-ratio: 1/1 !important;
    border: 1px solid var(--border-mid) !important;
    opacity: 0.85 !important;
  }

  .about-aside {
    padding-top: 6rem !important;
    width: 100% !important;
    border-top: 1px solid var(--border) !important;
    margin-top: 6rem !important;
  }
  .about-image-col {
    margin-bottom: 6rem !important;
    display: flex !important;
    justify-content: center !important;
  }
  .about-img-wrapper {
    max-width: 24rem !important;
    width: 100% !important;
    margin: 0 auto !important;
  }
  .about-img {
    aspect-ratio: 3/4 !important;
    border: 1px solid var(--border-mid) !important;
    opacity: 0.9 !important;
  }
  .about-aside-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    text-align: left !important;
    border-top: none !important;
    padding-top: 0 !important;
    margin-top: 4rem !important;
  }
  .about-aside-section {
    padding: 2.5rem !important;
    border: 1px solid var(--border) !important;
    border-radius: 8px !important;
    background: rgba(243, 237, 226, 0.01) !important;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
  }
  .about-aside-title {
    margin-bottom: 1rem !important;
    font-size: 1.5rem !important;
  }
  .about-aside-desc {
    font-size: 1.4rem !important;
    line-height: 1.5 !important;
  }

  .section-desc {
    font-size: 1.8rem !important;
    line-height: 1.65 !important;
  }
  .about-bio {
    font-size: 2rem !important;
    line-height: 1.6 !important;
  }

  .services-meta .section-title,
  .experience-meta .section-title,
  .education-meta .section-title,
  .section-title {
    font-size: 3.2rem !important;
    line-height: 1.15;
    text-wrap: balance;
  }

  .services-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem !important;
  }

  .service-card {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 2.5rem !important;
    border: 1px solid var(--border) !important;
    border-radius: 8px !important;
    background: rgba(243, 237, 226, 0.01) !important;
    margin-bottom: 0 !important;
  }

  .timeline {
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem !important;
  }

  .timeline-item {
    padding: 3rem 2.5rem !important;
    border: 1px solid var(--border) !important;
    border-radius: 8px !important;
    background: rgba(243, 237, 226, 0.01) !important;
    margin-bottom: 0 !important;
    border-top: 1px solid var(--border) !important;
  }

  .edu-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem !important;
  }

  .edu-card {
    padding: 3rem 2.5rem !important;
    border: 1px solid var(--border) !important;
    border-radius: 8px !important;
    background: rgba(243, 237, 226, 0.01) !important;
    margin-bottom: 0 !important;
    border-top: 1px solid var(--border) !important;
  }
  .card-desc {
    font-size: 1.6rem !important;
    line-height: 1.65 !important;
  }
  .card-tag {
    margin-top: 1.5rem;
  }

  .edu-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
  .edu-period {
    margin-top: 0.4rem;
  }

  .contact-title {
    font-size: 3.2rem !important;
    line-height: 1.15;
  }
  .contact-email-link {
    font-size: 1.8rem;
    word-break: break-all;
  }
  .contact-sub { font-size: 1.8rem !important; }

  .hero-actions { flex-direction: column; align-items: center; }
  .stat-divider { display: none; }

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

  .roi-stat-num { font-size: 3.6rem; }
  .roi-slider-value { font-size: 2.6rem; }
  .chapter-num { font-size: 4.5rem; }
  .cta-card-actions { flex-direction: column; align-items: flex-start; }

  /* Mobile menu text size */
  .mobile-menu a { font-size: 4.5rem; }
  .mobile-menu ul { gap: 4rem; }


  /* About pillars */
  .pillar strong { font-size: 3.8rem; }
  .pillar span:not(.colon) { font-size: 3rem; }

  /* ROI section */
  .roi-sliders { grid-template-columns: 1fr; gap: 5rem; }
  .roi-stat-row { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .roi-stat { padding: 3rem 2.5rem; }
  .output-revenue-row { grid-template-columns: 1fr; }

  /* Chapters nav */
  .chapters-grid { grid-template-columns: 1fr; }
  .chapters-grid .chapter-card:nth-child(odd) { padding-right: 0; border-right: none; }
  .chapters-grid .chapter-card:nth-child(even) { padding-left: 0; }
  .chapters-grid .chapter-card { border-bottom: 1px solid var(--border); }
  .chapters-grid .chapter-card:last-child { border-bottom: none; }
}

@media (max-width: 480px) {
  :root { --gutter: 1.6rem; }
  .hero-headline { font-size: clamp(2.2rem, 6.5vw, 2.8rem) !important; line-height: 1.15; }
  .services-meta .section-title,
  .experience-meta .section-title,
  .education-meta .section-title,
  .section-title {
    font-size: 2.8rem !important;
    line-height: 1.2;
  }
  .contact-title {
    font-size: 2.8rem !important;
    line-height: 1.2;
  }
  .hero-badge { font-size: 1.3rem; padding: 1rem 2.2rem; }
  .btn { justify-content: center; font-size: 1.6rem; padding: 1.6rem 3.5rem; }
  .hero-sub { font-size: 1.7rem; }
  .section-pad { padding: 5rem 0; }
  .hero { padding: var(--nav-h) 0 4rem; }
  .roi-stat-row { grid-template-columns: 1fr; }
  .roi-stat-num { font-size: 3rem; }
  .pillar strong { font-size: 3.2rem; }
  .pillar span:not(.colon) { font-size: 2.6rem; }
  .chapter-num { font-size: 3.8rem; }
  .about-aside-grid {
    grid-template-columns: 1fr !important;
  }
}
