/* ==========================================================================
   首页
   ========================================================================== */

.home-hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  overflow: hidden;
  padding-top: var(--header-h);
  background: var(--ink);
  color: var(--paper);
}

.home-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: radial-gradient(ellipse 80% 80% at 40% 45%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 40% 45%, #000 20%, transparent 75%);
  pointer-events: none;
}

.home-hero__glow {
  position: absolute;
  top: 8%;
  right: 4%;
  width: 46vw;
  height: 46vw;
  max-width: 760px;
  max-height: 760px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 90, 31, 0.17), transparent 68%);
  filter: blur(8px);
  pointer-events: none;
}

.home-hero__media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 61%;
  overflow: hidden;
  pointer-events: none;
}

.home-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0%;
  filter: brightness(1.16) saturate(0.95) contrast(1.03);
  opacity: 0.96;
}

@media (min-width: 961px) {
  .home-hero__media {
    top: var(--header-h);
    height: calc(100% - var(--header-h));
  }
}

.home-hero__media::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  background:
    linear-gradient(90deg, var(--ink) 0%, rgba(11, 14, 21, 0.88) 17%, rgba(11, 14, 21, 0.12) 66%, rgba(11, 14, 21, 0.42) 100%),
    linear-gradient(0deg, var(--ink) 0%, transparent 28%, transparent 82%, rgba(11, 14, 21, 0.55) 100%);
}

.home-hero__media::after {
  content: "";
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  left: 42%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 90, 31, 0.34), transparent);
  opacity: 0.7;
}

.home-hero__inner {
  position: relative;
  z-index: 5;
  display: flex;
  flex: 1;
  align-items: center;
  padding-top: clamp(40px, 8vh, 96px);
  padding-bottom: clamp(30px, 5vh, 54px);
}

.hero-copy {
  max-width: 880px;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(24px, 3vw, 38px);
  color: rgba(255, 255, 255, 0.58);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
}

.hero-kicker__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 5px rgba(255, 90, 31, 0.14);
  animation: pulse 2.8s ease-in-out infinite;
}

.hero-title {
  max-width: 900px;
  color: var(--paper);
  font-size: clamp(57px, 8.6vw, 128px);
  font-weight: 700;
  letter-spacing: -0.075em;
  line-height: 0.98;
  text-wrap: balance;
}

.hero-title__line {
  display: block;
}

.hero-title__accent {
  position: relative;
  display: inline-block;
  padding-bottom: 0.055em;
}

.hero-title__accent::after {
  content: "";
  position: absolute;
  right: 0.02em;
  bottom: 0;
  left: 0.02em;
  height: 0.055em;
  min-height: 4px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  animation: hero-line 1.1s 0.7s var(--ease) forwards;
}

@keyframes hero-line {
  to { transform: scaleX(1); }
}

.hero-title__dot {
  color: var(--orange);
}

.hero-lead {
  max-width: 580px;
  margin-top: clamp(26px, 3vw, 36px);
  color: rgba(255, 255, 255, 0.62);
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.9;
}

.hero-lead strong {
  color: var(--paper);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: clamp(30px, 4vw, 44px);
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
}

.hero-note__tags {
  display: flex;
  gap: 13px;
}

.hero-note__tags span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-note__tags span::before {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--orange);
}

.hero-side-label {
  position: absolute;
  z-index: 6;
  top: 50%;
  right: 27px;
  display: flex;
  align-items: center;
  gap: 18px;
  color: rgba(255, 255, 255, 0.3);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.18em;
  writing-mode: vertical-rl;
  transform: translateY(-50%);
}

.hero-side-label i {
  width: 1px;
  height: 54px;
  background: rgba(255, 255, 255, 0.18);
}

.hero-hud {
  position: absolute;
  z-index: 7;
  right: 5.5%;
  bottom: 19%;
  width: 212px;
  border: 1px solid rgba(255, 255, 255, 0.19);
  background: rgba(8, 11, 16, 0.66);
  color: var(--paper);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-hud__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.48);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.hero-hud__top span:last-child {
  color: var(--orange);
}

.hero-hud__body {
  padding: 14px 12px 12px;
}

.hero-hud__reticle {
  position: relative;
  width: 48px;
  height: 48px;
  margin-bottom: 13px;
  border: 1px solid rgba(255, 90, 31, 0.55);
  border-radius: 50%;
}

.hero-hud__reticle::before,
.hero-hud__reticle::after {
  content: "";
  position: absolute;
  background: var(--orange);
}

.hero-hud__reticle::before {
  top: 50%;
  right: -7px;
  left: -7px;
  height: 1px;
}

.hero-hud__reticle::after {
  top: -7px;
  bottom: -7px;
  left: 50%;
  width: 1px;
}

.hero-hud__reticle i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
  transform: translate(-50%, -50%);
}

.hero-hud__data {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 12px;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.04em;
}

.hero-hud__data b {
  display: block;
  color: var(--paper);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.home-hero__foot {
  position: relative;
  z-index: 8;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  background: linear-gradient(180deg, rgba(11, 14, 21, 0.2), rgba(11, 14, 21, 0.72));
  backdrop-filter: blur(4px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 0.8fr)) minmax(210px, 1.5fr);
  align-items: stretch;
}

