/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background:
    radial-gradient(ellipse at 10% 10%, #c8dfc0 0%, transparent 50%),
    radial-gradient(ellipse at 80% 5%,  #b8d8ed 0%, transparent 45%),
    radial-gradient(ellipse at 5%  80%, #d4c9b8 0%, transparent 45%),
    radial-gradient(ellipse at 90% 75%, #c2cfe8 0%, transparent 45%),
    radial-gradient(ellipse at 55% 90%, #f0c8bc 0%, transparent 40%),
    radial-gradient(ellipse at 40% 40%, #e8ede4 0%, transparent 55%),
    #eef2ec;
  background-attachment: fixed;
  color: #2a2a2a;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ── Back button ── */
.back-btn {
  position: fixed;
  top: 16px;
  left: 20px;
  font-size: 12px;
  letter-spacing: 1px;
  color: #7d8a7f;
  text-decoration: none;
  z-index: 100;
  transition: color 0.15s;
}
.back-btn:hover { color: #111; }

/* ── Shell ── */
.wrap {
  max-width: 940px;
  margin: 0 auto;
  padding: 0 28px 100px;
}

/* ── Header ── */
.masthead {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 32px;
  align-items: center;
  padding: 92px 0 44px;
}

.masthead-photo {
  width: 132px;
  height: 158px;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(255,255,255,0.5);
  box-shadow: 0 8px 28px rgba(0,0,0,0.10);
}
.masthead-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: #7d8a7f;
  margin-bottom: 10px;
}

.masthead h1 {
  font-size: clamp(34px, 5.2vw, 52px);
  font-weight: 700;
  letter-spacing: -1.6px;
  line-height: 1.02;
  margin-bottom: 12px;
}

.masthead-role {
  font-size: 15px;
  color: #4a544c;
  max-width: 46ch;
  margin-bottom: 22px;
}

/* ── Action buttons ── */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid rgba(0,0,0,0.14);
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #2a2a2a;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.85);
}

.btn-primary {
  background: #2a2a2a;
  color: #f3f6f2;
  border-color: #2a2a2a;
}
.btn-primary:hover {
  background: #111;
  color: #fff;
}

/* ── Sections ── */
.section { padding: 40px 0 8px; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(0,0,0,0.12);
  padding-top: 18px;
  margin-bottom: 26px;
}

.section-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: #2a2a2a;
}

.section-note {
  font-size: 12px;
  color: #7d8a7f;
}
.section-note a { color: #4a544c; }

/* ── Work grid ── */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.52);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0,0,0,0.09);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(0,0,0,0.11);
  border-color: rgba(0,0,0,0.18);
}

/* Thumbnail: image if present, gradient tile as fallback */
.card-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.card-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb-aumm     { background: linear-gradient(135deg, #d9e4f5, #c3b8e8); }
.thumb-fontsy   { background: linear-gradient(135deg, #f6e3d0, #e8b9a4); }
.thumb-goodfood { background: linear-gradient(135deg, #d8ecc9, #b6d6a0); }
.thumb-wolit    { background: linear-gradient(135deg, #cfe6e8, #a8ccd8); }
.thumb-focus    { background: linear-gradient(135deg, #f3d9e6, #d9b8e0); }
.thumb-percentl { background: linear-gradient(135deg, #e2e6f2, #b9c2de); }
.thumb-wato     { background: linear-gradient(135deg, #f5e2b8, #e5c07a); }
.thumb-airbnb   { background: linear-gradient(135deg, #f7d9d2, #e8a99a); }

.card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-meta {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #7d8a7f;
  margin-bottom: 7px;
}

.card-title {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.4px;
  margin-bottom: 7px;
}

.card-desc {
  font-size: 13.5px;
  color: #4a544c;
  line-height: 1.65;
  margin-bottom: 14px;
  flex: 1;
}

.card-link {
  font-size: 12px;
  font-weight: 500;
  color: #2a2a2a;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card:hover .card-link { text-decoration: underline; }

/* Cards with more than one destination can't be a single <a> */
.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.card-links a {
  font-size: 12px;
  font-weight: 500;
  color: #2a2a2a;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid rgba(0,0,0,0.22);
  padding-bottom: 1px;
  transition: border-color 0.15s;
}
.card-links a:hover { border-bottom-color: #2a2a2a; }

/* ── Tags ── */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 14px;
}

.tag {
  font-size: 10.5px;
  letter-spacing: 0.3px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.13);
  background: rgba(255,255,255,0.5);
  color: #4a544c;
  white-space: nowrap;
}

.tag-dark {
  background: #2a2a2a;
  border-color: #2a2a2a;
  color: #f3f6f2;
}

/* ── Experience list ── */
.exp-list { list-style: none; }

.exp-item {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 22px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.exp-item:last-child { border-bottom: none; }

.exp-when {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: #7d8a7f;
  padding-top: 3px;
}

.exp-role {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.2px;
  margin-bottom: 2px;
}

.exp-where {
  font-size: 12.5px;
  color: #7d8a7f;
  margin-bottom: 7px;
}

.exp-detail {
  font-size: 13.5px;
  color: #4a544c;
  line-height: 1.68;
}

/* ── Stat row ──
   Four independent scalars, no shared scale — stat tiles, not a chart.
   Numbers wear primary ink, labels muted; the star is the only accent. */
/* ── Photo strip ──
   Self-removes if the image files aren't present (see script in work.html). */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.photo-strip img {
  width: 100%;
  /* Source photos are landscape (~3:2) — a 4:3 tile keeps most of the frame */
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.09);
  display: block;
  transition: transform 0.25s;
}
.photo-strip img:hover { transform: scale(1.02); }

.stat-caption {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #7d8a7f;
  margin-bottom: 9px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(0,0,0,0.10);
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}

.stat-row-3 { grid-template-columns: repeat(3, 1fr); }

.stat {
  background: rgba(255,255,255,0.58);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 20px 14px;
  text-align: center;
}

.stat-num {
  display: block;
  font-size: 31px;
  font-weight: 600;
  letter-spacing: -1.2px;
  line-height: 1.05;
  color: #2a2a2a;
}
.stat-num .star {
  color: #c88a5e;
  font-size: 20px;
  letter-spacing: 0;
}

.stat-label {
  display: block;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #7d8a7f;
  margin-top: 7px;
}

/* ── Testimonials ── */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.quote {
  background: rgba(255,255,255,0.52);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0,0,0,0.09);
  border-radius: 10px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
}

.quote-mark {
  font-size: 34px;
  line-height: 0.8;
  color: #b7c4b9;
  margin-bottom: 8px;
}

.quote-stars {
  font-size: 12px;
  letter-spacing: 2.5px;
  color: #c88a5e;
  margin-bottom: 11px;
}

.quote-text {
  font-size: 14px;
  line-height: 1.7;
  color: #2a2a2a;
  flex: 1;
  margin-bottom: 14px;
}

.quote-attr {
  font-size: 12px;
  color: #7d8a7f;
}
.quote-attr strong {
  color: #4a544c;
  font-weight: 600;
}

/* Obvious placeholder styling — must not be mistaken for a real quote */
.quote-placeholder {
  border-style: dashed;
  border-color: rgba(0,0,0,0.22);
  background: rgba(255,255,255,0.28);
}
.quote-placeholder .quote-text {
  color: #8a8a8a;
  font-style: italic;
}

/* ── Skills row ── */
.skills-block { margin-bottom: 22px; }

.skills-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #7d8a7f;
  margin-bottom: 9px;
}

/* ── Education ── */
.edu-item { padding: 12px 0; }
.edu-item + .edu-item { border-top: 1px solid rgba(0,0,0,0.08); }
.edu-degree { font-size: 15px; font-weight: 600; }
.edu-school { font-size: 12.5px; color: #7d8a7f; }

/* ── Contact footer ── */
.contact {
  margin-top: 52px;
  border-top: 1px solid rgba(0,0,0,0.12);
  padding-top: 34px;
  text-align: center;
}

.contact h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.8px;
  margin-bottom: 8px;
}

.contact p {
  font-size: 14px;
  color: #4a544c;
  margin-bottom: 20px;
}

.contact .actions { justify-content: center; }

.colophon {
  margin-top: 40px;
  font-size: 11px;
  color: #98a49a;
  text-align: center;
}
.colophon a { color: #7d8a7f; }

/* ── Responsive ── */
@media (max-width: 760px) {
  .wrap { padding: 0 20px 72px; }

  .masthead {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 76px 0 32px;
  }
  .masthead-photo { width: 112px; height: 134px; }

  .work-grid,
  .quote-grid { grid-template-columns: 1fr; }

  .stat-row { grid-template-columns: repeat(2, 1fr); }
  /* 3-up would leave an orphan cell if halved — keep it 3 across, just smaller */
  .stat-row-3 { grid-template-columns: repeat(3, 1fr); }
  .stat { padding: 16px 8px; }
  .stat-num { font-size: 25px; }
  .stat-label { font-size: 8.5px; letter-spacing: 1.1px; }

  .exp-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .exp-when { padding-top: 0; }
}
