/* ── VARIABLES ── */
/* VSCode-available fonts: Consolas (mono), Georgia (serif), Segoe UI (sans) */
:root {
  --ink: #1a1a1a;
  --ink-muted: #6b6b6b;
  --ink-faint: #b0b0b0;
  --bg: #fafaf8;
  --surface: #ffffff;
  --accent: #2d5a8e;
  --accent-light: #e8f0fa;
  --rule: #e8e6e0;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --mono: Consolas, 'Courier New', monospace;
}

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  padding: 0 max(2rem, calc((100% - 900px) / 2));
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
}

.nav-logo span { color: var(--accent); }

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav ul a {
  font-size: 13px;
  color: var(--ink-muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

nav ul a:hover { color: var(--accent); }

/* ── LAYOUT ── */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

section { padding: 5rem 0; }

/* ── HERO ── */
#hero {
  padding-top: 140px;
  padding-bottom: 5rem;
  border-bottom: 1px solid var(--rule);
}

.hero-tag {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-tag::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--accent);
}

h1 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: normal;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 1.5rem;
  max-width: 720px;
}

h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--ink-muted);
  max-width: 540px;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  font-size: 13px;
  font-family: var(--sans);
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover { background: #1e4570; }

.btn-outline {
  background: transparent;
  color: var(--ink-muted);
  border: 1px solid var(--rule);
}

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

/* ── SECTION HEADERS ── */
.section-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 3rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}

.section-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.08em;
}

h2 {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: normal;
  color: var(--ink);
}

h3 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

/* ── PORTFOLIO ENTRIES ── */
.ref-index {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.portfolio-entry {  padding: 2.5rem 0;
  border-bottom: 1px solid var(--rule);
}

.portfolio-entry:last-child {
  border-bottom: none;
}

.portfolio-entry h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: normal;
  color: var(--ink);
  margin-bottom: 1.5rem;
  line-height: 1.35;
}

.entry-image-slot {
  width: 100%;
  height: 260px;
  background: var(--accent-light);
  border: 1px dashed var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.entry-image-slot p {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
}

.placeholder-text {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-faint);
  padding: 0.75rem 0;
  border-top: 1px dashed var(--rule);
  margin-top: 1rem;
}

/* ── PROJECT SHELL ── */
.project-hero {
  background: var(--surface);
  border: 1px solid var(--rule);
  margin-bottom: 2rem;
  overflow: hidden;
}

.project-image-slot {
  width: 100%;
  height: 320px;
  background: linear-gradient(135deg, #e8f0fa 0%, #f0f4fb 50%, #e8f0fa 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.image-placeholder {
  text-align: center;
}

.image-placeholder .icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  color: var(--accent);
  opacity: 0.4;
}

.image-placeholder p {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
}

.project-meta {
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
}

.meta-item label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.meta-item span {
  font-size: 0.9rem;
  color: var(--ink);
}

/* ── PROCESS STEPS ── */
.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-bottom: 3rem;
}

.process-step {
  background: var(--surface);
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: background 0.2s;
}

.process-step:hover { background: var(--accent-light); }

.step-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.5rem;
}

.step-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  display: block;
  margin-bottom: 0.35rem;
}

.step-desc {
  font-size: 11px;
  color: var(--ink-faint);
}

/* ── ABOUT ── */
.about-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 3rem;
  align-items: start;
}

.avatar-slot {
  width: 200px;
  height: 200px;
  background: var(--accent-light);
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-slot p {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
  text-align: center;
  padding: 1rem;
}

.about-body p {
  color: var(--ink-muted);
  margin-bottom: 1.25rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--rule);
  color: var(--ink-muted);
  background: var(--surface);
  border-radius: 2px;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--rule);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

footer p {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}

footer a {
  color: var(--accent);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── RESPONSIVE ── */
@media (max-width: 680px) {
  .process-steps { grid-template-columns: 1fr 1fr; }
  .work-grid { grid-template-columns: 1fr 1fr; }
  .project-meta { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .avatar-slot { width: 100%; height: 180px; }
  .reflection-grid { grid-template-columns: 1fr; }
  nav ul { display: none; }
}
