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

/* ======================================================================
   COLOR SYSTEM — Intentional, not generic
   ======================================================================
   Philosophy: Deep indigo paper with warm brass/gold accent (light)
   Charcoal graphite with luminous amber accent (dark)
   Both themes feel like the same identity — not inverted versions
   ====================================================================== */

:root {
  /* ── LIGHT THEME ──
     Base: Warm off-white paper with subtle indigo undertone
     Accent: Aged brass — warm, sophisticated, not "gold"
     Secondary: Muted indigo-teal for depth
     ───────────────────────────────────────────────────────────── */

  /* Core surfaces */
  --bg: #FFFFFF;                    /* Pure white */
  --bg-alt: #FAFAFA;                /* Very light gray for sections */
  --bg-card: #FFFFFF;               /* Pure white for elevated cards */

  /* Text hierarchy */
  --text: #0D1117;                  /* Near-black with indigo soul */
  --text-secondary: rgba(13, 17, 23, 0.68);  /* Readable but quiet */
  --text-muted: rgba(13, 17, 23, 0.42);      /* Labels, captions */

  /* Accent — Aged Brass (not generic gold) */
  --accent: #B8860B;                /* Dark goldenrod — warm, grounded */
  --accent-bright: #D4A51A;         /* Brighter for hover states */
  --accent-dim: rgba(184, 134, 11, 0.10);    /* Subtle backgrounds */
  --accent-glow: rgba(184, 134, 11, 0.18);   /* Glows, shadows */

  /* Secondary — Deep Indigo Teal (not generic teal) */
  --indigo: #2D3A4F;                /* Deep indigo with teal undertone */
  --indigo-bright: #3D5A7A;         /* For interactive states */
  --indigo-dim: rgba(45, 58, 79, 0.08);
  --indigo-glow: rgba(45, 58, 79, 0.15);

  /* Borders & dividers */
  --border: rgba(13, 17, 23, 0.08);
  --border-strong: rgba(13, 17, 23, 0.14);

  /* Layered surfaces */
  --nav-bg: rgba(250, 249, 246, 0.88);
  --card-bg: rgba(255, 255, 255, 0.85);
  --form-bg: #FFFFFF;

  /* Shadows — warm, not cool gray */
  --shadow-color: rgba(13, 17, 23, 0.08);
  --shadow-elevated: rgba(13, 17, 23, 0.12);

  /* Atmosphere gradients — subtle, warm */
  --mesh-a: rgba(45, 58, 79, 0.06);      /* Indigo whisper */
  --mesh-b: rgba(184, 134, 11, 0.08);    /* Brass whisper */

  /* Typography */
  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Layout */
  --nav-height: 80px;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
}

/* ── DARK THEME ──
   Not an inversion — a true dark mode with its own soul
   Base: Charcoal graphite with subtle warmth
   Accent: Luminous amber — glows on dark, never harsh
   Secondary: Muted cyan-teal for depth
   ───────────────────────────────────────────────────────────── */

[data-theme="dark"] {
  /* Core surfaces */
  --bg: #000000;                    /* Pure black */
  --bg-alt: #0A0A0A;                /* Very dark gray for sections */
  --bg-card: #111111;               /* Card surface — dark */

  /* Text hierarchy */
  --text: #FFFFFF;                  /* Pure white */
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.44);

  /* Accent — Luminous Amber (warm glow on dark) */
  --accent: #E8B42D;                /* Bright amber — energetic but warm */
  --accent-bright: #FFD04D;         /* Hover — more luminous */
  --accent-dim: rgba(232, 180, 45, 0.12);
  --accent-glow: rgba(232, 180, 45, 0.25);

  /* Secondary — Muted Cyan Teal */
  --indigo: #4A9E9E;                /* Soft cyan-teal for dark */
  --indigo-bright: #6BC4C4;
  --indigo-dim: rgba(74, 158, 158, 0.10);
  --indigo-glow: rgba(74, 158, 158, 0.18);

  /* Borders & dividers */
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.12);

  /* Layered surfaces */
  --nav-bg: rgba(0, 0, 0, 0.9);
  --card-bg: rgba(17, 17, 17, 0.85);
  --form-bg: #111111;

  /* Shadows — deeper, with warmth */
  --shadow-color: rgba(0, 0, 0, 0.35);
  --shadow-elevated: rgba(0, 0, 0, 0.5);

  /* Atmosphere gradients */
  --mesh-a: rgba(74, 158, 158, 0.08);
  --mesh-b: rgba(232, 180, 45, 0.10);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 600px at 10% -10%, var(--mesh-a), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, var(--mesh-b), transparent 50%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background 0.45s ease, color 0.45s ease;
}

::-webkit-scrollbar { width: 0px; }
::selection { background: var(--accent); color: #1a1a1a; }
::-moz-selection { background: var(--accent); color: #1a1a1a; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container-xl {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ======================================================================
   THEME TOGGLE
   ====================================================================== */
.theme-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--text-secondary);
  position: relative;
  z-index: 1002;
  transition: color 0.3s;
}

