/* ═══════════════════════════════════════════════
   JAMES VELLA — styles.css  v3.0
   KEY FIX: preloader dismisses via pure CSS
   animation. Hero elements animate via CSS
   @keyframes with delays — no JS class toggling
   needed for anything to be visible.
═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── TOKENS ───────────────────────────────── */
:root {
  --white: #ffffff;
  --off:   #f7f7f5;
  --g100:  #ebebeb;
  --g200:  #d4d4d4;
  --g300:  #ababab;
  --g400:  #888888;
  --g500:  #666666;
  --g600:  #444444;
  --g800:  #1e1e1e;
  --black: #0a0a0a;
  --nav-h: 64px;
  --pad:   clamp(24px, 6vw, 88px);
  --sv:    clamp(80px, 11vh, 130px);
  --r:     14px;
}

/* ── RESET ────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 500;
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img    { display: block; max-width: 100%; height: auto; }
a      { color: inherit; text-decoration: none; }
ul     { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
::selection { background: var(--black); color: var(--white); }

/* ══════════════════════════════════════════════
   PRELOADER
   Dismisses entirely via CSS — no JS required.
   1. Fades out at 1.4s
   2. visibility:hidden at 2.1s (after fade done)
   JS can also add .done class to dismiss early.
══════════════════════════════════════════════ */
#pre {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--black);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 32px;
  /* CSS animation: fade out after 1.4s, then hide */
  animation: preFadeOut 0.6s ease-out 1.4s forwards;
  pointer-events: none; /* never block clicks even while visible */
}

/* JS can add .done to dismiss instantly if needed */
#pre.done {
  opacity: 0;
  visibility: hidden;
}

@keyframes preFadeOut {
  0%   { opacity: 1; visibility: visible; }
  99%  { opacity: 0; visibility: visible; }
  100% { opacity: 0; visibility: hidden; }
}

.pre-monogram {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--white);
  animation: preMonoIn 0.5s cubic-bezier(0.16,1,0.3,1) 0.1s both;
}
@keyframes preMonoIn {
  from { opacity: 0; transform: scale(0.7); }
  to   { opacity: 1; transform: scale(1); }
}

.pre-bar-wrap {
  width: clamp(120px, 20vw, 200px);
  height: 2px;
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
  overflow: hidden;
}
.pre-bar {
  height: 100%;
  background: var(--white);
  border-radius: 2px;
  animation: preBarFill 1.0s ease-out 0.2s both;
}
@keyframes preBarFill {
  from { width: 0%; }
  to   { width: 100%; }
}

/* ══════════════════════════════════════════════
   PROGRESS BAR
══════════════════════════════════════════════ */
#progress {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0%;
  background: var(--black);
  z-index: 9999;
  transition: width 0.08s linear;
}

/* ══════════════════════════════════════════════
   NAV
══════════════════════════════════════════════ */
#nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h); z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
#nav.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 var(--g100);
}
.nav-logo {
  font-size: 0.9rem; font-weight: 800; letter-spacing: -0.03em;
  color: var(--white); z-index: 950;
  transition: color 0.25s, opacity 0.25s;
}
#nav.scrolled .nav-logo { color: var(--black); }
.nav-logo:hover { opacity: 0.6; }

.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  font-size: 0.82rem; font-weight: 600;
  color: rgba(255,255,255,0.75);
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1.5px; background: currentColor;
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
#nav.scrolled .nav-links a { color: var(--g500); }
#nav.scrolled .nav-links a:hover { color: var(--black); }

