/* =========================================================
   Whitestone Strategic Advisors — design system
   See DESIGN.md for the underlying spec.
   ========================================================= */

:root {
  --navy: #1B2A4E;
  --navy-2: #243766;
  --bone: #F7F5F0;
  --white: #FFFFFF;
  --text: #1A1F2B;
  --muted: #5A6478;
  --bronze: #F1CD39;
  --bronze-deep: #C49B12;
  --border: #E5E1D8;
  --marble-bg:
    radial-gradient(ellipse at 12% 18%, rgba(255,255,255,0.86) 0 12%, transparent 34%),
    radial-gradient(ellipse at 78% 8%, rgba(229,225,216,0.34) 0 10%, transparent 32%),
    linear-gradient(118deg, transparent 0 24%, rgba(178,184,196,0.16) 25%, transparent 27% 45%, rgba(206,199,187,0.14) 47%, transparent 49% 100%),
    linear-gradient(64deg, transparent 0 16%, rgba(255,255,255,0.44) 18%, transparent 20% 56%, rgba(196,155,18,0.07) 58%, transparent 60% 100%),
    var(--bone);

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(72px, 10vw, 128px);

  --radius: 4px;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset & base ---------- */

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding-top: 92px;
  background: var(--marble-bg);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center top;
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

:target { scroll-margin-top: 116px; }

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--bronze-deep); }

p { margin: 0 0 1em; }

ul { padding-left: 1.1em; margin: 0 0 1em; }
ul li { margin-bottom: 0.5em; }

/* ---------- Layout primitives ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}
.section-alt { background: transparent; }
.section-dark {
  background:
    linear-gradient(90deg, rgba(18,29,54,0.66) 0%, rgba(20,32,59,0.48) 48%, rgba(20,32,59,0.36) 100%),
    linear-gradient(180deg, rgba(27,42,78,0.06) 0%, rgba(22,34,63,0.24) 100%),
    url("strategic-hero-bg.png"),
    var(--navy);
  background-position: center, center, center, center;
  background-repeat: no-repeat;
  background-size: cover, cover, cover, cover;
  color: var(--white);
}

.section-head {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-intro {
  color: var(--muted);
  font-size: 1.05rem;
  margin-top: 8px;
}

/* ---------- Typography ---------- */

.eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.3vw, 1.8rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bronze-deep);
  margin: 0 0 20px;
  display: inline-block;
}
.eyebrow-light { color: var(--bronze); opacity: 0.95; }

.heading {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 3.6vw, 2.85rem);
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--navy);
  margin: 0 0 18px;
}
.heading-on-dark { color: var(--white); }

.display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--white);
  margin: 0 0 24px;
}

.lede {
  font-size: 1.18rem;
  color: rgba(255,255,255,0.85);
  max-width: 620px;
  margin: 0 0 32px;
  line-height: 1.55;
}
.lede-sm {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.82);
  max-width: 520px;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background:
    linear-gradient(rgba(247,245,240,0.88), rgba(247,245,240,0.88)),
    var(--marble-bg);
  background-attachment: scroll, fixed;
  background-position: center top, center top;
  background-repeat: no-repeat;
  background-size: auto, 100% 100%;
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
}

.brand { display: inline-flex; align-items: center; }
.brand-mark {
  height: 82px;
  width: auto;
  max-width: 280px;
  border-radius: 4px;
  object-fit: contain;
}

.primary-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.primary-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.01em;
}
.primary-nav a:hover { color: var(--navy); }

.nav-cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 9px 16px;
  border-radius: var(--radius);
  transition: background 200ms ease-out;
}
.nav-cta:hover { background: var(--navy-2); }
.nav-japanese {
  border: 1px solid var(--navy);
  color: var(--navy) !important;
  font-family: var(--sans);
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: background 200ms ease-out, color 200ms ease-out, border-color 200ms ease-out;
}
.nav-japanese:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white) !important;
}

@media (max-width: 720px) {
  :root {
    --gutter: clamp(18px, 5vw, 24px);
    --section-y: 64px;
  }

  body {
    padding-top: 78px;
    background-attachment: scroll;
    background-size: cover;
  }

  :target { scroll-margin-top: 98px; }

  .header-row { height: 78px; }
  .brand-mark { height: 64px; max-width: 210px; }
  .primary-nav {
    display: flex;
    gap: 10px;
    align-items: center;
  }
  .primary-nav a {
    font-size: 0.88rem;
  }
  .primary-nav a:not(.nav-cta):not(.nav-japanese):not([href="#home"]) { display: none; }
  .nav-japanese {
    padding: 7px 10px;
    white-space: nowrap;
  }
  .nav-cta {
    padding: 8px 12px;
    white-space: nowrap;
  }
}

