:root {
  color-scheme: light;
  --page: #eef2f6;
  --paper: #ffffff;
  --navy: #061420;
  --navy-soft: #0b2031;
  --navy-line: rgba(232, 206, 150, 0.22);
  --gold: #c59a49;
  --gold-soft: #ead7ae;
  --gold-dark: #8e6b31;
  --ink: #111a26;
  --muted: #5f6875;
  --line: #d9c393;
  --line-soft: #ece2ca;
  --shadow: 0 28px 80px rgba(7, 20, 32, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #f7f9fb 0%, var(--page) 48%, #dde5ec 100%);
  color: var(--ink);
  font-family:
    Inter, Aptos, "Segoe UI", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

p,
h1,
h2,
h3 {
  margin-top: 0;
}

img,
svg {
  display: block;
}

.page-shell {
  width: min(1200px, calc(100% - 32px));
  min-height: calc(100vh - 32px);
  display: grid;
  grid-template-columns: minmax(310px, 34%) minmax(0, 1fr);
  margin: 16px auto;
  overflow: hidden;
  border-radius: 26px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.side-rail {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 4vw, 52px) clamp(24px, 3.4vw, 44px);
  background:
    linear-gradient(180deg, rgba(6, 20, 32, 0.28), rgba(6, 17, 29, 0.64)),
    url("assets/gold-arc-ornament-web.png") center top / 132% auto no-repeat,
    linear-gradient(168deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 14px),
    linear-gradient(180deg, #071522 0%, #071724 54%, #06111d 100%);
  color: #f5f1e8;
}

.side-rail::before,
.side-rail::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border: 1px solid rgba(197, 154, 73, 0.58);
  border-left: 0;
  border-bottom: 0;
  transform: rotate(-18deg);
}

.side-rail::before {
  width: 500px;
  height: 220px;
  top: -104px;
  left: -118px;
  border-radius: 50%;
}

.side-rail::after {
  width: 580px;
  height: 244px;
  right: -210px;
  bottom: -92px;
  border-radius: 50%;
}

.portrait-frame {
  position: relative;
  z-index: 1;
  width: clamp(174px, 18vw, 224px);
  height: clamp(174px, 18vw, 224px);
  display: grid;
  place-items: center;
  margin: 0 auto clamp(40px, 5vw, 60px);
}

.portrait-frame::before,
.portrait-frame::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.portrait-frame::before {
  inset: -16px;
  border: 2px solid rgba(234, 215, 174, 0.82);
  border-left-color: rgba(197, 154, 73, 0.22);
  transform: rotate(-17deg);
  box-shadow:
    0 0 0 1px rgba(197, 154, 73, 0.2),
    0 18px 44px rgba(0, 0, 0, 0.18);
}

.portrait-frame::after {
  inset: -27px;
  border: 1px solid rgba(197, 154, 73, 0.34);
  border-bottom-color: transparent;
  border-left-color: transparent;
  transform: rotate(24deg);
}

.portrait {
  position: relative;
  z-index: 1;
  width: calc(100% - 18px);
  height: calc(100% - 18px);
  margin: 0;
  border-radius: 999px;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

.rail-section {
  position: relative;
  z-index: 1;
  margin-bottom: clamp(27px, 4vw, 42px);
}

.rail-section h2 {
  margin-bottom: 15px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--navy-line);
  color: var(--gold-soft);
  font-size: 0.95rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  line-height: 1.1;
  text-transform: uppercase;
}

.rail-section a,
.rail-section p,
.rail-section li {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
}

.rail-link {
  display: block;
  margin-bottom: 11px;
  text-decoration: none;
  word-break: break-word;
}

.rail-icon-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.rail-mini-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-soft);
}

.rail-mini-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.rail-link:hover,
.rail-link:focus-visible {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: var(--gold);
}

.rail-section p {
  margin-bottom: 9px;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rail-section li {
  position: relative;
  margin-bottom: 12px;
  padding-left: 19px;
}

.rail-icon-list li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding-left: 0;
}

.rail-icon-list li::before {
  display: none;
}

.rail-section li::before,
.timeline-item li::before,
.evidence-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--gold);
  position: absolute;
  left: 0;
  top: 0.72em;
}

.content {
  position: relative;
  overflow: hidden;
  padding: clamp(46px, 5.2vw, 76px) clamp(32px, 5vw, 74px) clamp(42px, 5vw, 72px);
  background:
    linear-gradient(180deg, #ffffff 0%, #ffffff 74%, #faf7ef 100%);
}

.content::before,
.content::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  border: 1px solid rgba(197, 154, 73, 0.23);
}

.content::before {
  width: clamp(260px, 30vw, 420px);
  height: clamp(92px, 12vw, 150px);
  top: 34px;
  right: -148px;
  border-left: 0;
  border-bottom: 0;
  transform: rotate(-17deg);
}

.content::after {
  width: clamp(300px, 35vw, 520px);
  height: clamp(108px, 14vw, 180px);
  right: -190px;
  bottom: 32px;
  border-left: 0;
  border-top: 0;
  opacity: 0.7;
  transform: rotate(14deg);
}

.content > * {
  position: relative;
  z-index: 1;
}

.language-switch {
  position: absolute;
  top: clamp(22px, 3.2vw, 34px);
  right: clamp(22px, 4vw, 52px);
  z-index: 3;
  display: inline-grid;
  grid-template-columns: repeat(2, 42px);
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(197, 154, 73, 0.38);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 28px rgba(7, 20, 32, 0.08);
  backdrop-filter: blur(12px);
}

.language-option {
  min-width: 0;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #49515d;
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  line-height: 1;
  transition:
    background 150ms ease,
    color 150ms ease,
    box-shadow 150ms ease;
}

