/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

:root {
  --bg:     #FFFFFF;
  --ink:    #141210;
  --ink2:   #6B6865;
  --ink3:   #AEABA7;
  --border: #E8E6E3;
  --c-dark: #1A1917;
  --c-blue: #0A1628;
  --c-plum: #180A28;
  --c-ravn: #1A0A06;
  --sans:   'Geist', system-ui, sans-serif;
  --max:    680px;
  --g:      clamp(20px, 5vw, 48px);
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  cursor: none;
  overflow-x: hidden;
}

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

/* ── CUSTOM CURSOR ── */
.cursor {
  position: fixed;
  width: 10px; height: 10px;
  background: var(--ink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, width 0.2s ease, height 0.2s ease, background 0.2s ease;
}

.cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 1.5px solid rgba(20,18,16,0.3);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.12s ease, width 0.2s ease, height 0.2s ease;
}

body:has(a:hover) .cursor,
body:has(.work-card:hover) .cursor { width: 14px; height: 14px; background: var(--ink2); }
body:has(a:hover) .cursor-ring,
body:has(.work-card:hover) .cursor-ring { width: 48px; height: 48px; }

/* ── LOAD ANIMATIONS ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.anim-nav     { animation: slideInDown 0.5s 0.05s ease both; }
.anim-hero-1  { animation: fadeInUp 0.6s 0.2s ease both; }
.anim-hero-2  { animation: fadeInUp 0.6s 0.35s ease both; }
.anim-intro   { animation: fadeInUp 0.6s 0.45s ease both; }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.22,1,0.36,1), transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.reveal.visible { opacity: 1; transform: none; }

.stagger > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s cubic-bezier(0.22,1,0.36,1), transform 0.55s cubic-bezier(0.22,1,0.36,1);
}
.stagger.visible > *:nth-child(1) { opacity:1; transform:none; transition-delay:0s; }
.stagger.visible > *:nth-child(2) { opacity:1; transform:none; transition-delay:0.08s; }
.stagger.visible > *:nth-child(3) { opacity:1; transform:none; transition-delay:0.16s; }
.stagger.visible > *:nth-child(4) { opacity:1; transform:none; transition-delay:0.24s; }

/* ── NAV ── */
nav {
  display: flex;
  justify-content: center;
  padding: 16px var(--g);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-pill {
  display: flex;
  align-items: center;
  background: white;
  border: 1px solid var(--border);
  border-radius: 100px;
  height: 44px;
  padding: 0 6px;
  width: 100%;
  max-width: var(--max);
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  transition: box-shadow 0.3s;
}

.nav-pill:hover { box-shadow: 0 4px 24px rgba(0,0,0,0.1); }

.nav-logo {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  padding: 0 10px;
  letter-spacing: -0.02em;
  white-space: nowrap;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
}
.nav-logo:hover { opacity: 0.6; }

.nav-sep { width: 1px; height: 18px; background: var(--border); flex-shrink: 0; }

.nav-links { display: flex; list-style: none; padding: 0 6px; }
.nav-links a {
  font-size: 13px;
  color: var(--ink2);
  padding: 6px 10px;
  border-radius: 100px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--ink); background: var(--border); }



/* ── LAYOUT ── */
.section { padding: 48px var(--g) 0; }
.inner   { max-width: var(--max); margin: 0 auto; padding-bottom: 48px; border-bottom: 1px solid var(--border); }
.lbl     { font-size: 13px; color: var(--ink2); margin-bottom: 24px; }

/* ── HERO ── */
.hero { padding: 48px var(--g) 0; }
.hero-inner {
  max-width: var(--max); margin: 0 auto; padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: flex-start; gap: 24px;
}
.hero-greeting { font-size: 15px; font-weight: 500; color: var(--ink2); margin-bottom: 10px; }
.hero-headline {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 600; letter-spacing: -0.03em; line-height: 1.2; color: var(--ink);
}
.hero-photo {
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--border); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 28px;
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.hero-photo:hover { transform: scale(1.1) rotate(-4deg); }

/* ── INTRO ── */
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.intro-tag { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 500; color: var(--ink); margin-bottom: 10px; }
.intro-tag-dot { font-size: 10px; color: var(--ink3); line-height: 1; }
.intro-text { font-size: 13px; color: var(--ink2); line-height: 1.7; }
.intro-text a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; transition: opacity 0.2s; }
.intro-text a:hover { opacity: 0.5; }