.nav-cta {
  padding: 8px 18px !important;
  background: var(--white) !important;
  color: var(--black) !important;
  border-radius: 50px;
  font-weight: 700 !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { transform: scale(1.04); box-shadow: 0 4px 16px rgba(0,0,0,0.18); }
#nav.scrolled .nav-cta { background: var(--black) !important; color: var(--white) !important; }

/* Hamburger */
.burger {
  display: none; flex-direction: column; gap: 5px;
  width: 28px; z-index: 950; padding: 4px;
}
.burger span {
  display: block; height: 2px; background: var(--white);
  border-radius: 2px;
  transition: transform 0.4s ease, opacity 0.3s, width 0.3s, background 0.25s;
  transform-origin: center;
}
#nav.scrolled .burger span { background: var(--black); }
.burger span:nth-child(1) { width: 28px; }
.burger span:nth-child(2) { width: 20px; }
.burger span:nth-child(3) { width: 24px; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); width: 28px; background: var(--white); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); width: 28px; background: var(--white); }

/* Overlay nav */
#overlay {
  position: fixed; inset: 0; background: var(--black);
  z-index: 800;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1.2rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease;
}
#overlay.open { opacity: 1; pointer-events: all; }
#overlay a.ol {
  font-size: clamp(2rem, 9vw, 4.5rem);
  font-weight: 800; letter-spacing: -0.05em; line-height: 1;
  color: var(--white);
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.35s ease, transform 0.35s ease, color 0.2s;
}
#overlay.open a.ol { opacity: 1; transform: translateY(0); }
#overlay a.ol:nth-child(1) { transition-delay: 0.04s; }
#overlay a.ol:nth-child(2) { transition-delay: 0.08s; }
#overlay a.ol:nth-child(3) { transition-delay: 0.12s; }
#overlay a.ol:nth-child(4) { transition-delay: 0.16s; }
#overlay a.ol:nth-child(5) { transition-delay: 0.20s; }
#overlay a.ol:nth-child(6) { transition-delay: 0.24s; }
#overlay a.ol:nth-child(7) { transition-delay: 0.28s; }
#overlay a.ol:hover { color: var(--g400); }
.ol-social {
  position: absolute; bottom: 36px;
  display: flex; gap: 24px;
}
.ol-social a {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--g500); transition: color 0.2s;
}
.ol-social a:hover { color: var(--white); }

/* ══════════════════════════════════════════════
   HERO
   All elements animate in via CSS @keyframes
   with staggered delays. Nothing hidden by default
   waiting on a JS class.
══════════════════════════════════════════════ */
#hero {
  position: relative;
  height: 100vh; min-height: 600px;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 40%;
  z-index: 0;
  filter: brightness(0.68);
  /* Slow zoom in on load — pure CSS */
  animation: heroBgZoom 2.2s cubic-bezier(0.25,0.46,0.45,0.94) 0.2s both;
}
@keyframes heroBgZoom {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}

/* Parallax override via JS (translateY only, no scale conflict) */
.hero-bg.parallax {
  animation: none; /* JS takes over after initial zoom */
}

.hero-veil {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.1) 0%,
    rgba(0,0,0,0.05) 40%,
    rgba(0,0,0,0.6) 100%
  );
}

.hero-content {
  position: relative; z-index: 2;
  padding: 0 var(--pad) clamp(70px, 10vh, 110px);
}

/* Eyebrow — CSS animation, no JS needed */
.hero-eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: clamp(0.68rem, 1.2vw, 0.78rem);
  font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 1.4rem;
  animation: fadeUp 0.7s ease 1.8s both;
}
.hero-loc-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #34c759; flex-shrink: 0;
  animation: pulseGreen 2.2s ease-in-out infinite;
}

