/* ─── IP Bay — Maritime Editorial ────────────────────────── */

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

:root {
  /* Backgrounds */
  --bg-primary: #F7F1E5;        /* Parchment / sail-cream */
  --bg-elevated: #FEFAF2;       /* Lighter cream for cards */
  --bg-deep: #0F2A3D;           /* Harbor navy */

  /* Text */
  --text-primary: #1A1A1A;      /* Near-black ink */
  --text-secondary: #5C5C5C;    /* Body subtle */
  --text-on-dark: #F7F1E5;      /* Cream on navy */

  /* Accents */
  --accent-warm: #C9A66B;       /* Sand / late-afternoon sun */
  --accent-deep: #1B3A4B;       /* Deeper bay water */
  --accent-ink: #A0312B;        /* Muted Japanese vermilion */

  /* Lines */
  --rule: rgba(26, 26, 26, 0.12);
  --rule-on-dark: rgba(247, 241, 229, 0.15);

  /* Type */
  --font-display: 'Crimson Pro', 'EB Garamond', Georgia, serif;
  --font-serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spec aliases: brand palette shorthand for hanko / harbor components */
  --cream: #FEF9F3;
  --ink: #1A1A1A;
  --accent: #C0392B;
}

/* ─── Hanko seal component ────────────────────────────────── */
.hanko-seal { display: block; }
.hanko-legacy { width: 96px; height: 96px; margin: 0 0 56px auto; }
.hanko-footer-seal { width: 64px; height: 64px; flex-shrink: 0; }
.hanko-team {
  position: absolute;
  top: 20px; right: 20px;
  width: 64px; height: 64px;
  z-index: 3;
  pointer-events: none;
}

/* ─── Harbor coordinates footer ──────────────────────────── */
.harbor-coordinates {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 0.5px solid rgba(247, 241, 229, 0.22);
  border-bottom: 0.5px solid rgba(247, 241, 229, 0.22);
  padding: 22px 0;
  margin: 20px 0;
  width: 100%;
  max-width: 1100px;
}
.harbor-port {
  padding: 0 16px;
  border-right: 0.5px solid rgba(247, 241, 229, 0.14);
  text-align: center;
}
.harbor-port:last-child { border-right: none; }
.port-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-on-dark);
}
.port-coord {
  font-family: ui-monospace, SFMono-Regular, Menlo, 'Cascadia Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: rgba(247, 241, 229, 0.5);
  line-height: 1.7;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-weight: 400;
}

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--text-primary);
}
h1 { font-size: clamp(3rem, 7vw, 6rem); line-height: 1.05; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.1; }
p, nav, button, a { font-family: var(--font-body); font-weight: 400; }
.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--accent-deep);
}

a { color: var(--accent-deep); text-decoration: none; }

/* ─── Nav ─────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 48px;
  background: linear-gradient(to bottom,
    rgba(8, 18, 30, 0.94) 0%,
    rgba(8, 18, 30, 0.86) 80%,
    rgba(8, 18, 30, 0.7) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(247, 241, 229, 0.12);
}

/* Mobile hamburger toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  background: none; border: none;
  width: 40px; height: 40px;
  cursor: pointer;
  padding: 0; margin: 0;
  z-index: 105;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--text-on-dark);
  margin: 5px auto;
  transition: transform 0.3s, opacity 0.3s;
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.mobile-nav-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(8, 18, 30, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 80px 24px 24px;
}
body.nav-open .mobile-nav-overlay { display: flex; }
.mobile-nav-overlay a {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  color: var(--text-on-dark);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s;
  padding: 8px 16px;
}
.mobile-nav-overlay a:hover,
.mobile-nav-overlay a.active { color: var(--accent-warm); }
.nav-logo {
  font-family: var(--font-display);
  font-size: 32px; font-weight: 500;
  letter-spacing: 0.005em;
  color: var(--text-on-dark);
  text-decoration: none;
  line-height: 1;
}
.nav-logo span { color: var(--accent-warm); font-style: italic; font-weight: 400; }

/* Language toggle (🇺🇸 EN · 🇯🇵 日本語) — flows organically into the top nav */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  margin-left: 18px;
  flex-shrink: 0;
  line-height: 1;
}
.lang-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: 0;
  padding: 6px 8px;
  cursor: pointer;
  line-height: 1;
  color: rgba(247, 241, 229, 0.5);
  transition: color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
  border-radius: 4px;
}
.lang-toggle-flag {
  font-size: 16px;
  line-height: 1;
  display: inline-block;
  filter: saturate(0.75) brightness(0.95);
  transition: filter 0.3s ease, transform 0.3s ease;
  /* Ensure emoji rendering on systems that support it */
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
}
.lang-toggle-label {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
}
/* Japanese label uses the serif italic voice — same pattern as IP Bay with Bay in italic */
.lang-toggle-btn[data-lang="ja"] .lang-toggle-label {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: none;
}
.lang-toggle-btn:hover {
  color: rgba(247, 241, 229, 0.92);
  transform: translateY(-1px);
}
.lang-toggle-btn:hover .lang-toggle-flag {
  filter: saturate(1.1) brightness(1);
  transform: scale(1.08);
}
.lang-toggle-btn.active {
  color: var(--accent-warm);
}
.lang-toggle-btn.active .lang-toggle-flag {
  filter: saturate(1.15) brightness(1);
  transform: scale(1.06);
}
.lang-toggle-sep {
  color: var(--accent-warm);
  margin: 0 4px;
  opacity: 0.55;
  font-size: 12px;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}
@media (max-width: 720px) {
  .lang-toggle { margin-left: 6px; }
  .lang-toggle-btn { gap: 5px; padding: 5px 4px; }
  .lang-toggle-flag { font-size: 15px; }
  .lang-toggle-label { font-size: 10px; letter-spacing: 0.14em; }
  .lang-toggle-btn[data-lang="ja"] .lang-toggle-label { font-size: 12px; letter-spacing: 0.01em; }
  .lang-toggle-sep { margin: 0 2px; font-size: 11px; }
}
@media (max-width: 380px) {
  /* On extra-small phones, hide the text label — flags alone are enough */
  .lang-toggle-label { display: none; }
  .lang-toggle-btn { gap: 0; padding: 5px 6px; }
  .lang-toggle-flag { font-size: 18px; }
}

