:root {
  --maroon: #5b1719;
  --maroon-deep: #2f0d0e;
  --olive: #586b24;
  --olive-deep: #1c260d;
  --leaf: #9aa84d;
  --saffron: #e97317;
  --vermilion: #9f1822;
  --skin-warm: #d99a73;
  --cream: #f7efe2;
  --charcoal: #171511;
  --muted: rgba(247, 239, 226, 0.72);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--cream);
  background:
    linear-gradient(112deg, rgba(23, 21, 17, 0.96) 0%, rgba(47, 13, 14, 0.9) 43%, rgba(28, 38, 13, 0.88) 100%),
    image-set(url("avatar-2-optimized.webp") type("image/webp"), url("avatar-2-optimized.jpg") type("image/jpeg")) center / cover fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 18% 20%, rgba(233, 115, 23, 0.18), transparent 28%),
    radial-gradient(circle at 80% 82%, rgba(154, 168, 77, 0.16), transparent 30%);
  mix-blend-mode: screen;
}

.page-shell {
  position: relative;
  height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4.2vw, 58px);
  overflow: hidden;
}

.hero {
  width: min(1180px, 100%);
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(260px, 0.96fr);
  align-items: center;
  gap: clamp(18px, 5vw, 72px);
}

.hero-copy {
  max-width: 640px;
}

.domain {
  width: fit-content;
  margin: 0 0 clamp(14px, 3vh, 28px);
  padding: 9px 13px 10px;
  border: 1px solid rgba(247, 239, 226, 0.2);
  border-left: 4px solid var(--saffron);
  border-radius: 6px;
  color: rgba(247, 239, 226, 0.88);
  background: rgba(23, 21, 17, 0.28);
  font-size: clamp(0.86rem, 1.7vw, 1rem);
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  max-width: 10ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.35rem, min(10vw, 14vh), 9.5rem);
  line-height: 0.88;
  letter-spacing: 0;
  text-wrap: balance;
}

.status {
  margin: clamp(14px, 3vh, 28px) 0 0;
  color: var(--skin-warm);
  font-size: clamp(1.45rem, 3.2vw, 2.55rem);
  font-weight: 800;
  line-height: 1.05;
}

.intro {
  max-width: 580px;
  margin: clamp(12px, 2.6vh, 22px) 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.1vw, 1.2rem);
  line-height: 1.7;
}

.signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(16px, 3.6vh, 34px);
}

.signal-row span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid rgba(247, 239, 226, 0.18);
  border-radius: 6px;
  color: rgba(247, 239, 226, 0.82);
  background: rgba(247, 239, 226, 0.06);
  font-size: 0.9rem;
  font-weight: 700;
}

.portrait-wrap {
  position: relative;
  margin: 0;
  justify-self: end;
  width: min(100%, 470px);
  max-height: calc(100svh - clamp(32px, 8.4vw, 116px));
  aspect-ratio: 4 / 5;
}

.portrait-wrap::before,
.portrait-wrap::after {
  content: "";
  position: absolute;
  border-radius: 8px;
}

.portrait-wrap::before {
  inset: 20px -18px -18px 22px;
  border: 1px solid rgba(233, 115, 23, 0.52);
  background: linear-gradient(145deg, rgba(233, 115, 23, 0.22), rgba(88, 107, 36, 0.18));
}

.portrait-wrap::after {
  inset: -16px 22px 24px -16px;
  border: 1px solid rgba(154, 168, 77, 0.38);
}

.portrait-wrap picture,
.portrait {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
}

.portrait {
  object-fit: cover;
  object-position: 52% 24%;
  border: 1px solid rgba(247, 239, 226, 0.22);
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}

@media (max-width: 860px) {
  body {
    background:
      linear-gradient(180deg, rgba(23, 21, 17, 0.96) 0%, rgba(47, 13, 14, 0.92) 56%, rgba(28, 38, 13, 0.9) 100%),
      image-set(url("avatar-2-optimized.webp") type("image/webp"), url("avatar-2-optimized.jpg") type("image/jpeg")) center / cover fixed;
  }

  .page-shell {
    padding: 16px;
  }

  .hero {
    grid-template-columns: minmax(0, 1.02fr) minmax(210px, 0.98fr);
    gap: 18px;
  }

  .hero-copy {
    max-width: none;
  }

  .domain {
    margin-bottom: 14px;
  }

  h1 {
    max-width: 8ch;
    font-size: clamp(2.95rem, min(10vw, 15vh), 5.2rem);
  }

  .status {
    font-size: clamp(1.25rem, min(4vw, 5vh), 2rem);
  }

  .intro {
    font-size: clamp(0.88rem, 2.6vw, 1rem);
    line-height: 1.48;
  }

  .portrait-wrap {
    justify-self: end;
    width: min(100%, 330px);
    max-height: calc(100svh - 32px);
    aspect-ratio: 1 / 1.18;
  }

  .portrait-wrap::before {
    inset: 12px -8px -10px 12px;
  }

  .portrait-wrap::after {
    inset: -10px 12px 18px -10px;
  }
}

@media (max-width: 620px) {
  .page-shell {
    padding: clamp(12px, 4vw, 18px);
  }

  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(170px, 36svh) minmax(0, 1fr);
    align-content: center;
    align-items: center;
    gap: clamp(12px, 2.4svh, 20px);
  }

  .hero-copy {
    display: flex;
    min-height: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .domain {
    margin-inline: auto;
    margin-bottom: clamp(9px, 1.6svh, 14px);
    padding: 7px 10px 8px;
    font-size: clamp(0.72rem, 3vw, 0.82rem);
  }

  h1 {
    max-width: 8.4ch;
    font-size: clamp(2.55rem, min(13.5vw, 9svh), 4.6rem);
    line-height: 0.9;
  }

  .status {
    margin-top: clamp(9px, 1.6svh, 13px);
    font-size: clamp(1.02rem, 4.8vw, 1.55rem);
  }

  .intro {
    max-width: 34ch;
    margin-top: clamp(9px, 1.7svh, 14px);
    font-size: clamp(0.78rem, 3.35vw, 0.94rem);
    line-height: 1.45;
  }

  .portrait-wrap {
    order: -1;
    justify-self: center;
    width: min(64vw, 250px);
    max-height: 36svh;
    aspect-ratio: 1 / 1.08;
  }

  .portrait {
    object-position: 52% 18%;
  }

  .portrait-wrap::before,
  .portrait-wrap::after {
    display: block;
  }

  .portrait-wrap::before {
    inset: 8px -7px -8px 10px;
  }

  .portrait-wrap::after {
    inset: -7px 10px 11px -7px;
  }

  .signal-row {
    width: min(100%, 340px);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: clamp(10px, 2svh, 14px);
  }

  .signal-row span {
    min-width: 0;
    justify-content: center;
    text-align: center;
    min-height: 30px;
    padding: 6px 5px;
    font-size: clamp(0.62rem, 2.55vw, 0.74rem);
    line-height: 1.15;
  }
}

@media (max-width: 360px) {
  .hero {
    grid-template-rows: minmax(142px, 31svh) minmax(0, 1fr);
  }

  .portrait-wrap {
    width: min(58vw, 205px);
    max-height: 31svh;
  }

  .signal-row {
    grid-template-columns: 1fr;
  }

  .signal-row span {
    min-height: 26px;
  }
}

@media (max-height: 560px) {
  .domain {
    margin-bottom: 10px;
  }

  .status,
  .intro,
  .signal-row {
    margin-top: 10px;
  }

  .signal-row span {
    min-height: 30px;
    padding-block: 5px;
  }
}