/* ---------- Hero ---------- */

.hero {
  background:
    linear-gradient(90deg, rgba(18,29,54,0.58) 0%, rgba(20,32,59,0.42) 42%, rgba(20,32,59,0.18) 100%),
    linear-gradient(180deg, rgba(27,42,78,0) 0%, rgba(22,34,63,0.08) 100%),
    radial-gradient(ellipse at 80% -10%, rgba(241,205,57,0.06), transparent 60%),
    url("strategic-hero-bg.png"),
    linear-gradient(180deg, #1B2A4E 0%, #16223F 100%);
  background-position: center, center, center, center, center;
  background-repeat: no-repeat;
  background-size: cover, cover, cover, cover, cover;
  color: var(--white);
  padding: clamp(72px, 10vw, 124px) 0 clamp(112px, 15vw, 176px);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(118deg, transparent 0 28%, rgba(255,255,255,0.08) 29%, transparent 31% 100%),
    linear-gradient(64deg, transparent 0 52%, rgba(241,205,57,0.08) 53%, transparent 55% 100%),
    radial-gradient(ellipse at 18% 22%, rgba(255,255,255,0.08), transparent 38%);
  opacity: 0.42;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,0.015) 0 1px,
      transparent 1px 3px
    );
  pointer-events: none;
}

.hero-inner { max-width: 880px; position: relative; z-index: 1; }
.hero .eyebrow {
  font-size: clamp(1.45rem, 2.7vw, 2.05rem);
  letter-spacing: 0.1em;
  margin-bottom: 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

@media (max-width: 720px) {
  .hero {
    padding: 56px 0 88px;
  }

  .eyebrow {
    font-size: clamp(1.05rem, 5vw, 1.35rem);
    letter-spacing: 0.09em;
    margin-bottom: 16px;
  }

  .hero .eyebrow {
    font-size: clamp(1.2rem, 5.4vw, 1.55rem);
    letter-spacing: 0.08em;
    margin-bottom: 18px;
  }

  .display {
    font-size: clamp(2.75rem, 15vw, 4rem);
    line-height: 1.02;
  }

  .heading {
    font-size: clamp(2.1rem, 10vw, 3rem);
    line-height: 1.08;
  }

  .lede,
  .lede-sm,
  .section-intro,
  .two-col-text p {
    font-size: 1rem;
  }

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

  .btn {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 13px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 200ms ease-out, color 200ms ease-out, border-color 200ms ease-out;
  text-decoration: none;
}

.btn-primary-on-dark {
  background: var(--white);
  color: var(--navy);
}
.btn-primary-on-dark:hover {
  background: var(--bronze);
  color: var(--white);
}

.btn-ghost-on-dark {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.45);
}
.btn-ghost-on-dark:hover {
  border-color: var(--bronze);
  color: var(--bronze);
}

/* ---------- Service cards ---------- */

.cards {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px 32px;
  transition: border-color 200ms ease-out, transform 200ms ease-out;
}
.card:hover {
  border-color: var(--bronze);
  transform: translateY(-2px);
}
.card-num {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--bronze-deep);
  margin: 0 0 18px;
  letter-spacing: 0.02em;
}
.card-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.45rem;
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 12px;
}
.card-title-nowrap {
  white-space: nowrap;
  font-size: clamp(1.18rem, 1.9vw, 1.45rem);
}
.card p { color: var(--muted); margin: 0; }

/* ---------- Two-column narrative ---------- */

