:root {
  --bg: #f8f6f1;
  --surface: #fbfaf7;
  --text: #181716;
  --muted: #67645e;
  --border: #e3dfd6;
  --border-soft: #ebe7de;
  --max-width: 1120px;
  --measure: 68ch;
  --gap: 28px;
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 20px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 72px;
  --radius: 2px;
  --focus: #8b7a5f;
  --duration-micro: 140ms;
  --duration-fast: var(--duration-micro);
  --duration-base: 200ms;
  --duration-scene: 300ms;
  --ease-soft: cubic-bezier(0.2, 0.65, 0.25, 1);
  --interactive-shift: -2px;
  --interactive-border: rgba(152, 140, 120, 0.34);
  --interactive-bg: rgba(255, 255, 255, 0.28);
  --interactive-shadow: 0 10px 24px rgba(31, 27, 20, 0.12);
  --interactive-overlay-start: rgba(255, 255, 255, 0.5);
  --interactive-overlay-mid: rgba(255, 255, 255, 0.16);
  --font-body-en: "Didot", "Bodoni MT", "Times New Roman", serif;
  --font-heading-en: "Didot", "Bodoni MT", "Times New Roman", serif;
  --font-ui-en: "Didot", "Bodoni MT", "Times New Roman", serif;
  --font-body-zh: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STSong", serif;
  --font-heading-zh: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STSong", serif;
  --font-ui-zh: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STSong", serif;
  --font-body: var(--font-body-en);
  --font-heading: var(--font-heading-en);
  --font-ui: var(--font-ui-en);
}

html[lang="zh-CN"] {
  --font-body: var(--font-body-zh);
  --font-heading: var(--font-heading-zh);
  --font-ui: var(--font-ui-zh);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.72;
  letter-spacing: 0.002em;
  color: var(--text);
  background: var(--bg);
  font-weight: 400;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition:
    color var(--duration-fast) var(--ease-soft),
    text-decoration-color var(--duration-fast) var(--ease-soft),
    opacity var(--duration-fast) var(--ease-soft);
}

a:hover {
  text-decoration-color: currentColor;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.container {
  width: min(100% - 64px, var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--border-soft);
  transition:
    background-color var(--duration-base) var(--ease-soft),
    border-color var(--duration-base) var(--ease-soft),
    box-shadow var(--duration-base) var(--ease-soft);
}

.site-header.is-scrolled {
  background: rgba(248, 246, 241, 0.92);
  box-shadow: 0 2px 18px rgba(27, 24, 20, 0.08);
}

body[data-page="home"] .site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(247, 245, 239, 0.2);
}

body[data-page="home"] .site-header.is-scrolled {
  background: rgba(33, 34, 36, 0.36);
  border-bottom-color: rgba(247, 245, 239, 0.28);
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) 0;
  position: relative;
}

.nav-toggle {
  display: none;
}

.nav-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
}

.nav a {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition:
    color var(--duration-fast) var(--ease-soft),
    opacity var(--duration-fast) var(--ease-soft);
}

.nav a:hover {
  color: #4a463f;
  opacity: 0.9;
}

.lang-toggle {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lang-toggle button {
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  transition:
    color var(--duration-fast) var(--ease-soft),
    border-color var(--duration-fast) var(--ease-soft),
    opacity var(--duration-fast) var(--ease-soft);
}

.lang-toggle button:hover {
  border-color: var(--border-soft);
  color: #4a463f;
}

.lang-toggle button.is-active {
  color: var(--text);
  border-color: var(--border-soft);
}

.nav a[aria-current="page"] {
  color: #3e3b37;
  font-weight: 600;
}

body[data-page="home"] .nav a {
  color: rgba(247, 245, 239, 0.76);
}

body[data-page="home"] .nav a:hover {
  color: rgba(247, 245, 239, 0.96);
  opacity: 1;
}

body[data-page="home"] .nav a[aria-current="page"] {
  color: #f7f5ef;
}

body[data-page="home"] .lang-toggle button {
  color: rgba(247, 245, 239, 0.8);
}

body[data-page="home"] .lang-toggle button:hover,
body[data-page="home"] .lang-toggle button.is-active {
  color: #f7f5ef;
  border-color: rgba(247, 245, 239, 0.36);
}

body[data-page="travel"] {
  --text: #f5efe2;
  --muted: rgba(245, 239, 226, 0.78);
  --border: rgba(245, 239, 226, 0.24);
  --border-soft: rgba(245, 239, 226, 0.18);
  --interactive-border: rgba(245, 239, 226, 0.34);
  --interactive-bg: rgba(245, 239, 226, 0.06);
  --interactive-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
  --interactive-overlay-start: rgba(245, 239, 226, 0.18);
  --interactive-overlay-mid: rgba(245, 239, 226, 0.04);
  background: rgb(22, 20, 21);
  color: #f5efe2;
  overflow-x: clip;
  font-family: var(--font-body);
}

body[data-page="travel"] .site-header,
body[data-page="travel"] .site-footer {
  border-color: rgba(245, 239, 226, 0.18);
}

body[data-page="travel"] .site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(245, 239, 226, 0.2);
}

body[data-page="travel"] .site-header.is-scrolled {
  background: rgba(16, 15, 16, 0.52);
  border-bottom-color: rgba(245, 239, 226, 0.24);
  box-shadow: none;
  backdrop-filter: blur(10px);
}

body[data-page="travel"] .nav a,
body[data-page="travel"] .section h2,
body[data-page="travel"] h3,
body[data-page="travel"] .lang-toggle button {
  font-family: var(--font-ui);
}

body[data-page="travel"] h3 {
  font-family: var(--font-heading);
}

body[data-page="travel"] .nav a {
  color: rgba(245, 239, 226, 0.75);
}