.hero-stat {
  display: flex;
  min-height: 118px;
  flex-direction: column;
  justify-content: center;
  padding: 22px clamp(18px, 2.6vw, 34px);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-stat:first-child {
  padding-left: 0;
}

.hero-stat strong {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: var(--paper);
  font-family: var(--font-en);
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.hero-stat strong em {
  color: var(--orange);
  font-family: var(--font-sans);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0;
}

.hero-stat p {
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  letter-spacing: 0.03em;
}

.hero-scroll {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0 22px clamp(18px, 2.6vw, 34px);
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.hero-scroll__line {
  position: relative;
  width: 54px;
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.2);
}

.hero-scroll__line::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--orange);
  animation: scroll-line 2.2s ease-in-out infinite;
}

@keyframes scroll-line {
  0% { transform: translateX(-100%); }
  55%, 100% { transform: translateX(100%); }
}

/* --------------------------------------------------------------------------
   Tech strip
   -------------------------------------------------------------------------- */

.tech-strip {
  overflow: hidden;
  border-top: 1px solid rgba(11, 14, 21, 0.18);
  border-bottom: 1px solid rgba(11, 14, 21, 0.18);
  background: var(--orange);
  color: var(--ink);
}

.tech-strip__track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}

.tech-strip:hover .tech-strip__track {
  animation-play-state: paused;
}

.tech-strip__group {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 13px 30px 13px 0;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.tech-strip__group .icon {
  width: 9px;
  height: 9px;
  opacity: 0.55;
}

/* --------------------------------------------------------------------------
   Positioning
   -------------------------------------------------------------------------- */

.positioning {
  overflow: hidden;
}

.positioning__head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.55fr);
  gap: clamp(30px, 5vw, 84px);
  align-items: end;
  margin-top: 30px;
}

.positioning__head .display {
  max-width: 840px;
}

.positioning__copy {
  padding-bottom: 9px;
}

.positioning__copy p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.positioning__copy p + p {
  margin-top: 14px;
}

.closed-loop {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(48px, 6vw, 78px);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.loop-node {
  position: relative;
  min-height: 166px;
  padding: 25px 24px;
  border-right: 1px solid var(--line);
  transition: background 0.3s ease, color 0.3s ease;
}

.loop-node:last-child {
  border-right: 0;
}

.loop-node:hover {
  background: var(--ink);
  color: var(--paper);
}

.loop-node__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.loop-node__top span:first-child {
  color: var(--orange);
}

.loop-node h3 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.loop-node p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  transition: color 0.3s ease;
}

.loop-node:hover p {
  color: rgba(255, 255, 255, 0.52);
}

.loop-node::after {
  content: "→";
  position: absolute;
  z-index: 2;
  top: 50%;
  right: -9px;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 8px;
  transform: translateY(-50%);
}

.loop-node:last-child::after {
  content: "↺";
  right: auto;
  left: -9px;
}

.loop-node:hover::after {
  border-color: var(--orange);
  background: var(--orange);
}

.positioning__body {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: clamp(36px, 6vw, 90px);
  align-items: center;
  margin-top: clamp(54px, 6vw, 82px);
}

.positioning__figure {
  position: relative;
}

.positioning__figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.8) contrast(1.02);
}

.positioning__figure::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  bottom: 12px;
  left: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  pointer-events: none;
}

