/*
Theme Name: Paulius Pukinskas
Theme URI: https://pukinskas.com
Author: Paulius Pukinskas
Description: Personal website of Paulius Pukinskas - Lithuanian programmer and entrepreneur.
Version: 2.0.0
Text Domain: paulius-pukinskas
*/

/* ─────────────────────────────────────────
   TOKENS
───────────────────────────────────────── */
:root {
  --ink:        #0b0b0b;
  --ink-2:      #101010;
  --ink-3:      #181818;
  --ink-4:      #222222;
  --rule:       #202020;
  --rule-hi:    #2e2e2e;
  --fg:         #edeae3;
  --fg-2:       #9b9690;
  --fg-3:       #555250;
  --gold:       #c9a96e;
  --gold-hi:    #e0c48e;
  --gold-lo:    #a07840;
  --gold-dim:   rgba(201,169,110,.12);
  --gold-glow:  rgba(201,169,110,.06);
  --serif:      'Cormorant Garamond', Georgia, serif;
  --sans:       'DM Sans', system-ui, sans-serif;
  --mono:       'JetBrains Mono', monospace;
  --ease:       cubic-bezier(.22,.68,0,1.2);
  --ease-sm:    cubic-bezier(.25,.46,.45,.94);
  --w:          1320px;
  --pad:        56px;
  --section:    140px;
}

/* ─────────────────────────────────────────
   RESET
───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--ink);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: none;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color .28s var(--ease-sm); }
a:hover { color: var(--gold-hi); }
* { cursor: none !important; }

/* ─────────────────────────────────────────
   CUSTOM CURSOR
───────────────────────────────────────── */
#cursor-dot {
  position: fixed;
  width: 5px; height: 5px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%,-50%);
  transition: transform .08s, width .3s var(--ease-sm), height .3s var(--ease-sm);
  will-change: left, top;
}
#cursor-ring {
  position: fixed;
  width: 38px; height: 38px;
  border: 1px solid rgba(201,169,110,.45);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%,-50%);
  transition: width .4s var(--ease-sm), height .4s var(--ease-sm), border-color .3s, background .3s;
  will-change: left, top;
}
#cursor-ring.expand { width: 60px; height: 60px; border-color: var(--gold); background: rgba(201,169,110,.04); }

/* ─────────────────────────────────────────
   TYPOGRAPHY
───────────────────────────────────────── */
h1,h2,h3,h4 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -.025em; }
h1 { font-size: clamp(3.4rem, 9vw, 8rem); }
h2 { font-size: clamp(2.2rem, 4.5vw, 4rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); }
p  { color: var(--fg-2); font-size: 1rem; line-height: 1.9; }

.label {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 20px;
}

/* ─────────────────────────────────────────
   LAYOUT
───────────────────────────────────────── */
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: var(--section) 0; position: relative; z-index: 1; }

/* Divider line */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rule-hi) 20%, var(--rule-hi) 80%, transparent);
}

/* ─────────────────────────────────────────
   HEADER
───────────────────────────────────────── */
#site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 28px var(--pad);
  display: flex; justify-content: space-between; align-items: center;
  transition: background .5s var(--ease-sm), border-color .5s;
  border-bottom: 1px solid transparent;
}
#site-header.stuck {
  background: rgba(11,11,11,.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom-color: var(--rule);
}

.logo {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--fg);
  letter-spacing: -.02em;
  position: relative; z-index: 901;
}
.logo em { color: var(--gold); font-style: normal; }

.nav-list { display: flex; align-items: center; gap: 40px; list-style: none; }
.nav-list a {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fg-2);
  position: relative;
  transition: color .28s;
}
.nav-list a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .32s var(--ease-sm);
}
.nav-list a:hover { color: var(--fg); }
.nav-list a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-cta {
  padding: 9px 22px;
  border: 1px solid var(--rule-hi);
  color: var(--fg-2) !important;
  transition: border-color .28s, color .28s, background .28s !important;
}
.nav-cta:hover { border-color: var(--gold) !important; color: var(--gold) !important; background: var(--gold-dim) !important; }
.nav-cta::after { display: none !important; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; position: relative; z-index: 901;
}
.hamburger span { display: block; width: 22px; height: 1px; background: var(--fg); transition: transform .3s var(--ease-sm), opacity .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
#hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 60% 40%;
  position: relative;
  overflow: hidden;
}