/* ── WORK CARDS ── */
.work-cards { display: flex; flex-direction: column; gap: 10px; }

.work-card {
  border-radius: 12px; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 190px; cursor: none;
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), box-shadow 0.35s;
}
.work-card:hover { transform: translateY(-4px) scale(1.005); box-shadow: 0 20px 48px rgba(0,0,0,0.18); cursor: pointer; }

.work-card-left {
  padding: 24px 24px 20px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.wc-client { font-size: 11px; color: rgba(255,255,255,0.38); letter-spacing: 0.04em; margin-bottom: 10px; display: block; }
.wc-result {
  font-size: clamp(15px, 1.8vw, 18px); font-weight: 500;
  color: rgba(255,255,255,0.92); line-height: 1.3; letter-spacing: -0.02em; flex: 1;
}
.wc-chips { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 16px; }
.chip {
  font-size: 10px; color: rgba(255,255,255,0.45);
  padding: 3px 9px; border: 1px solid rgba(255,255,255,0.12); border-radius: 100px;
  transition: background 0.2s, color 0.2s;
}
.work-card:hover .chip { color: rgba(255,255,255,0.65); border-color: rgba(255,255,255,0.25); }
.chip-g { color: rgba(94,170,94,0.9); border-color: rgba(94,170,94,0.3); display: flex; align-items: center; gap: 4px; }
.chip-g::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #5EAA5E; }

.work-card-right {
  display: flex; align-items: center; justify-content: center; padding: 0; overflow: hidden;
}
.work-card-right img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s cubic-bezier(0.22,1,0.36,1); }
.work-card:hover .work-card-right img { transform: scale(1.06); }

.c-dark { background: var(--c-dark); }
.c-blue { background: var(--c-blue); }
.c-plum { background: var(--c-plum); }
.c-ravn { background: var(--c-ravn); }

/* ── SKILLS ── */
.skill-row {
  display: grid; grid-template-columns: 160px 1fr;
  gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.skill-row:first-child { border-top: 1px solid var(--border); }
.skill-row:hover { background: rgba(20,18,16,0.02); }
.skill-name { font-size: 14px; font-weight: 500; color: var(--ink); }
.skill-desc { font-size: 13px; color: var(--ink2); line-height: 1.6; }

/* ── STATS ── */
.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.stat-item {
  padding: 28px 24px;
  border: 1px solid var(--border); border-radius: 12px;
  transition: background 0.2s;
}
.stat-item:hover { background: rgba(20,18,16,0.02); }
.stat-n { font-size: clamp(30px, 5vw, 44px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: var(--ink); margin-bottom: 6px; }
.stat-sfx { font-size: 0.5em; font-weight: 400; color: var(--ink3); }
.stat-l { font-size: 12px; color: var(--ink2); }

/* ── TESTIMONIALS ── */
.t-big { padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid var(--border); }
.t-quote-big {
  font-size: clamp(15px, 2vw, 18px); font-weight: 400;
  letter-spacing: -0.01em; line-height: 1.55; color: var(--ink); margin-bottom: 20px;
}
.t-author { display: flex; align-items: center; gap: 10px; }
.t-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--border); display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 500; color: var(--ink2); flex-shrink: 0;
  transition: transform 0.3s;
}
.t-author:hover .t-avatar { transform: scale(1.15); }
.t-name { font-size: 13px; font-weight: 500; color: var(--ink); }
.t-role { font-size: 12px; color: var(--ink3); }
.t-small-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.t-quote-small { font-size: 13px; color: var(--ink2); line-height: 1.7; margin-bottom: 12px; }
.t-name-small { font-size: 13px; font-weight: 500; color: var(--ink); }
.t-role-small { font-size: 12px; color: var(--ink3); }

