/* ════════════════════════════════════════
   JULIE MANHAUDIER — PORTFOLIO CSS
   ════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  --bg:        #F8F6F2;
  --bg-cream:  #F2EDE6;
  --ink:       #111110;
  --ink2:      #3D3A36;
  --muted:     #9A9189;
  --accent:    #C9714A;
  --accent2:   #E8956D;
  --white:     #FFFFFF;
  --dark:      #111110;
  --border:    #E2DDD7;
  --serif:     'Playfair Display', Georgia, serif;
  --sans:      'DM Sans', system-ui, sans-serif;
  --mono:      'DM Mono', monospace;
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.83, 0, 0.17, 1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; color: var(--accent); }
strong { font-weight: 600; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 2.5rem; }

/* ── NOISE TEXTURE ── */
.noise {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
}

/* ════════════════════════
   LOADER
════════════════════════ */
.loader {
  position: fixed; inset: 0;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  z-index: 10000;
  transition: opacity .6s var(--ease-out), visibility .6s;
}
.loader.hidden { opacity: 0; visibility: hidden; }

.loader-inner { text-align: center; }
.loader-name {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--white);
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
}
.loader-bar {
  width: 200px; height: 2px;
  background: rgba(255,255,255,0.15);
  border-radius: 999px;
  overflow: hidden;
  margin: 0 auto;
}
.loader-fill {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width .05s linear;
  border-radius: 999px;
}

