/* ========================================
   CSS Custom Properties & Reset
   ======================================== */

:root {
  --bg: #fdfbf7;
  --bg-alt: #f5f0e8;
  --text: #2c2c2c;
  --text-muted: #6b6b6b;
  --primary: #2b2d42;
  --accent: #e07a5f;
  --accent-hover: #c96b52;
  --accent-light: rgba(224, 122, 95, 0.08);
  --accent-2: #81b29a;
  --accent-2-light: rgba(129, 178, 154, 0.1);
  --accent-3: #f2cc8f;
  --accent-3-light: rgba(242, 204, 143, 0.12);
  --white: #ffffff;
  --border: #e8ddd0;
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.03);
  --card-shadow-hover: 0 8px 20px rgba(0, 0, 0, 0.08), 0 16px 32px rgba(0, 0, 0, 0.06);
  --radius: 12px;
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --max-width: 1080px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

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

ul {
  list-style: none;
}

/* Focus styles for accessibility */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}


/* ========================================
   Layout
   ======================================== */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 720px;
}

.section {
  padding: 100px 0;
}

.section--alt {
  background-color: var(--bg-alt);
}

#about {
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}

#story {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}

#worlds {
  background: linear-gradient(180deg, #ebf2ee 0%, var(--bg) 100%);
}

.section__label {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section__title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 600;
  color: var(--primary);
  line-height: 1.25;
  margin-bottom: 48px;
  max-width: 600px;
}


/* ========================================
   Navigation
   ======================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  transition: background-color var(--transition), box-shadow var(--transition);
}

.nav--scrolled {
  background-color: rgba(253, 251, 247, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  transition: color var(--transition);
}

.nav__logo:hover {
  color: var(--accent-3);
}

.nav--scrolled .nav__logo {
  color: var(--primary);
}

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

.nav__menu {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.01em;
  position: relative;
  transition: color var(--transition);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--accent-3);
  transition: width var(--transition);
}

.nav__link:hover,
.nav__link--active {
  color: #fff;
}

.nav--scrolled .nav__link {
  color: var(--text-muted);
}

.nav--scrolled .nav__link::after {
  background-color: var(--accent);
}

.nav--scrolled .nav__link:hover,
.nav--scrolled .nav__link--active {
  color: var(--primary);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
  margin: -12px;
  min-width: 44px;
  min-height: 44px;
  z-index: 1001;
  -webkit-tap-highlight-color: transparent;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background-color: #fff;
  transition: transform var(--transition), opacity var(--transition);
}

.nav--scrolled .nav__toggle span {
  background-color: var(--primary);
}

/* Overlay hidden on desktop */
.nav__overlay {
  display: none;
}

.nav__toggle--open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav__toggle--open span:nth-child(2) {
  opacity: 0;
}

.nav__toggle--open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.nav__toggle--open span {
  background-color: var(--primary);
}


/* ========================================
   Hero
   ======================================== */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
  position: relative;
  background: linear-gradient(135deg, #2b2d42 0%, #3d405b 35%, #4a3f5c 65%, #5c3d4f 100%);
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.hero::before {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(224, 122, 95, 0.35), transparent 70%);
  top: -200px;
  right: -150px;
  animation: heroFloat 12s ease-in-out infinite;
}

.hero::after {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(129, 178, 154, 0.25), transparent 70%);
  bottom: -150px;
  left: -120px;
  animation: heroFloat 15s ease-in-out infinite reverse;
}

@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -25px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

.hero__content {
  max-width: 680px;
  position: relative;
  z-index: 1;
}

.hero__greeting {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero__name {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  font-weight: 600;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero__accent {
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
  margin: 0 auto 24px;
  border-radius: 2px;
}

.hero__tagline {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--accent-3);
  letter-spacing: 0.03em;
  margin-bottom: 20px;
}

.hero__intro {
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 40px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero .btn--primary {
  background: var(--accent);
  color: #fff;
  border: 1.5px solid var(--accent);
}

.hero .btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(224, 122, 95, 0.35);
}

.hero .btn--outline {
  border-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.9);
}

.hero .btn--outline:hover {
  border-color: var(--accent-3);
  color: var(--accent-3);
  transform: translateY(-2px);
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 1;
}

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

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


/* ========================================
   Buttons
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  letter-spacing: 0.01em;
}

.btn--primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn--primary:hover {
  background-color: #3d405b;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(43, 45, 66, 0.25);
}

.btn--outline {
  background-color: transparent;
  color: var(--primary);
  border: 1.5px solid var(--border);
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}


/* ========================================
   About
   ======================================== */

.about {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: start;
}

.about__portrait {
  position: sticky;
  top: 120px;
}

