/* ============================================================
   Shraddha Shrestha — Makeup Artist Portfolio
   Fonts loaded in index.html <head> (Cormorant Garamond + Jost)
   ============================================================ */

/* ============================
   1. DESIGN TOKENS
   ============================ */
:root {
  /* --- Colour: warm ivory / cream editorial, deep charcoal for bookends --- */
  --color-bg:            #FAF6EF;
  --color-bg-raised:     #F2E9DC;
  --color-bg-deep:        #221C17;
  --color-bg-deep-raised: #2C241D;
  --color-text:          #2A2118;
  --color-text-muted:    #8C7A66;
  --color-text-inverse:       #F7F0E4;
  --color-text-inverse-muted: #C9B79C;
  --color-accent:        #A9784C;
  --color-accent-soft:   #C9A469;
  --color-border:        #E6DAC5;
  --color-border-soft:   #DACBAA;

  /* --- Type families --- */
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans:    'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* --- Fluid type scale --- */
  --step-sm:  clamp(0.78rem, 0.76rem + 0.10vw, 0.85rem);
  --step-0:   clamp(1.00rem, 0.96rem + 0.20vw, 1.10rem);
  --step-1:   clamp(1.20rem, 1.12rem + 0.40vw, 1.45rem);
  --step-2:   clamp(1.60rem, 1.35rem + 1.10vw, 2.40rem);
  --step-3:   clamp(2.10rem, 1.65rem + 2.10vw, 3.40rem);
  --step-4:   clamp(2.70rem, 1.95rem + 3.40vw, 4.60rem);
  --step-hero: clamp(3.00rem, 1.30rem + 7.80vw, 7.40rem);

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

  /* --- Layout --- */
  --container: 1180px;
  --measure: 62ch;

  /* --- Motion --- */
  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
}

/* ============================
   2. RESET
   ============================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

h1,
h2,
h3,
.about-text .lead,
.stats-statement,
.footer-mark {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

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

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

ul,
ol {
  list-style: none;
}

/* ============================
   3. TYPOGRAPHY
   ============================ */
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h1 {
  font-weight: 400;
  font-size: var(--step-hero);
  letter-spacing: -0.01em;
  line-height: 1.0;
}

h2 {
  font-size: var(--step-4);
}

h3 {
  font-size: var(--step-2);
  font-weight: 500;
}

p {
  max-width: var(--measure);
}

.eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-1);
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.eyebrow-label {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: var(--step-sm);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.section-intro {
  color: var(--color-text-muted);
  font-size: var(--step-1);
  max-width: 46ch;
  margin-top: var(--space-md);
  margin-bottom: var(--space-xl);
}

/* ============================
   4. LAYOUT PRIMITIVES
   ============================ */
section {
  max-width: var(--container);
  margin-inline: auto;
  padding-block: var(--space-3xl);
  padding-inline: var(--space-md);
  scroll-margin-top: 90px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 500;
  background: var(--color-accent);
  color: var(--color-bg-deep);
  padding: 12px 20px;
  font-size: var(--step-sm);
}

.skip-link:focus {
  left: var(--space-md);
  top: var(--space-md);
}

/* ============================
   5. NAVIGATION
   ============================ */
#navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s ease, border-color 0.4s ease;
}

#navbar.scrolled {
  background-color: rgba(250, 246, 239, 0.88);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--color-border);
}

.nav-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 22px var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  letter-spacing: 0.01em;
  color: var(--color-text);
}

#navbar:not(.scrolled) .nav-logo,
#navbar:not(.scrolled) .nav-links a {
  color: var(--color-text-inverse);
}

.nav-links {
  display: flex;
  gap: 36px;
  margin-inline: auto;
  padding-left: 36px;
}

.nav-links a {
  position: relative;
  font-size: var(--step-sm);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding-bottom: 4px;
  background-image: linear-gradient(var(--color-accent), var(--color-accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: color 0.35s ease, background-size 0.45s var(--ease-out);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--color-accent);
  background-size: 100% 1px;
}

.nav-links a.is-current {
  color: var(--color-accent);
  background-size: 100% 1px;
}

.btn-nav {
  padding: 11px 24px;
  font-size: var(--step-sm);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  flex-shrink: 0;
}

/* ============================
   6. HERO
   ============================ */
#hero {
  position: relative;
  max-width: none;
  margin: 0;
  padding-block: 0;
  padding-inline: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--color-bg-deep);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video,
