/* =========================================================
   MADRID · BEIJING — Miao Du & Jinzhong Rao
   Casa de Vacas, El Retiro · 28 dic 2026 – 1 feb 2027
   ========================================================= */

:root {
  /* Base */
  --ink: #0d0b0a;
  --ink-2: #16120f;
  --paper: #f3ead9;
  --paper-dim: #d9cdb8;

  /* Beijing — orilla de la memoria */
  --vermilion: #d1341f;
  --cinnabar: #b32410;
  --gold: #cba14b;
  --gold-soft: #e6c877;

  /* Madrid — orilla del presente */
  --ochre: #e08a2b;
  --terracotta: #c4602c;
  --madrid-blue: #2f5c8f;
  --sky: #6ea3d6;

  /* Neutrals */
  --line: rgba(243, 234, 217, 0.14);
  --line-strong: rgba(243, 234, 217, 0.32);

  /* Type */
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --cjk: "Noto Serif SC", serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(1.25rem, 5vw, 6rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}
@media (max-width: 900px) { body { cursor: auto; } }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--vermilion); color: var(--paper); }

/* ---------- Grain ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 9990; pointer-events: none;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 8s steps(6) infinite;
}
@keyframes grainShift {
  0%,100% { transform: translate(0,0); }
  20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -5%); }
  60% { transform: translate(-2%, 2%); }
  80% { transform: translate(4%, -3%); }
}

/* ---------- Cursor ---------- */
.cursor, .cursor-dot {
  position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none;
  border-radius: 50%; mix-blend-mode: difference;
  transform: translate(-50%, -50%);
}
.cursor {
  width: 34px; height: 34px; border: 1px solid var(--paper);
  transition: width .3s var(--ease), height .3s var(--ease), background .3s var(--ease), opacity .3s;
}
.cursor-dot { width: 5px; height: 5px; background: var(--paper); }
.cursor.is-hover { width: 68px; height: 68px; background: var(--paper); }
.cursor.is-view::after {
  content: "VER"; position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 9px; letter-spacing: .1em; color: var(--ink); font-weight: 600;
}
@media (max-width: 900px) { .cursor, .cursor-dot { display: none; } }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 9998;
  background: transparent;
}
.scroll-progress span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--vermilion), var(--gold), var(--madrid-blue));
}

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 10000; background: var(--ink);
  display: grid; place-items: center;
  transition: opacity .8s var(--ease), visibility .8s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader-inner { text-align: center; }
.loader-glyph {
  font-family: var(--cjk); font-size: clamp(4rem, 12vw, 8rem); color: var(--vermilion);
  line-height: 1; animation: pulse 1.6s var(--ease) infinite;
}
@keyframes pulse { 0%,100% { opacity: .35; transform: scale(.96);} 50% { opacity: 1; transform: scale(1);} }
.loader-bar { width: 180px; height: 1px; background: var(--line); margin: 1.6rem auto .8rem; overflow: hidden; }
.loader-bar span { display: block; height: 100%; width: 0; background: var(--gold); animation: load 1.8s var(--ease) forwards; }
@keyframes load { to { width: 100%; } }
.loader-label { font-size: .7rem; letter-spacing: .35em; color: var(--paper-dim); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem var(--gutter);
  transition: background .5s var(--ease), padding .5s var(--ease), backdrop-filter .5s;
  mix-blend-mode: difference;
}
.nav.is-scrolled {
  mix-blend-mode: normal;
  background: rgba(13, 11, 10, 0.72);
  backdrop-filter: blur(14px);
  padding-top: .85rem; padding-bottom: .85rem;
  border-bottom: 1px solid var(--line);
}
.nav-brand-mark { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; letter-spacing: .02em; }
.nav-brand-dot { color: var(--vermilion); }
.nav-links { display: flex; gap: clamp(1rem, 2.4vw, 2.4rem); }
.nav-links a {
  font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; position: relative;
  opacity: .82; transition: opacity .3s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -5px; width: 0; height: 1px;
  background: var(--gold); transition: width .4s var(--ease);
}
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem;
  letter-spacing: .08em; text-transform: uppercase; padding: .55rem 1.1rem;
  border: 1px solid var(--line-strong); border-radius: 100px; transition: all .35s var(--ease);
}
.nav-cta:hover { background: var(--vermilion); border-color: var(--vermilion); }
.nav-cta svg { transition: transform .35s var(--ease); }
.nav-cta:hover svg { transform: translateX(4px); }
.nav-burger { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 6px; }
.nav-burger span { display: block; width: 26px; height: 2px; background: var(--paper); transition: .3s; }

