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

:root {
  --cream: #E8DDD4;
  --cream-light: #EEE4DC;
  --cream-card: #F4EDE8;
  --border: #D4C4B8;
  --text: #261008;
  --text-muted: #7A5040;
  --text-faint: #B09080;
  --rust: #A83828;
  --rust-dark: #882010;
  --btn-dark: #3C1810;
  --white: #FFFFFF;
}

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

em {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: #D4806A;
}

/* ── Nav ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
  background: rgba(232, 221, 212, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-name {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--text);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
}

nav ul a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-cv {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  border: 1px solid var(--border);
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
  transition: border-color 0.2s, color 0.2s;
}

.nav-cv:hover { border-color: var(--text-muted); color: var(--text); }

/* ── Bento ── */
.bento-wrap {
  padding: 0.75rem;
}

.bento {
  display: grid;
  grid-template-columns: 340px 1fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 0.75rem;
}

/* ── Card base ── */
.card {
  background: var(--cream-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
}

.card-label {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 0.65rem;
}

/* ── Photo card ── */
.card-photo {
  grid-column: 1;
  grid-row: 1 / 3;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-photo img {
  width: 100%;
  flex: 1;
  object-fit: cover;
  object-position: center top;
  display: block;
  min-height: 0;
  padding: 0.6rem 0.6rem 0;
}

.photo-footer {
  padding: 1rem 1.1rem;
  border-top: 1px solid var(--border);
}

.photo-eyebrow {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.card-photo h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* ── About card ── */
.card-about {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card-bio {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--text);
}

.about-quote {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.75;
  border-left: 2px solid var(--border);
  padding-left: 0.85rem;
  margin: 0.25rem 0;
}

.quote-highlight {
  font-weight: 700;
  color: var(--rust);
}

.card-bio-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.about-stats {
  display: flex;
  gap: 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.mini-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--rust);
  line-height: 1;
  margin-bottom: 0.15rem;
}

.mini-label {
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── Contact card ── */
.card-contact {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.card-contact p {
  font-size: 0.82rem;
  color: var(--text-muted);
  flex: 1;
}

/* ── Venture cards ── */
.card-venture {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card-venture:nth-of-type(1) { grid-column: 2; grid-row: 2; }
.card-venture:nth-of-type(2) { grid-column: 3; grid-row: 2; }

.venture-row {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.venture-row h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1;
}

.badge {
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.card-venture p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.card-venture .tags {
  margin-top: 0;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: auto;
}

.tags span {
  font-size: 0.62rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.18rem 0.5rem;
  border-radius: 100px;
  font-weight: 500;
}

/* ── Experience card ── */
.card-experience {
  grid-column: 1 / -1;
  grid-row: 3;
}

.exp-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0 1.25rem;
}

.exp-item {
  padding: 0.75rem 0 0;
  border-top: 1px solid var(--border);
}

.exp-role {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.2rem;
  line-height: 1.4;
}

.exp-detail {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.exp-logos {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.4rem;
}

.exp-logo-img {
  height: 14px;
  width: auto;
  display: block;
  filter: brightness(0) saturate(100%) invert(27%) sepia(48%) saturate(601%) hue-rotate(328deg) brightness(88%) contrast(96%);
}

.exp-logo-square {
  height: 18px;
  width: 18px;
  object-fit: contain;
}

.exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.35rem;
}

.exp-tags span {
  font-size: 0.62rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.18rem 0.5rem;
  border-radius: 100px;
  font-weight: 500;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  background: var(--btn-dark);
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.75rem;
  border-radius: 100px;
  transition: opacity 0.2s;
  align-self: flex-start;
}

.btn-primary:hover { opacity: 0.85; }

.contact-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}

.btn-icon:hover { border-color: var(--text-muted); color: var(--text); }

.btn-linkedin { color: #0A66C2; border-color: rgba(10,102,194,0.3); }
.btn-linkedin:hover { border-color: #0A66C2; color: #0A66C2; }

.btn-cv {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
  align-self: flex-start;
}

.btn-cv:hover { border-color: var(--text-muted); color: var(--text); }

.enjoy-section {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.enjoy-section .card-label {
  margin-bottom: 0.5rem;
}

.enjoy-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.enjoy-list li {
  font-size: 0.78rem;
  color: var(--text-muted);
  padding-left: 0.75rem;
  position: relative;
}

.enjoy-list li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--rust);
}

.venture-photo-caption {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-faint);
  letter-spacing: 0.04em;
  margin-bottom: -0.25rem;
}

.nav-icon {
  display: inline-flex;
  align-items: center;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-icon:hover { color: var(--text); }

.integrate-preview,
.venture-preview {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin: 0;
}

.venture-preview { margin: 0.35rem 0; }
.integrate-preview { margin: 0.35rem 0; }


.integrate-preview img,
.venture-preview img {
  width: 100%;
  display: block;
  border-radius: 8px;
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 1.1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  background: var(--cream);
  color: var(--text-faint);
  font-size: 0.72rem;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .card-photo { grid-column: 1 / -1; grid-row: auto; height: 360px; flex-direction: row; }
  .card-photo img { width: 260px; flex: none; height: 100%; }
  .photo-footer { padding: 1.5rem; border-top: none; border-left: 1px solid var(--border); display: flex; flex-direction: column; justify-content: flex-end; }
  .card-about, .card-contact { grid-column: auto; grid-row: auto; }
  .card-venture:nth-of-type(1),
  .card-venture:nth-of-type(2) { grid-column: auto; grid-row: auto; }
  .card-experience { grid-column: 1 / -1; grid-row: auto; }
  .exp-grid { grid-template-columns: 1fr 1fr; }
}


@media (max-width: 580px) {
  /* Nav */
  nav { padding: 0.75rem 1rem; overflow: visible; }
  nav ul { display: none; }
  .nav-name { white-space: nowrap; }

  /* Bento */
  .bento-wrap { padding: 0.5rem; }
  .bento { grid-template-columns: 1fr; gap: 0.5rem; }

  /* Cards */
  .card { padding: 1rem; border-radius: 12px; }

  /* Photo card */
  .card-photo { height: 320px; border-radius: 12px; }
  .card-photo img { padding: 0.5rem 0.5rem 0; }
  .photo-footer { padding: 0.85rem 1rem; }
  .card-photo h1 { font-size: 0.95rem; }
  /* Reset photo card to stacked layout */
  .card-photo { flex-direction: column; height: auto; }
  .card-photo img { width: 100%; height: 260px; flex: none; padding: 0.5rem 0.5rem 0; }
  .photo-footer { border-left: none; border-top: 1px solid var(--border); padding: 0.85rem 1rem; }

  /* About */
  .card-bio { font-size: 0.84rem; }
  .about-stats { gap: 1.25rem; }
  .mini-num { font-size: 1.1rem; }

  /* Venture cards */
  .card-venture:nth-of-type(1),
  .card-venture:nth-of-type(2) { grid-column: 1; }

  /* Experience */
  .exp-grid { grid-template-columns: 1fr; }
  .exp-item { padding: 0.65rem 0 0; }

  /* Buttons */
  .btn-primary, .btn-cv { padding: 0.55rem 1rem; }
  .btn-icon { width: 38px; height: 38px; }

  /* Footer */
  footer { flex-direction: column; gap: 0.3rem; text-align: center; padding: 1rem; }
}