.hero-still,
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(24, 19, 14, 0.35) 0%,
    rgba(24, 19, 14, 0.45) 45%,
    rgba(24, 19, 14, 0.88) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: 0 var(--space-md);
  color: var(--color-text-inverse);
}

#hero .eyebrow {
  color: var(--color-accent-soft);
}

#hero h1 {
  max-width: 18ch;
  margin-bottom: var(--space-sm);
  color: var(--color-text-inverse);
}

.hero-sub {
  font-family: var(--font-sans);
  font-size: var(--step-1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-inverse-muted);
  margin-bottom: var(--space-lg);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-xl);
  font-size: var(--step-sm);
  letter-spacing: 0.03em;
  color: var(--color-text-inverse-muted);
}

.hero-meta span {
  position: relative;
  padding-left: var(--space-md);
}

.hero-meta span:first-child {
  padding-left: 0;
}

.hero-meta span:not(:first-child)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--color-accent-soft);
}

.hero-buttons {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: var(--space-lg);
  transform: translateX(-50%);
  z-index: 1;
  width: 1px;
  height: 46px;
  background-color: rgba(247, 240, 228, 0.3);
  overflow: hidden;
}

.hero-scroll span {
  display: block;
  width: 100%;
  height: 40%;
  background-color: var(--color-accent-soft);
  animation: scroll-trace 2.2s var(--ease-out) infinite;
}

@keyframes scroll-trace {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(250%); }
}

/* ============================
   7. BUTTONS
   ============================ */
.btn {
  display: inline-block;
  padding: 16px 30px;
  font-family: var(--font-sans);
  font-size: var(--step-sm);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: transform 0.35s var(--ease-out), background-color 0.35s ease,
    border-color 0.35s ease, color 0.35s ease;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-text-inverse);
}

.btn-primary:hover {
  background-color: var(--color-accent-soft);
}

.btn-secondary {
  border: 1px solid rgba(247, 240, 228, 0.4);
  color: var(--color-text-inverse);
}

.btn-secondary:hover {
  border-color: var(--color-accent-soft);
  color: var(--color-accent-soft);
}

/* Secondary buttons that sit on light backgrounds (outside the hero/finalCta) */
#consultation .btn-secondary,
#contact .btn-secondary {
  border-color: var(--color-border-soft);
  color: var(--color-text);
}

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

/* ============================
   8. ABOUT / THE ARTIST
   ============================ */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--space-xl);
  align-items: start;
}

.about-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 15%;
  border-radius: 2px;
}

.about-text .lead {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-style: italic;
  line-height: 1.35;
  color: var(--color-text);
  margin-bottom: var(--space-lg);
}

.about-text p:not(.lead) {
  color: var(--color-text-muted);
}

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

/* ============================
   9. STATS / EXPERIENCE
   ============================ */
#stats {
  max-width: none;
  padding-inline: 0;
  background-color: var(--color-bg-raised);
}

.stats-grid {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-md);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-xl);
  align-items: center;
}

.stats-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(4rem, 3rem + 6vw, 9rem);
  line-height: 0.9;
  color: var(--color-accent);
  font-variant-numeric: oldstyle-nums;
}

.stats-number-label {
  display: block;
  font-size: var(--step-sm);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
}

.stats-details {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border-soft);
}

.stats-details li {
  font-size: var(--step-sm);
  letter-spacing: 0.03em;
  color: var(--color-text);
}

.stats-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2px;
}

.stats-statement {
  max-width: var(--container);
  margin: var(--space-2xl) auto 0;
  padding: var(--space-lg) var(--space-md) 0;
  border-top: 1px solid var(--color-border-soft);
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-3);
  line-height: 1.3;
  text-align: center;
  color: var(--color-text);
}

/* ============================
   10. SELECTED WORK — editorial gallery
   ============================ */
.work-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
}

.work-figure {
  overflow: hidden;
  border-radius: 2px;
  background-color: var(--color-bg-raised);
}

.work-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out);
}

.work-figure:hover img {
  transform: scale(1.045);
}

.work-figure--large {
  aspect-ratio: 4 / 5;
}

.work-figure--small {
  aspect-ratio: 1 / 1;
}

.work-figure--wide {
  grid-column: 1 / -1;
  aspect-ratio: 21 / 9;
}

/* ============================
   11. BEHIND THE GLAM
   ============================ */
.glam-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

.glam-figure {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 2px;
  background-color: var(--color-bg-raised);
}