@media (max-width: 780px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .nav-links.is-open {
    display: flex; flex-direction: column; position: fixed; inset: 0; top: 0;
    background: var(--ink); padding: 6rem var(--gutter); gap: 1.5rem; z-index: 899;
    mix-blend-mode: normal;
  }
  .nav-links.is-open a { font-size: 1.5rem; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column;
  justify-content: space-between; padding: 8rem var(--gutter) 2.5rem; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.hero-orb--red { width: 46vw; height: 46vw; background: var(--vermilion); top: -8%; left: -6%; animation: float1 16s var(--ease) infinite; }
.hero-orb--gold { width: 34vw; height: 34vw; background: var(--gold); bottom: -12%; right: 4%; opacity: .4; animation: float2 20s var(--ease) infinite; }
.hero-orb--blue { width: 40vw; height: 40vw; background: var(--madrid-blue); bottom: -18%; left: 22%; opacity: .45; animation: float3 24s var(--ease) infinite; }
@keyframes float1 { 0%,100% { transform: translate(0,0) scale(1);} 50% { transform: translate(6%, 5%) scale(1.08);} }
@keyframes float2 { 0%,100% { transform: translate(0,0) scale(1);} 50% { transform: translate(-7%, -4%) scale(1.12);} }
@keyframes float3 { 0%,100% { transform: translate(0,0) scale(1);} 50% { transform: translate(5%, -6%) scale(.92);} }

.hero-meta { position: relative; z-index: 2; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.hero-meta--bottom { justify-content: space-between; align-items: flex-end; }
.tag {
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; padding: .4rem .9rem;
  border: 1px solid var(--line-strong); border-radius: 100px;
}
.tag--muted { opacity: .6; }

.hero-title { position: relative; z-index: 2; text-align: center; margin: auto 0; }
.hero-line {
  font-family: var(--serif); font-weight: 600; line-height: .86;
  font-size: clamp(3.5rem, 17vw, 15rem); letter-spacing: -.02em;
  display: flex; justify-content: center; gap: .05em;
}
.hero-line--2 { align-items: baseline; gap: .12em; }
.hero-cn { font-family: var(--cjk); font-weight: 700; color: var(--vermilion); font-size: .62em; }
.reveal-word {
  display: inline-block; transform: translateY(115%); opacity: 0;
  animation: wordUp 1s var(--ease) forwards;
}
.hero-line--1 .reveal-word:nth-child(1) { animation-delay: 1.9s; }
.hero-line--1 .reveal-word:nth-child(2) { animation-delay: 1.98s; }
.hero-line--2 .reveal-word:nth-child(2) { animation-delay: 2.14s; }
.hero-line--2 .reveal-word:nth-child(3) { animation-delay: 2.22s; }
.hero-cn { animation: wordUp 1s var(--ease) 2.06s forwards; transform: translateY(60%); opacity: 0; }
@keyframes wordUp { to { transform: translateY(0); opacity: 1; } }

.hero-bridge { position: relative; height: clamp(30px, 6vw, 56px); display: grid; place-items: center; margin: -.1em 0; }
.hero-bridge svg { width: min(60%, 520px); height: 100%; overflow: visible; }
.bridge-path {
  fill: none; stroke: var(--gold); stroke-width: 1.4;
  stroke-dasharray: 600; stroke-dashoffset: 600;
  animation: draw 2s var(--ease) 2.3s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero-amp {
  position: absolute; font-size: clamp(1.3rem, 3vw, 2.2rem); color: var(--gold-soft);
  background: var(--ink); padding: 0 .35em; opacity: 0; animation: fadeIn 1s 2.9s forwards;
}
@keyframes fadeIn { to { opacity: 1; } }

.hero-artists { font-family: var(--serif); font-size: clamp(1.1rem, 2.4vw, 1.9rem); font-style: italic; display: flex; gap: .6rem; align-items: center; }
.hero-artists .dot { color: var(--vermilion); }
.hero-dates { text-align: right; }
.hero-dates-num { display: block; font-size: clamp(.85rem, 1.5vw, 1.15rem); letter-spacing: .06em; font-weight: 500; }
.hero-venue { display: block; font-size: .78rem; letter-spacing: .04em; opacity: .6; margin-top: .3rem; }

.hero-scroll {
  position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .6rem; z-index: 3;
  font-size: .68rem; letter-spacing: .25em; text-transform: uppercase; opacity: .7;
}
.hero-scroll-line { width: 1px; height: 46px; background: linear-gradient(var(--paper), transparent); animation: scrollLine 2s var(--ease) infinite; transform-origin: top; }
@keyframes scrollLine { 0% { transform: scaleY(0); } 50% { transform: scaleY(1);} 100% { transform: scaleY(0); transform-origin: bottom;} }

@media (max-width: 640px) {
  .hero-meta--bottom { flex-direction: column; align-items: flex-start; gap: 1.2rem; }
  .hero-dates { text-align: left; }
}

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1.1rem 0; background: var(--ink-2); }
.marquee-track { display: flex; align-items: center; gap: 2.5rem; white-space: nowrap; width: max-content; animation: marquee 34s linear infinite; }
.marquee-track span { font-family: var(--serif); font-style: italic; font-size: clamp(1.1rem, 2.4vw, 1.9rem); }
.marquee-star { color: var(--gold); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   SECTION SHELL
   ========================================================= */
section { position: relative; }
.concept, .artists, .journey, .gallery { padding: clamp(5rem, 12vw, 11rem) var(--gutter); }
.section-head { margin-bottom: clamp(3rem, 7vw, 6rem); }
.section-index {
  display: inline-block; font-size: .78rem; letter-spacing: .25em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.4rem;
}
.section-title {
  font-family: var(--serif); font-weight: 500; line-height: 1.02;
  font-size: clamp(2.2rem, 6.5vw, 5.5rem); letter-spacing: -.02em; max-width: 16ch;
}
.section-title em { font-style: italic; color: var(--gold-soft); }
.section-sub { max-width: 46ch; margin-top: 1.4rem; opacity: .7; font-size: 1.05rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(38px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   CONCEPT
   ========================================================= */
.concept-lead { max-width: 60ch; margin-bottom: clamp(3rem, 7vw, 6rem); }
.concept-lead p { font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2.3rem); line-height: 1.35; }
.concept-lead strong { color: var(--gold-soft); font-weight: 500; }

.diptych {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(1.5rem, 4vw, 4rem);
  align-items: stretch; margin-bottom: clamp(4rem, 9vw, 8rem);
}
.diptych-panel { position: relative; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; }
.diptych-media { position: relative; aspect-ratio: 3/2; overflow: hidden; }
.diptych-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); filter: saturate(1.02); }
.diptych-panel--madrid .diptych-media img { object-position: center 30%; }
.diptych-panel:hover .diptych-media img { transform: scale(1.05); }
.diptych-media::after { content: ""; position: absolute; inset: 0; }
.diptych-panel--beijing .diptych-media::after { background: linear-gradient(to top, var(--ink) 4%, transparent 55%), linear-gradient(120% 120% at 0% 0%, rgba(209,52,31,.28), transparent 60%); }
.diptych-panel--madrid .diptych-media::after { background: linear-gradient(to top, var(--ink) 4%, transparent 55%), linear-gradient(120% 120% at 100% 0%, rgba(47,92,143,.3), transparent 60%); }
.diptych-body { position: relative; padding: clamp(1.6rem, 3vw, 2.6rem); }
.diptych-glyph { font-family: var(--cjk); font-size: clamp(3rem, 7vw, 6rem); line-height: 1; opacity: .16; position: absolute; top: -1.6rem; right: 1rem; }
.diptych-panel--beijing .diptych-glyph { color: var(--vermilion); }
.diptych-panel--madrid .diptych-glyph { color: var(--sky); }
.diptych-kicker { display: block; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; opacity: .6; margin-bottom: 1rem; }
.diptych-panel h3 { font-family: var(--serif); font-size: clamp(1.6rem, 3.4vw, 2.6rem); font-weight: 500; margin-bottom: 1rem; line-height: 1.1; }
.diptych-panel p { max-width: 42ch; opacity: .85; }
.diptych-panel em { font-style: italic; color: var(--gold-soft); }

.diptych-connector { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.connector-node { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.connector-line { flex: 1; width: 1px; background: linear-gradient(var(--vermilion), var(--madrid-blue)); margin: .6rem 0; min-height: 60px; }

@media (max-width: 820px) {
  .diptych { grid-template-columns: 1fr; }
  .diptych-connector { flex-direction: row; padding: .5rem 0; }
  .connector-line { width: 100%; height: 1px; min-height: 0; background: linear-gradient(90deg, var(--vermilion), var(--madrid-blue)); margin: 0 .6rem; }
}

.concept-threads { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 3vw, 2.5rem); }
.thread { padding-top: 1.4rem; border-top: 1px solid var(--line-strong); }
.thread-num { font-family: var(--cjk); font-size: 1.5rem; color: var(--gold); display: block; margin-bottom: .8rem; }
.thread h4 { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; margin-bottom: .5rem; }
.thread p { font-size: .92rem; opacity: .7; }
@media (max-width: 820px) { .concept-threads { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .concept-threads { grid-template-columns: 1fr; } }

/* =========================================================
   ARTISTS
   ========================================================= */
.artist-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); margin-bottom: clamp(3rem, 7vw, 5rem); }
.artist-card { display: flex; gap: clamp(1.2rem, 2.5vw, 2rem); align-items: center; padding: 1.5rem; border: 1px solid var(--line); border-radius: 4px; transition: border-color .4s var(--ease), transform .4s var(--ease); }
.artist-card:hover { border-color: var(--line-strong); transform: translateY(-6px); }
.artist-portrait {
  flex: 0 0 auto; width: clamp(120px, 18vw, 190px); aspect-ratio: 3/4; border-radius: 3px;
  display: grid; place-items: center; overflow: hidden; position: relative;
}
.artist-portrait--miao { background: linear-gradient(160deg, var(--cinnabar), #5a1408); }
.artist-portrait--rao { background: linear-gradient(160deg, var(--madrid-blue), #12233d); }
.artist-portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.artist-portrait:hover img { transform: scale(1.06); }
.artist-portrait-glyph { position: relative; z-index: 2; font-family: var(--cjk); font-size: clamp(2rem, 4vw, 3rem); color: rgba(243,234,217,.95); align-self: flex-end; justify-self: flex-start; margin: 0 0 .5rem .6rem; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.artist-portrait { justify-items: start; align-items: end; }
.artist-facts { list-style: none; margin-top: 1.1rem; display: flex; flex-direction: column; gap: .35rem; }
.artist-facts li { font-size: .82rem; letter-spacing: .02em; opacity: .72; padding-left: 1rem; position: relative; }
.artist-facts li::before { content: "—"; position: absolute; left: 0; color: var(--gold); }
.artist-social { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.2rem; font-size: .85rem; letter-spacing: .04em; padding: .5rem .9rem; border: 1px solid var(--line-strong); border-radius: 100px; transition: all .35s var(--ease); }
.artist-social:hover { background: var(--vermilion); border-color: var(--vermilion); }
.artist-social svg { flex: 0 0 auto; }
.artist-role { display: block; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: .5rem; }
.artist-info h3 { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 500; margin-bottom: .7rem; }
.artist-info p { font-size: .95rem; opacity: .8; max-width: 38ch; }
@media (max-width: 720px) { .artist-grid { grid-template-columns: 1fr; } }

.artist-statement { max-width: 30ch; margin: 0 auto; text-align: center; }
.artist-statement blockquote { font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 4vw, 3rem); line-height: 1.25; }
.artist-statement em { color: var(--gold-soft); }

/* =========================================================
   STATS
   ========================================================= */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stat { background: var(--ink); padding: clamp(2.5rem, 6vw, 5rem) clamp(1.2rem, 3vw, 2.5rem); text-align: center; }
.stat-num { font-family: var(--serif); font-size: clamp(3rem, 9vw, 7rem); font-weight: 600; line-height: 1; color: var(--gold-soft); display: block; }
.stat-num--word { font-size: clamp(3rem, 9vw, 7rem); }
.stat-label { display: block; margin-top: 1rem; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; opacity: .65; line-height: 1.5; }
@media (max-width: 820px) { .stats { grid-template-columns: 1fr 1fr; } }

/* =========================================================
   JOURNEY / TIMELINE
   ========================================================= */
.timeline { list-style: none; max-width: 900px; margin: 0 auto; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--line-strong); }
.timeline-item { position: relative; padding: 0 0 clamp(2.5rem, 5vw, 4rem) clamp(2.5rem, 5vw, 4rem); }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-marker { position: absolute; left: 0; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--ink); border: 2px solid var(--gold); }
.timeline-item--now .timeline-marker { background: var(--vermilion); border-color: var(--vermilion); box-shadow: 0 0 0 6px rgba(209,52,31,.18); }
.timeline-era { display: inline-block; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: .6rem; }
.timeline-item h3 { font-family: var(--serif); font-size: clamp(1.5rem, 3.4vw, 2.4rem); font-weight: 500; margin-bottom: .7rem; }
.timeline-item p { max-width: 56ch; opacity: .82; }
.timeline-item em { font-style: italic; color: var(--gold-soft); }
.timeline-item strong { color: var(--paper); font-weight: 500; }

/* =========================================================
   GALLERY
   ========================================================= */
.gallery-grid { columns: 2; column-gap: clamp(1rem, 2.4vw, 2rem); }
.art { break-inside: avoid; margin: 0 0 clamp(1.2rem, 2.6vw, 2.2rem); display: block; cursor: pointer; }
.art-frame { position: relative; overflow: hidden; border-radius: 3px; background: var(--ink-2); box-shadow: 0 16px 40px rgba(0,0,0,.35); }
.art-frame img { width: 100%; height: auto; display: block; transition: transform 1s var(--ease); }
.art:hover .art-frame img { transform: scale(1.045); }
.art-frame::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px var(--line); border-radius: 3px; pointer-events: none; }
.art figcaption { display: flex; align-items: baseline; gap: .8rem; padding: 1rem .2rem 0; }
.art-city { flex: 0 0 auto; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); padding-top: .2rem; }
.art-title { font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 2.4vw, 1.6rem); line-height: 1.1; }
@media (max-width: 620px) { .gallery-grid { columns: 1; } }
.gallery-note { margin-top: 2.5rem; font-size: .85rem; opacity: .5; text-align: center; }

/* =========================================================
   VISIT
   ========================================================= */
.visit { background: var(--paper); color: var(--ink); padding: clamp(5rem, 12vw, 11rem) var(--gutter); }
.visit .section-index { color: var(--terracotta); }
.visit .section-title { color: var(--ink); }
.visit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 5vw, 4rem); margin-bottom: clamp(3rem, 7vw, 5rem); }
.visit-block { border-top: 2px solid var(--ink); padding-top: 1.6rem; }
.visit-kicker { display: block; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--terracotta); margin-bottom: 1.2rem; }
.visit-big { font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.02; }
.visit-big--place { font-size: clamp(1.8rem, 4.4vw, 3rem); }
.visit-arrow { color: var(--terracotta); font-size: .6em; }
.visit-detail { margin-top: 1.2rem; font-size: .98rem; line-height: 1.7; opacity: .75; }
@media (max-width: 780px) { .visit-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

.visit-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: .6rem; padding: .95rem 1.8rem; border-radius: 100px; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; transition: all .35s var(--ease); }
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--vermilion); }
.btn--primary svg { transition: transform .35s var(--ease); }
.btn--primary:hover svg { transform: translateX(4px); }
.btn--ghost { border: 1px solid var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { padding: clamp(4rem, 9vw, 8rem) var(--gutter) 2.5rem; overflow: hidden; }
.footer-title {
  font-family: var(--serif); font-weight: 600; line-height: .9;
  font-size: clamp(3rem, 15vw, 13rem); letter-spacing: -.02em;
  display: flex; align-items: center; justify-content: center; gap: .1em;
  border-bottom: 1px solid var(--line); padding-bottom: clamp(1.5rem, 4vw, 3rem);
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
.footer-title span:last-child { font-family: var(--cjk); color: var(--vermilion); }
.footer-amp { color: var(--gold); font-family: var(--sans); font-weight: 300; }
.footer-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.footer-label { display: block; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.footer-col p { opacity: .8; font-size: .95rem; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .78rem; opacity: .5; letter-spacing: .04em; padding-top: 2rem; border-top: 1px solid var(--line); }
@media (max-width: 640px) { .footer-meta { grid-template-columns: 1fr; gap: 1.8rem; } }

/* =========================================================
   CONTACTO
   ========================================================= */
.contact { padding: clamp(5rem, 12vw, 11rem) var(--gutter); position: relative; }
.contact::before { content: "联"; position: absolute; top: clamp(2rem,6vw,5rem); right: clamp(1rem,5vw,5rem); font-family: var(--cjk); font-size: clamp(8rem, 22vw, 20rem); line-height: 1; color: var(--vermilion); opacity: .05; pointer-events: none; z-index: 0; }
.contact-inner { position: relative; z-index: 1; max-width: 880px; margin: 0 auto; }
.contact .section-head { text-align: center; }
.contact .section-title { margin: 0 auto; }
.contact .section-sub { margin-left: auto; margin-right: auto; }
.contact .section-sub strong { color: var(--gold-soft); font-weight: 500; }

.contact-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.1rem, 2.6vw, 1.8rem);
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding: clamp(1.8rem, 4vw, 3.2rem);
  border: 1px solid var(--line); border-radius: 8px;
  background: linear-gradient(180deg, rgba(243,234,217,.035), rgba(243,234,217,.01));
  backdrop-filter: blur(2px);
}
.field { display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: .6rem; font-weight: 500; }
.field label .opt { color: var(--paper-dim); opacity: .5; text-transform: none; letter-spacing: .02em; font-weight: 300; }
.field input, .field textarea {
  width: 100%; background: rgba(0,0,0,.28); border: 1px solid var(--line-strong); border-radius: 4px;
  color: var(--paper); font-family: var(--sans); font-size: 1rem; font-weight: 300;
  padding: .85rem 1rem; transition: border-color .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease);
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: var(--paper); opacity: .3; }
.field input:hover, .field textarea:hover { border-color: rgba(243,234,217,.42); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); background: rgba(0,0,0,.42);
  box-shadow: 0 0 0 3px rgba(201,162,75,.14);
}
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--vermilion); }

