:root {
  color-scheme: dark;
  --paper: #050505;
  --ink: #f3f0e8;
  --muted: #aaa79f;
  --line: rgba(243, 240, 232, 0.22);
  --accent: #dc6a47;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

::selection { background: var(--accent); color: #050505; }
main { min-height: 100vh; }

.portrait-panel {
  position: fixed;
  inset: 0 0 0 50%;
  overflow: hidden;
  background: #101010;
}

.portrait-panel img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: grayscale(1) contrast(1.04);
}

.content-panel {
  width: 50%;
  min-height: 100vh;
  padding: clamp(42px, 6vw, 88px) clamp(34px, 6vw, 88px) 36px;
}

.site-header { padding-bottom: 82px; }

.logo {
  display: block;
  width: 205px;
  height: 308px;
  object-fit: contain;
  object-position: center;
  margin: -54px 0 28px -14px;
  filter: invert(1) brightness(1.18);
}

.eyebrow,
.section-heading h2,
.footer-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 700;
}

.eyebrow { color: var(--accent); margin-bottom: 18px; }

h1 {
  margin: 0;
  max-width: 620px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(54px, 6vw, 92px);
  font-weight: 400;
  line-height: 0.91;
  letter-spacing: -0.055em;
}

.intro {
  max-width: 520px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 18px;
}

section { margin-bottom: 76px; }

.section-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 25px;
}

.section-heading h2 { white-space: nowrap; font-size: 14px; }
.section-heading span { height: 1px; flex: 1; background: var(--line); }

section > p {
  margin: 0 0 18px;
  max-width: 690px;
  color: var(--muted);
}

.audio-list { display: grid; gap: 14px; }

.audio-card {
  position: relative;
  height: 126px;
  overflow: hidden;
  background: #161616;
}

.soundcloud-player {
  display: block;
  width: 100%;
  height: 126px;
  border: 0;
  background: #161616;
  filter: invert(1) hue-rotate(180deg);
}

.audio-cover {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 1;
  display: block;
  width: 126px;
  height: 126px;
  object-fit: cover;
  pointer-events: none;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #161616;
}

.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.load-more {
  margin-top: 24px;
  padding: 0 0 7px;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.load-more span { display: inline-block; margin-left: 8px; transition: transform 180ms ease; }
.load-more:hover span { transform: translate(3px, 3px); }
.load-more:focus-visible,
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.skills-list { border-top: 1px solid var(--line); }
.skills-list p { margin: 0; padding: 19px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.skills-list strong { color: var(--ink); }

footer { padding-top: 4px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; padding-bottom: 54px; }
.footer-label { display: block; margin-bottom: 9px; color: var(--accent); }
.footer-grid p { margin: 0; }
.footer-grid a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 4px; overflow-wrap: anywhere; }
.copyright { display: flex; justify-content: space-between; gap: 20px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

@media (max-width: 1100px) {
  .portrait-panel { left: 56%; }
  .content-panel { width: 56%; padding-inline: 42px; }
  h1 { font-size: 68px; }
  .project-grid { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  .portrait-panel { position: relative; inset: auto; width: 100%; height: min(78vh, 760px); }
  .portrait-panel img { object-position: center 47%; }
  .content-panel { width: 100%; padding: 42px 24px 28px; }
  .site-header { padding-bottom: 66px; }
  .logo { width: 176px; height: 264px; margin: -40px 0 22px -12px; }
  h1 { font-size: clamp(52px, 16vw, 78px); }
  section { margin-bottom: 64px; }
  .project-grid { grid-template-columns: 1fr; }
  .audio-card,
  .soundcloud-player { height: 128px; }
  .audio-cover { width: 128px; height: 128px; }
}

@media (max-width: 520px) {
  .portrait-panel { height: 64vh; min-height: 480px; }
  .content-panel { padding-inline: 20px; }
  .intro { font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .copyright { flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; }
}
