/* ========================================
   Leisha Du Bois — Wellness Resume
   Modern CSS with @layer, @property, :has(), container queries
   ======================================== */

/* --- Cascade Layers --- */
@layer reset, tokens, base, layout, components, utilities;


/* ========================================
   LAYER: Tokens (Design System Variables)
   ======================================== */
@layer tokens {
  :root {
    /* Colour Palette — Earthy, Calming */
    --clr-sage: #7c8c6e;
    --clr-sage-light: #a8b89a;
    --clr-sage-pale: #e8ede3;
    --clr-terracotta: #c4785b;
    --clr-terracotta-light: #e8a88e;
    --clr-cream: #faf7f2;
    --clr-cream-dark: #f0ebe3;
    --clr-warm-white: #fefcf9;
    --clr-gold: #c9a96e;
    --clr-gold-light: #e8d5a8;
    --clr-text: #3a3a3a;
    --clr-text-muted: #6b6b6b;
    --clr-text-light: #8a8a8a;
    --clr-border: #e0dbd3;
    --clr-overlay: rgba(58, 58, 58, 0.06);

    /* Dark Mode */
    --clr-bg-dark: #1a1a18;
    --clr-surface-dark: #242422;
    --clr-surface-dark-hover: #2e2e2c;
    --clr-text-dark: #e8e4de;
    --clr-text-muted-dark: #a09c96;
    --clr-border-dark: #3a3a36;

    /* Typography */
    --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
    --font-sans: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    /* Fluid Typography via clamp() */
    --text-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.8rem);
    --text-sm: clamp(0.8rem, 0.75rem + 0.3vw, 0.9rem);
    --text-base: clamp(0.95rem, 0.9rem + 0.35vw, 1.05rem);
    --text-lg: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
    --text-xl: clamp(1.3rem, 1.15rem + 0.75vw, 1.75rem);
    --text-2xl: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem);
    --text-3xl: clamp(2rem, 1.5rem + 2vw, 3rem);
    --text-hero: clamp(2.5rem, 1.8rem + 3vw, 4rem);

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1.25rem;
    --radius-xl: 2rem;
    --radius-full: 50%;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 30px rgba(124, 140, 110, 0.15);

    /* Transitions */
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 200ms;
    --duration-normal: 350ms;
    --duration-slow: 600ms;

    /* Container widths */
    --container-sm: 640px;
    --container-md: 860px;
    --container-lg: 1100px;
    --container-xl: 1300px;
  }

  /* Dark mode tokens */
  [data-theme="dark"] {
    --clr-cream: var(--clr-bg-dark);
    --clr-cream-dark: var(--clr-surface-dark);
    --clr-warm-white: var(--clr-surface-dark);
    --clr-text: var(--clr-text-dark);
    --clr-text-muted: var(--clr-text-muted-dark);
    --clr-border: var(--clr-border-dark);
    --clr-overlay: rgba(0, 0, 0, 0.2);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.4);
  }
}

/* ========================================
   LAYER: Reset
   ======================================== */
@layer reset {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  body {
    min-height: 100vh;
    min-height: 100dvh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

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

  ul,
  ol {
    list-style: none;
  }

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

  button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
  }

  details summary {
    cursor: pointer;
  }

  details summary::-webkit-details-marker {
    display: none;
  }
}

/* ========================================
   LAYER: Base
   ======================================== */
@layer base {
  body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    color: var(--clr-text);
    background-color: var(--clr-cream);
    transition: background-color var(--duration-normal) var(--ease-smooth),
                color var(--duration-normal) var(--ease-smooth);
  }

  h1,
  h2,
  h3,
  h4 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.2;
    color: var(--clr-text);
  }

  p {
    line-height: 1.75;
    color: var(--clr-text-muted);
  }

  strong {
    color: var(--clr-text);
    font-weight: 600;
  }

  ::selection {
    background-color: var(--clr-sage-light);
    color: var(--clr-warm-white);
  }
}

