:root {
  color-scheme: light;
  --orange: #FF6B2C;
  --orange-soft: #FFB38A;
  --navy: #071A2F;
  --navy-2: #0E2A4A;
  --mint: #2FF2C4;
  --mint-dark: #0FA88A;
  --paper: #F6F1E7;
  --card: #FFFDF8;
  --ink: #0B0F14;
  --fog: #6B7785;
  --alert: #FF3B4E;
  --font-heading: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --font-mono: "IBM Plex Mono", "Roboto Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --content-max: 1260px;
  --gutter: clamp(18px, 4vw, 48px);
  --grid-gap: clamp(18px, 3vw, 36px);
  --header-height: 86px;
  --text-body: 17px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.75;
  overflow-wrap: break-word;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

p,
ul,
ol,
dl,
figure,
blockquote {
  margin: 0;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img,
video {
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

::selection {
  background: var(--orange);
  color: var(--navy);
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

#main-content {
  scroll-margin-top: calc(var(--header-height) + 18px);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 14px;
  z-index: 300;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 14px;
  background: var(--mint);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(52px, 8vw, 110px);
}

.section-head {
  display: grid;
  gap: 14px;
  max-width: 820px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--mint-dark);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: 34px;
  height: 3px;
  background: var(--orange);
}

.display-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(44px, 7vw, 104px);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.93;
  transform: skewX(-2deg);
  transform-origin: left center;
}

.section-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.lede {
  max-width: 64ch;
  color: #38404a;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.7;
}

.prose {
  max-width: 68ch;
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.82;
}

.prose > * + * {
  margin-block-start: 1.15em;
}

.prose h2,
.prose h3 {
  margin-block-start: 1.7em;
  margin-block-end: 0.5em;
  font-family: var(--font-heading);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.prose h2 {
  font-size: clamp(26px, 3vw, 36px);
}

.prose h3 {
  font-size: clamp(21px, 2vw, 27px);
}

.prose a {
  color: var(--mint-dark);
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.prose strong {
  font-weight: 900;
}

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

.span-4 {
  grid-column: span 4;
}

.span-5 {
  grid-column: span 5;
}

.span-7 {
  grid-column: span 7;
}

.span-8 {
  grid-column: span 8;
}

.span-12 {
  grid-column: 1 / -1;
}

.stack > * + * {
  margin-block-start: var(--stack-gap, 18px);
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--cluster-gap, 12px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0.72em 1.2em;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--mint), 0 0 0 6px var(--navy);
}

.btn-primary {
  background: var(--orange);
  color: var(--navy);
}

.btn-primary:hover {
  background: var(--orange-soft);
}

.btn-ghost {
  border-color: rgba(246, 241, 231, 0.42);
  background: rgba(255, 255, 255, 0.02);
  color: var(--paper);
}

.btn-ghost:hover {
  border-color: var(--orange);
  background: rgba(255, 107, 44, 0.14);
  color: #FFFFFF;
}

.btn-sm {
  min-height: 36px;
  padding: 0.5em 0.9em;
  font-size: 13px;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
}

.breadcrumbs {
  color: var(--fog);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--orange);
}

.breadcrumbs a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 160ms ease, color 160ms ease;
}

.breadcrumbs a:hover {
  color: var(--mint-dark);
  border-color: var(--orange);
}

.breadcrumbs [aria-current="page"] {
  color: var(--fog);
}

.image-frame {
  --ratio: 16 / 9;
  position: relative;
  width: 100%;
  aspect-ratio: var(--ratio);
  overflow: hidden;
  border: 1px solid rgba(7, 26, 47, 0.16);
  background:
    linear-gradient(135deg, rgba(255, 107, 44, 0.16), transparent 42%),
    linear-gradient(315deg, rgba(47, 242, 196, 0.12), transparent 48%),
    var(--navy-2);
}

.image-frame img,
.image-frame video,
.image-frame picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-frame::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--orange) 0 35%, var(--mint) 35% 56%, transparent 56%);
  pointer-events: none;
}

.image-frame--wide {
  --ratio: 21 / 9;
}

.image-frame--tall {
  --ratio: 4 / 5;
}

.board {
  position: relative;
  background: var(--card);
  border: 1px solid rgba(7, 26, 47, 0.16);
  box-shadow: 8px 8px 0 rgba(7, 26, 47, 0.06);
}

.board-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 4px solid var(--orange);
  background: var(--navy-2);
  color: var(--paper);
}

.board-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.board-body {
  padding: clamp(18px, 3vw, 28px);
}

.accordion {
  border-top: 1px solid rgba(7, 26, 47, 0.18);
}

.accordion-item {
  border-bottom: 1px solid rgba(7, 26, 47, 0.18);
  background: var(--card);
}

.accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 18px 20px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
  text-align: left;
}

.accordion-trigger::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  transition: color 180ms ease, transform 180ms ease;
}