.glam-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out), filter 0.8s ease;
  filter: grayscale(0.55);
}

.glam-figure:hover img {
  transform: scale(1.04);
  filter: grayscale(0);
}

/* ============================
   12. EXPERTISE — The Art of Detail
   ============================ */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
}

.expertise-item {
  padding: var(--space-lg) var(--space-md);
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  transition: background-color 0.4s ease;
}

.expertise-item:hover {
  background-color: var(--color-bg-raised);
}

.expertise-index {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-1);
  color: var(--color-accent-soft);
  margin-bottom: var(--space-sm);
}

.expertise-item h3 {
  font-size: var(--step-1);
  margin-bottom: var(--space-xs);
}

.expertise-item p {
  color: var(--color-text-muted);
  font-size: var(--step-sm);
}

/* ============================
   13. SERVICES
   ============================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg) var(--space-md);
}

.service-card {
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-accent-soft);
}

.service-card h3 {
  font-size: var(--step-1);
  margin-bottom: var(--space-xs);
}

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

/* ============================
   13b. TESTIMONIALS (sample/demo content — see content.js)
   ============================ */
#testimonials {
  text-align: center;
}

#testimonials .section-intro {
  margin-inline: auto;
}

.testimonials-rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 0 auto var(--space-2xl);
}

.testimonials-rating-number {
  font-family: var(--font-display);
  font-size: var(--step-3);
  color: var(--color-text);
  line-height: 1;
}

.testimonials-rating-stars .stars {
  font-size: var(--step-1);
}

.testimonials-rating-label {
  font-size: var(--step-sm);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.stars {
  color: var(--color-accent-soft);
  letter-spacing: 0.15em;
}

.testimonials-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  text-align: left;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-lg);
  background-color: var(--color-bg-raised);
  border-radius: 2px;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -24px rgba(42, 33, 24, 0.35);
}

.testimonial-card .stars {
  font-size: var(--step-0);
}

.testimonial-card blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-1);
  line-height: 1.45;
  color: var(--color-text);
  max-width: none;
}

.testimonial-card figcaption {
  font-size: var(--step-sm);
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}

.testimonial-card figcaption::before {
  content: "— ";
}

#testimonials.in-view .testimonial-card {
  animation: rise-in 0.75s var(--ease-out) backwards;
}

#testimonials.in-view .testimonial-card:nth-child(2) { animation-delay: 0.08s; }
#testimonials.in-view .testimonial-card:nth-child(3) { animation-delay: 0.16s; }
#testimonials.in-view .testimonial-card:nth-child(4) { animation-delay: 0.24s; }
#testimonials.in-view .testimonial-card:nth-child(5) { animation-delay: 0.32s; }
#testimonials.in-view .testimonial-card:nth-child(6) { animation-delay: 0.40s; }

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

/* Mobile: swipeable carousel via native scroll-snap, no JS needed */
@media (max-width: 640px) {
  .testimonials-track {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: var(--space-md);
    margin-inline: calc(var(--space-md) * -1);
    padding-inline: var(--space-md);
    padding-bottom: var(--space-sm);
    scrollbar-width: thin;
    scrollbar-color: var(--color-accent-soft) transparent;
  }

  .testimonial-card {
    flex: 0 0 84%;
    scroll-snap-align: center;
  }
}

/* ============================
   14. PROFESSIONAL TRAINING
   ============================ */
#training {
  text-align: center;
}

.training-inner {
  max-width: 62ch;
  margin-inline: auto;
}

.training-qualification {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-2);
  color: var(--color-text);
  margin-top: var(--space-sm);
}

.training-institution {
  font-size: var(--step-sm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-top: var(--space-xs);
}

.training-paragraph {
  color: var(--color-text-muted);
  margin: var(--space-lg) auto 0;
}

/* ============================
   15. MAKEUP CONSULTATION
   ============================ */
#consultation {
  max-width: none;
  padding-inline: 0;
  background-color: var(--color-bg-raised);
}

.consultation-grid {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-md);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-xl);
  align-items: center;
}

.consultation-text h2 {
  margin-bottom: var(--space-lg);
}

.consultation-text p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

.consultation-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2px;
}

/* ============================
   16. AVAILABLE FOR BOOKINGS / TRAVEL
   ============================ */
#travel {
  text-align: center;
}

#travel p {
  color: var(--color-text-muted);
  margin: var(--space-lg) auto 0;
  max-width: 58ch;
}

