
:root {
  --bg:       #fafafa;
  --bg-alt:   #f0eeeb;
  --surface:  #ffffff;
  --text:     #3a3a3a;
  --text-dim: #7a7a7a;
  --heading:  #1a1a1a;
  --accent:   #5b5ea6;
  --accent2:  #e8475f;
  --border:   rgba(0,0,0,0.08);
  --font:     'Inter', -apple-system, system-ui, sans-serif;
  --font-d:   'Fraunces', Georgia, serif;
  --ease:     0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --wrap:     1060px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--accent2); }
strong { font-weight: 600; color: var(--heading); }

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0 0 6px 6px;
  font-size: 0.85rem;
  z-index: 999;
  transition: top var(--ease);
}
.skip-link:focus { top: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 2rem; }

/* NAV */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2.5rem;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--ease);
}
#nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.06); }
.logo {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--heading);
}
.logo span { color: var(--accent); }
.logo:hover { color: var(--heading); }
#nav ul { display: flex; gap: 2rem; list-style: none; }
#nav ul a {
  color: var(--text-dim);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color var(--ease);
}
#nav ul a:hover { color: var(--accent); }

/* HERO */
#hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 2rem 4rem;
  background: linear-gradient(160deg, #fef5f3 0%, #f3f0ff 50%, #eef6ff 100%);
  position: relative;
}
#hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--border);
}
.hero-content { max-width: 620px; }
.hero-module {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
#hero h1 {
  font-family: var(--font-d);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 700;
  color: var(--heading);
  line-height: 1.15;
  margin-bottom: 1.2rem;
}
#hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.hero-bio {
  font-size: 1.05rem;
  color: var(--text-dim);
  line-height: 1.75;
  margin-bottom: 2.5rem;
}
.btn {
  display: inline-block;
  padding: 0.7rem 1.8rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 6px;
  transition: background var(--ease), transform var(--ease);
}
.btn:hover { background: var(--accent2); color: #fff; transform: translateY(-1px); }

/* SECTION COMMON */
section {
  padding: 3rem 0;
}
#about { background: linear-gradient(135deg, #fdf8f0 0%, #fdf0f4 60%, #f5f0ff 100%); }
.section-num {
  display: block;
  font-family: var(--font-d);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
section h2 {
  font-family: var(--font-d);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 0.4rem;
}
.section-intro {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
}

/* ABOUT */
.about-photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--surface);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-columns {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
  align-items: start;
}
.about-text p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.8;
}
.about-text p:last-of-type { margin-bottom: 0; }
.about-skills {
  margin-top: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.8rem 2rem;
}
.about-skills h3 {
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.skill-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.skill-list li {
  font-size: 0.9rem;
  color: var(--text);
  padding-left: 1.2rem;
  position: relative;
}
.skill-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}

/* PROJECT GRID */
#projects { background: linear-gradient(160deg, #f0f4fd 0%, #f5fafe 50%, #f0fdf6 100%); }
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: 10px;
  border: 1px solid var(--border);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: transform var(--ease), box-shadow var(--ease);
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  color: var(--text);
}
.project-card.featured {
  grid-column: span 2;
}

.card-thumb {
  display: block;
  width: 100%;
  height: 160px;
  transition: opacity var(--ease);
}
.featured .card-thumb { height: 200px; }
.project-card:hover .card-thumb { opacity: 0.9; }

.card-info { padding: 1.25rem 1.4rem 1.4rem; flex: 1; display: flex; flex-direction: column; }
.card-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}
.card-info h3 {
  font-family: var(--font-d);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 0.35rem;
  line-height: 1.3;
}
.featured .card-info h3 { font-size: 1.3rem; }
.card-info p {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.6;
  flex: 1;
}

/* NOTICE */
.notice {
  margin-top: 2rem;
  padding: 0.9rem 1.2rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.6;
}
.notice strong { color: var(--accent); font-weight: 600; }

/* FOOTER */
#contact {
  background: linear-gradient(135deg, #2a2640 0%, #1a1a2e 60%, #16213e 100%);
  color: #ccc;
  padding: 4rem 0 3rem;
  text-align: center;
}
#contact h2 {
  color: #fff;
  margin-bottom: 0.6rem;
}
#contact a { color: #ddd; }
#contact a:hover { color: #fff; }
.footer-sub {
  font-size: 0.85rem;
  color: #888;
  margin-top: 1.5rem;
}
.footer-credit {
  font-size: 0.75rem;
  color: #666;
  margin-top: 1rem;
}
.footer-credit a { color: #888; }

/* RESPONSIVE */
@media (max-width: 900px) {
  #nav { padding: 0.9rem 1.5rem; }
  #hero { min-height: auto; padding: 6rem 1.5rem 3rem; }
  .about-columns { grid-template-columns: 1fr; gap: 2rem; }
  .about-visual { order: -1; }
  .about-photo { width: 150px; height: 150px; }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .project-card.featured { grid-column: span 2; }
}

@media (max-width: 600px) {
  #nav ul { gap: 1.2rem; }
  #nav ul a { font-size: 0.75rem; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card.featured { grid-column: span 1; }
  .featured .card-thumb { height: 160px; }
  section { padding: 3.5rem 0; }
}