/* Name words — each clips up from below via CSS */
.hero-name-wrap { overflow: visible; }
.hero-name-line {
  overflow: hidden;
  line-height: 0.92;
}
.hn-word {
  display: block;
  font-size: clamp(5rem, 14vw, 13rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  color: var(--white);
  animation: slideUp 0.9s cubic-bezier(0.16,1,0.3,1) both;
}
#hn1 { animation-delay: 2.1s; }
#hn2 { animation-delay: 2.28s; }

@keyframes slideUp {
  from { transform: translateY(110%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* Lower row */
.hero-lower {
  display: flex; align-items: center; flex-wrap: wrap; gap: 1.4rem 2.4rem;
  margin-top: 2rem;
  animation: fadeUp 0.8s ease 2.7s both;
}
.hero-tagline {
  font-size: clamp(0.95rem, 2vw, 1.35rem);
  font-weight: 400; color: rgba(255,255,255,0.78);
  letter-spacing: -0.01em; min-width: 200px;
}
.cursor-blink {
  display: inline-block; width: 2px; height: 0.95em;
  background: rgba(255,255,255,0.8); margin-left: 3px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Badge */
.hero-badge {
  position: absolute; bottom: clamp(32px,5vh,52px); left: var(--pad);
  z-index: 2;
  display: flex; align-items: center; gap: 8px;
  font-size: 0.76rem; font-weight: 600; color: rgba(255,255,255,0.75);
  animation: fadeUp 0.6s ease 3.0s both;
}

/* Scroll indicator */
.hero-scroll-ind {
  position: absolute; bottom: clamp(32px,5vh,52px); right: var(--pad);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  animation: fadeUp 0.6s ease 3.1s both;
}
.scroll-track {
  width: 1px; height: 52px;
  background: rgba(255,255,255,0.2);
  position: relative; overflow: hidden; border-radius: 1px;
}
.scroll-thumb {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 40%;
  background: rgba(255,255,255,0.7);
  animation: scrollThumb 2.2s ease-in-out infinite;
}
@keyframes scrollThumb {
  0%  { transform: translateY(0);    opacity: 1; }
  80% { transform: translateY(160%); opacity: 0.4; }
  81% { transform: translateY(-40%); opacity: 0; }
  100%{ transform: translateY(0);    opacity: 1; }
}
.scroll-word {
  font-size: 0.58rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); writing-mode: vertical-rl;
}

/* ── Shared animations ──────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes blink       { 0%,100%{opacity:1} 50%{opacity:0} }
@keyframes pulseGreen  { 0%,100%{box-shadow:0 0 0 0 rgba(52,199,89,0.45)} 50%{box-shadow:0 0 0 8px rgba(52,199,89,0)} }
@keyframes marqueeScroll { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ── Buttons ────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px;
  background: var(--white); color: var(--black);
  border-radius: 50px;
  font-size: 0.85rem; font-weight: 700;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-primary:hover { transform: scale(1.05); box-shadow: 0 8px 28px rgba(255,255,255,0.2); }
.btn-primary svg { transition: transform 0.25s ease; }
.btn-primary:hover svg { transform: translateX(3px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px;
  border: 1.5px solid rgba(255,255,255,0.4); border-radius: 50px;
  font-size: 0.85rem; font-weight: 600; color: var(--white);
  transition: border-color 0.25s, background 0.25s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.9); background: rgba(255,255,255,0.08); }

.green-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #34c759; flex-shrink: 0;
  animation: pulseGreen 2.2s ease-in-out infinite;
}

/* ══════════════════════════════════════════════
   MARQUEE
══════════════════════════════════════════════ */
.marquee {
  overflow: hidden; padding: 14px 0;
  border-top: 1px solid var(--g100);
  border-bottom: 1px solid var(--g100);
  background: var(--off); white-space: nowrap;
}
.marquee-inner {
  display: inline-flex;
  animation: marqueeScroll 32s linear infinite;
}
.marquee--rev .marquee-inner { animation-direction: reverse; animation-duration: 40s; }
.marquee:hover .marquee-inner { animation-play-state: paused; }
.m-item {
  display: inline-flex; align-items: center; gap: 0.9rem;
  padding: 0 1.8rem;
  font-size: clamp(0.7rem, 1.3vw, 0.8rem); font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--g500);
}
.m-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--g300); flex-shrink: 0; }

/* ══════════════════════════════════════════════
   SECTIONS — shared
══════════════════════════════════════════════ */
section { padding: var(--sv) var(--pad); position: relative; }

.s-label {
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--g400); margin-bottom: 1rem;
  display: flex; align-items: center; gap: 12px;
}
.s-label::before { content: ''; width: 22px; height: 1.5px; background: var(--g200); flex-shrink: 0; }
.s-label--light { color: rgba(255,255,255,0.45); }
.s-label--light::before { background: rgba(255,255,255,0.2); }

