:root {
  --bg: #ffffff;
  --fg: #000000;
  --muted: #4a4a4a;
  --line: #d9d9d9;
  --line-strong: #111111;
  --accent: #0f4cff;
  --max: 1200px;
  --space: 2rem;
  --radius: 0px;
  --header-height: 74px;
  --display: "Helvetica Neue", "Avenir Next", Arial, sans-serif;
  --body: "Helvetica Neue", "Avenir Next", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body);
  color: var(--fg);
  background: var(--bg);
}

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

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

.page-shell {
  padding-bottom: 3rem;
}

.site-footer {
  width: min(calc(100% - 3rem), var(--max));
  margin: 5rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.site-footer-title {
  margin: 0 0 1.25rem !important;
  font-family: var(--display);
  font-size: clamp(2.8rem, 6vw, 5.2rem) !important;
  line-height: 0.95 !important;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  font-weight: 700 !important;
  color: var(--fg) !important;
}

.site-footer p {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.7;
  color: var(--muted);
}

.site-footer-recs {
  margin-top: 1rem !important;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.site-footer-rights {
  color: var(--muted) !important;
}

.site-footer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: var(--header-height);
  display: grid;
  grid-template-columns: minmax(140px, 1fr) auto auto;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  padding: 0 1.5rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.brand,
.site-nav a,
.locale-badge,
.hero-label,
.section-label,
.chart-label,
.bases-label {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.brand {
  font-size: 0.78rem;
  font-weight: 700;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
  font-size: 0.74rem;
}

.site-nav a {
  color: var(--muted);
}

.locale-badge {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.18rem;
  border: 1px solid var(--line);
  font-size: 0.68rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.88);
}

.locale-badge a,
.locale-badge span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  padding: 0.4rem 0.55rem;
  line-height: 1;
  color: inherit;
}

.locale-badge a {
  transition:
    background-color 160ms ease,
    color 160ms ease;
}

.locale-badge a:hover {
  color: var(--fg);
  background: rgba(0, 0, 0, 0.04);
}

.locale-badge .is-active {
  color: var(--bg);
  background: var(--fg);
}

main {
  padding-top: var(--header-height);
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: grid;
  align-items: end;
  background: url("assets/images/miomir-cover.jpg") 72% center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
}

.hero-inner,
.section {
  width: min(calc(100% - 3rem), var(--max));
  margin: 0 auto;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space);
  padding: 0 0 3rem;
  color: #ffffff;
}

.hero-label {
  grid-column: 1 / span 5;
  align-self: end;
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 500;
}

.hero h1 {
  grid-column: 1 / span 7;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(4rem, 8vw, 8rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  font-weight: 700;
}

.hero-slogan {
  grid-column: 1 / span 5;
  margin: 0;
  max-width: 10ch;
  font-family: var(--display);
  font-size: clamp(1.6rem, 2.6vw, 2.8rem);
  line-height: 1.02;
  font-weight: 700;
}

.hero-subtitle {
  grid-column: 8 / span 4;
  align-self: end;
  margin: 0;
  max-width: 24rem;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
}

.hero-highlights {
  grid-column: 8 / span 4;
  align-self: end;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.hero-highlight {
  padding: 0.8rem 0 0.8rem 1rem;
  border-left: 2px solid rgba(255, 255, 255, 0.78);
}

.hero-highlight strong {
  display: block;
  margin-bottom: 0.2rem;
  font-family: var(--display);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.hero-highlight span {
  display: block;
  font-size: 1rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.96);
}

.section {
  padding: 4.5rem 0 0;
}

.section-heading {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space);
  align-items: end;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line-strong);
}

.section-label,
.chart-label,
.bases-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent);
}

.hero-label:empty,
.section-label:empty {
  display: none;
}

.section-heading .section-label {
  grid-column: 1 / span 3;
}

.section-heading h2 {
  grid-column: 1 / span 7;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  font-weight: 700;
}

.section-intro {
  grid-column: 8 / span 5;
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted);
}

.story-layout,
.split-section,
.team-section {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space);
  padding-top: 2rem;
}

.story-section,
.progress-section,
.analysis-section,
#wins,
#team,
#connect {
  border-top: 1px solid var(--line);
}