.positioning__figure figcaption {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 13px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.positioning__figure figcaption .icon {
  color: var(--orange);
  font-size: 13px;
}

.positioning__quote {
  position: absolute;
  z-index: 3;
  right: -22px;
  bottom: 44px;
  width: min(280px, 64%);
  padding: 22px;
  background: var(--orange);
  color: var(--ink);
}

.positioning__quote span {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  opacity: 0.82;
}

.positioning__quote p {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.55;
}

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

.principle {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.principle__num {
  padding-top: 3px;
  color: var(--orange-deep);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.principle h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.principle p {
  max-width: 460px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.principles__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
}

.principles__foot span {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.09em;
}

/* --------------------------------------------------------------------------
   Business lines
   -------------------------------------------------------------------------- */

.business {
  overflow: hidden;
}

.biz-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: clamp(40px, 5vw, 62px);
}

.biz-card {
  position: relative;
  display: flex;
  min-height: 446px;
  flex-direction: column;
  padding: clamp(24px, 2.6vw, 34px);
  border: 1px solid var(--line);
  background: var(--paper);
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease, border-color 0.35s ease;
}

.biz-card:hover {
  transform: translateY(-7px);
  border-color: transparent;
  box-shadow: 0 24px 50px rgba(11, 14, 21, 0.12);
}

.biz-card--dark {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.biz-card--orange {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--ink);
}

.biz-card--outline {
  border-top: 3px solid var(--orange);
  background: var(--white);
}

.biz-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: auto;
  padding-bottom: 28px;
}

.biz-card__num {
  color: var(--orange-deep);
  font-family: var(--font-mono);
  font-size: 11px;
}

.biz-card--dark .biz-card__num {
  color: var(--orange);
}

.biz-card--orange .biz-card__num {
  color: rgba(11, 14, 21, 0.9);
}

.biz-card__en {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-align: right;
}

.biz-card--dark .biz-card__en {
  color: rgba(255, 255, 255, 0.6);
}

.biz-card--orange .biz-card__en {
  color: rgba(11, 14, 21, 0.88);
}

.biz-card__glyph {
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
  color: var(--orange);
}

.biz-card--orange .biz-card__glyph {
  color: var(--ink);
}

.biz-card--outline .biz-card__glyph {
  color: var(--orange-deep);
}

.biz-card h3 {
  font-size: clamp(24px, 2.3vw, 30px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.biz-card__desc {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.biz-card--dark .biz-card__desc {
  color: rgba(255, 255, 255, 0.52);
}

.biz-card--orange .biz-card__desc {
  color: rgba(11, 14, 21, 0.88);
}

.biz-card__list {
  margin-top: 22px;
  border-top: 1px solid var(--line);
}

.biz-card--dark .biz-card__list {
  border-color: var(--line-dark);
}

.biz-card--orange .biz-card__list {
  border-color: rgba(11, 14, 21, 0.2);
}

.biz-card__list li {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.biz-card--dark .biz-card__list li {
  border-color: var(--line-dark);
  color: rgba(255, 255, 255, 0.52);
}

.biz-card--orange .biz-card__list li {
  border-color: rgba(11, 14, 21, 0.16);
  color: rgba(11, 14, 21, 0.88);
}

.biz-card__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
}

.biz-card--dark .biz-card__link {
  border-color: var(--line-dark);
  color: var(--orange);
}

.biz-card--orange .biz-card__link {
  border-color: rgba(11, 14, 21, 0.2);
}

.biz-card__link .icon {
  font-size: 15px;
  transition: transform 0.25s var(--ease);
}

.biz-card:hover .biz-card__link .icon {
  transform: translate(3px, -3px);
}

.stack-strip {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.stack-strip__label {
  flex: none;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.stack-strip ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
}

.stack-strip li {
  color: var(--muted);
  font-size: 11.5px;
}

.stack-strip li::before {
  content: "+";
  margin-right: 7px;
  color: var(--orange);
  font-family: var(--font-mono);
}

/* --------------------------------------------------------------------------
   Featured projects
   -------------------------------------------------------------------------- */

.featured-projects {
  overflow: hidden;
}

.featured-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-top: 30px;
}

.featured-head .display {
  max-width: 800px;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: clamp(40px, 5vw, 62px);
}

.fp-card {
  position: relative;
  display: flex;
  min-height: 440px;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  background: var(--ink-2);
  color: var(--paper);
  isolation: isolate;
}

.fp-card__media {
  position: absolute;
  z-index: -2;
  inset: 0;
}

.fp-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.76) contrast(1.08);
  transition: transform 0.7s var(--ease), filter 0.5s ease;
}

.fp-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 14, 21, 0.02) 15%, rgba(11, 14, 21, 0.36) 48%, rgba(11, 14, 21, 0.94) 100%),
    linear-gradient(90deg, rgba(11, 14, 21, 0.18), transparent 60%);
}

.fp-card:hover .fp-card__media img {
  transform: scale(1.045);
  filter: saturate(0.92) contrast(1.05);
}

.fp-card__top {
  position: absolute;
  top: 20px;
  right: 20px;
  left: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.fp-card__cat {
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(11, 14, 21, 0.28);
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  backdrop-filter: blur(6px);
}

.fp-card__num {
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-mono);
  font-size: 9px;
}

.fp-card__body {
  padding: 26px 22px;
}

.fp-card__title {
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.3;
}

.fp-card__desc {
  max-width: 340px;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  line-height: 1.7;
}

.fp-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.07em;
}

.fp-card__foot .icon {
  color: var(--orange);
  font-size: 16px;
  transition: transform 0.3s var(--ease);
}

.fp-card:hover .fp-card__foot .icon {
  transform: translate(3px, -3px);
}

.project-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(42px, 5vw, 64px);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.project-strip__item {
  padding: 25px 22px;
  border-right: 1px solid var(--line-dark);
}

.project-strip__item:last-child {
  border-right: 0;
}

.project-strip__item strong {
  display: block;
  color: var(--paper);
  font-family: var(--font-en);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

.project-strip__item strong em {
  margin-left: 4px;
  color: var(--orange);
  font-family: var(--font-sans);
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
}

.project-strip__item p {
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
}

/* --------------------------------------------------------------------------
   Education preview
   -------------------------------------------------------------------------- */

.edu-preview {
  overflow: hidden;
}

.edu-preview__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(38px, 6vw, 88px);
  align-items: center;
  margin-top: 36px;
}

.edu-visual {
  position: relative;
}

.edu-visual__frame {
  position: relative;
  overflow: hidden;
}

.edu-visual__frame img {
  width: 100%;
  aspect-ratio: 4 / 3.3;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.03);
}

.edu-visual__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(11, 14, 21, 0.75));
}

.edu-visual__label {
  position: absolute;
  z-index: 2;
  bottom: 22px;
  left: 22px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  right: 22px;
  color: var(--paper);
}

.edu-visual__label span {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
}

.edu-visual__label strong {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  font-weight: 500;
}