.theme-toggle:hover {
  color: var(--accent);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.theme-toggle:active svg {
  transform: rotate(360deg);
}

/* ======================================================================
   PRELOADER
   ====================================================================== */
/* ======================================================================
   PRELOADER — Simple, clean, fast
   ====================================================================== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.preloader-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.preloader-mark {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text);
  line-height: 1;
}

.preloader-name {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.preloader-track {
  width: 200px;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 4px;
}

.preloader-bar {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.2s ease-out;
}

.preloader-pct {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  min-height: 1em;
  margin-top: 8px;
}

/* Simple fade out */
.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Page transition: panels slide in from sides */
.panel {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  background: var(--bg);
  z-index: 1;
  transform: translateX(-100%);
  transition: transform 0s;
}

.panel--left { left: 0; }
.panel--right { right: 0; transform: translateX(100%); }

.preloader.transition-in .panel--left {
  animation: slideLeftIn 0.5s cubic-bezier(0.77, 0, 0.18, 1) forwards;
}

.preloader.transition-in .panel--right {
  animation: slideRightIn 0.5s cubic-bezier(0.77, 0, 0.18, 1) forwards;
}

@keyframes slideLeftIn {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(0); }
}

@keyframes slideRightIn {
  0% { transform: translateX(100%); }
  100% { transform: translateX(0); }
}

/* Transition out - panels slide out */
.preloader.transition-out .panel--left {
  animation: slideLeftOut 0.5s cubic-bezier(0.77, 0, 0.18, 1) forwards;
}

.preloader.transition-out .panel--right {
  animation: slideRightOut 0.5s cubic-bezier(0.77, 0, 0.18, 1) forwards;
}

@keyframes slideLeftOut {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

@keyframes slideRightOut {
  0% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

.preloader.transition-out .preloader-stage {
  animation: logoFade 0.25s ease forwards;
}

@keyframes logoFade {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.95); }
}

/* ======================================================================
   CUSTOM CURSOR (Original Design)
   ====================================================================== */
@media (hover: hover) and (pointer: fine) {
  body {
    cursor: none;
  }

  .cursor-main,
  .cursor-ring,
  .cursor-trail {
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
  }

  .cursor-main {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    transition: width 0.15s, height 0.15s, background 0.2s;
    box-shadow: 0 0 8px var(--accent-glow);
    z-index: 100000;
  }

  .cursor-ring {
    width: 36px;
    height: 36px;
    border: 1.5px solid color-mix(in srgb, var(--accent) 45%, transparent);
    border-radius: 50%;
    transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                height 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.3s,
                background 0.3s;
    background: transparent;
  }

  /* Cursor hover states */
  .cursor-hover .cursor-main {
    width: 10px;
    height: 10px;
    background: #fff;
    box-shadow: 0 0 16px var(--accent-glow);
  }

  .cursor-hover .cursor-ring {
    width: 50px;
    height: 50px;
    border-color: var(--accent);
    background: var(--accent-dim);
    backdrop-filter: blur(4px);
  }

  /* Light theme cursor */
  [data-theme="light"] .cursor-main {
    box-shadow: 0 0 8px var(--accent-glow);
  }

  [data-theme="light"] .cursor-ring {
    border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  }

  [data-theme="light"].cursor-hover .cursor-main,
  [data-theme="light"] .cursor-hover .cursor-main {
    box-shadow: 0 0 20px var(--accent-glow);
  }

  /* Click effect */
  .cursor-click .cursor-main {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0.6;
  }

  .cursor-click .cursor-ring {
    transform: translate(-50%, -50%) scale(1.5);
    border-color: transparent;
    background: var(--accent-dim);
  }

  /* Link hover */
  .cursor-link .cursor-ring {
    width: 60px;
    height: 60px;
    border-width: 2px;
    border-color: var(--accent);
    background: var(--accent-dim);
  }
}

/* ======================================================================
   NAVIGATION
   ====================================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 40px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.nav.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1300px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.08em;
  transition: color 0.3s;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  margin-right: 12px;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: 999px;
  transition: color 0.25s, background 0.25s;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.nav-link--active {
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.nav-link--cta {
  color: var(--bg);
  background: var(--accent);
  font-weight: 600;
  margin-left: 4px;
}

.nav-link--cta:hover {
  color: var(--bg);
  background: var(--accent-bright);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* Hamburger — mobile only */
.menu-button {
  width: 40px;
  height: 40px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  position: relative;
  z-index: 1002;
  background: none;
  border: none;
}

.menu-button .line {
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: all 0.3s ease;
  border-radius: 1px;
}

.menu-button .close-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cross {
  position: absolute;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  border-radius: 1px;
}

.cross--1 { transform: rotate(45deg); }
.cross--2 { transform: rotate(-45deg); }

