:root {
  --ink: #10243f;
  --ink-deep: #071525;
  --blue: #176b9a;
  --blue-bright: #38b9e8;
  --sky: #dff5ff;
  --coral: #ec493f;
  --coral-deep: #c9312d;
  --gold: #f4b941;
  --paper: #f7f6f2;
  --white: #ffffff;
  --muted: #546579;
  --line: #ced9e2;
  --soft-line: rgba(16, 36, 63, 0.13);
  --shadow: 0 22px 60px rgba(9, 33, 57, 0.13);
  --radius: 1.6rem;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(16, 36, 63, 0.028) 1px, transparent 1px),
    var(--paper);
  background-size: min(8vw, 96px) 100%;
  font-family: Inter, Aptos, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

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

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  color: var(--white);
  background: var(--ink-deep);
  border-radius: 0.5rem;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5rem;
  padding: 0.75rem max(1.25rem, calc((100% - var(--max)) / 2));
  border-bottom: 1px solid rgba(16, 36, 63, 0.1);
  background: rgba(247, 246, 242, 0.91);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 850;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.55rem;
  height: 2.55rem;
  place-items: center;
  color: var(--white);
  background: var(--ink);
  border-radius: 50%;
  font-size: 0.77rem;
  letter-spacing: 0.05em;
  box-shadow: 6px 0 0 var(--coral);
}

.site-nav {
  display: flex;
  gap: clamp(0.8rem, 2.4vw, 2rem);
  font-size: 0.92rem;
  font-weight: 750;
}

.site-nav a,
.site-footer a {
  text-decoration: none;
}

.site-nav a:hover,
.site-footer a:hover {
  color: var(--coral-deep);
}

.hero,
.section,
.route-strip,
.site-footer {
  width: min(calc(100% - 2.5rem), var(--max));
  margin-inline: auto;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.72fr);
  gap: clamp(2.5rem, 7vw, 6.5rem);
  align-items: center;
  min-height: calc(100vh - 5rem);
  padding: clamp(4rem, 9vw, 8rem) 0;
}

.hero::before {
  position: absolute;
  z-index: -1;
  top: 7%;
  right: -8%;
  width: 28rem;
  height: 28rem;
  border: 1px solid rgba(23, 107, 154, 0.22);
  border-radius: 50%;
  content: "";
  box-shadow:
    0 0 0 3.8rem rgba(56, 185, 232, 0.06),
    0 0 0 8rem rgba(236, 73, 63, 0.035);
}

.eyebrow,
.card-kicker,
.model-label {
  margin: 0 0 0.75rem;
  color: var(--coral-deep);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero h1,
.section h2 {
  margin: 0;
  max-width: 18ch;
  color: var(--ink-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.03;
  text-wrap: balance;
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 6.25rem);
}

.hero h1 span {
  color: var(--blue);
}

.hero-copy > p:not(.eyebrow) {
  max-width: 64ch;
  color: var(--muted);
  font-size: clamp(1.06rem, 1.5vw, 1.22rem);
}

.hero-copy .hero-intro {
  margin-top: 2rem;
  color: var(--ink);
  font-size: clamp(1.14rem, 1.9vw, 1.38rem);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 3.15rem;
  padding: 0.72rem 1.2rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 850;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: var(--coral);
  box-shadow: 0 8px 24px rgba(201, 49, 45, 0.23);
}

.button-primary:hover {
  background: var(--coral-deep);
}

.button-secondary {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}

.button-secondary:hover {
  background: var(--white);
  box-shadow: 0 8px 24px rgba(16, 36, 63, 0.1);
}

.portrait-card {
  position: relative;
  margin: 0;
}

.portrait-frame {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 10px solid var(--white);
  border-radius: 10rem 10rem var(--radius) var(--radius);
  background: var(--sky);
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 57%;
}

.portrait-card figcaption {
  position: relative;
  width: 92%;
  margin: -2.7rem auto 0;
  padding: 1rem 1.2rem;
  border-left: 5px solid var(--coral);
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 12px 30px rgba(7, 21, 37, 0.25);
  transform: rotate(-1.5deg);
}

.portrait-card figcaption strong,
.portrait-card figcaption span {
  display: block;
}

.portrait-card figcaption span {
  margin-top: 0.25rem;
  color: #cbd9e5;
  font-size: 0.82rem;
  line-height: 1.45;
}

.route-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  overflow: hidden;
  margin-bottom: clamp(5rem, 10vw, 9rem);
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 42px rgba(16, 36, 63, 0.07);
}

