:root {
  --black: #050505;
  --ink: #111111;
  --white: #f7f2ed;
  --paper: #ebe6df;
  --paper-2: #f2eee8;
  --muted: #756e68;
  --line: rgba(17, 17, 17, .14);
  --line-light: rgba(247, 242, 237, .16);
  --pink: #f4b6dc;
  --pink-strong: #f199cf;
  --pink-soft: #f8d6ea;
  --silver: #d7dbe1;
  --radius-xl: 34px;
  --radius-md: 18px;
  --shadow: 0 24px 80px rgba(0,0,0,.2);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--pink); color: #111; }

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .11;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
}
.cursor-glow {
  position: fixed;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(244, 182, 220, .9);
  background: transparent;
  pointer-events: none;
  z-index: 110;
  opacity: .78;
  transform: translate(-50%, -50%);
}
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 999;
  background: var(--pink);
  box-shadow: 0 0 18px rgba(244,182,220,.65);
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 28px));
  height: 62px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 10px 9px 12px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(5, 5, 5, .75);
  color: var(--white);
  backdrop-filter: blur(18px);
  border-radius: 999px;
  box-shadow: 0 16px 50px rgba(0,0,0,.22);
}
.logo-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.03em; }
.se-logo {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.22);
  overflow: hidden;
  isolation: isolate;
}
.se-logo span {
  position: absolute;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 900;
  font-size: 22px;
  line-height: 1;
  transform-origin: center;
}
.logo-s { color: var(--white); transform: translateX(-5px); animation: logoS 4.4s ease-in-out infinite; }
.logo-e { color: var(--pink); transform: translateX(6px); animation: logoE 4.4s ease-in-out infinite; }
.se-logo i {
  position: absolute;
  width: 120%; height: 1px;
  background: var(--white);
  transform: rotate(-24deg);
  opacity: .55;
  animation: logoSlash 3.2s ease-in-out infinite;
}
@keyframes logoS { 0%,100% { transform: translateX(-5px) rotate(0); } 50% { transform: translateX(-1px) rotate(-12deg); } }
@keyframes logoE { 0%,100% { transform: translateX(6px) rotate(0); } 50% { transform: translateX(1px) rotate(12deg); } }
@keyframes logoSlash { 0%,100% { transform: rotate(-24deg) translateX(-18px); } 50% { transform: rotate(-24deg) translateX(18px); } }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a, .nav-cta {
  font-size: 13px;
  font-weight: 800;
  border-radius: 999px;
  padding: 12px 14px;
  transition: .25s ease;
}
.main-nav a { color: rgba(245,242,237,.75); }
.main-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-cta { background: var(--white); color: var(--black); }
.nav-cta:hover { transform: translateY(-1px); background: #fff; }

.hero {
  position: relative;
  min-height: 100svh;
  color: var(--white);
  overflow: hidden;
  padding: clamp(122px, 12vw, 168px) 28px clamp(118px, 11vw, 150px);
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    radial-gradient(circle at 13% 12%, rgba(255, 255, 255, 0.05), transparent 40%),
    radial-gradient(circle at 88% 56%, rgba(255, 255, 255, 0.05), transparent 36%),
    #050505;
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
}
.hero::before {
  content: "SERGEY";
  position: absolute;
  right: -3vw;
  bottom: 74px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(96px, 17vw, 240px);
  font-weight: 900;
  line-height: .78;
  letter-spacing: -.08em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.12);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: clamp(76px, 8vw, 124px);
  background: var(--paper);
  clip-path: polygon(0 58%, 14% 28%, 28% 52%, 44% 24%, 61% 48%, 78% 23%, 100% 44%, 100% 100%, 0 100%);
  z-index: 0;
}
.hero-grid {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(380px, .74fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 900;
  color: rgba(245,242,237,.7);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1px solid rgba(244, 182, 220, .9);
  box-shadow: 0 0 0 4px rgba(244,182,220,.06), 0 0 18px rgba(244,182,220,.2);
}
.eyebrow.dark { color: var(--muted); }
.hero-title {
  max-width: 830px;
  margin: 0;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(50px, 7.3vw, 112px);
  line-height: .84;
  letter-spacing: -.075em;
  text-transform: uppercase;
}
.hero-lead {
  max-width: 650px;
  margin: 28px 0 0;
  color: rgba(245,242,237,.72);
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.55;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: -.02em;
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
}
.button:hover { transform: translateY(-2px); }
.button-light { background: var(--white); color: var(--black); }
.button-ghost { color: var(--white); border: 1px solid var(--line-light); }
.button-dark { background: var(--black); color: var(--white); }
.button-outline-dark { border: 1px solid var(--line); color: var(--black); }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 1px;
  width: min(760px, 100%);
  margin-top: 48px;
  border: 1px solid var(--line-light);
  background: var(--line-light);
  border-radius: 22px;
  overflow: hidden;
}
.hero-stats article { padding: 16px; background: rgba(255,255,255,.045); backdrop-filter: blur(14px); }
.hero-stats strong { display: block; font-family: "Space Grotesk"; font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -.06em; }
.hero-stats span { display: block; margin-top: 4px; font-size: 11px; color: rgba(245,242,237,.62); text-transform: uppercase; letter-spacing: .08em; }