/* ── READS ── */
.reads-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.read-item { transition: transform 0.3s cubic-bezier(0.22,1,0.36,1); }
.read-item:hover { transform: translateY(-4px); }
.read-cover { width: 100%; aspect-ratio: 2/3; border-radius: 6px; margin-bottom: 8px; overflow: hidden; transition: box-shadow 0.3s; }
.read-item:hover .read-cover { box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.read-title { font-size: 13px; font-weight: 500; color: var(--ink); margin-bottom: 2px; }
.read-genre { font-size: 11px; color: var(--ink3); }

/* ── ABOUT ── */
.about-top { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.about-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--border); display: flex; align-items: center; justify-content: center;
  font-size: 24px; flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.about-avatar:hover { transform: scale(1.1) rotate(-6deg); }
.about-avatar-caption { font-size: 11px; color: var(--ink3); }
.about-social { display: flex; gap: 8px; margin-top: 6px; }
.about-social a {
  width: 26px; height: 26px; border: 1px solid var(--border); border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink2); transition: all 0.2s;
}
.about-social a:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }
.about-headline { font-size: clamp(22px, 3.5vw, 30px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.2; color: var(--ink); margin-bottom: 20px; }
.about-body { font-size: 14px; color: var(--ink2); line-height: 1.8; margin-bottom: 14px; }
.about-body b { color: var(--ink); font-weight: 500; }
.fun-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.fun-fact {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--ink2); padding: 4px 10px;
  border: 1px solid var(--border); border-radius: 100px;
  transition: all 0.2s; cursor: none;
}
.fun-fact .lucide { width: 13px; height: 13px; color: var(--ink3); transition: color 0.2s; }
.fun-fact:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }
.fun-fact:hover .lucide { color: var(--ink); }

/* ── LUCIDE ICONS ── */
.lucide { display: inline-block; vertical-align: middle; flex-shrink: 0; }
.spark { width: 0.78em; height: 0.78em; vertical-align: -0.08em; }
.cs-section-title .spark { color: var(--ink3); margin-right: 2px; }
.contact-headline .spark { color: var(--ink); }