.edu-visual__badge {
  display: grid;
  width: 92px;
  height: 92px;
  flex: none;
  place-content: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(11, 14, 21, 0.22);
  text-align: center;
  backdrop-filter: blur(7px);
}

.edu-visual__badge b {
  color: var(--orange);
  font-family: var(--font-en);
  font-size: 26px;
  font-weight: 600;
  line-height: 1;
}

.edu-visual__badge span {
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.1em;
}

.edu-preview__copy .display {
  max-width: 620px;
}

.edu-preview__copy > p {
  max-width: 490px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.9;
}

.edu-preview__stats {
  display: flex;
  gap: 34px;
  margin: 26px 0 30px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.edu-preview__stats strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-en);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.edu-preview__stats strong em {
  margin-left: 4px;
  color: var(--orange-deep);
  font-family: var(--font-sans);
  font-size: 10px;
  font-style: normal;
  font-weight: 500;
}

.edu-preview__stats span {
  display: block;
  margin-top: 6px;
  color: var(--muted-2);
  font-size: 10px;
}

.edu-path {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  margin-top: clamp(48px, 6vw, 74px);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.edu-path__item {
  position: relative;
  min-height: 148px;
  padding: 19px 14px 18px;
  border-right: 1px solid var(--line);
  transition: background 0.3s ease, color 0.3s ease;
}

.edu-path__item:last-child {
  border-right: 0;
}

.edu-path__item:hover {
  background: var(--ink);
  color: var(--paper);
}

.edu-path__item span {
  display: block;
  color: var(--orange-deep);
  font-family: var(--font-mono);
  font-size: 9px;
}

.edu-path__item h3 {
  margin-top: 34px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.45;
}

.edu-path__item p {
  margin-top: 5px;
  color: var(--muted-2);
  font-size: 9.5px;
  line-height: 1.55;
}

.edu-path__item:hover p {
  color: rgba(255, 255, 255, 0.45);
}

/* --------------------------------------------------------------------------
   Open source
   -------------------------------------------------------------------------- */

.open-source {
  position: relative;
  overflow: hidden;
}

.open-source::before {
  content: "OPEN";
  position: absolute;
  right: -0.04em;
  bottom: -0.24em;
  color: rgba(11, 14, 21, 0.055);
  font-family: var(--font-en);
  font-size: 36vw;
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 0.8;
  pointer-events: none;
}

.open-source__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(38px, 6vw, 92px);
  align-items: center;
}

.open-source__copy .display {
  max-width: 630px;
  color: var(--ink);
}

.open-source__copy > p {
  max-width: 470px;
  margin-top: 20px;
  color: rgba(11, 14, 21, 0.84);
  font-size: 14.5px;
  line-height: 1.9;
}

.open-source__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 30px;
}

.open-source__actions .text-link {
  border-color: rgba(11, 14, 21, 0.36);
  color: var(--ink);
}

.open-source__actions .text-link:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.terminal {
  border: 1px solid rgba(11, 14, 21, 0.55);
  background: var(--ink);
  color: #c8d2d8;
  box-shadow: 14px 14px 0 rgba(11, 14, 21, 0.12);
}

.terminal__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal__bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.terminal__bar i:first-child {
  background: var(--orange);
}

.terminal__bar span {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.58);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.04em;
}

.terminal pre {
  margin: 0;
  padding: 24px 22px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.9;
}

.terminal .cmd {
  color: var(--orange);
}

.terminal .dim {
  color: rgba(255, 255, 255, 0.62);
}

.terminal .ok {
  color: #9bd3a8;
}

.terminal__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.09em;
}

.open-source__resources {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin-top: clamp(44px, 5vw, 66px);
}

.os-card {
  display: flex;
  min-height: 152px;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: 17px;
  border: 1px solid rgba(11, 14, 21, 0.38);
  background: var(--paper);
  color: var(--ink);
  transition: background 0.25s ease, transform 0.25s var(--ease), border-color 0.25s ease;
}

.os-card:hover {
  border-color: var(--ink);
  background: var(--white);
  transform: translateY(-4px);
}

.os-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: rgba(11, 14, 21, 0.72);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.08em;
}

.os-card__top .icon {
  font-size: 14px;
}

.os-card h3 {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.5;
}

.os-card p {
  margin-top: 6px;
  color: rgba(11, 14, 21, 0.72);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   Cooperation preview
   -------------------------------------------------------------------------- */

.coop-home__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(38px, 6vw, 92px);
  align-items: start;
  margin-top: 34px;
}

.coop-home__copy .display {
  max-width: 600px;
}

.coop-home__copy > p {
  max-width: 460px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.9;
}

.coop-home__copy .btn {
  margin-top: 28px;
}

.coop-list {
  border-top: 1px solid var(--line-strong);
}

.coop-item {
  display: grid;
  grid-template-columns: 48px 1fr 24px;
  gap: 20px;
  align-items: start;
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.25s var(--ease), background 0.25s ease;
}

.coop-item:hover {
  padding-left: 10px;
  background: rgba(255, 255, 255, 0.32);
}

.coop-item__num {
  padding-top: 4px;
  color: var(--orange-deep);
  font-family: var(--font-mono);
  font-size: 10px;
}