.route-strip p {
  min-width: 0;
  margin: 0;
  padding: 1.2rem 1.35rem;
  border-right: 1px solid var(--soft-line);
  border-bottom: 1px solid var(--soft-line);
}

.route-strip p:nth-child(3n) {
  border-right: 0;
}

.route-strip p:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.route-strip span,
.route-strip a {
  display: block;
}

.route-strip span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.route-strip a {
  margin-top: 0.22rem;
  font-weight: 800;
  line-height: 1.35;
  text-decoration-color: rgba(23, 107, 154, 0.35);
  text-underline-offset: 0.22rem;
}

.route-strip a:hover {
  color: var(--blue);
}

.context-gateway {
  width: min(calc(100% - 2.5rem), var(--max));
  margin: clamp(-5.5rem, -6vw, -3rem) auto clamp(4.5rem, 9vw, 8rem);
  padding: clamp(1.6rem, 4vw, 2.8rem);
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  color: var(--white);
  background:
    radial-gradient(circle at 90% 0%, rgba(242, 184, 75, 0.23), transparent 32%),
    linear-gradient(125deg, var(--navy), #17395d);
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(16, 36, 63, 0.18);
}

.context-gateway .eyebrow {
  color: var(--gold);
}

.context-gateway h2,
.context-gateway p {
  margin: 0;
}

.context-gateway h2 {
  max-width: 13ch;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
}

.context-gateway > div:last-child > p {
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.82);
}

.context-gateway .text-link {
  color: var(--white);
  text-decoration-color: rgba(242, 184, 75, 0.7);
}

.context-gateway .text-link:hover {
  color: var(--gold);
}

.section {
  padding-block: clamp(4.5rem, 9vw, 8rem);
}

.section-heading {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  column-gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
  margin-bottom: clamp(2.2rem, 5vw, 4rem);
}

.section-heading .eyebrow {
  grid-column: 1;
}

.section-heading h2 {
  grid-column: 1;
  font-size: clamp(2.3rem, 5vw, 4.7rem);
}

.section-heading > p:last-child {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.55vw, 1.22rem);
}

.system-line {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  padding-top: 1rem;
}

.system-line::before {
  position: absolute;
  top: 2.55rem;
  right: 8%;
  left: 8%;
  height: 2px;
  background: linear-gradient(90deg, var(--coral), var(--gold), var(--blue-bright), var(--blue));
  content: "";
}

.system-line article {
  position: relative;
  padding: 0 0.3rem;
  text-align: center;
}

.system-number {
  position: relative;
  z-index: 1;
  display: grid;
  width: 3.15rem;
  height: 3.15rem;
  margin: 0 auto 1.1rem;
  place-items: center;
  border: 5px solid var(--paper);
  border-radius: 50%;
  color: var(--white);
  background: var(--ink);
  font-size: 0.73rem;
  font-weight: 900;
}

.system-line h3,
.project-card h3,
.evidence-card h3 {
  margin: 0;
  color: var(--ink-deep);
  font-size: 1.45rem;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.system-line p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.model-note {
  display: grid;
  grid-template-columns: 0.36fr 1.64fr;
  gap: 2rem;
  align-items: center;
  margin-top: 4rem;
  padding: clamp(1.6rem, 4vw, 2.7rem);
  border-left: 6px solid var(--coral);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--white);
  background: var(--ink);
}

.model-label {
  margin: 0;
  color: var(--gold);
}

.model-note > p:last-child {
  margin: 0;
  color: #e9f1f7;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  line-height: 1.45;
}

.projects {
  border-top: 1px solid var(--soft-line);
}

.section-heading.compact {
  display: block;
}

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

.project-card {
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 35px rgba(16, 36, 63, 0.07);
}

