:root {
  color-scheme: dark;
  --background: #111112;
  --text: #f3f1ea;
  --muted: #aaa9a5;
  --accent: #ff6b00;
  --line: #ffffff29;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--background);
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 280px;
  background-image: linear-gradient(180deg, #111112b8, #111112ed 65%, #111112 100%), url("photos/bg.jpg");
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
}

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
::selection { background: var(--accent); color: var(--background); }

.page {
  width: min(100% - 112px, 1200px);
  min-height: 100vh;
  min-height: 100svh;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 32px;
  border-bottom: 1px solid var(--line);
}

.wordmark { font-size: 32px; font-weight: 700; letter-spacing: -2px; }
.wordmark span, .accent { color: var(--accent); }
.header-note, .eyebrow, figcaption, .footer-note {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 1.6px;
  line-height: 1.6;
}
.header-note { color: var(--muted); text-align: right; }
main { flex: 1; }

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  align-items: center;
  gap: 64px;
  padding-block: clamp(64px, 9vh, 116px);
}

.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 26px; color: var(--accent); }
.signal { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
h1 { margin: 0; font-size: clamp(46px, 6.5vw, 88px); line-height: 1.02; letter-spacing: -0.065em; font-weight: 600; }
.roles { margin: 27px 0 0; font-size: 14px; line-height: 1.9; }
.roles > span { color: var(--accent); padding-inline: 7px; }
.description { margin: 24px 0 0; color: var(--muted); font-size: 17px; line-height: 1.7; }

.portrait { margin: 0; width: 100%; max-width: 360px; justify-self: end; transform: rotate(3deg); }
.portrait img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border: 1px solid #ffffff24; box-shadow: 0 16px 60px #0005; }
figcaption { display: flex; justify-content: space-between; margin-top: 14px; color: var(--muted); font-size: 9px; }
figcaption > span:last-child { color: var(--accent); font-size: 16px; line-height: 1; }

.contact { display: grid; grid-template-columns: 1fr 2fr; align-items: center; gap: 48px; border-top: 1px solid var(--line); padding-block: 36px 52px; }
h2 { font-size: 24px; line-height: 1.2; letter-spacing: -0.8px; font-weight: 500; margin: 0; }
.contact-heading p { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 10px 0 0; }
.socials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.social-link { display: flex; align-items: center; gap: 16px; padding: 22px; border: 1px solid var(--line); background: #ffffff03; transition: background 180ms ease, border-color 180ms ease; }
.social-link:hover { background: #ff6b000a; border-color: var(--accent); }
.social-icon { width: 24px; height: 24px; flex-shrink: 0; }
.social-text { display: grid; gap: 7px; min-width: 0; overflow-wrap: anywhere; }
.social-name { font-size: 14px; }
.handle { color: var(--muted); font-size: 11px; }
.dm { color: var(--muted); font-size: 10px; margin-left: 3px; }
.arrow { color: var(--accent); margin-left: auto; width: 22px; height: 22px; flex-shrink: 0; }

.footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.6; }
.footer-note { font-size: 9px; text-align: right; }

@media (min-width: 1500px) {
  .intro { padding-block: 120px; }
}

@media (max-width: 1000px) {
  .page { width: calc(100% - 64px); }
  .intro { gap: 36px; }
  .contact { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 640px) {
  .page { width: calc(100% - 40px); }
  .header { padding-block: 22px; }
  .header-note { max-width: 160px; font-size: 8px; letter-spacing: 1px; }
  .intro { grid-template-columns: 1fr; gap: 40px; padding-block: 48px; }
  h1 { font-size: clamp(40px, 10.5vw, 66px); }
  .eyebrow { margin-bottom: 22px; font-size: 9px; }
  .roles { font-size: 12px; margin-top: 23px; }
  .roles > span { padding-inline: 4px; }
  .description { font-size: 16px; margin-top: 20px; }
  .portrait { width: 84%; max-width: 310px; justify-self: center; transform: rotate(2deg); }
  .contact { padding-block: 30px 36px; }
  .socials { grid-template-columns: 1fr; gap: 12px; }
  .social-link { padding: 20px; }
  .footer { align-items: flex-start; flex-direction: column; gap: 8px; }
  .footer-note { text-align: left; font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .social-link { transition: none; }
}