.coop-item h3 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.coop-item p {
  max-width: 470px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.75;
}

.coop-item .icon {
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 17px;
  transition: color 0.2s ease, transform 0.25s var(--ease);
}

.coop-item:hover .icon {
  color: var(--orange);
  transform: translate(3px, -3px);
}

.coop-process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(44px, 5vw, 64px);
  border-top: 1px solid var(--line);
}

.coop-step {
  position: relative;
  padding: 21px 22px 0;
  border-right: 1px solid var(--line);
}

.coop-step:first-child {
  padding-left: 0;
}

.coop-step:last-child {
  border-right: 0;
}

.coop-step__num {
  color: var(--orange-deep);
  font-family: var(--font-mono);
  font-size: 9px;
}

.coop-step h3 {
  margin-top: 13px;
  font-size: 16px;
  font-weight: 600;
}

.coop-step p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Home responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  .home-hero__media {
    width: 56%;
  }

  .hero-hud {
    right: 4%;
    bottom: 24%;
    width: 190px;
  }

  .hero-title {
    font-size: clamp(54px, 8.8vw, 104px);
  }

  .positioning__quote {
    right: 14px;
  }

  .biz-grid {
    grid-template-columns: 1fr 1fr;
  }

  .edu-path {
    grid-template-columns: repeat(4, 1fr);
  }

  .edu-path__item:nth-child(4) {
    border-right: 0;
  }

  .edu-path__item:nth-child(-n + 4) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 960px) {
  .home-hero {
    min-height: auto;
  }

  .home-hero__media {
    top: 0;
    width: 100%;
    height: 64%;
    opacity: 0.82;
  }

  @media (min-width: 961px) {
  .home-hero__media {
    top: var(--header-h);
    height: calc(100% - var(--header-h));
  }
}

.home-hero__media::before {
    background:
      linear-gradient(180deg, rgba(11, 14, 21, 0.52) 0%, rgba(11, 14, 21, 0.16) 36%, var(--ink) 94%),
      linear-gradient(90deg, var(--ink) 0%, rgba(11, 14, 21, 0.48) 45%, transparent 100%);
  }

  .home-hero__media img {
    object-position: 66% 16%;
  }

  .home-hero__inner {
    padding-top: clamp(150px, 30vh, 320px);
    padding-bottom: 54px;
  }

  .hero-title {
    font-size: clamp(52px, 9.6vw, 94px);
    letter-spacing: -0.06em;
  }

  .hero-hud {
    display: none;
  }

  .hero-side-label {
    display: none;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-stat {
    min-height: 100px;
  }

  .hero-stat:nth-child(3) {
    border-right: 0;
  }

  .hero-scroll {
    display: none;
  }

  .hero-stat:first-child {
    padding-left: 0;
  }

  .positioning__head,
  .positioning__body,
  .edu-preview__grid,
  .open-source__grid,
  .coop-home__grid,
  .cta-band__grid {
    grid-template-columns: 1fr;
  }

  .positioning__quote {
    right: 20px;
    bottom: 28px;
  }

  .closed-loop {
    grid-template-columns: 1fr 1fr;
  }

  .loop-node:nth-child(2) {
    border-right: 0;
  }

  .loop-node:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .loop-node:nth-child(2)::after {
    display: none;
  }

  .biz-grid,
  .featured-grid {
    grid-template-columns: 1fr;
  }

  .biz-card {
    min-height: 0;
  }

  .biz-card__top {
    margin-bottom: 24px;
  }

  .fp-card {
    min-height: 390px;
  }

  .project-strip {
    grid-template-columns: 1fr 1fr;
  }

  .project-strip__item:nth-child(2) {
    border-right: 0;
  }

  .project-strip__item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line-dark);
  }

  .open-source__grid {
    gap: 38px;
  }

  .open-source__resources {
    grid-template-columns: 1fr 1fr;
  }

  .coop-home__grid {
    gap: 34px;
  }

  .coop-process {
    grid-template-columns: 1fr 1fr;
  }

  .coop-step:nth-child(2) {
    border-right: 0;
  }

  .coop-step:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
    padding-bottom: 22px;
  }

  .cta-band__side {
    padding-bottom: 0;
  }
}