body[data-page="travel"] .nav a:hover {
  color: #f5efe2;
}

body[data-page="travel"] .nav a[aria-current="page"] {
  color: #f5efe2;
}

body[data-page="travel"] .meta,
body[data-page="travel"] .section h2 {
  color: rgba(245, 239, 226, 0.78);
}

body[data-page="travel"] .lang-toggle button {
  color: rgba(245, 239, 226, 0.76);
}

body[data-page="travel"] .lang-toggle button:hover,
body[data-page="travel"] .lang-toggle button.is-active {
  color: #f5efe2;
  border-color: rgba(245, 239, 226, 0.32);
}

body[data-page="photography"] {
  --bg: rgb(22, 20, 21);
  --surface: rgba(245, 239, 226, 0.04);
  --text: #f5efe2;
  --muted: rgba(245, 239, 226, 0.78);
  --border: rgba(245, 239, 226, 0.24);
  --border-soft: rgba(245, 239, 226, 0.18);
  --interactive-shift: -1px;
  --interactive-border: rgba(245, 239, 226, 0.28);
  --interactive-bg: rgba(245, 239, 226, 0.04);
  --interactive-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  --interactive-overlay-start: rgba(245, 239, 226, 0.1);
  --interactive-overlay-mid: rgba(245, 239, 226, 0.02);
  background: rgb(22, 20, 21);
  color: #f5efe2;
  overflow-x: clip;
}

body[data-page="photography"] .site-footer {
  border-color: rgba(245, 239, 226, 0.18);
}

body[data-page="photography"] .site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  border-bottom-color: rgba(245, 239, 226, 0.2);
}

body[data-page="photography"] .site-header .nav a,
body[data-page="photography"] .site-header .lang-toggle button {
  color: rgba(245, 239, 226, 0.76);
}

body[data-page="photography"] .site-header .nav a:hover,
body[data-page="photography"] .site-header .lang-toggle button:hover {
  color: #f5efe2;
}

body[data-page="photography"] .site-header .lang-toggle button.is-active,
body[data-page="photography"] .site-header .nav a[aria-current="page"] {
  color: #f5efe2;
}

body[data-page="photography"] .meta,
body[data-page="photography"] .section h2 {
  color: rgba(245, 239, 226, 0.78);
}

body[data-page="photography"] .lang-toggle button:hover,
body[data-page="photography"] .lang-toggle button.is-active {
  border-color: rgba(245, 239, 226, 0.32);
}

body[data-page="photography"] .site-header.is-scrolled {
  background: rgba(16, 15, 16, 0.52);
  border-bottom-color: rgba(245, 239, 226, 0.24);
  box-shadow: none;
  backdrop-filter: blur(10px);
}

body[data-page="photography"] .site-header.is-scrolled .nav a,
body[data-page="photography"] .site-header.is-scrolled .lang-toggle button {
  color: rgba(245, 239, 226, 0.76);
}

body[data-page="photography"] .site-header.is-scrolled .nav a:hover,
body[data-page="photography"] .site-header.is-scrolled .lang-toggle button:hover,
body[data-page="photography"] .site-header.is-scrolled .lang-toggle button.is-active,
body[data-page="photography"] .site-header.is-scrolled .nav a[aria-current="page"] {
  color: #f5efe2;
}

body[data-page="photography"] .section-emphasis h2 {
  color: rgba(245, 239, 226, 0.78);
}

body[data-page="photography"] .section-emphasis .card {
  border-color: rgba(245, 239, 226, 0.2);
  background: rgba(245, 239, 226, 0.04);
}

body[data-page="photography"] .section-emphasis .grid .card:hover {
  border-color: rgba(245, 239, 226, 0.28);
  background: rgba(245, 239, 226, 0.08);
}

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

.travel-visual {
  position: relative;
  height: 300vh;
}

.travel-visual-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
  --travel-fade: 0;
  --travel-color-alpha: 0;
  --travel-copy-a: 1;
  --travel-copy-b: 0;
}

.travel-visual-layer,
.travel-visual-color {
  position: absolute;
  inset: 0;
}

.travel-visual-layer {
  background-size: cover;
  background-repeat: no-repeat;
  will-change: opacity;
}

.travel-visual-layer-a {
  background-image: url("../images/travel-visual-a.jpg");
  background-position: center 44%;
  opacity: calc(1 - var(--travel-fade));
}

.travel-visual-layer-b {
  background-image: url("../images/travel-visual-b.jpg");
  background-position: center 42%;
  opacity: var(--travel-fade);
}

.travel-visual-color {
  background: rgb(22, 20, 21);
  opacity: var(--travel-color-alpha);
  pointer-events: none;
}

.travel-visual-copy {
  position: absolute;
  z-index: 3;
  left: clamp(24px, 6vw, 96px);
  bottom: clamp(28px, 8vh, 88px);
  margin: 0;
  max-width: 24ch;
  font-family: var(--font-heading);
  font-size: clamp(1.12rem, 2.2vw, 2rem);
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-wrap: balance;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

.travel-visual-copy-a {
  color: rgba(244, 236, 220, 0.9);
  opacity: var(--travel-copy-a);
  transform: translateY(calc((1 - var(--travel-copy-a)) * 16px));
}

.travel-visual-copy-b {
  color: rgba(242, 239, 232, 0.92);
  opacity: var(--travel-copy-b);
  transform: translateY(calc((1 - var(--travel-copy-b)) * 16px));
}

.photo-visual {
  position: relative;
  height: 248vh;
  background: rgb(22, 20, 21);
}

.photo-visual-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
  --photo-blend: 0;
  --photo-layer-a-scale: 1;
  --photo-layer-a-x: 0px;
  --photo-layer-a-y: 0px;
  --photo-layer-b-scale: 1.05;
  --photo-layer-b-x: -10px;
  --photo-layer-b-y: 16px;
  --photo-tone-alpha: 0.16;
  --photo-bloom-alpha: 0;
  --photo-bloom-shift: 0px;
  --photo-title-alpha: 1;
  --photo-title-lift: 0px;
}