/* Current page label — hidden on desktop (nav-links shows it there), shown on mobile */
.nav-current {
  display: none;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-warm);
  font-weight: 500;
  opacity: 0.92;
  flex: 1;
  text-align: center;
  pointer-events: none;
  padding: 0 8px;
}
.nav-links { display: flex; gap: 32px; list-style: none; align-items: center; }
.nav-links a {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(247, 241, 229, 0.78);
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}
.nav-links a:hover {
  color: var(--accent-warm);
  border-bottom-color: var(--accent-warm);
}
.nav-links a.active {
  color: var(--text-on-dark);
  border-bottom-color: var(--accent-warm);
}

/* ─── Hero (navy) ─────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center;
  padding: 140px 48px 100px;
  position: relative; overflow: hidden;
  background: var(--bg-deep);
  color: var(--text-on-dark);
  border-bottom: 1px solid var(--accent-deep);
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 30%, rgba(201, 166, 107, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 90% 60% at 50% 90%, rgba(27, 58, 75, 0.5) 0%, transparent 70%);
  pointer-events: none;
}
.hero-sup {
  font-family: var(--font-body); font-size: 12px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(247, 241, 229, 0.55);
  margin-bottom: 32px;
  font-weight: 500;
  position: relative;
}
.hero-rule { width: min(720px, 100%); height: 1px; background: rgba(247, 241, 229, 0.18); position: relative; }
.hero-wordmark {
  font-family: var(--font-display);
  font-size: clamp(88px, 16vw, 200px);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--text-on-dark);
  position: relative;
  margin: 20px 0;
}
.hero-wordmark em { font-style: italic; color: var(--accent-warm); font-weight: 400; }
.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 36px);
  font-weight: 400;
  font-style: italic;
  color: var(--text-on-dark);
  margin: 32px auto 20px;
  max-width: 900px;
  line-height: 1.25;
  position: relative;
}
.hero-subline {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.2vw, 17px);
  font-weight: 400;
  color: rgba(247, 241, 229, 0.72);
  margin: 0 auto 72px;
  max-width: 720px;
  line-height: 1.75;
  position: relative;
}
.hero-stats-row {
  display: flex; justify-content: center; align-items: center;
  gap: 56px; position: relative;
}
.hero-stat-div { width: 1px; height: 44px; background: rgba(247, 241, 229, 0.2); }
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 52px; font-weight: 400;
  color: var(--accent-warm);
  line-height: 1;
}
.hero-stat-label {
  font-family: var(--font-body);
  font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(247, 241, 229, 0.5);
  margin-top: 10px;
  font-weight: 500;
}

/* ─── Page Header (cream, used on non-home pages) ─────────── */
.page-header {
  padding: 180px 48px 80px;
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--rule);
  text-align: center;
  background: var(--bg-primary);
}
.page-header-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 20%, rgba(201, 166, 107, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.page-header-inner { position: relative; max-width: 1000px; margin: 0 auto; }
.page-header-sup {
  font-family: var(--font-body);
  font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 24px;
  font-weight: 500;
}
.page-header-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 100px);
  font-weight: 400; line-height: 0.98;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-bottom: 24px;
}
.page-header-title em { font-style: italic; color: var(--accent-deep); }
.page-header-lede {
  font-family: var(--font-serif);
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 400; font-style: italic;
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 720px; margin: 0 auto;
}

/* ─── Photo panels (legacy page) ──────────────────────────── */
.photo-panel { border-bottom: 1px solid var(--rule); background: var(--bg-primary); }
.split { display: grid; grid-template-columns: 1fr 1fr; }
.split.flip { grid-template-columns: 1fr 1fr; }
.photo-cell { position: relative; overflow: hidden; min-height: 70vh; background: var(--bg-deep); }
.photo-cell img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.7s ease; }
.photo-cell:hover img { transform: scale(1.03); }
.photo-fade-r { position: absolute; inset: 0; background: linear-gradient(to right, transparent 55%, var(--bg-primary) 100%); }
.photo-fade-l { position: absolute; inset: 0; background: linear-gradient(to left, transparent 55%, var(--bg-primary) 100%); }
.photo-tag {
  position: absolute; top: 28px; left: 28px;
  background: rgba(15, 42, 61, 0.88);
  border: 1px solid rgba(247, 241, 229, 0.15);
  padding: 8px 14px;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-on-dark);
  font-family: var(--font-body); font-weight: 500;
}
.photo-caption { position: absolute; bottom: 36px; left: 36px; right: 36px; color: var(--text-on-dark); }
.photo-caption-year {
  font-family: var(--font-display);
  font-size: 80px; font-weight: 400;
  color: rgba(247, 241, 229, 0.12);
  line-height: 1; margin-bottom: 8px;
}
.photo-caption-text {
  font-size: 12px; letter-spacing: 0.08em;
  color: rgba(247, 241, 229, 0.55);
  font-family: var(--font-body);
}
.photo-badge {
  position: absolute; bottom: 32px; right: 32px;
  background: rgba(15, 42, 61, 0.92);
  border: 1px solid var(--accent-warm);
  padding: 14px 22px; text-align: right;
}
.photo-badge-title {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 400;
  color: var(--text-on-dark);
  margin-bottom: 4px;
}
.photo-badge-sub {
  font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-warm);
  font-family: var(--font-body); font-weight: 500;
}

.text-cell {
  display: flex; flex-direction: column; justify-content: center;
  padding: 88px 72px;
  background: var(--bg-primary);
}
.text-cell.mid { background: var(--bg-elevated); }
.text-cell .eyebrow { margin-bottom: 28px; }
.panel-headline {
  font-family: var(--font-display);
  font-size: clamp(34px, 3.2vw, 50px);
  font-weight: 400; line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 28px;
}
.panel-headline em { font-style: italic; color: var(--accent-deep); }
.panel-body p {
  font-size: 16px; line-height: 1.8;
  color: var(--text-secondary);
  font-weight: 400; margin-bottom: 18px;
}
.panel-body p strong { color: var(--text-primary); font-weight: 500; }
.pull-quote {
  border-left: 3px solid var(--accent-ink);
  padding: 18px 28px;
  margin: 32px 0;
  background: rgba(160, 49, 43, 0.04);
}
.pull-quote p {
  font-family: var(--font-serif);
  font-size: 21px; font-weight: 400;
  font-style: italic; line-height: 1.55;
  color: var(--text-primary) !important;
  margin: 0 !important;
}

