/* ════════════════════════════════════════════════
   CUSTOM PROPERTIES — Design Tokens
════════════════════════════════════════════════ */
:root {
  /* Colors */
  --c-bg:          #F8F5F0;
  --c-surface:     #EDE9E3;
  --c-surface-2:   #E0DBD4;
  --c-gold:        #A8742A;
  --c-gold-light:  #C9943B;
  --c-gold-dim:    rgba(168,116,42,0.12);
  --c-gold-border: rgba(168,116,42,0.25);
  --c-text:        #1A1714;
  --c-text-muted:  #6B635A;
  --c-text-faint:  #9E958C;

  /* Typography */
  --f-serif:  'Cormorant Garamond', Georgia, serif;
  --f-sans:   'Raleway', system-ui, sans-serif;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  7rem;

  /* Transitions */
  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
  --trans:     0.35s var(--ease);

  /* Border radius */
  --r-sm:  4px;
  --r-md:  8px;
  --r-lg:  16px;
}

/* ════════════════════════════════════════════════
   DARK THEME OVERRIDES
════════════════════════════════════════════════ */
[data-theme="dark"] {
  --c-bg:          #0A0A0A;
  --c-surface:     #141414;
  --c-surface-2:   #1C1C1C;
  --c-gold:        #C9A84C;
  --c-gold-light:  #E2C97E;
  --c-gold-dim:    rgba(201,168,76,0.15);
  --c-gold-border: rgba(201,168,76,0.25);
  --c-text:        #F5F5F0;
  --c-text-muted:  #888888;
  --c-text-faint:  #444444;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-sans);
  font-weight: 300;
  line-height: 1.75;
  overflow-x: hidden;
  cursor: none; /* replaced by custom cursor */
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a, button {
  touch-action: manipulation; /* prevent double-tap zoom on mobile */
}

/* Restore default cursor for touch/small devices */
@media (hover: none) {
  body { cursor: auto; }
  .cursor, .cursor-follower { display: none; }
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

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

ul { list-style: none; }

/* ════════════════════════════════════════════════
   CUSTOM CURSOR
════════════════════════════════════════════════ */
.cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--c-gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.15s var(--ease), height 0.15s var(--ease), opacity 0.15s;
  will-change: transform;
}

.cursor-follower {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1px solid var(--c-gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.12s var(--ease), width 0.25s var(--ease), height 0.25s var(--ease), opacity 0.25s;
  will-change: transform;
  opacity: 0.6;
}

body:has(a:hover) .cursor-follower,
body:has(button:hover) .cursor-follower {
  width: 56px;
  height: 56px;
  opacity: 0.3;
}

/* ════════════════════════════════════════════════
   LAYOUT HELPERS
════════════════════════════════════════════════ */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.section {
  padding-block: var(--space-xl);
}

.section--dark {
  background-color: var(--c-surface);
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section__eyebrow {
  display: inline-block;
  font-family: var(--f-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: var(--space-xs);
}

.section__title {
  font-family: var(--f-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--c-text);
}

.gold-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-gold), transparent);
  margin-top: var(--space-sm);
}

.gold-line--center {
  margin-inline: auto;
}

/* Theme toggle button */
.theme-toggle {
  background: none;
  border: 1px solid var(--c-gold-border);
  border-radius: 100px;
  cursor: pointer;
  width: 52px;
  height: 28px;
  position: relative;
  display: flex;
  align-items: center;
  padding: 3px;
  transition: border-color var(--trans), background var(--trans);
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--c-gold);
}

.theme-toggle__track {
  position: absolute;
  inset: 0;
  border-radius: 100px;
  background: var(--c-surface-2);
  transition: background var(--trans);
}

.theme-toggle__thumb {
  position: relative;
  z-index: 1;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--c-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: var(--c-bg);
  transition: transform var(--trans), background var(--trans), color var(--trans);
  transform: translateX(0);
  will-change: transform;
}

[data-theme="dark"] .theme-toggle__thumb {
  transform: translateX(24px);
}

[data-theme="dark"] .nav.scrolled {
  background: rgba(10, 10, 10, 0.72);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

/* ════════════════════════════════════════════════
   NAVIGATION
════════════════════════════════════════════════ */
.nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem var(--space-md);
  transition: background var(--trans), border-color var(--trans), padding var(--trans), backdrop-filter var(--trans);
}