.photo-visual-layer,
.photo-visual-tone,
.photo-visual-bloom {
  position: absolute;
  inset: 0;
}

.photo-visual-layer {
  background-size: cover;
  background-repeat: no-repeat;
  will-change: opacity;
}

.photo-visual-layer-a {
  background-image: url("../images/photo-visual-a.jpg");
  background-position: center 48%;
  opacity: calc(1 - (var(--photo-blend) * 0.95));
  transform: translate3d(var(--photo-layer-a-x), var(--photo-layer-a-y), 0)
    scale(var(--photo-layer-a-scale));
}

.photo-visual-layer-b {
  background-image: url("../images/photo-visual-b.jpg");
  background-position: center 50%;
  opacity: calc(var(--photo-blend) * 0.98);
  transform: translate3d(var(--photo-layer-b-x), var(--photo-layer-b-y), 0)
    scale(var(--photo-layer-b-scale));
}

.photo-visual-tone {
  background:
    radial-gradient(
      118% 88% at 50% 54%,
      rgba(15, 12, 11, 0) 48%,
      rgba(15, 12, 11, var(--photo-tone-alpha)) 100%
    ),
    linear-gradient(
      180deg,
      rgba(8, 7, 7, 0.32) 0%,
      rgba(8, 7, 7, 0.1) 34%,
      rgba(8, 7, 7, 0.42) 100%
    );
  pointer-events: none;
}

.photo-visual-bloom {
  inset: -10%;
  background: radial-gradient(
    36% 26% at calc(52% + var(--photo-bloom-shift)) 54%,
    rgba(238, 228, 204, var(--photo-bloom-alpha)) 0%,
    rgba(238, 228, 204, 0) 72%
  );
  mix-blend-mode: screen;
  pointer-events: none;
}

.photo-visual-title {
  --photo-title-gutter: clamp(24px, 4vw, 64px);
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: calc(100% - (var(--photo-title-gutter) * 2));
  max-width: calc(100% - (var(--photo-title-gutter) * 2));
  margin: 0;
  font-family: "Didot", "Bodoni MT", "Times New Roman", serif;
  font-size: clamp(0.74rem, 2.8vw, 2.25rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.04;
  text-align: center;
  color: #ceb87b;
  background: linear-gradient(
    156deg,
    #f2e0b0 0%,
    #ddc486 34%,
    #c4bb71 56%,
    #ecd8a8 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow:
    0 2px 12px rgba(9, 9, 8, 0.48),
    0 0 1px rgba(234, 218, 175, 0.36);
  opacity: var(--photo-title-alpha);
  transform: translate(-50%, calc(-50% + var(--photo-title-lift)));
  pointer-events: none;
}

.photo-visual + .section {
  border-top: 1px solid var(--border-soft);
}

.section-globe {
  padding-top: var(--space-6);
}

.travel-globe-shell {
  position: relative;
  left: 50%;
  width: 100vw;
  max-width: 100vw;
  margin-left: -50vw;
  margin-right: 0;
  min-height: clamp(620px, 88vh, 1020px);
  border: 0;
  background: transparent;
  overflow: visible;
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 900ms cubic-bezier(0.2, 0.65, 0.25, 1),
    transform 900ms cubic-bezier(0.2, 0.65, 0.25, 1);
}

@supports (width: 100dvw) {
  .travel-globe-shell {
    width: 100dvw;
    max-width: 100dvw;
    margin-left: -50dvw;
  }
}

.travel-globe-shell.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.travel-globe-stage {
  width: 100%;
  height: clamp(620px, 88vh, 1020px);
}

.travel-globe-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.travel-globe-tooltip {
  position: absolute;
  z-index: 5;
  padding: 5px 8px;
  border: 1px solid rgba(245, 239, 226, 0.22);
  background: rgba(19, 18, 20, 0.88);
  color: rgba(245, 239, 226, 0.9);
  font-size: 0.76rem;
  line-height: 1.3;
  letter-spacing: 0.02em;
  pointer-events: none;
  transform: translate(12px, -16px);
  white-space: nowrap;
}

.travel-globe-panel {
  position: absolute;
  z-index: 4;
  left: clamp(18px, 3vw, 34px);
  bottom: clamp(18px, 3vw, 34px);
  width: min(360px, calc(100% - 36px));
  padding: 14px 16px;
  border: 1px solid rgba(245, 239, 226, 0.2);
  background: rgba(18, 17, 19, 0.74);
  display: grid;
  gap: 8px;
}

.travel-globe-panel .panel-kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 239, 226, 0.6);
}

.travel-globe-panel h3 {
  margin: 0;
  font-size: clamp(1.1rem, 1.7vw, 1.34rem);
  line-height: 1.3;
}

.travel-globe-panel .meta {
  margin: 0;
  color: rgba(245, 239, 226, 0.78);
}

.travel-globe-panel a {
  width: fit-content;
  color: rgba(245, 239, 226, 0.88);
  text-decoration-color: rgba(245, 239, 226, 0.4);
}

.travel-globe-panel a:hover {
  text-decoration-color: rgba(245, 239, 226, 0.88);
}

.visited-country-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
}

.section .container > .visited-country-board {
  max-width: 1120px;
}

.visited-continent-card {
  padding: clamp(14px, 1.7vw, 22px);
  border-color: var(--border-soft);
  background: rgba(255, 255, 255, 0.01);
  gap: 10px;
  align-content: start;
}

.visited-continent-card.is-wide {
  grid-column: 1 / -1;
}