.identity-cluster {
  justify-self: end;
  width: min(440px, 100%);
  position: relative;
  display: grid;
  gap: 12px;
}
.id-frame {
  position: relative;
  z-index: 1;
  padding: 14px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,.17);
  background: linear-gradient(145deg, rgba(247,242,237,.92), rgba(247,242,237,.74));
  color: #111;
  box-shadow: 0 34px 90px rgba(0,0,0,.42);
  overflow: hidden;
}
.id-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(0,0,0,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.045) 1px, transparent 1px),
    radial-gradient(circle at 84% 12%, rgba(244,182,220,.32), transparent 22%);
  background-size: 24px 24px, 24px 24px, auto;
  pointer-events: none;
}
.id-frame > * { position: relative; z-index: 1; }
.id-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 14px;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 900;
  color: rgba(17,17,17,.62);
}
.id-topline b { color: #111; }
.portrait-shell {
  position: relative;
  aspect-ratio: 1 / 1.4;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(17,17,17,.15);
  background: #ddd;
}
.portrait-shell img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 21%; filter: grayscale(.08) saturate(.82) contrast(1.08); }
.portrait-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 34%, rgba(0,0,0,.74));
}
.portrait-scan {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,.16) 0 1px, transparent 1px 7px);
  mix-blend-mode: overlay;
  opacity: .28;
  pointer-events: none;
}
.id-name {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 82px;
  z-index: 3;
  color: #fff;
}
.id-name h2 {
  margin: 0;
  font-family: "Space Grotesk";
  font-size: clamp(42px, 5vw, 68px);
  line-height: .82;
  letter-spacing: -.08em;
  text-transform: uppercase;
}
.id-name p { margin: 12px 0 0; color: rgba(255,255,255,.72); font-weight: 700; line-height: 1.35; }
.id-tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 2px 2px; }
.id-tags span {
  padding: 9px 12px;
  border-radius: 999px;
  background: #111;
  color: var(--pink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}
.profile-mini-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.14);
  border-radius: 22px;
  overflow: hidden;
}
.profile-mini-grid div { padding: 14px; background: rgba(5,5,5,.64); backdrop-filter: blur(12px); }
.profile-mini-grid span { display: block; color: rgba(255,255,255,.48); text-transform: uppercase; font-size: 10px; letter-spacing: .1em; font-weight: 900; }
.profile-mini-grid b { display: block; margin-top: 6px; font-family: "Space Grotesk"; letter-spacing: -.04em; }


