﻿:root {
  --ink: #0c1520;
  --slate: #152536;
  --sky: #1f7aad;
  --sky-soft: #3a9bc8;
  --sun: #e09b2d;
  --sun-deep: #c47f18;
  --mist: #dce6ef;
  --paper: #eef3f7;
  --snow: #f7fafc;
  --line: rgba(12, 21, 32, 0.1);
  --glass: rgba(12, 21, 32, 0.78);
  --font-display: 'Avenir Next Condensed', 'DIN Condensed', 'Bahnschrift', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
  --font-ui: 'Avenir Next', 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
  --font-body: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --wrap: 1120px;
  --ease: cubic-bezier(0.25, 1, 0.5, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(31, 122, 173, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(224, 155, 45, 0.06), transparent 50%),
    var(--paper);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.wrap {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
}

/* —— Top bar —— */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(220, 230, 239, 0.08);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .topbar { background: rgba(12, 21, 32, 0.96); }
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  letter-spacing: 0.04em;
  color: var(--snow);
  line-height: 1.15;
  text-transform: uppercase;
}

.logo em {
  display: block;
  font-family: var(--font-ui);
  font-style: normal;
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--sky-soft);
  margin-top: 0.2rem;
  text-transform: uppercase;
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(220, 230, 239, 0.3);
  background: transparent;
  color: var(--snow);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
}

.nav-list {
  display: flex;
  gap: 0.2rem;
  flex-wrap: wrap;
}

.nav-list a {
  font-family: var(--font-ui);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--mist);
  padding: 0.45rem 0.85rem;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

.nav-list a:hover,
.nav-list a.on {
  color: var(--snow);
  background: rgba(31, 122, 173, 0.25);
}

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--slate);
    border-bottom: 1px solid rgba(220, 230, 239, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease);
  }
  .site-nav.open { max-height: 320px; }
  .nav-list {
    flex-direction: column;
    padding: 0.75rem 1rem 1.25rem;
  }
  .nav-list a { padding: 0.7rem 0.5rem; }
}

/* —— Hero —— */
.vista {
  position: relative;
  min-height: min(92vh, 780px);
  display: flex;
  align-items: flex-end;
  background-color: var(--ink);
  color: var(--snow);
  isolation: isolate;
  overflow: hidden;
}

.vista-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.vista::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(12, 21, 32, 0.88) 0%, rgba(12, 21, 32, 0.55) 45%, rgba(12, 21, 32, 0.35) 100%),
    linear-gradient(to top, rgba(12, 21, 32, 0.75) 0%, transparent 45%);
  z-index: -1;
  pointer-events: none;
}

.vista-body {
  padding: 5rem 0 4rem;
  max-width: 36rem;
  animation: lift 0.9s var(--ease) both;
}

.vista .brand-hero {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.vista .lede {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--mist);
  max-width: 32ch;
  margin-bottom: 1.75rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  padding: 0.85rem 1.4rem;
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

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

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

.btn-ghost {
  background: transparent;
  color: var(--snow);
  border: 1px solid rgba(247, 250, 252, 0.45);
}
.btn-ghost:hover { border-color: var(--snow); background: rgba(255, 255, 255, 0.08); }

.btn-solid {
  background: var(--ink);
  color: var(--snow);
}
.btn-solid:hover { background: var(--sky); }

.btn-line {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-line:hover { background: var(--ink); color: var(--snow); }

/* —— Sections —— */
.block {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
  content-visibility: auto;
  contain-intrinsic-size: 1px 720px;
}

.block:first-of-type,
.vista + .block,
.banner + .block {
  content-visibility: visible;
  contain-intrinsic-size: auto;
}

.block-alt {
  background: var(--snow);
}

.block-ink {
  background: var(--slate);
  color: var(--snow);
}

.block-ink .eyebrow { color: var(--sky-soft); }
.block-ink .hint { color: var(--mist); }

.eyebrow {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 0.65rem;
}

.heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  max-width: 18ch;
}

.heading::after {
  content: '';
  display: block;
  width: 3rem;
  height: 3px;
  background: var(--sun);
  margin-top: 0.85rem;
}

.hint {
  margin-top: 1rem;
  color: rgba(12, 21, 32, 0.65);
  max-width: 42ch;
  font-size: 0.98rem;
}

/* —— Line grid —— */
.line-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.line-tile {
  position: relative;
  grid-column: span 2;
  overflow: hidden;
  min-height: 260px;
  color: var(--snow);
  isolation: isolate;
}

.line-tile:nth-child(1),
.line-tile:nth-child(2) {
  grid-column: span 3;
  min-height: 320px;
}

.line-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
  z-index: -2;
}

.line-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 21, 32, 0.9) 0%, rgba(12, 21, 32, 0.2) 55%);
  z-index: -1;
}

.line-tile:hover img { transform: scale(1.06); }

.line-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.4rem 1.35rem;
}

.line-copy h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.line-copy p {
  font-size: 0.88rem;
  color: var(--mist);
  margin-bottom: 0.55rem;
}

.line-copy .arrow {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--sun);
}

