/* ============================================================
   Portfolio v2 - editorial, restrained, senior-designer vibes
   ============================================================ */

:root {
  --bg: #0b0a08;
  --bg-soft: #121110;
  --ink: #f4efe6;
  --ink-dim: #a8a096;
  --ink-mute: #6c6658;
  --line: rgba(244, 239, 230, 0.12);
  --line-strong: rgba(244, 239, 230, 0.22);
  --accent: #ff6a3d;       /* warm ember */
  --accent-2: #e9c46a;     /* muted amber */
  --paper: #ece5d6;
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-fast: cubic-bezier(0.65, 0, 0.35, 1);
  --gutter: clamp(20px, 4vw, 56px);
  --maxw: 1440px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  cursor: none;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(255, 106, 61, 0.08), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(233, 196, 106, 0.05), transparent 60%),
    var(--bg);
  min-height: 100vh;
}

@media (hover: none) { body { cursor: auto; } .cursor, .cursor-dot { display: none; } }

::selection { background: var(--accent); color: #141312; }

a { color: inherit; text-decoration: none; }

img, svg { display: block; max-width: 100%; }

button { font: inherit; border: none; background: none; color: inherit; cursor: none; }

em { font-style: italic; }

/* ---------- Grain overlay ---------- */
.grain {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9999;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.4 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Scroll progress ---------- */
.progress {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 100;
  transition: width 0.05s linear;
}

/* ---------- Cursor ---------- */
.cursor {
  position: fixed; top: 0; left: 0;
  width: 40px; height: 40px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition:
    width 0.3s var(--ease),
    height 0.3s var(--ease),
    background-color 0.3s var(--ease),
    border-color 0.3s var(--ease),
    opacity 0.3s;
  mix-blend-mode: difference;
  backdrop-filter: blur(2px);
}
.cursor.is-link { width: 56px; height: 56px; border-color: var(--ink); }
.cursor.is-view {
  width: 88px; height: 88px;
  background: var(--accent);
  border-color: transparent;
  mix-blend-mode: normal;
  color: #141312;
}
.cursor.is-view::after {
  content: "View →";
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 500; letter-spacing: 0.02em;
  color: #141312;
}
.cursor.is-mail {
  width: 88px; height: 88px;
  background: var(--ink); border-color: transparent;
  mix-blend-mode: normal; color: var(--bg);
}
.cursor.is-mail::after {
  content: "Say hi";
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 500;
  color: var(--bg);
}
.cursor-dot {
  position: fixed; top: 0; left: 0;
  width: 4px; height: 4px;
  background: var(--ink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  backdrop-filter: blur(12px) saturate(130%);
  background: rgba(11, 10, 8, 0.55);
  border-bottom: 1px solid var(--line);
}

.nav-mark {
  display: flex; align-items: center; gap: 12px;
  font-weight: 500; font-size: 14px; letter-spacing: 0.02em;
}
.mark-glyph {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px;
  background: var(--ink); color: var(--bg);
  border-radius: 50%;
  font-family: "Fraunces", serif; font-weight: 600;
  font-style: italic;
}
.mark-text { color: var(--ink-dim); }

.nav-links {
  display: flex; gap: 32px;
  font-size: 13px; font-weight: 400;
  color: var(--ink-dim);
}
.nav-links a {
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s;
}
.nav-links a span {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: var(--ink-mute);
  margin-right: 6px;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--ink);
  transition: width 0.4s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

.nav-right {
  display: flex; align-items: center; gap: 10px;
}

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 12px; color: var(--ink-dim);
  transition: all 0.3s;
}
.nav-cta:hover { color: var(--ink); border-color: var(--ink); }
.nav-cta .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #7cf29e;
  box-shadow: 0 0 12px #7cf29e;
  animation: pulse 2s infinite;
}

.nav-resume {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px 8px 14px;
  border-radius: 999px;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--bg);
  background: var(--ink);
  overflow: hidden;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease);
}
.nav-resume svg {
  width: 14px; height: 14px;
  transition: transform 0.4s var(--ease);
}
.nav-resume::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--accent);
  transform: translateY(100%);
  transition: transform 0.4s var(--ease);
  z-index: 0;
}
.nav-resume svg, .nav-resume span { position: relative; z-index: 1; }
.nav-resume:hover::before { transform: translateY(0); }
.nav-resume:hover { transform: translateY(-1px); }
.nav-resume:hover svg { transform: translateY(2px); }