.menu-button.open .line { opacity: 0; }
.menu-button.open .close-icon { opacity: 1; }

/* Nav overlay */
.nav-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 60%;
  max-width: 460px;
  height: 100vh;
  background: var(--nav-bg);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: right 0.5s cubic-bezier(0.77, 0, 0.18, 1);
  z-index: 1001;
  padding: 40px;
  border-left: 1px solid var(--border);
}

.nav-menu.open { right: 0; }

.nav-item {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.nav-item:hover {
  color: var(--accent);
  transform: translateX(8px);
}

.nav-contact-info {
  margin-top: 48px;
  text-align: center;
}

.nav-email {
  display: block;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 4px;
  transition: color 0.2s;
}

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

.nav-location {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.nav-socials {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

.nav-social {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all 0.25s;
}

.nav-social:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ======================================================================
   HERO / INTRO SECTION
   ====================================================================== */
.section--intro {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-height) + 32px) 0 72px;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
}

.intro-kicker,
.hero-headline,
.hero-lead,
.intro-ctas .cta,
.intro-photo-frame,
.hero-scroll {
  opacity: 0;
}

.hero-mesh {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 50% 40% at 20% 30%, var(--mesh-a), transparent 70%),
    radial-gradient(ellipse 45% 35% at 80% 55%, var(--mesh-b), transparent 65%);
  filter: blur(8px);
  opacity: 0.9;
}

.hero-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(8, 1fr);
  gap: 0;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}

.hero-grid-cell {
  border: 1px solid color-mix(in srgb, var(--indigo) 25%, transparent);
  opacity: 0;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  position: relative;
  width: 100%;
  z-index: 1;
}

.intro-content {
  display: flex;
  flex-direction: column;
  max-width: 640px;
}

.intro-kicker {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 20px;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 9vw, 6.4rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--text);
  margin: 0 0 18px;
  overflow: hidden;
}

.hero-brand .char,
.char {
  display: inline-block;
  will-change: transform, opacity;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--accent);
  margin: 0 0 18px;
}

.hero-lead {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--text-secondary);
  font-weight: 400;
  max-width: 34ch;
  line-height: 1.55;
  margin: 0;
}

.intro-ctas {
  display: flex;
  gap: 12px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.intro-photo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.intro-photo-frame {
  position: relative;
  width: min(100%, 420px);
}

.intro-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 2px 28px 2px 28px;
  background: var(--bg-alt);
  position: relative;
  box-shadow:
    0 24px 60px var(--shadow-color),
    0 0 0 1px var(--border);
}

.photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.intro-photo:hover .photo-img {
  transform: scale(1.04);
}

.photo-orbit {
  position: absolute;
  inset: -18px;
  pointer-events: none;
}

.photo-orbit-ring {
  position: absolute;
  inset: 0;
  border: 1.5px dashed color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 8px 36px 8px 36px;
}

.photo-orbit-dot {
  position: absolute;
  top: 12%;
  right: 8%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-dim);
}

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  z-index: 2;
}

.hero-scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  transform-origin: top;
}

/* ======================================================================
   ANIMATED SHAPES (Anime.js)
   ====================================================================== */
.fx-field,
.fx-section {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
  opacity: 0.35; /* Global opacity reduction - shapes stay subtle, never compete with content */
}

.fx-shape {
  position: absolute;
  display: block;
  will-change: transform, opacity;
}

.fx-orb {
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    color-mix(in srgb, var(--accent) 30%, transparent),
    color-mix(in srgb, var(--indigo) 12%, transparent) 55%,
    transparent 72%
  );
}

/* Opacity values significantly reduced - shapes are atmospheric, not decorative focal points */
.fx-orb--1 { width: 260px; height: 260px; top: 8%; left: -6%; opacity: 0.28; }
.fx-orb--2 { width: 160px; height: 160px; top: 55%; right: 4%; opacity: 0.2; }
.fx-orb--3 { width: 100px; height: 100px; bottom: 14%; left: 36%; opacity: 0.18; }
.fx-orb--s1 { width: 180px; height: 180px; top: 6%; right: -4%; opacity: 0.16; }
.fx-orb--s2 { width: 140px; height: 140px; bottom: 8%; left: -3%; opacity: 0.14; }
.fx-orb--s3 { width: 200px; height: 200px; top: 18%; right: 4%; opacity: 0.13; }

.fx-ring {
  border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--accent) 25%, transparent);
  background: transparent;
}

.fx-ring--1 { width: 80px; height: 80px; top: 20%; right: 30%; opacity: 0.35; }
.fx-ring--2 { width: 48px; height: 48px; bottom: 26%; left: 16%; border-color: color-mix(in srgb, var(--indigo) 25%, transparent); opacity: 0.3; }
.fx-ring--s1 { width: 56px; height: 56px; bottom: 16%; right: 12%; opacity: 0.3; }
.fx-ring--s2 { width: 64px; height: 64px; bottom: 20%; left: 10%; opacity: 0.3; }