.language-option.is-active {
  background: var(--navy);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(7, 20, 32, 0.14);
}

.language-option:hover,
.language-option:focus-visible {
  color: var(--navy);
  outline: none;
}

.language-option.is-active:hover,
.language-option.is-active:focus-visible {
  color: #ffffff;
}

.language-option:focus-visible {
  box-shadow: 0 0 0 3px rgba(197, 154, 73, 0.3);
}

.hero {
  max-width: 820px;
  padding-bottom: clamp(42px, 6vw, 64px);
  padding-top: 8px;
}

h1 {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: clamp(3rem, 7.4vw, 5.7rem);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: 0;
}

h1 span,
h1 strong {
  display: inline-block;
}

h1 strong {
  color: var(--gold);
  font-weight: 900;
}

.headline {
  max-width: 760px;
  margin-bottom: 16px;
  color: var(--ink);
  font-size: clamp(1.02rem, 2vw, 1.38rem);
  line-height: 1.28;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.signature-rule {
  width: 72px;
  height: 4px;
  margin-bottom: 26px;
  background: var(--gold);
}

.intro {
  max-width: 780px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.35vw, 1.13rem);
  line-height: 1.7;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d8c493;
  border-radius: 6px;
  padding: 10px 16px;
  background: #fff;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 820;
  text-decoration: none;
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    background 150ms ease,
    color 150ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  border-color: var(--gold-dark);
}

.button-primary {
  border-color: var(--navy);
  background: var(--navy);
  color: #ffffff;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #0d2234;
}

.section-block {
  padding: clamp(34px, 5vw, 52px) 0;
  border-top: 1px solid var(--line-soft);
}

.section-block-last {
  padding-bottom: 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

.section-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: var(--navy);
  box-shadow: 0 9px 20px rgba(7, 20, 32, 0.16);
}

.section-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--gold);
}

.section-heading h2 {
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  font-weight: 870;
  letter-spacing: 0.12em;
  line-height: 1.1;
  text-transform: uppercase;
}

.timeline {
  position: relative;
  max-width: 900px;
  padding-left: 54px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 0.62rem;
  bottom: 0.56rem;
  width: 2px;
  background: #d9d1c1;
}

.timeline-item {
  position: relative;
  padding-bottom: 34px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -51px;
  top: 0.52rem;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 5px #fff;
}

.role-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 18px;
  align-items: start;
  margin-bottom: 13px;
}

.timeline-item h3,
.scope-list h3 {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  line-height: 1.22;
  font-weight: 860;
}

.meta,
.date {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.meta {
  font-style: italic;
}

.date {
  color: #1c2632;
  font-weight: 820;
  white-space: nowrap;
}

.timeline-item li,
.evidence-list li {
  position: relative;
  margin-bottom: 9px;
  padding-left: 22px;
  color: #303944;
  font-size: 1rem;
}

.scope-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 34px;
  max-width: 890px;
}

.scope-list article {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: start;
  gap: 15px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.scope-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: var(--navy);
  box-shadow: 0 8px 18px rgba(7, 20, 32, 0.12);
}

.scope-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--gold);
}

.scope-list p,
.compact-lines p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
}

.compact-lines {
  max-width: 850px;
}

.compact-lines p {
  margin-bottom: 13px;
}

.compact-lines strong,
.evidence-list strong {
  color: var(--ink);
}

.evidence-list {
  max-width: 890px;
}

@media (max-width: 960px) {
  .page-shell {
    width: min(100% - 24px, 820px);
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

  .side-rail {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 20px 30px;
    padding: 30px;
  }

  .portrait-frame {
    width: 158px;
    height: 158px;
    margin: 0;
  }

  .portrait {
    width: calc(100% - 14px);
    height: calc(100% - 14px);
  }

  .rail-section {
    margin-bottom: 8px;
  }

  .rail-section:first-of-type {
    grid-column: 2;
  }
}

@media (max-width: 680px) {
  .page-shell {
    width: auto;
    margin: 10px;
    border-radius: 18px;
  }

  .content {
    order: 1;
  }

  .side-rail {
    order: 2;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 28px 24px;
  }

  .portrait-frame {
    width: 142px;
    height: 142px;
    margin: 0 auto 10px;
  }

  .portrait {
    width: calc(100% - 12px);
    height: calc(100% - 12px);
  }

  .rail-section:first-of-type {
    grid-column: auto;
  }

  .content {
    padding: 34px 22px 38px;
  }

  .language-switch {
    position: relative;
    top: auto;
    right: auto;
    margin: 0 0 28px auto;
  }

  .hero {
    padding-top: 0;
  }

  h1 {
    margin-bottom: 16px;
    font-size: clamp(2.45rem, 14vw, 3.55rem);
    line-height: 1.02;
  }

  .headline {
    font-size: 0.84rem;
    line-height: 1.32;
    letter-spacing: 0.02em;
  }

  .actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .section-heading {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
  }

  .section-icon {
    width: 34px;
    height: 34px;
  }

  .section-icon svg {
    width: 19px;
    height: 19px;
  }

  .section-heading h2 {
    font-size: 0.98rem;
    letter-spacing: 0.08em;
  }

  .timeline {
    padding-left: 28px;
  }

  .timeline::before {
    left: 7px;
  }

  .timeline-item::before {
    left: -27px;
    width: 13px;
    height: 13px;
  }

  .role-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .date {
    white-space: normal;
  }

  .scope-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media print {
  body {
    background: #ffffff;
  }

  .page-shell {
    width: 100%;
    min-height: 0;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .button {
    border-color: #9f8c60;
  }
}