.field-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent { display: flex; align-items: flex-start; gap: .75rem; font-size: .88rem; opacity: .82; cursor: pointer; line-height: 1.5; }
.consent input { width: 18px; height: 18px; margin-top: .1rem; accent-color: var(--vermilion); flex: 0 0 auto; cursor: pointer; }

.contact-actions { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; margin-top: .6rem; }
.btn--send { background: var(--vermilion); color: var(--paper); border: 0; cursor: pointer; font-family: var(--sans); font-weight: 500; }
.btn--send:hover { background: var(--gold); color: var(--ink); }
.btn--send svg { transition: transform .35s var(--ease); }
.btn--send:hover svg { transform: translateX(4px); }
.btn--send[disabled] { opacity: .55; pointer-events: none; }
.btn--send.is-sending { pointer-events: none; }
.btn--send.is-sending .btn-label::after { content: " …"; }

.contact-status { flex: 1 1 200px; min-width: 0; font-size: .9rem; margin: 0; opacity: 0; transform: translateY(4px); transition: all .4s var(--ease); }
.contact-status.is-show { opacity: 1; transform: none; }
.contact-status.is-ok { color: var(--gold-soft); }
.contact-status.is-error { color: #ff8062; }

@media (max-width: 620px) { .contact-form { grid-template-columns: 1fr; } }

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox {
  position: fixed; inset: 0; z-index: 9995; display: flex; align-items: center; justify-content: center;
  gap: 1rem; padding: clamp(1rem, 4vw, 3rem); background: rgba(8,7,6,.94); backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox-figure { max-width: min(1100px, 88vw); max-height: 88vh; display: flex; flex-direction: column; align-items: center; gap: .9rem; }
.lightbox-figure img { max-width: 100%; max-height: 78vh; object-fit: contain; border-radius: 3px; box-shadow: 0 30px 80px rgba(0,0,0,.6); transform: scale(.96); transition: transform .5s var(--ease); }
.lightbox.is-open .lightbox-figure img { transform: scale(1); }
.lightbox-figure figcaption { font-family: var(--serif); font-style: italic; font-size: 1.2rem; text-align: center; }
.lightbox-figure figcaption b { display: block; font-family: var(--sans); font-style: normal; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: .3rem; font-weight: 500; }
.lightbox-close { position: absolute; top: clamp(1rem,3vw,2rem); right: clamp(1rem,3vw,2rem); background: none; border: 1px solid var(--line-strong); color: var(--paper); width: 46px; height: 46px; border-radius: 50%; font-size: 1.1rem; cursor: pointer; transition: all .3s var(--ease); }
.lightbox-close:hover { background: var(--vermilion); border-color: var(--vermilion); }
.lightbox-nav { background: none; border: 1px solid var(--line-strong); color: var(--paper); width: 52px; height: 52px; border-radius: 50%; font-size: 1.6rem; line-height: 1; cursor: pointer; flex: 0 0 auto; transition: all .3s var(--ease); }
.lightbox-nav:hover { background: var(--paper); color: var(--ink); }
@media (max-width: 640px) { .lightbox-nav { position: absolute; bottom: 1.4rem; } .lightbox-prev { left: 25%; } .lightbox-next { right: 25%; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .reveal-word, .hero-cn { opacity: 1; transform: none; }
}