.persons-row {
  display: flex; gap: 24px;
  margin-top: 40px; padding-top: 36px;
  border-top: 1px solid var(--rule);
}
.person-tag { display: flex; flex-direction: column; gap: 4px; }
.person-name { font-size: 14px; color: var(--text-primary); font-weight: 500; }
.person-role {
  font-size: 11px; color: var(--text-secondary);
  font-family: var(--font-body); letter-spacing: 0.06em;
  text-transform: uppercase; font-weight: 500;
}
.person-div { width: 1px; background: var(--rule); align-self: stretch; }

/* ─── Timeline ────────────────────────────────────────────── */
.timeline-section { background: var(--bg-elevated); border-bottom: 1px solid var(--rule); padding: 0; }
.timeline-track { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--rule); }
.tl-node {
  background: var(--bg-elevated);
  padding: 36px 28px;
  border-top: 2px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}
.tl-node:hover { border-top-color: var(--accent-warm); background: var(--bg-primary); }
.tl-node.now { border-top-color: var(--accent-ink); background: rgba(160, 49, 43, 0.05); }
.tl-year {
  font-family: var(--font-display);
  font-size: 40px; font-weight: 400;
  color: var(--text-secondary);
  line-height: 1; margin-bottom: 14px;
}
.tl-node.now .tl-year { color: var(--accent-ink); }
.tl-title { font-size: 14px; font-weight: 500; color: var(--text-primary); margin-bottom: 6px; }
.tl-desc { font-size: 12px; color: var(--text-secondary); line-height: 1.55; }

/* ─── Sections ─────────────────────────────────────────────── */
section {
  padding: 120px 48px;
  border-bottom: 1px solid var(--rule);
  background: var(--bg-primary);
}
.section-inner { max-width: 1400px; margin: 0 auto; }
.section-label {
  font-family: var(--font-body);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 56px;
  display: flex; align-items: center; gap: 16px;
}
.section-label::after {
  content: ''; display: block;
  height: 1px; width: 48px;
  background: var(--accent-warm);
}

/* ─── Catalog (legacy page) ───────────────────────────────── */
.catalog { background: var(--bg-elevated); border-bottom: 1px solid var(--rule); }
.catalog-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 48px; gap: 40px;
}
.catalog-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 400; line-height: 1.1;
  color: var(--text-primary);
  max-width: 600px;
}
.catalog-sub {
  font-size: 15px; color: var(--text-secondary);
  font-weight: 400; max-width: 380px;
  line-height: 1.7; flex-shrink: 0; text-align: right;
}

/* properties track (§3.5) — auto-scrolls via JS; user can also swipe/drag */
.properties-stage {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 20px 0 60px;
  position: relative;
  -ms-overflow-style: none; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  /* Soft fade at edges so the loop point reads as continuous motion */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 64px, #000 calc(100% - 64px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 64px, #000 calc(100% - 64px), transparent 100%);
}
.properties-stage::-webkit-scrollbar { display: none; }
.properties-track {
  display: flex; gap: 28px;
  padding: 0 48px;
  width: max-content;
}
/* Second row is hidden on desktop; revealed by the mobile media query below */
.properties-track-alt { display: none; }
.property-card {
  flex: 0 0 340px;
  transition: transform 0.4s ease;
  background: var(--bg-elevated);
  border: 1px solid var(--rule);
}
.property-card:hover { transform: translateY(-8px); }
.property-card-img {
  width: 100%; aspect-ratio: 2/3;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, var(--accent-deep) 0%, var(--bg-deep) 100%);
}
.property-card-body { padding: 22px 24px; }
.property-card-title {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.15;
}
.property-card-meta {
  font-size: 12px; letter-spacing: 0.04em;
  color: var(--text-secondary);
  font-weight: 400;
}

/* legacy catalog grid (existing) */
.catalog-grid-big { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 4px; margin-bottom: 4px; }
.catalog-grid-big .catalog-card { height: 560px; }
.catalog-grid-big .catalog-card::after { display: none; }
.catalog-grid-big .catalog-card-content { padding: 28px; }
.catalog-grid-big .catalog-card:first-child .catalog-card-content { padding: 36px; }
.catalog-grid-big .catalog-card-title { font-size: 22px; }
.catalog-grid-big .catalog-card:first-child .catalog-card-title { font-size: 32px; margin-bottom: 10px; }
.catalog-grid-big .catalog-card-tag { font-size: 11px; color: rgba(247,241,229,0.65); }
.catalog-grid-big .catalog-card:first-child .catalog-card-label { display: block; }
.catalog-grid-small { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-bottom: 4px; }
.catalog-card {
  position: relative; overflow: hidden; cursor: default;
  background-color: var(--bg-deep);
}
.catalog-card::after { content: ''; display: block; padding-bottom: 150%; }
.catalog-card-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  opacity: 0; transition: opacity 0.5s ease, transform 0.7s ease;
}
.catalog-card-img.loaded { opacity: 1; }
.catalog-card:hover .catalog-card-img { transform: scale(1.04); }
.catalog-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.55) 35%, rgba(0,0,0,0.15) 65%, transparent 100%);
  z-index: 1;
}
.catalog-card-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px 22px; z-index: 2; color: var(--text-on-dark); }
.catalog-card-label { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-warm); font-family: var(--font-body); font-weight: 500; margin-bottom: 8px; display: none; }
.catalog-card-title { font-family: var(--font-display); font-size: 18px; font-weight: 500; color: var(--text-on-dark); line-height: 1.2; margin-bottom: 6px; }
.catalog-card-tag { font-size: 11px; letter-spacing: 0.04em; color: rgba(247,241,229,0.55); font-family: var(--font-body); line-height: 1.5; }
.catalog-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--fallback, var(--bg-deep)) 0%, rgba(201,166,107,0.1) 50%, var(--fallback, var(--bg-deep)) 100%);
  background-size: 200% 200%;
  animation: shimmer 2.5s ease infinite;
  z-index: 0; transition: opacity 0.5s;
}
.catalog-card.img-loaded::before { opacity: 0; }
@keyframes shimmer {
  0% { background-position: 200% 200%; }
  100% { background-position: -200% -200%; }
}
.catalog-footer { display: flex; align-items: center; gap: 24px; padding-top: 20px; }
.catalog-count { font-family: var(--font-display); font-size: 44px; font-weight: 400; color: var(--accent-warm); }
.catalog-count-label { font-size: 13px; color: var(--text-secondary); line-height: 1.4; }