/* ════════════════════════
   NAV
════════════════════════ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 2.5rem;
  transition:
    background .5s var(--ease-out),
    border-color .5s,
    padding .5s var(--ease-out);
  border-bottom: 1px solid transparent;
}
#navbar.scrolled {
  background: rgba(248,246,242,0.0);
  border-bottom-color: transparent;
}

/* ── PILL — appears when scrolling down ── */
.nav-pill {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  display: flex; align-items: center; gap: 0;
  background: rgba(20,20,20,0.82);
  backdrop-filter: blur(18px);
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition:
    opacity .45s var(--ease-out),
    transform .45s var(--ease-out);
  border: 1px solid rgba(255,255,255,0.08);
}
#navbar.compact .nav-pill {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.nav-pill .pill-logo {
  font-family: var(--serif);
  font-size: 0.95rem; font-weight: 700;
  color: rgba(255,255,255,0.92);
  letter-spacing: -0.01em;
  padding-right: 1.1rem;
  margin-right: 1.1rem;
  border-right: 1px solid rgba(255,255,255,0.18);
}
.nav-pill .pill-links {
  display: flex; gap: 1.4rem; list-style: none; align-items: center;
}
.nav-pill .pill-links a {
  font-size: 0.82rem; font-weight: 500;
  color: rgba(255,255,255,0.75);
  transition: color .2s;
}
.nav-pill .pill-links a:hover { color: #fff; }
.nav-pill .pill-links .nav-cta {
  padding: 0.3rem 0.85rem !important;
  background: rgba(255,255,255,0.12) !important;
  color: rgba(255,255,255,0.92) !important;
  font-size: 0.82rem;
}
.nav-pill .pill-links .nav-cta:hover { background: var(--accent) !important; color: #fff !important; }

/* Normal logo & links fade out when compact */
.nav-logo {
  font-family: var(--serif);
  font-size: 1.15rem; font-weight: 900;
  color: var(--ink); letter-spacing: -0.02em;
  transition: opacity .4s var(--ease-out);
}
#navbar.compact .nav-logo,
#navbar.compact .nav-links,
#navbar.compact .burger {
  opacity: 0;
  pointer-events: none;
}
.nav-links { display: flex; gap: 2.5rem; list-style: none; align-items: center; transition: gap .5s var(--ease-out); }
.nav-links a {
  font-family: var(--sans);
  font-size: 1.05rem; font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--ink2);
  position: relative;
  transition: color .25s;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -3px; left: 0; right: 0;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta {
  padding: 0.5rem 1.2rem !important;
  background: var(--ink) !important;
  color: var(--white) !important;
  border-radius: 999px;
  font-weight: 600 !important;
  transition: background .25s, transform .25s !important;
}
.nav-cta:hover { background: var(--accent) !important; }
.nav-cta::after { display: none !important; }

/* ── CONTACT DROPDOWN ── */
.contact-dropdown {
  position: fixed;
  top: 74px;
  right: 2.5rem;
  width: 320px;
  background: var(--dark);
  border-radius: 16px;
  padding: 1.4rem;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
  z-index: 200;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity .25s var(--ease-out), transform .25s var(--ease-out);
}
.contact-dropdown.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.contact-dropdown-head {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  margin-bottom: 1.2rem;
}
.contact-dropdown-photo {
  width: 60px; height: 60px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}
.contact-dropdown-name {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: .3rem;
}
.contact-dropdown-email,
.contact-dropdown-phone {
  display: block;
  font-size: .8rem;
  color: rgba(255,255,255,0.65);
  margin-top: .15rem;
}
.contact-dropdown-links {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.contact-dropdown-links .btn {
  padding: 0.5rem 0.9rem !important;
  font-size: .8rem;
}
.contact-dropdown-more {
  display: block;
  text-align: center;
  margin-top: 1rem;
  font-size: .78rem;
  color: rgba(255,255,255,0.5);
  transition: color .2s;
}
.contact-dropdown-more:hover { color: var(--white); }

@media (max-width: 600px) {
  .contact-dropdown { right: 1.25rem; left: 1.25rem; width: auto; }
}

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 4px; z-index: 110; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ════════════════════════
   SECTION LABELS
════════════════════════ */
.section-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}
.section-tag-light { color: rgba(255,255,255,0.45); }

/* ════════════════════════
   TYPOGRAPHY ANIMATIONS
════════════════════════ */

/* Line reveal (used for headings) */
.line-wrap {
  display: block;
  overflow: hidden;
  padding-bottom: 0.12em;  /* room for descenders */
}
.line-inner {
  display: block;
  transform: translateY(110%);
  transition: transform 0.85s var(--ease-out);
  padding-top: 0.05em;     /* room for ascenders */
}
.line-inner.revealed { transform: translateY(0); }

/* Fade up reveal */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal-up.visible { opacity: 1; transform: translateY(0); }

.reveal-fade {
  opacity: 0;
  transition: opacity .8s var(--ease-out);
}
.reveal-fade.visible { opacity: 1; }

/* Display headings */
.display-heading {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5.5vw, 5rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 3rem;
}
.display-heading-light { color: var(--white); }
.display-heading-light em { color: rgba(255,255,255,0.55); }

/* ════════════════════════
   HERO
════════════════════════ */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  padding: 9rem 2.5rem 5rem;
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
}

.hero-name {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
  opacity: 0;
  transition: opacity .8s .4s;
}
.hero-name.visible { opacity: 1; }

.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 2.4rem;
}

.hero-sub {
  font-size: 1rem;
  color: var(--ink2);
  line-height: 1.75;
  margin-bottom: 2.2rem;
  max-width: 420px;
}
.hero-sub strong { color: var(--accent); }

.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 2rem; }

/* Typewriter cursor in title */
.h-cur {
  display: inline-block;
  font-style: normal;
  color: var(--accent);
  animation: blink .75s step-end infinite;
  font-weight: 400;
  margin-left: 1px;
}
.h-dot {
  font-style: normal;
  opacity: 0;
  transition: opacity .2s;
}
.h-dot.visible { opacity: 1; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.hero-available {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.hero-location {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0;
}
.avail-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34,197,94,0.4);
  animation: avail-pulse 2s infinite;
}
@keyframes avail-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(34,197,94,0.4); }
  70%  { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0   rgba(34,197,94,0); }
}