/* Binary rain canvas */
#pp-canvas {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 0;
  opacity: 0.55;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 160px var(--pad) 80px 80px;
  position: relative; z-index: 2;
}

/* Animated entrance */
.hero-tag {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 32px;
  opacity: 0;
  animation: up .9s var(--ease-sm) .1s forwards;
}
.hero-tag::before {
  content: '';
  width: 32px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.hero-tag span { font-family: var(--mono); font-size: .65rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }

.hero-name {
  opacity: 0;
  animation: up .9s var(--ease-sm) .2s forwards;
  background: linear-gradient(135deg, var(--fg) 0%, var(--gold-hi) 45%, var(--fg) 90%);
  background-size: 220% 220%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: up .9s var(--ease-sm) .2s forwards, goldShift 7s ease infinite 1.8s;
  line-height: 1.0;
  margin-bottom: 22px;
}

.hero-sub {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  opacity: 0;
  animation: up .9s var(--ease-sm) .32s forwards;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--fg-2);
  line-height: 1.95;
  max-width: 440px;
  margin-bottom: 48px;
  opacity: 0;
  animation: up .9s var(--ease-sm) .44s forwards;
}

.hero-btns {
  display: flex; gap: 12px;
  opacity: 0;
  animation: up .9s var(--ease-sm) .56s forwards;
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: all .3s var(--ease-sm);
  position: relative; overflow: hidden;
}
.btn-fill {
  background: var(--gold); color: var(--ink); border: 1px solid var(--gold);
}
.btn-fill::before {
  content: ''; position: absolute; inset: 0;
  background: var(--gold-hi); transform: translateX(-101%);
  transition: transform .4s var(--ease-sm);
}
.btn-fill:hover::before { transform: translateX(0); }
.btn-fill span, .btn-fill svg { position: relative; z-index: 1; }
.btn-fill:hover { color: var(--ink); }

.btn-ghost {
  background: transparent; color: var(--fg-2); border: 1px solid var(--rule-hi);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-dim); }

.hero-stats {
  display: flex; gap: 48px;
  margin-top: 60px; padding-top: 44px;
  border-top: 1px solid var(--rule);
  opacity: 0;
  animation: up .9s var(--ease-sm) .68s forwards;
}
.stat-n {
  font-family: var(--serif); font-size: 2.6rem;
  color: var(--gold); line-height: 1; display: block;
}
.stat-l {
  font-family: var(--mono); font-size: .6rem;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--fg-3); margin-top: 5px;
}

/* Hero right — image column */
.hero-right {
  position: relative;
  height: 100svh;
  overflow: hidden;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-right img {
  width: 300px;
  height: 420px;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(25%) contrast(1.1);
  animation: zoomFade 2s var(--ease-sm) both;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  box-shadow: 0 32px 80px rgba(0,0,0,.7), 0 0 0 1px rgba(201,169,110,.15);
}
/* Gold offset frame */
.hero-right::before {
  content: '';
  position: absolute;
  width: 300px; height: 420px;
  border: 1px solid rgba(201,169,110,.25);
  top: 50%; left: 50%;
  transform: translate(calc(-50% + 12px), calc(-50% + 12px));
  z-index: 1;
  pointer-events: none;
}
.hero-right-overlay {
  position: absolute; inset: 0; z-index: 3;
  background:
    linear-gradient(100deg, var(--ink) 0%, rgba(11,11,11,.08) 22%, transparent 40%),
    linear-gradient(180deg, rgba(11,11,11,.2) 0%, transparent 12%, transparent 82%, var(--ink) 100%);
  pointer-events: none;
}

/* Name tag below image */
.hero-photo-tag {
  position: absolute;
  bottom: 72px;
  left: 50%; transform: translateX(-50%);
  z-index: 2;
  background: var(--ink);
  border: 1px solid var(--rule-hi);
  padding: 10px 20px;
  text-align: center;
  white-space: nowrap;
}
.hero-photo-tag-name {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--fg);
  display: block;
  letter-spacing: -.01em;
}
.hero-photo-tag-role {
  font-family: var(--mono);
  font-size: .55rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
}
.scan-line {
  position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(201,169,110,.12) 50%, transparent 100%);
  animation: scanDown 10s linear infinite;
  pointer-events: none; z-index: 3;
}

