:root {
  --bg: #faf7ef;
  --surface: #ffffff;
  --surface-soft: #fff8dc;
  --surface-blue: #eef8fd;
  --ink: #171717;
  --muted: #58564f;
  --line: #ddd5c1;
  --line-strong: #c6b88e;
  --brand-yellow: #f2b502;
  --brand-blue: #0c94ca;
  --brand-black: #111111;
  --focus: #0c94ca;
  --max: 1180px;
  --radius: 20px;
  --radius-lg: 30px;
  --shadow: 0 20px 55px rgba(17, 17, 17, 0.08);
  --shadow-soft: 0 10px 28px rgba(17, 17, 17, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Source Sans 3", "Helvetica Neue", Helvetica, sans-serif;
  color: var(--ink);
  line-height: 1.65;
  background:
    radial-gradient(circle at top left, rgba(242, 181, 2, 0.18), transparent 26%),
    radial-gradient(circle at top right, rgba(12, 148, 202, 0.12), transparent 28%),
    linear-gradient(180deg, #fffdf7 0%, #f8f3e7 100%);
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--brand-black);
  color: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  z-index: 999;
}

.skip-link:focus {
  left: 12px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
}

.utility-bar {
  background: var(--brand-black);
  color: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.utility-inner,
.navbar,
.section-inner,
.footer-inner,
.hero-shell,
.page-hero-shell {
  max-width: var(--max);
  margin: 0 auto;
}

.utility-inner {
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.92rem;
}

.utility-links,
.footer-social {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.utility-links a:hover,
.utility-links a:focus-visible,
.footer-social a:hover,
.footer-social a:focus-visible {
  color: var(--brand-yellow);
}

.navbar-wrap {
  background: rgba(255, 253, 247, 0.96);
  border-bottom: 1px solid rgba(198, 184, 142, 0.6);
}

.navbar {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand img {
  width: 52px;
  height: 70px;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-title {
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.92rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.97rem;
  font-weight: 600;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.nav-links .portal-link {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--brand-black);
  color: #fff;
  border: 1px solid var(--brand-black);
}

.nav-links .portal-link:hover,
.nav-links .portal-link:focus-visible {
  color: #fff;
  background: #2b2b2b;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
}

.hero {
  padding: 34px 20px 70px;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 30px;
  align-items: stretch;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(198, 184, 142, 0.75);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(150deg, rgba(242, 181, 2, 0.14) 0%, rgba(255, 255, 255, 0.95) 48%, rgba(12, 148, 202, 0.08) 100%);
  box-shadow: var(--shadow);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(242, 181, 2, 0.16);
  color: var(--brand-black);
  border: 1px solid rgba(242, 181, 2, 0.34);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-copy h1,
.section h2,
.card h3,
.page-hero-copy h1,
.footer-brand-title {
  font-family: "Merriweather", Georgia, serif;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.35rem, 3vw + 1.3rem, 4.3rem);
  line-height: 1.08;
  max-width: 11.5ch;
}

.hero-copy p {
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.08rem;
}

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

.page-hero-copy .hero-actions {
  margin-top: 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--brand-black);
  background: var(--brand-black);
  color: #fff;
  font-weight: 700;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  background: #2a2a2a;
}

.button.secondary {
  border-color: rgba(17, 17, 17, 0.18);
  background: rgba(255, 255, 255, 0.72);
  color: var(--brand-black);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: #fff;
}

.button.light {
  background: #fff;
  color: var(--brand-black);
  border-color: rgba(255, 255, 255, 0.18);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.fact {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(198, 184, 142, 0.65);
  box-shadow: var(--shadow-soft);
}

.fact strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
}

.fact span {
  color: var(--muted);
  font-size: 0.93rem;
}

.hero-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.9fr);
  gap: 14px;
  min-height: 100%;
}

.hero-main,
.stack-card,
.media-card,
.image-panel,
.page-hero-media {
  background: var(--surface);
  border: 1px solid rgba(198, 184, 142, 0.7);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.hero-main img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
}

.hero-stack {
  display: grid;
  gap: 14px;
}

.stack-card img {
  width: 100%;
  height: 192px;
  object-fit: cover;
}

.stack-card-body {
  padding: 16px 18px 18px;
}

.stack-card-body strong {
  display: block;
  margin-bottom: 6px;
}

.stack-card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.section {
  padding: 0 20px 64px;
}

.section-inner {
  position: relative;
}

.section-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-copy {
  max-width: 700px;
}

.section h2 {
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 1vw + 1.45rem, 2.7rem);
  line-height: 1.18;
}

.section p,
.card p,
.list,
.notice,
.table td,
.table th {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.card {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(198, 184, 142, 0.72);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.card h3,
.card h2 {
  margin-top: 0;
  margin-bottom: 10px;
}

.card h3 {
  font-size: 1.18rem;
}

.feature-card {
  position: relative;
  padding-top: 26px;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 22px;
  width: 64px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-yellow), var(--brand-blue));
}

.list {
  margin: 0;
  padding-left: 18px;
}

.list li + li {
  margin-top: 6px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  gap: 22px;
  align-items: center;
}

.image-panel img,
.media-card img,
.page-hero-media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.image-panel img {
  aspect-ratio: 4 / 3;
}

.check-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.check-item {
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid rgba(198, 184, 142, 0.72);
}

.check-item strong {
  display: block;
  margin-bottom: 4px;
}

.check-item span {
  color: var(--muted);
}

.portal-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 22px;
  padding: clamp(24px, 4vw, 34px);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(17, 17, 17, 0.98) 0%, rgba(14, 43, 58, 0.98) 100%);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.portal-band p,
