/* ─────────────────────────────────────────────
   Tokens
───────────────────────────────────────────── */
:root {
  --bg:       #ffffff;
  --surface:  #f5f5f5;
  --border:   #e8e8e8;
  --text:     #0f0f0f;
  --text-2:   #525252;
  --text-3:   #999999;
  --accent:   #2563eb;
  --green:    #16a34a;
  --green-bg: #f0fdf4;
  --green-bd: #bbf7d0;
  --sans:     'Instrument Sans', system-ui, sans-serif;
  --mono:     'Geist Mono', 'Fira Mono', monospace;
  --r:        8px;
  --r-lg:     14px;
}

/* ─────────────────────────────────────────────
   Reset
───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

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

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

/* ─────────────────────────────────────────────
   Layout
───────────────────────────────────────────── */
.site {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─────────────────────────────────────────────
   Animations
───────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.anim { opacity: 0; }
.anim.a0 { animation: fadeUp .5s ease 0.00s forwards; }
.anim.a1 { animation: fadeUp .5s ease 0.08s forwards; }
.anim.a2 { animation: fadeUp .5s ease 0.18s forwards; }
.anim.a3 { animation: fadeUp .5s ease 0.28s forwards; }
.anim.a4 { animation: fadeUp .5s ease 0.38s forwards; }
.anim.a5 { animation: fadeUp .5s ease 0.48s forwards; }
.anim.a6 { animation: fadeUp .5s ease 0.58s forwards; }

/* ─────────────────────────────────────────────
   Nav
───────────────────────────────────────────── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0 0;
  margin-bottom: 64px;
}

.nav-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-links { display: flex; gap: 1px; list-style: none; }

.nav-links a {
  font-size: 13px;
  color: var(--text-3);
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 6px;
  transition: background .12s, color .12s;
}
.nav-links a:hover  { background: var(--surface); color: var(--text-2); }
.nav-links a.active { background: var(--surface); color: var(--text);   }

/* ─────────────────────────────────────────────
   Divider
───────────────────────────────────────────── */
hr { border: none; border-top: 1px solid var(--border); margin: 52px 0; }

/* ─────────────────────────────────────────────
   Section
───────────────────────────────────────────── */
.section { margin-bottom: 52px; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-title {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

.section-link {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}
.section-link:hover { text-decoration: underline; }

/* ─────────────────────────────────────────────
   Page header  (interior pages: About, Work…)
───────────────────────────────────────────── */
.page-header {
  margin-bottom: 52px;
  padding-bottom: 52px;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.12;
  color: var(--text);
  margin-bottom: 12px;
}

.page-header p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 500px;
}

/* ─────────────────────────────────────────────
   Buttons
───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: var(--r);
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: opacity .12s, background .12s, color .12s;
}
.btn-primary  { background: var(--text); color: #fff; }
.btn-primary:hover { opacity: .78; }
.btn-secondary { background: var(--bg); color: var(--text-2); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--surface); color: var(--text); }

/* ─────────────────────────────────────────────
   Hero  (Home — tallest heading on the site)
───────────────────────────────────────────── */
.hero { margin-bottom: 64px; }

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 185px;
  gap: 40px;
  align-items: start;
}

.hero-left { min-width: 0; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px 12px 4px 9px;
  font-size: 11.5px;
  color: var(--text-2);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 2px #dcfce7;
  flex-shrink: 0;
}

.hero h1 {
  font-size: clamp(1.9rem, 5.5vw, 2.8rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 16px;
}

.hero-bio {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-2);
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/*
  Hero portrait photo — tall rectangle, no border, soft shadow.
  object-position top so the face is always visible when cropped.
*/
.hero-photo {
  width: 185px;
  height: 248px;
  border-radius: var(--r-lg);
  object-fit: cover;
  object-position: center top;
  box-shadow: 0 8px 32px rgba(0,0,0,.10), 0 2px 8px rgba(0,0,0,.06);
  flex-shrink: 0;
  display: block;
}

/* Fallback when no photo file yet */
.hero-avatar {
  width: 185px;
  height: 248px;
  border-radius: var(--r-lg);
  background: linear-gradient(145deg, #1e40af 0%, #6d28d9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hero-avatar-initials {
  font-size: 2.4rem;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  letter-spacing: -0.05em;
  user-select: none;
}

/* ─────────────────────────────────────────────
   Stats
───────────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px 18px;
}

.stat-number {
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 5px;
}

.stat-label { font-size: 12px; color: var(--text-3); }

/* ─────────────────────────────────────────────
   Story text
───────────────────────────────────────────── */
.story-text {
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--text-2);
}
.story-text p + p { margin-top: 16px; }
.story-text strong { color: var(--text); font-weight: 600; }

/* ─────────────────────────────────────────────
   Editorial photos  (About page)

  Three components — use them separately, no grid wrapper:

  .photo-full   — one image spanning the full column width
  .photo-pair   — two images side by side
  .photo-single — one image at ~60% width, left-aligned
───────────────────────────────────────────── */

/* Full-width image — good for landscape / wide shots */
.photo-full {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: var(--r-lg);
  display: block;
}

/* Two images side by side */
.photo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.photo-pair img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--r);
  display: block;
}