/* Large BG initial */
.hero-ghost-letter {
  position: absolute; bottom: -80px; left: 60px;
  font-family: var(--serif); font-size: 38vw; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201,169,110,.035);
  pointer-events: none; z-index: 0; user-select: none;
}

/* ─────────────────────────────────────────
   MARQUEE STRIP
───────────────────────────────────────── */
.marquee-strip {
  background: var(--ink-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 18px 0;
  overflow: hidden;
  position: relative; z-index: 1;
}
.marquee-track {
  display: flex; gap: 60px;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee-item {
  display: flex; align-items: center; gap: 18px;
  font-family: var(--mono); font-size: .67rem;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--fg-3); white-space: nowrap;
}
.marquee-item::after {
  content: '◆';
  color: var(--gold); font-size: .5rem;
}

/* ─────────────────────────────────────────
   ABOUT
───────────────────────────────────────── */
#about {
  background: var(--ink-2);
}
.about-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 110px;
  align-items: center;
}

.img-frame {
  position: relative;
}
.img-frame-border {
  position: absolute;
  top: -16px; left: -16px; right: 16px; bottom: 16px;
  border: 1px solid var(--gold);
  pointer-events: none; z-index: 0;
  transition: transform .5s var(--ease-sm);
}
.img-frame:hover .img-frame-border {
  transform: translate(-5px, -5px);
}
.img-frame img {
  position: relative; z-index: 1;
  width: 100%; aspect-ratio: 3/4;
  object-fit: cover; object-position: top center;
  filter: grayscale(10%) contrast(1.06);
  transition: filter .6s;
}
.img-frame:hover img { filter: grayscale(0%) contrast(1.08); }

.img-plate {
  position: absolute; z-index: 2;
  bottom: -16px; right: -16px;
  background: var(--ink);
  border: 1px solid var(--rule-hi);
  padding: 16px 20px;
  text-align: center;
}
.plate-val { font-family: var(--serif); font-size: 2rem; color: var(--gold); line-height: 1; }
.plate-key { font-family: var(--mono); font-size: .58rem; letter-spacing: .18em; text-transform: uppercase; color: var(--fg-3); margin-top: 4px; }

.about-text h2 { margin-bottom: 28px; }
.about-text p   { margin-bottom: 18px; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.chip {
  padding: 5px 14px;
  border: 1px solid var(--rule-hi);
  font-family: var(--mono); font-size: .6rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--fg-3);
  transition: border-color .25s, color .25s, background .25s;
}
.chip:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-dim); }

/* ─────────────────────────────────────────
   SKILLS  — horizontal cards with line numbers
───────────────────────────────────────── */
#skills { background: var(--ink); }

.skills-header { max-width: 520px; margin-bottom: 72px; }
.skills-header h2 { margin-bottom: 16px; }

/* ── Clean 3-column skills grid ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--rule);
}

/* Span helpers — row 1: 3 equal, row 2: wide+narrow, row 3: full */
.sk-a { grid-column: span 1; }
.sk-b { grid-column: span 1; }
.sk-c { grid-column: span 1; }

.sk-card {
  background: var(--ink-2);
  padding: 48px 40px;
  position: relative; overflow: hidden;
  transition: background .35s;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.sk-card:nth-child(3n) { border-right: none; }
.sk-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease-sm);
}
.sk-card::after {
  content: '';
  position: absolute; bottom: 0; right: 0;
  width: 140px; height: 140px;
  background: radial-gradient(circle at bottom right, rgba(201,169,110,.07), transparent 70%);
  opacity: 0; transition: opacity .4s;
}
.sk-card:hover { background: var(--ink-3); }
.sk-card:hover::before { transform: scaleX(1); }
.sk-card:hover::after  { opacity: 1; }

