@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap');

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

:root {
  --bg: #ffffff;
  --bg-subtle: #f7f7f5;
  --text: #111111;
  --text-2: #555555;
  --text-3: #999999;
  --accent: #0a66c2;
  --accent-hover: #004182;
  --border: rgba(0,0,0,0.08);
  --border-mid: rgba(0,0,0,0.12);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --max-w: 700px;
  --max-w-wide: 1080px;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 60px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 40px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.nav-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.2px;
  justify-self: start;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--text); }
.nav-li {
  justify-self: end;
  display: flex;
  align-items: center;
  opacity: 0.85;
  transition: opacity 0.15s, transform 0.15s;
}
.nav-li:hover { opacity: 1; transform: scale(1.05); }

/* ── Page wrapper ── */
.page { padding-top: 60px; }

/* ── Container ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.container-wide {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 40px;
}

/* ── Hero ── */
.hero {
  padding: 96px 0 80px;
  border-bottom: 1px solid var(--border);
}
.hero-full {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  border-bottom: none;
  padding: 80px 0;
  text-align: center;
  position: relative;
}
.hero-full .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-full .hero-sub { max-width: 640px; }
.hero-full .hero-actions { justify-content: center; }

/* ── Work title section ── */
.work-intro {
  padding: 72px 40px 56px;
  background: #f0f0ee;
  text-align: center;
}
.work-intro-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.work-intro-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
}
.work-intro-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 400;
  letter-spacing: -0.8px;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 12px;
}
.work-intro-desc {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 640px;
}
.hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -1.5px;
  color: var(--text);
  margin-bottom: 28px;
}
.hero-title em {
  font-style: italic;
  color: var(--accent);
}
.hero-sub {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-2);
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: 40px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.15s, color 0.15s;
}
.hero-cta:hover { border-color: var(--accent); }
.hero-cta svg { transition: transform 0.15s; }
.hero-cta:hover svg { transform: translateX(3px); }

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 11px 24px;
  background: var(--text);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
  letter-spacing: -0.1px;
}
.btn-primary:hover { background: #333; transform: translateY(-1px); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 11px 24px;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid var(--border-mid);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
  letter-spacing: -0.1px;
}
.btn-secondary:hover { border-color: rgba(0,0,0,0.3); background: var(--bg-subtle); transform: translateY(-1px); }

.li-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.15s;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}
.li-cta:hover { color: var(--accent); border-bottom-color: var(--accent); }

.scroll-cta {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  text-decoration: none;
  letter-spacing: 0.3px;
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  transition: color 0.15s;
}
.scroll-cta svg { animation: bounce 2s ease infinite; }
.scroll-cta:hover { color: var(--text); }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* ── Section ── */
.section { padding: 72px 0; }
.section + .section { border-top: 1px solid var(--border); }
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 40px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.8px;
  margin-bottom: 20px;
}
.section-body {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.75;
}
.section-body p + p { margin-top: 16px; }

/* ── Project cards (home) ── */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.project-card {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 0 28px;
  align-items: start;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
  cursor: pointer;
}
.project-card:first-child { border-top: 1px solid var(--border); }
.project-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  letter-spacing: 1px;
  padding-top: 4px;
  font-variant-numeric: tabular-nums;
}
.project-info { display: flex; flex-direction: column; gap: 8px; }
.project-name {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.3px;
  line-height: 1.2;
}
.project-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.5;
  max-width: 460px;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.project-tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-3);
  background: var(--bg-subtle);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
}
.project-arrow {
  padding-top: 4px;
  color: var(--text-3);
  transition: transform 0.15s, color 0.15s;
  flex-shrink: 0;
}
.project-card:hover .project-arrow {
  transform: translateX(4px);
  color: var(--accent);
}
.project-card:hover .project-name { color: var(--accent); }

/* ── Work card grid ── */
.work-section {
  padding: 0 40px 80px;
  background: #f0f0ee;
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}
.work-card {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.1);
}
.work-card-photo {
  background: #f0f0ee;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 60px 24px 0;
}
.work-card-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 32px 28px;
  gap: 14px;
  background: #f7f7f5;
  flex: 1;
}
.work-card-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2px;
}
.work-card-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
  line-height: 1.2;
}
.work-card-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.7;
}
.work-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.work-tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-3);
  background: #fff;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
}
.work-card-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-top: 2px;
}
.work-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.work-meta-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-3);
}
.work-meta-value {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.4;
}
.work-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  margin-top: 4px;
  transition: gap 0.15s;
}
.work-link:hover { gap: 9px; }

@media (max-width: 960px) {
  .work-section { padding: 48px 24px 64px; }
  .work-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .work-section { padding: 32px 16px 56px; }
  .work-card-photo { min-height: 200px; }
  .work-card-info { padding: 24px 20px; }
}

/* ── About page ── */
.about-hero { padding: 80px 0 56px; border-bottom: 1px solid var(--border); }
.about-name {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 12px;
}
.about-title {
  font-size: 16px;
  color: var(--text-2);
  font-weight: 400;
  margin-bottom: 32px;
}
.about-intro {
  font-size: 18px;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 780px;
}

.principles { display: flex; flex-direction: column; gap: 32px; margin-top: 40px; }
.principle {}
.principle-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.principle-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.2px;
}
.principle-body {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
}

/* ── Projects page ── */
.projects-hero { padding: 80px 0 56px; border-bottom: 1px solid var(--border); }
.projects-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.projects-sub { font-size: 16px; color: var(--text-2); line-height: 1.65; max-width: 520px; }

.project-detail {
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}
.project-detail-header { margin-bottom: 48px; }
.project-index {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
}
.project-detail-title {
  font-family: var(--font-serif);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 400;
  letter-spacing: -0.8px;
  line-height: 1.15;
  margin-bottom: 16px;
}
.project-detail-sub {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.65;
  max-width: 540px;
}

.project-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 48px;
}
.project-meta-item {
  background: var(--bg);
  padding: 20px 24px;
}
.project-meta-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 6px;
}
.project-meta-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}

.project-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 40px 0;
}
.stat {}
.stat-num {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.45;
  max-width: 120px;
}

.project-body { display: flex; flex-direction: column; gap: 32px; }
.project-body-block {}
.project-body-heading {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text);
  margin-bottom: 10px;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--text-3);
}
.project-body-text {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.75;
}
.project-body-text p + p { margin-top: 12px; }

.project-link-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.15s;
}
.project-link-cta:hover { border-color: var(--accent); }
.project-link-cta svg { transition: transform 0.15s; }
.project-link-cta:hover svg { transform: translateX(3px); }

/* ── Footer ── */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.footer-link {
  font-size: 12px;
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-link:hover { color: var(--text); }

/* ── Responsive ── */
@media (max-width: 640px) {
  .nav { padding: 0 20px; }
  .container { padding: 0 20px; }
  .container-wide { padding: 0 20px; }
  .hero { padding: 64px 0 56px; }
  .project-card { grid-template-columns: 36px 1fr 20px; gap: 0 16px; }
  .project-meta { grid-template-columns: 1fr 1fr; }
  .project-stats { grid-template-columns: 1fr 1fr; }
  .hero-full { flex-direction: column; justify-content: center; }
  .scroll-cta { position: static; transform: none; left: auto; bottom: auto; margin-top: 40px; }
}