@media (max-width: 640px) {
  .home-hero__inner {
    padding-top: 132px;
    padding-bottom: 40px;
  }

  .home-hero__media {
    height: 58%;
  }

  .home-hero__media img {
    object-position: 70% 14%;
  }

  .hero-kicker {
    margin-bottom: 20px;
    font-size: 9px;
    letter-spacing: 0.1em;
  }

  .hero-title {
    font-size: clamp(43px, 12.6vw, 62px);
    letter-spacing: -0.055em;
    line-height: 1.02;
  }

  .hero-lead {
    margin-top: 22px;
    font-size: 14px;
    line-height: 1.8;
  }

  .hero-actions {
    margin-top: 26px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .hero-actions .btn--ghost {
    flex: 0 1 auto;
  }

  .hero-note {
    margin-top: 22px;
    gap: 8px 12px;
    font-size: 8px;
  }

  .hero-note__tags {
    gap: 9px;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-stat {
    min-height: 88px;
    padding: 17px 10px;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
  }

  .hero-stat:nth-child(2) {
    border-right: 1px solid rgba(255, 255, 255, 0.12);
  }

  .hero-stat:nth-child(3) {
    border-top: 0;
    border-right: 0;
  }

  .hero-stat strong {
    font-size: 28px;
  }

  .hero-stat p {
    margin-top: 6px;
    font-size: 9.5px;
  }

  .hero-stat:first-child {
    padding-left: 0;
  }

  .section-head {
    margin-top: 18px;
  }

  .closed-loop {
    grid-template-columns: 1fr;
  }

  .loop-node {
    min-height: 0;
    padding: 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .loop-node:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .loop-node:last-child {
    border-bottom: 0;
  }

  .loop-node::after {
    top: auto;
    right: 0;
    bottom: -9px;
    left: auto;
    transform: rotate(90deg);
  }

  .loop-node:last-child::after {
    display: none;
  }

  .loop-node__top {
    margin-bottom: 16px;
  }

  .positioning__quote {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 10px;
    padding: 18px;
  }

  .positioning__figure::before {
    top: 8px;
    right: 8px;
    bottom: 8px;
    left: 8px;
  }

  .positioning__body {
    margin-top: 40px;
  }

  .principle {
    grid-template-columns: 38px 1fr;
    gap: 12px;
    padding: 18px 0;
  }

  .principles__foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .biz-grid,
  .featured-grid {
    margin-top: 32px;
  }

  .biz-card {
    padding: 22px;
  }

  .stack-strip {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .stack-strip ul {
    gap: 8px 16px;
  }

  .featured-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .fp-card {
    min-height: 340px;
  }

  .project-strip {
    margin-top: 34px;
  }

  .project-strip__item {
    padding: 20px 14px;
  }

  .project-strip__item strong {
    font-size: 22px;
  }

  .edu-preview__grid {
    margin-top: 28px;
  }

  .edu-visual__badge {
    width: 76px;
    height: 76px;
  }

  .edu-preview__stats {
    gap: 22px;
  }

  .edu-preview__stats strong {
    font-size: 23px;
  }

  .edu-path {
    grid-template-columns: 1fr 1fr;
    margin-top: 36px;
  }

  .edu-path__item {
    min-height: 128px;
    padding: 16px 12px;
  }

  .edu-path__item:nth-child(2n) {
    border-right: 0;
  }

  .edu-path__item:nth-child(-n + 6) {
    border-bottom: 1px solid var(--line);
  }

  .edu-path__item h3 {
    margin-top: 26px;
    font-size: 13px;
  }

  .open-source__copy > p {
    font-size: 13.5px;
  }

  .open-source__actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .terminal {
    box-shadow: 7px 7px 0 rgba(11, 14, 21, 0.12);
  }

  .terminal pre {
    padding: 18px 15px;
    font-size: 9.5px;
  }

  .terminal__foot {
    flex-wrap: wrap;
    font-size: 7px;
  }

  .open-source__resources {
    grid-template-columns: 1fr;
    margin-top: 34px;
  }

  .os-card {
    min-height: 118px;
  }

  .coop-item {
    grid-template-columns: 34px 1fr 20px;
    gap: 12px;
    padding: 18px 0;
  }

  .coop-item h3 {
    font-size: 18px;
  }

  .coop-process {
    grid-template-columns: 1fr;
    margin-top: 34px;
  }

  .coop-step {
    padding: 16px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .coop-step:last-child {
    border-bottom: 0;
  }

  .cta-band {
    padding: 70px 0;
  }

  .cta-band__meta {
    margin-top: 26px;
  }

  .cta-band__actions .btn {
    flex: 1 1 auto;
  }
}

/* --------------------------------------------------------------------------
   Visit / map
   -------------------------------------------------------------------------- */

.visit-section {
  border-top: 1px solid var(--line);
  background: var(--paper-2);
}

.visit-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 5vw, 82px);
  align-items: stretch;
  margin-top: 34px;
}

.visit-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.visit-lead {
  max-width: 460px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

.visit-address {
  margin-top: 28px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.visit-address__label {
  color: var(--orange-deep);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.06em;
}

.visit-address p {
  margin-top: 8px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.7;
}

.visit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.visit-note {
  margin-top: 17px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.02em;
  line-height: 1.8;
}

.visit-map {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #e7e3da;
}

.visit-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 440px;
  border: 0;
  filter: saturate(0.82) contrast(0.96);
}

.visit-map__pin {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 17px;
  height: 17px;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 9px rgba(255, 90, 31, 0.16), 0 5px 18px rgba(11, 14, 21, 0.25);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.visit-map__pin::after {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 1px;
  height: 19px;
  background: var(--orange);
  content: "";
  transform: translateX(-50%);
}

.visit-map__badge {
  position: absolute;
  top: 15px;
  left: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(11, 14, 21, 0.12);
  background: rgba(244, 241, 234, 0.92);
  box-shadow: 0 5px 15px rgba(11, 14, 21, 0.08);
  pointer-events: none;
}

.visit-map__badge span {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.05em;
}

.visit-map__badge strong {
  color: var(--orange-deep);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
}

.visit-map__credit {
  position: absolute;
  right: 13px;
  bottom: 10px;
  padding: 4px 6px;
  background: rgba(244, 241, 234, 0.86);
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.01em;
  pointer-events: none;
}

@media (max-width: 960px) {
  .visit-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .visit-map,
  .visit-map iframe {
    min-height: 360px;
  }
}

@media (max-width: 640px) {
  .visit-map,
  .visit-map iframe {
    min-height: 280px;
  }

  .visit-address p {
    font-size: 15px;
  }
}

/* Full-width visit map (redesign) */

.visit-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: clamp(30px, 6vw, 110px);
  align-items: end;
  margin-top: 28px;
}

.visit-head .display {
  font-size: clamp(42px, 4.8vw, 70px);
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.visit-head__intro {
  max-width: 430px;
  padding-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

.visit-canvas {
  position: relative;
  min-height: 560px;
  margin-top: 32px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #e7e3da;
}

.visit-canvas iframe {
  display: block;
  width: 100%;
  height: 560px;
  border: 0;
  filter: saturate(0.82) contrast(0.96);
}

.visit-panel {
  position: absolute;
  top: 26px;
  left: 26px;
  width: min(390px, calc(100% - 52px));
  padding: 25px 24px 20px;
  border: 1px solid rgba(11, 14, 21, 0.12);
  background: rgba(244, 241, 234, 0.96);
  box-shadow: 0 18px 45px rgba(11, 14, 21, 0.16);
  backdrop-filter: blur(8px);
}

.visit-panel__eyebrow {
  color: var(--orange-deep);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.06em;
}

.visit-panel h3 {
  margin-top: 13px;
  color: var(--ink);
  font-size: clamp(24px, 2.3vw, 31px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.35;
}

.visit-panel h3 em {
  color: var(--orange-deep);
  font-style: normal;
}

.visit-panel__addr {
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.7;
}

.visit-panel .visit-actions {
  margin-top: 18px;
}

.visit-panel .visit-note {
  margin-top: 14px;
}

@media (max-width: 960px) {
  .visit-head {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .visit-canvas {
    min-height: 480px;
  }

  .visit-canvas iframe {
    height: 480px;
  }
}

@media (max-width: 640px) {
  .visit-canvas {
    min-height: 520px;
    margin-top: 24px;
  }

  .visit-canvas iframe {
    height: 300px;
  }

  .visit-panel {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    margin: -18px 14px 14px;
    padding: 20px 18px 17px;
  }

  .visit-map__pin {
    top: 150px;
  }

  .visit-map__credit {
    top: 270px;
    bottom: auto;
    right: 12px;
  }
}


.visit-break-mobile {
  display: none;
}

@media (max-width: 640px) {
  .visit-break-mobile {
    display: block;
  }
}

/* --------------------------------------------------------------------------
   Scenario rail + resource/news band (2026.10)
   -------------------------------------------------------------------------- */

.scene-section {
  padding-bottom: clamp(46px, 5vw, 72px);
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}

.scene-section .section-top {
  border-color: rgba(255, 255, 255, 0.16);
}

.scene-section .section-number,
.scene-section .section-top__note {
  color: rgba(255, 255, 255, 0.52);
}

.scene-section .section-number b {
  color: var(--orange);
}

.scene-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.55fr);
  gap: clamp(24px, 6vw, 100px);
  align-items: end;
  margin-top: 26px;
}

.scene-head .display {
  color: var(--paper);
  font-size: clamp(38px, 5vw, 70px);
  line-height: 1.08;
}

.scene-head .display em {
  color: var(--orange);
}

.scene-head__intro {
  max-width: 380px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  line-height: 1.8;
}

.scene-rail {
  display: flex;
  gap: 12px;
  margin-top: 34px;
  padding-bottom: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}

.scene-card {
  position: relative;
  flex: 0 0 clamp(280px, 31vw, 430px);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #161b24;
  scroll-snap-align: start;
}

.scene-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.05) brightness(0.82);
  transition: transform 0.6s var(--ease), filter 0.4s ease;
}

.scene-card:hover img {
  transform: scale(1.035);
  filter: saturate(0.95) contrast(1.02) brightness(0.95);
}

.scene-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 14, 21, 0.02) 30%, rgba(11, 14, 21, 0.9) 100%);
  pointer-events: none;
}

.scene-card__overlay {
  position: absolute;
  z-index: 1;
  left: 18px;
  right: 18px;
  bottom: 16px;
}

.scene-card__overlay span {
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.08em;
}

.scene-card__overlay h3 {
  margin-top: 7px;
  color: var(--paper);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.scene-card__overlay p {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  line-height: 1.5;
}

.scene-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.04em;
}

.resource-news {
  background: var(--paper);
}

.rn-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 12px;
  margin-top: 32px;
}