.s-head {
  font-size: clamp(2.2rem, 5.5vw, 4.8rem);
  font-weight: 900; letter-spacing: -0.045em; line-height: 1;
  color: var(--black);
}
.s-head em { font-style: italic; font-weight: 300; }

/* Scroll reveal */
[data-r] { opacity: 0; transition: opacity 0.85s ease, transform 0.85s ease; }
[data-r="up"]    { transform: translateY(36px); }
[data-r="left"]  { transform: translateX(-36px); }
[data-r="right"] { transform: translateX(36px); }
[data-r].in      { opacity: 1; transform: none; }
[data-d="1"] { transition-delay: 0.10s; }
[data-d="2"] { transition-delay: 0.22s; }
[data-d="3"] { transition-delay: 0.34s; }
[data-d="4"] { transition-delay: 0.48s; }

/* ══════════════════════════════════════════════
   FULL-BLEED IMAGE BREAK
══════════════════════════════════════════════ */
.img-break {
  position: relative; height: clamp(200px, 38vw, 440px); overflow: hidden;
}
.img-break img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 60%;
  filter: brightness(0.8);
  transition: transform 8s ease-out;
  transform: scale(1.05);
}
.img-break.in-view img { transform: scale(1); }
.img-break-veil {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0.5));
}
.img-break-caption {
  position: absolute; bottom: 20px; right: 24px;
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

/* ══════════════════════════════════════════════
   ABOUT
══════════════════════════════════════════════ */
#about { background: var(--white); }
.about-grid {
  display: grid; grid-template-columns: 380px 1fr;
  gap: clamp(40px, 6vw, 100px); align-items: start; max-width: 1200px;
}
.about-img-frame {
  position: relative; border-radius: 20px; overflow: hidden;
}
.about-portrait {
  width: 100%; aspect-ratio: 4/5;
  object-fit: cover; object-position: center top;
  transition: transform 0.6s ease;
}
.about-img-frame:hover .about-portrait { transform: scale(1.02); }
.about-img-badge {
  position: absolute; bottom: 18px; left: 18px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-radius: 50px; padding: 9px 16px;
  display: flex; align-items: center; gap: 8px;
  font-size: 0.74rem; font-weight: 700;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
.about-right { padding-top: 8px; }
.about-intro {
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 300; line-height: 1.58;
  color: var(--g800); letter-spacing: -0.02em;
  margin: 1.6rem 0 2rem;
}
.about-intro strong { font-weight: 800; color: var(--black); }
.pillars { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 2rem; }
.pillar {
  padding: 7px 18px; border: 1.5px solid var(--g200);
  border-radius: 50px; font-size: 0.78rem; font-weight: 700; color: var(--black);
  transition: all 0.25s ease;
}
.pillar:hover { background: var(--black); color: var(--white); border-color: var(--black); transform: translateY(-2px); }
.about-body { font-size: 0.88rem; color: var(--g500); line-height: 1.78; margin-bottom: 2.4rem; }
.about-meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem;
  padding-top: 1.8rem; border-top: 1px solid var(--g100);
}
.meta-item { display: flex; flex-direction: column; gap: 3px; }
.meta-k { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--g400); }
.meta-v { font-size: 0.85rem; font-weight: 600; color: var(--black); }
.meta-v a { border-bottom: 1px solid var(--g200); transition: border-color 0.2s; }
.meta-v a:hover { border-color: var(--black); }