.nav.scrolled {
  background: rgba(248, 245, 240, 0.72);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-bottom: 1px solid rgba(168,116,42,0.18);
  box-shadow: 0 4px 24px rgba(168,116,42,0.08), inset 0 -1px 0 rgba(255,255,255,0.6);
  padding-block: 1rem;
}

.nav__logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav__logo-name {
  font-family: var(--f-serif);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--c-text);
}

.nav__logo-title {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--c-gold);
}

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

.nav__link {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  transition: color var(--trans);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--c-gold);
  transition: width var(--trans);
}

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

.nav__link:hover::after {
  width: 100%;
}

.nav__theme-item {
  display: none; /* shown only on mobile via media query */
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--c-text);
  transition: transform var(--trans), opacity var(--trans), background var(--trans);
}

.nav__hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); background: var(--c-gold); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); background: var(--c-gold); }

/* Mobile nav */
@media (max-width: 768px) {
  .nav__hamburger { display: flex; }
  .nav__right { gap: 0.5rem; }

  /* Hide desktop-only toggle on mobile */
  .theme-toggle--desktop { display: none; }

  /* Show theme row inside the slide-out panel */
  .nav__theme-item { display: flex; }

  .nav__links {
    position: fixed;
    inset-block: 0;
    inset-inline-end: 0;
    width: min(320px, 80vw);
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    background: var(--c-surface);
    border-left: 1px solid var(--c-gold-border);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    padding: var(--space-lg);
  }

  .nav__links.open {
    transform: translateX(0);
  }

  .nav__link {
    font-size: 0.85rem;
    color: var(--c-text);
  }

  /* Theme toggle row inside mobile menu */
  .nav__theme-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--c-gold-border);
    margin-top: -0.5rem;
  }

  .nav__theme-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--c-text-muted);
  }
}

/* ════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Architectural grid background */
.hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  z-index: 0;
}

.hero__bg-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 70% at 50% 50%, transparent 40%, var(--c-bg) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-inline: var(--space-md);
  max-width: 860px;
}

.hero__eyebrow {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: var(--space-sm);
}

.hero__name {
  font-family: 'Cinzel', Georgia, serif;
  font-size: clamp(1.8rem, 4.5vw, 4rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--c-gold) 0%, var(--c-gold-light) 45%, var(--c-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
}

.hero__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.hero__divider span {
  display: block;
  width: 100px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-gold), transparent);
}

.hero__title {
  font-family: var(--f-sans);
  font-size: clamp(0.7rem, 1.8vw, 0.9rem);
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-gold-light);
  margin-bottom: 1.5rem;
}

.hero__tagline {
  font-family: var(--f-serif);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 300;
  font-style: italic;
  color: var(--c-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.hero__cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 1;
}

.hero__scroll-hint span {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-text-faint);
}

.hero__scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--c-gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(0.7); }
}

/* ════════════════════════════════════════════════
   ABOUT
════════════════════════════════════════════════ */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.about__text .section__title {
  text-align: left;
  margin-bottom: var(--space-sm);
}

.about__bio {
  color: var(--c-text-muted);
  font-size: 0.95rem;
  line-height: 1.9;
  margin-bottom: 1.2rem;
}

.about__stats {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
  flex-wrap: wrap;
}

.stat__number {
  display: block;
  font-family: var(--f-serif);
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--c-gold);
  line-height: 1;
}

.stat__label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin-top: 0.3rem;
}

.about__photo-frame {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.about__img {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  background: var(--c-surface-2);
  filter: grayscale(15%);
  transition: filter var(--trans), box-shadow var(--trans), transform var(--trans);
  border: 3px solid var(--c-gold-border);
  box-shadow: 0 0 0 8px rgba(168,116,42,0.08), 0 0 40px rgba(168,116,42,0.14);
}

.about__img:hover {
  filter: grayscale(0%);
  transform: scale(1.03);
  box-shadow: 0 0 0 10px rgba(168,116,42,0.12), 0 0 60px rgba(168,116,42,0.22);
}

/* Gold orbit ring around circle portrait */
.about__photo-accent {
  position: absolute;
  width: 310px;
  height: 310px;
  border-radius: 50%;
  border: 1px solid var(--c-gold-border);
  pointer-events: none;
  animation: orbitPulse 4s ease-in-out infinite;
}

@keyframes orbitPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%       { opacity: 0.9; transform: scale(1.04); }
}