.project-featured {
  display: grid;
  grid-template-columns: minmax(150px, 0.68fr) minmax(0, 1.32fr);
  grid-column: span 2;
}

.project-art {
  display: grid;
  min-height: 20rem;
  place-items: center;
  padding: 1.5rem;
}

.project-art img {
  width: min(100%, 18rem);
  max-height: 19rem;
  object-fit: contain;
}

.art-light {
  background:
    radial-gradient(circle at 50% 40%, rgba(56, 185, 232, 0.18), transparent 62%),
    var(--sky);
}

.art-blue {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%) 0 0 / 22px 22px,
    var(--ink);
}

.project-content {
  padding: clamp(1.6rem, 4vw, 3rem);
}

.project-content > p:not(.card-kicker, .small-note) {
  color: var(--muted);
}

.link-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.6rem;
}

.link-cluster a {
  padding: 0.48rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--blue);
  font-size: 0.84rem;
  font-weight: 850;
  text-decoration: none;
}

.link-cluster a:hover {
  border-color: var(--blue);
  background: var(--sky);
}

.status-list {
  margin: 1.5rem 0;
  padding: 0;
  border-top: 1px solid var(--soft-line);
  list-style: none;
}

.status-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--soft-line);
  font-size: 0.88rem;
}

.status {
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status.live {
  color: #0a684a;
  background: #dff7ed;
}

.status.testing {
  color: #86570b;
  background: #fff1c9;
}

.status.development {
  color: #5d4a8b;
  background: #eee9ff;
}

.text-link {
  display: inline-block;
  margin-top: 1.25rem;
  color: var(--blue);
  font-weight: 900;
  text-decoration-color: var(--blue-bright);
  text-underline-offset: 0.28rem;
}

.small-note {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.text-card {
  min-height: 25rem;
}

.text-card .project-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.text-card .text-link {
  margin-top: auto;
  padding-top: 1.5rem;
}

blockquote {
  margin: 1.7rem 0;
  padding: 0 0 0 1rem;
  border-left: 4px solid var(--coral);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 700;
  line-height: 1.35;
}

.manga-card {
  color: var(--white);
  background: var(--ink);
}

.manga-card h3,
.manga-card blockquote {
  color: var(--white);
}

.manga-card .project-content > p:not(.card-kicker) {
  color: #c8d7e4;
}

.manga-card .text-link {
  color: var(--gold);
}

.identity-section {
  display: grid;
  grid-template-columns: 0.58fr 1.42fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  border-top: 1px solid var(--soft-line);
}

.identity-number {
  overflow: hidden;
  color: transparent;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(10rem, 26vw, 21rem);
  font-weight: 700;
  letter-spacing: -0.12em;
  line-height: 0.75;
  -webkit-text-stroke: 2px var(--coral);
  text-align: center;
}

.identity-copy h2 {
  font-size: clamp(2.3rem, 5vw, 4.5rem);
}

.identity-copy > p:not(.eyebrow) {
  max-width: 64ch;
  color: var(--muted);
  font-size: 1.07rem;
}

.evidence-section {
  width: 100%;
  max-width: none;
  padding-inline: max(1.25rem, calc((100% - var(--max)) / 2));
  color: var(--white);
  background: var(--ink-deep);
}

.evidence-section .section-heading h2 {
  color: var(--white);
}

.evidence-section .section-heading > p:last-child {
  color: #b8cad8;
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
}

.evidence-card {
  display: grid;
  grid-template-columns: minmax(130px, 0.65fr) minmax(0, 1.35fr);
  gap: 1.5rem;
  align-items: center;
  min-width: 0;
  padding: clamp(1.4rem, 3vw, 2.4rem);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.evidence-art img {
  width: 100%;
  max-height: 15rem;
  object-fit: contain;
}

.evidence-card h3 {
  color: var(--white);
}

.evidence-card p:not(.card-kicker) {
  color: #c8d6e1;
}

.button-dark {
  margin-top: 0.7rem;
  color: var(--ink-deep);
  background: var(--gold);
}

.button-outline-light {
  margin-top: 0.7rem;
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}

.button-outline-light:hover {
  background: rgba(255, 255, 255, 0.08);
}

.ledger-mark {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.27);
  border-radius: 50%;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.08em;
  box-shadow: inset 0 0 0 0.75rem rgba(255, 255, 255, 0.035);
}

.connect-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
}

.connect-copy h2 {
  font-size: clamp(2.4rem, 5vw, 4.5rem);
}

.connect-copy > p:not(.eyebrow) {
  max-width: 57ch;
  color: var(--muted);
  font-size: 1.07rem;
}

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

.qr-card {
  overflow: hidden;
  margin: 0;
  padding: 0.75rem;
  border: 1px solid var(--soft-line);
  border-radius: 1.1rem;
  background: var(--white);
  box-shadow: 0 14px 38px rgba(16, 36, 63, 0.08);
}

.qr-card img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 0.7rem;
  object-fit: contain;
}