/* ══════════════════════════════════════════════
   STATS
══════════════════════════════════════════════ */
#stats { background: var(--black); padding: clamp(60px,8vh,90px) var(--pad); }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); max-width: 1200px; }
.stat {
  padding: 2.4rem 2rem;
  border-right: 1px solid rgba(255,255,255,0.07);
  transition: background 0.35s;
}
.stat:last-child { border-right: none; }
.stat:hover { background: rgba(255,255,255,0.04); }
.stat-n {
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 900; letter-spacing: -0.05em;
  color: var(--white); line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-s { color: var(--g500); font-weight: 300; }
.stat-l { font-size: 0.75rem; font-weight: 500; color: var(--g500); margin-top: 0.6rem; line-height: 1.4; }

/* ══════════════════════════════════════════════
   SKILLS
══════════════════════════════════════════════ */
#skills { background: var(--off); }
.skills-header { max-width: 1200px; margin-bottom: 3rem; }
.skill-cards {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px; max-width: 1200px; margin-bottom: 3.5rem;
}
.sk {
  background: var(--white); border: 1.5px solid var(--g100);
  border-radius: var(--r); padding: 1.6rem 1.4rem;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.25s;
}
.sk:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(0,0,0,0.08); border-color: var(--g200); }
.sk-icon {
  width: 44px; height: 44px; background: var(--off); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; color: var(--black);
  transition: background 0.25s, color 0.25s;
}
.sk:hover .sk-icon { background: var(--black); color: var(--white); }
.sk-name { font-size: 0.85rem; font-weight: 700; color: var(--black); }
.skills-tags-wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem; max-width: 1200px;
}
.tags-label { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--g400); margin-bottom: 1rem; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag {
  font-family: 'SF Mono', 'Fira Code', monospace; font-size: 0.7rem;
  padding: 5px 13px; background: var(--white);
  border: 1.5px solid var(--g100); border-radius: 6px;
  color: var(--g600); transition: all 0.2s ease;
}
.tag:hover { background: var(--black); color: var(--white); border-color: var(--black); transform: translateY(-1px); }

/* ══════════════════════════════════════════════
   RESUME
══════════════════════════════════════════════ */
#resume { background: var(--white); }
.res-outer {
  display: grid; grid-template-columns: 240px 1fr;
  gap: clamp(40px, 6vw, 90px); max-width: 1200px; align-items: start;
}
.res-sticky { position: sticky; top: calc(var(--nav-h) + 28px); }
.res-sticky .s-head { font-size: clamp(1.8rem, 3.5vw, 3rem); }
.res-col-label {
  font-size: 0.63rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--g400); margin-bottom: 1.6rem; padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--g100);
}
.res-col + .res-col { margin-top: 3rem; }
.re {
  display: grid; grid-template-columns: 120px 1fr;
  gap: 20px; padding: 1.6rem 0; border-bottom: 1px solid var(--g100);
}
.re:first-of-type { padding-top: 0; }
.re-left { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 2px; }
.re-dot {
  width: 8px; height: 8px; border-radius: 50%;
  border: 2px solid var(--g300); background: var(--white); flex-shrink: 0;
  transition: border-color 0.25s, background 0.25s;
}
.re:hover .re-dot { border-color: var(--black); background: var(--black); }
.re-yr { font-family: 'SF Mono', 'Fira Code', monospace; font-size: 0.68rem; color: var(--g400); line-height: 1.5; }
.re-logo-wrap { margin-bottom: 10px; }
.re-logo {
  height: 64px; width: auto; max-width: 180px;
  object-fit: contain; object-position: left center;
  filter: grayscale(1); opacity: 0.65;
  transition: filter 0.3s, opacity 0.3s;
}
.re:hover .re-logo { filter: grayscale(0); opacity: 1; }
.re-role { font-size: 0.95rem; font-weight: 800; color: var(--black); letter-spacing: -0.02em; line-height: 1.2; }
.re-org  { font-size: 0.8rem; font-weight: 500; color: var(--g400); margin: 4px 0; }
.re-desc { font-size: 0.8rem; color: var(--g500); line-height: 1.68; margin-top: 6px; }

