:root {
  color-scheme: dark;
  --ink: #09110f;
  --ink-soft: #111b18;
  --panel: rgba(18, 29, 25, 0.86);
  --panel-deep: rgba(7, 15, 13, 0.94);
  --ivory: #f5eddc;
  --ivory-soft: #cfc6b5;
  --green: #b5d76f;
  --green-bright: #d7f28d;
  --copper: #c98255;
  --line: rgba(215, 242, 141, 0.18);
  --line-soft: rgba(245, 237, 220, 0.1);
  --shadow: 0 2rem 6rem rgba(0, 0, 0, 0.46);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--ink);
  color: var(--ivory);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 20rem;
  background: var(--ink);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 18%, rgba(181, 215, 111, 0.13), transparent 31rem),
    radial-gradient(circle at 8% 82%, rgba(201, 130, 85, 0.1), transparent 28rem),
    linear-gradient(145deg, #0d1815 0%, var(--ink) 54%, #050a09 100%);
  color: var(--ivory);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.46;
  background-image:
    linear-gradient(var(--line-soft) 0.0625rem, transparent 0.0625rem),
    linear-gradient(90deg, var(--line-soft) 0.0625rem, transparent 0.0625rem);
  background-size: 5.5rem 5.5rem;
  -webkit-mask-image: radial-gradient(circle at 70% 45%, black 0%, transparent 70%);
  mask-image: radial-gradient(circle at 70% 45%, black 0%, transparent 70%);
}

img {
  display: block;
  max-width: 100%;
}

.site-header,
.home-layout,
.site-footer,
.viewer-shell {
  position: relative;
  z-index: 1;
}

.site-header {
  width: min(92rem, calc(100% - 4rem));
  margin: 0 auto;
  padding: 2rem 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
}

.brand-mark {
  width: 2.15rem;
  height: 2.15rem;
}

.brand-name {
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.28em;
}

.header-status {
  margin: 0;
  color: var(--ivory-soft);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-layout {
  width: min(92rem, calc(100% - 4rem));
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 5.5rem) 0 4.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(22rem, 0.78fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 8rem);
}

.home-story {
  max-width: 46rem;
}

.eyebrow {
  margin: 0 0 1.35rem;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.7rem, 7vw, 7.8rem);
  font-weight: 400;
  letter-spacing: -0.052em;
  line-height: 0.86;
  text-wrap: balance;
}

h1 em {
  color: var(--green-bright);
  font-weight: 400;
}

.introduction {
  max-width: 39rem;
  margin: 2.35rem 0 0;
  color: var(--ivory-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1.65;
}

.status-list {
  margin-top: 2.7rem;
  border-top: 0.0625rem solid var(--line);
}

.status-item {
  min-height: 4.8rem;
  padding: 1.05rem 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.95rem;
  align-items: start;
  border-bottom: 0.0625rem solid var(--line);
}

.status-dot {
  width: 0.56rem;
  height: 0.56rem;
  margin-top: 0.38rem;
  flex: 0 0 auto;
  border: 0.0625rem solid var(--green);
  border-radius: 50%;
  background: rgba(181, 215, 111, 0.16);
  box-shadow: 0 0 1.25rem rgba(181, 215, 111, 0.36);
}

.status-item h2 {
  margin: 0 0 0.3rem;
  color: var(--ivory);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.status-item p {
  margin: 0;
  color: #aaa596;
  font-size: 0.88rem;
  line-height: 1.45;
}

.project-note {
  margin-top: 2rem;
  padding: 1.2rem 1.4rem;
  border-left: 0.16rem solid var(--copper);
  background: linear-gradient(90deg, rgba(201, 130, 85, 0.11), transparent);
}

.project-note p {
  margin: 0;
  color: #bfb6a5;
  font-size: 0.9rem;
  line-height: 1.55;
}

.project-note .note-lead {
  margin-bottom: 0.24rem;
  color: var(--ivory);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.16rem;
}

.heritage-panel {
  width: min(100%, 34rem);
  margin: 0 0 0 auto;
}

.portrait-frame {
  position: relative;
  padding: 0.72rem;
  overflow: hidden;
  border: 0.0625rem solid rgba(245, 237, 220, 0.2);
  background: rgba(245, 237, 220, 0.035);
  box-shadow: var(--shadow);
}

.portrait-frame::before {
  content: "";
  position: absolute;
  inset: 1.55rem;
  z-index: 2;
  border: 0.0625rem solid rgba(215, 242, 141, 0.27);
  pointer-events: none;
}

.heritage-portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.04) brightness(0.86);
}