.hero-meta-row {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.4rem; font-size: 0.79rem; color: var(--muted);
}
.hero-meta-row .dot { opacity: 0.3; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.82rem 1.8rem;
  border-radius: 999px;
  font-size: 0.9rem; font-weight: 600;
  letter-spacing: 0.02em;
  transition: background .25s, color .25s, transform .25s, box-shadow .25s;
  border: none; position: relative; overflow: hidden;
}
.btn::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0.12);
  opacity: 0; transition: opacity .2s;
}
.btn:hover::before { opacity: 1; }

.btn-dark    { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--accent); box-shadow: 0 8px 24px rgba(201,113,74,.28); }
.btn-ghost   { border: 1.5px solid var(--border); color: var(--ink2); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-light   { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--accent); color: var(--white); box-shadow: 0 8px 24px rgba(201,113,74,.28); }
.btn-ghost-light { border: 1.5px solid rgba(255,255,255,0.22); color: rgba(255,255,255,0.8); background: transparent; }
.btn-ghost-light:hover { border-color: var(--white); color: var(--white); }

/* Magnetic button */
.magnetic { transition: transform .3s var(--ease-out), background .25s, color .25s, box-shadow .25s; }

/* ════════════════════════
   PHONE MOCKUP
════════════════════════ */
.hero-right { display: flex; justify-content: center; align-items: center; }

.phone-scene {
  position: relative;
  width: 270px;
  perspective: 800px;
  transform-style: preserve-3d;
}

.phone-glow {
  position: absolute;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(201,113,74,0.22) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: blur(20px);
}

.phone {
  width: 270px; height: 550px;
  background: #0f0f0f;
  border-radius: 48px;
  padding: 7px;
  border: 1.5px solid rgba(255,255,255,0.08);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.3),
    0 30px 60px rgba(13,13,13,0.3),
    0 60px 120px rgba(13,13,13,0.18),
    0 4px 12px rgba(13,13,13,0.12),
    inset 0 1px 0 rgba(255,255,255,0.1);
  position: relative;
  animation: phoneBob 6s var(--ease-in-out) infinite;
}

@keyframes phoneBob {
  0%,100% { transform: translateY(0) rotate(-1.2deg); }
  50%     { transform: translateY(-16px) rotate(1.2deg); }
}

.phone-notch {
  width: 72px; height: 18px;
  background: #0f0f0f;
  border-radius: 10px;
  position: absolute;
  top: 7px; left: 50%; transform: translateX(-50%);
  z-index: 2;
}
.phone-screen {
  width: 100%; height: 100%;
  background: #000;
  border-radius: 42px;
  overflow: hidden;
}
.phone-video {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 42px;
  display: block;
}

/* ── FLOATING BADGES ── */
.float-badge {
  position: absolute;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-size: 0.76rem; font-weight: 600;
  color: var(--ink);
  box-shadow: 0 6px 20px rgba(13,13,13,0.1), 0 1px 3px rgba(13,13,13,0.06);
  white-space: nowrap;
  user-select: none;
  transition: box-shadow .25s, border-color .25s, transform .25s;
}
.float-badge {
  transition:
    transform 0.4s var(--ease-out),
    box-shadow 0.3s,
    border-color 0.3s;
}

/* Right side */
.float-1 { top: 80px;    right: -145px; animation: fA 4.5s ease-in-out infinite; }
.float-2 { bottom: 100px; right: -135px; animation: fB 4.5s ease-in-out infinite .8s; }
/* Left side */
.float-3 { top: 60px;    left: -150px; animation: fB 4.5s ease-in-out infinite .4s; }
.float-4 { bottom: 80px;  left: -140px; animation: fA 4.5s ease-in-out infinite 1.2s; }