.fx-square {
  border: 1.5px solid color-mix(in srgb, var(--indigo) 22%, transparent);
  border-radius: 4px;
  background: color-mix(in srgb, var(--indigo) 4%, transparent);
}

.fx-square--1 { width: 34px; height: 34px; top: 42%; left: 46%; opacity: 0.35; }
.fx-square--s1 { width: 28px; height: 28px; top: 38%; left: 5%; opacity: 0.3; }

.fx-diamond {
  width: 26px;
  height: 26px;
  border: 1.5px solid color-mix(in srgb, var(--accent) 25%, transparent);
  transform: rotate(45deg);
  background: var(--accent-dim);
}

.fx-diamond--1 { top: 68%; right: 34%; opacity: 0.35; }
.fx-diamond--s1 { top: 24%; right: 16%; width: 20px; height: 20px; opacity: 0.3; }

.fx-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.3;
}

.fx-dot--1 { top: 16%; left: 30%; }
.fx-dot--2 { top: 44%; right: 16%; width: 4px; height: 4px; }
.fx-dot--3 { bottom: 32%; left: 8%; width: 5px; height: 5px; }
.fx-dot--4 { top: 70%; right: 40%; width: 4px; height: 4px; }
.fx-dot--s1 { top: 28%; right: 10%; }
.fx-dot--s2 { bottom: 24%; left: 18%; width: 4px; height: 4px; }

.fx-line {
  height: 1.5px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 35%, transparent), transparent);
  transform-origin: center;
}

.fx-line--1 { width: 88px; top: 30%; left: 20%; opacity: 0.3; }
.fx-line--s1 { width: 70px; top: 52%; right: 8%; opacity: 0.3; }

.fx-svg {
  position: absolute;
  color: color-mix(in srgb, var(--accent) 20%, transparent);
  overflow: visible;
}

.fx-svg--arcs {
  width: 300px;
  height: 300px;
  top: 6%;
  right: -50px;
  opacity: 0.45;
}

.fx-svg--wave {
  width: 240px;
  height: 60px;
  bottom: 16%;
  right: 16%;
  opacity: 0.35;
  color: color-mix(in srgb, var(--indigo) 30%, transparent);
}

.fx-path { stroke-linecap: round; }

/* Ensure content always sits above decorative shapes */
.section--intro .container-xl,
.section .container-xl {
  position: relative;
  z-index: 1;
}

/* Hero content explicitly above atmosphere */
.hero-layout {
  z-index: 2;
}

.intro-content,
.intro-photo-wrapper {
  position: relative;
  z-index: 3;
}

@media (max-width: 968px) {
  .fx-field .fx-orb--1 { width: 160px; height: 160px; }
  .fx-field .fx-orb--2 { width: 100px; height: 100px; }
  .fx-svg--arcs { width: 180px; height: 180px; right: -70px; }
  .fx-square--1,
  .fx-diamond--1 { display: none; }
}

@media (max-width: 640px) {
  .fx-field .fx-orb--3,
  .fx-ring--2,
  .fx-line--1 { display: none; }
  .fx-section { opacity: 0.25; }
  .hero-scroll { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .fx-field,
  .fx-section,
  .hero-grid { display: none !important; }

  .hero-atmosphere,
  .intro-kicker,
  .hero-headline,
  .hero-lead,
  .intro-ctas .cta,
  .intro-photo-frame,
  .hero-scroll,
  .hero-brand,
  .service-card,
  .skill-hero-card,
  .skill-group,
  .skill-pill,
  .preloader-ring,
  .preloader-dot {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

/* ======================================================================
   BUTTONS / CTAs
   ====================================================================== */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  letter-spacing: 0.2px;
  border-radius: 999px;
}

.cta--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-bright));
  color: var(--bg);
  box-shadow: 0 10px 28px var(--accent-glow);
}

.cta--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px var(--accent-glow);
}

.cta--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.cta--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.cta--full {
  width: 100%;
  justify-content: center;
}

/* ======================================================================
   CV DROPDOWN
   ====================================================================== */
.cv-dropdown {
  position: relative;
  display: inline-flex;
}