.sk-num {
  position: absolute; top: 38px; right: 38px;
  font-family: var(--mono); font-size: .58rem;
  letter-spacing: .12em; color: var(--rule-hi);
}
.sk-icon { font-size: 1.7rem; margin-bottom: 20px; display: block; }
.sk-name {
  font-family: var(--serif); font-size: 1.4rem;
  color: var(--fg); margin-bottom: 10px;
}
.sk-desc { font-size: .85rem; color: var(--fg-3); line-height: 1.75; }


/* ─────────────────────────────────────────
   ACHIEVEMENTS — editorial list
───────────────────────────────────────── */
#achievements {
  background: var(--ink-2);
  border-top: 1px solid var(--rule);
}

.ach-header { margin-bottom: 72px; }
.ach-header h2 { margin-bottom: 16px; }

.ach-row {
  display: grid;
  grid-template-columns: 100px 1fr 160px;
  align-items: center; gap: 40px;
  padding: 34px 0;
  border-bottom: 1px solid var(--rule);
  position: relative;
  transition: padding-left .35s var(--ease-sm);
}
.ach-row:first-of-type { border-top: 1px solid var(--rule); }
.ach-row::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, transparent, var(--gold), transparent);
  transform: scaleY(0); transform-origin: top;
  transition: transform .4s var(--ease-sm);
}
.ach-row:hover { padding-left: 18px; }
.ach-row:hover::before { transform: scaleY(1); }
.ach-row:hover .ach-title { color: var(--gold-hi); }

.ach-year { font-family: var(--mono); font-size: .65rem; letter-spacing: .14em; color: var(--fg-3); text-transform: uppercase; }
.ach-title { font-family: var(--serif); font-size: 1.3rem; color: var(--fg); margin-bottom: 5px; transition: color .3s; }
.ach-org   { font-size: .82rem; color: var(--fg-3); }

.ach-pill {
  justify-self: end;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  border: 1px solid rgba(201,169,110,.22);
  background: rgba(201,169,110,.05);
  font-family: var(--mono); font-size: .58rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold); white-space: nowrap;
  transition: background .3s, border-color .3s;
}
.ach-row:hover .ach-pill { background: rgba(201,169,110,.1); border-color: rgba(201,169,110,.45); }

/* ─────────────────────────────────────────
   WORK / PROJECTS  — card grid
───────────────────────────────────────── */
#work {
  background: var(--ink);
  border-top: 1px solid var(--rule);
}

.work-head { margin-bottom: 72px; }
.work-head h2 { margin-bottom: 16px; }

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.work-card {
  background: var(--ink-2);
  border: 1px solid var(--rule);
  padding: 48px 44px 60px;
  position: relative; overflow: hidden;
  transition: border-color .35s, background .35s;
}
.work-card-glow {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 75% 15%, rgba(201,169,110,.07), transparent 55%);
  opacity: 0; transition: opacity .4s;
}
.work-card:hover { border-color: rgba(201,169,110,.3); background: var(--ink-3); }
.work-card:hover .work-card-glow { opacity: 1; }

.work-card-arrow {
  position: absolute; bottom: 44px; right: 44px;
  font-size: 1rem; color: var(--gold);
  opacity: 0; transform: translate(-8px, 8px);
  transition: opacity .32s, transform .32s var(--ease-sm);
}
.work-card:hover .work-card-arrow { opacity: 1; transform: translate(0,0); }

.work-n { font-family: var(--mono); font-size: .62rem; letter-spacing: .2em; color: var(--fg-3); margin-bottom: 18px; }
.work-title { font-family: var(--serif); font-size: 1.6rem; margin-bottom: 12px; transition: color .3s; }
.work-card:hover .work-title { color: var(--gold-hi); }
.work-desc { font-size: .88rem; color: var(--fg-3); line-height: 1.8; }