@media (max-width: 520px) {
  .nav-cta { display: none; }
  .nav-resume { padding: 6px 12px; font-size: 11px; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-mark .mark-text { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--gutter) + 80px) var(--gutter) var(--gutter);
  display: flex; flex-direction: column; justify-content: center;
  max-width: var(--maxw); margin: 0 auto;
  overflow: hidden;
}

.aurora {
  position: absolute; inset: 0; pointer-events: none; z-index: -1;
  filter: blur(80px);
  opacity: 0.5;
}
.aurora span {
  position: absolute; border-radius: 50%;
  mix-blend-mode: screen;
  animation: drift 22s ease-in-out infinite alternate;
}
.aurora span:nth-child(1) {
  top: -10%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255, 106, 61, 0.45), transparent 70%);
}
.aurora span:nth-child(2) {
  top: 30%; left: -15%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(233, 196, 106, 0.25), transparent 70%);
  animation-delay: -6s;
}
.aurora span:nth-child(3) {
  bottom: -20%; left: 30%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(123, 97, 255, 0.3), transparent 70%);
  animation-delay: -12s;
}
@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, -40px) scale(1.15); }
}

.hero-meta {
  display: flex; align-items: center; gap: 16px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 48px;
  animation: fade-in 1s var(--ease) both;
}
.hero-meta .line {
  flex: 0 0 80px; height: 1px;
  background: var(--line-strong);
}

.display {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 300;
  font-size: clamp(56px, 10vw, 184px);
  line-height: 0.94;
  letter-spacing: -0.035em;
  margin-bottom: 40px;
}
.display .italic { font-style: italic; font-weight: 300; }
.display .accent { color: var(--accent); font-style: italic; font-variation-settings: "opsz" 144; }
.display .amp {
  font-style: italic; color: var(--ink-dim);
  font-family: "Fraunces", serif; font-weight: 300;
}

.line-mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}
.line-inner {
  display: block;
  transform: translateY(110%);
  animation: rise 1.1s var(--ease) forwards;
}
.line-mask:nth-child(1) .line-inner { animation-delay: 0.15s; }
.line-mask:nth-child(2) .line-inner { animation-delay: 0.30s; }
.line-mask:nth-child(3) .line-inner { animation-delay: 0.45s; }
@keyframes rise {
  to { transform: translateY(0); }
}

.hero-sub {
  max-width: 620px;
  color: var(--ink-dim);
  font-size: clamp(16px, 1.15vw, 19px);
  line-height: 1.6;
  margin-bottom: 40px;
  animation: fade-in 1.2s 0.8s var(--ease) both;
}
.hero-sub strong { color: var(--ink); font-weight: 500; }

.hero-cta {
  display: flex; gap: 16px; flex-wrap: wrap;
  margin-bottom: 96px;
  animation: fade-in 1.2s 1s var(--ease) both;
}
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px; font-weight: 500;
  transition: all 0.4s var(--ease);
  position: relative; overflow: hidden;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.4s var(--ease); }
.btn-primary {
  background: var(--ink); color: var(--bg);
}
.btn-primary:hover { background: var(--accent); color: var(--bg); transform: translateY(-2px); }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--ink-dim);
}
.btn-ghost:hover { color: var(--ink); border-color: var(--ink); }

.hero-foot {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  animation: fade-in 1.2s 1.2s var(--ease) both;
}
.stat b {
  display: block;
  font-family: "Fraunces", serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  line-height: 1;
  margin-bottom: 6px;
  font-feature-settings: "ss01";
}
.stat span {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
@media (max-width: 640px) {
  .hero-foot { grid-template-columns: repeat(2, 1fr); }
}

.scroll-hint {
  position: absolute; bottom: 32px; right: var(--gutter);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-mute);
  animation: fade-in 1.5s 1.5s var(--ease) both;
}
.scroll-hint span {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, transparent, var(--ink));
  animation: scroll-line 2s infinite;
}
@keyframes scroll-line {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  overflow: hidden;
  white-space: nowrap;
  background: var(--bg-soft);
}
.marquee-track {
  display: inline-flex; gap: 40px;
  animation: marquee 40s linear infinite;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: clamp(28px, 4vw, 54px);
  font-weight: 300;
  color: var(--ink);
}
.marquee .sep { color: var(--accent); font-style: normal; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(80px, 12vw, 160px) var(--gutter);
  position: relative;
}

