
:root {
  --bg: #fbfaf7;
  --surface: #f4f2ed;
  --panel: rgba(251, 250, 247, 0.9);
  --panel-strong: #f4f2ed;
  --line: #e5e1d8;
  --line-strong: #c9c3b7;
  --text: #191814;
  --muted: #6d685f;
  --faint: #9b958a;
  --accent: #2e7a5a;
  --accent-2: #8b6f3f;
  --accent-3: #4e617c;
  --mono: "DM Mono", monospace;
  --sans: "Geist", sans-serif;
  --serif: "Instrument Serif", serif;
}
 
*,
*::before,
*::after {
  box-sizing: border-box;
}
 
html {
  scroll-behavior: smooth;
}
 
body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}
 
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(25, 24, 20, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 24, 20, 0.035) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}
 
body::after {
  content: none;
}
 
#field {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0.22;
}
 
a {
  color: inherit;
}
 
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 1.1rem 2.5rem;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 247, 0.84);
  backdrop-filter: blur(16px);
}
 
.brand,
.nav-pill,
.nav-links a {
  text-decoration: none;
}
 
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-left: 2px;
  font-size: 0.86rem;
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 400;
}
 
.brand-mark {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.64rem;
}
 
.nav-links {
  display: flex;
  gap: 1.6rem;
}
 
.nav-links a,
.nav-pill {
  padding: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0;
  transition: color 180ms ease, background 180ms ease;
}
 
.nav-links a:hover,
.nav-pill:hover,
.nav-links a.is-active {
  color: var(--text);
}
 
.nav-pill {
  padding: 0.42rem 0.75rem;
  border: 1px solid var(--line);
}
 
.section-shell {
  width: min(1040px, calc(100% - 48px));
  margin: 0 auto;
  padding: 7rem 0;
}
 
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 5rem;
  align-items: end;
  padding-top: 8rem;
  padding-bottom: 5rem;
}
 
.kicker,
.section-label span,
.time,
.panel-top,
.mini-terminal span,
.project-index,
.skill-orbit span,
.contact-links span {
  font-family: var(--mono);
  letter-spacing: 0;
  text-transform: uppercase;
}
 
.kicker {
  margin: 0 0 22px;
  color: var(--faint);
  font-size: 0.78rem;
}
 
.headline {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(4rem, 10vw, 8.2rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.01em;
}
 
.headline span {
  display: block;
}
 
.headline span:last-child {
  color: var(--muted);
  font-style: italic;
  -webkit-text-stroke: 0;
}
 
.type-line {
  min-height: 1.6em;
  margin: 28px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: clamp(0.9rem, 2vw, 1.06rem);
}
 
.type-caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 4px;
  background: var(--muted);
  vertical-align: -0.16em;
  animation: blink 850ms steps(2, start) infinite;
}
 
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}
 
.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}
 
.primary-btn {
  background: var(--text);
  color: var(--bg);
  font-weight: 400;
}
 
.ghost-btn {
  border: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
}
 
.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px);
}
 
.ghost-btn:hover {
  border-color: var(--line-strong);
  color: var(--text);
  background: var(--surface);
}
 
.signal-panel,
.timeline-card,
.project-feature,
.skill-orbit,
.contact-links {
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--panel);
  box-shadow: none;
  backdrop-filter: blur(10px);
}
 
.signal-panel {
  padding: 18px;
}
 
.panel-top {
  display: flex;
  justify-content: space-between;
  color: var(--faint);
  font-size: 0.68rem;
}
 
.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
}
 
.status span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: none;
}
 
.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 18px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--line);
}
 
.metric-grid div {
  min-height: 108px;
  padding: 18px;
  background: rgba(251, 250, 247, 0.86);
}
 
.metric-grid strong {
  display: block;
  color: var(--text);
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 400;
  line-height: 1;
}
 
.metric-grid span {
  display: block;
  margin-top: 10px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.68rem;
}
 
.mini-terminal {
  padding: 16px;
  border-radius: 0;
  background: var(--surface);
  border: 1px solid var(--line);
}
 
.mini-terminal span {
  color: var(--faint);
  font-size: 0.68rem;
}
 
.mini-terminal p {
  min-height: 50px;
  margin: 10px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.82rem;
}
 
.split-section {
  display: grid;
  grid-template-columns: 0.55fr 1fr;
  gap: 54px;
  align-items: start;
}
 
.section-label {
  display: flex;
  align-items: baseline;
  gap: 16px;
}
 