@keyframes fA { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
@keyframes fB { 0%,100%{transform:translateY(0)} 50%{transform:translateY(10px)} }
@keyframes fC { 0%,100%{transform:translateY(-50%) translateX(0)} 50%{transform:translateY(calc(-50% - 8px)) translateX(4px)} }

/* ════════════════════════
   STATS BAR
════════════════════════ */
.stats-bar { background: var(--ink); padding: 3rem 2.5rem; }
.stats-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}
.stat-item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.stat-num {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 900;
  color: var(--accent2); line-height: 1;
}
.stat-lbl { font-size: 0.72rem; color: rgba(255,255,255,0.45); margin-top: .25rem; }
.stat-lbl em { font-style: normal; color: var(--accent); opacity: 0.85; }
.stat-co  {
  font-size: 0.68rem;
  font-family: var(--mono);
  color: var(--accent2);
  margin-top: .18rem;
  letter-spacing: 0.03em;
}
.stat-div { width: 1px; height: 64px; background: rgba(255,255,255,0.1); flex-shrink: 0; }

/* ════════════════════════
   SECTIONS BACKGROUNDS
════════════════════════ */
.section-light  { padding: 8rem 0; background: var(--bg); }
.section-dark   { padding: 8rem 0; background: var(--dark); }
.section-cream  { padding: 8rem 0; background: var(--bg-cream); }

/* ════════════════════════
   ABOUT
════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}
.about-body p { font-size: 0.97rem; color: var(--ink2); margin-bottom: 1rem; line-height: 1.8; }
.about-langs { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.lang-pill {
  padding: .38rem 1rem; border-radius: 999px;
  border: 1px solid var(--border);
  font-size: .8rem; color: var(--ink2);
  transition: border-color .2s, color .2s;
}
.lang-pill:hover { border-color: var(--accent); color: var(--accent); }

.open-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 1.8rem;
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
.open-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(13,13,13,0.08);
}

/* ── PHOTO STACK — scattered table look ── */
.about-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 2rem 1rem 2rem 0;
}

.photo-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
  width: 100%;
  perspective: 1200px;
}

/* ── POLAROID STACK ── */
.polaroid-stack {
  position: relative;
  width: 340px;
  height: 340px;
  margin: auto;
  cursor: pointer;
}

/* Hint animation — partial fan on load */
@keyframes polaroid-hint {
  0%   { transform: rotate(var(--r)) translateX(var(--tx)); }
  40%  { transform: rotate(var(--fan-r)) translateX(calc(var(--fan-tx) * 0.45)); }
  70%  { transform: rotate(var(--fan-r)) translateX(calc(var(--fan-tx) * 0.45)); }
  100% { transform: rotate(var(--r)) translateX(var(--tx)); }
}
.polaroid.hint-animate {
  animation: polaroid-hint 1.4s var(--ease-out) forwards;
}

.polaroid {
  position: absolute;
  top: 0; left: 0;
  width: 320px;
  background: #fff;
  padding: 10px 10px 38px 10px;
  box-shadow: 0 4px 20px rgba(13,13,13,0.14), 0 1px 4px rgba(13,13,13,0.08);
  transform: rotate(var(--r, 0deg)) translateX(var(--tx, 0px));
  transform-origin: bottom center;
  transition: transform 0.55s var(--ease-out), box-shadow 0.4s, z-index 0s;
  z-index: var(--z, 1);
}

.polaroid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.polaroid-caption {
  display: block;
  text-align: center;
  font-family: 'Caveat', cursive;
  font-size: 1.05rem;
  color: #333;
  margin-top: 8px;
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
}

/* Fanned out — on hover of stack or .fanned class (mobile tap) */
.polaroid-stack:hover .polaroid,
.polaroid-stack.fanned .polaroid {
  transform: rotate(var(--fan-r, 0deg)) translateX(var(--fan-tx, 0px));
}
.polaroid-stack:hover .polaroid-caption,
.polaroid-stack.fanned .polaroid-caption {
  opacity: 1;
}

/* Individual photo hover — lift to front */
.polaroid-stack:hover .polaroid:hover,
.polaroid-stack.fanned .polaroid:hover {
  transform: rotate(0deg) translateX(var(--fan-tx, 0px)) translateY(-20px) scale(1.04);
  box-shadow: 0 20px 50px rgba(13,13,13,0.22);
  z-index: 10;
}