/* ─── Networks / publisher logos ──────────────────────────── */
.networks { background: var(--bg-primary); }
.networks-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.networks-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 400; line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 24px;
}
.networks-desc { font-size: 16px; color: var(--text-secondary); line-height: 1.8; font-weight: 400; margin-bottom: 28px; }
.network-group { margin-bottom: 32px; }
.network-group-label {
  font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  font-family: var(--font-body); font-weight: 500;
  margin-bottom: 14px;
}
.network-list { display: flex; flex-wrap: wrap; gap: 8px; }
.network-tag {
  border: 1px solid var(--rule);
  padding: 8px 14px;
  font-size: 13px;
  color: var(--text-primary);
  background: var(--bg-elevated);
}
.network-tag.pub {
  border-color: var(--accent-ink);
  color: var(--accent-ink);
  background: rgba(160, 49, 43, 0.04);
}

/* Relationship graph (SVG, §3.7) */
.relationship-graph {
  width: 100%;
  max-width: 1100px;
  margin: 20px auto 0;
  height: auto;
  display: block;
}
.relationship-graph .edge {
  fill: none;
  stroke: var(--accent-warm);
  stroke-width: 1.2;
  opacity: 0.55;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: drawEdge 2s ease-out forwards;
  transition: opacity 0.3s, stroke-width 0.3s;
}
.relationship-graph .edge:hover { opacity: 1; stroke-width: 2; }
.relationship-graph .node circle { fill: var(--bg-elevated); stroke: var(--accent-deep); stroke-width: 1.5; transition: fill 0.2s; }
.relationship-graph .node:hover circle { fill: var(--accent-warm); }
.relationship-graph .node text { font-family: var(--font-body); font-size: 12px; font-weight: 500; fill: var(--text-primary); text-anchor: middle; }
.relationship-graph .node.center circle { fill: var(--accent-ink); stroke: var(--accent-ink); }
.relationship-graph .node.center text { fill: var(--text-on-dark); font-weight: 600; }
@keyframes drawEdge { to { stroke-dashoffset: 0; } }

/* ─── Japan Access page ──────────────────────────────────── */
.govt { background: var(--bg-primary); }
.govt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.govt-headline {
  font-family: var(--font-display);
  font-size: clamp(34px, 3.5vw, 50px);
  font-weight: 400; line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 24px;
}
.govt-desc { font-size: 16px; color: var(--text-secondary); line-height: 1.85; font-weight: 400; margin-bottom: 24px; }
.govt-desc strong { color: var(--text-primary); font-weight: 500; }
.govt-badge {
  display: inline-block; margin-top: 12px;
  padding: 10px 18px;
  border: 1px solid var(--accent-ink);
  font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink);
  font-family: var(--font-body); font-weight: 500;
  background: rgba(160, 49, 43, 0.04);
}
.govt-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; background: var(--rule); }
.govt-card {
  background: var(--bg-elevated);
  padding: 32px 28px;
  border-top: 2px solid var(--accent-warm);
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  position: relative;
}
.govt-card:hover {
  background: #fff8e9;
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -18px rgba(160, 49, 43, 0.22);
}
.govt-card:hover .govt-card-link { color: var(--accent-ink); }
.govt-card-icon {
  font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  font-family: var(--font-body); font-weight: 500;
  margin-bottom: 14px;
}
.govt-card-title {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 12px; line-height: 1.2;
}
.govt-card-desc { font-size: 14px; line-height: 1.75; color: var(--text-secondary); font-weight: 400; flex: 1; }
.govt-card-link {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-family: var(--font-body);
  font-size: 10.5px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-warm);
  font-weight: 500;
  transition: color 0.25s ease;
}

/* ─── Services ────────────────────────────────────────────── */
.services { background: var(--bg-elevated); border-bottom: 1px solid var(--rule); }
.services-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 400; color: var(--text-primary);
  margin-bottom: 64px; max-width: 640px; line-height: 1.1;
}
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); }
.svc {
  background: var(--bg-primary);
  padding: 44px 36px;
  border-top: 2px solid var(--text-primary);
  transition: border-color 0.2s;
}
.svc:hover { border-color: var(--accent-ink); }
.svc-num {
  font-family: var(--font-display);
  font-size: 44px; font-weight: 400;
  color: var(--accent-warm);
  margin-bottom: 24px; line-height: 1;
}
.svc-title {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 16px; line-height: 1.2;
}
.svc-desc { font-size: 15px; line-height: 1.7; color: var(--text-secondary); font-weight: 400; }
.svc-note {
  margin-top: 20px; padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: 12px; letter-spacing: 0.08em;
  color: var(--accent-ink);
  font-family: var(--font-body); font-weight: 500;
}

