/* ============================================================
   AOYA GLOBAL · SITE KIT
   /assets/site.css — reset / tokens / shell / shared components
   ============================================================ */

:root {
  --deep-sea: #0B2A3F;
  --paper: #F5F1E8;
  --ink: #111416;
  --coral: #F26B4B;
  --coral-deep: #B8472F;
  --sand: #D9B36C;
  --mist: #9BAF9F;
  --shallow: #DCE8ED;
  --stone: #E4E0D6;
  --white: #FFFFFF;

  --rail: 264px;
  --header-h: 64px;
  --content-max: 1320px;
  --gutter: clamp(20px, 4vw, 64px);

  --font-head: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Source Han Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

  --ease: cubic-bezier(.2, .7, .3, 1);
  --progress: 0%;
}

/* ---------- 1. reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; }
ul[class], ol[class] { list-style: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; color: inherit; }
hr { border: 0; }

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- 2. skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 400;
  padding: 10px 18px;
  background: var(--coral);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  border-radius: 3px;
  transform: translateY(-220%);
  transition: transform .16s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible { transform: translateY(0); }

/* ---------- 3. header shell (mobile first) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: var(--header-h);
  padding: 0 16px;
  background: var(--deep-sea);
  color: var(--paper);
  border-bottom: 1px solid rgba(245, 241, 232, .14);
}

.scroll-progress {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 221;
  height: 3px;
  pointer-events: none;
}
.scroll-progress-bar {
  display: block;
  height: 100%;
  width: var(--progress, 0%);
  background: var(--coral);
}

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

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.brand-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  background: var(--coral);
  color: #fff;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  clip-path: polygon(0 0, 100% 0, 100% 68%, 68% 100%, 0 100%);
}
.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}
.brand-name {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
  white-space: nowrap;
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .26em;
  color: var(--sand);
  white-space: nowrap;
}
.brand-tagline { display: none; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: none;
  padding: 9px 13px;
  border: 1px solid rgba(245, 241, 232, .32);
  border-radius: 3px;
  color: var(--paper);
  font-size: 13px;
  letter-spacing: .1em;
  transition: border-color .16s var(--ease), background-color .16s var(--ease);
}
.nav-toggle:hover { border-color: var(--coral); background: rgba(245, 241, 232, .06); }
.nav-toggle-bars {
  display: grid;
  gap: 4px;
  width: 18px;
}
.nav-toggle-bars > span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform .18s var(--ease), opacity .18s var(--ease);
}
.site-header[data-open="true"] .nav-toggle-bars > span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header[data-open="true"] .nav-toggle-bars > span:nth-child(2) { opacity: 0; }
.site-header[data-open="true"] .nav-toggle-bars > span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-toggle-label { line-height: 1; }

/* ---------- 4. navigation drawer (mobile) ---------- */
.site-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 219;
  padding: 22px 18px 48px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--deep-sea);
  border-top: 1px solid rgba(245, 241, 232, .12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s linear;
}
.site-header[data-open="true"] .site-nav {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
body.nav-open { overflow: hidden; }

.nav-heading {
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--mist);
}

.nav-list {
  display: grid;
  gap: 2px;
}
.nav-link {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 12px 12px 14px;
  border-radius: 3px;
  color: rgba(245, 241, 232, .84);
  font-size: 16px;
  font-weight: 600;
  transition: color .14s var(--ease), background-color .14s var(--ease);
}
.nav-link:hover,
.nav-link:focus-visible { color: #fff; background: rgba(245, 241, 232, .07); }
.nav-num {
  flex: none;
  width: 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--sand);
}
.nav-name { min-width: 0; }

.nav-link[aria-current="page"] {
  color: #fff;
  background: rgba(242, 107, 75, .16);
  box-shadow: inset 3px 0 0 var(--coral);
}
.nav-link[aria-current="page"] .nav-num { color: var(--coral); }

.nav-quick {
  display: grid;
  gap: 8px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px dashed rgba(245, 241, 232, .22);
}
.quick-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  border-left: 2px solid var(--sand);
  background: rgba(245, 241, 232, .06);
  color: var(--paper);
  font-size: 14px;
  line-height: 1.4;
  transition: background-color .14s var(--ease), border-color .14s var(--ease);
}
.quick-link::after {
  content: "\2192";
  flex: none;
  font-family: var(--font-mono);
  color: var(--sand);
}
.quick-link:hover {
  background: rgba(245, 241, 232, .13);
  border-left-color: var(--coral);
}
.quick-link:hover::after { color: var(--coral); }

