/* ── Custom Properties ─────────────────────────────── */
:root {
  --bg:          #EDEEE9;
  --surface:     #FFFFFF;
  --photo-bg:    #DADCD5;
  --ink:         #15171A;
  --muted:       #4E525A;
  --hairline:    #C4C6BF;
  --accent:      #2A3BD1;
  --accent-ink:  #FFFFFF;

  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body:    'IBM Plex Sans', system-ui, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, monospace;

  --gutter:      clamp(16px, 4vw, 40px);
  --transition:  .25s cubic-bezier(.4,0,.2,1);
}

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }
img { display: block; max-width: 100%; }
button { font: inherit; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ── Animations ─────────────────────────────────────── */
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
.rise { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
.d1 { animation-delay: .05s; }
.d2 { animation-delay: .15s; }
.d3 { animation-delay: .25s; }
.d4 { animation-delay: .35s; }

/* ── Layout ─────────────────────────────────────────── */
.shell {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.mono {
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}

.dot { color: var(--accent); }

/* ── Top bar ───────────────────────────────────────── */
.topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 28px 0;
  border-bottom: 1px solid var(--ink);
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -.02em;
}

.topnav { display: flex; flex-wrap: wrap; gap: 28px; }

.topnav a,
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}

.back-link svg { transition: transform var(--transition); }
.back-link:hover svg { transform: translateX(-3px); }

/* ── Home hero ─────────────────────────────────────── */
.home-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: 72px 0 56px;
}

.home-hero h1 {
  flex: 1 1 640px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(56px, 9vw, 136px);
  line-height: .92;
  letter-spacing: -.045em;
}

.home-hero p {
  flex: 0 1 300px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
}

.index-bar {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid var(--ink);
}

/* ── Person cards ──────────────────────────────────── */
.people {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 32px;
  padding: 16px 0 72px;
}

.person-card { display: flex; flex-direction: column; gap: 20px; }
.person-card:hover { color: inherit; }

.person-card__photo {
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: var(--photo-bg);
}

.person-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.person-card:hover .person-card__photo img { transform: scale(1.03); }

.person-card__body {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.person-card__text { display: flex; flex-direction: column; gap: 8px; }

.person-card__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(36px, 4vw, 44px);
  line-height: 1;
  letter-spacing: -.03em;
}

.person-card__meta { font-size: 15px; color: var(--muted); }

.go {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.go--solid { background: var(--ink); color: var(--bg); }
.go--line  { width: 52px; height: 52px; border: 1px solid var(--ink); }

.person-card:hover .go--solid { background: var(--accent); color: var(--accent-ink); transform: translate(2px, -2px); }

/* ── Profile hero ──────────────────────────────────── */
.profile-hero {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 5vw, 72px);
  padding: 64px 0;
  align-items: flex-end;
}

.profile-photo {
  flex: 1 1 320px;
  max-width: 460px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--photo-bg);
}

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

.profile-info {
  flex: 999 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.profile-info h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(56px, 8vw, 120px);
  line-height: .92;
  letter-spacing: -.045em;
}

.lede { max-width: 520px; font-size: 19px; color: var(--muted); }

/* ── Contact pills ─────────────────────────────────── */
.contact-strip { display: flex; flex-wrap: wrap; gap: 12px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 14px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.pill:hover,
.pill.is-revealed { background: var(--ink); color: var(--bg); }
.pill.is-revealed:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* ── Sections ──────────────────────────────────────── */
.section {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  padding: 24px 0 72px;
  border-top: 1px solid var(--ink);
}

.section > .label { flex: 1 1 200px; }

.section__body {
  flex: 999 1 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* ── Work rows ─────────────────────────────────────── */
.work-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--hairline);
}

.work-row:hover { color: inherit; }

.work-row__text { display: flex; flex-direction: column; gap: 6px; }

.work-row__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.05;
  letter-spacing: -.03em;
}

.work-row__meta { font-size: 15px; color: var(--muted); }

.work-row:hover .go--line { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* ── Form ──────────────────────────────────────────── */
.form-section { padding-bottom: 88px; }
.form-section .section__body { gap: 32px; }

.form-heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -.035em;
}

.form { display: flex; flex-direction: column; gap: 20px; }

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 20px;
}

.field { display: flex; flex-direction: column; gap: 8px; }

.field input,
.field textarea {
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.field textarea { padding: 14px 16px; line-height: 1.5; resize: vertical; }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.field input::placeholder,
.field textarea::placeholder { color: #767A82; }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 32px;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.btn:hover { background: var(--ink); }
.btn:active { transform: translateY(1px); }

.form-alt { font-size: 14px; color: var(--muted); }
.form-alt a { text-decoration: underline; color: var(--ink); }
.form-alt a:hover { color: var(--accent); }

/* ── Footer ────────────────────────────────────────── */
.footer {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 28px 0 36px;
  border-top: 1px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .04em;
}

.footer a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}

.footer .muted { color: var(--muted); }
