/* ============================================================
   willsjah.com
   Inter only. 4-size scale. Easlo/Notion-matched.
   Scale: 12 / 16 / 18 / 32 / 48
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg:         #ffffff;
  --bg-card:    #f7f7f5;
  --bg-hover:   #efefed;
  --border:     rgba(0,0,0,0.08);
  --border-mid: rgba(0,0,0,0.16);
  --text-1:     #111111;
  --text-2:     #6b6b6b;
  --text-3:     #aaaaaa;
  --accent:     #2563eb;
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --max-w:      720px;
  --font:       'Inter', system-ui, -apple-system, sans-serif;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-1);
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── LAYOUT ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem 1.5rem 4rem;
}

section { padding: 0; }

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

/* ── LABELS ── */
.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 1.5rem;
}

.section-intro {
  font-size: 16px;
  color: var(--text-2);
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* ── HERO ── */
.hero {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.hero-photo {
  width: 144px;
  height: 144px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-placeholder {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-3);
  position: absolute;
}

.hero-photo img + .photo-placeholder { display: none; }

.hero-text h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 8px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.tagline {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.hero-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.hero-links a:hover {
  border-color: var(--text-1);
  color: var(--text-1);
  background: var(--bg-card);
}

/* ── BIO ── */
.bio p {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.8;
}

/* ── NOW ── */
.now-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.now-list li {
  font-size: 16px;
  color: var(--text-2);
  padding-left: 1rem;
  position: relative;
  line-height: 1.6;
}

.now-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-3);
}

/* ── WORK GRID ── */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.work-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.work-card:hover {
  border-color: var(--border-mid);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-hover);
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-body { padding: 14px 16px 16px; }

.card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 4px;
  line-height: 1.4;
}

.card-sub {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-3);
  line-height: 1.4;
}

.badge {
  display: inline-block;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  background: rgba(37,99,235,0.08);
  color: var(--accent);
  letter-spacing: 0.03em;
}

.see-all {
  display: inline-block;
  margin-top: 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  border-bottom: 1px solid var(--border-mid);
  padding-bottom: 2px;
  transition: color 0.15s, border-color 0.15s;
}

.see-all:hover {
  color: var(--text-1);
  border-color: var(--text-1);
}

/* ── SPEAKING ── */
.talk-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.talk-item {
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.talk-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 6px;
  line-height: 1.4;
}

.talk-desc {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-2);
  line-height: 1.65;
}

.speaking-meta {
  margin-top: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.meta-tag {
  font-size: 13px;
  font-weight: 500;
  padding: 5px 12px;
  border: 1px solid var(--border-mid);
  border-radius: 20px;
  color: var(--text-3);
}

/* ── SPEAKING VENUES ── */
.venue-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 1.5rem;
}

.venue-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.venue-card .card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-hover);
}

.venue-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.venue-card .card-body {
  padding: 12px 14px 14px;
}

.venue-card .card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 3px;
  line-height: 1.35;
}

.venue-card .card-sub {
  font-size: 12px;
  color: var(--text-3);
}

.video-placeholder {
  margin-top: 1.5rem;
  height: 88px;
  border: 1px dashed var(--border-mid);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-placeholder p {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-3);
}

.cta-btn {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-1);
  text-decoration: none;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  transition: background 0.15s, border-color 0.15s;
}

.cta-btn:hover {
  background: var(--bg-card);
  border-color: var(--text-1);
}

/* ── TIMELINE ── */
.timeline {
  display: flex;
  flex-direction: column;
}

.timeline-item {
  display: flex;
  gap: 1.25rem;
}

.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  padding-top: 5px;
}

.tl-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border-mid);
  flex-shrink: 0;
}

.tl-line {
  width: 1px;
  flex: 1;
  background: var(--border);
  margin: 5px 0;
  min-height: 20px;
}

.timeline-content {
  padding-bottom: 2rem;
}

.tl-period {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-3);
  margin-bottom: 2px;
}

.tl-place {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 4px;
  line-height: 1.3;
}

.tl-note {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 10px;
}

.photo-strip {
  display: flex;
  gap: 8px;
}

.photo-thumb {
  width: 120px;
  height: 90px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-hover);
  border: 1px solid var(--border);
}

.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-thumb.life-thumb {
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
}

.photo-thumb.life-thumb:hover {
  opacity: 0.85;
  transform: scale(1.04);
}

/* ── CONTACT ── */
.contact {
  padding: 0.5rem 0;
}

.contact p {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-2);
  margin-bottom: 8px;
}

.contact a {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-1);
  text-decoration: none;
  letter-spacing: -0.02em;
  border-bottom: 2px solid var(--border-mid);
  transition: color 0.15s;
}

.contact a:hover { color: var(--accent); }

footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

footer p {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-3);
}

/* ── MODAL ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-overlay.open { display: flex; }

.modal {
  background: var(--bg);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-lg);
  max-width: 540px;
  width: 100%;
  padding: 2rem;
  position: relative;
  animation: modalIn 0.18s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-3);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 2px 4px;
  transition: color 0.15s;
}

.modal-close:hover { color: var(--text-1); }

.modal-img-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-hover);
  margin-bottom: 1.5rem;
}

.modal-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-img-placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg-hover);
}

/* ── MODAL THUMBNAILS ── */
.modal-thumb-strip {
  display: flex;
  gap: 8px;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.modal-thumb {
  width: 72px;
  height: 48px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  flex-shrink: 0;
  transition: border-color 0.15s, opacity 0.15s;
  opacity: 0.55;
}

.modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-thumb:hover {
  opacity: 0.85;
}

.modal-thumb.active {
  border-color: var(--text-1);
  opacity: 1;
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 6px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.modal-meta {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-3);
  margin-bottom: 14px;
  line-height: 1.5;
}

.modal-body {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-2);
  line-height: 1.8;
}

/* ── PAGE HEADER ── */
.page-header {
  margin-bottom: 3rem;
}

.page-header a.back {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-3);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 2rem;
  transition: color 0.15s;
}

.page-header a.back:hover { color: var(--text-2); }

.page-header h1 {
  font-size: 48px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 10px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.page-header p {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-2);
  line-height: 1.7;
}

/* ── PROJECTS PAGE ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

/* ── LIFE PAGE ── */
.life-chapter {
  margin-bottom: 4rem;
}

.life-chapter-header {
  margin-bottom: 1.5rem;
}

.life-chapter-header .tl-period {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-3);
  margin-bottom: 4px;
}

.life-chapter-header .tl-place {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 10px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.life-story {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.life-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 1.25rem;
}

.life-photo {
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-hover);
  border: 1px solid var(--border);
}

.life-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.life-photo:hover img { transform: scale(1.04); }
.life-photo.no-img { opacity: 0.2; }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .container { padding: 2.5rem 1.25rem 3rem; }
  .hero { flex-direction: column; align-items: center; text-align: center; gap: 1.5rem; }
  .hero-links { justify-content: center; }
  .hero-photo { width: 100px; height: 100px; }
  .hero-text h1 { font-size: 26px; }
  .work-grid, .projects-grid, .venue-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .page-header h1 { font-size: 36px; }
  .contact a { font-size: 22px; }
}

@media (max-width: 400px) {
  .work-grid, .projects-grid { grid-template-columns: 1fr; }
}