.about__photo-frame::before {
  content: '';
  position: absolute;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  border: 1px dashed rgba(168,116,42,0.18);
  pointer-events: none;
  animation: orbitPulse 4s ease-in-out infinite reverse;
  z-index: 1;
}

@media (max-width: 900px) {
  .about__grid {
    grid-template-columns: 1fr;
  }
  .about__photo { order: -1; }
  .about__img { width: 220px; height: 220px; }
  .about__photo-accent { width: 244px; height: 244px; }
  .about__photo-frame::before { width: 260px; height: 260px; }
}

/* ════════════════════════════════════════════════
   SERVICES
════════════════════════════════════════════════ */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
}

/* ════════════════════════════════════════════════
   PORTFOLIO
════════════════════════════════════════════════ */
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .portfolio__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .portfolio__grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════
   SKILLS
════════════════════════════════════════════════ */
.skills__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg) var(--space-xl);
  margin-bottom: var(--space-lg);
}

@media (max-width: 768px) {
  .skills__grid { grid-template-columns: 1fr; gap: var(--space-md); }
}

.skill-bar {
  margin-bottom: 1.8rem;
}

.skill-bar__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.skill-bar__name {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text);
}

.skill-bar__pct {
  font-family: var(--f-serif);
  font-size: 1.1rem;
  color: var(--c-gold);
}

.skill-bar__track {
  height: 2px;
  background: var(--c-surface-2);
  border-radius: 2px;
  overflow: hidden;
}

.skill-bar__fill {
  height: 100%;
  width: 0; /* animated by JS */
  background: linear-gradient(90deg, var(--c-gold), var(--c-gold-light));
  border-radius: 2px;
  transition: width 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.skill-tag {
  padding: 0.4rem 1rem;
  border: 1px solid rgba(168,116,42,0.28);
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-gold);
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background var(--trans), border-color var(--trans), color var(--trans), box-shadow var(--trans);
}

.skill-tag:hover {
  background: rgba(255,255,255,0.78);
  border-color: var(--c-gold);
  color: var(--c-gold-light);
  box-shadow: 0 4px 14px rgba(168,116,42,0.18);
}

[data-theme="dark"] .skill-tag {
  background: rgba(255,255,255,0.05);
  border-color: rgba(201,168,76,0.25);
}

[data-theme="dark"] .skill-tag:hover {
  background: rgba(255,255,255,0.1);
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}

/* ════════════════════════════════════════════════
   AWARDS TIMELINE
════════════════════════════════════════════════ */
.timeline {
  position: relative;
  max-width: 700px;
  margin-inline: auto;
  padding-left: 2.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--c-gold-border) 10%, var(--c-gold-border) 90%, transparent);
}

.timeline__item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline__marker {
  position: absolute;
  left: -2.5rem;
  top: 0.5rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--c-gold);
  border: 2px solid var(--c-bg);
  box-shadow: 0 0 12px rgba(201,168,76,0.6);
  transform: translateX(-5px);
}

.timeline__year {
  display: inline-block;
  font-family: var(--f-sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: 0.3rem;
}

.timeline__title {
  font-family: var(--f-serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--c-text);
  margin-bottom: 0.3rem;
}

.timeline__body {
  font-size: 0.85rem;
  color: var(--c-text-muted);
  line-height: 1.7;
}

/* ════════════════════════════════════════════════
   CONTACT
════════════════════════════════════════════════ */
.contact__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.vcard-cta {
  text-align: center;
  border-top: 1px solid var(--c-gold-border);
  padding-top: var(--space-lg);
}

.vcard-cta p {
  font-family: var(--f-serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--c-text-muted);
  margin-bottom: 1.5rem;
}

/* ════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════ */
.footer {
  padding: var(--space-md);
  text-align: center;
  border-top: 1px solid var(--c-gold-border);
  background: var(--c-bg);
}

.footer__copy {
  font-size: 0.75rem;
  color: var(--c-text-faint);
  letter-spacing: 0.1em;
}

.footer__made {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--c-text-faint);
  margin-top: 0.3rem;
}

/* ════════════════════════════════════════════════
   FLOATING ACTION BUTTON (FAB)
════════════════════════════════════════════════ */
.float-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--c-gold);
  color: var(--c-bg);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 24px rgba(168,116,42,0.3);
  z-index: 900;
  transition: transform var(--trans), box-shadow var(--trans), background var(--trans);
}