.about__image-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: linear-gradient(145deg, #f0ddd0 0%, #e5cfc0 50%, #dbc3b3 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.about__image-placeholder::after {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(224, 122, 95, 0.15);
  border-radius: calc(var(--radius) - 4px);
  pointer-events: none;
}

.about__image-placeholder span {
  font-family: var(--font-serif);
  font-size: 4rem;
  font-weight: 600;
  color: rgba(224, 122, 95, 0.25);
  letter-spacing: -0.02em;
  user-select: none;
}

/* When a real image is used, it replaces the placeholder styling */
.about__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.about__text .section__title {
  margin-bottom: 32px;
}

.about__body p {
  margin-bottom: 16px;
  color: var(--text);
  font-size: 0.98rem;
}

.about__body p:last-child {
  margin-bottom: 0;
}

.about__languages {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.about__languages-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-right: 4px;
}

.tag {
  display: inline-block;
  padding: 5px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
  background-color: var(--accent-light);
  border-radius: 20px;
  letter-spacing: 0.01em;
}


/* ========================================
   Story Section
   ======================================== */

.story-card {
  background: var(--primary);
  border-radius: var(--radius);
  padding: 52px;
  border-left: none;
  box-shadow: none;
}

.story-card__quote {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-style: italic;
  color: var(--accent-3);
  line-height: 1.55;
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.story-card__body p {
  font-size: 1rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 20px;
}

.story-card__body p:last-child {
  margin-bottom: 0;
}


/* ========================================
   Download Button
   ======================================== */

.btn--download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn--download svg {
  flex-shrink: 0;
  transition: transform var(--transition);
}

.btn--download:hover svg {
  transform: translateY(2px);
}


/* ========================================
   Language Note
   ======================================== */

.about__lang-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
}


/* ========================================
   About Resume Button
   ======================================== */

.about__resume {
  margin-top: 24px;
  margin-bottom: 8px;
}


/* ========================================
   Now Section
   ======================================== */

.now__intro {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 40px;
}

.now-list {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  margin-bottom: 48px;
}

.now-list__label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding-top: 2px;
}

.now-list__value {
  font-size: 0.95rem;
  color: var(--primary);
  line-height: 1.6;
  margin: 0;
}

.shelf__label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.shelf__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.shelf-tag {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-style: italic;
  color: var(--primary);
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  line-height: 1.4;
}


/* ========================================
   Worlds (Extracurricular)
   ======================================== */

.extra__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.extra-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform var(--transition), box-shadow var(--transition);
}

.extra-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover);
}

.extra-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background-color: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.extra-card__title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.3;
  margin-bottom: 12px;
}

.extra-card__desc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.extra-card:nth-child(1) .extra-card__icon {
  background-color: var(--accent-light);
  color: var(--accent);
}

.extra-card:nth-child(2) .extra-card__icon {
  background-color: var(--accent-2-light);
  color: var(--accent-2);
}

.extra-card:nth-child(3) .extra-card__icon {
  background-color: var(--accent-3-light);
  color: #c99a2e;
}

.extra-card:nth-child(4) .extra-card__icon {
  background-color: var(--accent-light);
  color: var(--accent);
}

.extra-card:nth-child(5) .extra-card__icon {
  background-color: var(--accent-2-light);
  color: var(--accent-2);
}

.extra-card:nth-child(6) .extra-card__icon {
  background-color: var(--accent-3-light);
  color: #c99a2e;
}

.extra-card:nth-child(7) .extra-card__icon {
  background-color: var(--accent-2-light);
  color: var(--accent-2);
}

.extra-card:nth-child(8) .extra-card__icon {
  background-color: var(--accent-light);
  color: var(--accent);
}


/* ========================================
   Contact
   ======================================== */

.section--contact {
  text-align: center;
}

.section--contact .section__title {
  margin-left: auto;
  margin-right: auto;
}

.contact__intro {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.contact__links {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 36px 40px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform var(--transition), box-shadow var(--transition);
  min-width: 240px;
}

.contact__card:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover);
  color: var(--primary);
}

.contact__card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact__card-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.contact__card-value {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--primary);
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
}


/* ========================================
   Footer
   ======================================== */

.footer {
  padding: 32px 0;
  text-align: center;
  border-top: 1px solid var(--border);
}

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


/* ========================================
   Reveal Animations
   ======================================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Staggered delays for grouped elements */
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }


/* ========================================
   Responsive — Tablet (≤ 900px)
   ======================================== */

@media (max-width: 900px) {
  .about {
    grid-template-columns: 220px 1fr;
    gap: 40px;
  }

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

  .story-card {
    padding: 36px 32px;
  }
}


