:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #0a0a0a;
  background: #fff;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 18rem;
  background: #fff;
}

button, input, textarea { font: inherit; }

.page-shell {
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: clamp(1.5rem, 4vw, 4rem);
}

.intro {
  width: min(100%, 48rem);
  margin: auto 0;
  padding: clamp(4rem, 13vh, 9rem) 0;
}

.eyebrow, footer {
  font-size: .69rem;
  font-weight: 650;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.eyebrow { margin: 0 0 2rem; color: #555; }

.identity {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  margin-bottom: 2.75rem;
}

.portrait {
  display: block;
  width: clamp(5rem, 18vw, 10rem);
  height: auto;
  flex-shrink: 0;
  border-radius: .35rem;
}

.identity-text { min-width: 0; }

h1 {
  margin: 0;
  font-size: clamp(2.35rem, 8vw, 5.2rem);
  font-weight: 520;
  letter-spacing: -.065em;
  line-height: .95;
}

.statement {
  max-width: 24rem;
  margin: 1.25rem 0 0;
  color: #3f3f3f;
  font-size: clamp(.95rem, 2vw, 1.1rem);
  line-height: 1.55;
}

.contact-toggle, .submit-button {
  border: 1px solid #0a0a0a;
  border-radius: 0;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.contact-toggle {
  display: inline-flex;
  justify-content: space-between;
  gap: 3rem;
  min-width: 15rem;
  padding: .8rem 1rem;
  color: #fff;
  background: #0a0a0a;
  font-size: .78rem;
}

.contact-toggle:hover, .submit-button:hover { color: #0a0a0a; background: #fff; }

.contact-panel {
  max-width: 32rem;
  overflow: hidden;
  max-height: 50rem;
  opacity: 1;
  padding-top: 3rem;
  transition: max-height 320ms ease, opacity 240ms ease, padding 320ms ease;
}

.contact-panel[hidden] { display: block; max-height: 0; opacity: 0; padding-top: 0; visibility: hidden; }

.field { margin-bottom: 1.4rem; }

label {
  display: block;
  margin-bottom: .45rem;
  font-size: .72rem;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}

input, textarea {
  width: 100%;
  padding: .72rem 0;
  border: 0;
  border-bottom: 1px solid #8a8a8a;
  border-radius: 0;
  color: #0a0a0a;
  background: transparent;
  line-height: 1.45;
}

textarea { resize: vertical; min-height: 8rem; }

:focus-visible { outline: 2px solid #0a0a0a; outline-offset: 4px; }
input:focus-visible, textarea:focus-visible { outline-offset: 2px; border-color: #0a0a0a; }

.field-error, .form-status {
  min-height: 1.2em;
  margin: .4rem 0 0;
  font-size: .78rem;
  line-height: 1.45;
}

.field-error { color: #8b1515; }
.submit-button { padding: .8rem 1rem; color: #0a0a0a; background: #fff; font-size: .78rem; }
.submit-button:disabled { cursor: wait; opacity: .55; }

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

footer {
  display: flex;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid #d5d5d5;
  color: #555;
}

@media (max-width: 38rem) {
  .page-shell { padding: 1.35rem; }
  .intro { padding: 4.5rem 0; }
  h1 { font-size: clamp(1.7rem, 7vw, 3.5rem); }
  .statement { margin-top: .8rem; font-size: .9rem; }
  .contact-toggle { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