.skills-section, .projects-section, .contact-section { position: relative; padding: clamp(72px, 9vw, 136px) 28px; }
.section-head { width: min(1180px, 100%); margin: 0 auto 34px; }
.section-head h2 { max-width: 820px; }
.section-head.inverse h2 { color: var(--white); }
.projects-section::before,
.contact-section::before {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  top: 20px;
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(17,17,17,.22) 0 18px, transparent 18px 34px);
  opacity: .75;
}
.skill-board {
  width: min(1180px, 100%);
  margin: auto;
  display: grid;
  grid-template-columns: 1.06fr repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.skill-card {
  min-height: 230px;
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(247,242,237,.74);
  border-radius: 26px;
  overflow: hidden;
  position: relative;
}
.skill-card::after {
  content: "";
  position: absolute;
  inset: auto -30% -45% auto;
  width: 180px; height: 180px;
  border-radius: 50%;
  border: 1px solid rgba(244,182,220,.22);
  box-shadow: inset 20px 0 0 rgba(244,182,220,.04);
}
.skill-card.primary {
  grid-row: span 2;
  color: var(--white);
  background:
    radial-gradient(circle at 90% 20%, rgba(244,182,220,.24), transparent 32%),
    linear-gradient(135deg, #101010, #050505);
  border-color: rgba(255,255,255,.1);
}
.skill-card span, .skill-kicker {
  display: block;
  color: var(--pink-strong);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.skill-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 14px;
  font-family: "Space Grotesk";
  font-size: clamp(34px, 5vw, 68px);
  line-height: .86;
  letter-spacing: -.07em;
  text-transform: uppercase;
}
.skill-card p { color: rgba(255,255,255,.68); font-size: 17px; line-height: 1.48; max-width: 420px; }
.skill-card ul { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.skill-card li {
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.55);
  font-weight: 800;
  font-size: 13px;
}
.skill-legend { display: flex; flex-wrap: wrap; gap: 9px; position: relative; z-index: 1; }
.skill-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  margin: 0;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.78) !important;
  background: rgba(255,255,255,.06);
  letter-spacing: .04em;
}
.level-dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; border: 1px solid rgba(255,255,255,.28); }
.level-advanced { background: var(--pink-strong); box-shadow: 0 0 18px rgba(241,153,207,.48); }
.level-middle { background: var(--pink-soft); box-shadow: 0 0 14px rgba(248,214,234,.28); }
.level-basic { background: rgba(244,182,220,.1); box-shadow: inset 0 0 0 1px rgba(244,182,220,.52); }
.level-tags li { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.level-tags li:hover { transform: translateY(-2px); }
.level-tags .lvl-advanced { color: #111; border-color: rgba(241,153,207,.92); background: var(--pink-strong); box-shadow: 0 10px 30px rgba(241,153,207,.22); }
.level-tags .lvl-middle { color: #1c161a; border-color: rgba(248,214,234,.9); background: var(--pink-soft); }
.level-tags .lvl-basic { color: #4f3e48; border-color: rgba(244,182,220,.36); background: rgba(255,255,255,.46); box-shadow: inset 0 0 0 1px rgba(244,182,220,.14); }

.black-panel {
  position: relative;
  color: var(--white);
  overflow: hidden;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    var(--black);
  background-size: 36px 36px;
}
.black-panel::before,
.black-panel::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: clamp(62px, 7vw, 102px);
  background: var(--paper);
  z-index: 0;
  pointer-events: none;
}
.black-panel::before { top: -1px; clip-path: polygon(0 0, 100% 0, 100% 28%, 84% 54%, 63% 34%, 42% 68%, 21% 42%, 0 76%); }
.black-panel::after { bottom: -1px; clip-path: polygon(0 58%, 16% 34%, 36% 57%, 54% 30%, 76% 56%, 100% 38%, 100% 100%, 0 100%); }
.black-panel > * { position: relative; z-index: 1; }
.three-wrap { padding: clamp(118px, 12vw, 172px) 28px; }
.three-copy { width: min(1180px, 100%); margin: 0 auto 26px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 20px; align-items: end; }
.three-copy p { margin: 0; color: rgba(245,242,237,.68); font-size: 18px; line-height: 1.55; max-width: 560px; }
.threejs-section {
  position: relative;
  width: min(1180px, 100%);
  height: min(73vh, 720px);
  min-height: 500px;
  margin: auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  background:
    radial-gradient(circle at 50% 50%, #000 0 8%, rgba(0,0,0,.92) 14%, transparent 24%),
    radial-gradient(circle at 50% 50%, rgba(244,182,220,.045), rgba(5,5,5,.98) 60%);
  box-shadow: 0 35px 120px rgba(0,0,0,.55);
}
#overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  /* background:
    linear-gradient(90deg, rgba(255,255,255,.055), transparent 18%, transparent 82%, rgba(255,255,255,.055)),
    radial-gradient(circle at 50% 50%, rgba(0,0,0,.96) 0 8%, transparent 15%),
    radial-gradient(ellipse at 50% 50%, transparent 0 30%, rgba(0,0,0,.2) 68%, rgba(0,0,0,.68) 100%); */
}
.threejs-section canvas { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; }
.three-hud {
  position: absolute;
  z-index: 3;
  top: 18px;
  left: 18px;
  right: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  pointer-events: none;
}
.three-hud div {
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.34);
  backdrop-filter: blur(14px);
  border-radius: 18px;
  padding: 12px 14px;
}
.three-hud span { display: block; font-family: "Space Grotesk"; font-size: 24px; font-weight: 900; letter-spacing: -.05em; }
.three-hud small { display: block; text-transform: uppercase; letter-spacing: .11em; color: rgba(255,255,255,.56); font-size: 10px; margin-top: 2px; }
.three-caption {
  position: absolute;
  z-index: 3;
  left: 22px;
  bottom: 22px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 15px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.36);
  backdrop-filter: blur(14px);
  pointer-events: none;
}
.three-caption b { font-family: "Space Grotesk"; letter-spacing: -.04em; }
.three-caption b::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; border: 1px solid var(--pink); box-shadow: 0 0 18px rgba(244,182,220,.42); }
.three-caption span { color: rgba(255,255,255,.56); font-size: 13px; }