.travel-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

.travel-tags span {
  padding: 10px 22px;
  border: 1px solid var(--color-border-soft);
  border-radius: 999px;
  font-size: var(--step-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
}

/* ============================
   17. FINAL CTA
   ============================ */
#finalCta {
  position: relative;
  max-width: none;
  margin: 0;
  padding-block: var(--space-3xl);
  padding-inline: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  overflow: hidden;
  text-align: center;
}

.final-cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.final-cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.final-cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24, 19, 14, 0.55), rgba(24, 19, 14, 0.82));
}

.final-cta-content {
  position: relative;
  z-index: 1;
  max-width: 46ch;
  color: var(--color-text-inverse);
}

.final-cta-content h2 {
  color: var(--color-text-inverse);
  margin-bottom: var(--space-md);
}

.final-cta-content p {
  color: var(--color-text-inverse-muted);
  margin: 0 auto var(--space-xl);
}

.final-cta-content .hero-buttons {
  justify-content: center;
}

/* ============================
   18. CONTACT
   ============================ */
#contact {
  text-align: center;
}

#contact .section-intro {
  margin-inline: auto;
}

.contact-email {
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 5.5vw, 2.6rem);
  margin: var(--space-md) 0 var(--space-lg);
  max-width: 100%;
  padding-bottom: 8px;
  background-image: linear-gradient(var(--color-accent), var(--color-accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: color 0.35s ease, background-size 0.5s var(--ease-out);
}

.contact-email:hover,
.contact-email:focus-visible {
  color: var(--color-accent);
  background-size: 100% 1px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
}

.social-links a {
  color: var(--color-text-muted);
  font-size: var(--step-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.35s ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  color: var(--color-accent);
}

.contact-meta {
  margin-top: var(--space-lg);
  font-size: var(--step-sm);
  letter-spacing: 0.03em;
  color: var(--color-text-muted);
}

/* ============================
   19. FOOTER — dark bookend, mirrors the hero
   ============================ */
footer {
  position: relative;
  max-width: none;
  margin: 0;
  text-align: center;
  padding: var(--space-2xl) var(--space-md) var(--space-xl);
  background-color: var(--color-bg-deep);
  color: var(--color-text-inverse-muted);
  font-size: var(--step-sm);
}

.footer-mark {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-3);
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-text-inverse);
  max-width: none;
  margin-bottom: var(--space-lg);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-sm) var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-meta a,
.footer-time {
  position: relative;
  color: var(--color-text-inverse-muted);
  letter-spacing: 0.02em;
  padding-bottom: 3px;
  transition: color 0.35s ease;
}

.footer-meta a {
  background-image: linear-gradient(var(--color-accent-soft), var(--color-accent-soft));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: color 0.35s ease, background-size 0.45s var(--ease-out);
}

.footer-meta a:hover,
.footer-meta a:focus-visible {
  color: var(--color-text-inverse);
  background-size: 100% 1px;
}

.footer-time::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 8px;
  border-radius: 50%;
  background-color: var(--color-accent-soft);
  vertical-align: middle;
}

.footer-legal {
  font-size: var(--step-sm);
  color: var(--color-text-inverse-muted);
  opacity: 0.6;
}

/* ============================
   20. FOCUS VISIBILITY
   ============================ */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 1px;
}

/* ============================
   21. SCROLL REVEAL
   ============================ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* staggered gallery / grid children, once their parent section is in view */
#work.in-view .work-figure,
#glam.in-view .glam-figure,
#expertise.in-view .expertise-item,
#services.in-view .service-card {
  animation: rise-in 0.75s var(--ease-out) backwards;
}

#work.in-view .work-figure:nth-child(2) { animation-delay: 0.08s; }
#work.in-view .work-figure:nth-child(3) { animation-delay: 0.16s; }
#work.in-view .work-figure:nth-child(4) { animation-delay: 0.24s; }
#work.in-view .work-figure:nth-child(5) { animation-delay: 0.32s; }

#glam.in-view .glam-figure:nth-child(2) { animation-delay: 0.06s; }
#glam.in-view .glam-figure:nth-child(3) { animation-delay: 0.12s; }
#glam.in-view .glam-figure:nth-child(4) { animation-delay: 0.18s; }
#glam.in-view .glam-figure:nth-child(5) { animation-delay: 0.24s; }
#glam.in-view .glam-figure:nth-child(6) { animation-delay: 0.30s; }