.story-flow {
  grid-column: 1 / span 8;
  display: grid;
  gap: 1.5rem;
}

.story-item,
.list-item {
  padding: 0 0 1.5rem;
  border-bottom: 1px solid var(--line);
}

.story-item h3,
.list-item h3 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: 1.55rem;
  line-height: 1.12;
  font-weight: 700;
}

.story-item p,
.list-item p,
.bases-text,
.ranking-table td {
  margin: 0;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--muted);
}

.story-rail {
  grid-column: 9 / span 4;
  display: grid;
  gap: 1.5rem;
  align-content: start;
}

.rail-image,
.split-image {
  margin: 0;
  border: 1px solid var(--line);
}

.rail-image img,
.split-image img {
  height: 100%;
  object-fit: cover;
}

.rail-image:first-child {
  min-height: 360px;
}

.rail-image:last-child {
  min-height: 220px;
}

.chart-panel {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space);
  align-items: start;
  padding-top: 2rem;
}

.chart-copy {
  grid-column: 1 / span 3;
}

.chart-shell {
  grid-column: 4 / span 9;
  min-height: 320px;
  border: 1px solid var(--line);
  padding: 1rem;
}

.chart-shell svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.chart-grid line {
  stroke: var(--line);
  stroke-width: 1;
}

.chart-axis,
.chart-point-label {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.04em;
  fill: var(--muted);
}

.chart-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.chart-dot {
  fill: #ffffff;
  stroke: var(--accent);
  stroke-width: 2;
}

.table-panel {
  margin-top: 1.5rem;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}

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

.ranking-table th,
.ranking-table td {
  padding: 1rem 0.5rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.ranking-table th {
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--fg);
}

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

.split-copy {
  grid-column: 1 / span 7;
  display: grid;
  gap: 1rem;
  align-content: start;
}

.split-copy .section-label {
  margin-top: 0.25rem;
}

.split-copy h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.4rem, 4.5vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  font-weight: 700;
}

.stacked-section {
  border-top: 1px solid var(--line);
}

.stacked-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space);
  padding-top: 2rem;
}

.stacked-block {
  grid-column: span 6;
  display: grid;
  gap: 1rem;
  align-content: start;
}

.stacked-block h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  font-weight: 700;
  max-width: 12ch;
}

.stacked-grid--media .stacked-block {
  grid-column: 1 / span 7;
}

.stacked-block .section-intro,
.stacked-block .section-label {
  grid-column: auto;
  max-width: 34rem;
}

.stacked-block .section-intro {
  margin: 0;
}

.stacked-media {
  grid-column: 9 / span 4;
  min-height: 520px;
  margin: 0;
  border: 1px solid var(--line);
}

.stacked-media img {
  height: 100%;
  object-fit: cover;
}

.list-stack,
.brand-grid {
  display: grid;
  gap: 1rem;
}

.brand-grid {
  grid-template-columns: 1fr;
  align-content: start;
}

.brand-card {
  display: grid;
  grid-template-columns: minmax(96px, 120px) minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  min-height: auto;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
}

.brand-card img {
  width: 100%;
  max-width: 100px;
  max-height: 64px;
  object-fit: contain;
}

.brand-card-head {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
}

.brand-card-copy {
  display: grid;
  gap: 0.25rem;
  padding-left: 1rem;
  border-left: 1px solid var(--line);
}

.brand-card-copy strong {
  font-family: var(--display);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.brand-card-copy span {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
}

.list-item a {
  color: var(--accent);
  text-decoration: none;
}

.team-rebuild,
.contact-rebuild {
  border-top: 1px solid var(--line);
}

.team-rebuild-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 3rem;
  padding-top: 2rem;
  align-items: start;
}

.team-copy,
.team-equipment,
.contact-shell {
  min-width: 0;
}

.team-copy h2,
.contact-header h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  font-weight: 700;
}

.team-equipment h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  font-weight: 700;
}

.team-copy .section-intro,
.team-equipment .section-intro,
.contact-header .section-intro {
  margin: 0.75rem 0 0;
  max-width: 34rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
}