.project-feature, .projects-grid, .timeline, .contact-card { width: min(1180px, 100%); margin-left: auto; margin-right: auto; }
.project-feature {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  min-height: 470px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
}
.project-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
  background:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px),
    radial-gradient(circle at 50% 20%, rgba(244,182,220,.16), transparent 34%),
    #070707;
  background-size: 28px 28px, 28px 28px, auto, auto;
  overflow: hidden;
}
.project-visual::after {
  content: "MECLOSE";
  position: absolute;
  left: -12px;
  bottom: -3px;
  font-family: "Space Grotesk";
  font-weight: 900;
  font-size: clamp(60px, 8vw, 122px);
  letter-spacing: -.08em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.17);
  opacity: .84;
}
.meclose-demo {
  position: relative;
  z-index: 1;
  width: min(410px, calc(100% - 44px));
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 28px;
  padding: 14px;
  color: #fff;
  background: rgba(6,6,6,.66);
  box-shadow: 0 36px 100px rgba(0,0,0,.62), 0 0 0 1px rgba(244,182,220,.08) inset;
  backdrop-filter: blur(16px);
}
.meclose-topbar, .meclose-search, .meclose-chat, .meclose-tags { position: relative; z-index: 1; }
.meclose-topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 12px 14px; border-bottom: 1px solid rgba(255,255,255,.1); }
.meclose-topbar span { font-family: "Space Grotesk"; font-weight: 900; font-size: 24px; letter-spacing: -.06em; }
.meclose-topbar i { font-style: normal; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: rgba(244,182,220,.85); }
.meclose-search { margin: 14px 0; padding: 15px; border: 1px solid rgba(244,182,220,.24); border-radius: 20px; background: rgba(255,255,255,.055); }
.meclose-search small, .meclose-search b, .meclose-search em { display: block; }
.meclose-search small { color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .12em; font-size: 10px; font-weight: 900; }
.meclose-search b { margin-top: 7px; font-size: 18px; line-height: 1.15; }
.meclose-search em { margin-top: 10px; color: var(--pink); font-style: normal; font-size: 12px; font-weight: 900; }
.meclose-chat { display: grid; gap: 8px; }
.bubble { width: fit-content; max-width: 84%; margin: 0; padding: 11px 13px; border-radius: 16px; font-size: 13px; line-height: 1.35; }
.bubble.bot { background: rgba(255,255,255,.1); color: rgba(255,255,255,.82); border-bottom-left-radius: 5px; }
.bubble.user { justify-self: end; color: #111; background: var(--pink); border-bottom-right-radius: 5px; }
.typing { width: 62px; display: flex; gap: 5px; align-items: center; padding: 12px 13px; border-radius: 999px; background: rgba(255,255,255,.08); }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: rgba(244,182,220,.9); animation: typingPulse 1.1s ease-in-out infinite; }
.typing span:nth-child(2) { animation-delay: .16s; }
.typing span:nth-child(3) { animation-delay: .32s; }
@keyframes typingPulse { 0%, 100% { opacity: .35; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.meclose-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.meclose-tags span { padding: 8px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.72); font-size: 11px; font-weight: 900; }
.project-content { padding: clamp(28px, 5vw, 62px); display: flex; flex-direction: column; justify-content: center; }
.project-line { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin-bottom: 22px; }
.project-line span { font-size: 12px; text-transform: uppercase; letter-spacing: .13em; color: var(--pink-strong); font-weight: 900; }
.project-line a { font-size: 13px; font-weight: 900; border-bottom: 1px solid currentColor; }
.project-content h3, .project-card h3 { font-family: "Space Grotesk"; font-size: clamp(32px, 4.4vw, 64px); line-height: .9; letter-spacing: -.07em; text-transform: uppercase; margin: 0; }
.project-content p, .project-card p { color: #5f5a54; line-height: 1.52; font-size: 17px; margin: 20px 0 0; }
.feature-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.feature-pills span { padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; font-weight: 900; font-size: 13px; background: rgba(255,255,255,.58); }
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 12px; }
.project-card { padding: 14px; border: 1px solid var(--line); border-radius: 30px; background: rgba(247,242,237,.78); transform-style: preserve-3d; }
.project-card h3 { font-size: clamp(30px, 3.6vw, 54px); }
.project-card ul { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; padding: 0; margin: 22px 0 0; }
.project-card li { padding: 8px 10px; border-radius: 999px; border: 1px solid var(--line); font-weight: 900; font-size: 12px; }
.mini-preview { height: 260px; border-radius: 22px; margin-bottom: 18px; position: relative; overflow: hidden; background: #060606; }
.editor-preview::before { content: "<body>\A  <section>\A    <block>HTML</block>\A    <style>CSS</style>\A  </section>\A</body>"; white-space: pre; position: absolute; left: 22px; top: 24px; color: var(--pink); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; line-height: 1.62; }
.editor-preview::after { content: "BLOCK MARKUP"; position: absolute; right: 18px; bottom: 16px; font-family: "Space Grotesk"; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.35); font-size: 44px; font-weight: 900; letter-spacing: -.06em; }
.image-preview { border-radius: 18px; width: 555px; height: 260px; margin-bottom: 18px; }
.null-preview { background: #f5f2ed; border: 1px solid #111; }
.null-preview::before { content: "YOU PAY\AWE DO NOTHING"; white-space: pre; position: absolute; left: 22px; top: 22px; font-family: "Space Grotesk"; font-size: 46px; line-height: .9; letter-spacing: -.07em; font-weight: 900; }
.null-preview::after { content: "[00:00:00] INIT → No changes detected."; position: absolute; left: 22px; right: 22px; bottom: 22px; padding: 12px; color: #f5f2ed; background: #111; border-radius: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }

.timeline-section { padding: clamp(118px, 12vw, 172px) 28px; }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; border: 1px solid var(--line-light); background: var(--line-light); border-radius: 26px; overflow: hidden; }
.timeline article { min-height: 250px; padding: 22px; background: rgba(255,255,255,.04); }
.timeline time { display: block; color: var(--pink); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 900; margin-bottom: 18px; }
.timeline h3 { margin: 0; font-family: "Space Grotesk"; font-size: 28px; line-height: .95; letter-spacing: -.06em; text-transform: uppercase; }
.timeline p { margin: 16px 0 0; color: rgba(255,255,255,.64); line-height: 1.5; }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius-xl); padding: clamp(30px, 6vw, 76px); background: radial-gradient(circle at 88% 14%, rgba(244,182,220,.18), transparent 26%), var(--white); box-shadow: var(--shadow); }
.contact-card p { margin: 18px 0 0; color: var(--muted); font-size: 18px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.site-footer { display: flex; justify-content: space-between; gap: 16px; padding: 24px 28px; background: var(--black); color: rgba(255,255,255,.58); font-size: 13px; }

.reveal { opacity: 0; transform: translateY(24px); }
.reveal.is-visible { opacity: 1; transform: translateY(0); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }

@media (min-width: 1320px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(420px, .66fr); }
  .hero-title { max-width: 780px; }
  .hero-lead { max-width: 610px; }
}
@media (max-width: 980px) {
  .site-header { height: auto; border-radius: 24px; align-items: flex-start; }
  .main-nav { display: none; }
  .hero { padding-top: 118px; }
  .hero-grid, .project-feature, .three-copy { grid-template-columns: 1fr; }
  .identity-cluster { justify-self: start; width: min(520px, 100%); }
  .hero-stats, .skill-board, .projects-grid, .timeline { grid-template-columns: 1fr 1fr; }
  .skill-card.primary { grid-row: auto; grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .cursor-glow { display: none; }
  .site-header { top: 10px; width: calc(100% - 16px); }
  .logo-link > span { display: none; }
  .nav-cta { padding-inline: 12px; }
  .hero, .skills-section, .projects-section, .three-wrap, .timeline-section, .contact-section { padding-left: 16px; padding-right: 16px; }
  .hero { padding-top: 104px; padding-bottom: 92px; }
  .hero-title { font-size: clamp(46px, 15.5vw, 72px); }
  .hero-lead { font-size: 16px; }
  .hero-actions, .contact-actions { flex-direction: column; align-items: stretch; }
  .hero-stats, .profile-mini-grid, .skill-board, .projects-grid, .timeline { grid-template-columns: 1fr; }
  .id-name { left: 22px; right: 22px; bottom: 74px; }
  .id-name h2 { font-size: clamp(40px, 14vw, 58px); }
  .three-wrap, .timeline-section { padding-top: 96px; padding-bottom: 96px; }
  .black-panel::before, .black-panel::after { height: 58px; }
  .threejs-section { min-height: 520px; height: 70svh; border-radius: 26px; }
  .three-hud {
    top: auto;
    left: 10px;
    right: 10px;
    bottom: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
  }
  .three-hud div { padding: 7px 5px; border-radius: 12px; background: rgba(0,0,0,.42); }
  .three-hud span { font-size: 14px; text-align: center; }
  .three-hud small { font-size: 7px; letter-spacing: .06em; text-align: center; white-space: nowrap; }
  .three-caption { top: 10px; bottom: auto; left: 10px; right: 10px; justify-content: center; border-radius: 16px; padding: 9px 10px; }
  .three-caption span { display: none; }
  .project-visual { min-height: 430px; }
  .meclose-demo { width: calc(100% - 22px); }
  .project-line { align-items: flex-start; flex-direction: column; }
  .mini-preview { height: 220px; }
  .site-footer { flex-direction: column; }
}
@media (max-width: 390px) {
  .three-hud small { display: none; }
  .three-hud span { font-size: 13px; }
}
@media (hover: none) and (pointer: coarse) {
  .cursor-glow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