.cv-dropdown-trigger {
  position: relative;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cv-dropdown-trigger img {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Footer link as dropdown trigger - ensure proper layout */
.footer-link.cv-dropdown-trigger {
  flex-direction: row;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.footer-link.cv-dropdown-trigger img {
  margin-top: -1px; /* Optical alignment */
}

.cv-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 180px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 16px 40px var(--shadow-elevated);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  z-index: 100;
}

.cv-dropdown:hover .cv-dropdown-menu,
.cv-dropdown:focus-within .cv-dropdown-menu,
.cv-dropdown.open .cv-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cv-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 50;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.cv-dropdown-item:hover {
  background: var(--accent-dim);
  color: var(--accent);
}

.cv-dropdown-item img {
  flex-shrink: 0;
}

/* ======================================================================
   SECTION COMMON
   ====================================================================== */
.cv-page {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: calc(var(--nav-height) + 72px) 0 96px;
}

.cv-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 42px;
  border-bottom: 1px solid var(--border);
}

.cv-kicker {
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cv-hero h1 {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.cv-hero p {
  max-width: 540px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.cv-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.cv-viewer {
  margin-top: 42px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: 0 18px 50px var(--shadow-color);
}

.cv-viewer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.78rem;
}

.cv-viewer-bar span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 600;
}

.cv-viewer-bar img {
  display: block;
}

.cv-viewer-meta {
  color: var(--text-muted);
}

.cv-preview-image {
  display: block;
  width: 100%;
  max-width: 816px;
  height: auto;
  margin: 0 auto;
  background: var(--bg-alt);
}

.cv-footer {
  padding-top: 0;
}

@media (max-width: 700px) {
  .cv-page {
    width: min(100% - 32px, 1180px);
    padding-top: calc(var(--nav-height) + 48px);
    padding-bottom: 64px;
  }

  .cv-hero {
    align-items: start;
    flex-direction: column;
    padding-bottom: 30px;
  }

  .cv-actions {
    justify-content: flex-start;
  }

  .cv-viewer {
    margin-top: 28px;
  }

  .cv-viewer-meta {
    display: none;
  }

  .cv-preview-image {
    width: 100%;
  }
}

.section {
  padding: 120px 0;
  position: relative;
  transition: background 0.4s ease;
}

.section--work,
.section--web,
.section--services,
.section--skills,
.section--contact {
  background: color-mix(in srgb, var(--bg-alt) 88%, transparent);
}

.section-header {
  margin-bottom: 56px;
}

.section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  transition: color 0.3s;
}

.section-accent {
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--indigo));
  margin-top: 16px;
  border-radius: 2px;
}

/* ======================================================================
   WORK / FEATURED PROJECTS
   ====================================================================== */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.work-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.4s ease;
}

.work-card-url {
  display: block;
  width: 100%;
  text-decoration: none;
}

.work-card-img-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--card-bg);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px var(--shadow-color);
  transition: transform 0.4s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  position: relative;
}

.work-card-img-wrap img {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
  display: block;
  border-radius: 4px;
  transition: transform 0.4s ease;
}

.browser-chrome {
  display: none;
}

.work-card--web .work-card-img-wrap {
  aspect-ratio: 16 / 10;
  padding: 0;
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--indigo) 12%, transparent), transparent 50%),
    var(--bg-alt);
  align-items: stretch;
  justify-content: flex-start;
}

.work-card--web .browser-chrome {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 12px;
  background: color-mix(in srgb, var(--bg-card) 88%, transparent);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.work-card--web .browser-chrome span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border);
}

.work-card--web .browser-chrome span:nth-child(1) { background: #E07A5F; }
.work-card--web .browser-chrome span:nth-child(2) { background: var(--accent); }
.work-card--web .browser-chrome span:nth-child(3) { background: var(--indigo); }

.work-card--web .work-card-img-wrap img {
  max-width: none;
  max-height: none;
  width: 100%;
  height: calc(100% - 28px);
  object-fit: cover;
  object-position: top center;
  border-radius: 0;
}

.work-card:hover .work-card-img-wrap {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  box-shadow: 0 28px 50px var(--shadow-elevated);
}

.work-card:hover .work-card-img-wrap img {
  transform: scale(1.04);
}

.work-card-text-wrapper {
  display: block;
  padding: 0;
}

.work-card-text {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.work-card-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.8vw, 2rem);
  font-weight: 600;
  margin: 0;
  line-height: 1.2;
}

.work-card-category {
  background: var(--indigo-dim);
  color: var(--indigo);
  border: 1px solid color-mix(in srgb, var(--indigo) 28%, transparent);
  border-radius: 999px;
  padding: 3px 10px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 3px;
}

.work-card-category--soon {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
}

.work-card-category--dev {
  background: transparent;
  color: var(--text-secondary);
  border-color: color-mix(in srgb, var(--indigo) 25%, transparent);
}

.work-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
}

/* Store badges on work cards */
.work-card-stores {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.store-badge-mini {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.store-badge-mini:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow-elevated);
}

.store-badge-mini.appstore {
  background: #ffffff;
  border-color: #e0e0e0;
}

.store-badge-mini.appstore:hover {
  background: #f5f5f5;
}

.store-badge-mini.playstore {
  background: #ffffff;
  border-color: #e0e0e0;
}

.store-badge-mini.playstore:hover {
  background: #f5f5f5;
}

.store-badge-mini img {
  width: 18px;
  height: 18px;
  display: block;
}