.accordion-trigger[aria-expanded="true"]::after {
  content: "−";
  color: var(--mint-dark);
  transform: rotate(180deg);
}

.accordion-trigger:hover {
  background: rgba(255, 107, 44, 0.07);
}

.accordion-panel {
  overflow: hidden;
  transition: height 320ms ease, opacity 320ms ease;
}

.accordion-panel-inner {
  max-width: 72ch;
  padding: 0 20px 22px;
  color: #38404a;
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 0;
  border-bottom: 2px solid rgba(7, 26, 47, 0.16);
}

.tab-button {
  appearance: none;
  margin-bottom: -2px;
  padding: 12px 16px;
  border: 0;
  border-bottom: 4px solid transparent;
  background: rgba(7, 26, 47, 0.045);
  color: var(--fog);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.tab-button:hover {
  color: var(--ink);
  background: rgba(255, 107, 44, 0.1);
}

.tab-button[aria-selected="true"] {
  border-bottom-color: var(--orange);
  background: var(--card);
  color: var(--ink);
  box-shadow: inset 0 3px 0 var(--mint);
}

.tab-panel {
  padding-top: 20px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(246, 241, 231, 0.2);
  background: var(--navy);
  color: var(--paper);
  isolation: isolate;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    repeating-linear-gradient(90deg, rgba(246, 241, 231, 0.035) 0 1px, transparent 1px 72px),
    linear-gradient(115deg, transparent 0 62%, rgba(255, 107, 44, 0.08) 62% 78%, transparent 78%);
  pointer-events: none;
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: linear-gradient(90deg, var(--orange) 0 18%, var(--mint) 18% 31%, transparent 31%);
  pointer-events: none;
}

.header-grid {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 46px);
  width: 100%;
  max-width: var(--content-max);
  min-height: var(--header-height);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--paper);
  text-decoration: none;
}

.brand-sign {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 48px;
  height: 48px;
  overflow: hidden;
  background: var(--paper);
  color: var(--navy);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}

.brand-sign::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: var(--orange);
}

.brand-sign-dot {
  position: absolute;
  top: 7px;
  left: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

.brand-sign-slash {
  position: absolute;
  top: -6px;
  right: 10px;
  width: 8px;
  height: 62px;
  background: var(--navy);
  opacity: 0.16;
  transform: rotate(28deg);
}

.brand-sign-num {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 1;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  line-height: 1;
}

.brand-name {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1;
  transform: skewX(-2deg);
  transform-origin: left center;
}

.brand-sub {
  color: var(--orange-soft);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.2;
}

.header-tools {
  display: none;
  align-items: center;
  margin-left: auto;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border: 1px solid rgba(246, 241, 231, 0.38);
  background: transparent;
  color: var(--paper);
  transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease;
}

.nav-toggle:hover {
  border-color: var(--orange);
  background: rgba(255, 107, 44, 0.12);
}

.nav-toggle-word {
  color: var(--orange-soft);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
}

.nav-toggle-icon {
  display: grid;
  gap: 4px;
  width: 20px;
  height: 12px;
}

.nav-toggle-icon span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform 160ms ease, width 160ms ease;
}

.nav-toggle-icon span:last-child {
  width: 70%;
  justify-self: end;
}

.nav-toggle[aria-expanded="true"] {
  border-color: var(--orange);
  color: var(--mint);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:last-child {
  width: 100%;
  transform: translateY(-3px) rotate(-45deg);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.6vw, 22px);
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav-link {
  position: relative;
  display: block;
  padding: 10px;
  color: rgba(246, 241, 231, 0.78);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms ease, background-color 160ms ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 2px;
  height: 3px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 180ms ease;
}

.nav-link::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint);
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 160ms ease;
}

.nav-link:hover {
  color: var(--paper);
  background: rgba(246, 241, 231, 0.05);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-link[aria-current="page"] {
  color: var(--paper);
}

.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-link[aria-current="page"]::before {
  opacity: 1;
}

.nav-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  margin-left: 4px;
  padding-left: 16px;
  border-left: 1px solid rgba(246, 241, 231, 0.2);
}

.nav-entry {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--mint);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  border-bottom: 1px dashed rgba(47, 242, 196, 0.6);
  transition: color 160ms ease, border-color 160ms ease;
}

.nav-entry:hover {
  color: var(--orange-soft);
  border-color: var(--orange-soft);
}

.site-footer {
  position: relative;
  overflow: hidden;
  border-top: 4px solid var(--orange);
  background: var(--navy);
  color: var(--paper);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(122deg, transparent 0 56%, rgba(47, 242, 196, 0.055) 56% 70%, transparent 70%),
    repeating-linear-gradient(90deg, rgba(246, 241, 231, 0.035) 0 1px, transparent 1px 80px);
  pointer-events: none;
}

.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(150px, 0.72fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(26px, 4vw, 54px);
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding: clamp(44px, 6vw, 74px) var(--gutter) clamp(36px, 5vw, 58px);
}