.team-copy .list-stack,
.contact-box .list-stack {
  display: grid;
  gap: 0;
  margin-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.team-copy .list-item,
.contact-box .list-item {
  display: grid;
  gap: 0.45rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.team-copy .list-item h3,
.contact-box .list-item h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0;
}

.team-copy .list-item p,
.contact-box .list-item p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
}

.team-equipment {
  padding-left: 2rem;
  border-left: 1px solid var(--line);
}

.team-equipment .brand-grid {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.brand-card {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  min-height: auto;
  padding: 1rem;
  border: 1px solid var(--line);
}

.brand-card img {
  width: 100%;
  max-width: 72px;
  max-height: 52px;
  object-fit: contain;
}

.brand-card-head {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
}

.brand-card-copy {
  display: grid;
  gap: 0.2rem;
  padding-left: 1rem;
  border-left: 1px solid var(--line);
}

.brand-card-copy strong {
  font-family: var(--display);
  font-size: 0.98rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.brand-card-copy span {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
}

.contact-shell {
  display: grid;
  gap: 1.5rem;
  padding-top: 2rem;
}

.contact-header {
  max-width: 42rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
  gap: 2rem;
  align-items: start;
}

.contact-box {
  min-width: 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.contact-box--bases {
  padding-left: 1rem;
}

.contact-box--bases .bases-label {
  display: block;
  margin: 0 0 0.85rem;
  color: var(--accent);
}

.contact-box--bases .bases-text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.9;
  max-width: 28rem;
}

.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr;
    height: auto;
    justify-items: center;
    padding: 0.85rem 1rem;
  }

  main {
    padding-top: 108px;
  }

  .hero {
    min-height: calc(100vh - 108px);
  }

  .hero-inner,
  .section-heading,
  .story-layout,
  .chart-panel,
  .split-section,
  .stacked-grid,
  .team-rebuild-grid,
  .contact-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .hero-label,
  .hero h1,
  .hero-slogan,
  .hero-subtitle,
  .hero-highlights,
  .section-heading .section-label,
  .section-heading h2,
  .section-intro,
  .story-flow,
  .story-rail,
  .chart-copy,
  .chart-shell,
  .split-copy,
  .split-image,
  .stacked-block,
  .stacked-media,
  .team-copy,
  .team-equipment,
  .contact-box,
  .contact-header {
    grid-column: 1 / -1;
  }

  .story-rail,
  .brand-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-equipment {
    padding-left: 0;
    border-left: 0;
  }

  .team-rebuild-grid,
  .contact-grid,
  .brand-card {
    grid-template-columns: 1fr;
  }

  .contact-box--bases {
    padding-left: 0;
  }

  .brand-card-copy {
    padding-left: 0;
    padding-top: 0.85rem;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .split-image,
  .stacked-media {
    min-height: 360px;
  }
}

@media (max-width: 640px) {
  .hero-inner,
  .section {
    width: min(calc(100% - 1.5rem), var(--max));
  }

  .hero-inner {
    padding-bottom: 2rem;
  }

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

  .hero-slogan {
    font-size: clamp(1.4rem, 7vw, 2rem);
  }

  .hero-highlight span {
    font-size: 0.95rem;
  }

  .section {
    padding-top: 3rem;
  }

  .story-rail,
  .brand-grid {
    grid-template-columns: 1fr;
  }

  .team-copy .list-item h3,
  .contact-box .list-item h3 {
    margin-bottom: 0.25rem;
  }

  .team-copy h2,
  .contact-header h2 {
    font-size: clamp(1.5rem, 9vw, 1.9rem);
  }

  .site-footer {
    width: min(calc(100% - 1.5rem), var(--max));
    margin-top: 3rem;
  }

  .chart-shell {
    min-height: 260px;
    padding: 0.75rem;
  }

  .ranking-table,
  .ranking-table thead,
  .ranking-table tbody,
  .ranking-table tr,
  .ranking-table th,
  .ranking-table td {
    display: block;
    width: 100%;
  }

  .ranking-table thead {
    display: none;
  }

  .ranking-table tr {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
  }

  .ranking-table td {
    padding: 0.35rem 0;
    border-bottom: 0;
  }
}