.float-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 32px rgba(168,116,42,0.45);
  background: var(--c-gold-light);
}

/* ════════════════════════════════════════════════
   SPLASH SCREEN
════════════════════════════════════════════════ */
#splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #F8F5F0;
  will-change: transform;
}

.splash__logo {
  width: min(260px, 64vw);
  height: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.splash__bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--c-gold), var(--c-gold-light));
}

/* ════════════════════════════════════════════════
   SCROLL-REVEAL ANIMATION INITIAL STATES
════════════════════════════════════════════════ */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
}

/* ════════════════════════════════════════════════
   RESPONSIVE TYPOGRAPHY SCALING
════════════════════════════════════════════════ */
/* ════════════════════════════════════════════════
   MOBILE — TABLET ≤768px
════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .section { padding-block: 4rem; }

  /* Nav — tighter padding on mobile */
  .nav { padding-inline: 1.25rem; }

  /* Hero — use dynamic viewport height for mobile browsers */
  .hero { min-height: 100vh; min-height: 100dvh; }
  .hero__eyebrow { font-size: 0.6rem; letter-spacing: 0.25em; }
  .hero__tagline { font-size: 1rem; line-height: 1.55; margin-bottom: 2.5rem; }
  .hero__cta { flex-direction: column; align-items: center; gap: 0.85rem; }
  .hero__cta .btn { width: 100%; max-width: 300px; justify-content: center; padding: 1rem 1.5rem; }
  .hero__scroll-hint { display: none; }

  /* About stats in a row */
  .about__stats { flex-direction: row; justify-content: space-around; flex-wrap: nowrap; gap: 0; margin-top: 1.5rem; }
  .stat { text-align: center; flex: 1; }
  .stat__number { font-size: 2rem; }
  .stat__label { font-size: 0.55rem; letter-spacing: 0.08em; }
  .about__bio { font-size: 0.9rem; }

  /* Portfolio 2-col on tablet */
  .portfolio__grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }

  /* Skills single column */
  .skills__grid { grid-template-columns: 1fr; gap: var(--space-md); }

  /* Contact cards — 2-col grid */
  .contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
  }
  .contact-card { min-width: unset; padding: 1.5rem 1rem; }
  .contact-card__value { font-size: 0.88rem; }

  /* Float btn — iOS safe area */
  .float-btn {
    bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
    right: 1.25rem;
  }
}

/* ════════════════════════════════════════════════
   MOBILE — SMALL PHONES ≤480px
════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .section { padding-block: 3rem; }
  .section__title { font-size: clamp(1.6rem, 6vw, 2.2rem); }

  .hero__name { font-size: clamp(1.4rem, 7vw, 2.2rem); }
  .hero__tagline { font-size: 0.92rem; }

  .portfolio__grid { gap: 0.6rem; }
  .portfolio-card__info { padding: 0.85rem 0.9rem; }
  .portfolio-card__title { font-size: 1rem; }
  .portfolio-card__cat { font-size: 0.55rem; }

  .stat__number { font-size: 1.7rem; }

  .skill-tags { gap: 0.5rem; }
  .skill-tag { font-size: 0.62rem; padding: 0.35rem 0.75rem; }

  .contact__grid { gap: 0.65rem; }
  .contact-card { padding: 1.25rem 0.85rem; }
  .contact-card__icon { width: 42px; height: 42px; font-size: 1rem; }
  .contact-card__value { font-size: 0.8rem; }
  .contact-card__label { font-size: 0.58rem; }

  .vcard-cta p { font-size: 0.95rem; }
  .vcard-cta .btn { width: 100%; justify-content: center; }

  .float-btn { width: 50px; height: 50px; font-size: 1rem; }
}

/* ════════════════════════════════════════════════
   MOBILE — VERY SMALL ≤360px
════════════════════════════════════════════════ */
@media (max-width: 360px) {
  .nav { padding-inline: 1rem; }
  .nav__logo-name { font-size: 1.1rem; }
  .contact-card { padding: 1rem 0.65rem; }
  .contact-card__value { font-size: 0.75rem; }
  .about__img { width: 190px; height: 190px; }
  .about__photo-accent { width: 212px; height: 212px; }
}