.visited-continent-card h3 {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.92rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.continent-en {
  display: inline;
}

.continent-zh {
  display: none;
}

html[lang="zh-CN"] .continent-en {
  display: none;
}

html[lang="zh-CN"] .continent-zh {
  display: inline;
}

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

.visited-country-list li {
  display: grid;
  gap: 2px;
  padding-top: 10px;
  border-top: 1px solid var(--border-soft);
}

.visited-country-list li:first-child {
  padding-top: 0;
  border-top: 0;
}

.visited-continent-card.is-wide .visited-country-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(14px, 2.2vw, 28px);
  row-gap: 10px;
}

.visited-continent-card.is-wide .visited-country-list li:nth-child(-n + 2) {
  padding-top: 0;
  border-top: 0;
}

.country-en,
.country-zh {
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.country-en {
  display: block;
}

.country-zh {
  display: none;
}

html[lang="zh-CN"] .country-en {
  display: none;
}

html[lang="zh-CN"] .country-zh {
  display: block;
}

.hero {
  padding: var(--space-6) 0 var(--space-5);
}

.hero-home {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-start;
  padding: clamp(142px, 19vh, 206px) 0 clamp(68px, 11vh, 120px);
  background-color: #3f4348;
  background-image:
    linear-gradient(180deg, rgba(18, 18, 18, 0.18) 0%, rgba(18, 18, 18, 0.52) 62%, rgba(18, 18, 18, 0.72) 100%),
    url("../images/home-hero-optimized.jpg");
  background-size: cover;
  background-position: center 40%;
}

.hero-home .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 46%) minmax(0, 1fr);
  row-gap: var(--space-2);
}

.hero-home h1 {
  grid-column: 1;
  font-family: var(--font-heading);
  font-size: clamp(2.7rem, 6.1vw, 4.7rem);
  line-height: 1.03;
  color: rgba(247, 245, 239, 0.68);
  letter-spacing: -0.012em;
}

.hero-home .meta {
  grid-column: 1;
  font-family: var(--font-body);
  font-size: clamp(1.02rem, 1.3vw, 1.16rem);
  line-height: 1.58;
  color: rgba(247, 245, 239, 0.86);
  max-width: 44ch;
}

.hero h1 {
  margin: 0 0 var(--space-3);
  font-size: clamp(2.2rem, 4.6vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-weight: 500;
  text-wrap: balance;
}

.hero .meta {
  margin: 0;
  max-width: var(--measure);
  line-height: 1.75;
}

.section {
  padding: var(--space-5) 0;
  border-top: 0;
  content-visibility: auto;
  contain-intrinsic-size: 1px 560px;
}

.hero + .section {
  border-top: 1px solid var(--border-soft);
}

.section .container {
  display: grid;
  gap: var(--space-3);
}

.section h2 {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.4;
  font-weight: 600;
  text-wrap: balance;
}

main h1:not(.sr-only),
main h2:not(.sr-only),
main h3:not(.sr-only) {
  position: relative;
  display: inline-block;
  max-width: 100%;
  padding-bottom: 6px;
  transition:
    letter-spacing var(--duration-base) var(--ease-soft),
    transform var(--duration-base) var(--ease-soft);
}

main h1:not(.sr-only) {
  --title-hover-letter-spacing: 0em;
}

main h2:not(.sr-only) {
  --title-hover-letter-spacing: 0.1em;
}

main h3:not(.sr-only) {
  --title-hover-letter-spacing: 0.01em;
}

main h1:not(.sr-only)::after,
main h2:not(.sr-only)::after,
main h3:not(.sr-only)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  opacity: 0.88;
  transition: width var(--duration-base) var(--ease-soft);
}

main h1:not(.sr-only):hover,
main h2:not(.sr-only):hover,
main h3:not(.sr-only):hover,
.hero:hover h1:not(.sr-only),
.section:hover h2:not(.sr-only),
.card:not(form):hover h3,
.card:not(form):focus-within h3 {
  letter-spacing: var(--title-hover-letter-spacing);
  transform: translateY(-1px);
}

main h1:not(.sr-only):hover::after,
main h2:not(.sr-only):hover::after,
main h3:not(.sr-only):hover::after,
.hero:hover h1:not(.sr-only)::after,
.section:hover h2:not(.sr-only)::after,
.card:not(form):hover h3::after,
.card:not(form):focus-within h3::after {
  width: 100%;
}

.grid {
  display: grid;
  gap: var(--gap);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.overview-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

h3 {
  margin: 0 0 var(--space-1);
  font-family: var(--font-heading);
  font-size: 1.3rem;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -0.004em;
  text-wrap: balance;
}

p {
  margin: 0 0 var(--space-3);
  max-width: var(--measure);
  text-wrap: pretty;
}

p:last-child {
  margin-bottom: 0;
}

.meta {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

.email-copy-link {
  cursor: copy;
  text-decoration-color: currentColor;
}

.email-copy-status.is-error {
  color: #9f3d3a;
}

.social-card {
  border: 1px solid var(--border-soft);
  background:
    linear-gradient(
      172deg,
      rgba(255, 255, 255, 0.5) 0%,
      rgba(255, 255, 255, 0.22) 52%,
      rgba(255, 255, 255, 0.08) 100%
    );
  padding: var(--space-3);
  gap: var(--space-2);
}

.social-cards-grid {
  margin-top: var(--space-3);
}

.social-card--instagram {
  box-shadow: 0 8px 20px rgba(29, 25, 20, 0.06);
}

.social-kicker {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.social-heading {
  margin: 0;
}

.social-handle {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4c4944;
}

.social-support {
  margin: 0;
  max-width: 36ch;
}

.social-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding-top: 6px;
  border-top: 1px solid var(--border-soft);
}

.social-action-link,
.social-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--border-soft);
  border-radius: 2px;
  background: transparent;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 0.71rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    border-color var(--duration-fast) var(--ease-soft),
    background-color var(--duration-fast) var(--ease-soft),
    color var(--duration-fast) var(--ease-soft);
}