.signal-line {
  position: absolute;
  z-index: 3;
  right: -2rem;
  height: 0.0625rem;
  background: linear-gradient(90deg, transparent, var(--green-bright));
  transform-origin: right;
}

.signal-line-a {
  top: 28%;
  width: 46%;
  transform: rotate(-8deg);
}

.signal-line-b {
  top: 34%;
  width: 34%;
  transform: rotate(5deg);
}

.heritage-panel figcaption {
  margin-top: 1.15rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #a19b8d;
  font-size: 0.7rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.heritage-panel figcaption strong {
  color: var(--copper);
  font-weight: 650;
  text-align: right;
}

.site-footer {
  width: min(92rem, calc(100% - 4rem));
  margin: 0 auto;
  padding: 1.45rem 0 2rem;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  border-top: 0.0625rem solid var(--line-soft);
  color: #888477;
  font-size: 0.69rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0;
}

.welcome-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2.25rem);
}

.welcome-page::before {
  opacity: 0.3;
}

.viewer-shell {
  width: min(68rem, 100%);
  min-height: min(42rem, calc(100vh - 3rem));
  display: grid;
  grid-template-columns: minmax(17rem, 0.82fr) minmax(23rem, 1.18fr);
  overflow: hidden;
  border: 0.0625rem solid rgba(245, 237, 220, 0.18);
  background: var(--panel-deep);
  box-shadow: var(--shadow);
}

.viewer-art {
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  border-right: 0.0625rem solid var(--line);
  background: #070c0b;
}

.viewer-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(0.74) contrast(1.05) brightness(0.75);
}

.viewer-copy {
  align-self: center;
  padding: clamp(2.5rem, 6vw, 5.5rem);
}

.viewer-brand {
  margin-bottom: clamp(3rem, 7vh, 5.5rem);
}

.viewer-copy h1 {
  font-size: clamp(3.35rem, 7vw, 6.5rem);
  line-height: 0.88;
}

.viewer-lead {
  margin: 1.75rem 0 0;
  color: var(--ivory);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.viewer-message {
  max-width: 32rem;
  margin: 1.15rem 0 0;
  color: var(--ivory-soft);
  font-size: 0.94rem;
  line-height: 1.65;
}

.access-badge {
  width: max-content;
  margin-top: 2rem;
  padding: 0.68rem 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  border: 0.0625rem solid var(--line);
  color: var(--green-bright);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.access-badge .status-dot {
  margin-top: 0;
}

.viewer-footnote {
  margin: 1.4rem 0 0;
  color: #777367;
  font-size: 0.69rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 64rem) {
  .home-layout {
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.72fr);
    gap: 3rem;
  }

  .home-layout h1 {
    font-size: clamp(3.6rem, 7.5vw, 6rem);
  }

  .heritage-panel figcaption {
    display: grid;
  }

  .heritage-panel figcaption strong {
    text-align: left;
  }
}

@media (max-width: 47rem) {
  .site-header,
  .home-layout,
  .site-footer {
    width: min(100% - 2rem, 38rem);
  }

  .header-status {
    display: none;
  }

  .home-layout {
    padding-top: 2.5rem;
    grid-template-columns: 1fr;
  }

  .home-layout h1 {
    font-size: clamp(3.15rem, 15vw, 5rem);
  }

  .heritage-panel {
    width: 100%;
    margin: 0;
  }

  .site-footer {
    display: grid;
    gap: 0.55rem;
  }

  .viewer-shell {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .viewer-art {
    height: min(42vh, 22rem);
    border-right: 0;
    border-bottom: 0.0625rem solid var(--line);
  }

  .viewer-art img {
    object-position: center 34%;
  }

  .viewer-copy {
    padding: 2.15rem;
  }

  .viewer-brand {
    margin-bottom: 2.5rem;
  }

  .viewer-copy h1 {
    font-size: clamp(3rem, 14vw, 4.7rem);
  }
}

@media (max-height: 40rem) and (min-width: 47.0625rem) {
  .viewer-shell {
    min-height: calc(100vh - 2rem);
  }

  .viewer-copy {
    padding: 2.5rem 3.5rem;
  }

  .viewer-brand {
    margin-bottom: 2rem;
  }

  .viewer-copy h1 {
    font-size: clamp(3rem, 8vh, 4.4rem);
  }

  .viewer-message {
    line-height: 1.45;
  }
}

@media (prefers-contrast: more) {
  :root {
    --ivory-soft: #eee7d8;
    --line: rgba(215, 242, 141, 0.48);
    --line-soft: rgba(245, 237, 220, 0.3);
  }
}