/* ─── Editorial body (cloverway / mission) ───────────────── */
.cwway { background: var(--bg-primary); position: relative; overflow: hidden; border-bottom: 1px solid var(--rule); }
.cwway .section-inner { position: relative; }
.cwway-header {
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: 80px; align-items: end;
  margin-bottom: 72px; padding-bottom: 56px;
  border-bottom: 1px solid var(--rule);
}
.cwway-mark {
  font-family: var(--font-display);
  font-size: clamp(64px, 10vw, 140px);
  font-weight: 400; color: var(--text-primary);
  line-height: 0.9; letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.cwway-mark em { font-style: italic; color: var(--accent-deep); }
.cwway-lede {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 400; font-style: italic;
  color: var(--text-secondary);
  line-height: 1.5;
}
.cwway-meta {
  display: flex; flex-direction: column; gap: 16px;
  font-family: var(--font-body);
}
.cwway-meta-row {
  display: flex; justify-content: space-between; gap: 20px;
  padding-bottom: 12px; border-bottom: 1px solid var(--rule);
}
.cwway-meta-label {
  font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-secondary); font-weight: 500;
}
.cwway-meta-value { font-size: 13px; color: var(--text-primary); text-align: right; font-weight: 500; }
.cwway-pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-bottom: 72px; background: var(--rule); }
.cwway-pillar {
  background: var(--bg-elevated);
  padding: 36px 30px;
  border-top: 2px solid var(--accent-warm);
}
.cwway-pillar-num {
  font-family: var(--font-display);
  font-size: 44px; font-weight: 400;
  color: var(--accent-warm);
  line-height: 1; margin-bottom: 16px;
}
.cwway-pillar-title {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 12px; line-height: 1.2;
}
.cwway-pillar-desc { font-size: 14px; line-height: 1.75; color: var(--text-secondary); font-weight: 400; }
.cwway-body { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-bottom: 72px; }
.cwway-col h3 {
  font-family: var(--font-body);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 20px;
}
.cwway-col h4 {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 400; color: var(--text-primary);
  line-height: 1.2; margin-bottom: 20px;
}
.cwway-col p { font-size: 16px; line-height: 1.85; color: var(--text-secondary); font-weight: 400; margin-bottom: 16px; }
.cwway-col p strong { color: var(--text-primary); font-weight: 500; }
.cwway-credits {
  background: var(--bg-elevated);
  padding: 56px 48px;
  margin-bottom: 72px;
  border-top: 2px solid var(--accent-ink);
}
.cwway-credits-label {
  font-family: var(--font-body);
  font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent-ink);
  font-weight: 500; margin-bottom: 28px;
}
.cwway-credits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.cw-credit-item { border-left: 2px solid var(--accent-warm); padding-left: 22px; }
.cw-credit-title {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px; line-height: 1.2;
}
.cw-credit-role {
  font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent-ink);
  font-family: var(--font-body); font-weight: 500;
  margin-bottom: 10px;
}
.cw-credit-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.7; font-weight: 400; }
.cwway-quote { max-width: 880px; margin: 0 auto; text-align: center; padding: 40px 0; }
.cwway-quote-mark {
  font-family: var(--font-display);
  font-size: 84px; color: var(--accent-ink);
  line-height: 0.2; margin-bottom: 24px;
  font-style: italic;
}
.cwway-quote-text {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 400; font-style: italic;
  color: var(--text-primary);
  line-height: 1.5; margin-bottom: 20px;
}
.cwway-quote-attr {
  font-family: var(--font-body);
  font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-secondary);
  font-weight: 500;
}
.cwway-sources { margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--rule); }
.cwway-sources-label {
  font-family: var(--font-body);
  font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-secondary);
  font-weight: 500; margin-bottom: 18px;
}
.cwway-source-list { display: flex; flex-wrap: wrap; gap: 8px; }
.cwway-source-tag {
  font-size: 12px;
  color: var(--text-secondary);
  font-family: var(--font-body);
  border: 1px solid var(--rule);
  padding: 6px 12px;
  background: var(--bg-elevated);
  text-decoration: none;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
  display: inline-block;
}
a.cwway-source-tag:hover {
  color: var(--accent-ink);
  border-color: var(--accent-ink);
  background: rgba(160, 49, 43, 0.06);
}
a.cwway-source-tag:visited { color: var(--text-secondary); }
a.cwway-source-tag:visited:hover { color: var(--accent-ink); }

/* ─── Team ────────────────────────────────────────────────── */
.team { background: var(--bg-elevated); }
.team-intro { max-width: 720px; margin-bottom: 64px; }
.team-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 400; line-height: 1.1;
  color: var(--text-primary); margin-bottom: 24px;
}
.team-desc { font-size: 16px; color: var(--text-secondary); line-height: 1.85; font-weight: 400; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--rule); margin-bottom: 1px; }
.team-card {
  background: var(--bg-primary);
  padding: 0;
  border-top: 2px solid var(--accent-warm);
  transition: border-color 0.2s, background 0.2s;
  display: flex; flex-direction: column;
}
.team-card:hover { border-top-color: var(--accent-ink); background: var(--bg-elevated); }
.team-card.lead { border-top-color: var(--accent-ink); }
.team-photo {
  position: relative; overflow: hidden;
  background: var(--bg-deep);
  aspect-ratio: 4 / 5; width: 100%;
}
.team-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  transition: transform 0.6s ease;
}
.team-card:hover .team-photo img { transform: scale(1.03); }
.team-photo-fade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(15, 42, 61, 0.35) 0%, transparent 40%); pointer-events: none; }
.team-photo.placeholder { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--accent-deep) 0%, var(--bg-deep) 100%); }
.team-photo.placeholder::after {
  content: attr(data-initials);
  font-family: var(--font-display);
  font-size: 96px; font-weight: 400;
  color: rgba(247, 241, 229, 0.2);
  letter-spacing: 0.02em;
}
.team-content { padding: 28px 28px 32px; flex-grow: 1; display: flex; flex-direction: column; }
.team-role {
  font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent-ink);
  font-family: var(--font-body); font-weight: 500;
  margin-bottom: 14px;
}
.team-name {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 500;
  color: var(--text-primary); margin-bottom: 4px; line-height: 1.1;
}
.team-kanji { font-size: 12px; color: var(--text-secondary); font-family: var(--font-body); margin-bottom: 18px; letter-spacing: 0.04em; }
.team-bio { flex-grow: 1; }
.team-bio p { font-size: 14px; line-height: 1.7; color: var(--text-secondary); font-weight: 400; margin-bottom: 10px; }
.team-bio p strong { color: var(--text-primary); font-weight: 500; }
.team-creds { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 6px; }
.team-cred {
  font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent-ink);
  font-family: var(--font-body); font-weight: 500;
  border: 1px solid var(--rule);
  padding: 5px 10px;
  background: var(--bg-elevated);
}