/* ---------- 5. footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 96px);
  background: var(--deep-sea);
  color: var(--paper);
  border-top: 4px solid var(--coral);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px 32px;
  max-width: var(--content-max);
  margin-inline-end: auto;
  padding: clamp(38px, 5vw, 64px) var(--gutter) clamp(30px, 4vw, 44px);
}

.footer-brandline {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: #fff;
}
.footer-brandline span {
  display: inline-block;
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .26em;
  color: var(--sand);
  vertical-align: 3px;
}
.footer-summary {
  max-width: 34ch;
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(245, 241, 232, .68);
}
.footer-tick {
  display: block;
  width: 64px;
  height: 3px;
  margin-top: 20px;
  background: var(--coral);
}

.footer-col-title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--mist);
}
.footer-links {
  display: grid;
  gap: 9px;
}
.footer-links a {
  font-size: 14.5px;
  line-height: 1.5;
  color: rgba(245, 241, 232, .82);
  transition: color .14s var(--ease);
}
.footer-links a:hover,
.footer-links a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.footer-contact {
  display: grid;
  gap: 18px 40px;
  max-width: var(--content-max);
  margin-inline-end: auto;
  padding: 26px var(--gutter) 0;
  border-top: 1px solid rgba(245, 241, 232, .16);
}
.contact-item { min-width: 0; }
.contact-label {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--mist);
}
.contact-value {
  display: block;
  font-size: 14px;
  line-height: 1.6;
  color: #fff;
  overflow-wrap: anywhere;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 32px;
  max-width: var(--content-max);
  margin: 26px auto 0 0;
  padding: 18px var(--gutter) clamp(26px, 4vw, 36px);
  border-top: 1px solid rgba(245, 241, 232, .14);
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(245, 241, 232, .58);
}
.footer-copy { font-family: var(--font-mono); letter-spacing: .02em; }
.footer-legal-note { max-width: 56ch; }

.to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 150;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  background: var(--deep-sea);
  color: var(--paper);
  font-size: 12.5px;
  letter-spacing: .14em;
  border-radius: 3px;
  border: 1px solid rgba(245, 241, 232, .22);
  box-shadow: 0 8px 22px rgba(11, 42, 63, .3);
  transition: background-color .16s var(--ease), transform .16s var(--ease), border-color .16s var(--ease);
}
.to-top::before {
  content: "\2191";
  font-family: var(--font-mono);
  color: var(--coral);
}
.to-top:hover { background: #123a55; border-color: var(--coral); }
.to-top:active { transform: translateY(1px); }
.to-top[hidden] { display: none; }

/* ---------- 6. shared layout utilities ---------- */
.u-container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline-end: auto;
  padding: clamp(26px, 4vw, 52px) var(--gutter);
}

.grid-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 56px);
}
.grid-duo {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 34px);
}
.grid-trio {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 30px);
}