.social-action-link:hover,
.social-action-button:hover {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.35);
}

.social-card.is-share-open .social-action-button {
  border-color: var(--interactive-border);
  background: rgba(255, 255, 255, 0.4);
}

.social-action-link:focus-visible,
.social-action-button:focus-visible,
.social-share-action:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.social-share-panel {
  display: grid;
  gap: 8px;
  margin-top: 2px;
  padding-top: 10px;
  border-top: 1px solid var(--border-soft);
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  pointer-events: none;
  transform: translateY(-4px);
  transition:
    max-height var(--duration-base) var(--ease-soft),
    opacity var(--duration-base) var(--ease-soft),
    transform var(--duration-base) var(--ease-soft);
}

.social-card.is-share-open .social-share-panel {
  max-height: 220px;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.social-share-action {
  display: inline-flex;
  align-items: center;
  width: 100%;
  justify-content: flex-start;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--border-soft);
  border-radius: 2px;
  background: transparent;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.social-share-action:hover {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.35);
}

.social-share-action.is-copied {
  border-color: var(--interactive-border);
  background: rgba(255, 255, 255, 0.5);
}

.social-status {
  margin: 0;
  min-height: 1.35em;
  font-size: 0.82rem;
}

.social-status.is-error {
  color: #9f3d3a;
}

.reveal-item {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 540ms var(--ease-soft),
    transform 540ms var(--ease-soft);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.card {
  position: relative;
  isolation: isolate;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  padding: 0;
  display: grid;
  gap: var(--space-2);
  align-content: start;
  overflow: hidden;
  transform: translateY(0);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition:
    transform var(--duration-base) var(--ease-soft),
    background-color var(--duration-base) var(--ease-soft),
    border-color var(--duration-base) var(--ease-soft),
    box-shadow var(--duration-base) var(--ease-soft),
    opacity var(--duration-fast) var(--ease-soft);
}

.card:not(form)::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    170deg,
    var(--interactive-overlay-start) 0%,
    var(--interactive-overlay-mid) 36%,
    rgba(255, 255, 255, 0) 70%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-base) var(--ease-soft);
}

.card:not(form):hover,
.card:not(form):focus-within {
  transform: translateY(var(--interactive-shift));
  border-color: var(--interactive-border);
  background: var(--interactive-bg);
  box-shadow: var(--interactive-shadow);
}

.card:not(form):hover::before,
.card:not(form):focus-within::before {
  opacity: 1;
}

.section .container > .card {
  max-width: 860px;
}

form.card {
  padding-top: var(--space-2);
}

label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-1);
}

input,
textarea {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  transition:
    border-color var(--duration-fast) var(--ease-soft),
    box-shadow var(--duration-fast) var(--ease-soft);
}

input:focus,
textarea:focus {
  border-color: rgba(139, 122, 95, 0.48);
  box-shadow: 0 0 0 3px rgba(139, 122, 95, 0.14);
}

input:user-invalid,
textarea:user-invalid {
  border-color: #b44a44;
}

textarea {
  min-height: 148px;
  resize: vertical;
}

button,
.gallery-enter-button {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid var(--border-soft);
  border-radius: 2px;
  background: transparent;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    color var(--duration-fast) var(--ease-soft),
    border-color var(--duration-fast) var(--ease-soft),
    background-color var(--duration-fast) var(--ease-soft);
}

button:hover,
.gallery-enter-button:hover {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.35);
}

.gallery-enter-wrap {
  display: flex;
  justify-content: center;
  padding-top: var(--space-2);
}

.gallery-enter-button {
  text-decoration: none;
}

.form-status {
  font-size: 0.84rem;
  color: var(--muted);
}

.form-status.is-error {
  color: #9f3d3a;
}

.section-emphasis h2 {
  color: #4a463f;
}

.section-emphasis .card {
  border: 1px solid var(--border-soft);
  background: var(--surface);
  padding: var(--space-3);
}

.section-emphasis .grid .card:hover {
  border-color: var(--border);
  background: #fdfcf8;
}

.photo-note-card {
  max-width: min(640px, 100%);
  gap: 14px;
}

.section-photo-breath {
  padding: clamp(44px, 8vw, 92px) 0;
  border-top: 0;
}

.section-photo-breath .container {
  display: grid;
  place-items: center;
}

.photo-breath-copy {
  margin: 0;
  max-width: 56ch;
  text-align: center;
  font-size: 0.88rem;
  color: rgba(245, 239, 226, 0.62);
}

.section-photo-method {
  padding-top: 0;
}

.photo-method-main {
  max-width: 44ch;
  font-size: 0.99rem;
  color: rgba(245, 239, 226, 0.9);
}

.photo-method-secondary {
  max-width: 46ch;
}

.photo-method-coda {
  max-width: 42ch;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(245, 239, 226, 0.56);
}

.photo-gallery-intro {
  margin: 0;
  max-width: 62ch;
}

.photo-gallery-intro {
  margin-bottom: var(--space-3);
}