.two-col {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
@media (max-width: 880px) {
  .two-col { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 720px) {
  .section-head {
    margin-bottom: 40px;
    text-align: left;
  }

  .cards {
    gap: 18px;
  }

  .card,
  .contact-form {
    padding: 24px 20px;
  }

  .quote-block {
    padding-left: 20px;
  }

  .quote-text {
    font-size: 1.22rem;
  }
}

.two-col-text p { color: var(--muted); font-size: 1.05rem; }

.section-help {
  padding-top: clamp(64px, 8vw, 96px);
  padding-bottom: clamp(64px, 8vw, 96px);
}
.list-label {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.help-closing {
  margin-top: 22px;
  color: var(--navy) !important;
  font-weight: 600;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border);
}
.check-list li {
  position: relative;
  padding: 18px 0 18px 32px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 1.02rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 29px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bronze-deep);
}

.quote-block {
  border-left: 2px solid var(--bronze);
  padding: 8px 0 8px 28px;
}
.quote-mark {
  font-family: var(--serif);
  font-size: 3.5rem;
  line-height: 0.5;
  color: var(--bronze);
  margin: 0 0 18px;
}
.quote-text {
  font-family: var(--serif);
  font-size: 1.4rem;
  line-height: 1.4;
  color: var(--navy);
  margin: 0;
}

/* ---------- Steps ---------- */

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
}

.steps li {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.step-num {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--bronze-deep);
  display: block;
  margin-bottom: 14px;
}
.step-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--navy);
  margin: 0 0 8px;
  line-height: 1.25;
}
.steps li p {
  color: var(--muted);
  font-size: 0.98rem;
  margin: 0;
}

/* ---------- Founder ---------- */

.founder {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
@media (max-width: 880px) {
  .founder { grid-template-columns: 1fr; }
}

.founder-photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  object-fit: cover;
  object-position: center top;
  width: 100%;
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px rgba(27, 42, 78, 0.14);
}

@media (max-width: 720px) {
  .founder-photo {
    aspect-ratio: 1 / 1.12;
    max-height: 520px;
  }

  #founder .heading {
    font-size: clamp(2.6rem, 13vw, 3.5rem);
  }

  .founder-creds {
    overflow-wrap: anywhere;
  }
}

#founder .heading {
  font-size: clamp(2.6rem, 5vw, 3.8rem);
}
#founder .founder-name {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
}

.founder-bio p { color: var(--muted); }
.founder-education-label {
  margin: 24px 0 6px;
  color: var(--bronze-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.founder-creds {
  margin-top: 0;
  font-size: 0.92rem;
  color: var(--navy);
  font-weight: 500;
}

/* ---------- Team ---------- */

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

.team-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.team-photo {
  width: 150px;
  aspect-ratio: 1 / 1.12;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius);
}

.team-card-copy h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.16;
}

