/* ============================================================
   Govinda Krishna — Portfolio
   Cinematic dark theme · smoky fog · cream display type
   Clash Display + General Sans
   ============================================================ */

:root {
  --bg:        #0a0a0b;
  --card:      #0e0e11;
  --card-hov:  #131318;
  --cream:     #e4ded7;   /* big display type (matches reference) */
  --text:      #efede7;   /* body */
  --muted:     #8f8f96;
  --muted-2:   #56565c;
  --line:      rgba(255, 255, 255, 0.10);
  --line-soft: rgba(255, 255, 255, 0.06);
  --accent:    #c8ff4d;   /* lime highlight */
  --accent-ink:#0a0a0b;
  --purple:    #8b5cf6;

  --font-display: "Mona Sans Variable", "Mona Sans", "Archivo", system-ui, sans-serif;
  --font-body: "Mona Sans Variable", "Mona Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1280px;
  --pad: clamp(1.25rem, 4vw, 2.75rem);
  --section-y: clamp(5rem, 12vw, 11rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
em { font-style: normal; color: var(--text); }
strong { color: var(--text); font-weight: 600; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ============================================================
   Smoky fog background
   ============================================================ */
.fog { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; background: var(--bg); }
.fog__blooms {
  position: absolute; inset: -8%;
  background: url("assets/hero-fog.jpg") center center / cover no-repeat;
  opacity: 0.95;
  animation: bloomDrift 46s ease-in-out infinite alternate;
  will-change: transform;
}
.fog__grain {
  position: absolute; inset: 0;
  background-image: url("assets/noise.svg");
  background-size: 280px 280px;
  opacity: 0.04;
}
.fog__vignette {
  position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 50% 30%, transparent 40%, rgba(0,0,0,0.55) 100%);
}
@keyframes bloomDrift {
  0%   { transform: translate3d(-3%, -2%, 0) scale(1.05); }
  100% { transform: translate3d(4%, 4%, 0) scale(1.18); }
}

/* keep all real content above the fog */
.nav, main, .footer { position: relative; z-index: 2; }

/* ============================================================
   Custom cursor
   ============================================================ */
.cursor {
  position: fixed; top: 0; left: 0; width: 36px; height: 36px;
  background: #fff; border-radius: 999px;
  pointer-events: none; z-index: 9999; mix-blend-mode: difference;
  transform: translate3d(-50%, -50%, 0); will-change: transform, width, height;
}
@media (hover: none) { .cursor { display: none; } }

/* ============================================================
   Preloader
   ============================================================ */
.preloader { position: fixed; inset: 0; z-index: 1000; background: var(--bg); display: grid; place-items: center; }
.preloader__words {
  display: flex; gap: clamp(.5rem, 2vw, 1.4rem);
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.5rem, 5vw, 3.25rem); letter-spacing: -0.02em; color: var(--cream);
}
.preloader__words span { opacity: 0; transform: translateY(110%) rotate(6deg); display: inline-block; }
.preloader__words span:nth-child(2) { color: var(--accent); }

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(1rem, 2vw, 1.6rem) var(--pad); mix-blend-mode: difference;
  transition: padding .4s var(--ease);
}
/* Once scrolled off the hero, fade a soft vignette scrim UNDER the nav so
   page content (project-card icons, previews) melts away instead of bleeding
   through — matching the site's fog/vignette feel. It lives on a ::before
   layer (gradient + masked blur, both fading to transparent) so there's no
   hard edge or dark band, and the nav links themselves stay perfectly crisp. */
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0; transition: opacity .45s var(--ease);
  background: linear-gradient(to bottom,
              rgba(10, 10, 11, 0.85) 0%,
              rgba(10, 10, 11, 0.45) 45%,
              rgba(10, 10, 11, 0) 100%);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  -webkit-mask-image: linear-gradient(to bottom, #000 38%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 38%, transparent 100%);
}
.nav.is-scrolled { mix-blend-mode: normal; padding-block: clamp(0.7rem, 1.4vw, 1.05rem); }
.nav.is-scrolled::before { opacity: 1; }
.nav__cta-left {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.5); border-radius: 100px; padding: 0.7em 1.3em; color: var(--text);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.nav__cta-left:hover { background: var(--text); color: var(--bg); }
.nav__links { display: flex; align-items: center; gap: clamp(1.2rem, 3vw, 2.6rem); }
.nav__links a { font-size: 0.98rem; font-weight: 500; position: relative; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 100%; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
@media (max-width: 560px) {
  .nav__cta-left { padding: 0.6em 1em; font-size: 0.7rem; }
  .nav__links { gap: 1rem; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: 7rem 9rem; }
.hero__stage { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; }
.hero__name {
  font-family: var(--font-display); font-weight: 800; color: var(--cream);
  font-size: clamp(3.6rem, 17vw, 16rem); line-height: 0.84; letter-spacing: -0.035em;
  text-align: center; position: relative; z-index: 1;
}
.hero__name .line { display: block; overflow: hidden; }
.hero__name .line > span { display: block; }

/* avatar + open-to-work ribbon, overlapping the name */
.hero__portrait { position: absolute; top: 53%; left: 50%; transform: translate(-50%, -50%); z-index: 2; }
.avatar {
  width: clamp(140px, 17vw, 230px); aspect-ratio: 1;
  border-radius: clamp(20px, 2.5vw, 34px); overflow: hidden;
  background: linear-gradient(160deg, #9b7bf0, #6d56c9);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.08);
  filter: grayscale(1) brightness(0.92);
  transition: filter 0.55s var(--ease);
  will-change: transform;
}
.hero__portrait:hover .avatar { filter: grayscale(0) brightness(1); }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ribbon {
  position: absolute; bottom: 14%; left: 50%;
  transform: translateX(-46%) translateY(14px) rotate(-3deg) scale(0.96);
  white-space: nowrap; background: #f3f1e9; color: #18181b;
  font-size: clamp(0.7rem, 1.2vw, 0.9rem); font-weight: 600;
  padding: 0.5em 0.9em; border-radius: 8px; box-shadow: 0 12px 30px -8px rgba(0,0,0,0.6);
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.hero__portrait:hover .ribbon {
  opacity: 1;
  transform: translateX(-46%) translateY(0) rotate(-3deg) scale(1);
}
.ribbon__hl { background: var(--accent); padding: 0.1em 0.35em; border-radius: 4px; }
/* Touch devices have no hover — show the avatar in colour + badge by default */
@media (hover: none) {
  .avatar { filter: none; }
  .ribbon { opacity: 1; transform: translateX(-46%) translateY(0) rotate(-3deg) scale(1); }
}

/* corner status text */
.hero__corners { width: 100%; }
.hero__corner {
  position: absolute; bottom: clamp(2rem, 6vh, 4rem); max-width: 34ch; color: var(--text);
  font-size: clamp(0.95rem, 1.4vw, 1.15rem); line-height: 1.45;
}
.hero__corner--l { left: var(--pad); text-align: left; }
.hero__corner--r { right: var(--pad); text-align: right; }
.hero__corner a, .hero__corner strong { color: var(--cream); }
.hero__corner a { text-decoration: underline; text-underline-offset: 3px; }
.hero__corner .ok { color: var(--accent); }

@media (max-width: 720px) {
  .hero { padding-block: 6.5rem 3rem; min-height: auto; }
  .hero__stage { display: block; margin-bottom: 1.5rem; }
  .hero__name { font-size: clamp(3.2rem, 18vw, 6rem); }
  .hero__portrait { position: relative; top: auto; left: auto; transform: none; width: fit-content; margin: -1rem auto 0; }
  .avatar { width: clamp(130px, 40vw, 170px); }
  .hero__corners { display: flex; flex-direction: column; gap: 1rem; padding-inline: var(--pad); margin-top: 1.5rem; }
  .hero__corner { position: static; max-width: none; text-align: left !important; }
}

/* ============================================================
   Section heads
   ============================================================ */
.section-head {
  display: flex; align-items: baseline; gap: 1rem;
  padding-top: clamp(2rem, 4vw, 3rem); padding-bottom: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}
.section-no { font-family: var(--font-display); color: var(--accent); font-size: 0.9rem; font-weight: 600; }
.section-head h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.6rem, 4vw, 2.6rem); letter-spacing: -0.02em; color: var(--cream); }

/* ============================================================
   Statement
   ============================================================ */
.statement { padding-block: var(--section-y); }
.statement__text {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.9rem, 5.6vw, 5rem); line-height: 1.06; letter-spacing: -0.02em;
  max-width: 20ch; margin-inline: auto; text-align: center;
}
.statement__text .w { color: var(--muted-2); transition: color .3s var(--ease); display: inline-block; }
.statement__text .w.on { color: var(--cream); }

/* ============================================================
   About
   ============================================================ */
.about { padding-bottom: var(--section-y); }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); }
.about__col { display: flex; flex-direction: column; gap: 1.6rem; }
.about__col p { font-size: clamp(1.05rem, 1.7vw, 1.4rem); line-height: 1.55; color: var(--muted); }
.about__col p strong, .about__col p em { color: var(--text); }
@media (max-width: 760px) { .about__grid { grid-template-columns: 1fr; } }