.photo-tilt {
  position: relative;
  transition-delay: calc(var(--i) * 120ms);
  cursor: pointer;
}

/* Even photos nudge down, odd nudge up — creates scatter feel */
.photo-tilt:nth-child(odd)  { margin-top: 18px; }
.photo-tilt:nth-child(even) { margin-top: -18px; }

.photo-tilt-inner {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 4px solid var(--white);
  box-shadow:
    0 2px 8px rgba(13,13,13,0.10),
    0 8px 24px rgba(13,13,13,0.14),
    0 1px 2px rgba(13,13,13,0.08);
  transform: rotate(var(--r, 0deg));
  transform-style: preserve-3d;
  transition:
    transform 0.55s var(--ease-out),
    box-shadow 0.45s var(--ease-out),
    z-index 0s;
  will-change: transform;
  aspect-ratio: 16 / 9;
}

.photo-tilt-inner img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  transition: transform 0.5s var(--ease-out);
}

/* Shine overlay — follows cursor */
.photo-shine {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--sx, 50%) var(--sy, 50%),
    rgba(255,255,255,0.20) 0%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  border-radius: 10px;
}

/* On hover: straighten, lift, come forward */
.photo-tilt {
  z-index: 1;
}
.photo-tilt:hover {
  z-index: 10;
}
.photo-tilt:hover .photo-tilt-inner {
  transform: rotate(0deg) translateY(-14px) scale(1.05);
  box-shadow:
    0 22px 55px rgba(13,13,13,0.24),
    0 8px 22px rgba(13,13,13,0.14);
}
.photo-tilt:hover .photo-shine { opacity: 1; }
.photo-tilt:hover img { transform: scale(1.03); }
.card-label { font-family: var(--mono); font-size: .65rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.open-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.open-chips span {
  padding: .32rem .85rem; border-radius: 999px;
  background: var(--bg-cream); border: 1px solid var(--border);
  font-size: .77rem; color: var(--ink2); font-weight: 500;
  transition: background .2s, color .2s, border-color .2s;
}
.open-chips span:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* ════════════════════════
   SERVICES
════════════════════════ */
.services-grid {
  display: grid; grid-template-columns: repeat(2,1fr);
  gap: 1.25rem;
}
.service-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px; padding: 2.2rem;
  transition: background .3s, border-color .3s, transform .3s var(--ease-out);
}
.service-card:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.22); transform: translateY(-4px); }
.service-accent { background: rgba(201,113,74,0.12); border-color: rgba(201,113,74,0.3); }
.service-accent:hover { background: rgba(201,113,74,0.2); border-color: var(--accent); }
.s-num { font-family: var(--mono); font-size: .68rem; color: var(--accent); display: block; margin-bottom: .8rem; }
.service-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--white); margin-bottom: .7rem; }
.service-card p  { font-size: .88rem; color: rgba(255,255,255,0.5); line-height: 1.65; margin-bottom: 1rem; }
.service-card ul { list-style: none; }
.service-card li {
  font-size: .83rem; color: rgba(255,255,255,0.4);
  padding: .42rem 0; border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; gap: .6rem;
}
.service-card li::before { content: '→'; color: var(--accent); font-size: .75rem; }
.service-card li:last-child { border-bottom: none; }