/* ========================================
   Responsive — Small Tablet (≤ 768px)
   ======================================== */

@media (max-width: 768px) {
  .section {
    padding: 80px 0;
  }

  .container {
    padding: 0 20px;
  }

  /* ---- Navigation → hamburger at 768px ---- */
  .nav {
    padding: 0 16px;
  }

  .nav__inner {
    height: 64px;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    position: fixed;
    top: 0;
    right: 0;
    width: min(280px, 80vw);
    height: 100vh;
    height: 100dvh;
    background-color: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 36px;
    gap: 24px;
    transform: translateX(100%);
    transition: transform var(--transition);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.08);
    z-index: 1000;
  }

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

  .nav__overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
  }

  .nav__overlay--visible {
    opacity: 1;
    pointer-events: auto;
  }

  .nav__link {
    font-size: 1.05rem;
    padding: 4px 0;
    color: var(--text-muted);
  }

  .nav__link::after {
    display: none;
  }

  .nav__toggle span {
    background-color: var(--primary);
  }

  /* ---- About → single column ---- */
  .about {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about__portrait {
    position: static;
    max-width: 200px;
    margin: 0 auto;
  }

  /* ---- Extra → single column ---- */
  .extra__grid {
    grid-template-columns: 1fr;
  }

  .hero__intro {
    font-size: 0.98rem;
  }

  .contact__card {
    padding: 28px 32px;
    min-width: 200px;
  }
}


/* ========================================
   Responsive — Mobile (≤ 640px)
   ======================================== */

@media (max-width: 640px) {
  .section {
    padding: 64px 0;
  }

  .section__title {
    margin-bottom: 32px;
    font-size: clamp(1.5rem, 5vw, 1.8rem);
  }

  .section__label {
    margin-bottom: 8px;
  }

  /* Hero mobile */
  .hero {
    padding: 88px 20px 52px;
    min-height: 100svh;
    min-height: 100dvh;
  }

  .hero__greeting {
    font-size: 0.92rem;
  }

  .hero__name {
    font-size: clamp(2.2rem, 10vw, 3.2rem);
    margin-bottom: 16px;
  }

  .hero__accent {
    width: 44px;
    margin-bottom: 18px;
  }

  .hero__tagline {
    font-size: 0.92rem;
    margin-bottom: 16px;
  }

  .hero__intro {
    font-size: 0.94rem;
    line-height: 1.7;
    margin-bottom: 32px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 0.88rem;
  }

  .hero__scroll {
    display: none;
  }

  /* Hero blobs mobile */
  .hero::before {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -80px;
  }

  .hero::after {
    width: 250px;
    height: 250px;
    bottom: -80px;
    left: -60px;
  }

  /* About mobile refinements */
  .about {
    gap: 28px;
  }

  .about__portrait {
    max-width: 180px;
  }

  .about__text .section__title {
    margin-bottom: 24px;
  }

  .about__body p {
    font-size: 0.92rem;
    margin-bottom: 14px;
  }

  .about__languages {
    margin-top: 24px;
    gap: 8px;
  }

  /* Now section mobile */
  .now-list {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .now-list__label {
    margin-top: 12px;
  }

  .now-list__label:first-child {
    margin-top: 0;
  }

  /* Contact mobile */
  .contact__intro {
    font-size: 0.94rem;
    margin-bottom: 28px;
  }

  .contact__links {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .contact__card {
    width: 100%;
    max-width: none;
    min-width: 0;
    padding: 24px 20px;
  }

  .contact__card-value {
    font-size: 0.84rem;
  }

  /* Footer mobile */
  .footer {
    padding: 24px 0;
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }

  .footer p {
    font-size: 0.78rem;
  }
}


/* ========================================
   Responsive — Small Mobile (≤ 380px)
   ======================================== */

@media (max-width: 380px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero__name {
    font-size: 2rem;
  }

  .hero__tagline {
    font-size: 0.84rem;
  }

  .hero__intro {
    font-size: 0.88rem;
  }

  .section__title {
    font-size: 1.4rem;
  }

  .about__portrait {
    max-width: 150px;
  }

  .about__image-placeholder span {
    font-size: 3rem;
  }

  .story-card {
    padding: 28px 22px;
  }

  .contact__card {
    padding: 20px 16px;
  }

  .contact__card-value {
    font-size: 0.8rem;
  }

  .btn {
    padding: 12px 20px;
    font-size: 0.86rem;
  }
}


/* ========================================
   Print Styles
   ======================================== */

@media print {
  .nav,
  .hero__scroll,
  .hero__actions {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 40px 0;
  }

  .section {
    padding: 30px 0;
    break-inside: avoid;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}


/* ========================================
   Reduced Motion
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
