:root {
  --bg:        #EFEAE0;
  --bg-elev:   #F6F2EA;
  --ink:       #16140F;
  --ink-soft:  #2E2A22;
  --muted:     #756E62;
  --rule:      rgba(22,20,15,0.1);
  --accent:    #6B3A1E;
  --accent-ink:#FFFFFF;
  --scrim:     rgba(22,20,15,0.18);
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans:  'IBM Plex Sans', system-ui, sans-serif;
  --mono:  'IBM Plex Mono', ui-monospace, monospace;
  --page-x: clamp(28px, 6vw, 96px);
  --page-y: clamp(22px, 3vh, 36px);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg); }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--accent-ink); }

.page {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: var(--page-y) var(--page-x);
}

.hero { align-self: center; max-width: 1280px; }

.name {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(72px, 12vw, 188px);
  line-height: 0.94;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
  white-space: nowrap;
}

.role {
  margin-top: 22px;
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: 0.005em;
  color: var(--ink-soft);
}

.role .dot {
  display: inline-block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--muted);
  vertical-align: middle;
  margin: 0 12px 3px;
}

.cta-row {
  margin-top: 44px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cta {
  appearance: none; border: 0; cursor: pointer;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  background: var(--ink);
  color: var(--bg-elev);
  padding: 14px 22px 14px 24px;
  border-radius: 999px;
  display: inline-flex; align-items: center; gap: 10px;
  transition: background .18s, transform .18s, box-shadow .2s;
}
.cta:hover {
  background: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(22,20,15,.16);
}
.cta:active { transform: translateY(0); }
.cta .arrow { transition: transform .2s; display: inline-flex; }
.cta:hover .arrow { transform: translate(2px,-2px); }

.cta-meta {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
  display: inline-flex; align-items: center;
}

.pulse {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4F8A4F;
  margin-right: 8px;
  box-shadow: 0 0 0 0 rgba(79,138,79,0.45);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0   rgba(79,138,79,0.45); }
  70%  { box-shadow: 0 0 0 9px rgba(79,138,79,0); }
  100% { box-shadow: 0 0 0 0   rgba(79,138,79,0); }
}

.footer {
  margin-top: 60px;
  display: flex; align-items: baseline; gap: 28px; flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
  border-top: 1px solid var(--rule);
  padding-top: 22px;
}
.footer a {
  color: var(--ink-soft); text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
.footer a:hover { color: var(--accent); border-color: var(--accent); }
.footer .spacer { flex: 1; min-width: 16px; }
.foot-item { display: inline-flex; align-items: baseline; gap: 8px; }
.foot-item .label { color: var(--muted); }
.foot-item .value { color: var(--ink-soft); }

/* Contact sheet */
.scrim {
  position: fixed; inset: 0;
  background: var(--scrim);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none;
  transition: opacity .35s ease;
  z-index: 20;
}
.scrim.open { opacity: 1; pointer-events: auto; }

.sheet {
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  width: min(520px, 100vw);
  background: var(--bg-elev);
  box-shadow: -20px 0 60px rgba(22,20,15,0.18);
  transform: translateX(100%);
  transition: transform .42s cubic-bezier(.22,.7,.2,1);
  z-index: 21;
  display: flex; flex-direction: column;
  padding: 36px 40px 28px;
  overflow-y: auto;
}
.sheet.open { transform: translateX(0); }

.sheet-head {
  display: flex; align-items: baseline;
  margin-bottom: 8px;
}
.sheet-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 44px; line-height: 1;
  margin: 0; color: var(--ink);
}
.sheet-close {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  margin-left: auto;
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-soft);
  transition: background .15s, color .15s, transform .15s;
  flex-shrink: 0;
}
.sheet-close:hover { background: rgba(22,20,15,.06); color: var(--ink); transform: rotate(90deg); }

.sheet-sub {
  font-size: 14px; color: var(--muted);
  margin: 6px 0 28px; max-width: 36ch;
}

.form { display: grid; gap: 22px; }

.field { display: grid; gap: 6px; }
.field label {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted);
}
.field .opt { text-transform: none; letter-spacing: 0; opacity: .6; }
.field input, .field textarea {
  font: inherit; font-family: var(--sans); font-size: 15px;
  color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--ink);
  padding: 6px 2px 8px;
  outline: none; resize: none; width: 100%;
  transition: border-color .18s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .55; }
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field textarea { min-height: 110px; line-height: 1.5; padding-top: 8px; }

/* honeypot — bots fill this, humans never see it */
.gotcha {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.sheet-actions {
  margin-top: 24px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}

.send {
  appearance: none; border: 0; cursor: pointer;
  background: var(--ink); color: var(--bg-elev);
  padding: 13px 22px; border-radius: 999px;
  font-family: var(--sans); font-weight: 500; font-size: 14.5px;
  display: inline-flex; align-items: center; gap: 10px;
  transition: background .18s, transform .18s;
}
.send:hover { background: var(--accent); transform: translateY(-1px); }
.send:disabled { opacity: .45; cursor: default; transform: none; }

.send-note {
  font-family: var(--mono); font-size: 11.5px;
  letter-spacing: 0.04em; color: var(--muted);
}

.form-error {
  font-family: var(--mono); font-size: 12px;
  color: #a63220; letter-spacing: 0.02em;
  display: none;
}
.form-error.show { display: block; }

.sheet-foot {
  margin-top: 14px; padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono); font-size: 11.5px;
  letter-spacing: 0.04em; color: var(--muted);
  display: flex; gap: 18px; flex-wrap: wrap;
}
.sheet-foot a { color: inherit; text-decoration: none; transition: color .15s; }
.sheet-foot a:hover { color: var(--ink); }

/* Success toast */
.toast {
  position: fixed;
  left: 50%; bottom: 32px;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: var(--bg-elev);
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  padding: 12px 22px;
  border-radius: 999px;
  box-shadow: 0 8px 30px rgba(22,20,15,0.24);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
  z-index: 30;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 720px) {
  :root { --page-y: 28px; }
  .name { font-size: 16vw; white-space: normal; line-height: 0.96; }
  .role { font-size: 17px; margin-top: 18px; }
  .role .dot { margin: 0 8px 3px; }
  .cta-row { margin-top: 32px; gap: 14px; }
  .cta-meta { font-size: 11.5px; }
  .footer { gap: 12px 18px; padding-top: 18px; }
  .footer .spacer { display: none; }
  .foot-item { gap: 6px; }
  .sheet { width: 100vw; padding: 28px 24px 20px; }
  .sheet-title { font-size: 36px; }
  .sheet-foot { gap: 10px; }
}
