:root {
  --bg: #08090c;
  --bg-soft: #101218;
  --surface: #161922;
  --line: rgba(243, 239, 230, 0.1);
  --text: #f3efe6;
  --muted: #9b968c;
  --accent: #f0b27a;
  --accent-2: #8fd3c7;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius: 22px;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Manrope, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul,
ol {
  list-style: none;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--accent);
  color: #1a140e;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  z-index: 20;
}

.skip-link:focus {
  top: 1rem;
}

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 480px at 10% -10%, rgba(240, 178, 122, 0.16), transparent 55%),
    radial-gradient(700px 420px at 100% 0%, rgba(143, 211, 199, 0.12), transparent 50%),
    radial-gradient(600px 400px at 50% 100%, rgba(240, 178, 122, 0.06), transparent 60%);
  z-index: -1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: calc(var(--max) + 3rem);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  background: rgba(8, 9, 12, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
}

.logo {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.desktop-nav {
  display: flex;
  gap: 1.6rem;
  margin-left: auto;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--text);
}

.nav-cta {
  border: 1px solid var(--line);
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.nav-cta:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 12px;
  cursor: pointer;
  margin-left: auto;
}

.menu-toggle span {
  display: block;
  height: 1.5px;
  width: 16px;
  margin: 5px auto;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.open span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

.menu-toggle.open span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

.mobile-nav {
  display: none;
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
  min-width: 0;
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 3rem;
  align-items: center;
  min-height: calc(100vh - 80px);
  padding: 4rem 0 5rem;
}

.hero-copy,
.project-card,
.skill-group {
  min-width: 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1rem;
}

h1,
h2,
h3 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.85rem, 7.2vw, 5.8rem);
  margin-bottom: 1.25rem;
  overflow-wrap: break-word;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  overflow-wrap: break-word;
}

.lede,
.section-copy {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 38rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: #1a140e;
}

.btn-ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent-2);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
}

.stats dt {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.6rem;
  color: var(--text);
}

.stats dd {
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.monogram {
  width: 132px;
  height: 132px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 3rem;
  color: #1a140e;
  background:
    radial-gradient(circle at 30% 20%, #fff3e4, transparent 40%),
    linear-gradient(145deg, var(--accent), #c9845a);
  box-shadow: 0 0 0 10px rgba(240, 178, 122, 0.12);
}

.availability {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8fd3c7;
  box-shadow: 0 0 0 6px rgba(143, 211, 199, 0.15);
}

.hero-note {
  color: var(--muted);
  text-align: center;
  font-size: 0.95rem;
}

.hero-links {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 1.4rem;
  font-weight: 600;
}

.hero-links a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
}

.hero-links a:hover {
  border-bottom-color: var(--accent);
}

.section {
  padding: 5.5rem 0 1rem;
}

.section-head {
  margin-bottom: 2.5rem;
}

.section-head h2 {
  margin-bottom: 0.8rem;
}

.timeline {
  display: grid;
  gap: 0;
  border-left: 1px solid var(--line);
  margin-left: 0.4rem;
}

.timeline li {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.5rem;
  padding: 0 0 2.2rem 1.6rem;
  position: relative;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 0.45rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.when {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.timeline h3 {
  font-size: 1.55rem;
  margin-bottom: 0.4rem;
}

.timeline h3 span {
  display: block;
  font-family: Manrope, sans-serif;
  font-size: 0.92rem;
  letter-spacing: 0;
  color: var(--accent-2);
  margin-top: 0.25rem;
}

.timeline p {
  color: var(--muted);
  max-width: 44rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: 140px 1fr;
  min-height: 210px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(240, 178, 122, 0.45);
}

.project-preview {
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, var(--tone-1), var(--tone-2));
}

.theme-food { --tone-1: #ff8a4c; --tone-2: #c2410c; }
.theme-auto { --tone-1: #64748b; --tone-2: #1e293b; }
.theme-fit { --tone-1: #84cc16; --tone-2: #365314; }
.theme-health { --tone-1: #2dd4bf; --tone-2: #115e59; }
.theme-loan { --tone-1: #fbbf24; --tone-2: #92400e; }
.theme-trade { --tone-1: #34d399; --tone-2: #064e3b; }

.phone {
  width: 72px;
  height: 128px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(8, 9, 12, 0.22);
  color: white;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.4rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.project-body {
  padding: 1.3rem 1.4rem 1.2rem;
}

.project-meta {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.project-body h3 {
  font-size: 1.7rem;
  margin-bottom: 0.45rem;
}

.project-body p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tags li,
.skill-group li {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  border: 1px solid var(--line);
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
}

.skill-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.skill-group,
.edu-row article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
}

.skill-group h3,
.edu-row h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.skill-group ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.edu-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-top: 1.2rem;
}

.edu-row p {
  color: var(--muted);
}

.contact {
  text-align: center;
  padding-bottom: 3rem;
}

.contact .section-copy {
  margin: 1rem auto 0;
}

.email-link {
  display: inline-block;
  margin-top: 1.6rem;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.15rem, 4vw, 3rem);
  color: var(--accent);
  overflow-wrap: anywhere;
}

.email-link:hover {
  color: var(--text);
}

.contact-actions {
  justify-content: center;
}

footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn:hover,
  .project-card:hover {
    transform: none;
  }
}
