:root {
  color-scheme: light;
  --ink: #080808;
  --paper: #ffffff;
  --muted: #5a5a55;
  --rule: #080808;
  --accent: #f37021;
  --cool: #dfe8ee;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
  line-height: 1;
}

body::before {
  position: absolute;
  top: 0;
  left: clamp(16px, 4.6vw, 72px);
  z-index: 0;
  width: clamp(6px, 0.75vw, 12px);
  height: 100%;
  min-height: 100vh;
  background: var(--accent);
  content: "";
}

.page-shell {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.74fr);
  gap: clamp(24px, 4.6vw, 72px);
  padding: clamp(24px, 4vw, 64px);
  padding-left: clamp(48px, 8.2vw, 132px);
}

.identity {
  display: grid;
  min-height: calc(100vh - clamp(48px, 10vw, 160px));
  grid-template-rows: auto 1fr auto;
}

.portrait {
  display: block;
  width: clamp(104px, 11vw, 164px);
  height: clamp(104px, 11vw, 164px);
  margin-top: clamp(14px, 1.8vw, 24px);
  border: 2px solid var(--rule);
  background: var(--paper);
  object-fit: cover;
  object-position: 50% 27%;
}

.identity-copy {
  align-self: center;
  padding: clamp(40px, 5vw, 72px) 0;
}

.email-line,
.bio {
  font-size: clamp(0.95rem, 1.35vw, 1.2rem);
  font-weight: 300;
  letter-spacing: 0;
  text-transform: lowercase;
}

h1 {
  max-width: 11ch;
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(4rem, 9.8vw, 10.5rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.82;
}

.role {
  max-width: 24ch;
  margin: clamp(26px, 3.8vw, 52px) 0 0;
  color: var(--ink);
  font-size: clamp(1.425rem, 2.025vw, 1.8rem);
  font-weight: 300;
  letter-spacing: 0;
  text-transform: none;
}

.email-line {
  margin: 0.7rem 0 0;
  color: var(--muted);
  line-height: 1.35;
}

.email-user::before {
  content: "m" "e";
}

.email-at::before {
  content: "@";
}

.email-dot::before {
  content: ".";
}

.bio {
  display: grid;
  min-height: clamp(96px, 12vh, 144px);
  align-items: end;
  padding: clamp(18px, 2.4vw, 32px) 0;
  color: var(--muted);
  line-height: 1.35;
}

.bio p {
  max-width: 34ch;
  margin: 0;
}

.system {
  position: relative;
  --cutaway-size: min(38%, 220px);
  min-height: calc(100vh - clamp(48px, 10vw, 160px));
  overflow: hidden;
  border-top: 2px solid var(--rule);
  background: var(--cool);
}

.system::after {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: var(--cutaway-size);
  height: var(--cutaway-size);
  border-top: 2px solid var(--rule);
  border-left: 2px solid var(--rule);
  background: var(--paper);
  pointer-events: none;
  content: "";
}

.system-bottom-rule {
  position: absolute;
  right: var(--cutaway-size);
  bottom: 0;
  left: 0;
  z-index: 2;
  height: 2px;
  background: var(--rule);
  pointer-events: none;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
}

@media (max-width: 900px) {
  body::before {
    left: 0;
    width: 10px;
  }

  .page-shell {
    min-height: 100svh;
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 24px;
    padding-left: 34px;
  }

  .identity {
    min-height: min(64svh, 620px);
  }

  .identity-copy {
    padding: 44px 0;
  }

  h1 {
    max-width: 10ch;
    font-size: clamp(3.4rem, 18vw, 7.5rem);
  }

  .system {
    min-height: min(42svh, 440px);
  }
}

@media (max-width: 460px) {
  .portrait {
    width: 96px;
    height: 96px;
  }

  h1 {
    font-size: clamp(3rem, 17vw, 4.75rem);
  }

  .email-line,
  .bio {
    font-size: 0.95rem;
  }

  .role {
    font-size: 1.425rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  canvas {
    opacity: 0.9;
  }
}