/* ══════════════════════════════════════════════
   PORTFOLIO
══════════════════════════════════════════════ */
#portfolio { background: var(--off); }
.port-intro {
  display: flex; justify-content: space-between; align-items: flex-end;
  max-width: 1200px; margin-bottom: 2.8rem; flex-wrap: wrap; gap: 1.5rem;
}
.port-sub { font-size: clamp(0.88rem, 1.8vw, 1rem); color: var(--g500); max-width: 380px; line-height: 1.5; }
.port-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px; max-width: 1200px;
}
.pc {
  background: var(--white); border-radius: var(--r); overflow: hidden;
  border: 1.5px solid var(--g100);
  display: flex; flex-direction: column;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.pc:hover { transform: translateY(-6px); box-shadow: 0 20px 55px rgba(0,0,0,0.1); }
.pc-img {
  aspect-ratio: 16/9; overflow: hidden; background: var(--off);
  display: flex; align-items: center; justify-content: center;
}
.pc-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.pc:hover .pc-img img { transform: scale(1.06); }
.pc-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.pc-tag { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--g400); margin-bottom: 0.5rem; }
.pc-title { font-size: clamp(0.95rem, 1.6vw, 1.2rem); font-weight: 800; color: var(--black); letter-spacing: -0.03em; line-height: 1.2; margin-bottom: 0.45rem; }
.pc-desc { font-size: 0.8rem; color: var(--g500); line-height: 1.62; margin-bottom: 0.9rem; flex: 1; }
.pc-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.78rem; font-weight: 700; color: var(--black);
  border-bottom: 1.5px solid var(--black); padding-bottom: 1px;
  transition: gap 0.22s; align-self: flex-start; margin-top: auto;
}
.pc-link:hover { gap: 10px; }