.gallery-editorial {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.gallery-item {
  position: relative;
  isolation: isolate;
  margin: 0;
  display: block;
  grid-column: span 1;
  aspect-ratio: 4 / 5;
  min-height: 0;
  overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-size: 320px 400px;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  transform: translateY(0);
  transition:
    transform var(--duration-base) var(--ease-soft),
    border-color var(--duration-base) var(--ease-soft),
    background-color var(--duration-base) var(--ease-soft);
}

.gallery-item--anchor {
  grid-column: span 2;
  aspect-ratio: 16 / 10;
}

.gallery-item--wide {
  grid-column: span 1;
  aspect-ratio: 4 / 5;
}

.gallery-item--panoramic {
  grid-column: span 2;
  aspect-ratio: 16 / 10;
}

.gallery-item--tall {
  grid-column: span 1;
  aspect-ratio: 4 / 5;
}

.gallery-pause {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 78px;
  border-top: 1px solid rgba(245, 239, 226, 0.14);
  border-bottom: 1px solid rgba(245, 239, 226, 0.14);
  background: linear-gradient(90deg, rgba(245, 239, 226, 0) 0%, rgba(245, 239, 226, 0.04) 50%, rgba(245, 239, 226, 0) 100%);
}

.gallery-pause .meta {
  margin: 0;
  max-width: 58ch;
  padding: 0 10px;
  text-align: center;
  font-size: 0.86rem;
  color: rgba(245, 239, 226, 0.68);
}

.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    170deg,
    var(--interactive-overlay-start) 0%,
    var(--interactive-overlay-mid) 36%,
    rgba(255, 255, 255, 0) 70%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-base) var(--ease-soft);
}

.gallery-item img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  filter: saturate(1) contrast(1);
  transition:
    opacity var(--duration-fast) var(--ease-soft),
    transform var(--duration-base) var(--ease-soft),
    filter var(--duration-base) var(--ease-soft);
}

.gallery-item-meta {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 3;
  margin: 0;
  padding: 11px 12px;
  font-family: var(--font-ui);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 239, 226, 0.84);
  background: linear-gradient(180deg, rgba(10, 9, 8, 0) 0%, rgba(10, 9, 8, 0.74) 82%);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.32);
  pointer-events: none;
}

.gallery-item:hover,
.gallery-item:focus-within {
  transform: translateY(var(--interactive-shift));
  border-color: rgba(245, 239, 226, 0.24);
  background: rgba(245, 239, 226, 0.03);
}

.gallery-item:hover::before,
.gallery-item:focus-within::before {
  opacity: 0.42;
}

.gallery-item:hover img,
.gallery-item:focus-within img {
  opacity: 0.992;
  transform: scale(1.015);
  filter: contrast(1.02);
}

.section-gallery-full {
  padding-top: var(--space-6);
}

.section-gallery-full .container {
  width: min(100% - 64px, 1480px);
}

.gallery-page-back {
  margin: 0;
}

.gallery-page-back a {
  font-family: var(--font-ui);
  font-size: 0.76rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}

.gallery-page-back a:hover {
  color: var(--text);
}

.gallery-status {
  margin: 0;
}

.gallery-full-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: row;
  gap: 14px;
}

.gallery-full-item {
  position: relative;
  isolation: isolate;
  width: 100%;
  margin: 0;
  padding: 0;
  aspect-ratio: 4 / 5;
  content-visibility: auto;
  contain-intrinsic-size: 320px 400px;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  overflow: hidden;
  cursor: zoom-in;
  transform: translateY(0);
  transition:
    transform var(--duration-base) var(--ease-soft),
    border-color var(--duration-base) var(--ease-soft),
    background-color var(--duration-base) var(--ease-soft);
}

.gallery-full-item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    170deg,
    var(--interactive-overlay-start) 0%,
    var(--interactive-overlay-mid) 36%,
    rgba(255, 255, 255, 0) 70%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-base) var(--ease-soft);
}

.gallery-full-item img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  filter: saturate(1) contrast(1);
  transition:
    opacity var(--duration-fast) var(--ease-soft),
    transform var(--duration-base) var(--ease-soft),
    filter var(--duration-base) var(--ease-soft);
}

.gallery-full-item.is-featured,
.gallery-full-item.is-panoramic {
  grid-column: auto;
  aspect-ratio: 4 / 5;
}

.gallery-full-item.is-tall {
  aspect-ratio: 4 / 5;
}

.gallery-full-item.is-wide {
  aspect-ratio: 4 / 5;
}

.gallery-full-top-feature {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.52fr) minmax(0, 1fr);
  align-items: stretch;
  column-gap: 10px;
}

.gallery-full-top-feature > .gallery-full-item--top-anchor {
  aspect-ratio: 16 / 10;
}

.gallery-full-top-portraits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  height: 100%;
}

.gallery-full-top-portraits > .gallery-full-item--top-portrait {
  aspect-ratio: 4 / 5;
}

/* Default fill block for the large lower-right gap in the top gallery cluster. */
.gallery-full-top-note {
  grid-column: 1 / -1;
  display: grid;
  align-content: end;
  gap: 6px;
  min-height: 90px;
  height: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(245, 239, 226, 0.16);
  background:
    linear-gradient(180deg, rgba(245, 239, 226, 0.03) 0%, rgba(245, 239, 226, 0.01) 100%),
    linear-gradient(140deg, rgba(245, 239, 226, 0.02) 0%, rgba(15, 15, 15, 0.08) 100%);
}

.gallery-full-top-note-kicker {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.64rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(245, 239, 226, 0.64);
}

.gallery-full-top-note-body {
  margin: 0;
  max-width: 36ch;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(245, 239, 226, 0.78);
}

.gallery-full-item[data-index="7"] {
  grid-column: span 2;
  aspect-ratio: 16 / 10;
}

.gallery-full-item-meta {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 3;
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  text-align: left;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 9, 8, 0) 0%, rgba(10, 9, 8, 0.8) 85%);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.32);
}

.gallery-full-item-title {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.35;
  color: rgba(245, 239, 226, 0.9);
}

.gallery-full-item-location {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 239, 226, 0.7);
}

.gallery-full-item:hover,
.gallery-full-item:focus-within,
.gallery-full-item:active {
  transform: translateY(var(--interactive-shift));
  border-color: rgba(245, 239, 226, 0.24);
  background: rgba(245, 239, 226, 0.03);
}