.section-label span {
  color: var(--faint);
  font-size: 0.72rem;
}
 
.section-label h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  font-weight: 400;
  line-height: 1;
}
 
.copy-block {
  display: grid;
  gap: 18px;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.22rem);
}
 
.copy-block p {
  margin: 0;
}
 
.timeline {
  display: grid;
  gap: 0;
  margin-top: 38px;
  border-top: 1px solid var(--line);
}
 
.timeline-card {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 28px;
  padding: 1.75rem 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}
 
.timeline-card:hover,
.project-feature:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: transparent;
}
 
.time {
  color: var(--faint);
  font-size: 0.74rem;
}
 
.timeline-card h3,
.project-feature h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 400;
  line-height: 1.05;
}
 
.timeline-card p {
  margin: 8px 0 14px;
  color: var(--accent-3);
}
 
.timeline-card ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}
 
.project-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 36px;
  margin-top: 38px;
  padding: 30px;
  text-decoration: none;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}
 
.project-index {
  display: block;
  margin-bottom: 16px;
  color: var(--faint);
  font-size: 0.72rem;
}
 
.project-tagline {
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.8rem;
}
 
.project-feature p:last-child {
  max-width: 720px;
  color: var(--muted);
}
 
.project-stack {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-end;
  gap: 8px;
}
 
.project-stack span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
}
 
.skill-orbit {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 38px;
  overflow: hidden;
  background: var(--line);
}
 
.skill-orbit div {
  min-height: 172px;
  padding: 22px;
  background: rgba(251, 250, 247, 0.86);
  transition: background 180ms ease;
}
 
.skill-orbit div:hover {
  background: var(--surface);
}
 
.skill-orbit span {
  color: var(--faint);
  font-size: 0.7rem;
}
 
.skill-orbit p {
  margin: 16px 0 0;
  color: var(--muted);
}
 
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 34px;
  margin-top: 38px;
}
 
.contact-copy p {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 4.9rem);
  line-height: 0.95;
}
 
.contact-copy span {
  display: block;
  color: var(--muted);
  font-size: 1.05rem;
}
 
.contact-links {
  display: grid;
  overflow: hidden;
}
 
.contact-links a {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.84rem;
  text-decoration: none;
  transition: background 180ms ease;
}
 
.contact-links a:last-child {
  border-bottom: 0;
}
 
.contact-links a:hover {
  background: var(--surface);
}
 
.contact-links span {
  color: var(--faint);
  font-size: 0.68rem;
}
 
.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 42px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.72rem;
}
 
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 650ms ease;
}
 
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
 
@keyframes blink {
  0%,
  45% {
    opacity: 1;
  }
  46%,
  100% {
    opacity: 0;
  }
}
 
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
 
  #field {
    display: none;
  }
}
 
@media (max-width: 860px) {
  .site-nav {
    align-items: flex-start;
  }
 
  .nav-links {
    display: none;
  }
 
  .hero,
  .split-section,
  .timeline-card,
  .project-feature,
  .skill-orbit,
  .contact-grid {
    grid-template-columns: 1fr;
  }
 
  .hero {
    gap: 28px;
    padding-top: 112px;
  }
 
  .headline {
    font-size: clamp(4rem, 19vw, 7.2rem);
  }
 
  .timeline-card,
  .project-feature {
    padding: 20px;
  }
 
  .project-stack {
    align-content: flex-start;
  }
}
 
@media (max-width: 560px) {
  .section-shell {
    width: min(100% - 24px, 1120px);
    padding: 84px 0;
  }
 
  .site-nav {
    padding: 0.9rem 1.25rem;
  }
 
  .brand span:last-child {
    display: none;
  }
 
  .hero {
    min-height: auto;
    padding-top: 120px;
  }
 
  .headline {
    font-size: clamp(3.5rem, 20vw, 5.8rem);
  }
 
  .metric-grid {
    grid-template-columns: 1fr;
  }
 
  .metric-grid div,
  .skill-orbit div {
    min-height: auto;
  }
 
  .contact-links a {
    display: grid;
  }
 
  .site-footer {
    flex-direction: column;
  }
}
 
/* ── Enhanced Animations & Interactions ───────────────────────────────────── */
 