/* ══════════════════════════════════════════════
   TESTIMONIALS
══════════════════════════════════════════════ */
#testimonials { background: var(--white); }
.testi-header { max-width: 1200px; margin-bottom: 2.8rem; }
.tgrid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; max-width: 1200px; }
.tc {
  background: var(--off); border-radius: var(--r);
  padding: 2rem; border: 1.5px solid var(--g100);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.tc:hover { transform: translateY(-4px); box-shadow: 0 14px 44px rgba(0,0,0,0.08); }
.tq {
  font-size: clamp(0.88rem, 1.6vw, 1rem);
  font-weight: 400; color: var(--g800); line-height: 1.68;
  margin-bottom: 1.6rem; font-style: italic;
}
.tq::before { content: '\201C'; font-style: normal; color: var(--g300); font-size: 2.2em; line-height: 0; vertical-align: -0.42em; margin-right: 4px; }
.ta { display: flex; align-items: center; gap: 12px; }
.av { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid var(--g100); }
.an { font-size: 0.85rem; font-weight: 700; color: var(--black); }
.at { font-size: 0.72rem; color: var(--g500); margin-top: 2px; }

/* ══════════════════════════════════════════════
   VMG
══════════════════════════════════════════════ */
#vmg { background: var(--black); padding: var(--sv) var(--pad); }
.vmg-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px); max-width: 1200px; align-items: center;
}
.vmg-head {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 900; letter-spacing: -0.055em; line-height: 0.9;
  color: var(--white); margin: 1rem 0 1.8rem;
}
.vmg-sub {
  font-size: clamp(0.9rem, 1.7vw, 1.05rem);
  font-weight: 400; color: rgba(255,255,255,0.6);
  line-height: 1.68; max-width: 480px; margin-bottom: 2.4rem;
}
.vmg-services {
  display: flex; flex-direction: column;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 2.8rem;
}
.vmg-svc {
  display: flex; align-items: center; gap: 1.2rem;
  padding: 0.85rem 0; border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: padding-left 0.25s ease;
}
.vmg-svc:hover { padding-left: 8px; }
.vmg-svc-num { font-family: 'SF Mono', monospace; font-size: 0.65rem; color: rgba(255,255,255,0.3); width: 22px; flex-shrink: 0; }
.vmg-svc-name { font-size: 0.9rem; font-weight: 600; color: rgba(255,255,255,0.8); transition: color 0.2s; }
.vmg-svc:hover .vmg-svc-name { color: var(--white); }
.vmg-stats { display: flex; gap: 2.4rem; margin-bottom: 2.8rem; flex-wrap: wrap; }
.vmg-stat { display: flex; flex-direction: column; gap: 4px; }
.vmg-stat-n { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 900; letter-spacing: -0.04em; color: var(--white); line-height: 1; }
.vmg-stat-l { font-size: 0.72rem; font-weight: 500; color: rgba(255,255,255,0.4); }
.vmg-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 28px;
  border: 1.5px solid rgba(255,255,255,0.25); border-radius: 50px;
  font-size: 0.85rem; font-weight: 700; color: var(--white);
  transition: background 0.25s, border-color 0.25s, transform 0.3s ease;
}
.vmg-btn:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.6); transform: scale(1.03); }
.vmg-btn svg { transition: transform 0.25s ease; }
.vmg-btn:hover svg { transform: translate(3px,-3px); }
.vmg-img-frame {
  position: relative; border-radius: 20px; overflow: hidden;
}
.vmg-img-frame img {
  width: 100%; aspect-ratio: 16/11; object-fit: cover;
  filter: brightness(0.85);
  transition: filter 0.5s, transform 0.6s ease;
}
.vmg-img-frame:hover img { filter: brightness(1); transform: scale(1.02); }
.vmg-img-tag {
  position: absolute; bottom: 16px; left: 16px;
  background: rgba(0,0,0,0.65); backdrop-filter: blur(8px);
  border-radius: 50px; padding: 6px 14px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}

