/* ==========================================================================
   TRAVERS VIETNAM — site styles
   Colours follow the Travers Group (travers.co.jp): navy + amber.
   ========================================================================== */

:root {
  --navy: #1f3c7a;
  --navy-700: #183166;
  --navy-800: #13274f;
  --navy-900: #0d1c3a;
  --navy-50: #eef2fa;
  --navy-100: #dbe4f4;
  --amber: #ffc107;
  --amber-600: #e5a900;
  --amber-700: #9a6f00;   /* amber text on white, AA contrast */

  --ink: #18213a;
  --body: #3d4760;
  --muted: #64708a;
  --line: #e2e7f0;
  --bg: #ffffff;
  --bg-soft: #f4f7fc;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(13, 28, 58, .06), 0 2px 8px rgba(13, 28, 58, .05);
  --shadow-md: 0 10px 30px rgba(13, 28, 58, .10);
  --shadow-lg: 0 24px 60px rgba(13, 28, 58, .18);

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(64px, 9vw, 112px);
  --header-h: 72px;

  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Hiragino Sans", "Yu Gothic", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }

p { margin: 0 0 1em; }

a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--navy-700); }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

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

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

.skip-link {
  position: absolute;
  left: 12px; top: -48px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 12px; color: #fff; }

.nowrap { white-space: nowrap; }

/* Placeholder for details still to be filled in */
.tbc {
  padding: 0 .3em;
  border-radius: 4px;
  background: #fff6d6;
  outline: 1px dashed var(--amber-600);
  color: var(--amber-700);
  font-weight: 500;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .85em 1.6em;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--amber); color: var(--navy-900); }
.btn-primary:hover { background: #ffcd38; color: var(--navy-900); box-shadow: 0 8px 20px rgba(255, 193, 7, .35); }

.btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost:hover { background: #fff; border-color: #fff; color: var(--navy); }

.btn-sm { padding: .55em 1.2em; font-size: .92rem; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  font-weight: 600;
  text-decoration: none;
}
.link-arrow::after { content: "\2192"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy);
}
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-weight: 800; font-size: 1.2rem; letter-spacing: .08em; }
.brand-sub { margin-top: 4px; font-weight: 600; font-size: .68rem; letter-spacing: .42em; color: var(--amber-700); }
.brand-light { color: #fff; }
.brand-light .brand-sub { color: var(--amber); }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a:not(.btn) {
  position: relative;
  display: block;
  padding: 8px 14px;
  color: var(--ink);
  font-weight: 500;
  font-size: .95rem;
  text-decoration: none;
  border-radius: var(--radius-sm);
}
.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s;
}
.site-nav a:not(.btn):hover::after,
.site-nav a.is-active::after { transform: scaleX(1); }
.site-nav a.is-active { color: var(--navy); }
.site-nav li:last-child { margin-left: 10px; }

.nav-toggle {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute;
  left: 11px;
  width: 22px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; left: 0; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: min(720px, calc(100vh - var(--header-h)));
  padding: clamp(80px, 12vw, 140px) 0 clamp(120px, 14vw, 170px);
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(13, 28, 58, .94) 0%, rgba(19, 39, 79, .86) 42%, rgba(31, 60, 122, .45) 100%),
    url("../img/office-1.jpg") center 40% / cover no-repeat;
}
.hero-bg::after {
  /* survey-grid texture */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, #000 0%, transparent 70%);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 70%);
}
.hero-inner { max-width: var(--container); }
.hero h1 { max-width: 15em; color: #fff; }
.hero-eyebrow {
  display: inline-block;
  margin-bottom: 1.4em;
  padding: .4em 1em;
  border: 1px solid rgba(255, 193, 7, .5);
  border-radius: 999px;
  background: rgba(255, 193, 7, .1);
  color: var(--amber);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.hero-lead {
  max-width: 38em;
  margin-bottom: 2em;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: rgba(255, 255, 255, .86);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Key figures ---------- */
.figures { position: relative; z-index: 2; margin-top: clamp(-90px, -8vw, -60px); }
.figures-card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.figures-card li {
  padding: 28px 28px 26px;
  border-left: 1px solid var(--line);
}
.figures-card li:first-child { border-left: 0; }
.figures-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--navy);
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.figures-card li:first-child strong { color: var(--amber-700); }
.figures-card span { display: block; font-size: .9rem; color: var(--muted); line-height: 1.45; }

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--navy-800); color: rgba(255, 255, 255, .82); }
.section-dark h2, .section-dark h3 { color: #fff; }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-lead { font-size: 1.08rem; color: var(--muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: .9em;
  color: var(--amber-700);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--amber); }