/* Reveal variants — staggered direction */
.reveal-left {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.reveal-right {
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.reveal-left.is-visible,
.reveal-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}
 
/* Hero headline letter animation */
.headline span {
  display: block;
  overflow: hidden;
}
.headline-word {
  display: inline-block;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1), opacity 600ms ease;
}
.headline-word.is-visible {
  transform: translateY(0);
  opacity: 1;
}
 
/* Magnetic button effect */
.primary-btn,
.ghost-btn {
  position: relative;
  overflow: hidden;
  transition: transform 200ms ease, border-color 180ms ease, background 180ms ease, box-shadow 200ms ease;
}
 
.primary-btn::after,
.ghost-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  opacity: 0;
  transition: opacity 200ms ease;
}
 
.primary-btn:hover::after,
.ghost-btn:hover::after {
  opacity: 1;
}
 
.primary-btn:hover {
  box-shadow: 0 8px 24px rgba(25, 24, 20, 0.15);
}
 
.ghost-btn:hover {
  box-shadow: 0 4px 16px rgba(25, 24, 20, 0.08);
}
 
/* Timeline card enhanced hover */
.timeline-card {
  position: relative;
  transition: transform 250ms cubic-bezier(0.16, 1, 0.3, 1), border-color 200ms ease, background 200ms ease;
}
 
.timeline-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}
 
.timeline-card:hover::before {
  transform: scaleY(1);
}
 
.timeline-card:hover {
  transform: translateX(6px);
  border-color: var(--line-strong);
}
 
/* Project feature enhanced hover */
.project-feature {
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), border-color 200ms ease, box-shadow 300ms ease;
}
 
.project-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(25, 24, 20, 0.08);
  border-color: var(--line-strong);
}
 
.project-stack span {
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease, transform 200ms ease;
}
 
.project-stack span:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
  transform: translateY(-2px);
}
 
/* Skill orbit enhanced */
.skill-orbit div {
  transition: background 250ms ease, transform 250ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 250ms ease;
  position: relative;
  overflow: hidden;
}
 
.skill-orbit div::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(46, 122, 90, 0.06));
  opacity: 0;
  transition: opacity 250ms ease;
}
 
.skill-orbit div:hover {
  background: var(--surface);
  transform: scale(1.02);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  z-index: 1;
}
 
.skill-orbit div:hover::after {
  opacity: 1;
}
 
/* Contact links enhanced */
.contact-links a {
  position: relative;
  overflow: hidden;
  transition: background 200ms ease, padding-left 200ms ease;
}
 
.contact-links a::before {
  content: '→';
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.8rem;
  transition: left 200ms ease, opacity 200ms ease;
  opacity: 0;
}
 
.contact-links a:hover {
  background: var(--surface);
  padding-left: 36px;
}
 
.contact-links a:hover::before {
  left: 16px;
  opacity: 1;
}
 
/* Brand mark hover */
.brand-mark {
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease, transform 300ms ease;
}
 
.brand:hover .brand-mark {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
  transform: rotate(360deg);
}
 
/* Section label number hover */
.section-label span {
  transition: color 200ms ease, transform 200ms ease;
  display: inline-block;
}
 
.section-label:hover span {
  color: var(--accent);
  transform: translateX(4px);
}
 
/* Metric grid counter */
.metric-grid strong {
  transition: color 300ms ease;
}
 
.metric-grid div:hover strong {
  color: var(--accent);
}
 
/* Nav link underline slide */
.nav-links a {
  position: relative;
}
 
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text);
  transition: width 200ms ease;
}
 
.nav-links a:hover::after,
.nav-links a.is-active::after {
  width: 100%;
}
 
/* Smooth cursor */
.custom-cursor {
  position: fixed;
  width: 6px;
  height: 6px;
  background: var(--text);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 80ms ease, width 200ms ease, height 200ms ease, opacity 200ms ease;
  mix-blend-mode: multiply;
}
 
.custom-cursor.hovering {
  width: 32px;
  height: 32px;
  opacity: 0.15;
}
 
@media (hover: none) {
  .custom-cursor { display: none; }
}
 
/* Kicker text animation */
.kicker {
  overflow: hidden;
}
 
.kicker-inner {
  display: inline-block;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1) 0.1s, opacity 500ms ease 0.1s;
}
 
.kicker-inner.is-visible {
  transform: translateY(0);
  opacity: 1;
}
 
/* Signal panel pulse */
.status span {
  animation: pulse 2.5s ease-in-out infinite;
}
 
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}
 
/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 1px;
  background: var(--accent);
  z-index: 100;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 100ms linear;
}
 