.footer-brand {
  min-width: 0;
}

.footer-brand-link {
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  color: var(--paper);
  text-decoration: none;
}

.footer-brand-name {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  transform: skewX(-2deg);
  transform-origin: left center;
}

.footer-brand-sub {
  color: var(--orange-soft);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.3;
}

.footer-line {
  max-width: 34ch;
  margin-top: 18px;
  margin-bottom: 22px;
  color: rgba(246, 241, 231, 0.72);
  font-size: 15px;
  line-height: 1.75;
}

.footer-route {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 170px;
}

.footer-route-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 13px 0 0 var(--mint);
}

.footer-route-line {
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, var(--orange), var(--mint));
}

.footer-route-num {
  color: rgba(246, 241, 231, 0.55);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
}

.footer-heading {
  margin: 0 0 16px;
  color: var(--orange-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(246, 241, 231, 0.78);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition: color 160ms ease;
}

.footer-link::before {
  content: "→";
  color: var(--orange);
  font-family: var(--font-mono);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.footer-link:hover {
  color: var(--paper);
}

.footer-link:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.footer-contact-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-contact-item {
  display: grid;
  gap: 2px;
}

.footer-label {
  color: rgba(246, 241, 231, 0.5);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.footer-value {
  color: var(--paper);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  word-break: break-word;
}

.footer-note {
  margin-top: 18px;
  padding-left: 12px;
  border-left: 2px solid var(--mint);
  color: rgba(246, 241, 231, 0.58);
  font-size: 12px;
  line-height: 1.7;
}

.footer-address {
  max-width: 31ch;
  margin-bottom: 14px;
  color: rgba(246, 241, 231, 0.72);
  font-size: 14px;
  line-height: 1.7;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 0;
  margin: 0 0 14px;
  list-style: none;
}

.footer-legal-link {
  color: var(--paper);
  font-size: 13px;
  text-decoration: none;
  border-bottom: 1px solid rgba(246, 241, 231, 0.38);
  transition: color 160ms ease, border-color 160ms ease;
}

.footer-legal-link:hover {
  color: var(--orange-soft);
  border-color: var(--orange-soft);
}

.footer-icp {
  display: inline-block;
  padding: 4px 8px;
  background: var(--mint);
  color: var(--navy);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 0 100%);
}

.footer-bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding: 20px var(--gutter) 28px;
  border-top: 1px solid rgba(246, 241, 231, 0.14);
  color: rgba(246, 241, 231, 0.5);
  font-size: 12px;
}

.footer-copy,
.footer-bottom-note {
  margin: 0;
}

@media (max-width: 1100px) {
  :root {
    --header-height: 68px;
  }

  .header-grid {
    justify-content: space-between;
  }

  .header-tools {
    display: flex;
  }

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

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 90;
    display: block;
    max-height: calc(100dvh - var(--header-height));
    margin: 0;
    padding: 18px var(--gutter) 28px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-bottom: 4px solid var(--orange);
    background: var(--navy);
    box-shadow: 0 24px 48px rgba(7, 26, 47, 0.35);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .site-header[data-open] .primary-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-header[data-open] {
    box-shadow: 0 18px 48px rgba(7, 26, 47, 0.34);
  }

  .nav-list {
    display: block;
    border-top: 1px solid rgba(246, 241, 231, 0.14);
  }

  .nav-link {
    padding: 14px 10px;
    border-bottom: 1px solid rgba(246, 241, 231, 0.14);
    font-size: 17px;
  }

  .nav-link::after {
    left: 10px;
    right: 10px;
    bottom: 9px;
  }

  .nav-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0 0;
    padding: 18px 0 0;
    border-top: 1px solid rgba(246, 241, 231, 0.2);
    border-left: 0;
  }

  .nav-entry {
    grid-column: 1 / -1;
    justify-self: start;
    padding: 4px 2px;
  }

  .nav-actions .btn {
    width: 100%;
  }

  .brand-sign {
    width: 42px;
    height: 42px;
  }

  .brand-name {
    font-size: 23px;
  }

  .brand-sub {
    font-size: 9px;
    letter-spacing: 0.16em;
  }

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

@media (max-width: 960px) {
  .grid-12 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .span-4,
  .span-5,
  .span-7,
  .span-8,
  .span-12 {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  :root {
    --text-body: 16px;
  }

  .header-grid {
    gap: 12px;
  }

  .brand-link {
    gap: 9px;
  }

  .brand-sign {
    width: 38px;
    height: 38px;
  }

  .brand-sign-num {
    font-size: 15px;
  }

  .brand-name {
    font-size: 21px;
  }

  .brand-sub {
    font-size: 8px;
  }

  .nav-toggle {
    padding: 8px 9px;
  }

  .nav-toggle-word {
    font-size: 11px;
  }

  .nav-actions {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .display-title {
    transform: skewX(-1.5deg);
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js-ready [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 600ms ease,
    transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js-ready [data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}