/* ─── Home pages-grid ─────────────────────────────────────── */
.pages-intro { text-align: center; padding: 120px 48px 64px; background: var(--bg-primary); border-bottom: 1px solid var(--rule); }
.pages-intro h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.4vw, 48px);
  font-weight: 400; color: var(--text-primary);
  line-height: 1.15; max-width: 840px;
  margin: 0 auto 24px;
}
.pages-intro h2 em { font-style: italic; color: var(--accent-deep); }
.pages-intro p { font-size: 16px; color: var(--text-secondary); line-height: 1.85; max-width: 720px; margin: 0 auto; font-weight: 400; }
.pages-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--rule);
  padding: 1px 48px 120px 48px;
  border-bottom: 1px solid var(--rule);
}
.pages-grid .page-card { background: var(--bg-elevated); }
.page-card {
  padding: 48px 40px;
  text-decoration: none;
  border-top: 2px solid transparent;
  transition: border-color 0.25s, background 0.25s;
  display: flex; flex-direction: column;
  min-height: 300px;
}
.page-card:hover { border-top-color: var(--accent-ink); background: var(--bg-primary); }
.page-card-title {
  font-family: var(--font-display);
  font-size: 34px; font-weight: 500;
  color: var(--text-primary);
  line-height: 1.1; margin-bottom: 10px;
}
.page-card-subhead {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 400;
  font-style: italic;
  color: var(--accent-deep);
  margin-bottom: 20px;
  line-height: 1.3;
}
.page-card-desc { font-size: 14px; line-height: 1.7; color: var(--text-secondary); font-weight: 400; flex-grow: 1; }
.page-card-cta {
  margin-top: 28px;
  font-family: var(--font-body);
  font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; font-weight: 500;
  color: var(--accent-deep);
  display: flex; align-items: center; gap: 10px;
  transition: color 0.2s;
}
.page-card-cta::after { content: '→'; font-size: 14px; transition: transform 0.2s; }
.page-card:hover .page-card-cta { color: var(--accent-ink); }
.page-card:hover .page-card-cta::after { transform: translateX(4px); }

/* ─── Contact form ───────────────────────────────────────── */
.contact-section { background: var(--bg-elevated); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 400; line-height: 1.1;
  color: var(--text-primary); margin-bottom: 20px;
}
.contact-desc { font-size: 16px; color: var(--text-secondary); line-height: 1.85; font-weight: 400; margin-bottom: 40px; }
.contact-detail { margin-bottom: 22px; }
.contact-detail-label {
  font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent-ink);
  font-family: var(--font-body); font-weight: 500;
  margin-bottom: 6px;
}
.contact-detail-value { font-size: 14px; color: var(--text-primary); line-height: 1.6; }
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-label {
  font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-secondary);
  font-family: var(--font-body); font-weight: 500;
}
.form-input, .form-textarea {
  background: var(--bg-primary);
  border: 1px solid var(--rule);
  border-top-color: var(--rule);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px; font-weight: 400;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none; appearance: none;
  border-radius: 0;
}
.form-input:focus, .form-textarea:focus { border-color: var(--accent-ink); }
.form-textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-secondary); opacity: 0.5; }
.form-submit {
  display: inline-block;
  background: var(--bg-deep);
  color: var(--text-on-dark);
  border: none;
  padding: 16px 44px;
  font-family: var(--font-body);
  font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  align-self: flex-start;
  margin-top: 6px;
}
.form-submit:hover { background: var(--accent-deep); }

/* ─── Closing section ────────────────────────────────────── */
.closing {
  background: var(--bg-deep);
  color: var(--text-on-dark);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 72px 48px 56px;
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--accent-deep);
}
.closing-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(201, 166, 107, 0.12) 0%, transparent 68%);
  pointer-events: none;
}
.closing-content { position: relative; max-width: 960px; width: 100%; }
.closing-sup {
  font-family: var(--font-body);
  font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(247, 241, 229, 0.55);
  margin-bottom: 28px; font-weight: 500;
}
.closing-rule { width: 100%; height: 1px; background: rgba(247, 241, 229, 0.18); }
.closing-wordmark {
  font-family: var(--font-display);
  font-size: clamp(80px, 14vw, 180px);
  font-weight: 400; line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--text-on-dark);
  margin: 18px 0;
}
.closing-wordmark em { font-style: italic; color: var(--accent-warm); }
.closing-bridge {
  font-family: var(--font-body);
  font-size: 12px; letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-warm);
  margin: 28px 0 20px; font-weight: 500;
}
.closing-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 36px);
  font-weight: 400; line-height: 1.35;
  color: var(--text-on-dark); margin-bottom: 28px;
}
.closing-title em { font-style: italic; color: var(--accent-warm); }
.closing-body {
  font-size: 16px; color: rgba(247, 241, 229, 0.72);
  line-height: 1.85; font-weight: 400;
  max-width: 560px; margin: 0 auto 48px;
}
.closing-cta {
  display: inline-block;
  background: var(--accent-warm);
  color: var(--bg-deep);
  padding: 16px 40px;
  font-family: var(--font-body);
  font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  margin-bottom: 48px;
}
.closing-cta:hover { background: var(--text-on-dark); color: var(--bg-deep); }
.closing-cities {
  display: flex; justify-content: center; align-items: center;
  gap: 20px;
  font-family: var(--font-body);
  font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(247, 241, 229, 0.4);
  font-weight: 500;
}
.closing-dot { color: var(--accent-warm); opacity: 0.6; }

/* ─── Footer ──────────────────────────────────────────────── */
footer {
  background: var(--bg-deep);
  color: var(--text-on-dark);
  border-top: 1px solid var(--accent-deep);
  padding: 48px 48px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}
.footer-wordmark, .footer-logo {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-on-dark);
}
.footer-wordmark em, .footer-logo em { color: var(--accent-warm); font-style: italic; }
.footer-tagline {
  font-size: 14px;
  color: var(--accent-warm);
  font-family: var(--font-display);
  font-style: italic;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1100px;
  gap: 20px;
  margin-top: 12px;
}
.footer-bottom-left {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 6px;
}
.footer-copy {
  font-size: 12px; color: rgba(247, 241, 229, 0.42);
  font-family: var(--font-body);
  letter-spacing: 0.04em;
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .nav-links { gap: 22px; }
  .nav-links a { font-size: 12px; }
}