/* ========================================
   LAYER: Layout
   ======================================== */
@layer layout {
  /* Site Navigation */
  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-xl);
    background: color-mix(in srgb, var(--clr-cream) 85%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--clr-border);
    transition: all var(--duration-normal) var(--ease-smooth);
  }

  .site-nav.scrolled {
    padding: var(--space-sm) var(--space-xl);
    box-shadow: var(--shadow-sm);
  }

  .nav-logo {
    font-family: var(--font-serif);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--clr-text);
  }

  .nav-links {
    display: flex;
    gap: var(--space-xl);
    align-items: center;
  }

  .nav-links a {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--clr-text-muted);
    position: relative;
    transition: color var(--duration-fast) var(--ease-smooth);
  }

  .nav-links a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--clr-terracotta);
    border-radius: var(--radius-sm);
    transition: width var(--duration-normal) var(--ease-smooth);
  }

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

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

  /* Theme Toggle */
  .theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    color: var(--clr-text-muted);
    transition: all var(--duration-fast) var(--ease-smooth);
  }

  .theme-toggle:hover {
    background: var(--clr-overlay);
    color: var(--clr-text);
  }

  .theme-toggle .moon-icon {
    display: none;
  }

  [data-theme="dark"] .theme-toggle .sun-icon {
    display: none;
  }

  [data-theme="dark"] .theme-toggle .moon-icon {
    display: block;
  }

  /* Hero Section */
  .hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: var(--space-4xl) var(--space-xl);
    overflow: hidden;
  }

  .hero-bg {
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse 65% 55% at 50% 25%, rgba(201, 169, 110, 0.28) 0%, transparent 65%),
      radial-gradient(ellipse 80% 60% at 15% 85%, rgba(124, 140, 110, 0.22) 0%, transparent 55%),
      radial-gradient(ellipse 60% 50% at 85% 70%, rgba(196, 120, 91, 0.12) 0%, transparent 50%),
      linear-gradient(160deg, var(--clr-sage-pale) 0%, var(--clr-cream) 45%, var(--clr-cream-dark) 100%);
    z-index: 0;
  }

  .hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: var(--container-md);
  }

  .hero-photo {
    margin-bottom: var(--space-xl);
  }

  .photo-frame {
    width: clamp(280px, 40vw, 420px);
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 4px solid var(--clr-warm-white);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
  }

  .photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .photo-frame-secondary {
    border-radius: var(--radius-lg);
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .hero-name {
    font-size: var(--text-hero);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-sm);
    background: linear-gradient(135deg, var(--clr-text) 0%, var(--clr-terracotta) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .hero-title {
    font-family: var(--font-serif);
    font-size: var(--text-xl);
    font-weight: 400;
    color: var(--clr-text-muted);
    margin-bottom: var(--space-lg);
  }

  .ampersand {
    font-style: italic;
    color: var(--clr-terracotta);
    -webkit-text-fill-color: var(--clr-terracotta);
  }

  .hero-tagline {
    font-size: var(--text-base);
    max-width: 520px;
    margin-bottom: var(--space-xl);
    color: var(--clr-text-muted);
  }

  .hero-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--clr-warm-white);
    background: var(--clr-terracotta);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--duration-normal) var(--ease-smooth);
  }

  .hero-cta:hover {
    background: var(--clr-terracotta-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
  }

  .hero-scroll-indicator {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--clr-text-light);
    font-size: var(--text-xs);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    z-index: 1;
  }

  /* Main Content Container */
  main {
    max-width: var(--container-lg);
    margin: 0 auto;
    padding: 0 var(--space-xl);
  }

  /* Expandable Sections */
  .expandable-section {
    margin-bottom: var(--space-sm);
    container-type: inline-size;
    container-name: section;
    border-radius: var(--radius-lg);
    padding: 0 var(--space-xl);
  }

  .expandable-section:nth-child(even) {
    background: var(--clr-warm-white);
    border: 1px solid var(--clr-border);
  }

  .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) 0;
    border-bottom: 2px solid var(--clr-border);
    list-style: none;
    transition: all var(--duration-fast) var(--ease-smooth);
  }

  .section-header:hover {
    border-bottom-color: var(--clr-sage-light);
  }

  /* :has() selector — highlight section when open */
  .expandable-section:has(details[open]) .section-header {
    border-bottom-color: var(--clr-sage);
  }

  .section-header h2 {
    font-size: var(--text-2xl);
    font-weight: 600;
  }

  .expand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: var(--clr-overlay);
    transition: transform var(--duration-normal) var(--ease-bounce),
                background var(--duration-fast) var(--ease-smooth);
  }

  .expand-icon::before,
  .expand-icon::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 2px;
    background: var(--clr-text-muted);
    border-radius: var(--radius-sm);
  }

  .expand-icon::after {
    transform: rotate(90deg);
  }

  details[open] .expand-icon {
    transform: rotate(180deg);
    background: var(--clr-sage-pale);
  }

  details[open] .expand-icon::after {
    transform: rotate(0deg);
    opacity: 0;
  }

  .section-body {
    padding: var(--space-xl) 0;
    animation: sectionReveal var(--duration-slow) var(--ease-smooth) both;
  }

  @keyframes sectionReveal {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* ========================================
   LAYER: Components
   ======================================== */
@layer components {
  /* About Grid */
  .about-grid {
    display: grid;
    gap: var(--space-2xl);
    align-items: center;

    @container section (min-width: 700px) {
      grid-template-columns: 1.2fr 0.8fr;
    }
  }

  .about-text p + p {
    margin-top: var(--space-md);
  }

  .about-photo {
    display: flex;
    justify-content: center;
  }

  /* Photo Carousel */
  .photo-carousel {
    position: relative;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 5;
    box-shadow: var(--shadow-lg);
  }

  .carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s var(--ease-smooth);
  }

  .carousel-slide.active {
    opacity: 1;
  }

  .carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .carousel-dots {
    position: absolute;
    bottom: var(--space-md);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
  }

  .carousel-dot {
    width: 7px;
    height: 7px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.5);
    transition: background var(--duration-fast) var(--ease-smooth),
                transform var(--duration-fast) var(--ease-smooth);
  }

  .carousel-dot.active {
    background: var(--clr-warm-white);
    transform: scale(1.3);
  }

  /* Timeline */
  .timeline {
    position: relative;
    padding-left: var(--space-xl);
  }

  .timeline::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(to bottom, var(--clr-sage-light), var(--clr-terracotta-light));
    border-radius: var(--radius-sm);
  }

  .timeline-item {
    position: relative;
    padding-bottom: var(--space-2xl);
  }

  .timeline-item:last-child {
    padding-bottom: 0;
  }

  .timeline-dot {
    position: absolute;
    left: calc(-1 * var(--space-xl) + 2px);
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    background: var(--clr-sage);
    border: 3px solid var(--clr-cream);
    box-shadow: 0 0 0 2px var(--clr-sage-light);
    transition: transform var(--duration-fast) var(--ease-bounce);
  }

  .timeline-item:hover .timeline-dot {
    transform: scale(1.3);
  }

  .timeline-date {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--clr-terracotta);
    margin-bottom: var(--space-xs);
  }

  .timeline-content h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-sm);
  }

  .timeline-content p {
    font-size: var(--text-sm);
  }

  /* Qualifications Grid */
  .qualifications-grid {
    display: grid;
    gap: var(--space-lg);

    /* Responsive auto-fit */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  }

  .qualification-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-xl);
    background: var(--clr-warm-white);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--duration-normal) var(--ease-smooth);
  }

  .qualification-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--clr-sage-light);
  }

  .qual-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--clr-sage-pale), var(--clr-sage-light) 160%);
    color: var(--clr-sage);
    margin-bottom: var(--space-lg);
  }

  .qualification-card h3 {
    font-size: var(--text-base);
    margin-bottom: var(--space-xs);
  }

  .qual-institution {
    font-size: var(--text-sm);
    color: var(--clr-terracotta);
    font-weight: 500;
  }

  .qual-date {
    font-size: var(--text-xs);
    color: var(--clr-text-light);
    margin-top: var(--space-xs);
  }

  /* Services Grid */
  .services-grid {
    display: grid;
    gap: var(--space-lg);

    /* Responsive auto-fit */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  }

  .service-card {
    padding: var(--space-xl);
    background: var(--clr-warm-white);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--duration-normal) var(--ease-smooth);
  }

  .service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--clr-terracotta-light);
  }

  /* :has() — highlight card with focused child */
  .service-card:has(:focus-visible) {
    outline: 2px solid var(--clr-terracotta);
    outline-offset: 2px;
  }

  .service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--clr-cream-dark), var(--clr-terracotta-light) 160%);
    color: var(--clr-terracotta);
    margin-bottom: var(--space-lg);
  }

  .service-card h3 {
    font-size: var(--text-base);
    margin-bottom: var(--space-sm);
  }

  .service-card p {
    font-size: var(--text-sm);
  }

  /* Testimonials Grid */
  .testimonials-grid {
    display: grid;
    gap: var(--space-lg);

    /* Responsive auto-fit */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  }

  .testimonial-card {
    padding: var(--space-xl);
    background: var(--clr-warm-white);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--duration-normal) var(--ease-smooth);
  }

  .testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--clr-gold-light);
  }

  .testimonial-stars {
    display: flex;
    gap: 2px;
    margin-bottom: var(--space-md);
  }

  .testimonial-stars span {
    color: var(--clr-gold);
    font-size: var(--text-lg);
    line-height: 1;
  }

  .testimonial-card blockquote p {
    font-family: var(--font-serif);
    font-size: var(--text-sm);
    font-style: italic;
    color: var(--clr-text);
    line-height: 1.65;
    margin-bottom: var(--space-md);
  }

  .testimonial-card cite {
    display: block;
    font-style: normal;
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--clr-terracotta);
    letter-spacing: 0.02em;
  }

  /* Philosophy */
  .philosophy-content {
    max-width: var(--container-md);
    margin: 0 auto;
  }

  .philosophy-quote {
    padding: var(--space-xl) var(--space-2xl);
    margin-bottom: var(--space-2xl);
    border-left: 4px solid var(--clr-gold);
    background: linear-gradient(135deg, var(--clr-gold-light) 0%, transparent 100%);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
  }

  .philosophy-quote p {
    font-family: var(--font-serif);
    font-size: var(--text-lg);
    font-style: italic;
    color: var(--clr-text);
    line-height: 1.6;
  }

  .philosophy-text p + p {
    margin-top: var(--space-md);
  }

  /* Contact Section */
  .contact-section {
    padding: var(--space-4xl) var(--space-xl);
    background: var(--clr-cream-dark);
    margin-top: var(--space-3xl);
  }

  .contact-container {
    max-width: var(--container-md);
    margin: 0 auto;
    text-align: center;
  }

  .contact-section h2 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-sm);
  }

  .contact-subtitle {
    margin-bottom: var(--space-2xl);
  }

  .contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    align-items: center;
    margin-bottom: var(--space-2xl);
  }

  .contact-item {
    display: inline-flex;
    align-items: center;
    gap: var(--space-md);
    color: var(--clr-text);
    font-weight: 500;
    transition: color var(--duration-fast) var(--ease-smooth);
  }

  .contact-item:hover {
    color: var(--clr-terracotta);
  }

  .contact-item svg {
    color: var(--clr-sage);
    flex-shrink: 0;
  }

  .contact-divider {
    width: 60px;
    height: 2px;
    background: var(--clr-border);
    margin: var(--space-2xl) auto;
    border-radius: var(--radius-sm);
  }

  /* Contact Form */
  .contact-form {
    max-width: 480px;
    margin: 0 auto;
    text-align: left;
  }

  .form-group {
    margin-bottom: var(--space-lg);
  }

  .form-group label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 500;
    margin-bottom: var(--space-sm);
    color: var(--clr-text);
  }

  .form-group input,
  .form-group textarea {
    width: 100%;
    padding: var(--space-md);
    font-family: var(--font-sans);
    font-size: var(--text-base);
    color: var(--clr-text);
    background: var(--clr-warm-white);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    transition: all var(--duration-fast) var(--ease-smooth);
    outline: none;
  }

  .form-group input:focus,
  .form-group textarea:focus {
    border-color: var(--clr-sage);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--clr-sage) 20%, transparent);
  }

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

  .form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: var(--space-md) var(--space-xl);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--clr-warm-white);
    background: var(--clr-sage);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: all var(--duration-normal) var(--ease-smooth);
  }

  .form-submit:hover {
    background: var(--clr-sage-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }

  /* Footer */
  .site-footer {
    text-align: center;
    padding: var(--space-xl);
    font-size: var(--text-xs);
    color: var(--clr-text-light);
    border-top: 1px solid var(--clr-border);
  }

  .footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
  }

  .footer-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
  }

  .footer-qr-label {
    font-size: var(--text-xs);
    color: var(--clr-text-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  .footer-qr-link {
    font-size: var(--text-xs);
    color: var(--clr-sage);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color var(--duration-fast) var(--ease-smooth);
  }

  .footer-qr-link:hover {
    color: var(--clr-terracotta);
  }
}

/* ========================================
   LAYER: Utilities
   ======================================== */
@layer utilities {
  /* Scroll-triggered animations */
  .fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--duration-slow) var(--ease-smooth),
                transform var(--duration-slow) var(--ease-smooth);
  }

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

  /* Staggered children animations */
  .stagger-children > * {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity var(--duration-slow) var(--ease-smooth),
                transform var(--duration-slow) var(--ease-smooth);
  }

  .stagger-children.visible > *:nth-child(1) { transition-delay: 0ms; }
  .stagger-children.visible > *:nth-child(2) { transition-delay: 80ms; }
  .stagger-children.visible > *:nth-child(3) { transition-delay: 160ms; }
  .stagger-children.visible > *:nth-child(4) { transition-delay: 240ms; }
  .stagger-children.visible > *:nth-child(5) { transition-delay: 320ms; }
  .stagger-children.visible > *:nth-child(6) { transition-delay: 400ms; }

  .stagger-children.visible > * {
    opacity: 1;
    transform: translateY(0);
  }

  /* Reduced motion preference */
  @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;
    }

    .hero-bg {
      animation: none;
    }
  }
}

/* ========================================
   RESPONSIVE: Mobile
   ======================================== */
@media (max-width: 768px) {
  .site-nav {
    flex-wrap: wrap;
    padding: var(--space-md);
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--clr-border);
    margin-top: var(--space-md);
  }

  .nav-links.open {
    display: flex;
  }

  .hero {
    padding: var(--space-4xl) var(--space-md);
  }

  .hero-name {
    font-size: var(--text-3xl);
  }

  main {
    padding: 0 var(--space-md);
  }

  .contact-details {
    gap: var(--space-md);
  }

  .contact-section {
    padding: var(--space-3xl) var(--space-md);
  }
}

@media (max-width: 480px) {
  .hero-photo .photo-frame {
    width: 90vw;
  }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
  .site-nav,
  .theme-toggle,
  .hero-scroll-indicator,
  .contact-form,
  .hero-cta {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding: 2rem 0;
  }

  .hero-bg {
    animation: none;
    background: none;
  }

  details {
    display: block !important;
  }

  details > .section-body {
    display: block !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  a {
    color: #000;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }
}