.work-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 24px; }
.work-tag {
  padding: 4px 10px;
  border: 1px solid rgba(201,169,110,.16);
  background: rgba(201,169,110,.04);
  font-family: var(--mono); font-size: .58rem;
  letter-spacing: .08em; color: var(--gold-lo);
  transition: color .25s, border-color .25s;
}
.work-card:hover .work-tag { color: var(--gold); border-color: rgba(201,169,110,.3); }

/* ─────────────────────────────────────────
   CONTACT
───────────────────────────────────────── */
#contact {
  background: var(--ink-2);
  border-top: 1px solid var(--rule);
  text-align: center;
}
.contact-inner { max-width: 640px; margin: 0 auto; }
.contact-inner h2 { margin-bottom: 18px; }
.contact-inner > p { margin-bottom: 52px; }

.contact-email-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-size: 1.45rem;
  color: var(--fg);
  border-bottom: 1px solid rgba(201,169,110,.35);
  padding-bottom: 4px; margin-bottom: 64px;
  transition: color .3s, border-color .3s;
}
.contact-email-link:hover { color: var(--gold); border-color: var(--gold); }

.socials { display: flex; justify-content: center; gap: 12px; }
.soc-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px;
  border: 1px solid var(--rule-hi);
  color: var(--fg-3); font-size: .95rem;
  transition: border-color .28s, color .28s, background .28s, transform .32s var(--ease);
}
.soc-btn:hover {
  border-color: var(--gold); color: var(--gold);
  background: var(--gold-dim); transform: translateY(-5px);
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
#site-footer {
  background: var(--ink);
  border-top: 1px solid var(--rule);
  padding: 36px 0;
}
.foot-inner { display: flex; justify-content: space-between; align-items: center; }
.foot-copy { font-family: var(--mono); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }
.foot-links { display: flex; gap: 28px; list-style: none; }
.foot-links a { font-family: var(--mono); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); transition: color .25s; }
.foot-links a:hover { color: var(--gold); }

/* ─────────────────────────────────────────
   ANIMATIONS
───────────────────────────────────────── */
@keyframes up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes zoomFade {
  from { opacity: 0; transform: scale(1.05); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes goldShift {
  0%,100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
@keyframes scanDown {
  0%   { top: -2px; opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Scroll reveals */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .7s var(--ease-sm), transform .7s var(--ease-sm);
}
.reveal.in { opacity: 1; transform: none; }

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 1100px) {
  :root { --pad: 32px; }
  .about-grid { grid-template-columns: 360px 1fr; gap: 64px; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .sk-card:nth-child(3n) { border-right: 1px solid var(--rule); }
  .sk-card:nth-child(2n) { border-right: none; }
}

@media (max-width: 820px) {
  :root { --section: 80px; }
  #hero { grid-template-columns: 1fr; }
  .hero-left { padding: 130px 32px 48px; order: 2; }
  .hero-right { height: auto; min-height: 55vmax; order: 1; }
  .hero-right img { width: 220px; height: 300px; }
  .hero-right::before { width: 220px; height: 300px; }
  .hero-ghost-letter { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 56px; }
  .img-frame { max-width: 320px; margin: 0 auto; }
  .skills-grid { grid-template-columns: 1fr; }
  .sk-card:nth-child(n) { border-right: none; }
  .work-grid { grid-template-columns: 1fr; }
  .ach-row { grid-template-columns: 80px 1fr; }
  .ach-pill { display: none; }

  #site-header { padding: 20px 28px; }
  .nav-list {
    display: none; position: fixed; inset: 0;
    background: var(--ink); flex-direction: column;
    justify-content: center; align-items: center;
    gap: 40px; z-index: 900;
  }
  .nav-list.open { display: flex; }
  .nav-list a { font-size: .85rem; }
  .hamburger { display: flex; }

  .foot-inner { flex-direction: column; gap: 18px; text-align: center; }
  #cursor-dot, #cursor-ring { display: none; }
  body, *, a, button { cursor: auto !important; }
}