/* ---------- 7. shared components ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1.5px solid transparent;
  border-radius: 3px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .01em;
  text-align: center;
  transition: background-color .16s var(--ease), color .16s var(--ease),
              border-color .16s var(--ease), transform .16s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--coral);
  color: #fff;
}
.btn--primary:hover { background: var(--coral-deep); }

.btn--outline {
  border-color: var(--deep-sea);
  color: var(--deep-sea);
  background: transparent;
}
.btn--outline:hover { background: var(--deep-sea); color: var(--paper); }

.btn--ghost {
  background: var(--shallow);
  color: var(--deep-sea);
}
.btn--ghost:hover { background: #c9dde6; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: rgba(17, 20, 22, .58);
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before {
  content: "/";
  color: var(--stone);
}
.breadcrumb a { color: var(--deep-sea); border-bottom: 1px solid transparent; }
.breadcrumb a:hover { border-bottom-color: var(--coral); }
.breadcrumb [aria-current="page"] { color: var(--coral-deep); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--coral-deep);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  flex: none;
  background: var(--coral);
}
.eyebrow--onDark { color: var(--sand); }

.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: clamp(20px, 3vw, 32px);
}
.section-num {
  font-family: var(--font-mono);
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 700;
  line-height: .9;
  letter-spacing: -0.04em;
  color: var(--coral);
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--deep-sea);
}
.section-kicker {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(17, 20, 22, .62);
  max-width: 60ch;
}

.lede {
  max-width: 46ch;
  font-size: clamp(16.5px, 1.6vw, 19px);
  line-height: 1.75;
  color: #2a3238;
}

.prose {
  max-width: 68ch;
  font-size: 16.5px;
  line-height: 1.85;
  color: #1c2226;
}
.prose > * + * { margin-top: 1.05em; }
.prose h2 {
  margin-top: 1.9em;
  font-family: var(--font-head);
  font-size: clamp(21px, 2.6vw, 26px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--deep-sea);
}
.prose h3 {
  margin-top: 1.6em;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--deep-sea);
}
.prose ul,
.prose ol { padding-left: 1.3em; }
.prose ul { list-style: square; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--coral); }
.prose a {
  color: var(--coral-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
.prose a:hover { color: var(--deep-sea); }
.prose strong { color: var(--deep-sea); font-weight: 700; }
.prose blockquote {
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--coral);
  color: rgba(17, 20, 22, .78);
}

.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--stone);
  background-color: var(--shallow);
  background-image: repeating-linear-gradient(135deg, rgba(11, 42, 63, .07) 0 1px, transparent 1px 9px);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}
.media-frame > img,
.media-frame > svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-caption {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(17, 20, 22, .58);
}

.cut-panel {
  position: relative;
  padding: clamp(20px, 3vw, 32px);
  background: var(--white);
  border: 1px solid var(--stone);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
}
.panel--shallow { background: var(--shallow); border-color: #c7d9e1; }
.panel--deep {
  background: var(--deep-sea);
  border-color: rgba(245, 241, 232, .18);
  color: var(--paper);
}
.panel--deep .section-title,
.panel--deep strong { color: #fff; }

.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.5;
  background: var(--shallow);
  color: var(--deep-sea);
}
.tag--sand { background: rgba(217, 179, 108, .26); color: #7a5716; }
.tag--mist { background: rgba(155, 175, 159, .28); color: #3d5245; }
.tag--coral { background: rgba(242, 107, 75, .16); color: var(--coral-deep); }

.stat { display: block; }
.stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--deep-sea);
}
.stat-label {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(17, 20, 22, .55);
}

.rule-line {
  display: block;
  width: 100%;
  height: 1px;
  margin: 0;
  border: 0;
  background: currentColor;
  opacity: .18;
}

/* ---------- 8. tablet ---------- */
@media (min-width: 700px) {
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-contact { grid-template-columns: repeat(3, minmax(0, auto)); justify-content: start; }
  .grid-duo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-trio { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .to-top { right: 24px; bottom: 24px; }
}

@media (min-width: 860px) {
  .grid-split { grid-template-columns: 7fr 5fr; align-items: start; }
  .grid-split--reverse { grid-template-columns: 5fr 7fr; }
}

@media (min-width: 1080px) {
  .grid-trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- 9. desktop rail ---------- */
@media (min-width: 981px) {
  body { padding-left: var(--rail); }

  .site-header {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--rail);
    height: auto;
    padding: 30px 0 26px;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    overflow-y: auto;
    border-bottom: 0;
    border-right: 1px solid rgba(245, 241, 232, .14);
  }

  .scroll-progress {
    top: 0;
    bottom: 0;
    left: calc(var(--rail) - 3px);
    right: auto;
    width: 3px;
    height: auto;
  }
  .scroll-progress-bar {
    width: 100%;
    height: var(--progress, 0%);
  }

  .header-brand { display: block; }
  .brand-lockup { padding: 0 22px 0 26px; }
  .brand-mark { width: 46px; height: 46px; font-size: 20px; }
  .brand-name { font-size: 19px; }
  .brand-sub { font-size: 10.5px; }
  .brand-tagline {
    display: block;
    margin: 22px 22px 0 26px;
    padding-left: 12px;
    border-left: 2px solid var(--coral);
    font-size: 12.5px;
    line-height: 1.65;
    color: rgba(245, 241, 232, .62);
  }

  .nav-toggle { display: none; }

  .site-nav {
    position: static;
    z-index: auto;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    margin-top: 32px;
    padding: 0 16px 0 26px;
    overflow: visible;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border-top: 0;
    transition: none;
  }

  .nav-list { gap: 1px; }
  .nav-link {
    padding: 10px 10px 10px 12px;
    font-size: 15px;
    border-radius: 2px;
  }
  .nav-num { width: 20px; font-size: 10.5px; }

  .nav-heading { font-size: 10px; letter-spacing: .24em; }

  .nav-quick {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px dashed rgba(245, 241, 232, .2);
  }
  .quick-link { font-size: 13px; padding: 10px 11px; }

  .footer-inner { gap: 44px 40px; padding-inline: var(--gutter); }
  .footer-contact { padding-inline: var(--gutter); }
  .footer-base { padding-inline: var(--gutter); }
  .to-top { right: 28px; bottom: 28px; }
}

@media (min-width: 1180px) {
  .footer-inner { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .footer-brand { grid-column: auto; }
}

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

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0ms !important;
  }

  .site-nav { transform: none; }
  .skip-link { transition: none; }
}