.rn-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: start;
  min-height: 210px;
  padding: 24px 22px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease;
}

.rn-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(11, 14, 21, 0.08);
}

.rn-card--dark {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.rn-card--orange {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink);
}

.rn-card__num {
  font-family: var(--font-mono);
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.06em;
  color: var(--orange-deep);
}

.rn-card--dark .rn-card__num,
.rn-card--orange .rn-card__num {
  color: var(--orange);
}

.rn-card--orange .rn-card__num {
  color: var(--ink);
}

.rn-card__eyebrow {
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  color: var(--muted-2);
}

.rn-card--dark .rn-card__eyebrow {
  color: rgba(255, 255, 255, 0.45);
}

.rn-card--orange .rn-card__eyebrow {
  color: rgba(11, 14, 21, 0.82);
}

.rn-card h3 {
  margin-top: 12px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.rn-card p {
  margin-top: 8px;
  max-width: 260px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.rn-card--dark p {
  color: rgba(255, 255, 255, 0.56);
}

.rn-card--orange p {
  color: rgba(11, 14, 21, 0.9);
}

.rn-card > .icon {
  width: 16px;
  height: 16px;
  color: currentColor;
  opacity: 0.65;
}

@media (max-width: 960px) {
  .scene-head {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .rn-grid {
    grid-template-columns: 1fr 1fr;
  }

  .rn-card:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .scene-card {
    flex-basis: 78vw;
  }

  .scene-head .display {
    font-size: clamp(34px, 10vw, 44px);
  }

  .scene-foot {
    display: block;
    line-height: 1.7;
  }

  .scene-foot span {
    display: block;
  }

  .scene-foot span + span {
    margin-top: 4px;
  }

  .rn-grid {
    grid-template-columns: 1fr;
  }

  .rn-card:first-child {
    grid-column: auto;
  }

  .rn-card {
    min-height: 170px;
  }
}


.visit-map__static {
  display: none;
}

@media (max-width: 640px) {
  .visit-canvas iframe {
    display: none;
  }

  .visit-map__static {
    display: block;
    width: 100%;
    height: 300px;
    object-fit: cover;
  }
}


.visit-panel__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 13px;
  color: var(--orange-deep);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.03em;
  border-bottom: 1px solid rgba(185, 55, 4, 0.3);
  padding-bottom: 2px;
}

.visit-panel__link .icon {
  width: 11px;
  height: 11px;
}


.scene-rail:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}

.hero-sub {
  max-width: 560px;
  margin-top: 20px;
  padding-left: 12px;
  border-left: 2px solid var(--orange);
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

/* Home national base block */

.home-base {
  background: var(--paper);
}

.home-base__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  margin-top: clamp(26px, 4vw, 44px);
}

.home-base__copy .display {
  font-size: clamp(38px, 4.6vw, 62px);
  line-height: 1.1;
}

.home-base__copy .display em {
  color: var(--orange-deep);
}

.home-base__copy > p {
  max-width: 540px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.85;
}

.home-base__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 22px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}