.sec-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  margin-bottom: 64px;
  align-items: end;
}
.eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent);
}
.sec-title {
  font-family: "Fraunces", serif;
  font-weight: 300;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 1;
  letter-spacing: -0.03em;
}
.sec-title em { font-style: italic; color: var(--ink-dim); }
.sec-kicker {
  grid-column: 2;
  max-width: 500px;
  color: var(--ink-dim);
  font-size: 16px;
  line-height: 1.55;
  margin-top: 16px;
}
@media (max-width: 860px) {
  .sec-head { grid-template-columns: 1fr; gap: 16px; }
  .sec-kicker { grid-column: 1; }
}

/* ---------- Work list ---------- */
.work-list {
  list-style: none;
  border-top: 1px solid var(--line);
}
.work-item {
  position: relative;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  transition: background 0.5s var(--ease);
}
.work-item a {
  display: grid;
  grid-template-columns: 60px 1fr auto 60px 40px;
  align-items: center;
  gap: 40px;
  padding: 36px 8px;
  position: relative;
  z-index: 2;
  transition: transform 0.6s var(--ease), color 0.6s var(--ease);
}
.work-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--ink-mute);
}
.work-title {
  font-family: "Fraunces", serif;
  font-weight: 300;
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -0.02em;
  transition: transform 0.6s var(--ease);
}
.work-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  justify-content: flex-end;
}
.work-tags span {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-dim);
}
.work-year {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--ink-mute);
}
.work-arrow svg { width: 24px; height: 24px; color: var(--ink-dim); transition: transform 0.4s var(--ease); }

.work-hover {
  position: absolute; inset: 0;
  background: var(--accent);
  transform: translateY(100%);
  transition: transform 0.6s var(--ease);
  z-index: 1;
}
.work-item:hover { background: var(--accent); }
.work-item:hover .work-hover { transform: translateY(0); }
.work-item:hover a { color: var(--bg); }
.work-item:hover .work-num,
.work-item:hover .work-year { color: rgba(20, 19, 18, 0.7); }
.work-item:hover .work-tags span {
  border-color: rgba(20, 19, 18, 0.3);
  color: rgba(20, 19, 18, 0.8);
}
.work-item:hover .work-title { transform: translateX(16px); font-style: italic; }
.work-item:hover .work-arrow svg { transform: translate(4px, -4px); color: var(--bg); }

@media (max-width: 860px) {
  .work-item a { grid-template-columns: 30px 1fr 24px; gap: 16px; padding: 24px 0; }
  .work-tags, .work-year { display: none; }
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: start;
}
.about-body .lead {
  font-family: "Fraunces", serif;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 300;
  line-height: 1.3;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
.about-body .lead strong { color: var(--accent); font-weight: 400; }
.about-body p {
  color: var(--ink-dim);
  font-size: 16px; line-height: 1.65;
  margin-bottom: 18px;
}
.about-list {
  list-style: none;
  margin-top: 32px;
  border-top: 1px solid var(--line);
}
.about-list li {
  display: grid;
  grid-template-columns: 120px 1fr;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.about-list li span {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-mute);
}
.about-list li b { font-weight: 500; color: var(--ink); }

.about-card {
  position: sticky; top: 100px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-soft);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease);
}
.about-card-inner { padding: 0; }
.about-card-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; color: var(--ink-mute);
}
.about-card-head .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #ff5f57;
  box-shadow: 16px 0 0 #febc2e, 32px 0 0 #28c840;
}
.mono {
  padding: 20px 24px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px; line-height: 1.65;
  color: var(--ink);
  white-space: pre-wrap;
  word-wrap: break-word;
}
.c-dim { color: var(--ink-mute); }
.c-out { color: var(--accent-2); }

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-card { position: static; }
}