.qr-card figcaption {
  padding: 0.8rem 0.35rem 0.35rem;
}

.qr-card figcaption strong,
.qr-card figcaption span {
  display: block;
}

.qr-card figcaption span {
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.4;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-end;
  padding-block: 2.2rem;
  border-top: 1px solid var(--soft-line);
}

.site-footer p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.84rem;
  font-weight: 800;
}

@media (max-width: 1000px) {
  .hero {
    grid-template-columns: 1fr 0.72fr;
    gap: 2.5rem;
  }

  .hero h1 {
    font-size: clamp(3rem, 7vw, 4.8rem);
  }

  .system-line {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem 1rem;
  }

  .system-line::before {
    display: none;
  }

  .evidence-card {
    grid-template-columns: 1fr;
  }

  .evidence-art img,
  .ledger-mark {
    width: min(14rem, 60%);
    margin-inline: auto;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 8rem;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.65rem;
    padding-block: 0.65rem;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .context-gateway {
    grid-template-columns: 1fr;
    margin-top: -2.5rem;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 3.2rem;
  }

  .hero::before {
    display: none;
  }

  .portrait-card {
    width: min(100%, 29rem);
    margin-inline: auto;
  }

  .route-strip {
    grid-template-columns: 1fr;
  }

  .route-strip p,
  .route-strip p:nth-child(3n),
  .route-strip p:nth-last-child(-n + 3) {
    border-right: 0;
    border-bottom: 1px solid var(--soft-line);
  }

  .route-strip p:last-child {
    border-bottom: 0;
  }

  .section-heading,
  .model-note,
  .identity-section,
  .connect-section {
    grid-template-columns: 1fr;
  }

  .section-heading > p:last-child {
    grid-column: 1;
    grid-row: auto;
    margin-top: 1.5rem;
  }

  .system-line {
    grid-template-columns: 1fr;
  }

  .system-line article {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 1rem;
    text-align: left;
  }

  .system-number {
    grid-row: span 2;
    margin: 0;
  }

  .system-line p {
    margin-top: 0.2rem;
  }

  .project-grid,
  .evidence-grid {
    grid-template-columns: 1fr;
  }

  .project-featured {
    grid-template-columns: 1fr;
    grid-column: auto;
  }

  .project-art {
    min-height: 16rem;
  }

  .text-card {
    min-height: auto;
  }

  .identity-number {
    font-size: 10rem;
    line-height: 0.85;
  }

  .evidence-art img,
  .ledger-mark {
    width: min(13rem, 65%);
  }
}

@media (max-width: 480px) {
  .hero,
  .section,
  .route-strip,
  .context-gateway,
  .site-footer {
    width: min(calc(100% - 1.5rem), var(--max));
  }

  .hero h1 {
    font-size: clamp(2.65rem, 14vw, 3.65rem);
  }

  .button-row,
  .button {
    width: 100%;
  }

  .qr-grid {
    grid-template-columns: 1fr;
  }

  .qr-card {
    max-width: 20rem;
    margin-inline: auto;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .button-row,
  .qr-grid,
  .site-footer nav {
    display: none;
  }

  body {
    background: white;
  }

  .hero {
    min-height: 0;
  }

  .section,
  .hero {
    padding-block: 2rem;
  }

  .project-card,
  .evidence-card,
  .portrait-frame {
    break-inside: avoid;
    box-shadow: none;
  }
}