.gallery-full-item:hover::before,
.gallery-full-item:focus-within::before,
.gallery-full-item:active::before {
  opacity: 0.42;
}

.gallery-full-item:hover img,
.gallery-full-item:focus-within img,
.gallery-full-item:active img {
  opacity: 0.992;
  transform: scale(1.015);
  filter: contrast(1.02);
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 40px);
  background: rgba(14, 12, 10, 0.74);
  backdrop-filter: blur(0);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity var(--duration-scene) var(--ease-soft),
    visibility var(--duration-scene) var(--ease-soft),
    backdrop-filter var(--duration-scene) var(--ease-soft);
}

.gallery-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  backdrop-filter: blur(5px);
}

.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
}

.gallery-lightbox-frame {
  position: relative;
  z-index: 1;
  width: min(94vw, 1360px);
  max-height: 92vh;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity var(--duration-scene) var(--ease-soft),
    transform var(--duration-scene) var(--ease-soft);
}

.gallery-lightbox.is-open .gallery-lightbox-frame {
  opacity: 1;
  transform: translateY(0);
}

.gallery-lightbox-figure {
  margin: 0;
  border: 1px solid rgba(245, 239, 226, 0.28);
  background: rgba(16, 14, 12, 0.74);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.gallery-lightbox-figure img {
  width: 100%;
  max-height: min(80vh, 900px);
  object-fit: contain;
  background: rgba(0, 0, 0, 0.26);
}

.gallery-lightbox-meta {
  margin: 0;
  padding: 12px 14px 14px;
  display: grid;
  gap: 4px;
  border-top: 1px solid rgba(245, 239, 226, 0.18);
}

.gallery-lightbox-count {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 239, 226, 0.66);
}

.gallery-lightbox-title {
  margin: 0;
  font-size: clamp(1rem, 1.6vw, 1.24rem);
  line-height: 1.34;
  color: rgba(245, 239, 226, 0.94);
}

.gallery-lightbox-location {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 239, 226, 0.68);
}

.gallery-lightbox-caption {
  margin: 0;
  max-width: 58ch;
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(245, 239, 226, 0.8);
}

.gallery-lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  min-width: 36px;
  min-height: 36px;
  padding: 6px 10px;
  line-height: 1;
}

.gallery-lightbox-close span {
  font-size: 1.2rem;
}

.gallery-lightbox-nav {
  min-width: 46px;
  min-height: 46px;
  padding: 8px 10px;
  font-size: 1.08rem;
  line-height: 1;
}

.gallery-lightbox-nav[disabled] {
  opacity: 0.4;
  cursor: default;
}

body.is-lightbox-open {
  overflow: hidden;
}

@media (max-width: 1100px) {
  .gallery-full-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery-full-top-feature {
    grid-template-columns: 1fr;
    row-gap: 12px;
  }

  .gallery-full-top-portraits {
    grid-template-rows: auto;
    height: auto;
    gap: 12px;
  }

  .gallery-full-top-note {
    min-height: 74px;
  }

  .gallery-full-item[data-index="7"] {
    grid-column: span 3;
  }
}

.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: var(--space-4) 0 var(--space-6);
  font-size: 0.92rem;
  color: var(--muted);
}

.legal-disclaimer {
  margin-top: var(--space-3);
  padding-top: var(--space-2);
  border-top: 1px solid var(--border-soft);
}

.legal-disclaimer .meta {
  margin-bottom: 8px;
  max-width: 88ch;
  font-size: 0.8rem;
  line-height: 1.58;
}

.legal-disclaimer .meta:last-child {
  margin-bottom: 0;
}