/* View All button */
.work-cta-wrap {
  display: flex;
  justify-content: center;
  margin-top: 56px;
}

/* ======================================================================
   WEB PROJECTS — dedicated section
   ====================================================================== */
.web-list {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.web-feature {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 40px;
  align-items: center;
}

.web-feature--reverse .web-feature-media {
  order: 2;
}

.web-feature-media {
  display: block;
  min-width: 0;
}

.web-browser {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: 0 24px 50px var(--shadow-color);
  transition: transform 0.4s ease, box-shadow 0.35s ease, border-color 0.3s ease;
}

.web-feature:hover .web-browser {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  box-shadow: 0 32px 60px var(--shadow-elevated);
}

.web-browser .browser-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  background: color-mix(in srgb, var(--bg-alt) 90%, transparent);
  border-bottom: 1px solid var(--border);
}

.web-browser .browser-chrome span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
}

.web-browser .browser-chrome span:nth-child(1) { background: #E07A5F; }
.web-browser .browser-chrome span:nth-child(2) { background: var(--accent); }
.web-browser .browser-chrome span:nth-child(3) { background: var(--indigo); }

.web-browser-screen {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-alt);
}

.web-browser-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.55s ease;
}

.web-feature:hover .web-browser-screen img {
  transform: scale(1.03);
}

.web-feature-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.web-feature-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.web-feature-desc {
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.65;
  max-width: 38ch;
}

.web-feature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

@media (max-width: 968px) {
  .web-list { gap: 44px; }

  .web-feature {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .web-feature--reverse .web-feature-media {
    order: 0;
  }

  .web-feature-body {
    align-items: center;
    text-align: center;
  }

  .web-feature-desc {
    max-width: 48ch;
  }

  .web-feature-actions,
  .web-feature-body .chip-row {
    justify-content: center;
  }
}

/* ======================================================================
   SERVICES — visual cards, PKR
   ====================================================================== */
.section-lead {
  margin-top: 14px;
  max-width: 46ch;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.55;
}

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

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: transform 0.35s ease, border-color 0.3s ease, box-shadow 0.35s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  box-shadow: 0 20px 40px var(--shadow-elevated);
}

.service-visual {
  position: relative;
  height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 40%, var(--mesh-a), transparent 55%),
    radial-gradient(circle at 80% 20%, var(--mesh-b), transparent 50%),
    color-mix(in srgb, var(--bg-alt) 80%, transparent);
}

.service-visual--mobile .sv-phone {
  width: 42px;
  height: 72px;
  border: 2px solid var(--border-strong);
  border-radius: 8px;
  background: var(--bg-card);
  position: relative;
  z-index: 1;
  box-shadow: 0 12px 24px var(--shadow-color);
}

.service-visual--mobile .sv-phone::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  width: 14px;
  height: 3px;
  border-radius: 2px;
  background: var(--border);
  transform: translateX(-50%);
}

.service-visual--mobile .sv-phone--back {
  position: absolute;
  transform: translate(18px, -6px) rotate(8deg);
  opacity: 0.45;
  z-index: 0;
}

.service-visual--web .sv-browser {
  width: 118px;
  height: 78px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  overflow: hidden;
  box-shadow: 0 12px 28px var(--shadow-color);
}

.sv-dots {
  display: block;
  height: 16px;
  background: color-mix(in srgb, var(--bg-alt) 90%, transparent);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.sv-dots::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 9px 0 0 var(--indigo), 18px 0 0 var(--border);
}

.sv-screen {
  display: block;
  height: calc(100% - 16px);
  background:
    linear-gradient(90deg, var(--accent-dim) 32%, transparent 32%),
    linear-gradient(180deg, transparent 40%, var(--indigo-dim) 40%);
  opacity: 0.9;
}

.service-visual--shop .sv-bag {
  width: 44px;
  height: 36px;
  border: 2px solid var(--border-strong);
  border-radius: 0 0 10px 10px;
  position: relative;
}

.service-visual--shop .sv-bag::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 8px;
  right: 8px;
  height: 16px;
  border: 2px solid var(--border-strong);
  border-bottom: none;
  border-radius: 12px 12px 0 0;
}

.service-visual--shop .sv-card {
  position: absolute;
  width: 48px;
  height: 30px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--accent), var(--accent-bright));
  transform: translate(28px, 18px) rotate(-12deg);
  box-shadow: 0 8px 18px var(--shadow-color);
  opacity: 0.9;
}

.service-visual--site .sv-layers,
.service-visual--land .sv-page {
  width: 86px;
  height: 58px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  box-shadow: 0 10px 22px var(--shadow-color);
  position: relative;
}

.service-visual--site .sv-layers::before,
.service-visual--site .sv-layers::after {
  content: '';
  position: absolute;
  left: 8px;
  right: 8px;
  height: 6px;
  border-radius: 3px;
  background: var(--indigo-dim);
}