/* ════════════════════════
   MARQUEE
════════════════════════ */
.marquee-bar {
  background: var(--bg-cream);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.1rem 0;
  overflow: hidden;
}
.marquee-track {
  display: flex; align-items: center; gap: 2rem;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee-track span { font-size: .82rem; font-weight: 500; color: var(--ink2); white-space: nowrap; }
.marquee-track .mx { color: var(--accent); font-size: .6rem; }
.marquee-track .marquee-label { font-family: var(--mono); font-size: .65rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-bar:hover .marquee-track { animation-play-state: paused; }

/* ════════════════════════
   PROJECTS
════════════════════════ */

/* ── PROJECT GRID — 4:5 image cards ── */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.project-card { display: block; }

.project-card-media {
  aspect-ratio: 4 / 5;
  border-radius: 10px;
  overflow: hidden;
  background: #0d0d0d;
}
.project-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s var(--ease-out);
}
.project-card:hover .project-card-media img { transform: scale(1.04); }

.project-card-title {
  display: block;
  font-size: .95rem;
  font-weight: 700;
  margin-top: .9rem;
}

.project-card-link {
  display: inline-block;
  font-size: .8rem;
  color: var(--accent);
  margin-top: .3rem;
  transition: opacity .2s;
}
.project-card:hover .project-card-link { opacity: .7; }

.projects-more { display: flex; justify-content: center; margin-top: 3rem; }

/* ════════════════════════
   EDUCATION
════════════════════════ */
.edu-grid {
  display: grid; grid-template-columns: 1.3fr 0.7fr;
  gap: 2rem; align-items: start;
}
.edu-main {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 16px; padding: 2.5rem;
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
.edu-main:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(13,13,13,0.08); }
.edu-main h3 {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 700;
  line-height: 1.2; margin: .5rem 0 1.2rem;
}
.edu-list { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.edu-list li {
  font-size: .88rem; color: var(--ink2);
  padding-left: 1.2rem; position: relative;
}
.edu-list li::before { content: '→'; position: absolute; left: 0; color: var(--accent); font-size: .75rem; }
.edu-side { display: flex; flex-direction: column; gap: 1.25rem; }
.edu-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 16px; padding: 1.8rem;
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
.edu-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(13,13,13,0.07); }
.edu-card h4 { font-size: 1rem; font-weight: 700; margin: .4rem 0 .25rem; }
.edu-card p  { font-size: .82rem; color: var(--muted); }

/* ════════════════════════
   SKILLS
════════════════════════ */
.skills-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.skill-col {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 16px; padding: 2rem;
  transition: transform .3s var(--ease-out), box-shadow .3s, border-color .3s;
}
.skill-col:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(13,13,13,.08); border-color: var(--accent); }
.skill-col h4 {
  font-family: var(--mono); font-size: .68rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1.2rem;
}
.skill-col ul { list-style: none; }
.skill-col li {
  font-size: .88rem; color: var(--ink2);
  padding: .5rem 0; border-bottom: 1px solid var(--bg-cream);
  display: flex; align-items: center; gap: .6rem;
  transition: color .2s, padding-left .2s;
}
.skill-col li:last-child { border-bottom: none; }
.skill-col li::before { content: '·'; color: var(--accent); font-size: 1rem; flex-shrink: 0; }
.skill-col li:hover { color: var(--ink); padding-left: 4px; }

/* ════════════════════════
   CONTACT
════════════════════════ */
.contact-wrap { max-width: 780px; margin: 0 auto; text-align: center; }
.contact-heading { margin-bottom: 2rem; }
.contact-sub {
  font-size: 1rem; color: rgba(255,255,255,0.5);
  line-height: 1.7; margin-bottom: 2.5rem;
  max-width: 600px; margin-left: auto; margin-right: auto;
}
.contact-links { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.5rem; justify-content: center; }
.contact-email { font-size: .8rem; color: rgba(255,255,255,0.45); margin-bottom: .4rem; font-family: var(--mono); letter-spacing: .02em; }
.contact-reply { font-size: .8rem; color: rgba(255,255,255,0.3); font-style: italic; margin-bottom: .6rem; }
.contact-location { font-size: .8rem; color: rgba(255,255,255,0.3); }

/* ════════════════════════
   FOOTER
════════════════════════ */
footer {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 2rem 2.5rem;
}
.footer-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
footer .nav-logo { color: var(--white); }
footer p { font-size: .78rem; color: rgba(255,255,255,0.3); }

/* ════════════════════════
   RESPONSIVE
════════════════════════ */
@media (max-width: 1100px) {
  .float-1 { right: -110px; }
  .float-2 { right: -100px; }
  .float-3 { left: -115px; }
  .float-4 { left: -105px; }
}