.skip-link {
  position: fixed;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus-visible {
  clip: auto;
  width: auto;
  height: auto;
  margin: 0;
  left: 16px;
  top: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 12px;
  z-index: 40;
}

@media (max-width: 900px) {
  :root {
    --gap: 24px;
    --space-5: 40px;
    --space-6: 56px;
  }

  .container {
    width: min(100% - 44px, var(--max-width));
  }

  .grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }

  .travel-visual {
    height: 280vh;
  }

  .photo-visual {
    height: 232vh;
  }

  .travel-visual-layer-a {
    background-position: 54% 42%;
  }

  .travel-visual-layer-b {
    background-position: 52% 40%;
  }

  .travel-visual-copy {
    left: clamp(20px, 5vw, 62px);
    bottom: clamp(24px, 7vh, 64px);
    font-size: clamp(1.02rem, 2.1vw, 1.6rem);
  }

  .photo-visual-layer-a {
    background-position: 52% 48%;
  }

  .photo-visual-layer-b {
    background-position: 51% 50%;
  }

  .travel-globe-shell,
  .travel-globe-stage {
    min-height: clamp(560px, 82vh, 860px);
    height: clamp(560px, 82vh, 860px);
  }

  .travel-globe-panel {
    width: min(330px, calc(100% - 30px));
  }

  .visited-country-board {
    grid-template-columns: 1fr;
  }

  .visited-continent-card.is-wide .visited-country-list {
    grid-template-columns: 1fr;
  }

  .visited-continent-card.is-wide .visited-country-list li:nth-child(2) {
    padding-top: 10px;
    border-top: 1px solid var(--border-soft);
  }

  .gallery-editorial {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .gallery-item {
    grid-column: span 1;
  }

  .gallery-item--anchor,
  .gallery-item--panoramic {
    grid-column: span 2;
  }

  .gallery-item--wide {
    grid-column: span 1;
  }

  .gallery-item--tall {
    grid-column: span 1;
  }

  .section-gallery-full .container {
    width: min(100% - 44px, 1320px);
  }

  .gallery-full-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .gallery-full-item[data-index="7"] {
    grid-column: span 3;
  }

  .gallery-lightbox-frame {
    width: min(96vw, 1200px);
    gap: 8px;
  }
}

@media (max-width: 640px) {
  :root {
    --space-4: 24px;
    --space-5: 32px;
    --space-6: 40px;
  }

  .container {
    width: min(100% - 28px, var(--max-width));
  }

  .hero h1 {
    font-size: clamp(1.7rem, 8.2vw, 2.3rem);
  }

  .nav {
    gap: 0;
    padding: 12px 0;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 6px 10px;
  }

  .nav-menu {
    display: none;
    width: 100%;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-soft);
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .nav.is-open .nav-menu {
    display: flex;
  }

  body[data-page="home"] .nav.is-open .nav-menu {
    margin-top: 8px;
    padding: 12px;
    border-top-color: rgba(247, 245, 239, 0.24);
    border-radius: 4px;
    background: rgba(21, 22, 25, 0.88);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(8px);
    position: relative;
    z-index: 2;
  }

  .nav-menu a {
    width: 100%;
  }

  .social-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .social-action-link,
  .social-action-button {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-home {
    min-height: 100vh;
    min-height: 100svh;
    padding: clamp(124px, 19vh, 158px) 0 clamp(62px, 11vh, 98px);
    background-position: 56% 38%;
  }

  .travel-visual {
    height: 250vh;
  }

  .photo-visual {
    height: 216vh;
  }

  .travel-visual-layer-a {
    background-position: 58% 42%;
  }

  .travel-visual-layer-b {
    background-position: 54% 40%;
  }

  .travel-visual-copy {
    left: 22px;
    right: 22px;
    bottom: 28px;
    max-width: 20ch;
    font-size: clamp(0.98rem, 5.1vw, 1.28rem);
  }

  .photo-visual-layer-a {
    background-position: 56% 48%;
  }

  .photo-visual-layer-b {
    background-position: 54% 50%;
  }

  .travel-globe-shell,
  .travel-globe-stage {
    min-height: clamp(440px, 68vh, 680px);
    height: clamp(440px, 68vh, 680px);
  }

  .travel-globe-tooltip {
    display: none;
  }

  .travel-globe-panel {
    left: 14px;
    right: 14px;
    bottom: 14px;
    width: auto;
    padding: 12px 12px;
    gap: 6px;
  }

  .visited-continent-card {
    padding: 12px 10px;
  }

  .country-en,
  .country-zh {
    font-size: 0.88rem;
  }

  .hero-home .container {
    grid-template-columns: 1fr;
  }

  body[data-page="home"] .site-header {
    border-bottom-color: rgba(247, 245, 239, 0.16);
  }

  body[data-page="travel"] .site-header {
    border-bottom-color: rgba(245, 239, 226, 0.16);
  }

  .section-emphasis .card {
    padding: var(--space-2);
  }

  .lang-toggle {
    width: 100%;
    margin-left: 0;
    margin-top: 4px;
  }

  .nav-menu .lang-toggle {
    margin-top: 8px;
  }

  .gallery-editorial {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .gallery-item,
  .gallery-item--anchor,
  .gallery-item--wide,
  .gallery-item--panoramic,
  .gallery-item--tall {
    grid-column: auto;
    aspect-ratio: 4 / 5;
  }

  .gallery-pause {
    min-height: 64px;
    padding: 12px 0;
  }

  .section-gallery-full .container {
    width: min(100% - 28px, 1080px);
  }

  .gallery-full-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .gallery-full-top-portraits {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto;
    gap: 10px;
  }

  .gallery-full-item[data-index="7"] {
    grid-column: span 2;
    aspect-ratio: 16 / 10;
  }

  .gallery-lightbox {
    padding: 12px;
  }

  .gallery-lightbox,
  .gallery-lightbox.is-open {
    backdrop-filter: none;
  }

  .gallery-lightbox-frame {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .gallery-lightbox-close {
    top: 8px;
    right: 8px;
    z-index: 2;
    background: rgba(16, 14, 12, 0.68);
    border-color: rgba(245, 239, 226, 0.28);
    color: rgba(245, 239, 226, 0.9);
  }

  .gallery-lightbox-nav {
    width: 100%;
    min-height: 40px;
  }

  .gallery-lightbox-nav.is-prev {
    order: 2;
  }

  .gallery-lightbox-figure {
    order: 1;
  }

  .gallery-lightbox-nav.is-next {
    order: 3;
  }

  .gallery-item {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 460px) {
  .gallery-full-grid {
    grid-template-columns: 1fr;
  }

  .gallery-full-item[data-index="7"] {
    grid-column: auto;
    aspect-ratio: 4 / 5;
  }
}

@media (prefers-reduced-motion: reduce) {
  a,
  .card,
  button,
  .nav a {
    transition: none;
  }

  main h1:not(.sr-only),
  main h2:not(.sr-only),
  main h3:not(.sr-only) {
    transition: none;
  }

  main h1:not(.sr-only)::after,
  main h2:not(.sr-only)::after,
  main h3:not(.sr-only)::after {
    transition: none;
  }

  .card:not(form)::before {
    transition: none;
  }

  .gallery-item,
  .gallery-item::before,
  .gallery-item img,
  .social-action-link,
  .social-action-button,
  .social-share-panel,
  .social-share-action,
  .gallery-full-item,
  .gallery-full-item::before,
  .gallery-full-item img,
  .gallery-lightbox,
  .gallery-lightbox-frame {
    transition: none;
  }

  .card:not(form):hover,
  .card:not(form):focus-within {
    transform: none;
    box-shadow: none;
  }

  .gallery-item:hover,
  .gallery-item:focus-within {
    transform: none;
    box-shadow: none;
  }

  .gallery-full-item:hover,
  .gallery-full-item:focus-within,
  .gallery-full-item:active {
    transform: none;
    box-shadow: none;
  }

  .reveal-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