.team-role {
  margin: 0 0 8px;
  color: var(--bronze-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.team-card-copy p:not(.team-role) {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.team-card-copy a {
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

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

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

  .team-photo {
    width: 100%;
    max-height: 360px;
  }
}

/* ---------- Contact ---------- */

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
@media (max-width: 880px) {
  .contact { grid-template-columns: 1fr; }
}

.contact-logo {
  width: clamp(140px, 16vw, 220px);
  margin-top: clamp(28px, 5vw, 52px);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(0,0,0,0.28);
}

.contact-form {
  background: rgba(27,42,78,0.52);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
}
.field input,
.field textarea {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--white);
  font-family: var(--sans);
  font-size: 1rem;
  transition: border-color 200ms ease-out, background 200ms ease-out;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--bronze);
  background: rgba(255,255,255,0.08);
}
.field textarea { resize: vertical; min-height: 110px; }

.form-disclosure {
  margin: 16px 0 0;
  color: rgba(255,255,255,0.72);
  font-size: 0.86rem;
  line-height: 1.5;
}

.japanese-contact-page {
  min-height: calc(100vh - 92px);
  display: flex;
  align-items: center;
}
.japanese-contact-page .heading {
  font-family: "Yu Gothic", "YuGothic", "Meiryo", var(--sans);
  font-weight: 600;
  font-size: clamp(2rem, 8.5vw, 3.8rem);
  white-space: nowrap;
}
.japanese-contact-details {
  margin-top: 28px;
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
}
.japanese-contact-details a {
  color: var(--bronze);
}
.japanese-contact-details a:hover {
  color: var(--white);
}

.jp-page {
  font-family: "Yu Gothic", "YuGothic", "Meiryo", var(--sans);
}
.jp-page .display,
.jp-heading,
.jp-page .quote-text {
  font-family: "Yu Gothic", "YuGothic", "Meiryo", var(--sans);
  font-weight: 600;
}
.jp-display {
  font-size: clamp(2.35rem, 5.2vw, 3.8rem);
  letter-spacing: 0;
}
.jp-heading-nowrap {
  white-space: nowrap;
  font-size: clamp(1.55rem, 3vw, 2.85rem);
}
.jp-page .section-intro,
.jp-page .two-col-text p,
.jp-page .card p,
.jp-page .steps li p,
.jp-page .founder-bio p {
  line-height: 1.85;
}
.jp-quote {
  font-size: 1.22rem;
  line-height: 1.75;
}
.jp-contact-copy {
  max-width: 640px;
}

.form-status {
  margin: 14px 0 0;
  font-size: 0.92rem;
  color: var(--bronze);
  min-height: 1.2em;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 32px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-stack {
  display: grid;
  gap: 18px;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-brand {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--white);
  margin: 0;
}
.footer-meta {
  margin: 0;
  font-size: 0.9rem;
}
.footer-meta a { color: var(--bronze); }
.footer-meta a:hover { color: var(--white); }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}
.footer-links a {
  color: rgba(255,255,255,0.78);
  font-size: 0.86rem;
}
.footer-links a:hover { color: var(--bronze); }
.footer-disclaimer {
  max-width: 980px;
  margin: 0;
  color: rgba(255,255,255,0.6);
  font-size: 0.82rem;
  line-height: 1.55;
}

/* ---------- Legal pages ---------- */

.legal-page {
  padding: var(--section-y) 0;
}
.legal-article {
  max-width: 880px;
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 56px);
}
.legal-article h1,
.legal-article h2 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.12;
}
.legal-article h1 {
  font-size: clamp(2.6rem, 6vw, 4rem);
  margin: 0 0 10px;
}
.legal-article h2 {
  font-size: clamp(1.55rem, 3vw, 2rem);
  margin: 34px 0 12px;
}
.legal-updated {
  color: var(--muted);
  margin-bottom: 28px;
}
.legal-article p,
.legal-article li {
  color: var(--muted);
}
.legal-article ul {
  margin-bottom: 1.2em;
}
.legal-note {
  border-left: 2px solid var(--bronze);
  padding-left: 18px;
  color: var(--text);
}
.legal-contact {
  color: var(--text);
}
.cookie-consent a {
  color: var(--bronze);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Cookie consent ---------- */

.cookie-consent {
  position: fixed;
  left: clamp(16px, 3vw, 32px);
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
  padding: 22px 24px;
  background:
    linear-gradient(rgba(27,42,78,0.94), rgba(27,42,78,0.94)),
    var(--marble-bg);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  box-shadow: 0 22px 60px rgba(0,0,0,0.28);
  color: rgba(255,255,255,0.86);
}
.cookie-consent[hidden] { display: none; }
.cookie-consent-title {
  margin: 0 0 6px;
  color: var(--white);
  font-weight: 700;
}
.cookie-consent p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.55;
}
.cookie-consent-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.cookie-btn-secondary {
  background: transparent;
  border-color: rgba(255,255,255,0.35);
  color: var(--white);
}
.cookie-btn-secondary:hover {
  border-color: var(--bronze);
  color: var(--bronze);
}

@media (max-width: 520px) {
  .header-row {
    gap: 12px;
  }

  .brand-mark {
    height: 54px;
    max-width: 152px;
  }

  .primary-nav {
    gap: 8px;
  }

  .primary-nav a {
    font-size: 0.84rem;
  }

  .nav-cta {
    padding: 7px 10px;
  }

  .primary-nav .nav-cta {
    display: none;
  }

  .nav-japanese {
    padding: 7px 9px;
  }

  .display {
    font-size: clamp(2.45rem, 14vw, 3.2rem);
  }

  .jp-display {
    font-size: clamp(2.15rem, 11vw, 2.8rem);
    line-height: 1.12;
  }

  .heading {
    font-size: clamp(2rem, 9vw, 2.6rem);
  }

  .jp-heading-nowrap,
  .card-title-nowrap {
    white-space: normal;
  }

  .jp-heading-nowrap {
    font-size: clamp(1.85rem, 8.5vw, 2.35rem);
  }

  .card-title-nowrap {
    font-size: 1.35rem;
  }

  .card-title {
    font-size: 1.35rem;
  }

  .footer-row {
    align-items: flex-start;
  }

  .cookie-consent {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .cookie-consent-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .cookie-consent .btn {
    width: 100%;
  }
}

/* ---------- Reveal-on-scroll (progressive enhancement) ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms ease-out, transform 600ms ease-out;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.japanese-contact-page .reveal {
  opacity: 1;
  transform: none;
}
.jp-page .reveal {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