@media (max-width: 900px) {
  #hero { grid-template-columns: 1fr; text-align: center; padding-top: 7rem; gap: 3rem; }
  .hero-left { display: flex; flex-direction: column; align-items: center; }
  .hero-sub { max-width: 100%; }
  .hero-right { justify-content: center; }
  .float-badge { display: none; }
  .about-grid  { grid-template-columns: 1fr; gap: 3rem; }
  .about-right { justify-content: center; }
  .services-grid { grid-template-columns: 1fr; }
  .stat-div { display: none; }
  .stats-inner { justify-content: center; gap: 2rem; flex-wrap: wrap; }
  .stat-item { text-align: center; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .polaroid-stack { margin: 0 auto; }
}

@media (max-width: 600px) {
  /* ── Nav ── */
  #navbar {
    padding: .85rem 1.25rem;
    background: var(--bg) !important;
    border-bottom: 1px solid var(--border) !important;
  }
  #navbar.compact .nav-logo,
  #navbar.compact .burger { opacity: 1; pointer-events: auto; }
  #navbar.compact { padding: .85rem 1.25rem; }
  .nav-pill { display: none !important; opacity: 0 !important; pointer-events: none !important; }
  .nav-links {
    display: none; position: fixed; inset: 0;
    background: var(--bg); flex-direction: column;
    align-items: center; justify-content: center; gap: 2.5rem; z-index: 100;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.2rem; }
  .burger { display: flex; }
  .nav-logo { font-size: .82rem; }

  /* ── Layout ── */
  .container { padding: 0 1.25rem; }
  .section-light, .section-dark, .section-cream { padding: 3.5rem 0; }
  .display-heading { font-size: clamp(1.9rem, 7.5vw, 2.4rem); }

  /* ── Hero ── */
  #hero { padding-top: 5.5rem; gap: 2rem; }
  .hero-title { font-size: clamp(2.1rem, 8vw, 2.8rem); line-height: 1.1; }
  .phone-scene { width: 200px; }
  .phone { width: 200px; height: 410px; }
  .hero-actions { flex-direction: column; align-items: center; gap: .75rem; width: 100%; }
  .hero-actions .btn { width: 100%; max-width: 300px; text-align: center; justify-content: center; }
  .hero-meta-row { justify-content: center; }

  /* ── Stats ── */
  .stats-bar { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .stats-inner { flex-wrap: nowrap; min-width: max-content; padding: 1.5rem 1.25rem; gap: 2.5rem; }

  /* ── About — polaroid becomes horizontal scroll ── */
  .about-right {
    padding: 0;
    justify-content: flex-start;
    width: 100%;
    overflow: hidden;
  }
  .polaroid-stack {
    /* Switch from position:absolute stack to horizontal flex scroll */
    position: static !important;
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
    height: auto !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding: 1rem 1.25rem 1.5rem;
    cursor: grab;
  }
  .polaroid-stack::-webkit-scrollbar { display: none; }
  .polaroid {
    /* Each card: fixed width, no absolute positioning */
    position: static !important;
    transform: none !important;
    width: 72vw !important;
    max-width: 260px;
    flex-shrink: 0;
    scroll-snap-align: center;
    z-index: auto !important;
  }
  /* Disable hint animation & fan on mobile */
  .polaroid.hint-animate { animation: none !important; }
  .polaroid-stack.fanned .polaroid { transform: none !important; }
  .polaroid-caption { opacity: 1 !important; }

  /* ── Projects ── */
  .project-grid { grid-template-columns: 1fr; gap: 1.5rem; }

  /* ── Services ── */
  .services-grid { grid-template-columns: 1fr; gap: 1rem; }
  .service-card { padding: 1.5rem; }

  /* ── Contact ── */
  .contact-links { flex-direction: column; align-items: center; }
  .contact-links .btn { width: 100%; max-width: 300px; text-align: center; justify-content: center; }
}