/* Caption — sits below any photo */
.photo-caption {
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--text-3);
  font-family: var(--mono);
  letter-spacing: 0;
}

/* ─────────────────────────────────────────────
   Timeline
───────────────────────────────────────────── */
.timeline { display: flex; flex-direction: column; position: relative; }

.timeline::before {
  content: '';
  position: absolute;
  left: 72px; top: 7px; bottom: 7px;
  width: 1px;
  background: var(--border);
}

.tl-item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 0 24px;
  padding-bottom: 28px;
  position: relative;
}
.tl-item:last-child { padding-bottom: 0; }

.tl-year {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
  text-align: right;
  padding-top: 2px;
  padding-right: 10px;
}

.tl-dot {
  position: absolute;
  left: 68px; top: 5px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #d4d4d4;
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px #d4d4d4;
}
.tl-dot.active {
  background: var(--accent);
  box-shadow: 0 0 0 3px #dbeafe;
}

.tl-content { padding-left: 10px; }

.tl-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 3px;
}
.tl-desc { font-size: 13px; color: var(--text-2); line-height: 1.6; }

/* ─────────────────────────────────────────────
   Work cards (Home preview)
───────────────────────────────────────────── */
.work-grid { display: flex; flex-direction: column; gap: 4px; }

.work-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
  text-decoration: none;
  color: inherit;
  transition: background .12s, border-color .12s;
}
.work-card:hover { background: var(--surface); border-color: #ddd; }

.work-left { display: flex; align-items: center; gap: 12px; min-width: 0; }

.work-icon {
  width: 34px; height: 34px;
  border-radius: 7px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.work-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 1px;
}
.work-desc { font-size: 12.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.work-arrow { font-size: 14px; color: var(--text-3); flex-shrink: 0; transition: color .12s, transform .12s; }
.work-card:hover .work-arrow { color: var(--text-2); transform: translateX(2px); }

/* ─────────────────────────────────────────────
   Company blocks (Work page)
───────────────────────────────────────────── */
.company-block {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color .12s;
}
.company-block:last-child { margin-bottom: 0; }
.company-block:hover { border-color: #ddd; }

.company-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 22px 0;
}
.company-identity { display: flex; align-items: center; gap: 14px; }
.company-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.company-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 3px;
}
.company-url {
  font-size: 11.5px;
  color: var(--text-3);
  font-family: var(--mono);
  text-decoration: none;
  transition: color .12s;
}
.company-url:hover { color: var(--accent); }

.company-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  color: var(--green);
  background: var(--green-bg);
  border: 1px solid var(--green-bd);
  border-radius: 100px;
  padding: 4px 11px;
  white-space: nowrap;
  flex-shrink: 0;
}

.company-body { padding: 16px 22px 22px; }
.company-tagline {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.company-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-2);
  margin-bottom: 12px;
}
.company-desc:last-of-type { margin-bottom: 16px; }
.company-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 3px 11px;
}

/* ─────────────────────────────────────────────
   Post list (Home — compact)
───────────────────────────────────────────── */
.post-list {
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}
.post-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 16px;
  text-decoration: none;
  color: inherit;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: background .12s;
}
.post-item:last-child { border-bottom: none; }
.post-item:hover { background: var(--surface); }
.post-title { font-size: 14px; font-weight: 500; color: var(--text); letter-spacing: -0.01em; }
.post-date {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────
   Post list (Blog index — full)
───────────────────────────────────────────── */
.post-list-full {
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}
.post-item-full {
  display: block;
  padding: 18px 20px;
  text-decoration: none;
  color: inherit;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: background .12s;
}
.post-item-full:last-child { border-bottom: none; }
.post-item-full:hover { background: var(--surface); }
.post-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 5px;
}
.post-item-full .post-title { font-size: 15px; font-weight: 600; }
.post-excerpt { font-size: 13px; color: var(--text-2); line-height: 1.6; }

/* ─────────────────────────────────────────────
   Single blog post
───────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 32px;
}
.breadcrumb a { color: var(--text-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--text-2); }

.post-header { margin-bottom: 40px; }
.post-header h1 {
  font-size: clamp(1.6rem, 4.5vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 12px;
}
.post-meta-line { font-family: var(--mono); font-size: 11.5px; color: var(--text-3); }

.post-cover {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: var(--r-lg);
  display: block;
  margin-bottom: 44px;
  background: var(--surface);
}

.post-body { font-size: 16px; line-height: 1.88; color: var(--text-2); }
.post-body p { margin-bottom: 22px; }
.post-body p:last-child { margin-bottom: 0; }
.post-body h2 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 40px 0 12px;
}
.post-body strong { color: var(--text); font-weight: 600; }
.post-body blockquote {
  border-left: 2px solid var(--border);
  padding: 2px 0 2px 20px;
  margin: 30px 0;
  font-style: italic;
}
.post-body a { color: var(--accent); text-decoration: none; }
.post-body a:hover { text-decoration: underline; }

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.post-nav a { font-size: 13px; font-weight: 500; color: var(--text-2); text-decoration: none; transition: color .12s; }
.post-nav a:hover { color: var(--text); }

/* ─────────────────────────────────────────────
   Home contact box
───────────────────────────────────────────── */
.contact-home {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 24px;
}
.contact-home p { font-size: 14px; color: var(--text-2); line-height: 1.7; margin-bottom: 16px; }
.contact-home-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.contact-email-inline {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
  border-bottom: 1.5px solid var(--border);
  padding-bottom: 1px;
  transition: border-color .12s, color .12s;
}
.contact-email-inline:hover { color: var(--accent); border-color: var(--accent); }