/* ---------- Timeline ---------- */
.time-list {
  list-style: none;
  position: relative;
  padding-left: 32px;
}
.time-list::before {
  content: "";
  position: absolute; left: 8px; top: 8px; bottom: 8px;
  width: 1px; background: var(--line-strong);
}
.time-item {
  position: relative;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.time-item::before {
  content: "";
  position: absolute; left: -32px; top: 42px;
  width: 17px; height: 17px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  border-radius: 50%;
  transition: background 0.4s, border-color 0.4s, transform 0.4s;
}
.time-item:hover::before { background: var(--accent); border-color: var(--accent); transform: scale(1.15); }
.time-date {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px; color: var(--ink-mute);
  letter-spacing: 0.04em;
}
.time-body h3 {
  font-family: "Fraunces", serif;
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.2;
  margin-bottom: 6px;
}
.time-body .org {
  color: var(--accent);
  font-size: 13px;
  margin-bottom: 10px;
  font-weight: 500;
}
.time-body p {
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1.6;
  max-width: 680px;
}
@media (max-width: 720px) {
  .time-item { grid-template-columns: 1fr; gap: 8px; }
  .time-item::before { top: 36px; }
}

/* ---------- Skills grid ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.skill-card {
  padding: 32px 28px;
  background: var(--bg);
  display: flex; flex-direction: column; gap: 14px;
  transition: background 0.5s var(--ease), transform 0.5s var(--ease);
  min-height: 260px;
}
.skill-card:hover {
  background: var(--bg-soft);
}
.skill-card header {
  display: flex; align-items: baseline; gap: 14px;
}
.skill-card header span {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; color: var(--accent);
  letter-spacing: 0.04em;
}
.skill-card h4 {
  font-family: "Fraunces", serif;
  font-weight: 400;
  font-size: 24px;
}
.skill-card p {
  color: var(--ink-dim);
  font-size: 14px;
  line-height: 1.55;
  flex: 1;
}
.skill-card ul {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 6px;
}
.skill-card ul li {
  font-size: 11px;
  font-family: "JetBrains Mono", monospace;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-dim);
  transition: all 0.3s;
}
.skill-card:hover ul li { color: var(--ink); border-color: var(--ink-dim); }

@media (max-width: 960px) { .skills-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .skills-grid { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact {
  padding-bottom: 60px;
}
.contact-wrap {
  max-width: 1100px;
  padding: clamp(60px, 10vw, 140px) 0 80px;
  border-top: 1px solid var(--line);
}
.contact-title {
  font-family: "Fraunces", serif;
  font-weight: 300;
  font-size: clamp(52px, 10vw, 180px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 32px 0 48px;
}
.contact-title .italic {
  display: block;
  font-style: italic;
  color: var(--accent);
}
.contact-cta {
  display: inline-flex; align-items: center; gap: 18px;
  padding: 22px 34px;
  background: var(--ink); color: var(--bg);
  border-radius: 999px;
  font-family: "Fraunces", serif;
  font-size: clamp(18px, 1.6vw, 26px);
  font-weight: 400;
  transition: all 0.5s var(--ease);
  margin-bottom: 60px;
}
.contact-cta svg { width: 24px; height: 24px; transition: transform 0.5s var(--ease); }
.contact-cta:hover { background: var(--accent); transform: translateY(-4px); }
.contact-cta:hover svg { transform: translateX(8px); }

.contact-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.contact-links a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 24px 28px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-dim);
  font-size: 15px;
  transition: color 0.3s, padding 0.3s;
}
.contact-links a:not(:last-child) { border-right: 1px solid var(--line); padding-right: 24px; }
.contact-links a svg { width: 18px; height: 18px; transition: transform 0.3s; }
.contact-links a:hover { color: var(--ink); padding-left: 8px; }
.contact-links a:hover svg { transform: translate(4px, -4px); color: var(--accent); }

@media (max-width: 720px) {
  .contact-links { grid-template-columns: 1fr; }
  .contact-links a:not(:last-child) { border-right: none; padding-right: 0; }
}

/* ---------- Footer ---------- */
.foot {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding-top: 48px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.foot-mid { text-align: center; }
.foot > div:last-child { text-align: right; }
.top-btn {
  color: var(--ink-dim);
  transition: color 0.3s;
}
.top-btn:hover { color: var(--ink); }

@media (max-width: 640px) {
  .foot { grid-template-columns: 1fr; gap: 10px; text-align: left; }
  .foot-mid, .foot > div:last-child { text-align: left; }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .line-inner { transform: none; }
}