.service-visual--site .sv-layers::before { top: 14px; width: 55%; }
.service-visual--site .sv-layers::after { top: 28px; background: var(--accent-dim); }

.service-visual--land .sv-page::before {
  content: '';
  position: absolute;
  inset: 10px 14px auto;
  height: 8px;
  border-radius: 4px;
  background: var(--accent);
  opacity: 0.7;
}

.service-visual--land .sv-page::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  top: 28px;
  height: 18px;
  border-radius: 3px;
  background: repeating-linear-gradient(
    transparent 0 4px,
    var(--border) 4px 5px
  );
}

.service-visual--fix .sv-wrench {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px dashed color-mix(in srgb, var(--accent) 50%, transparent);
  position: relative;
}

.service-visual--fix .sv-wrench::before {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 2px solid var(--accent);
}

.service-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.service-tag {
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 4px 9px;
  border-radius: 999px;
}

.service-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.service-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.55;
  flex: 1;
}

.service-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.service-price {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
  font-size: 0.92rem;
}

.service-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.services-note {
  margin-top: 28px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.services-note a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ======================================================================
   SKILLS & TOOLS
   ====================================================================== */
.skills-layout {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.skill-featured {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.skill-hero-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  transition: transform 0.35s ease, border-color 0.3s ease, box-shadow 0.35s ease;
}

.skill-hero-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
  box-shadow: 0 16px 32px var(--shadow-elevated);
}

.skill-hero-card img {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  object-fit: contain;
}

.skill-hero-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.skill-hero-card p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.skill-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 28px;
}

.skill-group-title {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text);
  transition: border-color 0.25s, transform 0.25s;
}

.skill-pill:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  transform: translateY(-2px);
}

.skill-pill img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

/* Legacy skill-card kept for any leftover refs */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.skill-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px 26px;
  text-align: center;
}

.skill-bar {
  width: 100%;
  height: 5px;
  background: var(--bg-alt);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.skill-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  position: relative;
}

.skill-fill::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 6px;
  height: 100%;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 3px;
}

.skill-level {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ======================================================================
   ABOUT
   ====================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-text strong { color: var(--text); }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat {
  padding: 24px 16px;
  text-align: center;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.stat:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  transform: translateY(-2px);
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 6px;
}

/* ======================================================================
   CONTACT
   ====================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.contact-text p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: all 0.2s;
  width: fit-content;
}

.contact-link:hover {
  color: var(--accent);
  transform: translateX(4px);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--form-bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.25s;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
}

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

.form-status {
  font-size: 0.85rem;
  text-align: center;
  min-height: 24px;
}

/* ======================================================================
   FOOTER
   ====================================================================== */
.footer {
  padding: 72px 0 40px;
  border-top: 1px solid var(--border);
}

/* Single-line footers on the Look Book / project pages */
.footer > .container-xl > p {
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.3px;
  text-align: center;
}

/* ======================================================================
   REVEAL ANIMATIONS
   ====================================================================== */
[data-reveal] {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal="down"] { transform: translateY(40px); }
[data-reveal="left"] { transform: translateX(-50px); }
[data-reveal="right"] { transform: translateX(50px); }
[data-reveal="fade"] { transform: none; }
[data-reveal="scale"] { transform: scale(0.4); }

[data-reveal].visible {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Stagger children */
.work-card:nth-child(1) { transition-delay: 0s; }
.work-card:nth-child(2) { transition-delay: 0.1s; }
.work-card:nth-child(3) { transition-delay: 0.2s; }

.service-item:nth-child(1) { transition-delay: 0s; }
.service-item:nth-child(2) { transition-delay: 0.08s; }
.service-item:nth-child(3) { transition-delay: 0.16s; }
.service-item:nth-child(4) { transition-delay: 0.24s; }

/* ======================================================================
   EXPERIENCE TIMELINE
   ====================================================================== */
.subsection-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
  color: var(--text);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 24px;
  align-items: start;
}

.timeline-marker {
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: 26px;
  height: 100%;
}

.timeline-marker span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-dim);
  position: relative;
  z-index: 1;
}

.timeline-marker::before {
  content: '';
  position: absolute;
  top: 44px;
  bottom: -32px;
  left: 50%;
  width: 1px;
  background: linear-gradient(to bottom, var(--border), transparent);
  transform: translateX(-50%);
}

.timeline-item:last-child .timeline-marker::before {
  display: none;
}

.timeline-body {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px 22px;
  backdrop-filter: blur(10px);
  transition: transform 0.35s ease, border-color 0.3s ease, box-shadow 0.35s ease;
}

.timeline-item:hover .timeline-body {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 32%, transparent);
  box-shadow: 0 16px 34px var(--shadow-elevated);
}

