@font-face {
  font-family: Ravi;
  src: url('/fonts/RaviFaNum-VF.woff2') format('woff2');
  font-display: swap;
  font-weight: 100 900;
}

:root {
  color-scheme: light;
  --paper: #fff;
  --mineral: #f5f7f3;
  --ink: #111412;
  --graphite: #4b636f;
  --muted: #626963;
  --line: #d8ded8;
  --green: #087a57;
  --green-deep: #005d3b;
  --blue: #3157e8;
  --orange: #e95a48;
  --page: min(1320px, calc(100vw - 80px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Ravi, sans-serif;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
.skip-link { position: fixed; top: 8px; right: 8px; z-index: 50; padding: 10px 14px; background: var(--ink); color: white; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.section-shell { width: var(--page); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 84px;
  width: 100%;
  padding-inline: max(40px, calc((100vw - 1320px) / 2));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
  transition: border-color 180ms ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.brand { justify-self: start; width: 190px; }
.brand img { width: 100%; height: auto; }
.main-nav { display: flex; gap: 34px; align-items: center; font-size: 15px; }
.main-nav a, .header-tools a { border-bottom: 1px solid transparent; padding-block: 8px; }
.main-nav a:hover, .header-tools a:hover { border-bottom-color: var(--green); }
.header-tools { justify-self: end; display: flex; align-items: center; gap: 18px; font-size: 14px; }
.language { border: 0; background: none; color: var(--ink); cursor: pointer; }
.header-rule { width: 1px; height: 24px; background: var(--line); }
.menu-toggle { display: none; border: 1px solid var(--line); background: white; padding: 8px 12px; cursor: pointer; }

.hero {
  min-height: 900px;
  padding-block: 72px 52px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: minmax(500px, auto) auto;
  gap: 0 24px;
  align-items: center;
}
.hero-visual { grid-column: 6 / 13; grid-row: 1; align-self: center; }
.hero-visual img { width: 100%; aspect-ratio: 1.5; object-fit: contain; }
.hero-copy { grid-column: 1 / 6; grid-row: 1; align-self: center; }
.eyebrow, .section-index { margin: 0 0 20px; color: var(--green); font-size: 14px; font-weight: 650; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 28px; font-size: clamp(44px, 4.6vw, 70px); line-height: 1.22; font-weight: 760; }
.lead { max-width: 500px; color: var(--graphite); font-size: 20px; line-height: 1.9; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 38px; }
.button { min-height: 54px; padding: 14px 28px; display: inline-flex; align-items: center; justify-content: center; }
.button-primary { background: var(--green-deep); color: white; }
.button-primary:hover { background: #004b30; }
.text-link { padding-block: 12px; border-bottom: 1px solid var(--ink); }
.text-link span { margin-right: 8px; }
.promise { margin: 28px 0 0; color: var(--muted); font-size: 15px; }
.promise span { color: var(--green); font-size: 25px; vertical-align: -3px; margin-left: 7px; }
.market-switcher { grid-column: 1 / -1; grid-row: 2; border-top: 1px solid var(--line); }
.market-row {
  display: grid;
  grid-template-columns: 90px 1fr 28px;
  gap: 28px;
  align-items: center;
  min-height: 76px;
  border-bottom: 1px solid var(--line);
  transition: background-color 160ms ease, padding 160ms ease;
}
.market-row:hover, .market-row.is-active { background: var(--mineral); padding-inline: 18px; }
.market-row .market-code { font: 700 19px/1 Arial, sans-serif; color: var(--green); direction: ltr; }
.market-row[data-market="b2b"] .market-code { color: var(--blue); }
.market-row[data-market="b2g"] .market-code { color: var(--orange); }
.market-row strong { font-size: 18px; font-weight: 650; }
.market-row small { color: var(--muted); margin-right: 18px; font-size: 13px; }

.section-intro { display: grid; grid-template-columns: 2fr 5fr 5fr; gap: 24px; align-items: start; }
.section-intro h2 { font-size: clamp(34px, 4vw, 58px); line-height: 1.3; margin: 0; }
.section-intro > p:last-child { color: var(--graphite); font-size: 18px; line-height: 1.8; }
.architecture { padding-block: 130px 110px; }
.architecture-visual { margin: 72px 0 48px; border-block: 1px solid var(--line); overflow: hidden; }
.architecture-visual img { width: 100%; aspect-ratio: 2.46; object-fit: cover; }
.architecture-list { margin-right: 33.333%; }
.architecture-list a { display: grid; grid-template-columns: 150px 1fr 24px; gap: 24px; align-items: center; min-height: 70px; border-bottom: 1px solid var(--line); }
.architecture-list a:first-child { border-top: 1px solid var(--line); }
.architecture-list span { color: var(--muted); }
.architecture-list b { font-weight: 400; }

.film { padding-block: 110px; border-top: 1px solid var(--line); }
.film-heading { margin-bottom: 56px; }
.film-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 1px solid var(--ink); border-radius: 0; overflow: hidden; background: var(--mineral); cursor: pointer; }
.film-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms cubic-bezier(.2,.7,.2,1); }
.film-frame:hover img { transform: scale(1.012); }
.play-label { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); min-width: 112px; min-height: 54px; display: grid; place-items: center; background: white; border: 1px solid var(--ink); color: var(--ink); }
.film-frame:hover .play-label { background: var(--green-deep); color: white; border-color: var(--green-deep); }
.film-meta { display: grid; grid-template-columns: 1fr 2fr 2fr; min-height: 66px; align-items: center; border-bottom: 1px solid var(--line); }
.film-meta button { height: 100%; text-align: right; background: transparent; border: 0; border-right: 1px solid var(--line); cursor: pointer; padding-inline: 28px; color: var(--graphite); }
.film-meta button:hover { color: var(--green); }

.market-index { padding-block: 110px; border-top: 1px solid var(--line); }
.compact-intro { margin-bottom: 60px; }
.market-chapter { min-height: 170px; display: grid; grid-template-columns: 1fr 4fr 5fr 2fr; gap: 24px; align-items: center; border-top: 1px solid var(--line); }
.market-chapter:last-child { border-bottom: 1px solid var(--line); }
.market-chapter .market-code { direction: ltr; font: 700 35px/1 Arial, sans-serif; color: var(--green); }
.market-chapter.b2b .market-code { color: var(--blue); }
.market-chapter.b2g .market-code { color: var(--orange); }
.market-chapter h3 { margin: 0; font-size: 27px; line-height: 1.4; }
.market-chapter > p:not(.market-code) { margin: 0; color: var(--muted); line-height: 1.9; }
.market-chapter a { justify-self: end; border-bottom: 1px solid var(--ink); padding-bottom: 6px; }

.intelligence { padding-block: 130px; display: grid; grid-template-columns: 5fr 7fr; gap: 80px; align-items: end; background: var(--mineral); box-shadow: 0 0 0 100vmax var(--mineral); clip-path: inset(0 -100vmax); }
.intelligence h2 { font-size: clamp(42px, 5vw, 68px); line-height: 1.25; }
.intelligence-copy > p:last-child { color: var(--graphite); line-height: 1.9; max-width: 460px; }
.intelligence-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-bottom: 2px solid var(--green); }
.intelligence-flow li { position: relative; padding: 0 0 26px; font-size: 18px; }
.intelligence-flow li::after { content: ''; position: absolute; bottom: -6px; right: 0; width: 10px; height: 10px; background: var(--green); border-radius: 50%; }
.intelligence-flow span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 8px; }

.operations { padding-block: 120px; }
.operations-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); }
.operations-grid a { min-height: 76px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.operations-grid a:nth-child(odd) { margin-left: 36px; }
.operations-grid a:nth-child(even) { margin-right: 36px; }
.operations-grid a:hover { color: var(--green); }

.journey { padding-block: 90px; border-top: 6px solid var(--ink); }
.journey h2 { font-size: clamp(42px, 5vw, 72px); margin-bottom: 54px; }
.journey-actions { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.journey-actions button { min-height: 84px; display: flex; justify-content: space-between; align-items: center; padding-inline: 0 26px; background: transparent; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 18px; }
.journey-actions button + button { border-right: 1px solid var(--line); padding-right: 26px; }
.journey-actions button:hover { color: var(--green); background: var(--mineral); }
.journey-feedback { min-height: 30px; margin-top: 22px; color: var(--green-deep); }

.site-footer { min-height: 180px; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.site-footer img { width: 150px; }
.site-footer p:last-child { justify-self: end; }

.film-dialog { width: min(1100px, calc(100vw - 40px)); padding: 0; border: 1px solid var(--ink); border-radius: 0; background: white; }
.film-dialog::backdrop { background: rgba(17,20,18,.72); }
.dialog-head { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-inline: 24px; border-bottom: 1px solid var(--line); }
.dialog-head h2 { margin: 0; font-size: 20px; }
.dialog-head button { background: transparent; border: 0; border-bottom: 1px solid var(--ink); cursor: pointer; }
.film-dialog > img { width: 100%; }
.film-dialog > p { padding: 18px 24px 22px; margin: 0; color: var(--muted); }

@media (max-width: 900px) {
  :root { --page: min(100% - 40px, 760px); }
  .site-header { height: 72px; padding-inline: 20px; grid-template-columns: 1fr auto auto; gap: 16px; }
  .brand { width: 142px; }
  .menu-toggle { display: block; grid-column: 2; }
  .main-nav { display: none; position: absolute; top: 72px; inset-inline: 20px; padding: 18px; background: white; border: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 4px; }
  .main-nav.is-open { display: flex; }
  .header-tools { grid-column: 3; }
  .header-tools .header-rule, .header-tools a { display: none; }
  .hero { min-height: auto; padding-block: 48px 36px; grid-template-rows: auto auto auto; }
  .hero-copy { grid-column: 1 / -1; grid-row: 1; }
  .hero-visual {
    grid-column: 1 / -1;
    grid-row: 2;
    height: 330px;
    margin-block: 8px 28px;
    display: grid;
    place-items: center;
    overflow: hidden;
  }
  .hero-visual img { width: 145%; max-width: none; }
  .market-switcher { grid-row: 3; }
  .section-intro { grid-template-columns: 1fr; gap: 8px; }
  .architecture, .film, .market-index, .operations { padding-block: 80px; }
  .architecture-list { margin-right: 0; }
  .architecture-list a { grid-template-columns: 100px 1fr 20px; }
  .market-chapter { grid-template-columns: 1fr 3fr; padding-block: 28px; }
  .market-chapter > p:not(.market-code), .market-chapter a { grid-column: 2; justify-self: start; }
  .intelligence { grid-template-columns: 1fr; gap: 50px; padding-block: 80px; }
  .intelligence-flow { overflow-x: auto; min-width: 0; }
  .intelligence-flow li { min-width: 100px; }
  .operations-grid { grid-template-columns: 1fr; }
  .operations-grid a:nth-child(n) { margin: 0; }
  .journey-actions { grid-template-columns: 1fr; }
  .journey-actions button + button { border-right: 0; padding-right: 0; }
  .site-footer { grid-template-columns: 1fr; gap: 14px; padding-block: 40px; }
  .site-footer p { margin: 0; }
  .site-footer p:last-child { justify-self: start; }
}

@media (max-width: 520px) {
  :root { --page: calc(100% - 28px); }
  h1 { font-size: 40px; }
  .lead { font-size: 17px; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 10px; }
  .button, .text-link { width: 100%; justify-content: center; text-align: center; }
  .market-row { grid-template-columns: 58px 1fr 16px; gap: 12px; }
  .hero-visual { height: 280px; }
  .hero-visual img { width: 158%; }
  .market-row small { display: block; margin: 5px 0 0; }
  .architecture-list a { grid-template-columns: 72px 1fr 16px; gap: 12px; }
  .architecture-list span { font-size: 13px; }
  .film-meta { grid-template-columns: 1fr; }
  .film-meta > * { min-height: 52px; display: flex; align-items: center; }
  .film-meta button { border-right: 0; border-top: 1px solid var(--line); padding-inline: 0; }
  .play-label { min-width: 94px; min-height: 46px; }
  .market-chapter { grid-template-columns: 72px 1fr; gap: 14px; }
  .market-chapter .market-code { font-size: 26px; }
  .market-chapter h3 { font-size: 21px; }
  .intelligence-flow { grid-template-columns: repeat(5, 95px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