/* ══════════════════════════════════════════════
   CONTACT
══════════════════════════════════════════════ */
#contact { background: var(--black); color: var(--white); text-align: center; padding: var(--sv) var(--pad); }
#contact .s-label { color: var(--g500); justify-content: center; }
#contact .s-label::before { background: rgba(255,255,255,0.12); }
.c-head {
  font-size: clamp(2.6rem, 7.5vw, 7.5rem);
  font-weight: 900; letter-spacing: -0.055em; line-height: 0.96;
  color: var(--white); margin: 1rem 0 1.8rem;
}
.c-head em { color: rgba(255,255,255,0.4); }
.c-sub { font-size: clamp(0.88rem, 1.8vw, 1.05rem); color: var(--g500); max-width: 480px; margin: 0 auto 3rem; line-height: 1.6; }
.cform { max-width: 580px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ff { display: flex; flex-direction: column; gap: 5px; }
.ff label { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--g500); text-align: left; }
.ff input, .ff textarea {
  background: rgba(255,255,255,0.06); border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 10px; padding: 13px 15px;
  font-family: 'Inter', sans-serif; font-size: 0.875rem; font-weight: 500;
  color: var(--white); outline: none; resize: none;
  transition: border-color 0.25s, background 0.25s;
}
.ff input::placeholder, .ff textarea::placeholder { color: rgba(255,255,255,0.22); }
.ff input:focus, .ff textarea:focus { border-color: rgba(255,255,255,0.36); background: rgba(255,255,255,0.09); }
.fsub {
  padding: 15px 36px; background: var(--white); color: var(--black);
  border-radius: 50px; font-size: 0.875rem; font-weight: 700;
  align-self: center; margin-top: 4px; min-width: 170px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.fsub:hover { transform: scale(1.05); box-shadow: 0 10px 28px rgba(255,255,255,0.14); }
.fmsg { font-size: 0.82rem; color: var(--g500); margin-top: 0.4rem; min-height: 1.2em; }
.fmsg.ok  { color: #34c759; }
.fmsg.err { color: #ff453a; }

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
#footer { background: var(--black); border-top: 1px solid rgba(255,255,255,0.12); padding: 2.8rem var(--pad) 1.8rem; }
.foot-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.4rem; max-width: 1200px; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.12); margin-bottom: 0; }
.foot-name { font-size: 0.9rem; font-weight: 800; color: rgba(255,255,255,0.95); letter-spacing: -0.02em; }
.foot-tagline { font-size: 0.7rem; color: rgba(255,255,255,0.6); margin-top: 3px; }
.foot-abn { font-size: 0.65rem; color: rgba(255,255,255,0.45); margin-top: 5px; letter-spacing: 0.04em; }
.foot-links { display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; }
.foot-links a { color: rgba(255,255,255,0.6); transition: color 0.2s, transform 0.2s; display: flex; align-items: center; line-height: 1; }
.foot-links a:hover { color: #ffffff; transform: translateY(-2px); }
.foot-acknowledgement { max-width: 1200px; padding: 1.8rem 0 1.2rem; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 1.2rem; }
.foot-acknowledgement p { font-size: 0.68rem; color: rgba(255,255,255,0.5); line-height: 1.75; }
.foot-bottom { max-width: 1200px; }
.foot-copy { font-size: 0.7rem; color: rgba(255,255,255,0.45); }

/* ══════════════════════════════════════════════
   SCROLL TOP
══════════════════════════════════════════════ */
#stb {
  position: fixed; bottom: 28px; right: 28px;
  width: 44px; height: 44px;
  background: var(--black); color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 500; box-shadow: 0 4px 20px rgba(0,0,0,0.28);
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity 0.35s, transform 0.35s, background 0.25s;
}
#stb.vis { opacity: 1; transform: translateY(0); pointer-events: all; }
#stb:hover { background: var(--g800); }

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .about-grid { grid-template-columns: 300px 1fr; }
  .skill-cards { grid-template-columns: repeat(3,1fr); }
  .vmg-inner { grid-template-columns: 1fr; }
  .vmg-img-col { order: -1; }
  .vmg-img-frame img { aspect-ratio: 16/7; }
  .port-grid { grid-template-columns: repeat(2,1fr); }
  .tgrid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 900px) {
  .res-outer { grid-template-columns: 1fr; }
  .res-sticky { position: static; margin-bottom: 2rem; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.07); }
  .stat:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.07); }
  .stat:last-child { border-bottom: none; }
  .skills-tags-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  :root { --pad: 20px; --sv: clamp(60px,10vh,100px); }
  .nav-links { display: none; }
  .burger { display: flex; }
  .about-grid { grid-template-columns: 1fr; }
  .about-portrait { aspect-ratio: 3/2; max-height: 320px; }
  .skill-cards { grid-template-columns: repeat(2,1fr); gap: 10px; }
  .re { grid-template-columns: 90px 1fr; gap: 14px; }
  .port-grid { grid-template-columns: 1fr; }
  .tgrid { grid-template-columns: repeat(2,1fr); }
  .about-meta { grid-template-columns: 1fr; }
  .frow { grid-template-columns: 1fr; }
  .foot-inner { flex-direction: column; align-items: flex-start; }
  .hero-badge { display: none; }
  .hero-scroll-ind { display: none; }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .skill-cards { grid-template-columns: repeat(2,1fr); gap: 8px; }
  .sk { padding: 1.2rem 1rem; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .stat { padding: 1.4rem 1rem; }
  .vmg-stats { gap: 1.2rem; }
  .tgrid { grid-template-columns: 1fr; }
  .foot-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 390px) {
  .skill-cards { grid-template-columns: 1fr; }
}
