/* =========================================================
   Samuel Rigaux — portfolio
   Apple-inspired layout, emerald / ice-cyan "aurora" palette
   ========================================================= */
:root {
  --accent: #2ee6a8;          /* emerald mint */
  --accent-2: #8cf5ff;        /* ice cyan */
  --accent-strong: #10b981;
  --accent-glow: rgba(46, 230, 168, 0.45);
  --deep: #031a18;
  --deep-2: #073a33;
  --black: #000000;
  --white: #ffffff;
  --grey: #999999;
  --card: #0d1110;
  --line: rgba(255, 255, 255, 0.12);
  --grad: linear-gradient(90deg, var(--accent), var(--accent-2));

  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --mono: "Space Mono", ui-monospace, Menlo, Consolas, monospace;
  --script: "Kaushan Script", cursive;

  --container: 1170px;
  --gutter: 15px;
  --section-pad: 112px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 4px;
  --radius-pill: 30px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html:not(.smooth) { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
#page { overflow-x: clip; position: relative; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; }
p { margin: 0 0 1.4em; }
::selection { background: var(--accent); color: #002b20; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 2; }
.row { display: flex; flex-wrap: wrap; margin: 0 calc(-1 * var(--gutter)); }
.col-4, .col-8 { width: 100%; padding: 0 var(--gutter); }
@media (min-width: 992px) { .col-4 { width: 33.3333%; } .col-8 { width: 66.6667%; } }
@media (min-width: 768px) and (max-width: 991px) { .container { max-width: 750px; } }
@media (min-width: 992px) and (max-width: 1199px) { .container { max-width: 970px; } }

/* film grain overlay */
.grain {
  position: absolute; inset: 0; pointer-events: none; z-index: 1; opacity: 0.12; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- intro loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 2000; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 110%, #0e5a4c 0%, #03201c 45%, #000 80%);
  animation: loaderOut 0.7s cubic-bezier(0.76, 0, 0.24, 1) 0.9s forwards;
}
.loader-glow { position: absolute; left: 50%; bottom: -30vh; width: 90vw; height: 60vh; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(46, 230, 168, 0.5), transparent); filter: blur(40px); }
.loader-num { position: absolute; left: 4vw; bottom: 3vh; font-weight: 900; font-size: clamp(80px, 13vw, 190px); line-height: 1; letter-spacing: -0.05em; color: #e8fff6; font-variant-numeric: tabular-nums; }
.loader-num::after { content: "%"; font-size: 0.35em; vertical-align: top; margin-left: 0.08em; color: var(--accent); }
.loader-name { position: absolute; right: 4vw; bottom: 5vh; font-family: var(--script); font-size: clamp(22px, 2.6vw, 36px); color: rgba(255, 255, 255, 0.85); }
@keyframes loaderOut { to { transform: translateY(-100%); visibility: hidden; } }
.loaded .loader { display: none; }

/* ---------- scroll progress ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 1001; pointer-events: none; }
.progress span { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--grad); box-shadow: 0 0 12px var(--accent-glow); }

/* ---------- navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: 52px;
  border-bottom: 1px solid transparent;
  transition: background 0.5s var(--ease), border-color 0.5s;
  animation: navIn 1.1s var(--ease) 1.5s both;
}
.nav.scrolled { background: #000000cc; -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom-color: rgba(255, 255, 255, 0.08); }
@keyframes navIn { from { transform: translateY(-100%); opacity: 0; } to { transform: none; opacity: 1; } }
.nav-inner { max-width: 1024px; height: 100%; margin: 0 auto; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-weight: 800; font-size: 14px; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: #002b20; background: var(--grad); box-shadow: 0 4px 18px var(--accent-glow); }
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a { display: block; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, 0.82); transition: color 0.3s, background 0.3s; }
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(255, 255, 255, 0.1); }
.nav-links a.nav-cta { background: var(--accent); color: #002b20; font-weight: 600; padding: 6px 16px; }
.nav-links a.nav-cta:hover { background: var(--accent-2); }
.nav-toggle { display: none; }
@media (max-width: 767px) {
  .nav-toggle { display: flex; flex-direction: column; justify-content: center; gap: 6px; width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer; padding: 0 9px; }
  .nav-toggle span { display: block; height: 1.6px; background: #fff; border-radius: 2px; transition: transform 0.45s var(--ease); }
  .nav.open .nav-toggle span:first-child { transform: translateY(3.8px) rotate(45deg); }
  .nav.open .nav-toggle span:last-child { transform: translateY(-3.8px) rotate(-45deg); }
  .nav-links { position: fixed; top: 52px; left: 0; right: 0; height: 0; overflow: hidden; flex-direction: column; align-items: stretch; gap: 0; padding: 0 28px; background: rgba(2, 10, 9, 0.95); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); transition: height 0.6s var(--ease); }
  .nav.open { background: rgba(2, 10, 9, 0.95); }
  .nav.open .nav-links { height: calc(100vh - 52px); padding-top: 18px; }
  .nav-links li { opacity: 0; transform: translateY(-10px); transition: opacity 0.4s, transform 0.5s var(--ease); }
  .nav.open .nav-links li { opacity: 1; transform: none; }
  .nav.open .nav-links li:nth-child(n) { transition-delay: calc(var(--n, 0) * 40ms); }
  .nav-links a, .nav-links a.nav-cta { font-size: 26px; font-weight: 600; padding: 10px 0; background: none; color: #fff; border-radius: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .nav-links a.nav-cta { color: var(--accent); }
}

/* ---------- shared section ---------- */
.section { position: relative; padding: var(--section-pad) 0; overflow: hidden; }
.deep {
  background:
    radial-gradient(60% 55% at 12% 0%, rgba(46, 230, 168, 0.22), transparent 70%),
    radial-gradient(55% 60% at 100% 100%, rgba(140, 245, 255, 0.16), transparent 70%),
    linear-gradient(160deg, #06322c 0%, #041f1c 55%, #031615 100%);
}
.heading { text-align: center; max-width: 750px; margin: 0 auto 80px; }
.heading.sub { margin: 70px auto 50px; }
.heading h2 { font-size: 40px; line-height: 1.5; font-weight: 700; color: #fffbfb; letter-spacing: -0.03em; }
@media (min-width: 992px) { .heading h2 { font-size: 40px; line-height: 1.3; } }
.mask { overflow: hidden; padding-bottom: 0.06em; }
.mask > span { display: inline-block; background: linear-gradient(180deg, #ffffff 35%, #b9ffe6 120%); -webkit-background-clip: text; background-clip: text; color: transparent; transition: transform 1.1s var(--ease); transition-delay: 0.1s; }
.eyebrow { font-family: var(--mono); font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase; margin: 0 0 10px; color: var(--accent); }
.heading .lead { font-size: 18px; color: rgba(255, 255, 255, 0.72); margin: 14px 0 0; line-height: 1.6; }

/* ---------- reveal animations (armed on first interaction) ---------- */
.reveal { transition: opacity 1s var(--ease), transform 1.2s var(--ease), filter 1s var(--ease); transition-delay: calc(var(--d, 0) * 110ms); }
.reveal[data-delay="1"] { --d: 1; }
.reveal[data-delay="2"] { --d: 2; }
.reveal[data-delay="3"] { --d: 3; }
.reveal.pending { opacity: 0; transform: translate3d(0, 60px, 0) scale(0.96); filter: blur(10px); }
.heading.reveal.pending { opacity: 1; transform: none; filter: none; }
.heading.reveal.pending .eyebrow, .heading.reveal.pending .lead { opacity: 0; }
.heading .eyebrow, .heading .lead { transition: opacity 1s var(--ease) 0.25s; }
.reveal.pending .mask > span { transform: translateY(110%) skewY(6deg); }

/* ---------- HERO ---------- */
.hero { position: relative; height: 100vh; min-height: 640px; max-height: 1400px; display: flex; align-items: center; justify-content: center; overflow: hidden; text-align: center; background: var(--deep); will-change: clip-path; }
.hero-bg, .started-bg { position: absolute; inset: -6%; background-size: cover; background-position: center; filter: blur(6px) saturate(0.9); transform: scale(1.12); will-change: transform; }
.hero-bg { animation: heroZoom 2.6s var(--ease) 0.9s both; }
@keyframes heroZoom { from { transform: scale(1.4); filter: blur(24px); } to { transform: scale(1.12); filter: blur(6px); } }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 60% at 50% 110%, rgba(46, 230, 168, 0.55), transparent 70%),
    linear-gradient(180deg, rgba(3, 30, 27, 0.82) 0%, rgba(4, 48, 42, 0.8) 60%, rgba(3, 26, 24, 0.95) 100%);
}
.orb { position: absolute; border-radius: 50%; pointer-events: none; mix-blend-mode: screen; filter: blur(60px); opacity: 0.5; }
.orb-a { width: 520px; height: 520px; left: -140px; top: -120px; background: radial-gradient(circle, #2ee6a8, transparent 65%); animation: drift1 16s ease-in-out infinite alternate; }
.orb-b { width: 600px; height: 600px; right: -200px; bottom: -220px; background: radial-gradient(circle, #8cf5ff, transparent 65%); opacity: 0.35; animation: drift2 19s ease-in-out infinite alternate; }
.orb-c { width: 360px; height: 360px; left: 55%; top: 15%; background: radial-gradient(circle, #d4ff5a, transparent 65%); opacity: 0.18; animation: drift3 13s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(180px, 140px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-200px, -120px) scale(0.9); } }
@keyframes drift3 { to { transform: translate(-160px, 120px) scale(1.25); } }

.hero-content { position: relative; z-index: 3; padding: 0 20px; will-change: transform, opacity; }
.profile-wrap { position: relative; width: 150px; height: 150px; margin: 0 auto 30px; animation: popIn 1.3s var(--ease-spring) 1.2s both; }
.profile-thumb { position: absolute; inset: 0; border-radius: 50%; background-size: cover; background-position: center; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45); }
.profile-ring {
  position: absolute; inset: -8px; border-radius: 50%;
  background: conic-gradient(from 0deg, #2ee6a8, #8cf5ff, #d4ff5a, #2ee6a8);
  animation: spin 6s linear infinite;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes popIn { from { transform: scale(0.4); opacity: 0; filter: blur(10px); } to { transform: none; opacity: 1; filter: none; } }
.hero-title { font-family: var(--script); font-weight: 300; font-size: 50px; line-height: 1.3; letter-spacing: 0; margin: 0 0 10px; color: #fff; display: flex; align-items: center; justify-content: center; gap: 18px; text-shadow: 0 6px 40px rgba(0, 0, 0, 0.35); }
.hero-title .dash { width: 28px; height: 3px; background: var(--accent); border-radius: 2px; transform: scaleX(0); animation: dash 0.9s var(--ease) 2.2s forwards; }
@keyframes dash { to { transform: scaleX(1); } }
.split .ch { display: inline-block; opacity: 0; transform: translateY(0.6em) rotate(8deg) scale(0.6); filter: blur(12px); animation: charIn 0.9s var(--ease) forwards; animation-delay: calc(1.45s + var(--i) * 45ms); }
@keyframes charIn { to { opacity: 1; transform: none; filter: none; } }
.hero-sub { font-family: var(--mono); font-size: 16px; font-weight: 400; letter-spacing: 0.02em; line-height: 1.3; margin: 0 0 28px; }
.hero-sub span {
  display: inline-block;
  background: linear-gradient(90deg, rgba(255,255,255,0.75) 0%, #ffffff 40%, #b9ffe6 50%, #ffffff 60%, rgba(255,255,255,0.75) 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: fadeUp 1s var(--ease) 2.15s both, shimmer 4.5s linear 3s infinite;
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -150% 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.social { display: flex; justify-content: center; gap: 9px; }
.hero .social li { animation: fadeUp 0.9s var(--ease) both; }
.hero .social li:nth-child(1) { animation-delay: 2.35s; }
.hero .social li:nth-child(2) { animation-delay: 2.45s; }
.social a { width: 50px; height: 36px; display: grid; place-items: center; color: #fff; transition: transform 0.4s var(--ease), color 0.3s; }
.social a svg { width: 20px; height: 20px; }
.social a:hover { color: var(--accent); }
.social-square { justify-content: flex-start; gap: 10px; }
.social-square a { width: 40px; height: 39px; border-radius: 10px; background: var(--accent); color: #002b20; box-shadow: 0 6px 24px var(--accent-glow); }
.social-square a:hover { transform: translateY(-3px) scale(1.06); color: #002b20; background: var(--accent-2); }
.social-square a svg { width: 17px; height: 17px; }
.scroll-hint { position: absolute; left: 50%; bottom: 34px; z-index: 3; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, 0.7); border-radius: 14px; animation: fadeUp 1s var(--ease) 3s both; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--accent); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- MANIFESTO (pinned scroll story) ---------- */
.manifesto { position: relative; background: #000; }
.manifesto-pin { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 100px 6vw; overflow: hidden; }
.manifesto.pinned { height: 320vh; }
.manifesto.pinned .manifesto-pin { position: sticky; top: 0; height: 100vh; }
.manifesto-bg { position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 50%, rgba(46, 230, 168, calc(0.08 + var(--glow, 0.12))), transparent 70%); pointer-events: none; }
.manifesto-kicker { position: relative; font-family: var(--mono); font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin: 0 0 4vh; }
.manifesto-lines { position: relative; }
.m-line { display: flex; align-items: baseline; gap: 2vw; margin: 0; line-height: 1; }
.m-num { font-family: var(--mono); font-size: clamp(14px, 1.3vw, 20px); color: rgba(255, 255, 255, 0.5); min-width: 3ch; }
.m-word {
  font-weight: 900; letter-spacing: -0.055em; font-size: clamp(54px, 12vw, 190px); line-height: 1.02;
  background: linear-gradient(90deg, #ffffff, #b9ffe6 60%, #8cf5ff); -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: var(--lit, 1); transform: translateX(calc((1 - var(--lit, 1)) * -6vw)) scale(calc(0.9 + var(--lit, 1) * 0.1)); transform-origin: left center;
  filter: blur(calc((1 - var(--lit, 1)) * 6px));
  transition: opacity 0.15s linear;
}
.manifesto-bar { position: relative; margin-top: 6vh; height: 2px; width: min(420px, 60vw); background: rgba(255, 255, 255, 0.12); border-radius: 2px; overflow: hidden; }
.manifesto-bar span { position: absolute; inset: 0; background: var(--grad); transform-origin: 0 50%; transform: scaleX(var(--mp, 1)); }

/* ---------- ABOUT ---------- */
.about { background: var(--black); }
.about-row { align-items: flex-start; }
.glass { background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)); border: 1px solid var(--line); border-radius: var(--radius-lg); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.info { padding: 26px 24px; margin-bottom: 40px; }
.info li { display: flex; gap: 14px; padding: 8px 0; font-size: 14px; line-height: 1.6; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.info li:last-child { border-bottom: 0; }
.first-block { flex: 0 0 82px; font-family: var(--mono); color: var(--accent); }
.second-block { color: #fff; word-break: break-word; font-weight: 500; }
.hello { font-size: 30px; line-height: 1.1; margin: 0 0 22px; color: #fffbfb; }
.about p { font-size: 16px; line-height: 1.85; color: #fff; }
.scrub .w { transition: opacity 0.25s linear; opacity: var(--o, 1); }

/* ---------- RESUME / TIMELINE ---------- */
.resume { background: var(--black); padding-top: 60px; }
.timeline { position: relative; padding: 20px 0 0; }
.timeline-line { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px; background: rgba(255, 255, 255, 0.12); border-radius: 3px; }
.timeline-line span { position: absolute; inset: 0; transform-origin: 50% 0; transform: scaleY(var(--p, 1)); background: linear-gradient(180deg, var(--accent-2), var(--accent) 40%, var(--accent-strong)); box-shadow: 0 0 18px var(--accent-glow); border-radius: 3px; }
.t-heading { position: relative; text-align: center; margin: 0 0 40px; z-index: 2; }
.t-item + .t-heading { margin-top: 30px; }
.t-heading h3 { display: inline-block; padding: 4px 16px; border-radius: var(--radius-sm); background: var(--accent); color: #002b20; font-family: var(--mono); font-size: 18px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; line-height: 26px; box-shadow: 0 10px 40px var(--accent-glow); }
.t-item { position: relative; min-height: 80px; margin-bottom: 30px; display: flex; }
.t-item.left { justify-content: flex-start; }
.t-item.right { justify-content: flex-end; }
.t-badge { position: absolute; left: 50%; top: 20px; z-index: 3; width: 50px; height: 50px; margin-left: -25px; border-radius: 50%; display: grid; place-items: center; background: #121816; color: rgba(255, 255, 255, 0.5); border: 2px solid rgba(255, 255, 255, 0.15); transition: background 0.6s var(--ease), color 0.6s, border-color 0.6s, transform 0.7s var(--ease-spring), box-shadow 0.6s; }
.t-badge svg { width: 20px; height: 20px; }
.t-item.lit .t-badge { background: var(--accent); color: #002b20; border-color: var(--accent-2); transform: scale(1.08); box-shadow: 0 0 0 8px rgba(46, 230, 168, 0.15), 0 0 30px var(--accent-glow); }
.t-panel { position: relative; width: calc(50% - 57px); padding: 26px 30px; border-radius: var(--radius-md); background: linear-gradient(160deg, #111816, #0a0d0c); border: 1px solid rgba(255, 255, 255, 0.08); transition: opacity 1s var(--ease), transform 1.2s var(--ease), filter 1s var(--ease), border-color 0.4s, box-shadow 0.4s; }
.t-item.left .t-panel { text-align: right; }
.t-item.pending .t-panel { opacity: 0; filter: blur(8px); }
.t-item.left.pending .t-panel { transform: translate3d(-80px, 20px, 0) rotate(-2deg); }
.t-item.right.pending .t-panel { transform: translate3d(80px, 20px, 0) rotate(2deg); }
.t-panel:hover { border-color: rgba(46, 230, 168, 0.45); box-shadow: 0 20px 60px rgba(46, 230, 168, 0.12); }
.t-title { font-size: 24px; line-height: 1.1; font-weight: 600; color: #fff; margin: 0 0 10px; }
.company { display: block; font-family: var(--mono); font-size: 14px; color: var(--accent); margin-bottom: 14px; }
.t-panel p { font-size: 16px; line-height: 1.7; color: rgba(255, 255, 255, 0.82); margin: 0; }
@media (max-width: 768px) {
  .timeline-line { left: 25px; }
  .t-heading { text-align: left; }
  .t-heading h3 { font-size: 16px; letter-spacing: 0.08em; }
  .t-item, .t-item.left, .t-item.right { justify-content: flex-end; }
  .t-badge { left: 25px; top: 18px; width: 40px; height: 40px; margin-left: -20px; }
  .t-badge svg { width: 16px; height: 16px; }
  .t-panel { width: calc(100% - 64px); padding: 20px; }
  .t-item.left .t-panel, .t-item.right .t-panel { text-align: left; }
  .t-item.left.pending .t-panel, .t-item.right.pending .t-panel { transform: translate3d(50px, 10px, 0); }
  .t-title { font-size: 20px; }
}

/* ---------- FEATURES ---------- */
.features .heading { margin-bottom: 60px; }
.cards-3 > .col-4 { margin-bottom: 30px; }
.feature { height: 100%; text-align: center; padding: 44px 30px 36px; border-radius: var(--radius-lg); background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03)); border: 1px solid rgba(255, 255, 255, 0.14); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3); transform-style: preserve-3d; position: relative; overflow: hidden; }
.feature::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.4s; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(46, 230, 168, 0.25), transparent 45%); }
.feature:hover::after { opacity: 1; }
.feature .icon { width: 80px; height: 80px; margin: 0 auto 26px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #002b20; box-shadow: 0 12px 30px var(--accent-glow); transition: transform 0.7s var(--ease-spring); }
.feature:hover .icon { transform: translateZ(40px) scale(1.08) rotate(-6deg); }
.feature .icon svg { width: 34px; height: 34px; }
.feature h3 { font-size: 20px; line-height: 1.2; margin-bottom: 14px; color: #fff; }
.feature p { font-size: 14px; line-height: 1.75; color: rgba(255, 255, 255, 0.8); margin: 0; }

/* ---------- SKILLS (bento cards with segmented meters) ---------- */
.skills { background: var(--black); }
.skills-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-bottom: 40px; }
@media (min-width: 768px) and (max-width: 991px) { .skills-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .skills-grid { grid-template-columns: 1fr 1fr; gap: 12px; } }
.skill {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
  min-height: 170px; padding: 22px 22px 20px; border-radius: 22px;
  background: linear-gradient(160deg, #101614, #070908); border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.6s var(--ease), border-color 0.4s, box-shadow 0.6s var(--ease), opacity 1s var(--ease), filter 1s var(--ease);
}
.skill::before { content: ""; position: absolute; right: -40%; top: -60%; width: 120%; height: 120%; background: radial-gradient(closest-side, rgba(46, 230, 168, calc(var(--p, 0.9) * 0.22)), transparent); pointer-events: none; transition: transform 0.8s var(--ease); }
.skill:hover { transform: translateY(-6px); border-color: rgba(46, 230, 168, 0.4); box-shadow: 0 24px 50px rgba(46, 230, 168, 0.12); }
.skill:hover::before { transform: scale(1.2); }
.skill-name { position: relative; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, 0.85); }
.skill-num { position: relative; font-weight: 800; font-size: 52px; line-height: 1; letter-spacing: -0.05em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; margin: 16px 0 14px; }
.skill-bar { position: relative; display: block; height: 10px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); -webkit-mask: repeating-linear-gradient(90deg, #000 0 7px, transparent 7px 10px); mask: repeating-linear-gradient(90deg, #000 0 7px, transparent 7px 10px); }
.skill-bar::after { content: ""; position: absolute; inset: 0; width: calc(var(--fill, 1) * var(--p, 0.9) * 100%); background: var(--grad); box-shadow: 0 0 14px var(--accent-glow); transition: width 1.8s var(--ease); }
@media (max-width: 767px) { .skill { min-height: 140px; padding: 18px 16px; } .skill-num { font-size: 40px; } }

/* ---------- WORK ---------- */
.work .heading { margin-bottom: 60px; }
.work-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
@media (max-width: 991px) { .work-grid { grid-template-columns: 1fr; } }
.work-card { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: var(--radius-md); overflow: hidden; background: #111; box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4); isolation: isolate; }
.work-media { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 1.2s var(--ease), filter 0.8s var(--ease); }
.work-media.contain { background-size: 82% auto; background-repeat: no-repeat; }
.work-media.light { background-color: #ffffff; }
.work-card:hover .work-media { transform: scale(1.1); filter: brightness(0.5) saturate(1.2); }
.work-card .desc { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 50px 20px 20px; text-align: left; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.8)); transform: translateY(40%); opacity: 0; transition: transform 0.7s var(--ease), opacity 0.5s var(--ease); }
.work-card:hover .desc, .work-card:focus-visible .desc { transform: none; opacity: 1; }
@media (hover: none) { .work-card .desc { transform: none; opacity: 1; } }
.work-card h3 { font-size: 20px; line-height: 1.2; color: #fff; }
.work-card .desc span { font-family: var(--mono); font-size: 13px; color: rgba(255, 255, 255, 0.75); }
.work-arrow { position: absolute; top: 14px; right: 14px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #002b20; transform: scale(0) rotate(-45deg); transition: transform 0.6s var(--ease-spring); }
.work-arrow svg { width: 18px; height: 18px; }
.work-card:hover .work-arrow { transform: none; }

/* ---------- PHOTOGRAPHY (horizontal scroll story) ---------- */
.photo { position: relative; background: #000; }
.photo-pin { position: relative; padding: var(--section-pad) 0; overflow: hidden; }
.photo-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.photo-intro { grid-column: 1 / -1; text-align: center; max-width: 750px; margin: 0 auto 50px; }
.photo-intro h2 { font-size: 40px; line-height: 1.5; font-weight: 700; color: #fffbfb; letter-spacing: -0.03em; }
@media (min-width: 992px) { .photo-intro h2 { font-size: 40px; line-height: 1.3; } }
.photo-intro .lead { font-size: 18px; color: rgba(255, 255, 255, 0.72); margin: 16px 0 0; line-height: 1.6; }
.photo-hint { display: none; align-items: center; gap: 10px; margin-top: 28px; font-family: var(--mono); font-size: 13px; color: var(--accent); }
.photo-hint svg { width: 18px; height: 18px; }
.shot { margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--card); border: 1px solid rgba(255, 255, 255, 0.07); transition: border-color 0.4s, box-shadow 0.6s var(--ease); }
.shot:hover { border-color: rgba(46, 230, 168, 0.35); box-shadow: 0 30px 70px rgba(46, 230, 168, 0.12); }
.shot-img { height: 300px; overflow: hidden; }
.shot-img span { display: block; height: 100%; background-size: cover; background-position: center; transform: scale(var(--zoom, 1.02)); transition: transform 1.4s var(--ease); }
.shot:hover .shot-img span { transform: scale(1.08); }
.shot figcaption { padding: 26px 28px 28px; }
.shot-meta { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 13px; color: var(--accent); margin-bottom: 10px; }
.shot-meta svg { width: 15px; height: 15px; }
.shot h3 { font-size: 22px; line-height: 1.25; margin-bottom: 12px; }
.shot p { font-size: 15px; line-height: 1.75; color: rgba(255, 255, 255, 0.72); margin: 0; }
.photo-progress { display: none; }
@media (max-width: 991px) { .photo-track { grid-template-columns: 1fr; } .shot-img { height: 340px; } }

/* horizontal mode (desktop, after the visitor starts scrolling) */
.photo.hs .photo-pin { position: sticky; top: 0; height: 100vh; padding: 0; display: flex; align-items: center; }
.photo.hs .photo-track { display: flex; gap: 3vw; max-width: none; margin: 0; padding: 0 6vw; will-change: transform; align-items: center; }
.photo.hs .photo-intro { flex: 0 0 34vw; text-align: left; margin: 0; }
.photo.hs .photo-hint { display: inline-flex; }
.photo.hs .shot { flex: 0 0 auto; width: 38vw; display: flex; flex-direction: column; }
.photo.hs .shot-img { height: 52vh; }
.photo.hs .shot figcaption { padding: 22px 26px 24px; }
.photo.hs .shot p { font-size: 14px; }
.photo.hs .photo-progress { display: block; position: absolute; left: 6vw; right: 6vw; bottom: 6vh; height: 2px; background: rgba(255, 255, 255, 0.12); border-radius: 2px; overflow: hidden; }
.photo.hs .photo-progress span { position: absolute; inset: 0; background: var(--grad); transform-origin: 0 50%; transform: scaleX(var(--hp, 0)); }

/* ---------- CONTACT ---------- */
.started { text-align: center; padding: 140px 0; }
.started .heading { margin-bottom: 0; }
.started .lead { margin-bottom: 34px; color: rgba(255, 255, 255, 0.8); }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 34px; border-radius: var(--radius-pill); background: var(--grad); color: #002b20; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; box-shadow: 0 16px 40px var(--accent-glow); transition: transform 0.4s var(--ease), box-shadow 0.4s; }
.btn svg { width: 20px; height: 20px; }
.btn:hover { box-shadow: 0 20px 60px rgba(140, 245, 255, 0.45); }

/* ---------- footer / go to top ---------- */
.footer { background: #000; padding: 26px 0; text-align: center; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.footer p { margin: 0; font-size: 13px; color: #86868b; }
.gototop { position: fixed; right: 20px; bottom: 20px; z-index: 999; opacity: 0; visibility: hidden; transform: translateY(20px) scale(0.8); transition: all 0.5s var(--ease); }
.gototop.show { opacity: 1; visibility: visible; transform: none; }
.gototop a { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: rgba(20, 28, 26, 0.8); border: 1px solid rgba(255, 255, 255, 0.15); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); transition: background 0.3s, color 0.3s, transform 0.4s var(--ease); }
.gototop a:hover { background: var(--accent); color: #002b20; transform: translateY(-3px); }
.gototop svg { width: 20px; height: 20px; }

/* ---------- responsive type ---------- */
@media (max-width: 768px) {
  .hero-title { font-size: 34px; gap: 12px; }
  .hero-title .dash { width: 18px; }
  .hero-sub { font-size: 14px; }
  .heading h2, .photo-intro h2 { font-size: 40px; line-height: 1.2; }
}
@media (max-width: 767px) {
  :root { --section-pad: 80px; }
  .heading { margin-bottom: 50px; }
  .hello { font-size: 26px; }
  .profile-wrap { width: 130px; height: 130px; }
  .orb-a { width: 340px; height: 340px; }
  .orb-b { width: 380px; height: 380px; }
  .shot-img { height: 260px; }
  .manifesto-pin { padding: 80px 20px; }
  .m-line { flex-direction: column; gap: 4px; margin-bottom: 18px; }
  .m-word { font-size: 11vw; }
}
@media (max-width: 480px) { .started { padding: 100px 0; } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .loader { display: none; }
}
