:root {
  --bg: #000;
  --ink: #ece7e1;
  --muted: #8f8880;
  --faint: #5a554f;
  --line: rgb(255 255 255 / 0.14);
  --display: "Fraunces", Georgia, serif;
  --body: "Inter", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 14px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

/* ---- hero ---- */

.hero { position: relative; height: 100svh; min-height: 520px; overflow: hidden; }
/* Same size as test.html, centered left to right and anchored to the bottom edge. The
   art runs off its own bottom edge, so the bottom ~10% sits below the fold and the
   shirt fades into the page instead of ending in a hard line. */
.sweep {
  position: absolute; left: 50%; bottom: 0;
  width: min(130vw, 108svh, 1150px);
  translate: -50% 10%;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 90%);
  mask-image: linear-gradient(to bottom, #000 78%, transparent 90%);
}
.sweep canvas { display: block; width: 100%; height: 100%; }

.intro {
  position: absolute; z-index: 2;
  left: var(--gutter); top: 50%; translate: 0 -50%;
}
h1 { font: 500 22px/1.2 var(--display); letter-spacing: -0.01em; }
.open {
  margin-top: 12px; background: none; border: 0; cursor: pointer;
  font-size: 12px; color: var(--muted);
  border-bottom: 1px solid var(--faint); padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.open:hover { color: var(--ink); border-color: var(--ink); }

/* LinkedIn, BUILD and Pure marks under the name (official white files, in icons/). */
.links { display: flex; align-items: center; gap: 16px; margin-top: 12px; }
.icon { display: inline-flex; opacity: 0.6; transition: opacity 0.2s; }
.icon:hover, .icon:focus-visible { opacity: 1; }
.icon img { display: block; height: 18px; width: auto; }
.icon img[src$="pure.png"] { height: 20px; }

/* ---- contact form ---- */

.contact {
  margin: auto; margin-left: var(--gutter);
  width: min(360px, 100% - 2 * var(--gutter)); max-height: calc(100svh - 32px);
  background: #0b0a09; color: var(--ink);
  border: 1px solid var(--line); border-radius: 6px;
  padding: 22px 22px 18px;
}
.contact::backdrop { background: rgb(0 0 0 / 0.45); }
.contact h2 { font: 500 16px/1.3 var(--display); margin-bottom: 14px; }
.contact label { display: block; font-size: 11px; letter-spacing: 0.04em; color: var(--muted); }
.contact label + label { margin-top: 12px; }
.contact input, .contact textarea {
  display: block; width: 100%; margin-top: 4px;
  background: transparent; border: 1px solid var(--line); border-radius: 4px;
  padding: 8px 10px; font-size: 14px; letter-spacing: 0; color: var(--ink);
  resize: vertical;
}
.contact input:focus, .contact textarea:focus { outline: none; border-color: var(--muted); }
.contact .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile { margin-top: 12px; }
.turnstile:empty { margin-top: 0; }
.status { min-height: 1.6em; margin-top: 8px; font-size: 12px; color: var(--muted); }
.status[data-tone="error"] { color: #e08a6e; }
.actions { display: flex; gap: 10px; align-items: center; margin-top: 6px; }
.send {
  background: var(--ink); color: #000; border: 0; border-radius: 4px;
  padding: 7px 16px; font-size: 13px; font-weight: 500; cursor: pointer;
}
.send:disabled { opacity: 0.5; cursor: default; }
.close { background: none; border: 0; color: var(--muted); font-size: 12px; cursor: pointer; padding: 7px 4px; }
.close:hover { color: var(--ink); }

/* ---- portrait screens: the name sits above his head ---- */

@media (max-width: 860px) and (orientation: portrait) {
  /* Fills the space above his hairline (about 78% of the stage height up from the
     bottom of the screen) and centers the name in it. */
  .intro {
    top: 0; bottom: calc(0.78 * min(130vw, 108svh, 1150px));
    left: var(--gutter); right: var(--gutter); translate: none;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
  }
  .contact { margin: auto; margin-top: 16px; }
}