@media (max-width: 900px) {
  nav { padding: 18px 28px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 11px; }

  .hero { padding: 120px 36px 72px; }
  .hero-stats-row { gap: 32px; }
  .hero-stat-num { font-size: 42px; }
  .hero-tagline { font-size: clamp(20px, 4vw, 28px); }

  .page-header { padding: 140px 32px 64px; }

  .split, .split.flip { grid-template-columns: 1fr; }
  .split.flip .photo-cell { order: -1; }
  .photo-cell { min-height: 60vw !important; }
  .photo-fade-r, .photo-fade-l { background: linear-gradient(to top, rgba(15, 42, 61, 0.6) 0%, transparent 50%); }
  .text-cell { padding: 60px 40px; }

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

  section { padding: 80px 32px; }

  .catalog-header { flex-direction: column; align-items: flex-start; }
  .catalog-sub { text-align: left; max-width: 100%; }
  .catalog-grid-big { grid-template-columns: 1fr 1fr; height: auto; }
  .catalog-grid-big .catalog-card { height: 42vw; }
  .catalog-grid-big .catalog-card:first-child { grid-column: 1 / -1; height: 56vw; }
  .catalog-grid-small { grid-template-columns: repeat(3, 1fr); }

  .properties-track { padding: 0 28px; }
  .property-card { flex: 0 0 260px; }

  .networks-grid { grid-template-columns: 1fr; gap: 48px; }
  .govt-grid { grid-template-columns: 1fr; gap: 48px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .team-content { padding: 24px 24px 28px; }

  .cwway-header { grid-template-columns: 1fr; gap: 36px; }
  .cwway-pillars { grid-template-columns: 1fr 1fr; }
  .cwway-body { grid-template-columns: 1fr; gap: 40px; }
  .cwway-credits { padding: 40px 28px; }
  .cwway-credits-grid { grid-template-columns: 1fr; gap: 28px; }

  .pages-grid { grid-template-columns: 1fr 1fr; padding: 1px 32px 80px 32px; }
  .pages-intro { padding: 80px 32px 48px; }
}

@media (max-width: 720px) {
  nav { padding: 14px 18px; }
  .nav-logo { font-size: 24px; flex-shrink: 0; }
  .nav-links { display: none; }
  .nav-toggle { display: block; flex-shrink: 0; }
  .nav-current { display: block; }

  .hero { padding: 140px 24px 60px; }
  .hero-tagline { font-size: clamp(18px, 5vw, 24px); }
  .hero-subline { font-size: 14px; margin-bottom: 52px; }
  .hero-stats-row { gap: 0; justify-content: space-around; }
  .hero-stat-num { font-size: 36px; }
  .hero-stat-label { font-size: 9px; letter-spacing: 0.06em; }
  .hero-stat-div { height: 28px; }

  /* Page headers — scale down for mobile readability */
  .page-header { padding: 130px 20px 48px; }
  .page-header-sup { font-size: 10px; letter-spacing: 0.18em; margin-bottom: 18px; }
  .page-header-title { font-size: clamp(40px, 10vw, 64px); margin-bottom: 18px; }
  .page-header-lede { font-size: 16px; line-height: 1.55; padding: 0 8px; }

  /* Photo panels stack — text cell breathes */
  .photo-cell { min-height: 80vw !important; }
  .text-cell { padding: 48px 24px; }
  .panel-headline { font-size: clamp(28px, 7vw, 40px); margin-bottom: 22px; }
  .panel-body p { font-size: 15px; line-height: 1.7; margin-bottom: 14px; }
  .pull-quote { padding: 14px 18px; margin: 22px 0; }
  .pull-quote p { font-size: 17px; line-height: 1.5; }
  .persons-row { flex-wrap: wrap; gap: 16px; padding-top: 24px; margin-top: 28px; }
  .person-div { display: none; }
  .photo-caption-year { font-size: 56px; }
  .photo-caption-text { font-size: 11px; }
  .photo-badge { bottom: 20px; right: 20px; padding: 10px 16px; }
  .photo-badge-title { font-size: 17px; }
  .photo-tag { top: 20px; left: 20px; font-size: 9px; padding: 6px 10px; }

  /* Timeline */
  .timeline-track { grid-template-columns: repeat(2, 1fr); }
  .tl-node { padding: 24px 20px; }
  .tl-year { font-size: 32px; }
  .tl-title { font-size: 13px; }

  /* Sections */
  section { padding: 60px 20px; }
  .section-label { margin-bottom: 28px; font-size: 10px; letter-spacing: 0.18em; }
  .section-label::after { width: 32px; }

  /* Catalog */
  .catalog-grid-big { grid-template-columns: 1fr; }
  .catalog-grid-big .catalog-card { height: 70vw; }
  .catalog-grid-big .catalog-card:first-child { grid-column: auto; height: 80vw; }
  .catalog-grid-big .catalog-card-content { padding: 22px 22px; }
  .catalog-grid-big .catalog-card-title { font-size: 20px; }
  .catalog-grid-big .catalog-card:first-child .catalog-card-title { font-size: 24px; }
  .catalog-grid-small { grid-template-columns: repeat(2, 1fr); }
  .catalog-header { gap: 20px; }
  .catalog-headline { font-size: clamp(28px, 7vw, 40px); }
  .catalog-sub { font-size: 14px; }
  .catalog-count { font-size: 36px; }

  /* Properties carousel — two stacked rows, smaller cards, opposite drift directions */
  .properties-stage {
    overflow-x: hidden;            /* prevent any overflow from panning the page */
    overflow-y: visible;
    display: flex; flex-direction: column;
    gap: 10px;
    padding: 14px 0 40px;
    width: 100%;
    -webkit-mask-image: none;
            mask-image: none;
  }
  .properties-track {
    width: 100%;                   /* override base max-content so track doesn't overflow page */
    max-width: 100vw;
    overflow-x: auto;              /* internal horizontal scroll for this row only */
    overflow-y: hidden;
    -ms-overflow-style: none; scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 0 16px; gap: 10px;
    /* soft edge fade per row */
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%);
  }
  .properties-track::-webkit-scrollbar { display: none; }
  .properties-track-alt { display: flex; }  /* reveal second row on mobile */
  .property-card { flex: 0 0 140px; max-width: none; border: 1px solid var(--rule); }
  .property-card-body { padding: 10px 12px; }
  .property-card-title { font-size: 13px; line-height: 1.2; margin-bottom: 3px; }
  .property-card-meta { font-size: 9px; letter-spacing: 0; }

  /* Safety: prevent any rogue element from panning the whole page horizontally */
  html, body { overflow-x: hidden; max-width: 100vw; }

  /* Govt + service grids */
  .govt-cards { grid-template-columns: 1fr; }
  .govt-card { padding: 26px 22px; }
  .govt-card-title { font-size: 20px; }
  .govt-card-desc { font-size: 13px; }
  .govt-headline { font-size: clamp(28px, 6.5vw, 38px); }
  .govt-desc { font-size: 15px; }

  .services-grid { grid-template-columns: 1fr; }
  .services-headline { font-size: clamp(28px, 7vw, 40px); margin-bottom: 40px; }
  .svc { padding: 32px 26px; }
  .svc-num { font-size: 36px; margin-bottom: 18px; }
  .svc-title { font-size: 19px; margin-bottom: 12px; }
  .svc-desc { font-size: 14px; }

  /* Team */
  .team-grid { grid-template-columns: 1fr; }
  .team-headline { font-size: clamp(28px, 7vw, 40px); }
  .team-desc { font-size: 15px; }
  .team-card { display: flex; flex-direction: column; }
  .team-photo { aspect-ratio: 4 / 4; max-height: 70vh; }
  .team-photo img { object-position: center 18%; }
  .team-content { padding: 24px 22px 28px; }
  .team-name { font-size: 26px; }
  .team-bio p { font-size: 14px; line-height: 1.65; }
  .team-creds { gap: 6px; }
  .team-cred { font-size: 9px; padding: 4px 8px; }

  /* Cloverway editorial */
  .cwway-pillars { grid-template-columns: 1fr; }
  .cwway-pillar { padding: 28px 24px; }
  .cwway-pillar-title { font-size: 19px; }
  .cwway-pillar-desc { font-size: 13px; }
  .cwway-mark { font-size: clamp(48px, 13vw, 72px); }
  .cwway-lede { font-size: clamp(17px, 4.5vw, 21px); }
  .cwway-meta-row { padding-bottom: 10px; }
  .cwway-meta-label { font-size: 9px; }
  .cwway-meta-value { font-size: 12px; }
  .cwway-col h4 { font-size: clamp(22px, 5.5vw, 28px); margin-bottom: 16px; }
  .cwway-col p { font-size: 15px; }
  .cwway-credits { padding: 36px 22px; }
  .cwway-credits-label { margin-bottom: 22px; }
  .cw-credit-title { font-size: 19px; }
  .cwway-quote { padding: 24px 0; }
  .cwway-quote-mark { font-size: 60px; }
  .cwway-quote-text { font-size: clamp(18px, 5vw, 24px); }

  /* Networks */
  .networks-headline { font-size: clamp(28px, 7vw, 40px); }
  .networks-desc { font-size: 15px; }
  .network-tag { font-size: 12px; padding: 6px 12px; }

  /* Form */
  .form-row { grid-template-columns: 1fr; }
  .form-submit { width: 100%; text-align: center; padding: 16px; }
  .form-input, .form-textarea { font-size: 16px; padding: 12px 14px; } /* 16px prevents iOS auto-zoom */
  .contact-headline { font-size: clamp(28px, 7vw, 40px); }
  .contact-desc { font-size: 15px; margin-bottom: 32px; }

  /* Closing — tightened on mobile */
  .closing { padding: 44px 24px 36px; min-height: auto; }
  .closing-sup { font-size: 9px; letter-spacing: 0.16em; margin-bottom: 18px; }
  .closing-wordmark { font-size: clamp(60px, 17vw, 92px); margin: 8px 0; }
  .closing-bridge { font-size: 9px; letter-spacing: 0.18em; }
  .closing-title { font-size: clamp(20px, 5.5vw, 28px); margin-bottom: 18px; line-height: 1.2; }
  .closing-body { font-size: 15px; margin-bottom: 28px; max-width: 90%; }
  .closing-cta { padding: 13px 28px; font-size: 11px; letter-spacing: 0.16em; }
  .closing-cities { gap: 10px; font-size: 9px; letter-spacing: 0.18em; flex-wrap: wrap; justify-content: center; }

  /* Pages grid (home) */
  .pages-grid { grid-template-columns: 1fr; padding: 1px 20px 60px 20px; }
  .pages-intro { padding: 64px 24px 36px; }
  .pages-intro h2 { font-size: clamp(24px, 6vw, 34px); }
  .pages-intro p { font-size: 15px; }
  .page-card { min-height: 200px; padding: 32px 24px; }
  .page-card-title { font-size: 26px; }
  .page-card-subhead { font-size: 16px; margin-bottom: 16px; }
  .page-card-desc { font-size: 13px; }

  /* Footer — tightened on mobile */
  footer { padding: 22px 18px 18px; gap: 8px; }
  .footer-wordmark, .footer-logo { font-size: 18px; }
  .footer-tagline { font-size: 13px; margin-bottom: 2px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; padding-top: 8px; }
  .footer-bottom-left { align-items: center; }
  .footer-copy { font-size: 11px; }
  .harbor-coordinates { grid-template-columns: repeat(2, 1fr); gap: 18px 0; padding: 18px 0; margin: 14px 0; }
  .harbor-port { padding: 0 10px; }
  .harbor-port:nth-child(2) { border-right: none; }
  .harbor-port:nth-child(-n+2) { padding-bottom: 16px; border-bottom: 0.5px solid rgba(247, 241, 229, 0.12); }
  .port-name { font-size: 17px; margin-bottom: 6px; }
  .port-coord { font-size: 9px; }

  /* Mobile nav overlay */
  .mobile-nav-overlay { gap: 22px; padding: 100px 24px 24px; }
  .mobile-nav-overlay a { font-size: 24px; padding: 6px 12px; }

  /* Hanko adjustments */
  .hanko-legacy { width: 76px; height: 76px; margin: 0 0 36px auto; }
  .hanko-footer-seal { width: 54px; height: 54px; }
}

/* Extra-small phones */
@media (max-width: 380px) {
  .page-header-title { font-size: clamp(34px, 9vw, 48px); }
  .page-header-lede { font-size: 15px; }
  .panel-headline { font-size: clamp(24px, 6.5vw, 34px); }
  .closing-wordmark { font-size: clamp(54px, 16vw, 78px); }
  .cwway-mark { font-size: clamp(42px, 12vw, 60px); }
  .closing-cities { font-size: 8px; gap: 6px; letter-spacing: 0.12em; }
  .footer-cities { display: none; }
  .nav-logo { font-size: 22px; }
  .mobile-nav-overlay a { font-size: 22px; }
}
