* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { background: var(--bg); color: var(--ink); font-family: 'Inter', sans-serif; overflow-x: hidden; }
:root {
  --bg: #ffffff;
  --ink: #0a0a0a;
  --accent: #0a0a0a;
  --muted: #888;
  --line: #0a0a0a;
  --display-font: 'Archivo Black', sans-serif;
  --mono-font: 'Space Mono', monospace;
  --display-scale: 1;
}
body { cursor: none; }
a { color: inherit; text-decoration: none; }
.mono { font-family: var(--mono-font); }
.display { font-family: var(--display-font); font-weight: 900; letter-spacing: -0.02em; line-height: 0.85; text-transform: uppercase; }
.container { max-width: 1600px; margin: 0 auto; padding: 0 32px; }

/* ───── Custom cursor ───── */
.cursor-dot, .cursor-ring { position: fixed; pointer-events: none; z-index: 9999; mix-blend-mode: difference; }
.cursor-ring {
  width: 56px; height: 56px; border: 2px solid #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width .25s cubic-bezier(.2,.8,.2,1), height .25s cubic-bezier(.2,.8,.2,1), background .15s ease;
}
.cursor-ring.hover {
  width: 120px; height: 120px; background: #fff; mix-blend-mode: difference;
}
.cursor-ring.text {
  width: 8px; height: 80px; border-radius: 0;
}
.cursor-dot {
  width: 6px; height: 6px; background: #fff; border-radius: 50%;
  transform: translate(-50%, -50%);
}
@media (hover: none) { body { cursor: auto; } .cursor-dot, .cursor-ring { display: none; } }