.portal-band li {
  color: rgba(255, 255, 255, 0.76);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(242, 181, 2, 0.18);
  color: #fff;
  border: 1px solid rgba(242, 181, 2, 0.24);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.portal-grid {
  display: grid;
  gap: 14px;
}

.portal-card {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.portal-card strong {
  display: block;
  margin-bottom: 6px;
}

.banner,
.notice {
  border-radius: 20px;
  border: 1px solid rgba(198, 184, 142, 0.72);
}

.banner {
  padding: 24px;
  background: linear-gradient(120deg, rgba(242, 181, 2, 0.18), rgba(12, 148, 202, 0.12));
  box-shadow: var(--shadow-soft);
}

.notice {
  padding: 18px;
  background: rgba(12, 148, 202, 0.08);
  border-left: 4px solid var(--brand-blue);
}

.page-hero {
  padding: 30px 20px 18px;
}

.page-hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  gap: 22px;
  align-items: stretch;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid rgba(198, 184, 142, 0.72);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.page-hero-copy h1 {
  margin: 12px 0 10px;
  font-size: clamp(2rem, 2vw + 1.4rem, 3rem);
  line-height: 1.12;
}

.page-hero-copy p {
  margin: 0;
  max-width: 56ch;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(198, 184, 142, 0.72);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

.table th,
.table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(198, 184, 142, 0.42);
}

.table th {
  color: var(--ink);
  font-weight: 700;
  background: rgba(242, 181, 2, 0.12);
}

.table tr:last-child td {
  border-bottom: 0;
}

.info-list,
.link-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.info-list strong,
.link-list strong {
  color: var(--ink);
}

.link-list a,
.footer a {
  color: var(--brand-blue);
}

.link-list a:hover,
.link-list a:focus-visible,
.footer a:hover,
.footer a:focus-visible {
  color: var(--brand-black);
}

.small {
  font-size: 0.92rem;
}

.footer {
  margin-top: 28px;
  padding: 40px 20px 44px;
  background: var(--brand-black);
  color: rgba(255, 255, 255, 0.74);
}

.footer-inner {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.footer-brand img {
  width: 56px;
  height: 76px;
  object-fit: contain;
}

.footer-brand-title {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 1.15rem;
}

.footer-block h3 {
  margin-top: 0;
  margin-bottom: 12px;
  color: #fff;
  font-size: 1rem;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-note {
  margin-top: 14px;
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .hero-shell,
  .split,
  .page-hero-shell,
  .portal-band,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-gallery {
    grid-template-columns: 1fr;
  }

  .hero-main img {
    min-height: 320px;
  }

  .hero-facts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .navbar {
    position: relative;
  }

  .nav-links {
    position: absolute;
    right: 20px;
    top: calc(100% + 10px);
    z-index: 30;
    flex-direction: column;
    align-items: stretch;
    min-width: 240px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(198, 184, 142, 0.9);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links .portal-link {
    text-align: center;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 720px) {
  .hero {
    padding-top: 22px;
  }

  .hero-shell,
  .page-hero-shell {
    padding: 20px;
  }

  .utility-inner,
  .navbar,
  .section,
  .footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand img {
    width: 46px;
    height: 62px;
  }

  .brand-title {
    font-size: 0.98rem;
  }

  .brand-subtitle {
    font-size: 0.84rem;
  }

  .hero-copy h1 {
    max-width: none;
  }

  .section-intro {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .hero-main img,
  .stack-card img,
  .image-panel img,
  .media-card img,
  .page-hero-media img {
    min-height: 220px;
  }

  .button,
  .button.secondary,
  .button.light {
    width: 100%;
  }
}