/* ============================================================
   Skills
   ============================================================ */
.skills { padding-bottom: var(--section-y); }
.skills__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
.skill { background: var(--bg); padding: clamp(1.5rem, 3vw, 2.5rem); display: flex; flex-direction: column; gap: 0.9rem; transition: background .4s var(--ease); }
.skill:hover { background: var(--card); }
.skill h4 { font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; letter-spacing: -0.01em; color: var(--cream); }
.skill p { color: var(--muted); font-size: 1rem; line-height: 1.6; }
@media (max-width: 860px) { .skills__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .skills__grid { grid-template-columns: 1fr; } }

/* ============================================================
   Experience & Education
   ============================================================ */
.exp { padding-bottom: var(--section-y); }
.exp__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); }
.exp__kicker { font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.8rem; }
.exp__item { padding-block: 1.4rem; border-top: 1px solid var(--line); }
.exp__item:first-of-type { border-top: none; padding-top: 0; }
.exp__top { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.exp__role { font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; letter-spacing: -0.01em; color: var(--cream); }
.exp__time { color: var(--muted-2); font-size: 0.85rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.exp__org { display: block; color: var(--accent); font-size: 0.95rem; margin: 0.3rem 0 0.6rem; }
.exp__item p { color: var(--muted); font-size: 0.98rem; line-height: 1.55; }
@media (max-width: 760px) { .exp__grid { grid-template-columns: 1fr; } }

/* ============================================================
   Marquee
   ============================================================ */
.marquee {
  border-block: 1px solid var(--line); padding-block: clamp(1.4rem, 3vw, 2.4rem); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: inline-flex; align-items: center; gap: 1.6rem; white-space: nowrap;
  font-family: var(--font-display); font-weight: 500; color: var(--cream);
  font-size: clamp(1.2rem, 3vw, 2.1rem); letter-spacing: -0.01em;
  animation: scroll-x 32s linear infinite; will-change: transform;
}
.marquee__track i { color: var(--accent); font-style: normal; font-size: 0.7em; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   Projects  (full-width horizontal cards)
   ============================================================ */
.work { padding-block: var(--section-y); }
.work__head { text-align: center; margin-bottom: clamp(3rem, 7vw, 6rem); }
.work__heading {
  font-family: var(--font-display); font-weight: 800; color: var(--cream);
  font-size: clamp(3rem, 12vw, 10rem); line-height: 0.86; letter-spacing: -0.035em; text-transform: uppercase;
}
.work__lead { max-width: 50ch; margin: 1.5rem auto 0; color: var(--muted); font-size: clamp(1.05rem, 1.7vw, 1.35rem); line-height: 1.5; }

.work__list { display: flex; flex-direction: column; gap: clamp(1.5rem, 3vw, 2.5rem); }
.pcard {
  display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: clamp(1.5rem, 4vw, 4rem);
  background: var(--card); border: 1px solid var(--line-soft); border-radius: 24px;
  padding: clamp(1.75rem, 4vw, 3.5rem); position: relative; overflow: hidden;
  transition: border-color .5s var(--ease), background .5s var(--ease);
}
.pcard::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s var(--ease);
  background: radial-gradient(90% 90% at 85% 0%, rgba(200,255,77,0.08), transparent 50%);
}
.pcard:hover { border-color: var(--line); background: var(--card-hov); }
.pcard:hover::after { opacity: 1; }
.pcard__icons { display: flex; gap: 0.7rem; margin-bottom: 1.6rem; }
.iconbtn {
  width: 44px; height: 44px; border-radius: 50%; background: #f3f1e9; color: #18181b;
  display: grid; place-items: center; transition: transform .3s var(--ease), background .3s var(--ease);
}
.iconbtn svg { width: 19px; height: 19px; }
.iconbtn:hover { transform: translateY(-3px); background: var(--accent); }
.pcard__year { color: var(--muted-2); font-size: 0.85rem; font-variant-numeric: tabular-nums; margin-bottom: 0.6rem; display: block; }
.pcard__title { font-family: var(--font-display); font-weight: 800; color: var(--cream); font-size: clamp(2rem, 4.5vw, 3.4rem); letter-spacing: -0.02em; line-height: 1; }
.pcard__sub { color: var(--muted); font-size: 1rem; margin: 0.5rem 0 1.2rem; display: block; }
.pcard__desc { color: var(--muted); font-size: clamp(0.95rem, 1.3vw, 1.05rem); line-height: 1.6; margin-bottom: 1.6rem; }
.pcard__tags { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.pcard__tags span { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text); }
.pcard__note { color: var(--muted-2); font-size: 0.82rem; letter-spacing: 0.05em; }

/* browser-window preview */
.browser { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #08080a; box-shadow: 0 30px 70px -25px rgba(0,0,0,0.8); }
.browser__bar { display: flex; align-items: center; gap: 0.45rem; padding: 0.7rem 0.9rem; background: #141418; border-bottom: 1px solid var(--line-soft); }
.browser__bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3a40; }
.browser__bar i:nth-child(1) { background: #ff5f57; } .browser__bar i:nth-child(2) { background: #febc2e; } .browser__bar i:nth-child(3) { background: #28c840; }
.browser__bar span { margin-left: 0.6rem; font-size: 0.72rem; color: var(--muted-2); font-family: var(--font-body); }
.browser__shot { aspect-ratio: 16 / 10; overflow: hidden; }
.browser__shot img, .browser__shot video { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.browser__shot--ph { display: grid; place-items: center; background: radial-gradient(120% 120% at 30% 20%, #1a1a22, #0a0a0c); }
.ph-mono { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.5rem, 6vw, 4rem); color: var(--cream); opacity: 0.85; }
.ph-tag { position: absolute; bottom: 14px; font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted-2); }
.browser__shot--ph { position: relative; }

/* ============================================================
   Border Beam — a light that travels around a rounded border.
   Pure-CSS port of the React "motion/react" BorderBeam component
   (no React/Tailwind/motion needed). Drop
   <span class="border-beam"></span> inside any position:relative
   + border-radius'd container. Tunables (set on the span or parent):
   --bb-color (default lime accent), --bb-duration, --bb-width.
   ============================================================ */
@property --bb-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.border-beam {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  border-radius: inherit; padding: var(--bb-width, 1.5px);
  background: conic-gradient(from var(--bb-angle),
    transparent 0deg,
    var(--bb-color, var(--accent)) 18deg,
    #ffffff 30deg,
    var(--bb-color, var(--accent)) 42deg,
    transparent 60deg,
    transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: border-beam-run var(--bb-duration, 7s) linear infinite;
}
@keyframes border-beam-run { to { --bb-angle: 360deg; } }
/* stagger the four project-card beams so they don't travel in lockstep */
.work__list .pcard:nth-child(2) .border-beam { animation-delay: -1.75s; }
.work__list .pcard:nth-child(3) .border-beam { animation-delay: -3.5s; }
.work__list .pcard:nth-child(4) .border-beam { animation-delay: -5.25s; }
@media (prefers-reduced-motion: reduce) { .border-beam { animation: none; opacity: 0.4; } }

@media (max-width: 820px) {
  .pcard { grid-template-columns: 1fr; gap: 1.25rem; padding: 1.4rem; border-radius: 18px; }
  .pcard__preview { order: -1; }
  .pcard__title { font-size: clamp(1.7rem, 7vw, 2.3rem); }
  .pcard__sub { margin: 0.3rem 0 0.8rem; font-size: 0.92rem; }
  .pcard__desc { font-size: 0.9rem; line-height: 1.5; margin-bottom: 1rem; }
  .pcard__icons { margin-bottom: 1rem; }
  .pcard__year { margin-bottom: 0.35rem; }
  .pcard__tags { gap: 0.35rem 1rem; }
}

/* ============================================================
   CTA band
   ============================================================ */
.cta { padding-block: var(--section-y); border-top: 1px solid var(--line); }
.cta__inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.cta__title { font-family: var(--font-display); font-weight: 800; color: var(--cream); font-size: clamp(3rem, 11vw, 9rem); line-height: 0.9; letter-spacing: -0.03em; }
.cta__inner p { max-width: 48ch; color: var(--muted); font-size: clamp(1.05rem, 1.8vw, 1.3rem); }

/* ============================================================
   Buttons
   ============================================================ */
.btn { display: inline-flex; align-items: center; gap: 0.6ch; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 1rem; padding: 0.85em 1.6em; border-radius: 100px; border: 1px solid var(--accent); transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease); }
.btn:hover { transform: translateY(-3px); background: transparent; color: var(--accent); }
.btn--lg { font-size: 1.1rem; padding: 1em 2em; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { background: var(--text); color: var(--bg); border-color: var(--text); transform: translateY(-3px); }
.btn--wa { background: #25d366; color: #06210f; border-color: #25d366; }
.btn--wa:hover { background: transparent; color: #25d366; transform: translateY(-3px); }

/* ============================================================
   Floating dock navigation
   ============================================================ */
.dock {
  position: fixed; left: 50%; bottom: clamp(0.9rem, 3vh, 1.6rem);
  transform: translateX(-50%) translateY(150%);
  z-index: 90;
  display: flex; align-items: center; gap: 0.25rem;
  padding: 0.45rem;
  background: rgba(16, 16, 20, 0.62);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.75);
  opacity: 0;
  transition: transform 0.6s var(--ease), opacity 0.5s var(--ease);
}
.dock.is-visible { transform: translateX(-50%) translateY(0); opacity: 1; }
.dock__item {
  position: relative;
  width: clamp(40px, 11vw, 46px); height: clamp(40px, 11vw, 46px);
  display: grid; place-items: center; border-radius: 50%;
  color: var(--muted);
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}
.dock__item svg { width: 20px; height: 20px; }
.dock__item:hover { color: var(--text); background: rgba(255, 255, 255, 0.08); }
.dock__item--accent:hover { color: var(--accent); }
.dock__item--wa:hover { color: #25d366; }
.dock__item::after {
  content: attr(data-tip);
  position: absolute; bottom: calc(100% + 10px); left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: var(--cream); color: #18181b;
  font-size: 0.72rem; font-weight: 600; white-space: nowrap;
  padding: 0.3em 0.6em; border-radius: 6px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.dock__item:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (max-width: 420px) { .dock { gap: 0; padding: 0.35rem; } .dock__item svg { width: 18px; height: 18px; } }

/* ============================================================
   Contact
   ============================================================ */
.contact { padding-block: var(--section-y); text-align: center; }
.contact__label { font-size: 0.8rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--muted); }
.contact__title { font-family: var(--font-display); font-weight: 800; color: var(--cream); font-size: clamp(4rem, 20vw, 18rem); line-height: 0.85; letter-spacing: -0.03em; margin: clamp(1rem, 3vw, 2rem) 0; }
.contact__title .line { display: block; overflow: hidden; }
.contact__title .line > span { display: block; }
.contact__lead { max-width: 44ch; margin-inline: auto; color: var(--muted); font-size: clamp(1.05rem, 1.8vw, 1.3rem); }
.contact__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2.2rem; }
.contact__socials { list-style: none; display: flex; gap: clamp(1.2rem, 3vw, 2.5rem); justify-content: center; margin-top: 3rem; flex-wrap: wrap; }
.contact__socials a { color: var(--muted); font-size: 1rem; transition: color .3s var(--ease); }
.contact__socials a:hover { color: var(--text); }

/* ============================================================
   Footer
   ============================================================ */
.footer { border-top: 1px solid var(--line); padding: 2rem 0 clamp(6rem, 12vh, 7rem); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer span, .footer a { color: var(--muted); font-size: 0.9rem; }
.footer__mid { flex: 1; text-align: center; }
.footer a:hover { color: var(--text); }
@media (max-width: 620px) { .footer__inner { justify-content: center; text-align: center; } .footer__mid { flex-basis: 100%; order: 3; } }

/* ============================================================
   Reveal animations (JS-driven)
   ============================================================ */
html.js .reveal { opacity: 0; transform: translateY(28px); }
html.js .hero__name .line > span,
html.js .contact__title .line > span { transform: translateY(110%); }
html.js .hero__portrait { opacity: 0; }
html.js .hero__corner { opacity: 0; }
.no-js .reveal { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .preloader { display: none; }
  html.js .reveal, html.js .hero__name .line > span, html.js .contact__title .line > span,
  html.js .hero__portrait, html.js .hero__corner { opacity: 1; transform: none; }
  .cursor, .cursor-dot { display: none; }
  .fog__blooms { animation: none; }
}