#expertise.in-view .expertise-item:nth-child(2) { animation-delay: 0.05s; }
#expertise.in-view .expertise-item:nth-child(3) { animation-delay: 0.10s; }
#expertise.in-view .expertise-item:nth-child(4) { animation-delay: 0.15s; }
#expertise.in-view .expertise-item:nth-child(5) { animation-delay: 0.20s; }
#expertise.in-view .expertise-item:nth-child(6) { animation-delay: 0.25s; }
#expertise.in-view .expertise-item:nth-child(7) { animation-delay: 0.30s; }
#expertise.in-view .expertise-item:nth-child(8) { animation-delay: 0.35s; }

#services.in-view .service-card:nth-child(2) { animation-delay: 0.05s; }
#services.in-view .service-card:nth-child(3) { animation-delay: 0.10s; }
#services.in-view .service-card:nth-child(4) { animation-delay: 0.15s; }
#services.in-view .service-card:nth-child(5) { animation-delay: 0.20s; }
#services.in-view .service-card:nth-child(6) { animation-delay: 0.25s; }
#services.in-view .service-card:nth-child(7) { animation-delay: 0.30s; }
#services.in-view .service-card:nth-child(8) { animation-delay: 0.35s; }

/* ============================
   22. HERO LOAD SEQUENCE
   ============================ */
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-content > * {
  animation: rise-in 0.9s var(--ease-out) backwards;
}

.hero-content > .eyebrow {
  animation-delay: 0.15s;
}

.hero-content > h1 {
  animation-delay: 0.3s;
}

.hero-content > .hero-sub {
  animation-delay: 0.42s;
}

.hero-content > .hero-meta {
  animation-delay: 0.54s;
}

.hero-content > .hero-buttons {
  animation-delay: 0.66s;
}

/* ============================
   23. GRAIN TEXTURE
   ============================ */
.grain {
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================
   24. CUSTOM CURSOR
   ============================ */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--color-accent);
  border: 1px solid transparent;
  pointer-events: none;
  z-index: 400;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out),
    background-color 0.3s ease, border-color 0.3s ease;
  mix-blend-mode: difference;
}

.cursor-dot.hovering {
  width: 34px;
  height: 34px;
  background-color: transparent;
  border-color: var(--color-text-inverse);
}

@media (max-width: 800px) {
  .cursor-dot {
    display: none;
  }
}

/* ============================
   25. MOBILE NAVIGATION
   ============================ */
#menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 200;
}

#menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text-inverse);
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

#navbar.scrolled #menu-toggle span {
  background-color: var(--color-text);
}

#menu-toggle.open span {
  background-color: var(--color-text-inverse) !important;
}

#menu-toggle.open span:first-child {
  transform: translateY(4px) rotate(45deg);
}

#menu-toggle.open span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* ============================
   26. RESPONSIVE
   ============================ */
@media (max-width: 1000px) {
  .expertise-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 900px) {
  :root {
    --space-3xl: 5.5rem;
    --space-2xl: 4rem;
  }

  .about-grid,
  .stats-grid,
  .consultation-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .about-image {
    max-width: 420px;
  }

  .consultation-image {
    order: -1;
    max-width: 420px;
  }

  .work-figure--small {
    align-self: auto;
  }
}

@media (max-width: 800px) {
  .nav-links {
    padding-left: 0;
  }

  #menu-toggle {
    display: flex;
  }

  .nav-inner {
    justify-content: space-between;
  }

  .nav-inner .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background-color: var(--color-bg-deep);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    transform: translateY(-100%);
    transition: transform 0.45s var(--ease-out);
    z-index: 150;
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .nav-links a {
    font-size: var(--step-2);
    color: var(--color-text-inverse);
  }

  .btn-nav {
    padding: 9px 18px;
  }
}

@media (max-width: 640px) {
  .expertise-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 540px) {
  .hero-buttons,
  .final-cta-content .hero-buttons {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    text-align: center;
  }
}

/* ============================
   27. REDUCED MOTION
   ============================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  html {
    scroll-behavior: auto;
  }

  .hero-content > * {
    animation: none !important;
  }

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

  #work.in-view .work-figure,
  #glam.in-view .glam-figure,
  #expertise.in-view .expertise-item,
  #services.in-view .service-card,
  #testimonials.in-view .testimonial-card {
    animation: none !important;
  }

  .hero-scroll span {
    animation: none !important;
  }
}