.home-base__stats div {
  padding: 14px 12px 13px 0;
  border-right: 1px solid var(--line);
}

.home-base__stats div + div {
  padding-left: 14px;
}

.home-base__stats div:last-child {
  border-right: 0;
}

.home-base__stats strong {
  display: block;
  font-size: clamp(24px, 2.3vw, 33px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
}

.home-base__stats strong em {
  color: var(--orange-deep);
  font-style: normal;
  font-size: 0.55em;
  margin-left: 1px;
}

.home-base__stats span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 7px;
}

.home-base__copy .text-link {
  margin-top: 17px;
}

.home-base__visual {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink);
}

.home-base__visual img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.03);
}

.home-base__visual figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px;
  border-top: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.68);
  font-family: var(--font-mono);
  font-size: 7px;
}

@media (max-width: 900px) {
  .home-base__grid {
    grid-template-columns: 1fr;
  }
}

/* Cognition / field notes */

.cognition-home {
  background: var(--paper-2);
}

.cognition-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 32px;
}

.cognition-card {
  display: flex;
  flex-direction: column;
  min-height: 170px;
  padding: 20px 18px;
  border: 1px solid var(--line);
  background: var(--white);
  transition: transform 0.3s var(--ease), border-color 0.3s ease;
}

.cognition-card:hover {
  transform: translateY(-2px);
  border-color: var(--orange);
}

.cognition-card > span {
  color: var(--orange-deep);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.08em;
}

.cognition-card h3 {
  margin-top: 18px;
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: -0.03em;
}

.cognition-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.7;
}

.cognition-card i {
  margin-top: auto;
  padding-top: 16px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 8px;
  font-style: normal;
}

@media (max-width: 900px) {
  .cognition-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .cognition-grid {
    grid-template-columns: 1fr;
  }
}

/* Outcomes framework — hidden until real data is provided */

.outcome-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 30px;
}

.outcome-stat {
  padding: 22px 20px;
  border: 1px solid var(--line);
  background: var(--white);
}

.outcome-stat strong {
  display: block;
  font-size: clamp(30px, 3vw, 46px);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1;
}

.outcome-stat span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
}

.outcome-cases {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.outcome-case {
  padding: 22px 20px;
  border: 1px solid var(--line);
  background: var(--paper-2);
}

.outcome-case span {
  color: var(--orange-deep);
  font-family: var(--font-mono);
  font-size: 8px;
}

.outcome-case h3 {
  margin-top: 14px;
  font-size: 20px;
}

.outcome-case p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

@media (max-width: 820px) {
  .outcome-grid {
    grid-template-columns: 1fr 1fr;
  }

  .outcome-cases {
    grid-template-columns: 1fr;
  }
}