@media (max-width: 900px) {
  .line-grid { grid-template-columns: 1fr 1fr; }
  .line-tile,
  .line-tile:nth-child(1),
  .line-tile:nth-child(2) {
    grid-column: span 1;
    min-height: 240px;
  }
}

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

/* —— Duo —— */
.duo {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.duo-media {
  overflow: hidden;
  position: relative;
}

.duo-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.duo-media::before {
  content: '';
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: -1rem;
  bottom: -1rem;
  border: 2px solid var(--sky);
  z-index: -1;
  opacity: 0.45;
}

.duo-text .heading { max-width: 14ch; }

.duo-text p {
  margin-top: 1.1rem;
  color: rgba(12, 21, 32, 0.72);
}

.duo-text p + p { margin-top: 0.85rem; }

@media (max-width: 800px) {
  .duo { grid-template-columns: 1fr; }
  .duo-media::before { display: none; }
}

/* —— Steps —— */
.step-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.25rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 0.5rem;
  border-top: 2px solid var(--sky);
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: rgba(31, 122, 173, 0.25);
  line-height: 1;
  display: block;
  margin-bottom: 0.75rem;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.92rem;
  color: rgba(12, 21, 32, 0.65);
}

.block-ink .step {
  border-top-color: var(--sun);
}
.block-ink .step::before { color: rgba(224, 155, 45, 0.35); }
.block-ink .step p { color: var(--mist); }

@media (max-width: 720px) {
  .step-row { grid-template-columns: 1fr; }
}

/* —— Journal list —— */
.note-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}

.note-item {
  display: grid;
  grid-template-columns: 5.5rem 1fr auto;
  gap: 1.25rem;
  align-items: baseline;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.3s var(--ease);
}

.note-item:hover { padding-left: 0.5rem; }

.note-item time {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--sky);
}

.note-item h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.note-item p {
  font-size: 0.9rem;
  color: rgba(12, 21, 32, 0.6);
}

.note-item .go {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sun-deep);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .note-item {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
  .note-item .go { display: none; }
}

/* —— Page banner —— */
.banner {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  background-color: var(--ink);
  color: var(--snow);
  isolation: isolate;
  overflow: hidden;
}

.banner-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 21, 32, 0.88), rgba(12, 21, 32, 0.4));
  z-index: -1;
  pointer-events: none;
}

.banner-body {
  padding: 3.5rem 0 2.5rem;
  max-width: 36rem;
  animation: lift 0.7s var(--ease) both;
}

.banner h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.1;
  margin: 0.4rem 0 0.75rem;
}

.banner p {
  color: var(--mist);
  font-size: 1rem;
  max-width: 36ch;
}

.banner .eyebrow { color: var(--sky-soft); }

/* —— Specs —— */
.spec-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 2.5rem;
}

.spec-list li {
  background: var(--snow);
  padding: 1.25rem 1.35rem;
}

.spec-list strong {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 0.4rem;
}

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

/* —— Related —— */
.related {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.75rem;
}

.related a {
  position: relative;
  overflow: hidden;
  color: var(--snow);
  isolation: isolate;
}

.related img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.related a:hover img { transform: scale(1.05); }

.related span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: linear-gradient(to top, rgba(12, 21, 32, 0.85), transparent);
}

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

/* —— Contact —— */
.reach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.reach-dl {
  margin-top: 1.75rem;
}

.reach-dl dt {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sky);
  margin-top: 1.15rem;
}

.reach-dl dt:first-child { margin-top: 0; }

.reach-dl dd {
  margin-top: 0.3rem;
  font-size: 1.02rem;
}

.reach-dl a {
  color: var(--sky);
  border-bottom: 1px solid transparent;
}
.reach-dl a:hover { border-bottom-color: var(--sky); }

.reach-photo {
  overflow: hidden;
}
.reach-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

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

/* —— Prose —— */
.prose {
  max-width: 42rem;
}
.prose p + p { margin-top: 1rem; }
.prose h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 2rem 0 0.75rem;
}
.prose h2:first-child { margin-top: 0; }

/* —— Footer —— */
.foot {
  background: var(--ink);
  color: var(--mist);
  padding: 3.5rem 0 1.5rem;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(220, 230, 239, 0.1);
}

.foot h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--snow);
  margin-bottom: 0.85rem;
}

.foot p { font-size: 0.9rem; line-height: 1.65; }
.foot p + p { margin-top: 0.4rem; }

.foot-links a {
  display: block;
  font-size: 0.9rem;
  padding: 0.25rem 0;
  color: var(--mist);
  transition: color 0.2s;
}
.foot-links a:hover { color: var(--sun); }

.foot-bar {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 1.25rem;
  font-size: 0.8rem;
  color: rgba(220, 230, 239, 0.55);
}

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

/* —— Reveal motion (visible by default; hide only when JS is active) —— */
.js .rise:not(.in) {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .rise.in {
  opacity: 1;
  transform: none;
}

@keyframes lift {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rise:not(.in),
  .js .rise.in {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .vista-body, .banner-body { animation: none; }
  .line-tile img, .related img { transition: none; }
  .btn:hover { transform: none; }
}