.eyebrow-light { color: var(--amber); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.about-copy p { font-size: 1.04rem; }
.about-copy strong { color: var(--ink); }

.about-media { position: relative; margin: 0; }
.about-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.about-media::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -18px; right: -18px;
  width: 55%; height: 60%;
  border-radius: var(--radius);
  background: repeating-linear-gradient(45deg, var(--amber) 0 2px, transparent 2px 12px);
  opacity: .45;
}
.about-badge {
  position: absolute;
  left: -16px; bottom: -22px;
  display: flex;
  flex-direction: column;
  padding: 16px 22px;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.about-badge span { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); font-weight: 600; }
.about-badge strong { font-size: 1.5rem; font-weight: 800; letter-spacing: .02em; }

.principles {
  margin-top: clamp(64px, 8vw, 96px);
  padding: clamp(28px, 4vw, 48px);
  border-radius: calc(var(--radius) + 4px);
  background: var(--navy-50);
}
.principles-head { max-width: 640px; margin-bottom: 28px; }
.principles-head h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
.principles-head p { color: var(--muted); margin: 0; }
.principles-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.principles-list li {
  position: relative;
  padding: 24px 22px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.principles-list li::before {
  /* diamond motif echoing the group's principle chart */
  content: "";
  position: absolute;
  top: 26px; right: 22px;
  width: 12px; height: 12px;
  background: var(--amber);
  transform: rotate(45deg);
}
.principle-no { display: block; margin-bottom: 10px; color: var(--navy-100); font-size: 2rem; font-weight: 800; line-height: 1; -webkit-text-stroke: 1px var(--navy); }
.principles-list h4 { margin-bottom: 2px; }
.principle-ja { margin-bottom: .8em; color: var(--navy); font-size: .85rem; font-weight: 500; }
.principles-list p:last-child { margin: 0; font-size: .94rem; line-height: 1.6; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.service-card {
  position: relative;
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-card p { margin: 0; font-size: .96rem; line-height: 1.65; }
.service-icon {
  display: inline-grid;
  place-items: center;
  width: 52px; height: 52px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: var(--navy-50);
  color: var(--navy);
  transition: background-color .25s, color .25s;
}
.service-card:hover .service-icon { background: var(--navy); color: var(--amber); }
.service-icon svg {
  width: 26px; height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Process ---------- */
.process {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.process::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 28px; right: 28px;
  border-top: 2px dashed var(--navy-100);
}
.process-step { position: relative; }
.process-no {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  margin-bottom: 20px;
  border: 2px solid var(--navy);
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: 800;
}
.process-step:last-child .process-no { background: var(--navy); color: var(--amber); }
.process-step p { margin: 0; font-size: .96rem; }

.clocks {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin-top: clamp(40px, 6vw, 64px);
  padding: 22px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.clock { display: flex; align-items: baseline; gap: 14px; }
.clock-place { font-weight: 600; color: var(--ink); }
.clock-place small { margin-left: 4px; color: var(--muted); font-weight: 500; }
.clock-time { font-size: 1.6rem; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.clock-diff {
  position: relative;
  padding: .25em .9em;
  border-radius: 999px;
  background: #fff6d6;
  color: var(--amber-700);
  font-size: .82rem;
  font-weight: 700;
}

/* ---------- Group ---------- */
.group-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.group-card {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.group-card p { font-size: .94rem; line-height: 1.6; }
.group-card .link-arrow { margin-top: auto; }
.group-meta { color: var(--muted); font-size: .82rem !important; font-weight: 500; }
.group-meta span { display: block; color: var(--ink); font-size: .85rem; }
.group-tag {
  align-self: flex-start;
  margin-bottom: 16px;
  padding: .3em .85em;
  border-radius: 999px;
  background: var(--navy-50);
  color: var(--navy);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.group-card-active {
  position: relative;
  border-color: var(--navy);
  background: var(--navy);
  color: rgba(255, 255, 255, .85);
  box-shadow: var(--shadow-md);
}
.group-card-active h3 { color: #fff; }
.group-card-active .group-meta { color: var(--amber); }
.group-card-active .group-meta span { color: #fff; }
.group-card-active .group-tag { background: var(--amber); color: var(--navy-900); }

.group-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.group-head .section-head { margin-bottom: 0; }
.parent-link {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-decoration: none;
  transition: box-shadow .2s, transform .2s;
}
.parent-link:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.parent-link img { width: 180px; }
.parent-link .link-arrow { font-size: .9rem; }

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: clamp(40px, 6vw, 64px) 0 0;
  padding: 0;
  list-style: none;
}
.timeline li {
  position: relative;
  padding: 26px 16px 0 0;
  border-top: 2px solid var(--navy-100);
}
.timeline li::before {
  content: "";
  position: absolute;
  top: -8px; left: 0;
  width: 14px; height: 14px;
  border: 3px solid var(--navy);
  border-radius: 50%;
  background: var(--bg-soft);
}
.timeline time { display: block; color: var(--navy); font-weight: 800; font-size: 1.05rem; }
.timeline span { display: block; color: var(--muted); font-size: .92rem; }
.timeline-now { border-top-color: var(--amber) !important; }
.timeline-now::before { border-color: var(--amber) !important; background: var(--amber) !important; box-shadow: 0 0 0 6px rgba(255, 193, 7, .25); }

/* ---------- Office gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(150px, 16vw, 210px);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gallery li:first-child { grid-column: span 2; grid-row: span 2; }
.gallery-item {
  position: relative;
  display: block;
  width: 100%; height: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy-50);
  cursor: zoom-in;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 16px 12px;
  background: linear-gradient(transparent, rgba(13, 28, 58, .8));
  color: #fff;
  font-size: .88rem;
  font-weight: 600;
  text-align: left;
}

.lightbox {
  width: min(1000px, 92vw);
  max-height: 90vh;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: #000;
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(8, 16, 34, .85); }
.lightbox img { width: 100%; max-height: 90vh; object-fit: contain; }
.lightbox-close {
  position: absolute;
  top: 10px; right: 10px;
  width: 40px; height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  color: var(--navy-900);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Company profile ---------- */
.profile-wrap { max-width: 920px; }
.profile {
  margin: 0;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.profile > div {
  display: grid;
  grid-template-columns: 220px 1fr;
  border-bottom: 1px solid var(--line);
}
.profile > div:last-child { border-bottom: 0; }
.profile dt {
  padding: 18px 24px;
  background: var(--navy-50);
  color: var(--navy);
  font-weight: 600;
}
.profile dd { margin: 0; padding: 18px 24px; color: var(--ink); }
.plain-list { margin: 0; padding: 0; list-style: none; }
.plain-list li { position: relative; padding-left: 18px; }
.plain-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .7em;
  width: 7px; height: 7px;
  background: var(--amber);
  transform: rotate(45deg);
}

/* ---------- Careers ---------- */
.careers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.careers-copy p { font-size: 1.04rem; }
.quote {
  margin: 28px 0 32px;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--amber);
}
.quote p { margin: 0 0 .4em; color: #fff; font-size: 1.15rem; font-weight: 600; line-height: 1.5; }
.quote footer { color: rgba(255, 255, 255, .6); font-size: .85rem; }
.roles {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.roles li {
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .05);
  transition: background-color .2s, border-color .2s;
}
.roles li:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 193, 7, .5); }
.roles h3 { margin-bottom: 4px; font-size: 1.05rem; }
.roles p { margin: 0; font-size: .94rem; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.contact-list { margin: 28px 0; }
.contact-list > div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.contact-list dt { color: var(--muted); font-weight: 500; font-size: .92rem; }
.contact-list dd { margin: 0; color: var(--ink); }
.contact-japan {
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--bg-soft);
}
.contact-japan h3 { font-size: 1rem; }
.contact-japan p { font-size: .94rem; }

.contact-form {
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: #fff;
  box-shadow: var(--shadow-md);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 6px; color: var(--ink); font-weight: 600; font-size: .9rem; }
.field label span { color: #c0392b; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cfd6e3;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: .98rem;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(31, 60, 122, .15);
}
.field [aria-invalid="true"] { border-color: #c0392b; }
.form-note { margin: 0 0 6px; color: var(--muted); font-size: .85rem; }
.form-status { min-height: 1.5em; margin: 0 0 12px; font-size: .9rem; font-weight: 500; }
.form-status.is-error { color: #c0392b; }
.form-status.is-ok { color: #1e7a46; }

/* ---------- Footer ---------- */
.site-footer {
  padding-top: clamp(56px, 7vw, 80px);
  background: var(--navy-900);
  color: rgba(255, 255, 255, .7);
  font-size: .94rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand p { max-width: 26em; margin-top: 18px; }
.footer-col h2 {
  margin-bottom: 14px;
  color: #fff;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col li { margin-bottom: 8px; }
.site-footer a:not(.brand) { color: rgba(255, 255, 255, .78); text-decoration: none; }
.site-footer a:not(.brand):hover { color: var(--amber); }
.footer-bottom {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 22px;
  padding-bottom: 22px;
  font-size: .85rem;
}
.footer-bottom::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter); right: var(--gutter);
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.footer-bottom p { margin: 0; }

/* ---------- Reveal on scroll (only when JS is running) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .principles-list { grid-template-columns: repeat(2, 1fr); }
  .group-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 12px var(--gutter) 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav a:not(.btn) { padding: 12px 8px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav a:not(.btn)::after { display: none; }
  .site-nav li:last-child { margin: 14px 0 0; }
  .site-nav .btn { width: 100%; padding: .9em 1.2em; font-size: 1rem; }

  .figures-card { grid-template-columns: repeat(2, 1fr); }
  .figures-card li:nth-child(3) { border-left: 0; }
  .figures-card li:nth-child(n+3) { border-top: 1px solid var(--line); }

  .about-grid,
  .careers-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 640px; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }

  .process { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .process::before { display: none; }

  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(140px, 30vw, 220px); }

  .group-head { flex-direction: column; align-items: flex-start; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .brand-mark { width: 36px; height: 36px; }

  .hero-actions .btn { flex: 1 1 100%; }

  .figures-card li { padding: 20px 18px; }

  .principles-list,
  .services-grid,
  .group-grid { grid-template-columns: 1fr; }

  .process { grid-template-columns: 1fr; gap: 0; }
  .process-step {
    display: grid;
    grid-template-columns: 56px 1fr;
    column-gap: 18px;
    padding-bottom: 28px;
  }
  .process-step::before {
    content: "";
    position: absolute;
    top: 56px; bottom: 0; left: 27px;
    border-left: 2px dashed var(--navy-100);
  }
  .process-step:last-child::before { display: none; }
  .process-no { grid-row: span 2; margin: 0; }
  .process-step h3 { margin: 14px 0 4px; }

  .clocks { flex-wrap: nowrap; justify-content: space-around; gap: 8px; padding: 18px 12px; }
  .clock { flex-direction: column; align-items: center; gap: 2px; }
  .clock-time { font-size: 1.4rem; }
  .clock-diff { white-space: nowrap; }

  .hero-eyebrow { border-radius: 12px; }

  .timeline { grid-template-columns: 1fr; border-left: 2px solid var(--navy-100); margin-left: 6px; }
  .timeline li { padding: 0 0 22px 24px; border-top: 0; }
  .timeline li::before { top: 4px; left: -9px; }
  .timeline-now { border-top: 0 !important; }

  .gallery { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .gallery li:first-child { grid-column: auto; grid-row: auto; }
  .gallery-item { aspect-ratio: 4 / 3; }

  .profile > div { grid-template-columns: 1fr; }
  .profile dt { padding: 12px 18px; }
  .profile dd { padding: 14px 18px; }

  .field-row { grid-template-columns: 1fr; gap: 0; }

  .about-badge { left: 12px; bottom: -18px; padding: 12px 18px; }
  .about-media::before { right: -8px; top: -10px; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