/* ─────────────────────────────────────────────
   Contact page
───────────────────────────────────────────── */
.contact-box {
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px;
  margin-bottom: 8px;
}
.contact-box p { font-size: 14px; color: var(--text-2); line-height: 1.75; margin-bottom: 18px; }
.contact-email {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
  border-bottom: 1.5px solid var(--border);
  padding-bottom: 1px;
  transition: border-color .12s, color .12s;
}
.contact-email:hover { color: var(--accent); border-color: var(--accent); }

/* Contact form */
.contact-form { border: 1px solid var(--border); border-radius: var(--r); padding: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-group:last-of-type { margin-bottom: 0; }
.form-group label { font-size: 12px; font-weight: 600; color: var(--text-2); }
.form-group input,
.form-group textarea {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 9px 12px;
  outline: none;
  width: 100%;
  resize: vertical;
  line-height: 1.5;
  transition: border-color .12s;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-3); }
.form-group input:focus,
.form-group textarea:focus { border-color: #b0b0b0; }
.form-submit-row { margin-top: 20px; }
.form-success {
  background: var(--green-bg);
  border: 1px solid var(--green-bd);
  border-radius: var(--r);
  padding: 14px 18px;
  font-size: 14px;
  color: var(--green);
  margin-bottom: 16px;
}
.form-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--r);
  padding: 14px 18px;
  font-size: 14px;
  color: #dc2626;
  margin-bottom: 16px;
}

/* Social grid */
.social-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.social-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  text-decoration: none;
  color: inherit;
  transition: background .12s, border-color .12s;
}
.social-card:hover { background: var(--surface); border-color: #ddd; }
.social-card-platform { font-size: 13px; font-weight: 600; color: var(--text); }
.social-card-handle { font-size: 12px; color: var(--text-3); font-family: var(--mono); }

/* ─────────────────────────────────────────────
   CTA strip
───────────────────────────────────────────── */
.cta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
}
.cta-strip p { font-size: 14px; color: var(--text-2); line-height: 1.6; }
.cta-strip strong { color: var(--text); font-weight: 600; }

/* ─────────────────────────────────────────────
   Footer
───────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 48px;
  margin-top: 24px;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}
.footer-copy { font-size: 12px; color: var(--text-3); }
.social-links { display: flex; gap: 1px; list-style: none; }
.social-links a {
  font-size: 12px;
  color: var(--text-3);
  text-decoration: none;
  padding: 4px 9px;
  border-radius: 6px;
  transition: background .12s, color .12s;
}
.social-links a:hover { background: var(--surface); color: var(--text-2); }
.footer-ai {
  font-size: 11.5px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ─────────────────────────────────────────────
   Responsive
───────────────────────────────────────────── */
@media (max-width: 580px) {
  nav { margin-bottom: 44px; }

  /* Hero stacks vertically — photo above text, smaller */
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hero-photo,
  .hero-avatar {
    width: 100%;
    height: 260px;
    order: -1; /* photo first */
    border-radius: var(--r-lg);
  }
  .hero h1 { font-size: 1.9rem; }

  /* Stats 2-col */
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stats-row .stat-card:last-child { grid-column: span 2; }

  /* Editorial photos */
  .photo-full  { height: 240px; }
  .photo-pair  { grid-template-columns: 1fr; }
  .photo-pair img { height: 220px; }

  /* Page headers */
  .page-header { padding-bottom: 36px; margin-bottom: 36px; }
  .page-header h1 { font-size: 1.75rem; }

  /* Company blocks */
  .company-top { flex-direction: column; gap: 12px; }
  .company-status { align-self: flex-start; }

  /* Timeline */
  .timeline::before { left: 58px; }
  .tl-dot { left: 54px; }
  .tl-item { grid-template-columns: 66px 1fr; }

  /* Post */
  .post-cover { height: 210px; }

  /* Contact */
  .form-row { grid-template-columns: 1fr; }
  .social-grid { grid-template-columns: 1fr 1fr; }

  /* Footer */
  .footer-top { flex-direction: column; align-items: flex-start; }

  /* CTA */
  .cta-strip { flex-direction: column; align-items: flex-start; }
}