/* ── EXPERIENCE ── */
.exp-row {
  display: grid; grid-template-columns: 120px 1fr;
  gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.exp-row:first-child { border-top: 1px solid var(--border); }
.exp-row:hover { background: rgba(20,18,16,0.02); }
.exp-period { font-size: 12px; color: var(--ink3); padding-top: 3px; }
.exp-company { font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 2px; }
.exp-role { font-size: 12px; color: var(--ink2); margin-bottom: 8px; }
.exp-detail { font-size: 12px; color: var(--ink2); line-height: 1.65; }

/* ── CONTACT ── */
.contact-headline { font-size: clamp(22px, 4vw, 32px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.2; margin-bottom: 10px; }
.contact-sub { font-size: 13px; color: var(--ink2); margin-bottom: 24px; line-height: 1.6; }
.contact-cta {
  font-size: 14px; font-weight: 500; color: var(--ink);
  text-decoration: underline; text-underline-offset: 3px;
  transition: opacity 0.2s, letter-spacing 0.2s;
  display: inline-block;
}
.contact-cta:hover { opacity: 0.5; letter-spacing: 0.02em; }

/* ── AI SECTION ── */
.ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.ai-col-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.ai-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ai-list li {
  font-size: 13px;
  color: var(--ink2);
  line-height: 1.6;
  padding-left: 14px;
  position: relative;
}
.ai-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 10px;
  height: 10px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="%23AEABA7" stroke="none"><path d="M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z"/></svg>') no-repeat center / contain;
}
.ai-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}
.ai-tool {
  font-size: 11px;
  color: var(--ink2);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: all 0.2s;
}
.ai-tool:hover { border-color: var(--ink3); color: var(--ink); }
.ai-tool-learning {
  color: var(--ink3);
  border-style: dashed;
  opacity: 0.7;
}
.ai-tool-learning::after {
  content: ' · exploring';
  font-size: 10px;
  color: var(--ink3);
}
.ai-pov {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.7;
  font-style: italic;
  padding: 20px 24px;
  border-left: 2px solid var(--ink);
  margin-bottom: 32px;
}
.ai-closing {
  font-size: 13px;
  color: var(--ink2);
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ── FOOTER ── */
footer { padding: 18px var(--g); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
footer span { font-size: 11px; color: var(--ink3); }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  /* Nav */
  .nav-links { display: none; }
  .nav-pill { padding: 0 4px; }
  #nav-typing { display: none !important; }

  /* Hero */
  .hero { padding: 32px var(--g) 0; }
  .hero-inner { flex-direction: column-reverse; gap: 16px; align-items: flex-start; }
  .hero-photo { width: 64px; height: 64px; }
  .hero-headline { font-size: 22px; }
  .hero-greeting { font-size: 13px; }

  /* Layout */
  .intro-grid { grid-template-columns: 1fr; gap: 24px; }
  .section { padding: 36px var(--g) 0; }

  /* Work cards */
  .work-card { grid-template-columns: 1fr; }
  .work-card-right { display: none; }

  /* About */
  .about-headline { font-size: 20px; }
  [style*="grid-template-columns:1fr 180px"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
  }
  [style*="grid-template-columns:1fr 180px"] > div:last-child {
    height: 200px !important;
  }

  /* AI section */
  .ai-grid { grid-template-columns: 1fr; gap: 24px; }

  /* Skills */
  .skill-row { grid-template-columns: 1fr; gap: 4px; }

  /* Stats */
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat-n { font-size: 28px; }

  /* Testimonials */
  .t-small-grid { grid-template-columns: 1fr; }

  /* Experience */
  .exp-row { grid-template-columns: 1fr; gap: 4px; }
  .exp-period { margin-bottom: 2px; }

  /* Contact */
  .contact-headline { font-size: 22px; }

  /* Footer */
  footer { flex-direction: column; align-items: flex-start; gap: 6px; }

  /* Modal */
  .cs-modal { width: 100vw; top: auto; height: 90vh; border-radius: 16px 16px 0 0; }
  .cs-modal-inner { padding: 32px 24px 60px; }
  .cs-stats { grid-template-columns: 1fr 1fr; }
  .cs-title { font-size: 22px; }

  /* Cursor */
  body { cursor: auto; }
  .cursor, .cursor-ring { display: none; }
}

@media (max-width: 400px) {
  .stats-grid { grid-template-columns: 1fr; }
  .cs-stats { grid-template-columns: 1fr; }
  .cs-meta { flex-direction: column; }
}

/* ── GIF GRID ── */
.gif-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 32px;
}
.gif-item { display: flex; flex-direction: column; gap: 8px; }
.gif-img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), box-shadow 0.35s;
}
.gif-img:hover { transform: scale(1.03); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.gif-caption { font-size: 11px; color: var(--ink3); line-height: 1.4; }

@media (max-width: 600px) {
  .gif-grid { grid-template-columns: 1fr 1fr; }
}
/* ── CASE STUDY MODAL ── */
.cs-modal {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(680px, 100vw);
  background: var(--bg);
  z-index: 1001;
  overflow-y: auto;
  box-shadow: -24px 0 64px rgba(0,0,0,0.15);
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
  transform: translateX(100%);
}
.cs-modal.open { transform: translateX(0); }

@media (max-width: 600px) {
  .cs-modal {
    top: auto;
    right: 0; left: 0;
    width: 100%;
    height: 90vh;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -16px 48px rgba(0,0,0,0.15);
    transform: translateY(100%);
  }
  .cs-modal.open { transform: translateY(0); }
}

.cs-modal-inner {
  padding: 48px 40px 80px;
  position: relative;
}

.cs-close {
  position: absolute;
  top: 24px; right: 24px;
  background: none; border: 1px solid var(--border);
  border-radius: 50%; width: 32px; height: 32px;
  font-size: 12px; color: var(--ink2);
  cursor: none; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.cs-close:hover { background: var(--border); color: var(--ink); }

.cs-header { margin-bottom: 36px; }
.cs-label { font-size: 12px; color: var(--ink3); margin-bottom: 10px; letter-spacing: 0.02em; }
.cs-title { font-size: clamp(22px, 4vw, 30px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.2; color: var(--ink); margin-bottom: 20px; }
.cs-meta {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.cs-meta span {
  font-size: 11px; color: var(--ink2);
  padding: 4px 10px; border: 1px solid var(--border); border-radius: 100px;
}

.cs-img-placeholder {
  width: 100%; aspect-ratio: 16/9;
  background: var(--border);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin: 32px 0;
}
.cs-img-placeholder p { font-size: 12px; color: var(--ink3); text-align: center; padding: 16px; }

.cs-section { margin-bottom: 36px; }
.cs-section-label { font-size: 12px; color: var(--ink3); margin-bottom: 8px; }
.cs-section-title { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 14px; line-height: 1.3; }
.cs-body { font-size: 14px; color: var(--ink2); line-height: 1.75; }

.cs-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px; margin: 32px 0;
}
.cs-stat {
  padding: 20px 16px;
  border: 1px solid var(--border); border-radius: 10px;
}
.cs-stat-n { font-size: 32px; font-weight: 600; letter-spacing: -0.04em; color: var(--ink); line-height: 1; margin-bottom: 4px; }
.cs-stat-sfx { font-size: 0.5em; font-weight: 400; color: var(--ink3); }
.cs-stat-l { font-size: 11px; color: var(--ink2); }