.timeline-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.timeline-role {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.timeline-period {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

.timeline-org {
  font-size: 0.88rem;
  color: var(--indigo);
  font-weight: 500;
  margin-top: 4px;
}

.timeline-list {
  list-style: none;
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timeline-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.timeline-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 70%, transparent);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.chip {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--indigo-dim);
  color: var(--text-secondary);
}

/* Education & certification */
.edu-block {
  margin-top: 64px;
}

.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.edu-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-left: 2px solid color-mix(in srgb, var(--indigo) 55%, transparent);
  border-radius: 4px var(--radius) var(--radius) 4px;
  padding: 20px 22px;
  transition: transform 0.35s ease, border-color 0.3s ease;
}

.edu-card:hover {
  transform: translateY(-3px);
  border-left-color: var(--accent);
}

.edu-card--cert {
  border-left-color: color-mix(in srgb, var(--accent) 65%, transparent);
}

.edu-period {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.edu-degree {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.35;
  margin-bottom: 6px;
}

.edu-org {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.edu-mark {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
}

/* ======================================================================
   ABOUT — "right now" note
   ====================================================================== */
.about-now {
  margin-top: 8px;
  padding: 18px 20px;
  border-left: 2px solid color-mix(in srgb, var(--accent) 60%, transparent);
  border-radius: 4px var(--radius) var(--radius) 4px;
  background: var(--accent-dim);
  font-size: 0.92rem;
}

.about-now-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

/* ======================================================================
   PROCESS
   ====================================================================== */
.process-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  counter-reset: none;
}

.process-step {
  position: relative;
  padding: 26px 24px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.3s ease, box-shadow 0.35s ease;
}

.process-step::after {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.process-step:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
  box-shadow: 0 16px 32px var(--shadow-elevated);
}

.process-step:hover::after {
  opacity: 1;
}

.process-index {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 14px;
}

.process-name {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}

.process-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ======================================================================
   CONTACT STATUS
   ====================================================================== */
.contact-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--indigo) 35%, transparent);
  background: var(--indigo-dim);
  color: var(--indigo);
  margin-bottom: 20px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--indigo);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--indigo) 18%, transparent);
}

/* ======================================================================
   FOOTER
   ====================================================================== */
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  text-align: left;
  padding-bottom: 44px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text);
  transition: color 0.3s;
}

.footer-logo:hover {
  color: var(--accent);
}

.footer-tagline {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 34ch;
}

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

.footer-heading {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.25s, transform 0.25s;
}

.footer-link:hover {
  color: var(--accent);
  transform: translateX(3px);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.nav-item--alt {
  color: var(--accent);
}

/* ======================================================================
   RESPONSIVE
   ====================================================================== */

/* Tablet */
/* Tablet */
@media (max-width: 1100px) {
  .nav-link { padding: 8px 9px; font-size: 0.8rem; }
}

@media (max-width: 968px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }

  .intro-content {
    max-width: none;
    align-items: center;
  }

  .hero-lead {
    max-width: 40ch;
  }

  .intro-ctas {
    justify-content: center;
  }

  .intro-photo-wrapper {
    order: -1;
  }

  .intro-photo-frame {
    width: min(100%, 280px);
  }

  .fx-field {
    opacity: 0.5;
  }

  .nav-links { display: none; }
  .menu-button { display: flex; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .skill-featured { grid-template-columns: 1fr; }
  .skill-groups { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .nav-menu {
    width: 80%;
  }

  .nav-item {
    font-size: 2.2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer-col--brand {
    grid-column: 1 / -1;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .container-xl { padding: 0 20px; }
  .nav { padding: 0 20px; }

  .section { padding: 80px 0; }

  .nav-item { font-size: 1.8rem; }

  .intro-greeting { font-size: 1rem; }

  .intro-clients { gap: 18px; }
  .client-logo { height: 18px; }

  .intro-ctas { flex-direction: column; }
  .intro-ctas .cta { justify-content: center; }

  .skills-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .skill-card { padding: 20px 16px 22px; }
  .work-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }

  .service-item {
    grid-template-columns: 32px 1fr;
    padding: 20px 16px;
  }

  .service-price {
    grid-column: 2;
    grid-row: 2;
    padding-top: 8px;
  }

  .about-stats { gap: 12px; }

  .stat { padding: 20px 12px; }
  .stat-num { font-size: 1.6rem; }

  .nav-menu {
    width: 100%;
    max-width: none;
    border-left: none;
  }

  .timeline-item {
    grid-template-columns: 16px 1fr;
    gap: 16px;
  }

  .timeline-body { padding: 20px 18px; }
  .timeline-role { font-size: 1.08rem; }
  .timeline-top { gap: 6px; }
  .edu-block { margin-top: 48px; }
  .edu-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }

  .footer { padding: 56px 0 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { justify-content: flex-start; }
}

/* Small phones */
@media (max-width: 480px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .skill-card { padding: 18px 12px 20px; }
  .skill-icon { width: 36px; height: 36px; margin: 0 auto 10px; }
  .skill-name { font-size: 0.85rem; margin-bottom: 10px; }
}