/* ───── Top nav ───── */
.nav-wrap {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; justify-content: center;
  padding: 20px 32px;
  pointer-events: none;
  transition: padding .5s cubic-bezier(.7,.05,.2,1);
}
.nav {
  pointer-events: auto;
  width: 100%;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 24px;
  background: transparent;
  color: var(--ink);
  border: 2px solid transparent;
  border-radius: 0;
  font-family: var(--mono-font); font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  transition:
    max-width .6s cubic-bezier(.7,.05,.2,1),
    padding .5s cubic-bezier(.7,.05,.2,1),
    background .4s ease,
    border-color .4s ease,
    border-radius .5s cubic-bezier(.7,.05,.2,1),
    box-shadow .4s ease,
    color .3s ease;
  max-width: 100%;
  backdrop-filter: blur(0);
}
.nav-wrap.scrolled { padding: 16px 24px; }
.nav-wrap.scrolled .nav {
  max-width: 680px;
  padding: 10px 10px 10px 22px;
  background: #0a0a0a;
  color: #fff;
  border-color: #0a0a0a;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.nav-wrap.scrolled .nav-logo .dot { background: currentColor; transform: scale(1.2); }
.nav-wrap.scrolled .nav-clock { display: none; }
.nav-wrap.scrolled .nav-cta { display: inline-flex; }
.nav-logo { display: flex; align-items: center; gap: 10px; transition: gap .4s; }
.nav-logo .dot { width: 10px; height: 10px; background: var(--ink); border-radius: 50%; transition: background .3s, transform .4s cubic-bezier(.5,1.6,.5,1); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { position: relative; padding: 4px 0; }
.nav-links a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: currentColor; transition: width .3s; }
.nav-links a:hover::after { width: 100%; }
.nav-clock { font-variant-numeric: tabular-nums; opacity: .7; }
.nav-cta {
  display: none;
  align-items: center; gap: 8px;
  padding: 8px 16px;
  background: currentColor;
  border-radius: 999px;
  font-weight: 700;
  transition: transform .3s;
}
.nav-cta span { color: #fff; mix-blend-mode: difference; }
.nav-cta:hover { transform: translateX(4px); }
.nav-cta::after { display: none !important; }

body.menu-open .nav-wrap.scrolled .nav { mix-blend-mode: normal; background: transparent; border-color: transparent; }
body.menu-open .nav { color: #fff; }
body.menu-open .nav-logo,
body.menu-open .nav-clock,
body.menu-open .nav-cta { visibility: hidden; }
body.menu-open .nav-burger { color: #fff; border-color: #fff; }

/* ───── Mobile menu (hamburger) ───── */
.nav-burger {
  display: none;
  width: 40px; height: 40px;
  background: transparent;
  border: 2px solid currentColor;
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  margin-left: auto;
  transition: background .3s, color .3s;
  isolation: isolate;
  mix-blend-mode: normal;
}
.nav-wrap.scrolled .nav-burger { color: #fff; border-color: #fff; mix-blend-mode: normal; }
.nav-wrap.scrolled .nav-burger span { background: #fff; }
.nav-burger span {
  position: absolute;
  left: 50%; top: 50%;
  width: 18px; height: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform .3s ease, opacity .2s ease, top .3s ease;
}
.nav-burger span:nth-child(1) { transform: translate(-50%, calc(-50% - 5px)); }
.nav-burger span:nth-child(3) { transform: translate(-50%, calc(-50% + 5px)); }
body.menu-open .nav-burger span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
body.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
body.menu-open .nav-burger span:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0;
  z-index: 90;
  background: #0a0a0a;
  color: #fff;
  display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start;
  padding: 100px 32px 32px;
  transform: translateY(-100%);
  transition: transform .55s cubic-bezier(.7,.05,.2,1);
  pointer-events: none;
}
body.menu-open .mobile-menu { transform: translateY(0); pointer-events: auto; }
.mobile-menu a {
  display: block;
  font-family: var(--display-font);
  font-size: clamp(36px, 10.5vw, 64px);
  text-transform: uppercase;
  line-height: .95;
  padding: 8px 0;
  letter-spacing: -0.02em;
  transform: translateY(40px); opacity: 0;
  transition: transform .5s cubic-bezier(.2,.85,.2,1), opacity .4s ease, padding-left .3s ease;
}
.mobile-menu a:hover { padding-left: 16px; }
body.menu-open .mobile-menu a { transform: translateY(0); opacity: 1; }
body.menu-open .mobile-menu a:nth-child(1) { transition-delay: .12s; }
body.menu-open .mobile-menu a:nth-child(2) { transition-delay: .18s; }
body.menu-open .mobile-menu a:nth-child(3) { transition-delay: .24s; }
body.menu-open .mobile-menu a:nth-child(4) { transition-delay: .30s; }
.mobile-menu .meta {
  margin-top: 48px;
  font-family: var(--mono-font);
  font-size: 12px;
  opacity: .55;
  text-transform: uppercase;
  letter-spacing: .1em;
}

/* ───── Hero ───── */
.hero { position: relative; min-height: 100vh; padding: 120px 32px 48px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; isolation: isolate; }
.hero-meta { display: flex; justify-content: space-between; font-family: var(--mono-font); font-size: 13px; text-transform: uppercase; opacity: .7; position: relative; z-index: 1; }
.hero-title { font-size: calc(clamp(80px, 14vw, 240px) * var(--display-scale)); margin: 32px 0 48px; position: relative; z-index: 1; }
.hero-title .line { display: block; overflow: visible; padding: 0 0 .04em; }
.hero-title .line .word {
  display: inline-block;
  white-space: nowrap;
}
.hero-title .outline {
  -webkit-text-stroke: 3px var(--ink); color: transparent;
}

/* Hero bottom */
.hero-bottom { position: relative; z-index: 1; }
.hero-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0;
  align-items: stretch;
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}
.hero-bottom .card {
  padding: 36px 36px 36px 32px;
  border-right: 3px solid var(--ink);
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 220px;
  position: relative;
  overflow: hidden;
  transition: background .35s ease, color .35s ease;
}
.hero-bottom .card:last-child { border-right: none; }
.hero-bottom .card .num {
  font-family: var(--mono-font); font-size: 12px; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase; opacity: .55;
  margin-bottom: 16px;
}
.hero-bottom .card h3 {
  font-family: var(--display-font);
  font-size: clamp(36px, 4.6vw, 72px);
  line-height: .9; letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero-bottom .card p {
  font-size: 17px; font-weight: 500; line-height: 1.35; max-width: 28ch;
  opacity: .75;
}
.hero-bottom .card.hover-accent:hover { background: var(--accent); color: var(--bg); }
.hero-bottom .card.hover-accent:hover .num,
.hero-bottom .card.hover-accent:hover p { opacity: 1; }

.hero-bottom .scroll-card {
  width: 220px;
  background: var(--ink); color: var(--bg);
  align-items: center; justify-content: center;
  text-align: center;
  gap: 16px;
}
.scroll-indicator { display: flex; flex-direction: column; align-items: center; gap: 16px; font-family: var(--mono-font); font-size: 12px; text-transform: uppercase; letter-spacing: .15em; }
.scroll-indicator .arrow { display: inline-block; font-size: 56px; line-height: 1; animation: bob 1.6s infinite; font-family: var(--display-font); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(10px); } }

/* ───── Marquee ───── */
.marquee {
  border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink);
  overflow: hidden; white-space: nowrap;
  background: var(--ink); color: var(--bg);
  padding: 24px 0;
}
.marquee-track { display: inline-flex; gap: 64px; animation: scroll-x 30s linear infinite; }
.marquee-track span { font-family: var(--display-font); font-size: 80px; text-transform: uppercase; }
.marquee-track .star { color: var(--accent); }
@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ───── About ───── */
.about { padding: 160px 32px; position: relative; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about-label { font-family: var(--mono-font); font-size: 12px; text-transform: uppercase; opacity: .5; letter-spacing: .1em; margin-bottom: 24px; display: flex; align-items: center; gap: 12px; }
.about-label::before { content: ''; width: 32px; height: 2px; background: var(--ink); }
.about-headline { font-size: calc(clamp(48px, 7vw, 120px) * var(--display-scale)); }
.about-text { font-size: 22px; line-height: 1.4; font-weight: 500; max-width: 50ch; }
.about-text p + p { margin-top: 1.2em; }
.about-text strong { background: var(--accent); color: var(--bg); padding: 0 6px; font-weight: 900; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 80px; border-top: 3px solid var(--ink); }
.stat { padding: 32px 0; border-right: 2px solid var(--ink); padding-right: 16px; }
.stat:last-child { border-right: none; }
.stat .num { font-family: var(--display-font); font-size: clamp(64px, 10vw, 160px); line-height: 0.9; letter-spacing: -0.04em; }
.stat .label { font-family: var(--mono-font); font-size: 13px; text-transform: uppercase; margin-top: 8px; opacity: .6; }

/* ───── Skills ribbon ───── */
.skills {
  border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink);
  padding: 24px 0; overflow: hidden; white-space: nowrap;
}
.skills-track { display: inline-flex; gap: 48px; animation: scroll-x 40s linear infinite reverse; align-items: center; }
.skills-track span { font-family: var(--mono-font); font-size: 16px; font-weight: 700; text-transform: uppercase; }
.skills-track .sep { color: var(--accent); font-family: var(--display-font); font-size: 28px; }

/* ───── Projects ───── */
.projects-intro {
  padding: 200px 32px 80px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end;
}
.projects-intro .num-big { font-family: var(--display-font); font-size: clamp(160px, 28vw, 480px); line-height: 0.8; letter-spacing: -0.05em; }
.projects-intro .num-big sup { font-size: 0.25em; vertical-align: top; opacity: .4; }
.projects-intro h2 { font-size: calc(clamp(48px, 7vw, 120px) * var(--display-scale)); font-family: var(--display-font); text-transform: uppercase; letter-spacing: -0.02em; line-height: 0.9; }

.pinned-stack { position: relative; }
.project-panel {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 3px solid var(--ink);
  background: var(--bg);
}
.project-panel { background: var(--bg); color: var(--ink); }
.project-panel .project-img { border-color: var(--ink); }

.project-info { padding: 80px 48px; display: flex; flex-direction: column; justify-content: space-between; border-right: 3px solid currentColor; }
.project-num {
  font-family: var(--display-font);
  font-size: clamp(80px, 14vw, 220px);
  line-height: 0.85;
  -webkit-text-stroke: 2px currentColor; color: transparent;
  margin-bottom: 24px;
}
.project-title { font-family: var(--display-font); font-size: calc(clamp(40px, 5vw, 88px) * var(--display-scale)); line-height: 0.92; margin-bottom: 20px; text-transform: uppercase; }
.project-role { font-family: var(--mono-font); font-size: 13px; text-transform: uppercase; opacity: .6; margin-bottom: 32px; letter-spacing: .1em; }
.project-desc { font-size: 19px; line-height: 1.4; max-width: 45ch; font-weight: 500; }
.project-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.tag { font-family: var(--mono-font); font-size: 11px; text-transform: uppercase; padding: 6px 12px; border: 2px solid currentColor; }

.project-img {
  position: relative; overflow: hidden;
  border-left: 3px solid currentColor;
  background: transparent;
  display: block;
  cursor: none;
}
.project-img .img-inner {
  position: absolute; inset: 0;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  will-change: transform;
  transition: transform .6s cubic-bezier(.2,.85,.2,1), filter .4s ease;
}
.project-img .img-overlay-hover {
  position: absolute; inset: 0;
  z-index: 5;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink);
  color: #fff;
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.project-img .img-overlay-hover .label {
  font-family: var(--display-font);
  font-size: clamp(36px, 5vw, 80px);
  text-transform: uppercase; letter-spacing: -0.02em;
  line-height: 0.9;
  transform: translateY(20px);
  transition: transform .5s cubic-bezier(.2,.85,.2,1);
  text-align: center;
}
.project-img .img-overlay-hover .arrow {
  display: block;
  margin-top: 16px;
  font-size: clamp(48px, 7vw, 120px);
}
.project-img:hover .img-overlay-hover { opacity: 1; }
.project-img:hover .img-overlay-hover .label { transform: translateY(0); }
.project-img:hover .img-inner { transform: scale(1.06); filter: blur(2px); }

.project-panel:hover .project-num { color: var(--accent); -webkit-text-stroke: 2px var(--accent); }

/* ───── Contact ───── */
.contact { padding: 160px 32px; background: var(--ink); color: var(--bg); position: relative; overflow: hidden; }
.contact-label { font-family: var(--mono-font); font-size: 12px; text-transform: uppercase; opacity: .5; letter-spacing: .1em; margin-bottom: 32px; display: flex; align-items: center; gap: 12px; }
.contact-label::before { content: ''; width: 32px; height: 2px; background: var(--bg); }
.contact h2 {
  font-family: var(--display-font);
  font-size: calc(clamp(60px, 13vw, 240px) * var(--display-scale));
  line-height: 0.85; letter-spacing: -0.03em;
  text-transform: uppercase;
}
.contact h2 .accent-bg { background: var(--bg); color: var(--ink); padding: 0 .15em; display: inline-block; }
.contact-email {
  display: block;
  margin: 80px 0 60px;
  font-family: var(--display-font);
  font-size: clamp(32px, 6vw, 96px);
  text-transform: lowercase;
  word-break: break-all;
  border-top: 2px solid var(--bg); border-bottom: 2px solid var(--bg);
  padding: 24px 0;
  transition: padding .3s, background .3s, color .3s;
}
.contact-email:hover { background: #fff; color: var(--ink); padding-left: 24px; letter-spacing: -0.01em; }
.contact-channels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--bg); }
.channel { padding: 32px 0; border-right: 2px solid var(--bg); padding-right: 16px; transition: padding .3s, background .3s, color .3s; position: relative; overflow: hidden; }
.channel::before {
  content: ''; position: absolute; inset: 0;
  background: #fff;
  transform: translateY(101%);
  transition: transform .4s cubic-bezier(.7,.05,.2,1);
  z-index: 0;
}
.channel:hover::before { transform: translateY(0); }
.channel > * { position: relative; z-index: 1; }
.channel:hover { color: var(--ink); padding-left: 24px; }
.channel:hover .ch-label { opacity: .7; }
.channel:last-child { border-right: none; }
.channel .ch-label { font-family: var(--mono-font); font-size: 11px; text-transform: uppercase; opacity: .5; letter-spacing: .1em; margin-bottom: 12px; }
.channel .ch-value { font-family: var(--display-font); font-size: clamp(20px, 2.4vw, 36px); text-transform: uppercase; line-height: 1; }

/* ───── Footer ───── */
footer { background: var(--ink); color: var(--bg); padding: 32px; border-top: 2px solid var(--bg); display: flex; justify-content: space-between; font-family: var(--mono-font); font-size: 12px; text-transform: uppercase; opacity: .7; }
footer a { color: inherit; }

/* ───── Floating decoration ───── */
.float-shape {
  position: absolute; pointer-events: none;
  width: 120px; height: 120px;
  will-change: transform;
  z-index: 0;
}
.float-shape.circle { border: 3px solid var(--ink); border-radius: 50%; }
.float-shape.square { background: var(--accent); opacity: .75; }
.float-shape.cross::before, .float-shape.cross::after {
  content: ''; position: absolute; background: var(--ink);
}
.float-shape.cross::before { top: 0; bottom: 0; left: 50%; width: 6px; transform: translateX(-50%); }
.float-shape.cross::after { left: 0; right: 0; top: 50%; height: 6px; transform: translateY(-50%); }
.float-shape.ring { border: 6px solid var(--ink); border-radius: 50%; opacity: .35; }

/* ───── Scroll-reveal ───── */
.reveal { overflow: hidden; }
.reveal > * { transform: translateY(110%); transition: transform .9s cubic-bezier(.2,.85,.2,1); }
.reveal.in > * { transform: translateY(0); }

/* ───── Responsive ───── */
@media (max-width: 900px) {
  .container { padding: 0 20px; }
  .nav-wrap { padding: 14px 16px; }
  .nav { padding: 12px 16px; font-size: 11px; gap: 12px; }
  .nav-links { display: none; }
  .nav-clock { display: none; }
  .nav-cta { display: none !important; }
  .nav-burger { display: block; }
  .nav-wrap.scrolled .nav { max-width: 100%; padding: 10px 10px 10px 18px; }

  .hero { padding: 100px 20px 0; }
  .hero-meta { flex-direction: column; gap: 6px; font-size: 11px; }
  .hero-title { font-size: clamp(80px, 24vw, 96px) !important; margin: 24px 0 32px; }
  .hero-title .line:first-child { font-size: clamp(100px, 30vw, 120px) !important; }
  .hero-title .line:last-child  { font-size: clamp(44px,  13vw, 60px)  !important; }
  .hero-title .line .word { font-size: inherit !important; white-space: normal; overflow-wrap: break-word; }
  .hero-title .line:last-child .word { white-space: nowrap !important; }
  .hero-title .line { font-size: inherit !important; }
  .hero-title .outline { -webkit-text-stroke: 2px var(--ink); }

  .hero-bottom { grid-template-columns: 1fr; }
  .hero-bottom .card { border-right: none; border-bottom: 3px solid var(--ink); min-height: auto; padding: 28px 20px; }
  .hero-bottom .card h3 { font-size: clamp(36px, 9vw, 56px); }
  .hero-bottom .scroll-card { width: 100%; padding: 32px 20px; border-bottom: none; }

  .marquee { padding: 16px 0; }
  .marquee-track span { font-size: 56px; }

  .about { padding: 100px 20px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-headline { font-size: clamp(48px, 14vw, 80px) !important; }
  .about-text { font-size: 17px; }
  .stats { grid-template-columns: 1fr 1fr; margin-top: 48px; }
  .stat { padding: 24px 12px 24px 0; }
  .stat .num { font-size: clamp(48px, 14vw, 80px); }

  .skills-track span { font-size: 14px; }
  .skills-track .sep { font-size: 22px; }

  .projects-intro { grid-template-columns: 1fr; padding: 100px 20px 40px; gap: 24px; }
  .projects-intro h2 { font-size: clamp(48px, 12vw, 80px) !important; }
  .projects-intro .num-big { font-size: clamp(140px, 40vw, 220px); }

  .project-panel { grid-template-columns: 1fr; min-height: auto; }
  .project-info { padding: 48px 20px; border-right: none; border-bottom: 3px solid currentColor; }
  .project-num { font-size: clamp(64px, 18vw, 120px); }
  .project-title { font-size: clamp(40px, 10vw, 64px) !important; }
  .project-desc { font-size: 17px; }
  .project-img { min-height: 50vh; border-left: none; }

  .contact { padding: 100px 20px; }
  .contact h2 { font-size: clamp(56px, 16vw, 96px) !important; }
  .contact-email { margin: 48px 0 32px; font-size: clamp(22px, 6vw, 36px); padding: 16px 0; word-break: break-word; }
  .contact-channels { grid-template-columns: 1fr; }
  .channel { padding: 24px 0; border-right: none; border-bottom: 2px solid var(--bg); }
  .channel:last-child { border-bottom: none; }
  .channel .ch-value { font-size: clamp(18px, 5vw, 28px); }

  footer { flex-direction: column; gap: 8px; padding: 24px 20px; font-size: 11px; }

  .float-shape { display: none; }
  body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }
}

@media (max-width: 480px) {
  .hero-title { font-size: clamp(72px, 22vw, 88px) !important; }
  .hero-bottom .card .num { font-size: 11px; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 2px solid var(--ink); }
  .stat:last-child { border-bottom: none; }
}
